@layer reset, tokens, base, layout, components, utilities;

/*
  Cascade layer order, declared once, source order settles every conflict
  between layers so no rule in a later layer has to out-specificity an
  earlier one. Layout, components and utilities are intentionally empty in
  this plan; later plans in this phase fill them in.
*/

@layer tokens {
  /*
    Single palette (D-02: sage deleted, no runtime palette attribute,
    no palette selector). Every color-role value below is a literal
    6-digit hex — never a reference to another token and never a
    blended/functional color value, so tools/check-contrast.sh can
    parse every pair.
  */
  :root {
    /* Warm paper — ground and surfaces (D-01, adopted wholesale from
       .planning/sketches/themes/default.css) */
    --color-bg:            #F7F1E8;
    --color-bg-alt:        #EFE6D8;
    --color-surface:       #FFFCF7;
    --color-surface-sunk:  #F1E9DC;
    --color-border:        #D9CBB6;
    --color-border-strong: #6F6257;

    /* Ink */
    --color-ink:           #2B2621;
    --color-ink-soft:      #5A4F45;
    --color-muted:         #6F6257;

    /* Accent */
    --color-primary:       #99512A;
    --color-primary-deep:  #7A3F20;
    --color-primary-soft:  #EBD9C7;
    --color-focus:         #7A3F20;

    /*
      Ink for the solid-primary navigation pill (D-16 defect 2,
      SHELL-01): a literal hex, never a var() reference, so
      tools/check-contrast.sh's parser can measure it against
      --color-primary directly instead of the pair going unmeasured.
    */
    --color-on-primary: #FFFFFF;

    /*
      Declared but not yet consumed by any shipped rule (RESEARCH.md
      Open Question 3): tools/check-contrast.sh emits no row for
      either until some later phase's rule actually pairs one of these
      with a foreground/background -- a pair nobody wrote is measured
      by nobody.
    */
    --color-good: #3F6F4A;
    --color-info: #3F6F63;

    /* Shape (D-03: sketch wins on shape) */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 999px;

    /* Shadow (D-03: sketch wins on shadow), warm-tinted, never neutral grey */
    --shadow-sm: 0 1px 2px rgba(80, 58, 36, 0.07);
    --shadow-md: 0 4px 14px rgba(80, 58, 36, 0.09);
    --shadow-lg: 0 12px 32px rgba(80, 58, 36, 0.12);

    /*
      D-04 REVERSED, owner decision 2026-09-28: "please also use the
      fonts from the sketch throughout the pages."

      D-04 put --font-serif on h1/h2/h3. Checked against the sketches,
      that came from the wrong variant: sketch 001's recorded winner is
      variant A ("Soft surfaces", winner: "A" in its README frontmatter),
      and A keeps headings on the system sans exactly as v1.0 ships.
      Serif headings are variant B's idea -- "Warm serif voice", the
      variant that lost. Sketch 007 likewise sets no font-family on its
      h1/h2, so they inherit sans. The chrome was ported from A while
      the type was ported from B, and the mismatch is what the owner saw.

      Headings are therefore sans now, and --font-serif has no consumer.
      It is kept, not deleted: the stack is identical to the sketch
      theme's, so it costs nothing and is here if a later phase wants a
      serif accent. System-only stack -- no network font request, ever.
    */
    --font-serif: Georgia, "Palatino Linotype", Palatino, Cambria, "Times New Roman", serif;
    --leading-prose: 1.68;

    /* System font stack — no network font request, ever */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing scale — v1.0 values kept per D-03 */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    /* The sketch's 4.5rem (was v1.0's 4rem per D-03). No consumer today. */
    --space-2xl: 4.5rem;

    /*
      Fluid type scale. Every clamp() minimum term is written in rem so it
      can never be scaled away by an inherited percentage or a bare
      viewport unit. --text-base's minimum term is exactly 1rem, so body
      text can never render below 16px.

      D-03 PARTLY REVERSED, owner decision 2026-09-28 after diffing the
      computed tokens of the built page against the sketch's: the scale
      now matches .planning/sketches/themes/default.css exactly.

      D-03 had kept v1.0's values for --text-2xl, --text-3xl, --measure
      and --space-2xl while adopting the sketch's palette and spacing
      around them. That left headings slightly smaller and flatter than
      the sketch's at every viewport, which is what the owner kept
      seeing as "the page title styling is still a bit off". The four
      tokens below and h1's line-height are now the sketch's.

      --text-xs is NEW here, and its absence was a live defect rather
      than a stylistic gap: the .native-note rule already referenced
      var(--text-xs), which resolved to nothing because no such token
      existed, so that declaration was silently dropped by every
      browser. Copying the sketch's definition fixes it.

      --text-sm, --text-base, --text-lg and --text-xl were already
      identical to the sketch's and are unchanged.
    */
    --text-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
    --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.95rem);
    --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
    --text-2xl: clamp(1.75rem, 1.5rem + 1.1vw, 2.35rem);
    --text-3xl: clamp(2.1rem, 1.7rem + 1.9vw, 3.1rem);

    /*
      Prose measure — the cap on LINE LENGTH, not on page width. It
      applies to running prose only; tables, card grids, the accordion
      and the gallery are uncapped and use the full --wrap-max.

      75ch, owner decision 2026-09-28 ("yes make it wider, lets try 75
      first"), raised from the sketch's 62ch once every page body moved
      from .wrap-text to .wrap and the paragraphs started reading narrow
      against the full-width furniture beside them. v1.0 was 60ch.

      75ch is the top of the usual comfortable band rather than a
      middle: past roughly this point the return sweep gets unreliable
      -- the eye loses which line it is coming back to -- and this
      site's readers are largely older. If it reads long, the next step
      down is 68–70ch, not back to 62.
    */
    --measure: 75ch;

    /*
      Breakpoint (D-08/D-09): a custom property is not valid inside a
      media-query prelude, so this token is the single written record
      of the site's one phone threshold — the nav breakpoint rule below
      must repeat the literal 30rem, not reference this token. A second
      literal, 29.99rem, appears only in cenik's price-table stacking
      prelude and has no token of its own: D-09 marks that value
      provisional, replaced outright by Phase 8's 007 card swap, and a
      settled-looking custom property would misrepresent that. At a
      16px root, 29.99rem is 479.84px and 30rem is 480px, so no
      integer-pixel viewport can satisfy both preludes at once; both
      are expressed in rem, so a non-default root font size scales the
      pair together and can never invert their order.
    */
    --bp-phone: 30rem;

    /*
      Owner decision, 2026-09-28: "the page in full width should have
      1280 column, narrower is 768 and smallest (mobile) 375, as in
      sketches, currently we have single width and it looks too narrow
      on pc screen." Those are the three widths the sketch harness
      tests at (003's stage buttons: 375 / 768 / 1280).

      This reopens SHELL-03. Plan 06-05 collapsed the stylesheet to one
      threshold and plan 06-07's tools/check-shell.sh asserts the
      breakpoint set is EXACTLY {30rem, 29.99rem} -- that gate will go
      red until it is re-recorded against this set. Deliberate, owner-
      directed, and flagged rather than worked around: --bp-phone stays
      as the price-table's partner.

      --bp-nav is the threshold at which the six-pill row gives way to
      the disclosure menu. It is 72.5rem (1160px), set by the owner on
      2026-09-28 after watching the row break at that width. The name
      is --bp-nav, not --bp-tablet as it was when this sat at 768px:
      1160px is a laptop measurement, and a token called "tablet" would
      have lied to whoever read it next.

      Note where it falls -- just above --wrap-max (72rem / 1152px). The
      pills stay horizontal only while the viewport is wider than the
      content column itself, which is exactly the condition under which
      six Czech labels as long as "Dum s pecovatelskou sluzbou" fit on
      one row beside the brand.

      Same rule as --bp-phone: a custom property is not valid inside a
      media-query prelude, so the rule below repeats the literal
      72.5rem.
    */
    --bp-nav: 72.5rem;

    /*
      The full-width content column: the sketch's 72rem (1152px).

      This went to 80rem (1280px) earlier in the review, when the owner
      reported the page looking too narrow on a desktop screen. That
      diagnosis turned out to be wrong: what was narrow was
      .page-grid > main at --measure, not the wrapper. Widening the
      wrapper did not fix it and cost the sketch's outer margin --
      at a 1271px window, a 72rem cap leaves 59.5px of auto margin each
      side while an 80rem cap leaves none, since 1280 exceeds the
      window. The owner measured that difference and chose the sketch.
    */
    --wrap-max: 72rem;
  }
}

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
  }
}

@layer base {
  body {
    background-color: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    /*
      var(--leading-prose), not a hardcoded 1.6. The token was defined
      at 1.68 and had NO consumer anywhere in the stylesheet while body
      carried a different literal -- so the sketch's prose leading was
      never actually applied. Same defect shape as the undefined
      --text-xs: a token and its intended consumer drifting apart
      silently. Found by the owner diffing computed styles.
    */
    line-height: var(--leading-prose);
  }

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

  /*
    Fluid heading scale (FOUND-08) -- every heading size comes from a
    clamp() token, never a fixed px/rem literal, so no heading is a
    fixed size at any viewport width.
  */
  /*
    Sans headings, per the winning sketch variant (see the --font-serif
    note in the tokens block). The negative tracking is 001-A's and
    007's own: both set letter-spacing: -.015em on h1.
  */
  h1 {
    font-size: var(--text-3xl);
    /* The sketch's 1.12, not v1.0's 1.2 -- tighter, so a three-line
       opener heading reads as one block rather than three rows. */
    line-height: 1.12;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: var(--text-2xl);
    line-height: 1.25;
  }

  h3 {
    font-size: var(--text-xl);
    line-height: 1.3;
  }

  p,
  li {
    font-size: var(--text-base);
  }

  /*
    Links use --color-primary-deep, never --color-primary (Pitfall 1,
    carried from v1.0): tools/check-contrast.sh measures primary-deep
    on bg at 7.31:1, clearing the 4.5:1 body-text floor; the lighter
    --color-primary is reserved for large text and non-text UI, not
    body-size link text.
  */
  a {
    color: var(--color-primary-deep);
  }

  blockquote {
    margin: var(--space-md) 0;
    padding: var(--space-sm) var(--space-md);
    border-left: 0.25rem solid var(--color-border);
  }

  /*
    Images reserve space via their intrinsic width/height attributes
    but must still shrink to fit a narrow viewport -- max-width: 100%
    lets the intrinsic aspect ratio scale down without ever forcing a
    horizontal scrollbar (LAYOUT-01).
  */
  img {
    max-width: 100%;
    height: auto;
  }
}

