/* Palette from a Tbilisi stairwell: oil-painted wall, whitewash, paper notices with tape. */
:root {
  --whitewash: #eef0eb;
  --paint: #3e7770;
  --paint-deep: #234a45;
  --paper: #ffffff;
  --ink: #1c2422;
  --muted: #5e6b67;
  --rule: #d3d9d3;
  --tape: rgba(232, 214, 160, 0.88);
  --stamp: #b3261e;

  --font: "Golos Text", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ka: "Noto Serif Georgian", serif;

  --radius: 3px;
  --shadow: 0 1px 0 rgba(28, 36, 34, 0.06), 0 6px 18px -8px rgba(28, 36, 34, 0.25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--whitewash);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--paint-deep); }
code { font-family: var(--mono); font-size: 0.85em; background: rgba(62, 119, 112, 0.1); padding: 0.1em 0.35em; border-radius: var(--radius); }

:focus-visible { outline: 3px solid var(--paint); outline-offset: 2px; }

/* Header: the painted lower half of the wall, ending at the dark dado line. */
.wall {
  background: var(--paint);
  border-bottom: 5px solid var(--paint-deep);
  color: var(--whitewash);
}
.wall__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.mark { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; }
.mark__ka { font: 800 30px/1 var(--ka); letter-spacing: 0.01em; }
.mark__en { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.85; }
.who { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.who__name { opacity: 0.85; }
.linklike {
  background: none; border: 0; padding: 0; color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 120px; overflow-x: clip; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-title { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.section-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; }
.muted { color: var(--muted); margin: 0; }
.back { display: inline-block; font-size: 14px; margin-bottom: 8px; text-decoration: none; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paint); margin: 0 0 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--paint-deep); border-radius: var(--radius);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  background: transparent; color: var(--paint-deep);
}
.btn--primary { background: var(--paint-deep); color: var(--paper); }
.btn--primary:hover { background: var(--paint); border-color: var(--paint); }
.btn--quiet { border-color: var(--rule); color: var(--ink); background: var(--paper); min-height: 38px; padding: 0 14px; font-weight: 500; }
.btn--quiet:hover { border-color: var(--paint); }
.btn--danger { color: var(--stamp); }
.btn--danger:hover { border-color: var(--stamp); }

/* The signature: alerts as paper notices taped to the wall, with a tear-off strip. */
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.notice {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: 2px;
}
.notice::before {
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 92px; height: 20px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--tape);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.notice__body { padding: 22px 20px 18px; }
.notice__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.notice__name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; }
.notice__desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.notice__error { margin: 10px 0 0; color: var(--stamp); font-size: 14px; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.notice__actions form { margin: 0; }
.notice--paused .notice__body { opacity: 0.6; }

.status { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paint); white-space: nowrap; }
.status::before { content: "● "; }
.status--paused { color: var(--muted); }
.status--paused::before { content: "Ⅱ "; }
.status--starting { color: #8a6d1d; }

.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px dashed var(--rule);
}
.tab {
  padding: 10px 8px 12px; text-align: center;
  font: 400 11px/1.4 var(--mono); color: var(--muted);
}
.tab + .tab { border-left: 1.5px dashed var(--rule); }
.tab b { display: block; font-weight: 500; font-size: 13px; color: var(--ink); }

/* Landing hero: a full notice with vertical tear-off tabs, like the ones on Tbilisi doors. */
.notice--hero { margin: 12px 0 44px; max-width: 600px; transform: rotate(-0.6deg); }
.notice--hero .notice__body { padding: 36px 24px 28px; }
.hero-title { font-size: clamp(30px, 6vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 16px; max-width: 16ch; }
.lede { font-size: 17px; color: var(--muted); max-width: 46ch; margin: 0; }
.tearoffs { display: flex; border-top: 1.5px dashed var(--rule); }
.tearoff {
  flex: 1; min-width: 0; height: 92px;
  display: flex; align-items: center; justify-content: center;
  font: 500 13px/1 var(--mono); color: var(--paint-deep);
}
.tearoff + .tearoff { border-left: 1.5px dashed var(--rule); }
.tearoff span { writing-mode: vertical-rl; transform: rotate(180deg); }
/* One tab is already gone: the wall shows through where it was torn off. */
.tearoff--taken { background: var(--whitewash); color: transparent; margin-bottom: -1px; }

.steps ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 17px; }
.steps li::marker { font-family: var(--mono); color: var(--paint); }
.steps__intro { margin: -4px 0 14px; }
.steps__cta { margin: 22px 0 10px; }

.banner { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 24px; }
.banner--error { background: #f8e4e1; color: var(--stamp); }

.empty { background: var(--paper); box-shadow: var(--shadow); padding: 28px 22px; display: grid; gap: 10px; justify-items: start; }
.empty p { margin: 0; }

/* Form */
.alert-form { display: grid; gap: 14px; }
.group { background: var(--paper); box-shadow: var(--shadow); border-radius: 2px; padding: 20px; display: grid; gap: 14px; }
.group__title { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paint); margin: 0; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 500; margin: 0; }
.field input, .field select {
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  font: 400 16px var(--font); color: var(--ink); background: var(--paper);
}
.field input:focus, .field select:focus { border-color: var(--paint); outline: none; box-shadow: 0 0 0 3px rgba(62, 119, 112, 0.2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.hint--warn { color: #8a6d1d; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  border: 1.5px solid var(--rule); border-radius: 999px;
  font-size: 15px; cursor: pointer; user-select: none;
}
.chips--tight .chip span { min-width: 48px; justify-content: center; font-family: var(--mono); font-size: 13px; }
.chip input:checked + span { background: var(--paint-deep); border-color: var(--paint-deep); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--paint); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--paint-deep); flex: none; }

.areas { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.areas legend { padding: 0; margin-bottom: 8px; }
.district { border: 1.5px solid var(--rule); border-radius: var(--radius); }
.district[open] { border-color: var(--paint); }
.district summary { display: flex; justify-content: space-between; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.district__count { font: 400 12px/1.6 var(--mono); color: var(--paint); }
.district .check--all { padding: 0 12px 8px; font-weight: 500; }
.district__subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; padding: 4px 12px 14px; }

.form-errors { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: #f8e4e1; color: var(--stamp); border-left: 4px solid var(--stamp); display: grid; gap: 4px; }

.actionbar {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  padding: 12px 0; background: linear-gradient(to top, var(--whitewash) 70%, transparent);
}

/* Preview of what's listed right now */
.preview { margin-top: 36px; }
.preview__grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.listing { background: var(--paper); box-shadow: var(--shadow); display: grid; }
.listing a { color: inherit; text-decoration: none; display: grid; }
.listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--rule); display: block; }
.listing__body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.listing__price { font: 500 14px/1.3 var(--mono); }
.listing__title { font-size: 14px; font-weight: 500; }
.listing__meta { font-size: 13px; color: var(--muted); }

@media (min-width: 640px) {
  .notice__body { padding: 24px 28px 20px; }
  .group { padding: 24px 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .chip span, .district { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
