/* kolikočakam v3 — identity: "the shortest queue, lit". Deep spruce + one lime signal colour, warm paper,
   Bricolage Grotesque for headlines and the big numbers, Onest for text. The bar motif (logo = three queues sorted
   shortest first) repeats in the list bars, the home cards and the doctors teaser. */
:root {
  --paper: #f5f3ec;
  --surface: #ffffff;
  --sunk: #efece3;
  --ink: #0e1f1b;
  --ink-2: #4a5a55;
  --ink-3: #7d8a85;
  --line: #e3dfd3;
  --line-2: #d6d1c3;
  --deep: #0b3b30;         /* brand: spruce */
  --deep-2: #124a3d;
  --brand: #0d6650;
  --lime: #c6f16b;         /* signal: the shortest wait */
  --lime-ink: #10260b;
  --fast: #17714a;  --fast-bg: #ddf1e4;  --fast-bar: #2f9e6a;
  --mid: #8a5600;   --mid-bg: #fbedcc;   --mid-bar: #e0a63a;
  --over: #b42318;  --over-bg: #fbe3df;  --over-bar: #df5a48;
  --r-xl: 28px; --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 31, 27, .05), 0 8px 24px -8px rgba(14, 31, 27, .10);
  --shadow-lg: 0 2px 4px rgba(14, 31, 27, .06), 0 24px 48px -16px rgba(14, 31, 27, .22);
  --f: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fd: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f); -webkit-font-smoothing: antialiased; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
