
.dt-head{max-width:660px;margin-bottom:20px}
.dt-head h1{font-size:26px;line-height:1.25;letter-spacing:-.02em}
.dt-head p{margin-top:10px;font-size:17px;line-height:1.65;
  color:hsl(var(--muted-foreground))}

.dt-form{display:flex;gap:10px;margin-bottom:8px;flex-wrap:wrap}
/* IMPORTANT: an unstyled control is drawn by the BROWSER, and the page
   declares `color-scheme: light dark` -- so a bare `<input>` follows the
   reader's OPERATING SYSTEM rather than this product's theme. On a light site
   with a dark OS it renders black, which is what "the search bar is black in
   light mode" was. It is not a colour to correct; it is a control that was
   never dressed.

   Same treatment as `.filters input[type=search]` on `/razpisi`, which is the
   sibling of this box: card ground, hairline border, our own ink. 16px
   because anything smaller makes iOS zoom the page in on focus and never zoom
   back out, and this is the first control on the screen. */
.dt-form input{flex:1;min-width:200px;font:inherit;font-size:17px;
  padding:10px 12px;border:1px solid hsl(var(--border));
  border-radius:var(--radius);background:hsl(var(--card));
  color:hsl(var(--foreground))}
.dt-form input::placeholder{color:hsl(var(--muted-foreground))}
.dt-form input:focus{outline:2px solid hsl(var(--primary));outline-offset:-1px}
.dt-tries{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}

