:root {
  --ink: #0a2733;
  --paper: #e7eeef;
  --surface: #fbfcfc;
  --warm: #f4efe4; /* warm off-white "paper" for the header */
  --deep: #0b6e7f;
  --shallow: #63bbc4;
  --you: #e07a4b; /* warmed coral accent */
  --line: rgba(10, 39, 51, 0.12);

  --v-very: #1f7a5a;
  --v-likely: #4e9e77;
  --v-contested: #c6892c;
  --v-unlikely: #a85337;
  --v-thin: #7c8a90;

  --wrap: 62rem;
  --r: 16px;
}

* {
  box-sizing: border-box;
}

/* Keyboard skip link — hidden until focused. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0.5rem;
}

.noscript {
  margin: 1rem auto;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: #fbe9e3;
  border: 1px solid #e6b7a6;
  color: #7c3a25;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---- Header: warm, hand-drawn; the name stays loud ---- */
.site-header {
  background: linear-gradient(180deg, var(--warm) 0%, #eef4f2 100%);
  color: var(--ink);
  padding-block: clamp(1.8rem, 6vw, 3rem);
  position: relative;
  overflow: hidden;
}
/* A soft hand-drawn wave sitting along the bottom edge. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 8 q6 -6 12 0 t12 0 t12 0 t12 0' fill='none' stroke='%230b6e7f' stroke-width='2' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
}
.header-inner {
  display: flex;
  flex-direction: column;
}
/* Top row: the wordmark sits level with the sketch, so the title can rise up. */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.island-sketch {
  flex: none;
  width: clamp(9rem, 24vw, 13rem);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(10, 39, 51, 0.12));
}
.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--deep);
}
.site-header h1 {
  margin: 0.1rem 0 0;
  font-family: "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tagline {
  margin: 0.6rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: #2f5661;
}
.scope-badge {
  display: inline-block;
  align-self: flex-start; /* don't let the flex column stretch it full-width */
  margin-top: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.scope-badge-note {
  font-weight: 400;
  opacity: 0.82;
}

@media (max-width: 40rem) {
  /* Tighter header on phones — less vertical real estate before the form. */
  .site-header {
    padding-block: 1.1rem 1.4rem;
  }
  .island-sketch {
    width: clamp(6.5rem, 30vw, 8.5rem);
    margin-bottom: -0.4rem;
  }
  .site-header h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  }
  .tagline {
    margin-top: 0.3rem;
    font-size: 1rem;
  }
}

/* Unofficial-source notice, moved out of the header to a calm banner up top of the footer. */
.unofficial-banner {
  margin: 0 0 1.2rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(11, 110, 127, 0.3);
  background: rgba(11, 110, 127, 0.06);
  font-size: 0.85rem;
  color: var(--deep);
}

/* ---- Query card ---- */
main {
  padding-block: clamp(1.5rem, 5vw, 3rem);
}
/* On mobile the intro drops below the form/results so the first screen stays
   header + form + CTA; on wider screens it sits up top as a proper intro. */
