/* Greece trip planner.
 *
 * Design constraints, since they explain most of the choices below:
 *   - The audience is ten friends in their fifties, mostly on phones, mostly once.
 *   - Nobody will read instructions, so affordances have to be obvious at a glance.
 *   - 16px minimum on inputs, because anything smaller makes iOS zoom on focus.
 *   - Touch targets are 44px+ throughout.
 */

:root {
  --aegean: #1b6ca8;
  --aegean-dark: #14507b;
  --aegean-light: #e8f1f8;
  --sand: #f7f3ea;
  --stone: #6b7280;
  --ink: #1a2028;
  --line: #dfd9cd;
  --paper: #ffffff;
  --bg: #faf8f4;

  --olive: #6b7f3f;
  --terracotta: #c1572f;
  --gold: #c9a227;

  --ok: #2f7d4f;
  --warn: #b8860b;
  --bad: #b3401f;

  --radius: 10px;
  --shadow: 0 1px 3px rgba(26, 32, 40, .08), 0 1px 2px rgba(26, 32, 40, .04);
  --shadow-lg: 0 4px 16px rgba(26, 32, 40, .1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --aegean: #5aa9dd;
    --aegean-dark: #7cbde8;
    --aegean-light: #16242f;
    --sand: #1e2229;
    --stone: #9aa4b2;
    --ink: #e8eaed;
    --line: #333a44;
    --paper: #1a1e24;
    --bg: #12151a;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 1.85rem; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--aegean); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 96px; }
.muted { color: var(--stone); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---- Header ---------------------------------------------------------- */

header.app {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 860px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--aegean); }
nav.tabs { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
nav.tabs a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--stone); font-size: .9rem; font-weight: 600; min-height: 36px;
  display: flex; align-items: center;
}
nav.tabs a:hover { background: var(--aegean-light); color: var(--aegean); }
nav.tabs a.active { background: var(--aegean); color: #fff; }

.whoami {
  font-size: .82rem; color: var(--stone);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); cursor: pointer; white-space: nowrap;
}
.whoami:hover { border-color: var(--aegean); color: var(--aegean); }

/* ---- Cards ----------------------------------------------------------- */

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }
.hero {
  background: linear-gradient(160deg, var(--aegean) 0%, var(--aegean-dark) 100%);
  color: #fff; border: none; padding: 28px 22px;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .9); margin-bottom: 0; }

/* ---- Buttons --------------------------------------------------------- */

button, .btn {
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 11px 18px; min-height: 44px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .12s, border-color .12s, transform .06s;
}
button:hover, .btn:hover { border-color: var(--aegean); color: var(--aegean); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary, .btn.primary {
  background: var(--aegean); border-color: var(--aegean); color: #fff;
}
button.primary:hover, .btn.primary:hover { background: var(--aegean-dark); color: #fff; }
button.ghost { border-color: transparent; background: transparent; }
button.small { font-size: .85rem; padding: 6px 12px; min-height: 34px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row.end { justify-content: flex-end; }

/* ---- Name picker ----------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.person {
  padding: 16px 14px; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 72px; font-size: 1.05rem; font-weight: 600;
}
.person:hover { border-color: var(--aegean); background: var(--aegean-light); }
.person .status { font-size: .78rem; font-weight: 500; color: var(--stone); }
.person.done { border-color: var(--ok); }
.person.done .status { color: var(--ok); }

/* ---- Progress -------------------------------------------------------- */

.progress-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--aegean); transition: width .25s; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.step {
  font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--sand); color: var(--stone); border: 1px solid var(--line);
  cursor: pointer; min-height: 30px; display: inline-flex; align-items: center;
}
.step.active { background: var(--aegean); color: #fff; border-color: var(--aegean); }
.step.complete { border-color: var(--ok); color: var(--ok); }

/* ---- Questions ------------------------------------------------------- */

.question { padding: 20px 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: none; }
.question .prompt { font-size: 1.1rem; font-weight: 650; margin-bottom: 4px; }
.question .help { font-size: .875rem; color: var(--stone); margin-bottom: 14px; }

/* Slider with labelled ends */
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type=range] { flex: 1; min-width: 0; height: 44px; accent-color: var(--aegean); }
.slider-ends { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--stone); margin-top: -6px; }
.slider-ends span { max-width: 45%; }
.slider-ends span:last-child { text-align: right; }

/* Importance / agreement scale */
.scale-row { display: flex; gap: 6px; flex-wrap: wrap; }
.scale-row button {
  flex: 1; min-width: 74px; flex-direction: column; gap: 1px;
  padding: 9px 6px; font-size: .8rem; font-weight: 600; line-height: 1.2;
}
.scale-row button.on { background: var(--aegean); border-color: var(--aegean); color: #fff; }

/* Destination / activity rating list */
.rate-list { display: flex; flex-direction: column; gap: 10px; }
.rate-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; background: var(--paper);
}
.rate-item.answered { border-left: 4px solid var(--aegean); }
.rate-item.must { border-left: 4px solid var(--gold); }
.rate-item.veto { border-left: 4px solid var(--bad); opacity: .72; }
.rate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.rate-head .label { font-weight: 650; font-size: 1.02rem; }
.rate-head .region { font-size: .74rem; color: var(--stone); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rate-item .desc { font-size: .875rem; color: var(--stone); margin-bottom: 10px; }
.rate-meta { font-size: .78rem; color: var(--stone); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.rate-meta b { color: var(--ink); font-weight: 600; }

.rate-buttons { display: flex; gap: 5px; flex-wrap: wrap; }
.rate-buttons button {
  flex: 1; min-width: 62px; padding: 8px 4px; font-size: .8rem; min-height: 40px;
}
.rate-buttons button.on { background: var(--aegean); border-color: var(--aegean); color: #fff; }
.rate-buttons button[data-v="0"].on { background: var(--stone); border-color: var(--stone); }
.rate-buttons button[data-v="4"].on { background: var(--olive); border-color: var(--olive); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filter-row input[type=search] {
  flex: 1; min-width: 160px; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.chip {
  font-size: .8rem; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--stone);
  cursor: pointer; min-height: 32px; display: inline-flex; align-items: center;
}
.chip.on { background: var(--aegean); border-color: var(--aegean); color: #fff; }

/* Checkbox / radio lists */
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; min-height: 44px;
}
.opt:hover { border-color: var(--aegean); }
.opt.on { border-color: var(--aegean); background: var(--aegean-light); }
.opt input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--aegean); flex: none; }
.opt .opt-label { font-weight: 600; }
.opt .opt-desc { font-size: .84rem; color: var(--stone); }

textarea, input[type=number] {
  width: 100%; font-family: inherit; font-size: 16px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
textarea { resize: vertical; min-height: 84px; }

/* ---- Flags page ------------------------------------------------------ */

.flag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .flag-grid { grid-template-columns: 1fr; } }
.flag-box { border: 2px dashed var(--line); border-radius: var(--radius); padding: 15px; }
.flag-box.must { border-color: var(--gold); }
.flag-box.veto { border-color: var(--bad); }
.flag-box h3 { margin-bottom: 2px; }
.flag-slot {
  padding: 10px 12px; border-radius: 8px; background: var(--sand);
  margin-top: 8px; font-size: .9rem; display: flex; justify-content: space-between;
  align-items: center; gap: 8px; min-height: 44px;
}
.flag-slot.empty { color: var(--stone); font-style: italic; background: transparent; border: 1px dashed var(--line); }

/* ---- Results --------------------------------------------------------- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--aegean); }
.stat .k { font-size: .78rem; color: var(--stone); text-transform: uppercase; letter-spacing: .04em; }

.result-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.result-item:last-child { border-bottom: none; }
.result-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.result-head .label { font-weight: 650; }
.result-head .score { margin-left: auto; font-weight: 700; color: var(--aegean); white-space: nowrap; }

.badge {
  font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.badge.consensus { background: #e3f3e9; color: var(--ok); }
.badge.locked    { background: #fbf3d9; color: #8a6d0b; }
.badge.divisive  { background: #fdeae2; color: var(--terracotta); }
.badge.darkhorse { background: #ece7f8; color: #5b4a9c; }
.badge.maybe     { background: var(--sand); color: var(--stone); }
.badge.thin      { background: var(--sand); color: var(--stone); }
.badge.skip      { background: var(--sand); color: var(--stone); }
.badge.blocked   { background: #fbe3dc; color: var(--bad); }
@media (prefers-color-scheme: dark) {
  .badge.consensus { background: #17301f; }
  .badge.locked    { background: #2e2916; color: #d9b93c; }
  .badge.divisive  { background: #2f1d15; color: #e08256; }
  .badge.darkhorse { background: #221d33; color: #a99ae0; }
  .badge.blocked   { background: #331813; color: #e07a5c; }
}

/* Vote distribution bar: one segment per scale point */
.dist { display: flex; height: 7px; border-radius: 999px; overflow: hidden; background: var(--line); margin-top: 7px; }
.dist i { display: block; }
.dist i.v0 { background: #b9c0c9; }
.dist i.v1 { background: #9fb8cf; }
.dist i.v2 { background: #6f9fc4; }
.dist i.v3 { background: #3d81b0; }
.dist i.v4 { background: var(--olive); }

.agree-note { font-size: .8rem; color: var(--stone); margin-top: 5px; }

/* ---- Itinerary ------------------------------------------------------- */

.day {
  border-left: 3px solid var(--aegean); padding: 4px 0 16px 16px;
  margin-left: 6px; position: relative;
}
.day::before {
  content: ''; position: absolute; left: -7px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--aegean); border: 2px solid var(--paper);
}
.day h3 { margin-bottom: 2px; }
.day .daymeta { font-size: .78rem; color: var(--stone); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.day .slot { margin-bottom: 7px; font-size: .93rem; }
.day .slot b { color: var(--aegean); font-weight: 650; margin-right: 5px; }
.day .travel {
  background: var(--aegean-light); border-radius: 7px; padding: 8px 11px;
  font-size: .86rem; margin: 8px 0;
}
.day .note { font-size: .84rem; color: var(--stone); font-style: italic; }

.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { padding: 11px 14px; border-radius: var(--radius); max-width: 88%; font-size: .93rem; }
.msg.user { background: var(--aegean); color: #fff; align-self: flex-end; }
.msg.assistant { background: var(--sand); align-self: flex-start; border: 1px solid var(--line); }
.msg .who { font-size: .72rem; opacity: .75; display: block; margin-bottom: 2px; }

.warnbox {
  background: #fdf6e3; border: 1px solid #e8d9a8; border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 14px; font-size: .9rem;
}
@media (prefers-color-scheme: dark) {
  .warnbox { background: #2a2416; border-color: #4a3f20; }
}
.warnbox ul { margin: 6px 0 0; padding-left: 20px; }

/* ---- Utility --------------------------------------------------------- */

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  z-index: 100; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { background: var(--bad); color: #fff; }

.sticky-save {
  position: sticky; bottom: 0; background: var(--paper);
  border-top: 1px solid var(--line); padding: 12px 16px; margin: 0 -16px -96px;
  display: flex; gap: 10px; align-items: center; z-index: 10;
}
.sticky-save .status { font-size: .85rem; color: var(--stone); margin-right: auto; }

.spinner {
  width: 17px; height: 17px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%;
  display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 44px 20px; color: var(--stone); }
.empty h3 { color: var(--ink); }

/* ---- Unanswered sliders ----------------------------------------------
 *
 * A range input has to render its handle somewhere, and a handle parked in the
 * middle reads as a deliberate "no strong feeling" answer. Greying the track
 * until it is touched moves the meaning off the handle position and onto the
 * label underneath, which can say "not answered" in a way a handle cannot.
 */

.slider-row.unset input[type=range] {
  accent-color: var(--stone);
  opacity: .4;
  filter: grayscale(1);
}
.slider-row.unset { position: relative; }

.slider-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; min-height: 30px;
}
.slider-readout {
  font-size: .85rem; font-weight: 650; color: var(--aegean);
}
.slider-readout.unset {
  color: var(--stone); font-weight: 500; font-style: italic;
}
.slider-clear { margin-left: auto; font-size: .78rem; color: var(--stone); }

/* Same idea on the results page: a slider nobody answered is shown as such
 * rather than hidden, because "we never asked properly" and "the group is
 * neutral" are very different facts. */
.result-item.no-answers { opacity: .55; }
.result-item.no-answers .agree-note { font-style: italic; }

/* Near-match warning under the name field. Self-entry's one real failure mode is a
 * typo creating a second person and splitting their votes, so the hint that prevents
 * it needs to be visible without being alarming. */
.name-match {
  margin-top: 10px; font-size: .875rem; line-height: 1.5;
  padding: 10px 12px; border-radius: 8px;
  background: var(--aegean-light); color: var(--ink);
}
.name-match strong { color: var(--aegean); }
button.linkish {
  border: none; background: none; padding: 0 2px; min-height: 0;
  font-size: inherit; font-weight: 700; color: var(--aegean);
  text-decoration: underline; display: inline;
}
button.linkish:hover { color: var(--aegean-dark); }

/* ======================================================================
 * Greece, with the volume turned up
 *
 * Everything below is the "make it feel like a holiday" layer. Two rules kept
 * it from becoming unreadable:
 *   - Decoration never carries meaning. Emoji and patterns sit alongside text
 *     labels, never instead of them.
 *   - Nothing decorative is a network request. The patterns are CSS gradients
 *     and the slider thumbs are inline SVG, so none of this slows the survey.
 * ====================================================================== */

:root {
  --sun: #e8b53f;
  --olive-deep: #55682f;
  --sea-deep: #0d3f66;
  --whitewash: #fdfcf8;
}

/* Sun-bleached wash + a faint wave band along the top. Both are gradients, so
 * they cost nothing and never fail to load. */
/* The Greek key (meander). Drawn with gradients rather than an image so it
 * stays crisp at any zoom and adds no bytes. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--aegean) 0%, var(--sea-deep) 100%);
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.85) 0 6px, transparent 6px 10px,
      rgba(255,255,255,.85) 10px 12px, transparent 12px 22px);
  opacity: .5;
}
.hero h1 { text-shadow: 0 1px 12px rgba(0,0,0,.22); }

/* ---- Destination photos --------------------------------------------- */

.rate-photo { margin: -14px -14px 12px; position: relative; }
.rate-photo img {
  display: block; width: 100%; height: 168px; object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--sand);
}
.rate-photo figcaption {
  position: absolute; right: 6px; bottom: 6px;
  font-size: .62rem; line-height: 1.3; max-width: 72%;
  color: rgba(255,255,255,.92); text-align: right;
  background: rgba(0,0,0,.42); padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(2px);
}
.rate-photo figcaption a { color: inherit; text-decoration: underline; }

.rate-item { overflow: hidden; transition: transform .12s, box-shadow .12s; }
.rate-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rate-item.answered { box-shadow: 0 0 0 1px var(--aegean), var(--shadow); }
.rate-item.must  { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.rate-item.veto  { box-shadow: 0 0 0 2px var(--bad), var(--shadow); }

/* ---- Emoji slider thumbs -------------------------------------------- */

.slider-row input[type=range] {
  -webkit-appearance: none; appearance: none;
  background: transparent; height: 44px;
}
.slider-row input[type=range]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--aegean-light), var(--aegean));
  border: 1px solid var(--line);
}
.slider-row input[type=range]::-moz-range-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--aegean-light), var(--aegean));
  border: 1px solid var(--line);
}
.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 34px; margin-top: -13px;
  border: none; background: var(--thumb) center/contain no-repeat;
  cursor: grab; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}
.slider-row input[type=range]::-moz-range-thumb {
  width: 34px; height: 34px; border: none;
  background: var(--thumb) center/contain no-repeat;
  cursor: grab; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}
.slider-row.unset input[type=range]::-webkit-slider-runnable-track {
  background: var(--line);
}
.slider-row.unset input[type=range]::-moz-range-track { background: var(--line); }
/* The unanswered thumb is drained of colour, so "I have not answered" is legible
 * from the handle as well as from the label. */
.slider-row.unset input[type=range]::-webkit-slider-thumb { filter: grayscale(1) opacity(.45); }
.slider-row.unset input[type=range]::-moz-range-thumb { filter: grayscale(1) opacity(.45); }

/* ---- Vote distribution columns --------------------------------------
 *
 * Sequential, one hue, light -> dark across an ordered scale. The five steps
 * are the same blue at increasing depth: "Must" is the far end of one ruler,
 * not a different kind of answer. Numbers and axis labels wear ink tokens, so
 * identity never rests on colour alone.
 */

.votes {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  align-items: end; margin: 10px 0 4px; height: 74px;
}
.vote-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; gap: 2px; cursor: default;
}
.vote-n { font-size: .7rem; font-weight: 700; color: var(--ink); line-height: 1; }
.vote-col.empty .vote-n { color: transparent; }
.vote-bar {
  width: 100%; border-radius: 4px 4px 0 0; min-height: 2px;
  transition: filter .12s;
}
.vote-col:hover .vote-bar { filter: brightness(1.12); }
.vote-x {
  font-size: .56rem; color: var(--stone); line-height: 1.1; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.vote-bar.s0 { background: #cfe0ee; }
.vote-bar.s1 { background: #9dc0dc; }
.vote-bar.s2 { background: #6a9fc7; }
.vote-bar.s3 { background: #3a7cae; }
.vote-bar.s4 { background: #14507b; }
.vote-col.empty .vote-bar { background: var(--line); }
@media (prefers-color-scheme: dark) {
  /* Dark steps are chosen against the dark surface, not an inverted light ramp. */
  .vote-bar.s0 { background: #26404f; }
  .vote-bar.s1 { background: #35607d; }
  .vote-bar.s2 { background: #4682ab; }
  .vote-bar.s3 { background: #67a6cf; }
  .vote-bar.s4 { background: #9ccbe8; }
}

/* ---- "Not so fast" gate --------------------------------------------- */

.card.notyet {
  text-align: center; padding: 40px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--aegean-light), var(--paper) 70%);
  border-style: dashed; border-width: 2px;
}
.notyet-emoji { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.notyet h2 { margin-bottom: 8px; }
.notyet p { max-width: 46ch; margin-inline: auto; color: var(--stone); }
.notyet-progress { max-width: 320px; margin: 20px auto 0; }
.notyet .btn-row { justify-content: center; }

/* ---- Playful odds and ends ------------------------------------------ */

.stat { position: relative; overflow: hidden; }
.stat::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--aegean), var(--sun));
}
.stat .n { font-variant-numeric: tabular-nums; }

.steps { gap: 6px; }
.step.complete { background: #eaf3ec; }
@media (prefers-color-scheme: dark) { .step.complete { background: #1a2b20; } }

.person { transition: transform .12s, border-color .12s, background .12s; }
.person:hover { transform: translateY(-2px); }

.empty h3 { font-size: 1.3rem; }

/* Cards carry a warm rim and a soft shadow so they lift off the page. The
 * background itself is deliberately quiet — a patterned one was tried and it
 * fought every piece of text on the page. */
.card {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow:
    0 1px 2px rgba(60, 44, 20, .10),
    0 6px 18px -6px rgba(60, 44, 20, .18);
}
@media (prefers-color-scheme: dark) {
  .card {
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 20px -8px rgba(0,0,0,.6);
  }
}

/* ---- Food photography in the hero -----------------------------------
 *
 * A real photograph belongs where text can be laid over it deliberately and
 * darkened for contrast — not tiled behind an entire form. */

.hero {
  background-image:
    linear-gradient(150deg, rgba(13, 63, 102, .88) 0%, rgba(27, 108, 168, .74) 55%, rgba(85, 104, 47, .80) 100%),
    url('/assets/places/food-meze.jpg');
  background-size: cover, cover;
  background-position: center, center;
}
.hero .hero-credit {
  display: block; margin-top: 14px;
  font-size: .62rem; color: rgba(255,255,255,.62);
}

/* A thin ribbon of food photography, used to break up long pages. */
.food-band {
  height: 96px; margin: 0 0 16px; border-radius: var(--radius);
  background-image: url('/assets/places/food-salad.jpg');
  background-size: cover; background-position: center 60%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), var(--shadow);
  position: relative; overflow: hidden;
}
.food-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246,241,228,.92) 0%, rgba(246,241,228,.15) 45%, rgba(246,241,228,.92) 100%);
}
@media (prefers-color-scheme: dark) {
  .food-band::after {
    background: linear-gradient(90deg, rgba(18,21,26,.92) 0%, rgba(18,21,26,.25) 45%, rgba(18,21,26,.92) 100%);
  }
}
.food-band span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .78rem; color: var(--stone); z-index: 1;
}

/* Section headings get a small olive-branch underline. */
.card > h2:first-child::after,
.card > h3:first-child::after {
  content: ''; display: block; width: 44px; height: 3px; margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive), var(--sun));
}

/* ---- Spectrum results: verdict first, dots second --------------------
 *
 * Reading order is deliberate: the plain-English verdict is the largest thing,
 * the picture supports it, and the mood line closes it. Nobody should have to
 * decode a chart to find out what the group decided.
 */

.gauge {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}
.gauge:last-child { border-bottom: none; }

.gauge-head { display: flex; align-items: center; gap: 8px; }
.gauge-q { font-size: .82rem; font-weight: 600; color: var(--stone);
  text-transform: uppercase; letter-spacing: .04em; }

.gauge-verdict {
  font-size: 1.22rem; font-weight: 700; line-height: 1.3;
  margin: 4px 0 20px; color: var(--ink); letter-spacing: -.01em;
}
.gauge-verdict.lean-strong { color: var(--aegean); }
.gauge-verdict.lean-even { color: var(--olive-deep); }
.gauge-verdict.dim { color: var(--stone); font-weight: 500; font-size: 1rem;
  font-style: italic; margin-bottom: 4px; }

/* Room above the track for stacked dots. */
.gauge-track {
  position: relative; height: 46px; margin-bottom: 6px;
}
.gauge-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--aegean-light), #dbe6d2, var(--aegean-light));
}

.gauge-dot {
  position: absolute; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--aegean);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* The group average, wearing the question's own emoji so the results page and the
 * survey speak the same visual language. */
.gauge-marker {
  position: absolute; bottom: -6px; margin-left: -17px;
  width: 34px; height: 34px; font-size: 21px; line-height: 34px; text-align: center;
  background: var(--paper); border-radius: 50%;
  border: 2px solid var(--aegean);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 2;
}

.gauge-ends {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .76rem; color: var(--stone); margin-top: 10px;
}
.gauge-ends span { max-width: 44%; }
.gauge-ends span:last-child { text-align: right; }

.gauge-mood {
  display: flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.gauge-mood-emoji { font-size: 1.1rem; }
.gauge-count { margin-left: auto; font-weight: 500; color: var(--stone); font-size: .8rem; }

.gauge.tone-split   .gauge-mood { color: var(--terracotta); }
.gauge.tone-mixed   .gauge-mood { color: var(--warn); }
.gauge.tone-agree   .gauge-mood { color: var(--ok); }
.gauge.tone-split   .gauge-fill { border-color: var(--terracotta); }
.gauge-empty { opacity: .6; }
.gauge-emoji.dim { filter: grayscale(1) opacity(.5); font-size: 1.2rem; }

@media (max-width: 520px) {
  .gauge-verdict { font-size: 1.06rem; }
  .gauge-ends { font-size: .72rem; }
}