@layer layout {
  /*
    .page-grid, .page-grid > * and .page-grid > main lived here and are
    gone: every one of the sixteen pages is now composed to its sketch
    and none carries that wrapper. Removed rather than kept staged,
    since git holds it. The one declaration worth rescuing was
    .page-grid > main's overflow-wrap guard, which has moved to .prose
    below -- it stops a single unbreakable token (a long URL, a long
    compound word) widening the container past a 320px viewport, and it
    breaks at grapheme-cluster boundaries so a Czech word carrying
    diacritics is never split mid-grapheme.
  */

  /*
    This layer carries no media-query rule of its own today (D-08/
    D-09 retired the layer's only breakpoint-gated rule -- see CR-01
    below -- and the project's remaining breakpoint literals now live
    in @layer components, on the nav and price-table rules, repeating
    the --bp-nav and --bp-phone tokens respectively, per this file's
    own tokens-block comment).

    CR-01 (01-REVIEW.md): a two-column .page-grid rule, keyed to the
    project's old large-viewport breakpoint token (since deleted --
    minmax(0, 20rem) minmax(0, 1fr)), used to live here for an
    "eventual navigation column" per 01-03-PLAN.md:278-279. This page
    only ever supplies one .page-grid child (<main>), so CSS Grid
    auto-placement confined it to the 20rem track and left the 1fr
    track blank at every wide viewport. Removed until a future page
    actually adds a second grid child; .page-grid > main's
    max-width: var(--measure) is the single column's line-length
    control in the meantime (formerly .prose's job -- .prose itself
    was retired in plan 06-01 once this universal rule covered every
    page, including the 13 whose <main> carries no class at all).
  */

  /*
    003-B frame utilities (D-06/D-16), ported as authored rather than
    re-derived. .wrap caps and centres chrome content at the same
    72rem contract .page-grid already carries above -- byte-for-byte
    the same three declarations -- which is what gives chrome and
    page content one shared left edge now that header/footer are
    full-bleed surfaces (D-16 defect 1) rather than centred boxes.
    .wrap-text shares the same two centring declarations but caps at
    64ch, 003-B's own literal for it. .band is a full-bleed band's block
    padding; .band-tint is its tinted background.

    All three were staged unused in Phase 6 for the page interiors to
    adopt. index.html is the first page to do so, under 003-B's
    centred-column-and-band composition; the remaining pages follow as
    each port lands.
  */
  /*
    Gutter is padding again, at the owner's request -- the alignment
    they reported was a page-zoom artefact, not a layout defect.

    What does NOT come back is the cause of the discrepancy that WAS
    real in the CSS: .opener used the `padding` SHORTHAND
    (`var(--space-xl) 0 var(--space-lg)`), and its `0` cancelled the
    horizontal padding set here, since .opener sits on the same element
    as .wrap. .opener now sets padding-block only, so it contributes its
    vertical rhythm without touching the wrapper's gutter.

    The rule for anything added to a .wrap element later: set
    padding-block, never the padding shorthand.
  */
  .wrap {
    max-width: var(--wrap-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
  }

  /*
    .wrap-text (003-B's 64ch text wrapper) and .wrap-text .prose lived
    here and are gone. Every page body moved to .wrap when the owner
    asked for pecovani's width, which left both without a consumer.
    What .wrap-text had been quietly providing was the CENTRING; that
    is now on .band .prose and .wrap.page-head, where it is stated
    rather than inherited from a wrapper's name.
  */

  /*
    003-B opens its prose band with an h2 carrying an inline
    margin-top:0, because .prose h2 otherwise adds --space-xl on top of
    the band's own padding. Expressed as a rule rather than an inline
    style so every ported page inherits it.
  */
  .prose > :first-child {
    margin-top: 0;
  }

  .band {
    padding: var(--space-xl) 0;
  }

  .band-tint {
    background: var(--color-bg-alt);
  }

  /*
    Owner, 2026-09-29: "if there is a colored box above footer there
    should be space under it (eg. aktuality, older news)."

    A tinted band that is the last thing in <main> runs straight into
    the footer's own surface, and the two colours meet on the footer's
    1px border with nothing between them -- the band reads as part of
    the footer rather than as the end of the page. A band of page
    ground underneath separates them.

    Scoped to the LAST tinted band of a page only. A tinted band in the
    middle of a page is meant to butt against the plain band after it --
    that alternation is 003-B's rhythm and is not what was reported.
  */
  /*
    :last-of-type, not :last-child. kontakty ends <main> with the
    photo-viewer <dialog>, which is a real element and would make
    :last-child miss the band it follows. :last-of-type counts sections
    only, which is what "the last band on the page" means.
  */
  main > section.band-tint:last-of-type {
    margin-bottom: var(--space-xl);
  }
}

@layer components {
  /*
    Radius scope (SHELL-04, plan 06-05 Task 2): the panel- and
    control-shaped elements that exist today take border-radius from
    the existing --radius-* scale, one step per kind -- the larger
    page-level surface takes the larger step, the small chips and
    controls take the smaller one. Panels: #photo-viewer (--radius-lg,
    the largest surface among these), .staff-card and blockquote
    (--radius-md), .news-banner and .toc (--radius-sm). Controls/chips:
    .pv-close (--radius-full, matching the nav pill treatment plan
    06-01 already established) and .file-type (--radius-sm). No
    --radius-* value here is new -- the scale already has five steps
    and every one of these elements maps onto one. Photographs take
    none: no rule anywhere in this file targets img, .gallery img,
    #photo-viewer img, .staff-card img or .badge img with border-radius.
    Every declaration in this radius group sits after this @layer
    components opening line, so the base layer's own unconditional img
    rule (max-width/height: auto, no radius) can never be pushed into a
    rounded state by anything added here at the same specificity -- the
    property holds by declared layer order, not by vigilance. Every
    rule in this group is unconditional on its own selector -- no child
    selector, no has()-style pseudo-class condition, no count-dependent
    variant -- so a panel that renders with no content still shows its
    radius.

    blockquote's own base rule (margin/padding/border-left) lives in
    @layer base; the radius below is added here, in components, on the
    same selector -- layer source order settles this, not specificity,
    exactly like every other layer boundary already in this file.
  */
  blockquote {
    border-radius: var(--radius-md);
  }

  /*
    Header and primary navigation (plan 01-04 Task 1, D-06/D-01/D-04).
    Below the --bp-nav threshold the native <details> disclosure is
    the control: .nav stays hidden until the disclosure's own [open]
    attribute reflects, revealed here by a plain adjacent-sibling rule
    -- no JavaScript and nothing moves. At the threshold and above the
    disclosure is hidden entirely and the same <nav>/<ul> renders as a
    horizontal row instead.
  */
  /*
    001-A soft-surfaces chrome on the 003-B full-bleed frame (D-06/
    D-01/D-16): header and footer ARE the full-bleed tinted surface --
    no cap, no auto inline margin, no shadow directly on them -- and a
    .wrap div ported by tools/port-chrome.sh caps and centres their
    inner content at 72rem instead (D-16 defect 1). The flex layout
    that used to live on header itself now lives on .header-inner,
    the wrapper's own class, so the surface can span the viewport
    while its contents stay capped -- 003-B's own split.
  */
  header {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
  }

  /*
    Owner decision, 2026-09-28: "the brand should be left aligned, and
    the nav should be aligned to the right."

    No nowrap. Sketch 007 leaves .header-inner wrapping and simply makes
    its contents small enough to fit -- brand at --text-sm/650, nav at
    --text-sm, "Cenik" rather than "Cenik sluzeb". Forcing nowrap would
    turn any future overflow into a horizontal scrollbar instead of a
    second row, which is strictly worse. The alignment itself is the
    flex default (brand first) plus margin-left: auto on .nav.
  */

  header a {
    display: inline-flex;
  }

  /*
    Brand block, restructured after owner screenshot review against
    sketch 001-A. The sketch pairs a 46px mark with a name wrapped onto
    two short lines, which leaves the navigation room to sit on the
    same row. Shipped chrome had a 90px-tall building photograph beside
    the organisation's full name on one long line, which pushed the nav
    onto a second row -- the single most visible difference the owner
    named.

    The owner kept the real building photograph rather than adopt the
    sketch's placeholder "PR" monogram, so the mark is set at 56px
    rather than the sketch's 46px: a photograph shrunk to monogram size
    stops being legible as a photograph. 56px still clears the room the
    nav needs.
  */
  .brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: inherit;
  }

  /*
    Owner decision, 2026-09-28: "photo in header can have slightly
    rounded corners." A deliberate, named exception to plan 06-05's
    SHELL-04 rule that photographs stay square -- this one is a brand
    mark standing where the sketch put a rounded monogram tile, not a
    photograph being looked at. The gallery photographs and the viewer
    stay square.
  */
  header img {
    height: 56px;
    width: auto;
    border-radius: var(--radius-md);
  }

  /*
    Sized from sketch 007 verbatim: --text-sm at weight 650, capped at
    22ch. The shipped block had been --text-base at 700, which made the
    brand roughly a third wider than the sketch's and was the real
    reason the nav could not sit beside it. Brand left, nav right is
    then just the flex default plus margin-left: auto on .nav.
  */
  .brand-name {
    font-weight: 650;
    font-size: var(--text-sm);
    line-height: 1.3;
    max-width: 22ch;
  }

  /*
    The qualifier drops to its own line in the muted ink, as 001-A sets
    it. Every word of the organisation's name is carried over verbatim
    and in order; the comma that used to join the two halves is the one
    casualty of putting them on separate lines.
  */
  .brand-suffix {
    display: block;
    font-weight: 400;
    color: var(--color-muted);
  }

  /*
    Owner, 2026-09-28: the collapsed control is right-aligned too, so
    the header reads the same either side of the --bp-nav threshold --
    brand left, navigation right, whether that navigation is a row of
    pills or the Menu control that stands in for it.

    margin-left: auto on the flex item, the same single declaration
    .nav uses above the threshold. .nav itself is width: 100% while
    collapsed, so when the disclosure is opened the list wraps onto its
    own full-width row beneath, rather than trying to share this one.
  */
  .nav-disclosure {
    margin-left: auto;
  }

  .nav-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: var(--space-3xs) var(--space-sm);
    cursor: pointer;
    color: var(--color-primary-deep);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-strong);
  }

  .nav {
    display: none;
    width: 100%;
  }

  /*
    The reveal rule: opening the native disclosure flips its own [open]
    attribute, which this adjacent-sibling selector reads directly --
    no script anywhere in this region (T-1-17).
  */
  details.nav-disclosure[open] + .nav {
    display: block;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /*
    Navigation pills (D-16 defect 2, 001-A): border-radius plus the
    hover/current-page fills are 001-A's own pill treatment
    (.nav-list a), ported onto this project's .nav a selector rather
    than renamed -- each page has exactly one <nav id="hlavni-
    navigace">, and this selector already carries the details[open] +
    .nav reveal contract and the verified 44px tap target the sketch
    does not encode. This site has no moving parts (D-07/FOUND-09,
    CLAUDE.md), so the sketch's easing property is deliberately not
    ported here -- the fill and ink swap instantly on hover and on the
    current-page state, with no fade, slide or grow.
  */
  .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: var(--radius-full);
    padding: var(--space-2xs) var(--space-sm);
    color: var(--color-ink-soft);
    /*
      One step down from body size, as the sketches set it on
      .nav-list a. Declared on the link itself and NOT inside the
      48rem query, so the phone disclosure menu is sized the same as
      the desktop pill row -- the sketch draws no distinction, and the
      44px min-height above keeps the tap target regardless of the
      smaller text.
    */
    font-size: var(--text-sm);
    /*
      001-A sets text-decoration: none on .nav-list a in its shared
      page-furniture block, not in the .v-a variant block -- the D-16
      chrome port took the pill treatment from the variant block and
      missed this one declaration, so shipped pills carried the
      browser's default underline while the sketch's did not. Owner
      caught it on a side-by-side screenshot.
    */
    text-decoration: none;
  }

  .nav a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
  }

  .nav a[aria-current] {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }

  /*
    Owner decision, 2026-09-28: "we could somehow mark in which submenu
    or at least part of main item we currently are ... if its filled we
    are on the menu item directly, and if we are in submenu of an menu
    item it could have just border visible."

    Two states, mutually exclusive by construction in tools/port-nav.sh:
    a solid fill means you are ON that page, an outline means the page
    you are on lives inside that item's submenu. The outline uses the
    same terracotta as the fill, so the pair reads as one family.

    The border is drawn with an inset box-shadow rather than a real
    border so the pill's box does not change size between states -- a
    1px border would shift every neighbouring item by a pixel as you
    move between pages, which on a row of six is visible.
  */
  .nav a.nav-parent-current {
    box-shadow: inset 0 0 0 1px var(--color-primary);
    color: var(--color-primary-deep);
  }

  /*
    Submenus (owner decision, 2026-09-28). The footer sitemap was the
    only route to ten of the sixteen pages; it was removed, and those
    pages moved into the header nav -- four under Pecovatelska sluzba,
    four under Dum s pecovatelskou sluzbou, one under Kontakty.

    The owner asked for submenus "shown on hover". Hover ALONE would
    strand every touch visitor and every keyboard user, on a site read
    by an elderly audience where precise pointing is the least safe
    assumption in the room -- so the same rule answers to :focus-within
    as well. Tap and Tab both open it; hover behaves as asked.

    Nothing animates: the submenu is display:none / display:block, no
    transition, no transform (D-07/FOUND-09, CLAUDE.md).

    Below the phone threshold the submenu is simply always open inside
    the <details> disclosure -- a hover affordance nested inside a
    tap-to-open menu has nothing to hover with.
  */
  /*
    Owner, 2026-09-29: "in main menu when its collapsed I would like to
    show what submenus belong to what main menu item, maybe just some
    shift to right for submenus would be enough (this is for any width
    where menu is collapsed to hamburger)."

    This rule ALREADY asked for that indent and it has never once
    rendered. The selector was `.submenu`, specificity 0-1-0, against
    `.nav ul { padding: 0 }` at 0-1-1 a few rules above -- so the
    padding-left resolved to 0px and every submenu item sat flush with
    the top-level items above it. Measured in the browser before the
    fix: padding-left 0px. It is `.nav .submenu` now, which ties the
    specificity and wins on source order.

    The indent alone is what was asked for; the left rule is added
    because an indent on its own reads as a smaller margin rather than
    as containment once four items in a row carry it, and this menu has
    two submenus of four and one of one. margin-left lines the rule up
    under the parent item -- .nav a carries padding-left --space-sm, so
    the rule sits where the parent label starts rather than at the
    menu edge.
  */
  .nav .submenu {
    list-style: none;
    margin: 0 0 0 var(--space-sm);
    padding: 0 0 0 var(--space-sm);
    border-left: 1px solid var(--color-border);
  }

  /*
    Nav threshold moved 30rem -> 48rem with the 375/768/1280 width set.
    Six pills carrying labels as long as "Dum s pecovatelskou sluzbou"
    have no business on one row at 480px; 768px is where they fit.
  */
  @media (min-width: 72.5rem) {
    .nav-disclosure {
      display: none;
    }

    .nav {
      display: block;
      width: auto;
      /* Brand left, nav right -- the owner's alignment, one declaration. */
      margin-left: auto;
    }

    .nav > ul {
      flex-direction: row;
      flex-wrap: wrap;
      gap: var(--space-2xs);
    }

    .has-submenu {
      position: relative;
    }

    /*
      Owner, 2026-09-29: "when there is a menu dropdown the selection
      box has gaps against its origin field, can we change the borders
      so they align gaplessly?"

      The panel was already flush -- top: 100% puts its top edge exactly
      on the pill's bottom edge, with no margin between them. The gap is
      the SHAPE, not the distance: the pill is --radius-full, so its
      fill curves away from the panel's flat top and leaves a wedge of
      page showing at each bottom corner.

      So the two shapes are made to meet instead of being moved: the
      open pill squares its bottom corners, the panel squares its top
      corners, and both keep their rounding on the far side. The pill's
      own hover fill is --color-primary-soft and the panel's surface is
      --color-surface, so the seam is still legible as two pieces -- it
      is a join now rather than a gap.

      Nothing here animates and no box changes size, so the row does not
      shift as the pointer crosses it.
    */
    /*
      Resets the collapsed-menu indent: above this threshold the submenu
      is a floating panel, not a nested list, so the margin, the padding
      and the hierarchy rule all come off. They are reset explicitly
      because the base rule now sets three properties this one would
      otherwise inherit.
    */
    .has-submenu > .submenu {
      margin: 0;
      border-left: 0;
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 30;
      min-width: 100%;
      width: max-content;
      max-width: 22rem;
      padding: var(--space-2xs);
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      box-shadow: var(--shadow-md);
    }

    /*
      Owner, 2026-09-29, on the first attempt: "the nav menu looks
      terrible now ... top half will be the same shape as currently
      active page, bottom half will be just rectangle."

      That IS what the first attempt asked for and NOT what the browser
      drew, and the reason is CSS's radius-overlap rule. --radius-full
      is 999px. On the ordinary pill every corner is 999px, so the
      left side asks for 999 + 999 = 1998px of radius over a 44px box;
      the scale factor is 44/1998, every radius lands on 22px, and the
      result is the stadium shape you see on the current-page pill.

      Zeroing the bottom corners changes that arithmetic. The left side
      now asks for 999 + 0 = 999px over the same 44px box, the factor
      doubles to 44/999, and the top radii are used at 44px -- a full
      box-height radius applied to the top corners only, which paints as
      a wide shallow curve, not a dome. Same declaration, different
      shape, because the bottom corners were part of what constrained
      the top ones.

      So the top radius is written as the literal it has to be. 22px is
      exactly half of .nav a's 44px min-height, which is the same value
      the stadium pill resolves to -- the top half now matches the
      current-page pill exactly, and the bottom half is square and meets
      the panel.
    */
    .has-submenu:hover > a,
    .has-submenu:focus-within > a {
      border-radius: 22px 22px 0 0;
    }

    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
      display: block;
    }

    /*
      The parent pill keeps its hover fill while the pointer is down in
      the submenu, so the open menu still reads as belonging to it.
    */
    .has-submenu:hover > a,
    .has-submenu:focus-within > a {
      background: var(--color-primary-soft);
      color: var(--color-primary-deep);
    }

    /*
      An open submenu must not repaint the parent's current-page fill --
      the solid terracotta pill stays solid while its menu is open.
    */
    .has-submenu:hover > a[aria-current],
    .has-submenu:focus-within > a[aria-current] {
      background: var(--color-primary);
      color: var(--color-on-primary);
    }
  }

  /*
    ==================================================================
    PHONE (owner review, 2026-09-29, reported at 375px).
    ==================================================================

    Two of the four things reported that round are fixed here; the other
    two are at their own rules (the submenu indent, and the leading on
    the two contact blocks).

    1. THE MENU BUTTON WAS ON A SECOND ROW, under the brand instead of
       beside it.

       The cause is a flexbox rule that is easy to get backwards, so it
       is written down: in a WRAPPING flex container, items are
       collected into lines using each one's MAX-CONTENT size, and
       shrinking happens afterwards, per line. An item that could shrink
       to fit is therefore never given the chance -- the line is already
       broken by then. Measured: the brand reported 264px wide with a
       min-content of 86px, and still took a line of its own.

       So the fix is the one the header comment above already prescribes
       -- "make its contents small enough to fit", sketch 007's own
       answer -- rather than flex-wrap: nowrap, which that comment
       rejects because it turns any future overflow into a horizontal
       scrollbar. What had to shrink was the brand's MAX-content, which
       is why .brand-name gets a max-width: capping it makes the name
       wrap inside the brand, which is what brings the whole line under
       the available width.

       min(10rem, 35vw), not a flat 10rem: a fixed cap fits at 375px and
       still wraps at 320px, where there are 55 fewer pixels to spend.
       Checked at 320, 360, 375, 414 and 479px -- one row at every one,
       and no element overflowing its viewport.

    2. TOO MUCH SPACE BETWEEN BANDS AND AT THE TOP OF THE HOMEPAGE.

       --space-xl is 3rem. It is a desktop rhythm: two adjacent bands
       spend 96px of a 375px-wide screen on nothing, and on index the
       band padding and .opener's own padding stack to 120px before the
       first word. Both come down here and nowhere else -- the desktop
       rhythm is not the thing that was wrong.
  */
  @media (max-width: 29.99rem) {
    .header-inner {
      gap: var(--space-2xs) var(--space-sm);
    }

    .brand {
      gap: var(--space-2xs);
    }

    /*
      Height is set with the width to keep the intrinsic 127x90 ratio.
      Both are attributes on the <img> as well, so the box is reserved
      before the file loads and the header does not jump.
    */
    header img {
      width: 56px;
      height: 40px;
    }

    .brand-name {
      max-width: min(10rem, 35vw);
      font-size: var(--text-sm);
      line-height: 1.3;
    }

    .band {
      padding: var(--space-lg) 0;
    }

    /*
      .wrap.opener, not .opener. This block sits above the homepage
      component rules, and .opener is defined down there -- same layer,
      same 0-1-0 specificity, so source order handed the desktop value
      back and the override silently did nothing. Measured after the
      first attempt: band padding 32px as intended, opener padding still
      72px.

      Matching on both of the classes the element already carries
      (<div class="wrap opener">) settles it on specificity instead, so
      the rule does not depend on where in the file it happens to sit.
    */
    .wrap.opener {
      padding-block: var(--space-lg) var(--space-md);
    }
  }

  /*
    Footer: three funding/compliance groups + sitewide sitemap (plan
    01-04 Task 2, D-22/D-24/D-25). One column at 320px; D-08 replaced
    this pair's old fixed-viewport breakpoint with the two intrinsic
    auto-fit grids below, so the multi-column reflow now answers to
    each grid's own measured content rather than to a shared
    threshold.
  */
  footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  /*
    D-08: intrinsic instead of a 60rem query. The minimum is measured
    from the widest of the six footer badge images at their shipped
    render size (.badge img { height: 33px; width: auto }), not chosen:
    NPO.jpg 735x132 -> ~183.75px, IROP.jpg 12016x1981 -> ~200.15px
    (the widest), jihomoravsky_kraj.jpg 842x444 -> ~62.6px,
    Znak_Rosice.png 68x95 -> ~23.6px, Mesto_Rosice.png 246x71 ->
    ~114.3px, GDPR.png 175x178 -> ~32.4px. 14rem (224px) clears the
    200.15px image floor with an ~24px margin and, checked against the
    three-group content at the old 60rem query's own trigger width
    (~57rem of usable .wrap content at a 60rem viewport), still reaches
    exactly three columns there; auto-fit may add a fourth column at
    wider-than-72rem-equivalent desktop widths, which is intrinsic
    growth the fixed query never offered, not a regression. Re-derive
    whenever a footer badge image changes.
  */
  /*
    Owner decision, 2026-09-28: Dokumenty deleted (downloads have their
    own pages), sitemap deleted, and the two survivors laid out as a
    funding row with Zrizovatel centred below it.

    That retires plan 06-05's auto-fit grid here. Its D-08 derivation
    above is kept as the record of how the 14rem minimum was measured,
    because .badge-row below inherits the same constraint it solved --
    the widest footer badge is IROP.jpg at ~200px rendered, so the row
    must wrap rather than squeeze. It does: flex-wrap, no minimum.
    Re-derive if a funding badge image changes.
  */
  .footer-groups {
    display: block;
  }

  /* .footer-group-funding left this selector list: no page carries it. */
  .footer-group:not(.footer-group-owner) .badge {
    margin-bottom: 0;
  }

  /*
    The three funding badges run across the full width and wrap when
    they must, instead of each sitting in its own grid column.
  */
  /*
    Owner decision, 2026-09-28: "footer is fine but it should be aligned
    to middle and spaced evenly from there." The funding badges centre
    as a group and share the space evenly rather than stacking left.
  */
  .footer-group:not(.footer-group-owner) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-group:not(.footer-group-owner) h2 {
    flex-basis: 100%;
  }

  .footer-group:not(.footer-group-owner) .badge {
    align-items: center;
  }

  .footer-contact {
    margin-top: var(--space-lg);
    text-align: center;
  }

  /*
    Zrizovatel closes the footer as a centred mark under the funding
    row, per the owner's chosen layout.
  */
  .footer-group-owner {
    margin-top: var(--space-lg);
    text-align: center;
  }

  .footer-group-owner .badge {
    align-items: center;
    margin-bottom: 0;
  }

  .footer-group h2 {
    font-size: var(--text-lg);
  }

  .badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2xs);
    margin-bottom: var(--space-md);
  }

  /*
    Equal rendered height, never a fixed width (D-24, Pitfall 4): the
    EU/NPO emblem's own native height (33px) is the shared floor, so no
    badge is upscaled past its native pixels into visible softness.
    DOM order (EU/NPO first, see new/index.html) is the only mechanism
    that establishes "first" -- no order property, no reversed flex or
    grid direction anywhere in this rule set.
  */
  .badge img {
    height: 33px;
    width: auto;
  }

  .badge-caption {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  footer a {
    color: var(--color-primary-deep);
  }

  /*
    .sitemap ul and .sitemap a lived here, with a long note deriving
    their 17rem column minimum from the sitemap's own longest label.
    All gone: the footer sitemap moved into the header nav in 4b224b0
    and no page has carried the class since.
  */
  /*
    Footer contact block (plan 01-05 Task 1, D-21): the footer prints
    while the sticky strip below does not, so a printed page still
    carries a way back to the organization.
  */
  /*
    Owner, 2026-09-29: "footer has biger space between phone numbers and
    they should have lower line height (be more stuck together)."

    An address is a block of related lines, not running prose, so the
    body leading of 1.68 spaces it as though each line were a paragraph.
    1.35 keeps the lines legible and reads as one block.
  */
  .footer-contact {
    display: block;
    margin-top: var(--space-md);
    font-style: normal;
    font-size: var(--text-sm);
    line-height: 1.35;
    color: var(--color-muted);
  }

  /*
    Bottom sticky contact strip (plan 01-05 Task 1, D-07/D-18/D-19):
    position: sticky (never fixed), pinned to the bottom edge, no
    animated reveal, no transform, no motion of any kind (D-07,
    FOUND-09) -- it is simply there. flex-wrap lets it wrap to three
    lines at 320px (D-19) instead of overflowing. js/design-toggle.js
    measures this exact element by id (penzion-contact-strip) to lift
    the floating toggle/palette controls clear of it -- a different id
    would silently disable that measurement and let the widget sit on
    top of the phone number.
  */
  .contact-strip {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /*
      Row gap is 0, column gap unchanged. On a phone the strip stacks
      into three rows and the row gap was adding 8px between rows that
      are already 44px tall, which is what read as the numbers being far
      apart.

      The 44px stays. It is the tap target on a telephone number, on a
      phone, on a site whose readers are largely elderly -- the one
      place on this site where that floor is least negotiable. So this
      recovers the 16px that was spacing rather than target, and no
      more. If the strip still reads tall, the honest next move is
      fewer rows, not smaller targets.
    */
    gap: 0 var(--space-md);
    padding: var(--space-2xs) var(--space-md);
    background-color: var(--color-bg);
    /*
      Same 1.35 as .footer-contact, and for the same reason: this is a
      block of related contact lines, not running prose.
    */
    line-height: 1.35;
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
  }

  .contact-strip-label {
    font-weight: 700;
  }

  /*
    Both tel: links get a real 44px tap target (D-18); link color and
    the :focus-visible ring already come from the base layer's global
    `a` and `:focus-visible` rules, so they are not repeated here.
  */
  /*
    Owner, 2026-09-29, with a screenshot: "do you see the space between
    telefon na reditelku and mobil? its much larger than between mobil
    and Kastanova, plese unify that to the smaller of them."

    Measured before the fix, at 375px: 20px between the two telephone
    rows and 12px between the mobile and the address.

    The asymmetry was structural, not a stray margin. Each telephone
    link was a 44px box around 24px of text, so it carried 10px of slack
    above and below. Two stacked links put slack on BOTH sides of the
    gap between them -- 10 + 10 = 20. The address is a bare span with no
    box, so the gap above it got slack from one side only -- 10 + 2 = 12.
    Equalising it means every row in the strip having the same box
    height and the same leading, which is what the two declarations
    below do.

    THE TAP TARGET ON THIS STRIP DROPS FROM 44px TO 32px, and that is a
    real cost rather than a free win, so it is written down here. 44 is
    the Apple/Google comfort figure and this site's own default; 32
    clears WCAG 2.2 AA Target Size (Minimum), which is 24x24 CSS px, but
    it is smaller than the rest of the site uses.

    It is accepted HERE and nowhere else because of what this strip is:
    a convenience bar repeating numbers that are published elsewhere on
    every page. The same two numbers keep their full 44px targets in the
    footer proper below it, and every number on kontakty and sluzby
    keeps 44px. Arriving at 12px of gap between 44px rows is not
    possible -- the rows would have to overlap -- so unifying to the
    smaller spacing, as asked, necessarily means smaller rows.
  */
  .contact-strip a,
  .contact-strip-address {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
  }

  /*
    G-03-4: the tel: label moves outside the anchor so the link's own
    text -- and the aria-label that supplies its accessible name -- both
    say only the number (PD-52). .tel-pair keeps a label and its number
    on one visual line now that they are two elements instead of one
    anchor: the contact strip above is a wrapping flex row whose
    --space-md gap would otherwise drop a whole gap between a label and
    its own number, and the staff card list (.staff-contact) below is a
    flex column in which a bare text node would take its own line.
  */
  .tel-pair {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
  }

  .tel-label {
    white-space: nowrap;
  }

  /*
    Gallery grid + reusable photo-viewer dialog (Phase 2, plan 02-01,
    D-36...D-42). Fluid auto-fill columns floor thumbnails at their
    native 200px width (D-40); the dialog fills the viewport and
    deliberately upscales past its native 800x600 source (D-36) -- there
    is no larger source, and legibility beats sharpness for this
    audience. No new --color-* token: the backdrop dim below is a bare
    rgb() literal with alpha, outside tools/check-contrast.sh's hex-only
    parser (PD-05 covers the absence of a new print-conditional rule -- the
    existing single print block already hides the chrome, and a closed
    dialog is display: none by the UA stylesheet).
  */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery a {
    display: block;
  }

  /*
    #photo-viewer keeps visible padding around its content (RESEARCH.md
    Assumption A3): that padding is the only region inside the dialog's
    own box where a click lands on the dialog element rather than on a
    descendant, which is what makes backdrop-click dismissal reachable
    at all. Do not remove it and do not let the image fill the box edge
    to edge.
  */
  /*
    SHELL-04: #photo-viewer contains a photograph (#photo-viewer img,
    below) and deliberately declares no overflow-clipping rule --
    adding one here would clip that photograph into the dialog's own
    rounded corners just as surely as a radius on the image would, and
    the visible result would be identical. This absence is
    load-bearing, not an omission for a future tidy-up to "fix".
  */
  /*
    Sharp corners, by owner decision. Plan 06-05 gave this dialog
    --radius-lg as a "panel"; reviewed on screen, the owner ruled it a
    photograph frame, not a panel -- a rounded frame around a square
    photograph reads as a mismatch. SHELL-04's radius scope therefore
    stops at the panels that hold text and controls. The absence of an
    overflow rule noted above stays load-bearing regardless.
  */
  /*
    Owner decision, 2026-09-28: "I want the photo popup to match the
    sketch look (beside the rounded corners)" -- i.e. adopt sketch 009's
    viewer, keeping the sharp corners ruled earlier in this review.

    Adopted from 009: the dialog itself goes transparent and full-
    viewport, and .pv-frame becomes the surface that carries the shadow;
    the caption sits on a hairline rule; the controls group left with
    close pushed right; a muted note closes the panel.

    THIS REVERSES D-36. The shipped viewer deliberately upscaled past
    the 800x600 source because "legibility beats sharpness for this
    audience". 009 caps at the native size instead, on the grounds that
    a viewer filling a 1440p screen softens the photo at the exact
    moment the visitor asked to look closer -- and the note the owner
    asked for ("v původní velikosti 800 × 600 px") only tells the truth
    if the cap is real. The owner chose the sketch look with the note in
    it. Flagged here because it is a behaviour change, not a restyle:
    photographs now open smaller than they did.

    Backdrop dismissal survives the padding removal. js/gallery.js:180
    dismisses on `e.target === dialog`, and with the dialog now sized to
    the viewport, everything around the frame IS the dialog -- a larger
    dismissal target than the old padding ring, not a smaller one.
  */
  #photo-viewer {
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .pv-frame {
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    max-width: min(96vw, 1200px);
  }

  .pv-frame figure {
    margin: 0;
  }

  /*
    Owner decision, 2026-09-28: "photos can be larger, I just want the
    design the same (edge to edge photo and buttons alignment)."

    So 009's look is kept -- the photograph runs edge to edge across the
    frame, caption on its rule below, controls grouped left with close
    pushed right -- but 009's native-size cap is dropped. The image
    fills the frame's width and D-36's original judgement stands again:
    for this audience legibility beats sharpness, so a photograph may be
    drawn larger than its 800x600 source rather than sit small in the
    middle of a wide screen.

    object-fit: contain keeps both the landscape gallery shots and
    kontakty.html's 600x800 portraits whole inside the height bound --
    neither orientation is cropped.

    The "v původní velikosti" note is removed with the cap: it stated a
    fact that upscaling makes untrue.
  */
  #photo-viewer img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    background: var(--color-bg-alt);
  }

  #pv-caption {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    border-top: 1px solid var(--color-border);
  }

  /*
    .native-note was retired with the native-size cap (owner: "photos
    can be larger") and kept staged in case the cap returned. It has
    not, so the rule goes with the rest of the dead CSS -- git holds it
    if the cap ever comes back.
  */

  #photo-viewer::backdrop {
    background: rgb(20 18 16 / 0.82);
  }

  /*
    Prev/next/counter/close (plan 02-02, D-37/D-38): flex-wrap keeps all
    four reachable at 320px without the dialog scrolling horizontally --
    the row wraps to a second line instead of overflowing if the
    counter's width ever grows past what a single row leaves free.
  */
  /*
    009 groups prev/counter/next at the left and pushes close to the
    right, rather than spreading all four edge to edge. flex-wrap stays
    from plan 02-02's D-37/D-38: at 320px the row wraps to a second line
    instead of overflowing.
  */
  .pv-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-2xs) var(--space-md) var(--space-sm);
  }

  .pv-counter {
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  /*
    009 draws all three controls the same: round, outlined, transparent.
    The earlier split -- square prev/next, round close -- is retired
    with it. The 44px floor from plan 02-02 is kept over 009's 2.25rem
    (36px): this site's audience is elderly, and a tap target is not
    where to save nine pixels.
  */
  .pv-prev,
  .pv-next,
  .pv-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    color: var(--color-ink);
    background: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    cursor: pointer;
    font: inherit;
  }

  .pv-prev:hover,
  .pv-next:hover,
  .pv-close:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
  }

  .pv-close {
    margin-left: auto;
  }

  /* ====================================================================
     Homepage components (Phase 7, sketch 001 variant A -- the recorded
     winner). These are the first page-interior components in the
     project; everything above this point is chrome or shared furniture.

     They live on index.html only for now. Each is written against the
     shared token scale rather than the sketch's literals, so the pages
     ported in Phases 8-10 can reuse them.

     No transition anywhere: 001-A's own rules carry `transition: all
     .15s ease` on .btn and .card, and a `transform: translateY(-2px)`
     on .card:hover. Both are deliberately dropped -- this site has no
     moving parts (D-07/FOUND-09, CLAUDE.md). Hover still changes
     colour and shadow, instantly.
     ==================================================================== */

  /*
    .prose, taken from sketch 001's shared furniture block verbatim.

    The load-bearing detail is what is NOT here: there is no
    margin-inline: auto. The measure caps the line length but the block
    stays LEFT-aligned inside its .wrap, so the prose shares one left
    edge with the opener, the cards and the panel. The homepage's first
    build used .wrap-text, which centres, and the result was a narrow
    column floating in the middle of the page while everything around it
    sat left -- the misalignment the owner spotted on the screenshots.

    .wrap-text keeps its centring and its own consumers; it is the right
    tool for a page that is nothing but text, and the wrong one here.
  */
  /*
    overflow-wrap arrives from the retired .page-grid > main rule: it
    stops a single unbreakable token -- a long URL, a long compound
    word -- from widening the container past a 320px viewport, and it
    breaks at grapheme-cluster boundaries so a Czech word carrying
    diacritics is never split mid-grapheme. pravidla's intro carries a
    bare http://www.penzionrosice.cz, which is exactly the case it
    guards.
  */
  /*
    THE LINE-LENGTH CAP IS OFF. Owner, 2026-09-29: "remove the 75ch limit
    for prose, I want to see how it looks."

    So --measure has no consumer on .prose any more and running text uses
    the full 72rem column -- about 105-115 characters a line at desktop
    type, against the 45-75 that typography guidance and this project
    have assumed so far.

    The token is KEPT, not deleted, and so are the two inner caps
    pravidla applies and the print block that lifts all of them. This is
    a look-and-see, asked for in those words, and putting the cap back is
    one line if the answer is no. What to watch for on a wide screen is
    the return sweep -- the eye losing which line it is coming back to at
    the start of the next one -- which is the failure long measures
    actually produce, and it costs an elderly reader more than a young
    one.

    overflow-wrap stays regardless: it is what stops a single unbreakable
    token widening the container past a 320px viewport, and it has
    nothing to do with the cap.
  */
  .prose {
    overflow-wrap: break-word;
  }

  /*
    003-B CENTRING WITHDRAWN. Owner decision 2026-09-29: "now some
    titles are misaligned (for example Kontakty and Aktuality are not
    aligned to the following texts) ... currently we have two widths
    (eg. Pecovatelska sluzba vs Sjednani sluzeb), based on content,
    this is a bit annoying when swapping pages."

    Both complaints are one cause. Prose and the page head were capped
    at --measure and CENTRED; tables, card grids, the accordion and the
    gallery were not capped at all. So on a banded page the h1 sat
    ~240px in from the left while the staff grid under it started at
    the gutter, and pecovani (no bands, left-aligned) read as a
    different width from sluzby (bands, centred prose) as you moved
    between them.

    You cannot have all three of: a 75ch centred prose column,
    full-width furniture, and one shared left edge. The owner chose the
    shared left edge, from a diagram of both systems:

      "One left edge -- keep the 72rem frame. Stop centring prose and
      the page head. Lines stay capped at 75ch, so long text just ends
      earlier on the right. Every page becomes the same width."

    So the two centring rules that lived here are gone, not commented
    out: .prose keeps its max-width cap (line length is still
    controlled) and nothing re-centres it, which leaves every element
    on every page starting at the .wrap gutter. pecovani was already
    built that way under sketch 002-C, so it stops being the exception
    and becomes the reference the other fifteen now match.

    What this reverses: the 2026-09-28 decision recorded above it, and
    with it 003-B's own stated composition. 003-B answered "what fills
    the empty half of a wide page" for a page that was NOTHING BUT
    prose. Every page now carries bands, tables, cards or an accordion
    beside its text, so the right-hand space is used by the rows above
    and below rather than left blank -- the condition 003-B was
    answering no longer holds.

    The print block near the end of @layer utilities still lists
    .wrap.page-head among the caps it lifts. That stays: it is a
    max-width removal, harmless now that no cap is set here, and it
    keeps the print rule true if a cap ever returns.
  */

  .prose > * + * {
    margin-top: var(--space-sm);
  }

  .prose h2 {
    margin-top: var(--space-xl);
  }

  /*
    Owner, 2026-09-29: "instead of plain html bullets we should use some
    kind of icon with color matching the theme."

    A chevron in --color-primary, drawn as an SVG data URI on ::before.

    WHY A CHEVRON AND NOT A CHECK MARK. A check was the first choice and
    is wrong here: .prose ul carries prohlaseni's list of the people the
    service CANNOT be provided to, and a tick beside "Osobě, jejíž
    zdravotní stav vyžaduje poskytnutí ústavní péče" would read as an
    endorsement of the opposite of what the line says. A chevron carries
    no verdict and suits every list on the site.

    WHY A DATA URI AND NOT mask-image. Same reasoning as the inline
    icons: an unsupported mask paints a solid square, an unsupported
    background-image paints nothing. The primary hex is written into the
    URI literally (%23 is #) because a data URI cannot read a custom
    property. It is the ONE place in this stylesheet where a palette
    value is duplicated, and it is duplicated here rather than the
    marker being left the browser's grey disc.

    Scoped to .prose ul only. pravidla's statutory lists live in
    .sec-body, the accordion's numbered steps are <ol>, and the chip,
    document, gallery and staff lists all carry list-style: none
    already -- none of them is touched.
  */
  .prose ul {
    list-style: none;
    padding-left: 1.5em;
  }

  .prose ul > li {
    position: relative;
  }

  .prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.3em;
    top: 0.45em;
    width: 0.62em;
    height: 0.62em;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399512A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  }

  .prose li + li {
    margin-top: var(--space-3xs);
  }

  /*
    Composition is sketch 003 variant B, "Centred + bands" -- the
    recorded winner of the measure-and-width question and, per the
    sketch manifest, a refinement of 001-A. It answers the question the
    owner raised directly: "the measure cap leaves half the desktop page
    empty -- what fills it?" 003-B's answer is a rhythm of centred
    column, full-bleed tinted band, centred column.

    The homepage's first build followed 001-A and was left-aligned. It
    was retrofitted here on the owner's decision once 003-B's precedence
    was established.

    003-B names its own trade-off in the sketch source: "centred text
    blocks have no common left edge with the bands' inner content unless
    the band content is centred too, which it is here." The shared left
    edge is deliberately given up in exchange for the band rhythm.

    padding-block, never the padding shorthand: .opener shares its
    element with a wrapper, and a shorthand's horizontal terms would
    cancel that wrapper's gutter.
  */
  .opener {
    padding-block: var(--space-2xl) var(--space-xl);
    text-align: center;
  }

  .opener h1 {
    max-width: 24ch;
    margin-inline: auto;
  }

  .opener .standfirst {
    max-width: 52ch;
    margin-inline: auto;
  }

  .opener .cta-row {
    justify-content: center;
  }

  /*
    The band's own label, centred above its content -- 003-B's way of
    naming a section without spending a heading on it.
  */
  .section-label {
    text-align: center;
    color: var(--color-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
  }

  .eyebrow {
    color: var(--color-primary);
    font-weight: 650;
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 var(--space-xs);
  }

  /*
    001-A caps the opener heading at 18ch so it breaks into two or three
    short lines rather than one long one. 003-B widens it to 24ch and
    centres it -- see the .opener block above, which supersedes the
    18ch cap 001-A used.
  */

  .standfirst {
    font-size: var(--text-lg);
    color: var(--color-ink-soft);
    margin-top: var(--space-md);
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    /* 44px floor, as every other control on this site carries. */
    min-height: 44px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    font-family: inherit;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }

  .btn-primary:hover {
    background: var(--color-primary-deep);
  }

  .btn-ghost {
    background: transparent;
    color: var(--color-primary-deep);
    border-color: var(--color-border-strong);
  }

  .btn-ghost:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
  }

  /*
    The entry-point grid. auto-fit with a 15rem floor gives three
    columns on a desktop and one on a phone without a breakpoint.
  */
  /*
    No margin, deliberately. Sketch 003's shared .card-row has none;
    variants A and C each add `margin: var(--space-xl) 0` themselves,
    and variant B -- the one this site follows -- does not, because the
    band's own padding-block already supplies that space. Carrying A's
    margin into a band would double it.
  */
  .card-row {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
  }

  .card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
  }

  /*
    The one icon primitive, shared by every inline SVG the port script
    writes: card icons, disclosure chevrons and the photo viewer's three
    controls.

    Stroked, never filled, and both colours are currentColor, so an icon
    takes the ink of whatever it sits in -- the muted chevron, the deep
    primary card tile, the viewer's light-on-dark button -- without a
    single per-icon colour rule.

    Owner, 2026-09-29: "also check spacing around them to fit better in
    design." The glyphs these replace were sized with font-size, so each
    one's optical centre came from the font's metrics for that
    character: the close x rode high, the chevrons sat low, and no
    amount of padding fixed both at once. An SVG box is exactly its
    declared size and centres on the geometry of its container instead.

    vertical-align: middle keeps the box off the text baseline in the
    one place an icon still shares a line with text.
  */
  .icon {
    width: 1.25em;
    height: 1.25em;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
  }

  /*
    The chevron carries BOTH states and shows one. CLAUDE.md forbids
    transform, so the open state cannot be the closed one rotated; the
    swap that used to change a ::before character now changes which of
    two paths is drawn. Both are in the DOM from the start, so opening a
    section fetches and builds nothing.
  */
  .icon .i-open {
    display: none;
  }

  details[open] > summary .chev .icon .i-closed {
    display: none;
  }

  details[open] > summary .chev .icon .i-open {
    display: inline;
  }

  .card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    margin-bottom: var(--space-xs);
  }

  .card-icon .icon {
    width: 22px;
    height: 22px;
  }

  /*
    ostatni.html, 2026-09-29. Five short services that were five
    full-bleed bands become one row of cards. Two additions the
    homepage's three cards did not need:

    .card-row-wide raises the track floor from 15rem to 20rem. With
    five cards at the 15rem floor a 72rem frame fits four, leaving a
    single orphan on the second row; at 20rem it fits three, so the set
    reads 3 + 2.

    .card-static is a card with nowhere to go. ostatni's five have no
    page of their own, so they are <div> rather than <a>, and the hover
    border and shadow lift come off -- an affordance that promises a
    click and delivers none is worse than no affordance.
  */
  .card-row-wide {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }

  .card-static:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border);
  }

  /*
    h2 as well as h3: ostatni's cards carry the page's top-level
    sections, which were <h2> when they were bands and stay <h2> as
    cards. The heading level follows the document, and the component
    rule follows the heading level.
  */
  .card h2,
  .card h3 {
    margin: 0 0 var(--space-3xs);
    font-size: var(--text-lg);
  }

  .card p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
  }

  .card p + p {
    margin-top: var(--space-2xs);
  }

  .card .more {
    display: inline-block;
    margin-top: var(--space-xs);
    color: var(--color-primary-deep);
    font-weight: 600;
    font-size: var(--text-sm);
  }

  /*
    003-B strips the panel back: transparent, no padding, centred. Its
    surface and its breathing room come from the band it sits in
    (.band.band-tint), so a sunk surface inside a tinted band would be
    a second box inside a box. 001-A's --surface-sunk/--radius-xl panel
    is superseded.
  */
  .panel {
    background: transparent;
    padding: 0;
    text-align: center;
  }

  blockquote.motto {
    max-width: 50ch;
    margin-inline: auto;
    font-size: var(--text-lg);
    line-height: 1.55;
    color: var(--color-ink-soft);
    font-style: italic;
  }

  blockquote.motto .label {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-deep);
    margin-bottom: var(--space-2xs);
  }

  /*
    .hub-links ul and .hub-links a lived here. Both hub pages dropped
    their in-body child list -- dum in abe72bd, pecovani in the 002-C
    port -- once every link in those rows was reachable from the header
    nav. Gone with the rest of the dead CSS.
  */

  /*
    Document index (LAYOUT-10 as amended by D-60, plan 03-05): the two
    download pages group their PDF links under a heading with this
    list. List marker and default padding removed, each link a block
    row with the same 44px minimum tap target as .nav a / .sitemap a /
    .hub-links a. No file size is ever printed beside a link (D-60) --
    .doc-list carries no room for one and none is added here.
  */
  .doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .doc-list a {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
    min-height: 44px;
  }

  /*
    .file-type, the ".pdf" type indicator (PD-25), is gone. The
    downloads page states the format in its own .dmeta line instead,
    and every other page's document links now point at that page rather
    than at a PDF, so the marker had become a claim about something two
    clicks away.
  */

  /*
    News page (plan 03-05): two dated <article> entries plus the
    source's own magenta announcement, restyled from existing tokens
    only. Spacing between articles from an existing --space-* token;
    the announcement distinguished by weight and size, never by a new
    colour -- the source's own magenta exists in neither palette and
    is not reproduced (D-48).
  */
  .news-article + .news-article {
    margin-top: var(--space-lg);
  }

  /*
    .news-banner is gone: sketch 013-B moved the source's standing
    announcement into the .status block, where it is the page's answer
    rather than a banner above old articles.
  */

  /*
    Price list (cenik.html only -- LAYOUT-05, D-52/D-53, plan 03-06).
    cenik.html's two tables are the only genuine data tables on the
    whole site; every cell of all 33 priced rows stays reachable at
    every width (ROADMAP SC-2) -- only the layout changes, nothing is
    hidden, collapsed or dropped. At normal widths this is an ordinary
    full-width table with collapsed borders from the existing
    --color-border token; header cells are distinguished by weight
    alone, no new colour.
  */
  .price-table {
    width: 100%;
    border-collapse: collapse;
  }

  .price-table th,
  .price-table td {
    padding: var(--space-2xs) var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
  }

  .price-table th {
    font-weight: 700;
  }

  /*
    Narrow-width stacking branch (D-52, PD-30): the literal breakpoint
    is repeated here per this file's own header comment -- a custom
    property cannot appear in a media-query prelude. display: block on
    table/tbody/tr/th/td removes the browser's implicit table
    accessibility mapping in most engines (a documented CSS/ARIA
    interaction, 03-RESEARCH.md Pattern 2); the markup puts back what
    this rule takes away via explicit role="table"/"row"/
    "columnheader"/"cell" attributes (PD-31), which this rule does not
    touch. The thead is visually hidden, not removed, so it stays in
    the accessibility tree; each td grows a data-label heading via
    ::before, never a new colour, never motion.

    D-09: this prelude's literal is retuned from 39.99rem to 29.99rem
    as ordinary chrome work alongside the nav's 40rem -> 30rem move.
    The value stays PROVISIONAL -- it traces to D-09 and is replaced
    outright by Phase 8's 007 card swap, so no later plan should treat
    it as settled. It is paired, not coincidental, with --bp-phone's
    30rem: at a 16px root, 29.99rem is 479.84px and 30rem is 480px, so
    no integer-pixel viewport can satisfy both preludes at once, and
    both being expressed in rem means a non-default root font size
    scales the pair together without ever inverting their order.
  */
  @media (max-width: 29.99rem) {
    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table th,
    .price-table td {
      display: block;
      width: 100%;
    }

    .price-table thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }

    .price-table tr {
      margin-bottom: var(--space-sm);
      border-bottom: 1px solid var(--color-border);
    }

    .price-table td {
      border-bottom: none;
      padding: var(--space-3xs) var(--space-sm);
    }

    .price-table td::before {
      content: attr(data-label);
      display: block;
      font-weight: 700;
      padding-top: var(--space-2xs);
    }
  }

  /*
    .toc and its three companions lived here -- pravidla.html's
    two-level in-page index. Sketch 005-A retired it: under an
    exclusive accordion the fifteen collapsed summaries ARE the
    index, and the TOC duplicated every h2 word for word.
  */

  /*
    Staff directory card grid (LAYOUT-09/D-54, plan 03-08). .staff-grid
    inherits .gallery's display:grid and auto-fill mechanics and adjusts
    only the track floor: a card needs room for a name, a role, two
    labelled phone links and an e-mail address beside a 75px portrait,
    which .gallery's own 200px floor is too narrow for. At 320px the
    single .staff-grid column still holds one card, whose own internal
    grid (below) keeps the portrait beside the text rather than above
    it.
  */
  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  /*
    Each card is its own two-column grid -- portrait in column 1
    (spanning every row so it sits beside the name/role/contact block,
    not above it), name/role/contact flowing down column 2. No wrapper
    element is needed: the four children PD-44 specifies (portrait
    anchor, h3, p, p.staff-contact) are placed directly.
  */
  /*
    SHELL-04: .staff-card contains a photograph (.staff-card img,
    below) and deliberately declares no overflow-clipping rule --
    adding one here would clip that photograph into the card's own
    rounded corners just as surely as a radius on the image would, and
    the visible result would be identical. This absence is
    load-bearing, not an omission for a future tidy-up to "fix".
  */
  /*
    Sketch 008-B gives each person a card surface -- background, border,
    radius, padding -- rather than letting the portraits sit loose on
    the page. Adopted here, because without it a filtered directory
    reads as a list that has lost rows rather than as a set of cards.

    NOT adopted from .pcard: its inline, wrapping .pcontact row. This
    project stacks the contact links and gives each a 44px minimum tap
    target, which is a standing accessibility invariant and outranks
    the sketch's denser row.

    And still no overflow-clipping rule, per SHELL-04 above: the border
    and radius arrive, `overflow: hidden` does not, or it would clip the
    photograph into the card's corners.
  */
  /*
    minmax(0, 1fr), not a bare 1fr: a grid track's default floor is its
    min-content width, and "hammerova@penzionrosice.cz" has nowhere to
    break, so the bare unit refused to shrink and pushed the card 6px
    past a 375px viewport once the card gained its padding. The e-mail
    is allowed to break below.
  */
  .staff-card {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: var(--space-2xs) var(--space-sm);
    align-items: start;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
  }

  .staff-card:hover {
    border-color: var(--color-primary);
  }

  /*
    Owner, 2026-09-28: "some phone numbers and emails are either
    multiline or overflow the base box, you can align position, numbers
    and email to the left of the box since they are already under the
    photo".

    Exactly so. The portrait spanned every row, so the role, the two
    numbers and the e-mail were all trapped in a 1fr column beside a
    75px photo -- and an address like hammerova@penzionrosice.cz has
    nowhere to break, so it wrapped badly or pushed the card wide. The
    photo now spans only the row its name shares; everything below it
    starts at the card's own left edge and has the full width to use.
  */
  /*
    Owner, 2026-09-29: "move persons position under his name (right of
    the photo) and capitalize it (all caps), keep the rest as is."

    So the portrait spans TWO rows again -- name in row 1, role in row 2,
    both in column 2 beside it -- and everything after that still starts
    at the card's own left edge under the photo.

    "Keep the rest as is" is the load-bearing half of that sentence. The
    contact block stays full-width, which is the 2026-09-28 fix it was
    given for a real defect: an address like hammerova@penzionrosice.cz
    has nowhere to break, and trapped in a 1fr column beside a 75px
    photo it pushed the card past a 375px viewport. A role is two or
    three short words and carries no such risk, so it can move back and
    the contacts cannot.
  */
  .staff-card > a {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .staff-card p {
    grid-column: 1 / -1;
  }

  .staff-card > .staff-role {
    grid-column: 2;
    grid-row: 2;
    /*
      Caps are set here and never typed into the DOM: the markup keeps
      "sociální pracovnice", so js/directory.js's search, find-in-page
      and any screen reader still meet the real word.
    */
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: var(--text-xs);
    line-height: 1.3;
    color: var(--color-muted);
  }

  /*
    Owner, same round: "in sluzby.html please move the kancelar... to
    the bottom of each box."

    The office line is last in the markup now, and this pushes it to the
    card's floor rather than letting it sit directly under whatever
    happens to precede it. The contact row takes the slack (1fr), so
    three cards of unequal content still line their office lines up.

    :has() rather than a class on the card: the rule should apply when a
    card HAS an office line and not otherwise, and that is what the
    selector says. kontakty publishes no office line, so its cards keep
    their auto rows and are untouched. The project already depends on
    :has() for the price-group hover on cenik.
  */
  .staff-card:has(.staff-note) {
    grid-template-rows: auto auto 1fr auto;
  }

  /*
    The organization's own block. Owner, 2026-09-29: "align the Penzion
    pro duchodce Rosice band text to center, it stands out now in the
    middle of two boxes, also style the text a bit and make the phone
    numbers clickable."

    It was seven left-aligned paragraphs between the answer card above
    and the staff directory below, and with the site-wide move to one
    left edge it had nothing to distinguish it at all. Centred, on its
    own surface, with the facts as a real <dl>.

    Centred text is used HERE and nowhere else on the site. It is a
    short identity block of labelled single-line facts -- the one shape
    centring suits, and the reason the rest of the site is left-aligned
    (return sweep over many lines) does not apply to it.
  */
  .orgcard {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
  }

  .orgcard h2 {
    margin: 0 0 var(--space-xs);
  }

  .orgcard-address {
    margin: 0;
    color: var(--color-ink-soft);
  }

  .orgcard-tel {
    margin: var(--space-2xs) 0 0;
  }

  .orgcard-hint {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  .orgfacts {
    margin: var(--space-md) 0 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
  }

  .orgfacts > div + div {
    margin-top: var(--space-2xs);
  }

  /*
    dt and dd are inline so each fact centres as one line and wraps as
    one line. A grid would put the labels in a column and re-introduce
    exactly the left-aligned block this replaced.
  */
  .orgfacts dt,
  .orgfacts dd {
    display: inline;
    margin: 0;
  }

  .orgfacts dt {
    font-weight: 600;
    color: var(--color-muted);
  }

  .orgfacts dt::after {
    content: ":";
  }

  .orgfacts dd {
    margin-left: 0.35em;
  }

  .staff-card img {
    width: 75px;
    height: 98px;
    aspect-ratio: auto;
  }

  /*
    sluzby.html borrows this card but loads no gallery script, so its
    portrait is a direct <img> child rather than kontakty's
    <a data-photo-trigger>. Placed exactly where the anchor is placed,
    so one card component serves both pages.
  */
  .staff-card > img {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  /*
    Also sluzby's: the office line the source's bullets carried on all
    three people. kontakty has no equivalent and never shows this.
  */
  .staff-note {
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  /*
    Owner, 2026-09-29: "if the position is multiline in contact box, in
    kontakty.html its only uklid, but on sluzby.html the title of miss
    Kavkova is too long, please find a way to unify those so it does not
    break the flow of the boxes (maybe name a tiny bit smaller so two
    rows for title fit under it?)"

    The portrait spans the name and role rows, so those two rows are
    already at least 98px tall -- the photo guarantees it. What the
    photo does NOT do is cap them: a role that runs to three lines
    pushes past 98px, the header grows, and that card's contact block
    starts lower than its neighbours. One long role and the whole row of
    cards loses its shared rhythm.

    The fix is the owner's own suggestion, measured rather than guessed.
    The budget is the 98px the photo already occupies. At --text-base
    with a 1.25 leading a two-line name is ~45px; at --text-xs with 1.3
    a two-line role is ~34px. 79px of 98px, so a name over two lines and
    a role over two lines both fit inside the photo's own height and the
    header does not grow at all. Three lines of role still fits, at
    ~96px.

    So h3 comes down one step from --text-lg to --text-base and both get
    an explicit leading. Nothing is truncated and no Czech is shortened
    -- "vedouci pecovatelske sluzby - socialni pracovnice" is the
    organization's wording for what Kavkova does, and shrinking the type
    that sits beside it is the cheaper of the two prices.
  */
  .staff-card h3 {
    grid-column: 2;
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.25;
  }

  .staff-card p {
    margin: 0;
  }

  /*
    03-08 Task 1 decision (publish-both): each card publishes both the
    derived switchboard landline and, where distinct, the person's own
    mobile, plus the e-mail address -- stacked links with the same 44px
    minimum tap target every other link list on the site uses.
  */
  .staff-contact {
    display: flex;
    flex-direction: column;
  }

  .staff-contact a {
    display: flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: break-word;
    min-width: 0;
  }

  /*
    PD-48: #pv-counter has no width rule, so the dialog's prev/next
    buttons shift sideways as the counter widens (e.g. "3 / 15" to
    "10 / 15", or up to "20 / 20" on this page). A min-width sized for a
    two-digit-over-two-digit counter plus centred text stops the shift
    on both host pages.
  */
  #pv-counter {
    display: inline-block;
    min-width: 4.5em;
    text-align: center;
  }

  /* ====================================================================
     pecovani.html -- sketch 002 variant C, "Odpověď napřed", with the
     úkony list on sketch 005-A's exclusive accordion.

     002's decision is a compound: C won the page, but its a)–g) list
     takes 005-A's accordion, "with its search, print and deep-link
     handling". 005-A is explicit that those are not optional polish --
     "each one covers a way the collapse silently loses content" -- so
     they ship here too, on 50 list items that are otherwise hidden
     behind seven closed summaries.

     What 002-C does NOT get, per its own decision note: the full 005-A
     treatment of the whole page. pecovani is 522 words against
     pravidla's 4,200, and four of its five sections are single facts.
     Those four are the answer card below; only the úkony list
     collapses.

     COMPOSITION. This page does not use 003-B's bands. Owner decision,
     2026-09-28, taken with the sketch and the first build side by
     side: "match the sketch -- drop the bands here." 002-C is one
     continuous left-aligned column on a single surface, and
     .detail-head's rule does the separating that a tint change does on
     the banded pages. That is why .detail-head below carries a
     border-top, which the first build had removed on the reasoning
     that the bands already separated the sections -- with no bands,
     the reasoning inverts and the sketch's own rule is right.

     The page head is .page-head, NOT .opener. .opener is the
     homepage's hero -- centred text, --space-2xl of lead-in, and an
     h1 capped at 24ch -- and reusing it here is what put the title in
     the middle of an empty band, narrower than the card beneath it.
     002-C's page head is left-aligned and modest.

     Every other rule here is 002-C's own literal, with three
     departures, each of which is a standing project decision rather
     than a judgement made in the port:

     1. No transition and no transform anywhere. The sketch animates
        the summary background and rotates the chevron 90deg on open.
        The project ships no animation and no moving parts, so the
        background change is instant and the chevron swaps glyph
        instead of rotating.
     2. .detail-head loses the sketch's border-top and margin-top. In
        the sketch it is a divider between sections of one long column;
        here each section is its own 003-B band, and the band already
        separates them. Keeping both would draw a rule immediately
        inside a band edge.
     3. .ukon ol keeps the sketch's 3.6rem left padding, which aligns
        the numbered items under the summary text rather than under the
        letter chip. At phone width that indent is most of the gutter,
        so it drops to the list's own 1.3em below --bp-phone.
     ==================================================================== */

  /*
    002-C's page head. padding-block, never the padding shorthand,
    because this sits on a .wrap child and a shorthand's horizontal
    terms would cancel the wrapper's gutter -- the rule .opener already
    had to learn.
  */
  .page-head {
    padding-block: var(--space-xl) 0;
  }

  .page-body {
    padding-bottom: var(--space-xl);
  }

  /*
    The answer card. Raised surface, the page's only shadow outside the
    photo viewer, because it is the one thing on the page a visitor is
    meant to read before anything else.
  */
  .answer {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0 var(--space-xl);
  }

  .answer h2 {
    margin: 0 0 var(--space-md);
    font-size: var(--text-xl);
  }

  .answer-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin: 0;
  }

  .answer dt {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 700;
  }

  .answer dd {
    margin: var(--space-3xs) 0 0;
    font-weight: 600;
  }

  .answer dd small {
    display: block;
    font-weight: 400;
    color: var(--color-ink-soft);
    font-size: var(--text-sm);
  }

  .answer .cta-row {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
  }

  /*
    Cílová skupina as pills. 002's own review note asks whether this
    "restyles official categorical language as tags" and reads as
    flippant; the categories are carried word for word from the page,
    and the pill is the only thing that changed.
  */
  .chips {
    list-style: none;
    margin: var(--space-2xs) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xs);
  }

  .chips li {
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    border-radius: var(--radius-full);
    padding: 2px var(--space-xs);
    font-size: var(--text-sm);
  }

  /*
    Section head with a count on the right, and the rule that separates
    one section from the next now that this page carries no bands.
  */
  .detail-head {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-xl);
  }

  .detail-head h2 {
    margin: 0;
  }

  .detail-head .hint {
    color: var(--color-muted);
    font-size: var(--text-sm);
    margin-left: auto;
  }

  /*
    Statutory text, quieted and rule-marked rather than deleted. 002's
    review question 4 is the one this answers: there is a line between
    readable and burying the legal basis, and the § 40 paragraph stays
    on the page in full, in its own section, under its own heading.
  */
  .statute {
    color: var(--color-ink-soft);
    font-size: var(--text-sm);
    border-left: 2px solid var(--color-border);
    padding-left: var(--space-sm);
    margin: 0;
  }

  /* --- The úkony accordion ------------------------------------------ */

  .ukony-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }

  /*
    Capped rather than left to fill the row. 002-C has no search field
    at all -- it arrives with 005-A -- so a full-bleed input above the
    list reads as the page's main event instead of the utility it is.
    22rem is wide enough for the placeholder and any word a reader
    would type.
  */
  .ukony-controls input[type="search"] {
    flex: 1 1 12rem;
    max-width: 22rem;
    min-width: 0;
    min-height: 44px;
    padding: var(--space-3xs) var(--space-xs);
    font: inherit;
    color: var(--color-ink);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }

  .ukony-count {
    color: var(--color-muted);
    font-size: var(--text-sm);
  }

  .ukony {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }

  .ukon {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .ukon > summary {
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    gap: var(--space-sm);
    align-items: baseline;
    font-weight: 600;
    list-style: none;
  }

  .ukon > summary::-webkit-details-marker {
    display: none;
  }

  .ukon > summary:hover {
    background: var(--color-primary-soft);
  }

  /*
    Owner, 2026-09-29: "when you hover over an item in nabidka ukonu the
    circle around the letter has nearly same color as background, that
    is fine but add a darker border to it on hover so it still stands
    out (same in pravidla)."

    The chip's fill IS --color-primary-soft and so is the hovered row's,
    so the circle disappears into it exactly as reported. An inset
    box-shadow rather than a border, for the same reason .nav a
    .nav-parent-current uses one: a real 1px border would resize the
    1.7rem box on hover and nudge the summary text sideways.
  */
  .ukon > summary:hover .k,
  .sec > summary:hover .sec-num {
    box-shadow: inset 0 0 0 1px var(--color-primary-deep);
  }

  /*
    An OPEN section's chip is already solid --color-primary against the
    soft row, so it needs no outline and gets none -- the shadow would
    only muddy its edge.
  */
  .sec[open] > summary:hover .sec-num {
    box-shadow: none;
  }

  /*
    The letter chip carries the statutory enumerator -- a), b), c) --
    which is lifted out of the heading text so it can be a chip rather
    than punctuation. It is aria-hidden: the letter is a position in a
    list, not information, and a screen reader announcing "a" before
    every summary would be noise.
  */
  .ukon .k {
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    display: grid;
    place-items: center;
    font-size: var(--text-sm);
  }

  /*
    Departure 1: the sketch rotates this 90deg on open. No transform
    anywhere in this project, so the glyph itself changes -- a right
    chevron when closed, a down chevron when open. Generated content is
    acceptable here precisely because it carries no information: the
    summary's own open state is what assistive tech reads.
  */
  /*
    The ::before character pair that used to live here (\203A closed,
    \2304 open) is gone: tools/port-icons.sh puts a real two-path SVG in
    the span, and the swap is now .i-closed / .i-open in the icon block
    above. Same behaviour, same no-transform constraint, drawn instead
    of typed.
  */
  .chev {
    flex: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    color: var(--color-muted);
  }

  /*
    The sketch indents the open group's contents so they align under
    the summary text rather than under the letter chip. That indent
    moves to the body wrapper, since the group now opens onto the
    statutory label as well as the list.

    4.2rem, not the sketch's 3.6rem. Owner, 2026-09-29: "align the text
    in opened wrapper to the title now its slightly more to the left."
    Correct, and it is arithmetic rather than taste -- the summary text
    starts at its own padding-left (--space-md, 1.5rem) plus the letter
    chip (1.7rem) plus the flex gap (--space-sm, 1rem) = 4.2rem. The
    sketch's 3.6rem was 0.6rem short of its own summary, which is
    exactly the misalignment reported. A departure from the sketch,
    stated rather than silent.
  */
  .ukon-body {
    padding: 0 var(--space-md) var(--space-md) 4.2rem;
  }

  /*
    .ukon-full is RETIRED. It styled the full statutory label that each
    group opened onto -- restored one level down on 2026-09-28 so the
    page would still carry every word the statute does. Owner,
    2026-09-29: "in pecovani remove the sub title from each box." The
    lines are gone from the markup, so the rule has no consumer and
    goes with them rather than sitting here waiting.

    The statutory wording is not lost to the site: pravidla section 7
    publishes it in full, as do the source documents on stazenip.
  */

  .ukon ol {
    margin: 0;
    padding-left: 1.3em;
    color: var(--color-ink-soft);
    font-size: var(--text-sm);
  }

  .ukon ol li + li {
    margin-top: var(--space-3xs);
  }

  /*
    Departure 3. --bp-phone is 30rem; the media query repeats the
    literal 29.99rem because a custom property is not valid in a
    prelude, which is the same pairing the price table uses.
  */
  @media (max-width: 29.99rem) {
    .ukon-body {
      padding-left: var(--space-md);
    }
  }

  /*
    The expand-all control, which the sketch puts inline beside the
    group count. The sketch shrinks it to 2px of vertical padding; the
    44px tap-target floor every other control on this site carries is
    an accessibility invariant and outranks that, so only the type size
    and the horizontal padding come down.
  */
  .btn-inline {
    font-size: var(--text-sm);
    padding: var(--space-3xs) var(--space-sm);
  }

  .hint-sep {
    margin-inline: var(--space-3xs);
  }

  /*
    h) základní sociální poradenství has no sub-items in the source --
    it is one line, not a group of úkony. Shipping it as an eighth
    <details> would mean a disclosure that opens onto nothing, so it
    keeps the row's appearance and drops the disclosure. It is a real
    part of the statutory list and is not moved out of it.
  */
  .ukon-plain {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    gap: var(--space-sm);
    align-items: baseline;
    font-weight: 600;
  }

  /*
    Search hits. The UA default mark is a yellow that belongs to no
    palette here; primary-soft behind deep primary ink is the same pair
    the chips and the letter chip already use, and it is measured by
    tools/check-contrast.sh as a consequence.
  */
  mark {
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    border-radius: 3px;
    padding: 0 2px;
  }

  /* ====================================================================
     pravidla.html -- sketch 005 variant A, the exclusive accordion, on
     the full document. full.html in that sketch is the approved
     reference and these rules are its literals.

     CLASS NAMES are not. The sketch writes .body, .title, .num, .w,
     .count, .controls, .intro and .meta -- names fine inside a
     single-page mockup and far too generic for a stylesheet shared by
     sixteen pages (.body already means the page body on pecovani).
     They are .sec-body, .sec-title, .sec-num, .sec-words, .doc-count,
     .doc-controls, .doc-intro and .doc-meta here. .sec, .sub, .subs,
     .sections, .lead-in and .chev keep the sketch's names.

     Three departures, all standing project decisions:

     1. No transition and no transform. The sketch animates the summary
        background and the border, and rotates the chevron 90deg. The
        background and border changes are instant here and the chevron
        swaps glyph, exactly as it does on pecovani.
     2. .doc-controls is NOT sticky. The sketch pins it below its own
        sticky header; this site's header is deliberately not sticky
        (owner decision, 7411de0), so a control bar that pinned while
        the header scrolled away would be the only fixed thing on the
        site. The sketch's own narrow-width rule already makes it
        static, so this is that rule applied at every width.
     3. .sec and .sub carry scroll-margin-top so a deep link does not
        land with the summary jammed against the viewport edge. The
        sketch's 112px is sized for its sticky header; with no sticky
        header --space-lg is enough.
     ==================================================================== */

  .doc-meta {
    margin: var(--space-2xs) 0 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
  }

  /*
    The source document's own intro, kept open above the accordion
    because a reference page still needs to say what it is before it
    offers a menu.
  */
  .doc-intro {
    background: var(--color-surface-sunk);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
  }

  .doc-intro > :first-child {
    margin-top: 0;
  }

  .doc-intro > :last-child {
    margin-bottom: 0;
  }

  /*
    Sketch 005's .prose carries no max-width, so its intro box and its
    section bodies run the full 72rem column. This project's .prose does
    cap, at --measure, and applying that here capped the BOX rather than
    the lines inside it -- a narrow tinted panel floating in a wide
    column, and accordion cards that stopped short of the summary above
    them.

    So the cap moves inward one level: the surfaces span the column, as
    the sketch has them, and the paragraphs inside still break at the
    project's reading measure.
  */
  .doc-intro,
  .sec-body {
    max-width: none;
  }

  .doc-intro > *,
  .sec-body > * {
    max-width: var(--measure);
  }

  .doc-controls {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
  }

  .doc-controls input[type="search"] {
    flex: 1 1 13rem;
    max-width: 22rem;
    min-width: 0;
    min-height: 44px;
    font: inherit;
    font-size: var(--text-sm);
    padding: var(--space-2xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-ink);
  }

  .doc-count {
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  .sections {
    margin-top: var(--space-md);
  }

  .sec {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-margin-top: var(--space-lg);
  }

  .sec + .sec {
    margin-top: var(--space-2xs);
  }

  .sec[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }

  .sec[hidden],
  .sub[hidden] {
    display: none;
  }

  .sec > summary,
  .sub > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    font-weight: 600;
  }

  .sec > summary {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .sec > summary::-webkit-details-marker,
  .sub > summary::-webkit-details-marker {
    display: none;
  }

  .sec > summary:hover,
  .sub > summary:hover {
    background: var(--color-primary-soft);
  }

  .sec[open] > summary {
    background: var(--color-primary-soft);
  }

  .sec-num {
    flex: none;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    display: grid;
    place-items: center;
    font-size: var(--text-sm);
  }

  .sec[open] > summary .sec-num {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }

  .sec-title {
    flex: 1 1 auto;
  }

  /*
    The word count is not decoration. On a document this uneven it is
    the only warning a reader gets that section 7 is a third of the
    page. (The sketch's own comment, kept because it is the reason the
    count exists.)
  */
  .sec-words {
    flex: none;
    font-weight: 400;
    font-size: var(--text-xs);
    color: var(--color-muted);
    white-space: nowrap;
  }

  /*
    Indented to 4.3rem, owner 2026-09-29, the same fix as .ukon-body on
    pecovani and the same arithmetic: the summary's own padding-left
    (--space-md, 1.5rem) + the number chip (1.8rem) + the flex gap
    (--space-sm, 1rem). The body now starts under the section title
    rather than under the chip. Undone below the phone threshold, where
    2.8rem of indent is 2.8rem of a 375px screen.
  */
  .sec-body {
    padding: var(--space-md) var(--space-md) var(--space-lg) 4.3rem;
  }

  .sec-body.lead-in {
    padding-bottom: var(--space-sm);
  }

  .sec-body > :first-child {
    margin-top: 0;
  }

  /* --- Nested subsections, one exclusivity group per parent --------- */

  .subs {
    padding: 0 var(--space-md) var(--space-md) 4.3rem;
    display: grid;
    gap: var(--space-3xs);
  }

  .sub {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    overflow: hidden;
    scroll-margin-top: var(--space-lg);
  }

  .sub > summary {
    padding: var(--space-2xs) var(--space-sm);
    gap: var(--space-2xs);
    font-size: var(--text-sm);
  }

  .sub[open] {
    border-color: var(--color-primary);
  }

  .sub .sec-body {
    padding: var(--space-xs) var(--space-sm) var(--space-sm);
  }

  /*
    The summary is a flex row and the count is the last thing in it, so
    a long Czech heading pushes the count off the end at narrow widths.
    Letting the row wrap and parking the count on its own line under the
    title is the sketch's own fix, at the sketch's own indent.
  */
  @media (max-width: 29.99rem) {
    .sec > summary {
      flex-wrap: wrap;
    }

    .sec > summary .sec-words {
      flex-basis: 100%;
      margin-left: 2.8rem;
    }

    /*
      The 4.3rem title indent above is a desktop alignment, not a phone
      one -- it would spend 2.8rem of a 375px viewport on white space.
      Both wrappers fall back to the plain gutter here.
    */
    .sec-body {
      padding-left: var(--space-md);
    }

    .subs {
      padding-left: var(--space-md);
    }
  }

  /* ====================================================================
     cenik.html -- sketch 007, "price-grouped", approved as it stands.
     It refines 006-A; 006 is not the reference.

     The sketch's own class names are kept here (.rate, .ptable, .pg,
     .pg-item, .pg-price, .lookup) because they are specific enough not
     to collide, unlike 005's .body/.title/.num. Three that were too
     bare are prefixed: .n/.u/.when become .rate-n/.rate-u/.rate-when,
     and .row becomes .lookup-row.

     Departures, both standing project decisions:

     1. The sketch switches layout with @container (max-width: 30rem).
        This project has no container context and does its narrow
        branches with --bp-phone, so the swap is a media query at the
        29.99rem partner literal, same as the old .price-table used.
     2. No transition and no transform anywhere.
     ==================================================================== */

  /*
    The rate card, above the prices. 007: "The source explains 165/145
    AFTER the table, so a reader currently meets the unexplained slash
    nineteen times first. This is the single biggest fix on the page."
  */
  .rate {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
  }

  .rate h2 {
    margin: 0 0 var(--space-md);
    font-size: var(--text-lg);
  }

  .rate-pair {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }

  .rate-opt {
    background: var(--color-surface-sunk);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
  }

  .rate-n {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary-deep);
  }

  .rate-u {
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  .rate-when {
    display: block;
    margin-top: var(--space-2xs);
    font-size: var(--text-sm);
  }

  .rate .caveat {
    margin: var(--space-md) 0 0;
    font-size: var(--text-sm);
    color: var(--color-ink-soft);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
  }

  .tablecard {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
  }

  /* --- Wide: the grouped table, the 006-A reading ------------------- */

  .ptable {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
  }

  .ptable > thead th {
    text-align: left;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    padding: var(--space-2xs) var(--space-sm);
    border-bottom: 2px solid var(--color-border-strong);
  }

  .pg {
    border-top: 1px solid var(--color-border);
  }

  /*
    Group divider. The price column already blocks each group visually
    -- sunken background plus a 3px accent edge -- but the ukon column
    had nothing, so on the left half of the table one price group ran
    into the next with no boundary. The first row of every group after
    the first takes a heavier rule and room above; the last row of each
    takes room below. Border and padding rather than border-spacing,
    because the table is border-collapse: collapse, where margins
    between tbody elements do not exist.
  */
  .pg + .pg > tr:first-child > td,
  .pg + .pg > tr:first-child > th {
    border-top: 2px solid var(--color-border-strong);
    padding-top: var(--space-sm);
  }

  .pg > tr:last-child > td,
  .pg > tr:last-child > th {
    padding-bottom: var(--space-sm);
  }

  /*
    The price lives in the "Vyse uhrady" column, under its own column
    header, spanning its group via rowspan. An earlier pass put it in a
    full-width header row above the group, which left the price column
    empty on every single row -- a column header promising data that was
    not there. Grouping is what makes rowspan work: in source order the
    19 hourly rows fall into three non-contiguous runs.
  */
  .pg-price-cell {
    text-align: left;
    font-weight: 400;
    vertical-align: top;
    padding: var(--space-2xs) var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    background: var(--color-surface-sunk);
    width: 34%;
  }

  .pg-price {
    display: block;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary-deep);
    line-height: 1.25;
  }

  /*
    The clarification the previous wording got wrong: the price is
    charged per ukon, not once for the whole group.
  */
  .pg-scope {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-ink-soft);
    margin-top: var(--space-3xs);
  }

  .pg-n {
    display: block;
    margin-top: var(--space-2xs);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 700;
  }

  .pg td {
    padding: var(--space-2xs) var(--space-sm);
    border-bottom: 1px solid var(--color-border);
  }

  .pg tr:last-child td,
  .pg tr:last-child th {
    border-bottom: 0;
  }

  /*
    Two different questions, two different answers. Owner, 2026-09-28:
    "prices should highlight individually when you hover over specific
    úkon, when you hover over price it should highlight all with the
    same price."

    Hovering an úkon asks "this one -- which line am I on?", so the row
    alone lights. Hovering the price asks "which úkony cost this?", so
    the whole group lights.

    The second needs :has(), because the price cell is a CHILD of the
    group and CSS otherwise cannot colour an ancestor from a descendant's
    state. Where :has() is missing the rule simply does not match and
    the price hover falls back to lighting its own row -- the behaviour
    before this change, not a broken one.
  */
  .pg tr:hover > td {
    background: var(--color-primary-soft);
  }

  .pg:has(.pg-price-cell:hover) td,
  .pg:has(.pg-price-cell:hover) .pg-price-cell {
    background: var(--color-primary-soft);
  }

  /*
    Owner, 2026-09-29: "in cenik.html capitalize names of Ukon column."

    Done in the stylesheet, not in the markup. The organization writes
    every ukon in lower case, because in the statute each one is an item
    in a running list rather than a sentence; in a table column they
    read as 28 headless fragments. ::first-letter renders the capital
    the owner asked for while the DOM keeps the organization's own
    wording byte for byte -- so find-in-page, the search on pecovani and
    any future copy check still see the text they wrote.

    A text-transform: capitalize would have been wrong twice over: it
    capitalises EVERY word, and it would have put a capital on "WC",
    "DPS" and the parenthesised notes as well.
  */
  .pg-item::first-letter {
    text-transform: uppercase;
  }

  /*
    The velky nakup footnote (item 10). The reference marker and the
    note share .tref so the asterisk is the same size and colour in both
    places and the eye pairs them without being told.
  */
  .tref {
    color: var(--color-primary-deep);
    font-weight: 700;
    padding-left: 0.15em;
  }

  .tnote {
    margin: var(--space-sm) 0 0;
    font-size: var(--text-sm);
    color: var(--color-ink-soft);
  }

  .pg-item {
    color: var(--color-ink-soft);
  }

  /* --- Dovoz lookup ------------------------------------------------- */

  .lookup {
    background: var(--color-primary-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
  }

  .lookup h2 {
    margin: 0 0 var(--space-sm);
    font-size: var(--text-lg);
  }

  /*
    THE PICKER IS GONE. Owner decision, 2026-09-29: "drop the dropdown
    entirely", chosen over rebuilding it as the nav disclosure and over
    leaving the native <select> as it was.

    The nav join could not be applied here: the nav panel is our own
    markup, a <select> popup is drawn by the operating system and no CSS
    reaches it, so squaring the field would have left a square-bottomed
    box with a popup free to open upward. The real choice was to stop
    using <select>, and the owner took the option that removes the
    control rather than replacing it -- fifteen obce in five price bands
    is a table read at a glance, and the picker was answering a question
    the table already answered.

    So .lookup-row, .lookup select, .lookup-answer, .lookup-full,
    .lookup-full > summary, its ::-webkit-details-marker reset and
    .lookup-full .chev are all deleted here rather than left staged.
    js/lookup.js is deleted with them. Git holds every one of them, which
    is the rule the dead-CSS sweep used.

    .lookup and .lookup h2 survive: the section and its heading are
    still on the page, wrapping the table that is now simply present.
  */

  /* --- Narrow: the same DOM rendered as price cards ----------------- */

  /*
    007: "one DOM that restyles, not two markups with one hidden --
    hiding a copy duplicates every ukon name, so find-in-page reports
    each twice and a screen reader may meet the list twice."
  */
  @media (max-width: 29.99rem) {
    .tablecard {
      background: transparent;
      border: 0;
      padding: 0;
    }

    .ptable,
    .ptable > thead,
    .ptable > tbody,
    .ptable td {
      display: block;
    }

    .ptable > thead {
      display: none;
    }

    .pg {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-md);
      margin-bottom: var(--space-sm);
    }

    .pg tr {
      display: block;
    }

    /*
      rowspan does not survive a block layout, so the price cell would
      land after the first ukon instead of above the group. The first
      row becomes a flex column and the price cell is ordered ahead of
      it -- which turns the same cell into the card heading with no
      second copy in the DOM.
    */
    .pg tr:first-child {
      display: flex;
      flex-direction: column;
    }

    .pg-price-cell {
      order: -1;
      display: block;
      width: auto;
      background: transparent;
      border: 0;
      padding: 0 0 var(--space-sm);
    }

    .pg-price {
      font-size: var(--text-xl);
      line-height: 1.2;
    }

    .pg-n {
      border-top: 1px solid var(--color-border);
      padding-top: var(--space-2xs);
      margin-top: var(--space-2xs);
    }

    .pg td {
      padding: var(--space-3xs) 0;
      border-bottom: 0;
      border-top: 1px solid var(--color-border);
    }

    .pg tr:first-child .pg-item {
      border-top: 0;
    }

    .pg tr:hover td {
      background: transparent;
    }

    /*
      Each group is already its own card here, so the wide-layout group
      divider would only add a stray rule inside one.
    */
    .pg + .pg > tr:first-child > td,
    .pg + .pg > tr:first-child > th {
      border-top: 0;
      padding-top: 0;
    }

    .pg > tr:last-child > td,
    .pg > tr:last-child > th {
      padding-bottom: 0;
    }

    /*
      A single-item group has no list to head, so its one ukon carries
      the emphasis instead.
    */
    .pg[data-n="1"] .pg-item {
      font-weight: 600;
      color: var(--color-ink);
      border-top: 0;
    }
  }

  /* ====================================================================
     gnabidka.html -- sketch 014 variant B, "Dva sloupce".

     014's decision is emphatic about which half matters: "The port
     carries the <dl>/<dt>/<dd> conversion, not just the two-column
     styling. The semantics are the substantive change; the columns are
     how they are shown." The markup change is in
     tools/port-gnabidka.sh; these are the columns.
     ==================================================================== */

  .lead {
    font-size: var(--text-lg);
    color: var(--color-ink-soft);
    margin-top: var(--space-md);
  }

  .area + .area {
    margin-top: var(--space-xl);
  }

  .area h2 {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-sm);
    padding-bottom: var(--space-3xs);
    border-bottom: 2px solid var(--color-primary);
  }

  .terms {
    margin: 0;
  }

  .term-row {
    padding: var(--space-2xs) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .term-row:last-child {
    border-bottom: 0;
  }

  .terms dt {
    font-weight: 600;
  }

  .terms dd {
    margin: 0;
    color: var(--color-ink-soft);
  }

  /*
    Variant B: the terms form their own scannable column once there is
    room. The sketch's reasoning, worth keeping because it is why B beat
    A: "The source ends nearly every description with ', ...' meaning
    'and similar', so the descriptions are examples rather than a closed
    list -- which is exactly the kind of text that reads better beside
    its term than beneath."

    The sketch uses @container (min-width: 44rem); this project has no
    container context, so it is a media query. 44rem is a third
    breakpoint literal, belonging to this page alone -- it is where two
    columns stop fitting inside .wrap-text, not a site-wide threshold,
    so it is deliberately NOT promoted to a token beside --bp-phone and
    --bp-nav.
  */
  @media (min-width: 44rem) {
    .terms.cols .term-row {
      display: grid;
      grid-template-columns: 15rem minmax(0, 1fr);
      gap: var(--space-md);
      align-items: baseline;
    }
  }

  /* ====================================================================
     kontakty.html -- sketch 008 variant B, the searchable directory.

     008 rejects an accordion here on purpose, and the reasoning is
     worth keeping because it looks like an inconsistency with 005-A
     until you read it: "pravidla is a reference document read in
     sections, kontakty is a lookup of twenty peers. Collapsing helps
     the first and hurts the second, because a client looking for their
     own pecovatelka by name would need two clicks and no search."

     It also settles the photographs. These twenty portraits are the
     only human imagery on the site and variant C was the strongest
     case available for relaxing the warmth-without-photographs
     direction. C lost, so that direction now holds sitewide, decided
     on the one page best placed to overturn it. Portraits stay at card
     size, where a 75x98 source is honest -- which is why the existing
     .staff-card rules are left alone here.

     Departures: no transition, and .searchbar is not sticky, for the
     same reason .doc-controls is not. 008 lists the sticky bar as
     "open, minor" and notes it goes static on a phone anyway.
     ==================================================================== */

  .first {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
  }

  .first h2 {
    font-size: var(--text-lg);
    margin-top: 0;
  }

  .first-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .first-opt {
    background: var(--color-surface-sunk);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
  }

  .first-opt .who {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 700;
  }

  .first-opt .num {
    display: block;
    margin-top: var(--space-2xs);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-deep);
    text-decoration: none;
  }

  .first-opt .num:hover {
    text-decoration: underline;
  }

  /*
    An e-mail address is not a phone number and does not want the
    number's size; it also has no spaces to break at, so it is allowed
    to break anywhere rather than push the card wider than its column.
  */
  .first-opt .num-mail {
    font-size: var(--text-base);
    word-break: break-all;
  }

  .first-opt .note {
    display: block;
    margin-top: var(--space-3xs);
    font-size: var(--text-sm);
    color: var(--color-ink-soft);
  }

  .first .switchboard {
    margin: var(--space-md) 0 0;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-ink-soft);
  }

  .first .switchboard code {
    font-family: ui-monospace, monospace;
    background: var(--color-bg-alt);
    padding: 1px 5px;
    border-radius: 4px;
  }

  /* --- Search and department filter --------------------------------- */

  .searchbar {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
  }

  .searchbar input[type="search"] {
    flex: 1 1 15rem;
    max-width: 24rem;
    min-width: 0;
    min-height: 44px;
    font: inherit;
    font-size: var(--text-sm);
    padding: var(--space-2xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-ink);
  }

  .dir-count {
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  .chips-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xs);
    margin-top: var(--space-sm);
  }

  /*
    The sketch marks the active chip with a class. aria-pressed carries
    the same state to assistive tech as well as to the stylesheet, so
    the state is announced rather than only coloured -- and the colour
    is then a consequence of the semantics rather than a parallel
    truth that can drift.
  */
  .chip-filter {
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    background: transparent;
    color: var(--color-primary-deep);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    min-height: 44px;
    padding: var(--space-3xs) var(--space-sm);
  }

  .chip-filter:hover {
    background: var(--color-primary-soft);
  }

  .chip-filter[aria-pressed="true"] {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
  }

  /* --- Departments --------------------------------------------------- */

  .dhead {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    font-weight: 700;
    margin: 0 0 var(--space-sm);
    display: flex;
    align-items: baseline;
    gap: var(--space-2xs);
  }

  .dhead .dn {
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    border-radius: var(--radius-full);
    padding: 0 var(--space-2xs);
    font-size: var(--text-xs);
  }

  .dblocks {
    margin-top: var(--space-lg);
  }

  .dblock + .dblock {
    margin-top: var(--space-xl);
  }

  .dblock[hidden],
  .staff-card[hidden] {
    display: none;
  }

  /* ====================================================================
     fotogalerie.html -- sketch 010, category tabs. Approved as it
     stands; it SUPERSEDES sketch 009, whose variants stay for
     reference only.

     "Vse" is the confirmed default, so the page still opens on all
     fifteen: an arriving visitor sees the whole set and chooses to
     narrow, rather than having a narrowing chosen for them.

     ONE DOM, FILTERED. Every photo appears exactly once and the tabs
     hide what does not match -- 010: "Four hidden copies would put each
     photo in the document four times."

     Not touched here: the viewer itself. 010 carries it over unchanged
     from 009, and the owner has already settled its look separately
     (84b6bc5 -- sketch 009 layout, sharp corners, photos fill the
     frame, D-36 restored). The only addition is #pv-scope, which names
     the active category beside the counter, as 010 asks.

     Departures: no transition, and no transform, so .gallery a does not
     lift on hover -- the border and the existing focus treatment carry
     it instead.
     ==================================================================== */

  .gtabs {
    display: flex;
    gap: var(--space-2xs);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-2xs);
    margin-bottom: var(--space-lg);
  }

  .gtabs button {
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    font-weight: 600;
    background: transparent;
    color: var(--color-ink-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    min-height: 44px;
    padding: var(--space-2xs) var(--space-sm);
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-2xs);
  }

  .gtabs button:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
  }

  /*
    aria-selected drives the appearance, so what is announced and what
    is seen cannot drift apart.
  */
  .gtabs button[aria-selected="true"] {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
  }

  .gtabs .tn {
    font-weight: 400;
    font-size: var(--text-xs);
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    border-radius: var(--radius-full);
    padding: 0 var(--space-2xs);
  }

  /*
    The sketch uses rgba(255,255,255,.22) for the count on the selected
    tab. Surface tokens only here: the selected tab is --color-primary,
    and --color-on-primary on it is the pair check-contrast.sh already
    measures at 5.89.
  */
  .gtabs button[aria-selected="true"] .tn {
    background: transparent;
    color: var(--color-on-primary);
    border: 1px solid var(--color-on-primary);
  }

  #gpanel:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
  }

  .gallery li[hidden] {
    display: none;
  }

  .pv-scope {
    color: var(--color-muted);
    font-size: var(--text-sm);
    margin-right: var(--space-2xs);
  }

  /*
    The sketch stacks the tabs at 30rem, the same phone threshold
    sketch 007 uses, so the strip does not become a six-line wrap.
  */
  @media (max-width: 29.99rem) {
    .gtabs {
      flex-direction: column;
      align-items: stretch;
    }

    .gtabs button {
      justify-content: space-between;
    }
  }

  /* ====================================================================
     stazenid.html / stazenip.html -- sketch 012, the approved merged
     download page. Both URLs serve the same body.

     The grouping is by what the visitor is trying to do, not by which
     branch of the organization owns the form, which is what removes
     the wrong-branch guess the merge existed to kill.

     Every row states the real file size, read from disk by
     tools/port-downloads.sh rather than typed, with anything at or
     above 1 MiB marked "velky soubor". No invented metadata: in
     particular no "last updated" date, because a filesystem mtime is a
     fact about the file, not about the document.

     Not carried from the sketch: its .ico badge and .arrow glyph. The
     meta line already says PDF, so the badge would repeat it, and the
     arrow is decoration on a row that is entirely a link.
     ==================================================================== */

  .taskgroup + .taskgroup {
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-xl);
  }

  .tasklabel {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    font-weight: 700;
    margin: 0 0 var(--space-3xs);
  }

  .taskq {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-3xs);
  }

  .tasklead {
    margin: 0 0 var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-ink-soft);
  }

  .doc-rows {
    display: grid;
    gap: var(--space-2xs);
  }

  .doc-rows li {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }

  .doc-rows li:hover {
    border-color: var(--color-primary);
  }

  /*
    .doc-list a is a 44px flex row already; this adds the padding and
    lets the title and meta stack, which a row-direction flex would not.
  */
  .doc-rows li > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: inherit;
  }

  .dtitle {
    display: block;
    font-weight: 600;
    color: var(--color-primary-deep);
  }

  .doc-rows li:hover .dtitle {
    text-decoration: underline;
  }

  .dmeta {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  /*
    The size marker earns emphasis only when it is a warning. Three of
    the eight documents are over 750 kB and the Prakticky pruvodce is
    2,5 MB -- on a rural connection that is the difference between a
    tap and a wait.
  */
  .dmeta .big {
    color: var(--color-primary-deep);
    font-weight: 600;
  }

  /*
    Arriving by anchor. Owner, 2026-09-28: every document link elsewhere
    on the site now points at stazenip.html#doc-<slug>, and "would be
    highlighted if you go there through such link".

    :target does it with no script: the row the fragment names lights up
    and stays lit until the reader follows another anchor, which is the
    right duration -- a flash would be gone by the time someone who
    clicked from a paragraph two pages back has finished looking at the
    screen.

    scroll-margin-top keeps the row off the very top edge when the
    browser jumps to it.
  */
  .doc-rows li:target {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    scroll-margin-top: var(--space-lg);
  }

  .doc-rows li:target .dmeta {
    color: var(--color-primary-deep);
  }

  /* ====================================================================
     aktuality.html -- sketch 013 variant B, "Aktualni stav + archiv".

     013 exists because the newest item on this page is from March 2020
     while "Aktuality" sits in the main navigation of every page. B's
     job is to stop the page IMPLYING currency: the standing notice
     moves into a date-free status block at the top, and the 2020 items
     sit beneath "Starsi sdeleni" with their ages shown.

     THE PLACEHOLDER IS NOT SHIPPED. 013 makes this a hard precondition
     rather than a nicety: B's status block carries a second line the
     organization is meant to keep current, and "if it ships empty, or
     ships and then freezes, B is WORSE than the page it replaces -- a
     block explicitly labelled Aktualni stav that is silently years out
     of date is a stronger false claim than an undated banner above old
     articles."

     So the block ships with the real standing notice and NOTHING ELSE.
     No placeholder sentence, no empty line reserved for one. Writing
     that sentence is a content dependency on the organization and is
     recorded in .planning/TEXT-CHANGES-FOR-REVIEW.md; if they will not
     supply it, 013's own instruction is to fall back to variant C, and
     that decision is still open.
     ==================================================================== */

  .status {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
  }

  .status-label,
  .arch-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    font-weight: 700;
    margin: 0 0 var(--space-2xs);
  }

  .status-text {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 1.25;
    color: var(--color-primary-deep);
  }

  /*
    The two monthly documents sit under the status card, inside the same
    band: both answer "what is true this month". They need their own
    breathing room from the card above them.
  */
  .status + .arch-label {
    margin-top: var(--space-lg);
  }

  .archive .news-article + .news-article {
    margin-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
  }

  .news-date {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2xs);
    font-size: var(--text-base);
    margin: 0 0 var(--space-2xs);
  }

  /*
    The age label, computed by js/ages.js from the article's own
    datetime. Past two years it takes the stronger treatment -- the
    point of the page is that these items are old, so the label should
    not read as a neutral timestamp.
  */
  .age {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    background: var(--color-surface-sunk);
    border-radius: var(--radius-full);
    padding: 2px var(--space-2xs);
  }

  .age[data-old] {
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
  }
}