main.wrap {
  display: flex;
  flex-direction: column;
}
.app-lead {
  order: 1;
  margin: 1.3rem 0 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #3d5761;
}
@media (min-width: 700px) {
  .app-lead {
    order: -1;
    margin: 0 0 1.2rem;
  }
}
.query-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.2rem, 4vw, 1.8rem);
  display: grid;
  grid-template-columns: 1fr 1fr; /* Κλάδος + Η σειρά σου side by side */
  gap: 1rem 0.8rem;
  box-shadow: 0 14px 40px -28px rgba(10, 39, 51, 0.5);
}
.query-card .pref-details,
.query-card .go {
  grid-column: 1 / -1;
}
@media (min-width: 40rem) {
  .query-card {
    grid-template-columns: 1.4fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
}

/* Preference picker: an open-by-default disclosure inside the form. */
.pref-details {
  padding: 0.4rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(99, 187, 196, 0.08);
}
.pref-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 0;
}
.pref-details summary::-webkit-details-marker {
  display: none;
}
.pref-details summary::before {
  content: "＋";
  margin-right: 0.4rem;
  color: var(--deep);
  font-weight: 700;
}
.pref-details[open] summary::before {
  content: "－";
}
.pref-details summary:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
  border-radius: 4px;
}
.pref-details .optional {
  font-weight: 400;
  color: var(--v-thin);
}
.pref-details .hint {
  margin: 0 0 0.7rem;
}
.pref-picker {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.pref-input {
  font: inherit;
  flex: 1 1 14rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.pref-add {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}
.pref-add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Tolerant autocomplete dropdown (replaces native <datalist>). */
.combo {
  position: relative;
}
.field .combo {
  width: 100%;
}
.pref-picker .combo {
  flex: 1 1 14rem;
}
.combo .pref-input {
  flex: none;
  width: 100%;
}
.combo-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(10, 39, 51, 0.16);
  max-height: 15rem;
  overflow-y: auto;
}
.combo-list[hidden] {
  display: none;
}
.combo-item {
  padding: 0.65rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink);
}
.combo-item:hover,
.combo-item.active {
  background: rgba(11, 110, 127, 0.1);
}
.field label {
  font-weight: 600;
  font-size: 0.92rem;
}
.hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--v-thin);
}
select,
input#rank,
.specialty-input {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input#rank,
.specialty-input {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
select:focus-visible,
input#rank:focus-visible,
.specialty-input:focus-visible,
.go:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
}

.go {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--deep);
  color: #fff;
  font-family: "Commissioner", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 0 -2px #084c58;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.go:hover {
  background: #095a68;
  transform: translateY(-1px);
  box-shadow: 0 8px 0 -2px #084c58;
}
.go:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 -2px #084c58;
}

/* ---- Results ---- */
#results {
  margin-top: clamp(1.5rem, 5vw, 2.5rem);
}
/* ---- Headline: the decision, first and biggest ---- */
.headline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--deep);
  border-radius: var(--r);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}
.headline-answer {
  font-family: "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
.headline-answer b {
  color: var(--deep);
}
.headline-answer.unplaced {
  color: #37525d;
}
.headline-warn {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #8a4a2f;
  background: rgba(224, 134, 75, 0.12);
  border-left: 4px solid #e0864b;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}
.headline-warn b {
  color: #7a3f28;
}
.headline-sub {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: #4a6570;
}
.headline-sub b {
  color: var(--deep);
  font-weight: 600;
}
.caveat {
  background: rgba(224, 134, 75, 0.1);
  border: 1px solid rgba(224, 134, 75, 0.35);
  border-left: 4px solid #e0864b;
  border-radius: 10px;
  padding: 0.85rem 1.05rem;
  margin-bottom: 0.9rem;
}
.caveat-lead {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: #8a4a2f;
}
.caveat-note {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #5a4535;
}
.caveat-encourage {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(224, 134, 75, 0.4);
  font-size: 0.84rem;
  font-weight: 600;
  color: #8a4a2f;
}
.share-row {
  margin: 0.7rem 0 0.9rem;
}
.share-btn {
  appearance: none;
  border: 1px solid var(--deep);
  background: transparent;
  color: var(--deep);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.share-btn:hover {
  background: rgba(11, 110, 127, 0.08);
}
.share-btn:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
}
.axes-explainer {
  margin: 0 0 1.4rem;
  font-size: 0.83rem;
  color: #4a6570;
}
.axes-explainer b {
  color: var(--ink);
}

/* ---- Verdict color legend (the key to the phase strip; lives in the detail) ---- */
.verdict-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #3a5560;
  white-space: nowrap;
}
.legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  flex: none;
}

.result-group {
  margin-top: 1.8rem;
}
.group-head {
  margin: 0 0 0.35rem;
  font-family: "Commissioner", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.group-note {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: #4a6570;
  max-width: 46rem;
}

.region-rows {
  display: grid;
  gap: 0.6rem;
}
.region-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.95rem;
  display: grid;
  gap: 0.6rem;
}
.region-row.placed {
  border-color: rgba(31, 122, 90, 0.5);
  box-shadow: inset 3px 0 0 var(--v-very);
}
.region-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 0.8rem;
  flex-wrap: wrap;
}
.region-name {
  font-weight: 600;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}