main { flex: 1 0 auto; padding-block: 1.5rem 5rem; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: 1rem; z-index: 9; }
h1, h2, h3 { font-family: var(--fd); line-height: 1.1; margin: 0 0 .45em; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 3rem; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
b, strong { font-weight: 650; }

/* ── header ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { flex: none; display: block; }
.wordmark { font: 600 1.32rem/1 var(--fd); letter-spacing: -0.035em; color: var(--ink); }
.wordmark b { font-weight: 800; color: var(--deep); }
.nav { display: flex; gap: .15rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: .42rem .95rem; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: #fff; background: var(--deep); }
.burger { display: none; }
.notice { margin: 0; padding: .65rem 1rem; background: var(--mid-bg); color: var(--mid); text-align: center; font-size: .95rem; }

/* ── buttons ────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: 650 1rem/1.2 var(--f); background: var(--deep); color: #fff;
  border: 0; border-radius: 999px; padding: .85rem 1.5rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--brand); color: #fff; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #d6f78f; color: var(--lime-ink); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(255,255,255,.08); color: inherit; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ── home: stage ────────────────────────── */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 3rem; align-items: center;
  background: var(--deep); color: #eaf3ee; border-radius: var(--r-xl); padding: clamp(1.75rem, 4.5vw, 3.75rem); isolation: isolate; z-index: 1; } /* no overflow:hidden: the place dropdown must hang out below */
.stage::before { /* faint queue lines, the logo motif at poster scale */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; border-radius: inherit;
  background: repeating-linear-gradient(180deg, transparent 0 34px, #fff 34px 36px);
  -webkit-mask: linear-gradient(100deg, #000 0%, transparent 55%); mask: linear-gradient(100deg, #000 0%, transparent 55%); }
.stage::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(19rem 19rem at calc(100% - 5rem) 1rem, rgba(198, 241, 107, .16), transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .01em; color: var(--lime); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198,241,107,.18); }
.stage h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .98; letter-spacing: -0.04em; margin-bottom: 1.1rem; }
.stage h1 em { font-style: normal; color: var(--lime); }
.stage .lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #b9cec6; max-width: 40ch; margin: 0; }
.stage-search { grid-column: 1 / -1; }
.stage-ai { max-width: none; margin: .9rem .25rem 0; font-size: .95rem; color: rgba(255,255,255,.78); }
.stage-ai span { color: var(--lime); margin-right: .2rem; }
.stage-ai a { color: var(--lime); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.stage-ai a:hover { color: #fff; }
.stage .search { box-shadow: var(--shadow-lg); border: 0; }

.sample { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 1rem 1.1rem .9rem; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.sample-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.sample-head a { color: var(--brand); text-decoration: none; }
.sample-list { list-style: none; margin: 0; padding: 0; }
.sample-list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: 0 .6rem; align-items: center; padding: .45rem 0; }
.sample-list li + li { border-top: 1px solid var(--line); }
.sl-rank { font: 700 .85rem var(--fd); color: var(--ink-3); text-align: center; }
.sample-list li:first-child .sl-rank { background: var(--lime); color: var(--lime-ink); border-radius: 6px; line-height: 1.5rem; }
.sl-name { font-weight: 600; font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-name small { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.sl-d { font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.sl-d b { font: 750 1.25rem var(--fd); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sl-bar { grid-column: 2 / -1; height: 5px; background: var(--sunk); border-radius: 9px; margin-top: .35rem; overflow: hidden; }
.sl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--fast-bar); }
.sample-list li:first-child .sl-bar i { background: #7fcf3a; }
.sl-last .sl-bar i { background: var(--over-bar); }
.sl-last .sl-d b { color: var(--over); }
li.sl-gap { display: block; text-align: center; color: var(--ink-3); padding: 0; line-height: 1; letter-spacing: .2em; border-top: 0 !important; }
li.sl-gap + li { border-top: 0; }
.sample-foot { margin: .6rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line-2); font-size: .85rem; color: var(--ink-2); }
.sample-foot strong { color: var(--ink); }

/* ── search card ────────────────────────── */
.search { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: .55rem; color: var(--ink); }
.tabs { display: flex; gap: .25rem; padding: .2rem .2rem .55rem; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: .42rem .95rem; border-radius: 999px; font-size: .92rem; }
.tabs a:hover { background: var(--paper); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .45rem; }
.bar .in { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); padding: .5rem 1rem .55rem; border: 1.5px solid transparent; transition: border-color .15s, background-color .15s; }
.bar .in:hover { border-color: var(--line-2); }
.bar .in:focus-within { border-color: var(--deep); background: var(--surface); }
.bar label { font-size: .75rem; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.bar input, .bar select { border: 0; background: transparent; font: 500 1.08rem var(--f); color: var(--ink); padding: .15rem 0; outline: none; width: 100%; min-width: 0; }
.bar select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a5a55' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 1.2rem; }
.bar input::placeholder { color: var(--ink-3); font-weight: 400; }
.bar .btn { border-radius: var(--r-md); padding-inline: 1.8rem; font-size: 1.05rem; }
.search-top { margin-bottom: .5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.chips a { display: inline-block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; font-weight: 550; font-size: .93rem; }
.chips a:hover { border-color: var(--deep); color: var(--deep); }
.chips-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin: 1.4rem 0 0; }

/* ── home blocks ───────────────────────── */
.block { margin-top: 4.5rem; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem; margin-bottom: 1.25rem; }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.pick { display: grid; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.pick:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.pick-name { font: 700 1.08rem var(--fd); letter-spacing: -0.015em; }
.pick-num { color: var(--ink-2); font-size: .9rem; }
.pick-num small { font-size: .85rem; }
.pick-num b { font: 800 2.3rem/1 var(--fd); color: var(--fast); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pick-track { position: relative; height: 8px; margin: .55rem 0 .35rem; border-radius: 9px;
  background: linear-gradient(90deg, var(--fast-bg), var(--mid-bg) 60%, var(--over-bg)); }
.pick-track i { position: absolute; top: 50%; translate: -50% -50%; border-radius: 50%; }
.pt-min { width: 12px; height: 12px; background: var(--fast-bar); box-shadow: 0 0 0 2.5px #fff; }
.pt-med { width: 10px; height: 10px; background: var(--ink); box-shadow: 0 0 0 2.5px #fff; }
.pt-max { width: 2px !important; height: 16px !important; border-radius: 1px !important; background: var(--over); }
.pick-meta { font-size: .82rem; color: var(--ink-3); }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; counter-reset: s; }
.step-list li { position: relative; padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--r-lg); background: var(--sunk); }
.step-list b { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--deep); color: var(--lime); font: 800 1.05rem var(--fd); margin-bottom: .9rem; }
.step-list h3 { margin-bottom: .35rem; }
.step-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.doc-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 3rem; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.75rem); }
.doc-teaser h2 { margin-top: 0; }
.doc-teaser .btn-lime { background: var(--deep); color: #fff; }
.doc-teaser .btn-lime:hover { background: var(--brand); color: #fff; }
.dt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dt-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: baseline; padding: .75rem .9rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.dt-list a:hover { background: var(--paper); color: var(--ink); }
.dt-label { font-weight: 650; }
.dt-num { font-size: .9rem; color: var(--ink-2); }
.dt-num b { font: 800 1.2rem var(--fd); color: var(--ink); }
.dt-bar { grid-column: 1 / -1; height: 8px; border-radius: 9px; background: var(--sunk); overflow: hidden; }
.dt-bar i { display: block; height: 100%; background: var(--fast-bar); border-radius: inherit; }

.trust { border-top: 1px solid var(--line-2); padding-top: 1.5rem; }
.trust p { margin: 0; color: var(--ink-2); max-width: 60rem; }
.trust strong { color: var(--ink); }

/* ── lists of hits ─────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.hit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.25rem; text-decoration: none; color: var(--ink); }
.hit:hover { background: #fbfaf6; color: var(--ink); }
.hit .name { display: block; font-weight: 650; }
.hit .meta { display: block; color: var(--ink-2); font-size: .9rem; }
.hit .chev { color: var(--ink-3); flex: none; }
.hit:hover .chev { color: var(--deep); }
.empty { margin-top: 2rem; }

/* ── service page ──────────────────────── */
.svc-head { padding-top: .5rem; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: .6rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.code { display: inline-block; font: 500 .8rem var(--f); letter-spacing: 0; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; margin-left: .4rem; vertical-align: .55em; }

.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .22rem; }
.seg a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: .42rem .95rem; border-radius: 999px; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="true"] { background: var(--deep); color: #fff; }
.ctl { display: grid; gap: .35rem; }
.ctl > span, .ctl label { font-size: .75rem; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.place { display: flex; gap: .4rem; }
.ctl select { font: 500 1rem var(--f); padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 12rem; }
.place .btn { padding: .55rem 1.1rem; }
.clear { font-size: .93rem; align-self: center; }

.verdict { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.v-main { background: var(--deep); color: #dce9e3; padding: 1.6rem 1.75rem; display: flex; flex-direction: column; }
.v-k { font-size: .88rem; font-weight: 600; color: var(--lime); margin: 0; }
.v-num { margin: .3rem 0 .2rem; font-size: 1.2rem; color: #b9cec6; }
.v-num b { font: 800 clamp(3.6rem, 8vw, 5.2rem)/.95 var(--fd); color: #fff; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.v-who { font-weight: 600; color: #fff; margin: 0 0 1.25rem; line-height: 1.35; }
.v-who span { font-weight: 400; color: #b9cec6; }
.v-act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.v-act .btn { padding: .7rem 1.15rem; font-size: .95rem; }
.v-act .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.v-side { padding: 1.4rem 1.6rem 1.2rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.v-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.v-stats div { border-left: 3px solid var(--line); padding-left: .75rem; }
.v-stats div:nth-child(2) { border-color: var(--over-bar); }
.v-stats div:first-child { border-color: var(--ink); }
.v-stats dt { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.v-stats dd { margin: 0; font: 800 1.75rem/1.1 var(--fd); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.v-stats dd small { font: 500 .85rem var(--f); color: var(--ink-2); letter-spacing: 0; }
.strip { width: 100%; height: auto; display: block; margin-top: .25rem; }
.s-over { fill: var(--over-bg); opacity: .6; }
.s-max { stroke: var(--over); stroke-width: 1.5; stroke-dasharray: 3 3; }
.s-med { stroke: var(--ink); stroke-width: 1.5; }
.s-lab { font: 600 11px var(--f); fill: var(--ink); }
.s-lab-max { fill: var(--over); }
.s-dot { stroke: #fff; stroke-width: 1.2; }
.s-dot.fast { fill: var(--fast-bar); } .s-dot.mid { fill: var(--mid-bar); } .s-dot.over { fill: var(--over-bar); }
.s-axis { stroke: var(--line-2); }
.s-tick { font: 400 11px var(--f); fill: var(--ink-3); }
.v-cap { font-size: .85rem; color: var(--ink-2); margin: 0; }

.prow { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(6rem, 11rem) 5.5rem auto; align-items: center; gap: .3rem 1.1rem; padding: .85rem 1.25rem; }
.prow:hover { background: #fbfaf6; }
.rank { font: 700 .9rem var(--fd); color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.list > .prow:first-child .rank { background: var(--lime); color: var(--lime-ink); border-radius: 8px; line-height: 1.8rem; }
.pinfo .f { font-weight: 650; overflow-wrap: anywhere; line-height: 1.3; }
.pinfo .w { color: var(--ink-2); font-size: .9rem; margin-top: .1rem; }
.flag { color: var(--over); font-weight: 600; }
.track { position: relative; display: block; height: 8px; background: var(--sunk); border-radius: 9px; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; }
.track i.fast { background: var(--fast-bar); } .track i.mid { background: var(--mid-bar); } .track i.over { background: var(--over-bar); }
.track em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--over); border-radius: 1px; opacity: .55; }
.days { text-align: right; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.days b { font: 800 1.55rem/1 var(--fd); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.days.fast b { color: var(--fast); } .days.mid b { color: var(--mid); } .days.over b { color: var(--over); }
.call { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .88rem; font-weight: 550; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; color: var(--ink); background: var(--surface); }
.call svg { color: var(--brand); }
.call:hover { border-color: var(--deep); color: var(--deep); }
.more { padding: .9rem 1.25rem; border-top: 1px solid var(--line); text-align: center; font-weight: 600; }

.legend-pills { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--ink-2); margin: .75rem 0 0; padding: 0; list-style: none; }
.legend-pills i { display: inline-block; width: .9rem; height: .5rem; border-radius: 9px; vertical-align: 1px; margin-right: .4rem; }
.legend-pills i.fast { background: var(--fast-bar); } .legend-pills i.mid { background: var(--mid-bar); } .legend-pills i.over { background: var(--over-bar); }
.legend-pills i.tick { width: 2px; height: .9rem; vertical-align: -2px; background: var(--over); opacity: .6; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.35rem; margin: 1.5rem 0; }
.cta p { margin: 0; flex: 1 1 20rem; }
.price { background: #fffbef; border-color: #f0e2b6; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.4rem; box-shadow: var(--shadow); }
.chart { width: 100%; height: auto; display: block; margin: .5rem 0 .25rem; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-3); font: 400 10.5px var(--f); }
.chart .area { fill: url(#none); fill: rgba(13, 102, 80, .09); }
.chart .med { fill: none; stroke: var(--deep); stroke-width: 2.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .min { fill: none; stroke: var(--fast-bar); stroke-width: 1.75; stroke-dasharray: 5 4; }
.chart .max { stroke: var(--over); stroke-width: 1.5; stroke-dasharray: 2 4; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--ink-2); padding: 0; list-style: none; margin: 0; }
.legend i { display: inline-block; width: 1.3rem; border-top: 2.75px solid var(--deep); vertical-align: middle; margin-right: .35rem; }
.legend .l-min i { border-top: 1.75px dashed var(--fast-bar); }
.legend .l-max i { border-top: 1.5px dashed var(--over); }
.delta { display: inline-block; font-weight: 650; border-radius: 999px; padding: 0 .5rem; font-size: .9rem; }
.delta.up { background: var(--over-bg); color: var(--over); }
.delta.down { background: var(--fast-bg); color: var(--fast); }

.notes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem; }
.notes li { background: var(--sunk); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; color: var(--ink-2); font-size: .95rem; }
.notes strong { display: block; color: var(--ink); font: 700 1.02rem var(--fd); letter-spacing: -0.01em; margin-bottom: .25rem; }

/* ── doctors ───────────────────────────── */
.doc { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 1rem 1.25rem; }
.doc:hover { background: #fbfaf6; }
.doc .who { font-weight: 650; font-size: 1.02rem; }
.doc .at { color: var(--ink-2); font-size: .9rem; grid-column: 1; }
.doc .side { grid-row: 1 / span 3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .4rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 650; padding: .22rem .65rem; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.badge.yes { background: var(--fast-bg); color: var(--fast); }
.badge.no { background: var(--sunk); color: var(--ink-3); }
.doc .load { font-size: .82rem; color: var(--ink-3); }
.resulthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 2.75rem 0 .9rem; }
.resulthead h2 { margin: 0; }

.hero { padding: 1.5rem 0 .5rem; }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.hero.band { background: var(--deep); color: #dce9e3; border-radius: var(--r-xl); padding: clamp(1.75rem, 4.5vw, 3.25rem); position: relative; isolation: isolate; z-index: 1; }
.hero.band::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(17rem 17rem at calc(100% - 5rem) 1rem, rgba(198, 241, 107, .14), transparent); }
.hero.band h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.hero.band .lead { color: #b9cec6; }
.hero.band .search { box-shadow: var(--shadow-lg); border: 0; margin-top: 1.5rem; }
.hero.band .chips-label { color: #9fbab0; }
.hero.band .chips a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.hero.band .chips a:hover { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* ── sources ───────────────────────────── */
.src { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.src li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.25rem; }
.src li strong { display: block; font: 700 1.02rem var(--fd); }
.src li span { color: var(--ink-2); font-size: .95rem; }

/* ── footer ─────────────────────────────── */
.foot { flex-shrink: 0; background: var(--deep); color: #b9cec6; font-size: .92rem; }
.foot a { color: #e5efe9; text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 3rem 0 2rem; }
.foot .wordmark { color: #fff; }
.foot .wordmark b { color: var(--lime); }
.foot-brand p { margin: .9rem 0 0; max-width: 40ch; }
.foot-nav { display: flex; flex-direction: column; gap: .45rem; }
.foot-nav span { font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: #86a399; margin-bottom: .2rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.1rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #93ada4; }
.foot-base p { margin: 0; }
.live-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lime); margin-right: .55rem; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(198,241,107,.2); }

/* ── responsive ─────────────────────────── */
@media (max-width: 960px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .sample { transform: none; }
  .stage .sample { order: 3; } /* one column: the search comes before the example */
  .verdict { grid-template-columns: 1fr; }
  .doc-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 1.5rem, 72rem); }
  .top-in { min-height: 0; padding: .6rem 0; }
  .stage { border-radius: var(--r-lg); }
  .bar { grid-template-columns: 1fr; }
  .bar .btn { padding: .9rem; }
  .step-list { grid-template-columns: 1fr; }
  .picks { gap: .6rem; }
  .pick { padding: .9rem 1rem; }
  .pick-num b { font-size: 1.9rem; }
  .v-stats dd { font-size: 1.4rem; }
  .prow { grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .35rem .8rem; padding: .85rem 1rem; }
  .prow .pbar { grid-column: 2 / -1; grid-row: 2; }
  .prow .days { grid-column: 3; grid-row: 1; }
  .prow .calls { grid-column: 2 / -1; justify-self: start; flex-direction: row; flex-wrap: wrap; margin-top: .5rem; }
  .hit { align-items: flex-start; }
  .doc { grid-template-columns: 1fr; }
  .doc .side { grid-row: auto; grid-column: 1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; margin-top: .35rem; }
  .place input { min-width: 0; width: 100%; }
  .place .tagf { width: auto; flex: 1 1 auto; }
  .ctl { width: 100%; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hit, .chips a, .call, .btn, .nav a, .seg a { transition: background-color .15s, border-color .15s, color .15s; }
}
@media (prefers-reduced-motion: reduce) { .pick:hover { transform: none; } }

/* ── place tag field ───────────────────── */
/* always ONE line high: tags + cursor share the row; overflow scrolls sideways (the dropdown lives outside the
   scrolling row so it is not clipped) */
.tagf { position: relative; cursor: text; min-width: 0; max-width: 100%; }
.tagf-row { display: flex; flex-wrap: nowrap; align-items: center; gap: .3rem; overflow: hidden; min-height: 1.75rem; } /* tags that do not fit fold into "+N" */
.tagf-row::-webkit-scrollbar { display: none; }
.tagf-list { display: contents; list-style: none; }
.tag { flex: none; display: inline-flex; align-items: center; gap: .15rem; background: var(--deep); color: #fff; font-weight: 600; font-size: .9rem;
  border-radius: 999px; padding: 0 .15rem 0 .65rem; line-height: 1.65; white-space: nowrap; }
.tag button { border: 0; background: transparent; color: inherit; font: 600 1rem var(--f); line-height: 1; width: 1.3rem; height: 1.3rem; border-radius: 999px; cursor: pointer; opacity: .75; }
.tag button:hover { background: rgba(255,255,255,.15); opacity: 1; }
.tagf-in { flex: 1 0 5rem; min-width: 5rem; }
.tag span { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.tag[hidden], .tag-more[hidden] { display: none; }
.tag-more { flex: none; list-style: none; font-weight: 700; font-size: .85rem; color: var(--deep); background: var(--sunk);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 .55rem; line-height: 1.6; cursor: pointer; }
.tagf.is-collapsed .tagf-in { flex-basis: 1.5rem; min-width: 1.5rem; }
.tagf-sug { position: absolute; z-index: 40; left: -1rem; right: -1rem; top: calc(100% + .65rem); list-style: none; margin: 0; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); max-height: 18rem; overflow: auto; }
.tagf-sug li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; border-radius: var(--r-sm); cursor: pointer; }
.tagf-sug li:hover, .tagf-sug li[aria-selected="true"] { background: var(--sunk); }
.tagf-sug small { color: var(--ink-3); }
.place { min-width: 0; max-width: 100%; }
.place .tagf { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .5rem .38rem .9rem; width: 22rem; max-width: 100%; }
.place .tagf:focus-within { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(11, 59, 48, .12); }
.place .tagf-in { border: 0; outline: none; font: 500 1rem var(--f); background: transparent; color: var(--ink); padding: .15rem 0; }
.place .tagf-sug { left: 0; right: 0; }

/* home: legend for the pick tracks; footer logo needs its own tile colour on the dark footer */
.key { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--ink-2); }
.key i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; vertical-align: 0; }
.key .k-min { background: var(--fast-bar); } .key .k-med { background: var(--ink); }
.key .k-max { width: 2px; height: .8rem; border-radius: 1px; background: var(--over); vertical-align: -2px; }
.foot .logo svg rect:first-child { fill: #17574a; }

/* service list: fixed columns so every bar starts and ends in the same place */
.prow { grid-template-columns: 2rem minmax(0, 1fr) 10rem 5rem 9.5rem; }
.prow .calls { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.call-raw { color: var(--ink-3); border-style: dashed; }
.ctl > span:not(.seg):not(.place) { text-transform: uppercase; }
.ctl > .seg, .ctl > .place { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink); }
.ctl > .seg a { font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.ctl > .seg a[aria-current="true"] { color: #fff; }

/* nav: the AI entry */
.nav-ai span { color: var(--brand); margin-right: .1rem; }
.nav a[aria-current="page"].nav-ai span { color: var(--lime); }
/* nav: language switch (SL / EN), a quiet code after the menu */
.nav .nav-lang { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--line); margin-left: .25rem; }
.nav-lang .lang-name { display: none; }
@media (max-width: 720px) {
  .nav .nav-lang { margin-left: 0; border: 0; font-size: 1rem; letter-spacing: 0; font-weight: 600; }
  .nav-lang .lang-code { display: none; } .nav-lang .lang-name { display: inline; }
}

/* home: AI / MCP band */
.ai-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; }
.ai-band h2 { margin-top: 0; }
.ai-band .eyebrow { color: var(--brand); }
.ai-band .eyebrow::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(13,102,80,.15); }
.ai-copy > p { color: var(--ink-2); }
.ai-tools { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ai-tools li { font: 500 .85rem ui-monospace, "SF Mono", Menlo, monospace; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .55rem; color: var(--ink-2); }
.ai-band .btn-lime { background: var(--deep); color: #fff; }
.ai-band .btn-lime:hover { background: var(--brand); color: #fff; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.msg { margin: 0; max-width: 92%; border-radius: 18px; padding: .75rem 1rem; font-size: .95rem; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--deep); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot p { margin: 0 0 .5rem; }
.msg.bot small { display: block; color: var(--ink-3); font-size: .78rem; border-top: 1px dashed var(--line-2); padding-top: .45rem; }
.tool { margin: 0; align-self: flex-start; font: 500 .78rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); background: var(--sunk); border-radius: 999px; padding: .25rem .7rem; }
.tool span { color: var(--brand); }
@media (max-width: 960px) { .ai-band { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .prow { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
  .prow .calls { justify-self: start; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
  .nav-ai span { display: none; }
}

/* /ai page */
.ai-hero .eyebrow { margin-bottom: .9rem; }
.mcp-url { display: flex; align-items: center; gap: .5rem; max-width: 40rem; margin-top: 1.5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; }
.mcp-url code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 1rem ui-monospace, "SF Mono", Menlo, monospace; color: #fff; }
.copy { font: 650 .85rem var(--f); border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; background: var(--lime); color: var(--lime-ink); }
.copy:hover { background: #d6f78f; }
.ai-note { font-size: .88rem; color: #9fbab0; margin: .75rem 0 0; }
.connect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.connect article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; min-width: 0; }
.connect h3 { margin: 0; }
.connect p.small { margin: 0 0 .75rem; }
.connect ol { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }
.connect ol li + li { margin-top: .3rem; }
.connect b { color: var(--ink); }
.connect code { font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; }
.connect pre { margin: 0 0 .6rem; background: var(--deep); color: #e3efe9; border-radius: var(--r-md); padding: .85rem 1rem; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.connect pre code { font-size: .85rem; }
.connect .copy { background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.connect .copy:hover { background: var(--line); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem; }
.tools li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.tools code { align-self: flex-start; font: 500 .78rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--brand); background: var(--fast-bg); border-radius: 6px; padding: .15rem .5rem; margin-bottom: .7rem; }
.tools h3 { margin-bottom: .3rem; }
.tools p { color: var(--ink-2); font-size: .95rem; margin: 0 0 .75rem; }
.tools .ask { margin: auto 0 0; padding: .6rem .85rem; background: var(--paper); border-radius: 14px 14px 14px 4px; color: var(--ink); font-size: .9rem; }
@media (max-width: 720px) { .connect { grid-template-columns: 1fr; } }
.ai-band { background: #eaf6cf; border: 1px solid #d5ebab; border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.75rem); }
.ai-band .ai-tools li { background: rgba(255,255,255,.6); border-color: #d5ebab; }
.ai-band .chat { box-shadow: var(--shadow-lg); border-color: transparent; }
.ai-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
#cmd-cc { white-space: pre-wrap; word-break: break-all; }

@media (max-width: 720px) {
  .hero.band h1 { font-size: 2rem; }
  .mcp-url code { font-size: .85rem; }
  .v-main { padding: 1.3rem 1.25rem; }
  .v-side { padding: 1.2rem 1.25rem 1rem; }
}
@media (max-width: 720px) {
  .tabs { flex-wrap: nowrap; }
  .tabs a { font-size: .84rem; padding: .4rem .7rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .tabs a { padding: .4rem .6rem; }
  .tabs .t-long { display: none; } /* "Čakalna doba" + "Zdravnik, ki sprejema" fit a 320 px phone */
  .stage { padding: 1.6rem 1rem 1.25rem; gap: 1.5rem; }
  .stage-copy, .stage-ai { padding-inline: .35rem; }
  /* the trend chart is drawn ~560 units wide and shrinks to ~290 px: scale its text back up */
  .chart { overflow: visible; }
  .chart .ax { font-size: 19px; }
  .v-act .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .stage .eyebrow { align-items: flex-start; }
  .stage .eyebrow::before { flex: none; margin-top: .4em; }
}

/* ── region map (service page) ─────────── */
.block-map .resulthead { margin-top: 2.75rem; }
.rmap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr); gap: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 1rem; box-shadow: var(--shadow); }
.rmap-fig { margin: 0; padding: .5rem; min-width: 0; }
.rmap-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.rg path { stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; transition: filter .15s, opacity .15s; }
.rg:hover path, .rg:focus-visible path { filter: brightness(1.08) saturate(1.1); }
.rg-hov { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: round; pointer-events: none; } /* drawn above all regions */
.rg:focus-visible { outline: none; }
.rg-none { fill: #e7e3d8; stroke: #fff; stroke-width: 1.4; }
.rg-sel { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.rl { pointer-events: none; }
.rl rect { fill: #fff; stroke: rgba(14,31,27,.12); stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(14,31,27,.25)); }
.rl-d { font: 800 14px var(--fd); fill: var(--ink); letter-spacing: -0.02em; }
.rl-name { font: 600 10.5px var(--f); fill: #fff; paint-order: stroke; stroke: rgba(14,31,27,.55); stroke-width: 2.5px; stroke-linejoin: round; }
.rl-none rect { fill: #f4f2ec; } .rl-none .rl-d { fill: var(--ink-3); } .rl-none .rl-name { fill: var(--ink-2); stroke: #fff; }
.rmap-key { position: relative; margin: .9rem .25rem 0; font-size: .82rem; color: var(--ink-2); }
.rk-ramp { display: block; height: 8px; border-radius: 9px; }
.rk-ticks { position: relative; display: block; height: 1.3rem; margin-top: .2rem; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rk-ticks span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.rk-ticks span:first-child { translate: 0 0; }
.rk-ticks span:last-child { translate: -100% 0; }
.rk-note { display: block; margin-top: .2rem; }
.rk-none, .rlist .r-empty .rsw { display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; background: #e7e3d8; vertical-align: -1px; margin: 0 .3rem 0 .2rem; }
.rlist { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); padding-left: 1rem; display: flex; flex-direction: column; justify-content: center; }
.rlist li + li { border-top: 1px solid var(--line); }
.rlist a, .rlist .r-empty { display: grid; grid-template-columns: .8rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .48rem .5rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.rlist a:hover { background: var(--paper); color: var(--ink); }
.rlist a.is-sel { background: var(--sunk); box-shadow: inset 3px 0 0 var(--ink); }
.rsw { width: .8rem; height: .8rem; border-radius: 4px; }
.rn { font-weight: 650; font-size: .92rem; line-height: 1.25; min-width: 0; }
.rn small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd { font-size: .78rem; color: var(--ink-2); white-space: nowrap; }
.rd b { font: 800 1.15rem var(--fd); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.r-empty { color: var(--ink-3) !important; }
.r-empty .rsw { margin: 0 !important; width: .8rem !important; height: .8rem !important; }
@media (max-width: 960px) {
  .rmap { grid-template-columns: 1fr; }
  .rlist { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: .5rem; }
}
@media (max-width: 720px) {
  .rmap { padding: .5rem; border-radius: var(--r-lg); }
  .rmap-fig { padding: .25rem; }
  .rl-name { display: none; }
}
[id] { scroll-margin-top: 5.5rem; }
.rmap { grid-template-columns: minmax(0, 1.85fr) minmax(15rem, 1fr); }
.rlist a, .rlist .r-empty { padding: .36rem .5rem; }
@media (max-width: 960px) { .rmap { grid-template-columns: 1fr; } }

/* ── home map ──────────────────────────── */
.homemap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem 2.5rem; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); }
.homemap h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hm-side > p { font-size: .95rem; }
.hm-picks { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 1.4rem; }
.hm-picks a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .85rem; }
.hm-picks a:hover { border-color: var(--deep); color: var(--deep); }
.hm-picks a[aria-current="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.hm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 1rem; }
.hm-facts div { border-radius: var(--r-md); padding: .7rem .85rem; background: var(--fast-bg); min-width: 0; }
.hm-facts .hm-worst { background: var(--over-bg); }
.hm-facts dt { font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--fast); }
.hm-worst dt { color: var(--over); }
.hm-facts dd { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-2); }
.hm-facts dd b { display: block; font: 750 1.05rem/1.2 var(--fd); color: var(--ink); }
.hm-facts dd span { font-weight: 650; color: var(--ink); }
.hm-facts dd small { display: block; font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-more { font-weight: 650; text-decoration: none; }
.hm-fig { margin: 0; min-width: 0; }
.hm-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 960px) { .homemap { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .hm-fig .rl-name { display: none; } .homemap { border-radius: var(--r-lg); } }

/* provider without a date (portal: "Prosti sprejem" or 0 days) — listed last, neutral, explained */
.days.nodate { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.pbar.nodate-why { font-size: .78rem; line-height: 1.3; color: var(--ink-3); }
.nodate-card h2 { margin-top: 0; }

/* Storitev suggestions: same look as the place list, anchored to the field box; names may wrap to two lines */
.bar .qs-sug { left: 0; right: 0; top: calc(100% + .4rem); max-height: 22rem; }
.qs-sug li { align-items: baseline; }
.qs-sug li span { line-height: 1.3; }
.qs-sug li small { flex: none; white-space: nowrap; }

/* ── phones: burger menu, compact hero + form ───────────────────────────── */
@media (max-width: 720px) {
  .top-in { flex-wrap: nowrap; min-height: 3.5rem; padding: .4rem 0; position: relative; }
  .burger { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); cursor: pointer; padding: 0; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; } .burger span::after { top: 6px; }
  .is-open .burger span { background: transparent; }
  .is-open .burger span::before { transform: translateY(6px) rotate(45deg); }
  .is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: calc(100% + .25rem); left: 0; right: 0; z-index: 31; flex-direction: column; gap: .15rem;
    border-radius: var(--r-lg); padding: .4rem; box-shadow: var(--shadow-lg); }
  .is-open .nav { display: flex; }
  .nav a { font-size: 1rem; padding: .75rem 1rem; border-radius: var(--r-md); }
  .nav-ai span { display: inline; }

  /* the example card repeats what the service page shows: not on phones */
  .stage .sample { display: none; }
  .stage h1 { font-size: clamp(2rem, 10vw, 2.6rem); margin-bottom: .7rem; }
  .stage .lead { font-size: 1rem; line-height: 1.5; }
  .bar .in { padding: .4rem .85rem .45rem; }
  .bar label { font-size: .68rem; }
  .bar input, .bar select { font-size: 1rem; }
  .bar .btn { padding: .75rem; }
  .stage-ai { font-size: .88rem; line-height: 1.5; }
}
@media (max-width: 480px) {
  .stage .eyebrow { display: none; }
  .stage { padding: 1.4rem .9rem 1.1rem; gap: 1.1rem; }
  .search { padding: .4rem; }
  .tabs { gap: .1rem; padding: .1rem .1rem .4rem; }
  .tabs a { font-size: .8rem; padding: .38rem .55rem; }
  /* home map facts: one per row so long region names (Osrednjeslovenska) fit */
  .hm-facts { grid-template-columns: 1fr; gap: .5rem; }
  .hm-facts div { padding: .55rem .8rem; }
  .hm-facts dd b { overflow-wrap: anywhere; }
  .dt-list a { grid-template-columns: 1fr; gap: .15rem; padding: .65rem .5rem; } /* name above the count */
  .hero.band { padding: 1.4rem .9rem 1.1rem; }
  .v-stats { gap: .5rem; }
  .v-stats div { padding-left: .5rem; }
  .v-stats dt { font-size: .72rem; line-height: 1.25; }
  .tag span { max-width: 8.5rem; } /* long region tags shorten with … so the cursor still fits */
  .rk-ticks span:last-child { display: none; } /* "več" collides with "maks." on a phone */
}

/* doctors: facility name links to its website (ZZZS institutions list) */
.doc .site { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .2em; }
.doc .site:hover { color: var(--deep); text-decoration-color: currentColor; }
.doc .ext { font-size: .8em; margin-left: .2rem; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* service page, phones: three-part bar with counts instead of the dot strip */
.dist { display: none; }
@media (max-width: 480px) {
  .strip, .v-cap { display: none; } /* the bar's key says the same */
  .dist-key .nodate { background: var(--line-2); }
  .dist { display: block; margin-top: .25rem; }
  .dist-bar { display: flex; gap: 3px; height: 12px; }
  .dist-bar i { border-radius: 4px; min-width: 6px; }
  .dist-bar .fast, .dist-key .fast { background: var(--fast-bar); }
  .dist-bar .mid, .dist-key .mid { background: var(--mid-bar); }
  .dist-bar .over, .dist-key .over { background: var(--over-bar); }
  .dist-key { list-style: none; margin: .65rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; color: var(--ink-2); }
  .dist-key i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
  .dist-key b { color: var(--ink); font-weight: 700; }
}

/* home pick cards (Cowork mockup): one shared 0–365-day axis, band fastest → median, labels on the marks */
.pick-when { font-size: .82rem; color: var(--ink-2); margin-top: -.2rem; }
.pk { display: block; margin: .35rem 0 .15rem; }
.pk-row { position: relative; display: block; height: 1.1rem; }
.pk-lab { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: .72rem; font-weight: 650; color: var(--ink-2); line-height: 1.1rem; }
.pk-lab.al-l { transform: none; }
.pk-lab.al-r { transform: translateX(-100%); }
.pk-lab.pk-max { color: var(--over); }
.pk-track { position: relative; display: block; height: 10px; margin: .1rem 0; background: var(--sunk); border-radius: 9px; }
.pk-m { position: absolute; top: 3px; bottom: 3px; width: 1px; background: rgba(14, 31, 27, .14); }
.pk-band { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: 9px; background: linear-gradient(90deg, rgba(47, 158, 106, .55), rgba(224, 166, 58, .55)); }
.pk-dot { position: absolute; top: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--fast-bar); box-shadow: 0 0 0 2.5px #fff; }
.pk-med { position: absolute; top: -3px; bottom: -3px; width: 3px; translate: -50% 0; border-radius: 2px; background: var(--ink); }
.pk-rok { position: absolute; top: -6px; bottom: -6px; width: 2px; translate: -50% 0; background: var(--over); }

/* provider list (Cowork mockup): no bars; days · "termin okoli" date · status chip against the legal maximum */
.prow { grid-template-columns: 2rem minmax(0, 1fr) 5.5rem 7.5rem 8.5rem 9.5rem; }
.prow .meta { display: contents; }
.prow .when { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prow .m-lab { display: none; }
.prow-head { padding-block: .6rem; border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.prow-head:hover { background: none; }
.prow-head .h-days { text-align: right; }
.chip { justify-self: start; font-size: .78rem; font-weight: 650; border-radius: 999px; padding: .18rem .6rem; white-space: nowrap; }
.chip.fast { background: var(--fast-bg); color: var(--fast); }
.chip.mid { background: var(--mid-bg); color: var(--mid); }
.chip.over { background: var(--over-bg); color: var(--over); }
.nodate-why { font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
@media (max-width: 720px) {
  .prow-head { display: none; }
  .prow { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
  .prow .days { grid-column: 3; grid-row: 1; }
  .prow .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; grid-column: 2 / -1; grid-row: 2; }
  .prow .m-lab { display: inline; }
  .prow .calls { grid-row: 3; }
}
.prow .calls:empty { display: none; }

/* ── report form (/sporoci) ─────────────────────────────────────────────── */
.narrow { max-width: 40rem; }
.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form-field > span { font-weight: 650; margin-bottom: .45rem; display: block; }
.form-kinds { display: flex; flex-wrap: wrap; gap: .5rem; }
.form-kinds label { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.form-kinds label:has(input:checked) { border-color: var(--deep); background: var(--fast-bg); }
.form-kinds input { accent-color: var(--deep); margin: 0; }
.form-field { display: grid; gap: .3rem; }
.form-field textarea, .form-field input { font: 400 1rem/1.45 var(--f); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: .7rem .8rem; width: 100%; box-sizing: border-box; }
.form-field textarea:focus, .form-field input:focus { outline: 2px solid var(--deep); outline-offset: 1px; background: var(--surface); }
.form-field [aria-invalid="true"] { border-color: var(--over); }
.form-about { margin: 0; padding: .6rem .8rem; background: var(--paper); border-radius: var(--r-md); }
.form-err { margin: 0; padding: .7rem .9rem; color: var(--over); background: var(--over-bg); border-radius: var(--r-md); font-weight: 550; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.report { font-size: .8rem; color: var(--ink-3); }

/* "alert me when someone starts accepting" on /zdravniki results (src/pages/obvestila/) */
.alert-cta { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap;
  margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.alert-cta p { margin: 0; flex: 1 1 18rem; }
.alert-cta .btn { padding: .6rem 1.1rem; }