.dt-hit{padding:16px 20px;border-top:1px solid hsl(var(--border))}
.dt-hit:first-child{border-top:0}
.dt-what{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.dt-what a{font-size:15px;font-weight:640;line-height:1.4}
.dt-meta{font-size:13.5px;color:hsl(var(--muted-foreground));
  font-variant-numeric:tabular-nums}
.dt-file{display:flex;align-items:center;gap:8px;margin-top:8px;
  font-size:13.5px;color:hsl(var(--muted-foreground))}
.dt-file svg{width:15px;height:15px;flex:none}
.dt-file a{color:inherit;text-decoration:none;
  overflow-wrap:anywhere}
/* The quoted clause. Indented and quieter than the title: it is evidence for
   the row above it, not a heading of its own. */
.dt-snip{margin-top:10px;padding-left:12px;
  border-left:2px solid hsl(var(--border));
  font-size:15px;line-height:1.65;color:hsl(var(--muted-foreground));
  overflow-wrap:break-word}
/* ⚠️ A NEUTRAL TINT since 2026-11-06 (`--hit-tint`), as the tender page's
   `mark.dem`: the found words were ACT_FIRST's clay, and a search hit is not
   something to do first. The fallback is the old look's clay. */
.dt-snip mark{background:hsl(var(--hit-tint,var(--warn) / .22));
  color:hsl(var(--foreground));
  padding:0 2px;border-radius:3px;font-weight:600}
.dt-pager{display:flex;gap:10px;align-items:center;margin-top:20px}
@media (max-width:520px){
  .dt-hit{padding:14px 16px}
}

/* ---------- the guided tour: the demo AND the application ---------- */
/* ⚠️ THE SAME BOX AS `.theme-toggle`, on purpose and not by coincidence.
   These two sit next to each other and are the bar's utility controls: 34px,
   9px radius, hairline, card ground, muted ink. Giving the tour its own
   geometry would put three different button shapes in a four-control bar.
   The one thing it does NOT copy is `.cop-open`'s fill -- see `launcher()`.
   Not re-declaring `.theme-toggle` itself: this sheet is injected after BASE
   and would silently win the cascade, which is the defect
   `tests/test_consistency.py` exists to catch. */
.tour-dock{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;gap:8px;
  align-items:center}
.tour-card{position:fixed;right:16px;bottom:16px;z-index:81;
  width:min(370px,calc(100vw - 32px));
  background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;
  box-shadow:var(--shadow-lg);padding:16px 20px}
.tour-card h3{font-size:17px;margin:0 0 6px}
.tour-card p{margin:0 0 8px;font-size:15px;line-height:1.55;
  color:hsl(var(--muted-foreground))}
.tour-card p b{color:hsl(var(--foreground))}
.tour-card .tour-of{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:hsl(var(--muted-foreground));font-weight:600;margin-bottom:4px;display:block}
.tour-card .tour-btns{display:flex;gap:8px;align-items:center;margin-top:12px}
/* ⚠️ `font-family:inherit`, BECAUSE A BUTTON DOES NOT INHERIT ONE. Chrome's
   UA stylesheet sets `font: 400 13.333px Arial` on `<button>`, and only
   controls carrying `.btn` are saved by its own inherit. Measured across 18
   rendered screens: this was Arial on 16 of them, nine instances each -- the
   only non-Inter text in the signed-in product. */
.tour-card .tour-btns .tour-skip{margin-left:auto;font-family:inherit;
  font-size:13.5px;
  color:hsl(var(--muted-foreground));background:none;border:0;cursor:pointer;
  text-decoration:none}
/* ⚠️ THE WAY OUT WAS 16px TALL, AND ON A PHONE IT IS THE ONLY ONE.
   `Nazaj` and `Naprej` carry `.btn`, which `theme.BASE` gives a 44px floor
   on a coarse pointer; this is a bare button and is excluded from that on
   purpose (`button.link` is a word in a sentence). Measured at 390px:
   73x16 against its two neighbours' 44. Escape closes the tour and a phone
   has no Escape, so a reader who wanted out had a 16px target or nothing. */
@media (pointer:coarse){
  .tour-card .tour-btns .tour-skip{min-height:44px;
    display:inline-flex;align-items:center}
}
/* The spotlight is an outline, never a full-page scrim: a scrim hides the
   screen the step is about, which is the one thing the visitor came to see.

   ⚠️ AND FOR A WHILE THAT COMMENT DESCRIBED SOMETHING THIS RULE DID NOT DO.
   It carried `box-shadow:0 0 0 9999px hsl(var(--foreground)/.10)`, and a
   9999px spread IS a full-page scrim -- the sentence above and the
   declaration under it disagreed, which `CLAUDE.md` names as its own defect
   shape. Reported by the user as the guided tour "switching to dark mode".
   Measured in light theme at 1024x740: the page ground went (247,247,248) to
   (223,224,225) and the white rail to (231,232,232), a 24-level wash over
   everything. The theme never changed -- `data-theme` stayed `light` -- but
   a near-black veil across the whole screen is indistinguishable from one.

   ⚠️ It also inverted with the theme, which is the deeper fault: the tint is
   `--foreground`, so in DARK mode the same rule paints a WHITE veil and
   lightens the page. A highlight must not be made of the ink colour.

   What replaces it is emphasis on the target instead of suppression of
   everything else: a bounded halo in `--primary`, which reads the same in
   both themes and touches nothing outside the element. */
.tour-lit{position:relative;z-index:2;outline:2px solid hsl(var(--primary));
  outline-offset:5px;border-radius:10px;
  box-shadow:0 0 0 6px hsl(var(--primary)/.14);
  /* ⚠️ THE ANCHOR IS USUALLY A WHOLE REGION, NOT A CONTROL, and on a phone
     that is the difference between a tour and a shrug. `feed` is the entire
     `.trow-list` and measured **4685px** tall on `/ujemanja`; `izjava` is the
     ten-question declaration at 1845px. Both are the right things to point
     at -- the step describes the region -- and both are far taller than an
     844px screen.
     `scrollIntoView` asked to centre, which centres the MIDDLE of that, so
     tour landed 1928px INTO the feed: rows with no heading, no first row and
     no context. The script asks for `start` now, and this is the room the
     sticky topbar needs (72px desktop, 64px phone) plus air, so the top of
     the described thing lands under the chrome rather than behind it. Same
     number as `.content [id]` in `views.CSS`, for the same reason. */
  scroll-margin-top:96px}
@media (max-width:900px){
  /* ⚠️ NOTHING FLOATS OVER THE CONTENT ON A PHONE. CLAUDE.md already made
     back-to-top `display:none` under 900px for this reason, and the tour
     dock walked straight into it: a pill sitting on the last band of the
     overview, on a 390px screen where every pixel is content. The bar at the
     top of every demo screen is already there, so the way in goes there. */
  .tour-dock{display:none}
  /* ⚠️ ABOVE THE TAB BAR, not on it. The card was written when the phone
     had no bottom navigation; adding one put 45px of card over it, so the
     tour covered the way out of the tour.
     ⚠️ AND THE NUMBER DRIFTED. This said "53px of bar plus a gap" and set
     72px, which was 53 + 19. The tabs went to 62px on 2026-08-31 (`CLAUDE.md`
     records the argument: 44 is the floor for a control you aim at ONCE, and
     these are tapped all evening), so the gap silently became 9px against a
     63px bar and the card read as resting on the navigation. 63 + 19. */
  .tour-card{right:8px;left:8px;width:auto;
    bottom:calc(82px + env(safe-area-inset-bottom))}
}

.demo-bar{background:hsl(var(--primary));color:hsl(var(--primary-foreground));
  padding:8px 0;font-size:13.5px}
.demo-bar .container{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.demo-bar b{font-weight:600}
.demo-bar span{opacity:.85}
.demo-bar a,.demo-bar button{color:inherit;font-weight:600;background:none;
  border:0;cursor:pointer;font-size:inherit;font-family:inherit}
.demo-bar a{margin-left:auto}
@media (max-width:900px){
  /* The bar is chrome on a screen that has 390px of it. Two lines, no
     third sentence, and the tour entry sits at the end of it. */
  .demo-bar{padding:8px 0;font-size:13.5px}
  .demo-bar .container{gap:4px 10px}
  .demo-bar .demo-long{display:none}
  /* ⚠️ THE FIRM'S NAME GOES, AND ONLY ON A PHONE. Measured at 390px: this
     strip wrapped to four lines and took ~105px off the top of EVERY
     signed-in screen -- on the one screen whose whole recent work was
     getting something actionable above the fold.
     What may not go is the claim: "izmišljeno podjetje" is the sentence that
     stops a visitor concluding the product invented a real profile, and it
     stays in full. The NAME is what goes, because it is redundant here --
     the greeting two lines below states it, and every screen carries it in
     the account chip. */
  .demo-bar .demo-firm{display:none}
  .demo-bar a{margin-left:0}
}
.demo-bar .demo-tour-link{font-weight:600;text-decoration:none}
@media (min-width:901px){.demo-bar .demo-tour-link{display:none}}