.reach-note {
  font-size: 0.78rem;
  color: #4a6570;
}
/* Phase story tone: green when you're in from Α, neutral when it firms later,
   muted red when you're outside the depth. */
.reach-in {
  color: #1f7a4d;
  font-weight: 600;
}
.reach-later {
  color: #4a6570;
}
.reach-out {
  color: #8a4a2f;
}
.reach-none {
  color: var(--v-thin);
}
.region-order {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #fff;
  background: var(--deep);
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: none;
}
/* Compact per-phase strip in the row headline. */
.phase-mini {
  display: inline-flex;
  gap: 2px;
  flex: none;
}
.phase-mini-cell {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 5px;
  color: #fff;
}
.phase-mini-cell.empty {
  background: #eef2f2;
  color: var(--v-thin);
}

.region-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Queue note: its own row under the depth note — phrase first, then the drawing. */
.queue-note {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.queue-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.q-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.q-dot.seat {
  border: 1.5px solid var(--deep);
  background: transparent;
}
.q-dot.seat.taken {
  background: var(--deep);
}
.q-dot.over {
  background: #8a4a2f;
  margin-left: 1px;
}
.q-dot.you {
  background: var(--you);
  box-shadow: 0 0 0 2px rgba(224, 122, 75, 0.3);
  margin-left: 5px;
}
.queue-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.qb-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.qb-label {
  font-size: 0.62rem;
  color: #6a7f88;
  width: 3.2rem;
  text-align: right;
}
.qb-fill {
  height: 6px;
  border-radius: 3px;
}
.qb-seats {
  background: var(--deep);
  opacity: 0.45;
}
.qb-ahead {
  background: #8a4a2f;
}
.qb-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  color: var(--ink);
}

/* Demand chip: outlined + prefixed + square-ish, so it never reads like the
   solid, pill-shaped verdict (depth) chip. Its own colour ramp, not the verdict one. */
.demand-chip {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  background: transparent;
  white-space: nowrap;
}
.demand-chip .demand-prefix {
  font-weight: 700;
  opacity: 0.75;
}
.demand-chip.tone-calm {
  color: #0b6e7f;
  background: rgba(11, 110, 127, 0.06);
}
.demand-chip.tone-edge {
  color: #b06f18;
  background: rgba(198, 137, 44, 0.08);
}
.demand-chip.tone-warn {
  color: #8a4a2f;
  background: rgba(138, 74, 47, 0.08);
}


.phase-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--deep);
  background: rgba(11, 110, 127, 0.12);
  white-space: nowrap;
}
/* ---- Per-region detail disclosure («δες λεπτομέρειες») ---- */
.region-detail {
  display: grid;
  gap: 0.6rem;
}
.detail-toggle {
  appearance: none;
  justify-self: start;
  border: 0;
  background: none;
  padding: 0.15rem 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-toggle:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reveal-all control under the recommendations list — a quiet ghost button. */
.show-all {
  appearance: none;
  margin-top: 0.6rem;
  align-self: start;
  border: 1.5px solid var(--shallow);
  background: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
}
.show-all:hover {
  background: rgba(11, 110, 127, 0.06);
}
.show-all:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
}
.region-detail-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.75rem;
}
.reach-depth {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.demand-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--deep);
  background: rgba(11, 110, 127, 0.06);
  border-radius: 0 8px 8px 0;
}

/* Demand block in detail: a short caption explains "σταθεροί", then the raw fact,
   then the interpreted label — evidence before verdict. */
.demand-detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.demand-caption {
  margin: 0;
  font-size: 0.78rem;
  color: #6a7f88;
}

/* The raw fact beneath the interpreted demand line — evidence, so it's plainer:
   neutral dashed rule, no fill. Reads as "here are the numbers" under the verdict. */
.regulars-line {
  margin: 0;
  font-size: 0.86rem;
  color: #3d5560;
  padding: 0.45rem 0.7rem;
  border-left: 3px dashed rgba(11, 110, 127, 0.4);
}