@layer utilities {
  /*
    The single print stylesheet block for the whole project (LAYOUT-08,
    plan 01-05 Task 2). Every print-conditional rule in the project
    lives inside this one print media block below -- nothing outside
    it is print-conditional, so deleting the block changes no screen
    computed style.

    Colours below are fixed literals (black text, white background),
    never a --color-* token, so the printed page is identical across
    repeated prints regardless of the screen's own colours.

    No rule here targets the floating toggle/palette widget
    (#penzion-design-widget): that control already carries its own
    print-media rule inside the unlayered <style> element
    js/design-toggle.js injects at runtime, and an unlayered
    runtime-injected rule always beats anything in a named layer --
    a rule here would silently never apply. Do not "fix" this
    apparent omission by adding one.

    Table structure: no rule anywhere in this block may collapse or
    hide a table element. The one addition below (plan 03-06, PD-36)
    restores cenik.html's price tables to their normal wide layout on
    paper, so a printed price list is 33 rows in two real columns
    rather than 33 stacked label-over-value pairs running over several
    pages.
  */
  @media print {
    body {
      background-color: #FFFFFF;
      color: #000000;
      overflow-wrap: break-word;
    }

    a {
      color: #000000;
    }

    /*
      Hide the phone-width menu disclosure, the primary nav and the
      bottom sticky contact strip. The floating design/palette widget
      is intentionally NOT listed here -- see the comment above this
      block.
    */
    .nav-disclosure,
    .nav,
    #penzion-contact-strip {
      display: none;
    }

    /*
      Three print rules lived here and are gone with their classes:
      .toc (pravidla's in-page anchor index, retired when 005-A made
      the collapsed summaries the index), .sitemap (the footer
      sitemap, moved into the header nav in 4b224b0) and
      .footer-group-docs (the Dokumenty footer group). The judgement
      they encoded still stands and still applies to what remains:
      navigation is hidden on paper, publicity attribution is not --
      the Financovani a dotace and Zrizovatel groups stay visible.
    */

    /*
      Relax the reading-column measure so the page does not print at
      the same narrow column a screen reader on a phone would see.

      This rule used to name .page-grid > main and .wrap-text, the two
      wrappers that capped the column before every page moved to .wrap.
      Both are gone, so the cap now lives in exactly four places and all
      four are listed -- .prose, the two inner caps pravidla needs, and
      the banded pages' page head. Nothing else caps a text column.
    */
    .prose,
    .doc-intro > *,
    .sec-body > *,
    .wrap.page-head {
      max-width: none;
    }

    /*
      Sketch 005-A: "nothing hidden on paper." js/accordion.js already
      opens every section and subsection on beforeprint and restores
      them after, so what is left for CSS is to stop the accordion
      looking like an accordion once it is all open -- the card borders,
      the raised summary and the shadow are screen affordances for
      something a printed page cannot do. The chevron and the word count
      go with them: one points at an interaction that is not there, the
      other warns about a length the reader can now see.
    */
    .doc-controls {
      display: none;
    }

    .sec,
    .sub {
      border: 0;
      border-top: 1px solid var(--color-border-strong);
      border-radius: 0;
      box-shadow: none;
      background: transparent;
      page-break-inside: avoid;
    }

    .sec > summary,
    .sub > summary {
      background: transparent;
      padding-left: 0;
    }

    .chev,
    .sec-words {
      display: none;
    }

    .sec-body,
    .subs {
      padding-left: 0;
    }

    /*
      Collapse the band rhythm on paper. --space-xl top and bottom is
      right on a screen, where a band is a full-bleed surface the
      reader scrolls through. Printed, the tint does not render at all
      (browsers drop backgrounds unless explicitly asked) and all that
      survives of a band is 6rem of white between one section and the
      next. ostatni prints as 6 sections and prohlaseni as 7, so that
      is most of a sheet of nothing.
    */
    .band {
      padding-block: var(--space-sm);
    }

    /*
      PD-36: restore the price table's normal wide layout on paper --
      without this, the narrow-width stacking branch would print as 33
      stacked label-over-value pairs, worse than the table it replaced.
    */
    .price-table {
      display: table;
      width: auto;
    }

    .price-table tbody {
      display: table-row-group;
      width: auto;
    }

    .price-table tr {
      display: table-row;
      width: auto;
    }

    .price-table th,
    .price-table td {
      display: table-cell;
      width: auto;
    }

    .price-table thead {
      position: static;
      width: auto;
      height: auto;
      overflow: visible;
      clip-path: none;
      white-space: normal;
    }

    .price-table td::before {
      content: none;
    }
  }
}