/* ---- The per-phase strip (colors only, non-interactive) ---- */
/* Column count is set inline per region (Α → last returned phase). */
.phase-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.phase-strip.no-phases {
  grid-template-columns: 1fr;
}
.strip-empty {
  font-size: 0.8rem;
  color: var(--v-thin);
  padding: 0.5rem 0;
}
.phase-cell {
  position: relative;
  height: 2.2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
}
.phase-cell.filled {
  border-color: transparent;
}
.phase-cell.empty {
  flex-direction: column;
  gap: 0;
  background: #eef2f2;
  border-color: var(--line);
}
.phase-dash {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
  color: #aeb9bd;
}
.phase-letter {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
}
.phase-cell.filled .phase-letter {
  color: #fff;
}
.phase-cell.empty .phase-letter {
  color: var(--v-thin);
}
.phase-years {
  display: grid;
  gap: 0.3rem;
}
.phase-years-caption {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-thin);
}
.estimate-note {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  font-style: italic;
  color: #6a7f88;
}
.year-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 0.2rem;
}
.year-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink);
  cursor: pointer;
}
.year-tab.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.year-tab:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
}
.year-group {
  border-left: 3px solid var(--shallow);
  padding-left: 0.7rem;
  margin: 0.35rem 0;
}
.year-head {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.year-phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.year-phase-line {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #5a7078;
}
.year-range-new {
  color: var(--deep);
  font-weight: 600;
}

.phase-relation {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}
.phase-relation.inside {
  color: var(--v-very);
}
.phase-relation.outside {
  color: var(--v-thin);
}

/* ---- Rank chart (per-region, phases as rows) ---- */
.rank-chart {
  margin-top: 0.2rem;
}
.rank-svg {
  width: 100%;
  height: auto;
  max-width: 24rem;
  display: block;
}
.rank-svg .chart-title {
  fill: var(--ink);
  font-family: "Commissioner", sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.rank-svg .rank-bar {
  opacity: 0.85;
}
.rank-svg .rank-bar.active {
  opacity: 1;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.rank-svg .row-letter {
  fill: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 13px;
}
.rank-svg .you-line {
  stroke: var(--you);
  stroke-width: 2;
  stroke-dasharray: 5 3;
}
.rank-svg .you-label {
  fill: var(--you);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}
.no-hire-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--v-thin);
}
.chart-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--v-thin);
}

.error {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: #fbe9e3;
  border: 1px solid #e6b7a6;
  color: #7c3a25;
}

/* ---- «Η σειρά μου» ordered list (inside the form) ---- */
.pref-list {
  list-style: none;
  counter-reset: pref;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.pref-empty {
  color: var(--v-thin);
  font-size: 0.85rem;
}
.pref-item {
  counter-increment: pref;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}
.pref-item::before {
  content: counter(pref);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--deep);
  min-width: 1.2rem;
}
.pref-region {
  font-weight: 600;
}
.pref-controls {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
}
.pref-move,
.pref-remove {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}
.pref-move:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pref-remove:hover {
  background: #fbe9e3;
  border-color: #e6b7a6;
}

.pref-input:focus-visible,
.pref-add:focus-visible,
.pref-move:focus-visible,
.pref-remove:focus-visible {
  outline: 3px solid var(--shallow);
  outline-offset: 2px;
}

/* ---- Footer: suitcase identity, subtle ---- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: 2rem 3rem;
}
.suitcase {
  font-family: "Commissioner", sans-serif;
  font-weight: 500;
  color: #46626c;
  margin: 0 0 0.6rem;
}
.disclaimer {
  font-size: 0.82rem;
  color: #5a727c;
  margin: 0;
  max-width: 46rem;
}

@media (prefers-reduced-motion: no-preference) {
  #results[data-in] {
    animation: rise 0.4s ease both;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

/* Honour reduced-motion: strip the playful hover transforms/transitions. */
@media (prefers-reduced-motion: reduce) {
  .go,
  .go:hover,
  .go:active {
    transition: none;
    transform: none;
  }
}
