/* Divohyb public site — DESIGN.md v1.5.
   Tokens first; every component below reads the semantic layer only. */

:root {
  /* Základné tokeny · nikdy sa nemenia */
  --dh-canvas: #F7F3EA;
  --dh-canvas-soft: #EFE9DA;
  --dh-white: #FFFFFF;
  --dh-grey-surface: #E7E2D6;
  --dh-ink: #241E18;
  --dh-text: #4A4038;
  --dh-muted: #6B6154;
  --dh-line: #DFD8C8;
  --dh-line-strong: #8C7F5F;
  --dh-green-deep: #17342A;
  --dh-green: #1E5C40;
  --dh-green-action: #26714E;
  --dh-green-leaf: #6A8D55;
  --dh-moss: #8FAE77;
  --dh-orange: #C2521C;
  --dh-ochre: #DFA63C;
  --dh-on-dark: #F0EDE3;
  --dh-on-dark-muted: #C2CCBE;

  /* Sémantická vrstva */
  --surface-page: var(--dh-canvas);
  --surface-raised: var(--dh-white);
  --surface-sunken: var(--dh-canvas-soft);
  --surface-feature: var(--dh-green-deep);
  --surface-accent: var(--dh-ochre);
  --text-heading: var(--dh-ink);
  --text-body: var(--dh-text);
  --text-muted: var(--dh-muted);
  --accent-cta: var(--dh-orange);
  --accent-nav: var(--dh-green-action);
  --accent-decor: var(--dh-moss);
  --decor-max: 2;

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --r-inner: 4px;
  --r-block: 8px;
  --r-round: 999px;

  --sh-card: 0 1px 2px rgba(36, 30, 24, .06);

  --control-h: 37px;
  --control-h-touch: 44px;

  --container: 1160px;
  --gutter-mobile: 1.25rem;
  --gutter-desktop: 2rem;
}

/* ---- Reset (6.1) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; }
/* Author display rules (.dh-btn etc.) must never override the hidden attribute. */
[hidden] { display: none !important; }
img, video { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; }

body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* The footer sits on the bottom edge of a short page (login, thank-you,
     camp, 404) instead of floating mid-screen with cream below it. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
/* A page that is nothing but its hero (camp, 404, a plain thank-you, the
   coming-soon page) holds it in the middle of the free space. */
main > .dh-hero:only-child { flex: 1 0 auto; display: flex; align-items: center; }
main > .dh-hero:only-child > .dh-container { width: 100%; }

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-heading);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.10; letter-spacing: -.022em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.018em; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.012em; }
h4 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.008em; }

strong, b { font-weight: 600; }
em, i { font-style: normal; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }

a { color: var(--accent-nav); text-decoration: underline; text-underline-offset: .15em; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--dh-ink);
  outline-offset: 2px;
}

.dh-muted { color: var(--text-muted); }
.dh-caption { font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
.dh-body-sm { font-size: .875rem; line-height: 1.55; }
.dh-lead { font-size: 1.125rem; line-height: 1.6; }
.dh-hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--accent-nav);
  transform: rotate(-2deg);
  display: inline-block;
}

.dh-skip {
  position: absolute;
  left: -999px;
  top: var(--sp-2);
  background: var(--surface-raised);
  color: var(--dh-ink);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-inner);
  z-index: 100;
}
.dh-skip:focus { left: var(--sp-2); }

/* ---- Layout (4.2, 4.3) ---- */
.dh-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
.dh-container--narrow { max-width: 50rem; }
.dh-section { padding-block: var(--sp-16); text-align: center; }
.dh-section--raised { background: var(--surface-raised); }
.dh-section--sunken { background: var(--surface-sunken); }
.dh-section--feature { background: var(--surface-feature); color: var(--dh-on-dark); }
.dh-section--feature h1, .dh-section--feature h2, .dh-section--feature h3 { color: var(--dh-on-dark); }
.dh-section--feature p { color: var(--dh-on-dark-muted); }
.dh-section--feature a { color: var(--dh-on-dark); }
.dh-section .dh-container > * + * { margin-block-start: var(--sp-6); }
.dh-section p { max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.dh-section .dh-grid p { margin-inline: 0; }

.dh-split { text-align: left; display: grid; gap: var(--sp-8); }
.dh-split > * > * + * { margin-block-start: var(--sp-4); }
.dh-split p, .dh-form p, .dh-faq p, .dh-legal p, .dh-schedule p, .dh-footer p {
  max-width: 62ch;
  margin-inline: 0;
  text-wrap: pretty;
}
.dh-form, .dh-faq, .dh-legal, .dh-footer { text-align: left; }
/* Their headings stay centred like every other section heading; the body text does not. */
.dh-form > h1, .dh-form > h2, .dh-faq > h1, .dh-faq > h2 { text-align: center; }
/* One reading column for every legal text: 40rem including the gutters is
   about 70 characters a line (DESIGN 3.3). */
.dh-legal { max-width: 40rem; }
.dh-legal > * + * { margin-block-start: var(--sp-4); }
.dh-legal h2 { font-size: 1.5rem; margin-block-start: var(--sp-8); }
.dh-legal h3 { font-size: 1.25rem; margin-block-start: var(--sp-8); }
.dh-legal ol, .dh-legal ul { margin-block-start: var(--sp-3); }
.dh-legal li + li { margin-block-start: var(--sp-2); }

.dh-grid { display: grid; gap: var(--sp-6); text-align: center; }

.dh-hero { padding-block: var(--sp-12); }

@media (min-width: 48rem) {
  .dh-container { padding-inline: var(--gutter-desktop); }
  .dh-section { padding-block: var(--sp-24); }
  .dh-hero { padding-block: var(--sp-16); }
  .dh-split--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-split--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Buttons (5) ---- */
.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-round);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.dh-btn:active { transform: translateY(1px); }
.dh-btn:focus-visible { outline: 2px solid var(--dh-ink); outline-offset: 2px; }
.dh-btn--cta { background: var(--accent-cta); color: var(--dh-white); border-color: var(--accent-cta); }
.dh-btn--primary { background: var(--accent-nav); color: var(--dh-white); border-color: var(--accent-nav); }
.dh-btn--secondary { background: transparent; color: var(--accent-nav); border-color: var(--accent-nav); }
.dh-btn--quiet { background: transparent; color: var(--dh-ink); border-color: var(--dh-ink); }
.dh-btn--inverse { background: var(--dh-white); color: var(--dh-green-action); border-color: var(--dh-white); }
.dh-btn--inverse:focus-visible, .dh-btn--ghost:focus-visible { outline-color: var(--dh-on-dark); }
.dh-btn--ghost { background: transparent; color: var(--dh-on-dark); border-color: rgba(240, 237, 227, .55); }
.dh-btn--muted { background: var(--dh-grey-surface); color: var(--dh-muted); border-color: var(--dh-line-strong); }
.dh-btn--sm { padding: 0.4375rem 0.875rem; font-size: 0.875rem; }
/* A size, like --sm: the full width of a phone card, for a label too long
   for one pill line ("Pokračujeme aj v 2. školskom polroku"). */
.dh-btn--block { width: 100%; line-height: 1.25; text-align: center; }
@media (min-width: 30rem) { .dh-btn--block { width: auto; } }
.dh-btn[disabled] { opacity: .6; cursor: default; }
@media (pointer: coarse) {
  .dh-btn { min-height: var(--control-h-touch); }
}

.dh-link-arrow {
  display: inline-block;
  color: var(--accent-nav);
  font-weight: 700;
  text-decoration: none;
}
.dh-link-arrow::after { content: "\00a0→"; }   /* never an arrow alone on a line */
.dh-link-arrow:hover { text-decoration: underline; }
@media (pointer: coarse) {
  .dh-link-arrow { display: inline-flex; align-items: center; min-height: var(--control-h-touch); }
}

/* ---- Badge (6.5) ---- */
.dh-badge {
  display: inline-block;
  background: var(--dh-ochre);
  color: var(--dh-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-round);
}
/* Ochre is "look here": free places, an invoice waiting to be paid. The
   other three states never compete with it (DESIGN 6.5). */
.dh-badge--muted { background: var(--dh-grey-surface); color: var(--dh-text); }   /* full, closed, cancelled */
.dh-badge--ok { background: transparent; color: var(--dh-green-action); box-shadow: inset 0 0 0 1.5px currentColor; }
.dh-badge--warn { background: var(--dh-ink); color: var(--dh-canvas); }         /* overdue */

/* ---- Cards (6.2) ---- */
.dh-group-card {
  background: var(--surface-raised);
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  padding: var(--sp-6);
  text-align: center;
  box-shadow: var(--sh-card);
  transition: border-color .16s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.dh-group-card:hover { border-color: var(--dh-ink); }
.dh-group-card > * { margin: 0; }
.dh-group-card h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.008em; }
/* Price, badge and link sit on the bottom edge of every card in a row,
   whatever the description above them is long. */
.dh-group-card-foot { margin-top: auto; display: grid; gap: var(--sp-3); justify-items: center; padding-top: var(--sp-2); }
.dh-group-card.is-closed h3 { color: var(--text-muted); }
.dh-mascot { width: 64px; height: 64px; }
.dh-price strong { font-size: 1.25rem; color: var(--text-heading); }

/* ---- Photo (8) ---- */
.dh-photo {
  border-radius: var(--r-block);
  overflow: hidden;
  position: relative;
  background: var(--dh-canvas-soft);
}
.dh-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.dh-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(223, 166, 60, .07);
  pointer-events: none;
}
.dh-photo--portrait { max-width: 22rem; width: 100%; margin-inline: auto; }

/* ---- Navigation (6.6) ---- */
/* No shadow under the header — the owner asked for the page to start flat. */
.dh-nav { background: var(--surface-page); box-shadow: none; position: static; }
.dh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Logo + town switcher + CTA are wider than a 360 px phone; let the right-hand
     cluster drop to a second row rather than push the page into sideways scroll. */
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-block: .875rem;
}
.dh-logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--dh-ink); text-decoration: none; }
.dh-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; }
.dh-logo-mark img { width: 2.25rem; height: auto; display: block; }
.dh-logo-word { font-weight: 800; font-size: 1.375rem; letter-spacing: -.018em; color: var(--dh-ink); }
.dh-nav-end { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
/* Logo + town switcher + CTA are 377 px, a 390 px phone has 350: on a town
   page the mark alone carries the brand and the header stays one row. */
@media (max-width: 29.99rem) {
  .dh-nav-inner:has(.dh-town-select:not([hidden])) .dh-logo-word { display: none; }
}

/* Town switcher — the chosen town in the header, the other towns in a dropdown.
   <details> so it works without JS and by keyboard. */
.dh-town-select { position: relative; }
.dh-town-select > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--control-h-touch);
  padding-inline: var(--sp-2);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--dh-ink);
  cursor: pointer;
  list-style: none;
}
.dh-town-select > summary::-webkit-details-marker { display: none; }
.dh-town-select > summary:hover { color: var(--accent-nav); }
.dh-caret {
  width: 0;
  height: 0;
  border-inline: .3rem solid transparent;
  border-top: .35rem solid currentColor;
  transition: transform .16s ease;
}
.dh-town-select[open] .dh-caret { transform: rotate(180deg); }
.dh-town-select > nav {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sp-2));
  z-index: 30;
  min-width: 11rem;
  display: grid;
  padding: var(--sp-2);
  background: var(--surface-raised);
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  box-shadow: var(--sh-card);
  text-align: left;
}
.dh-town-select > nav a {
  display: flex;
  align-items: center;
  min-height: var(--control-h-touch);
  padding-inline: var(--sp-3);
  border-radius: var(--r-inner);
  color: var(--dh-ink);
  text-decoration: none;
  font-weight: 600;
}
.dh-town-select > nav a:hover { background: var(--surface-sunken); }

/* ---- Footer ---- */
.dh-footer {
  background: var(--surface-feature);
  color: var(--dh-on-dark);
  padding-block: var(--sp-12);
  text-align: left;
}
.dh-footer p { color: var(--dh-on-dark-muted); }
.dh-footer a, .dh-footer .dh-linkbtn { color: var(--dh-on-dark); text-decoration: none; }
.dh-footer a:hover, .dh-footer .dh-linkbtn:hover { text-decoration: underline; }
.dh-footer a:focus-visible, .dh-footer button:focus-visible { outline-color: var(--dh-on-dark); }
/* One link per row; on a finger every row is a 44 px target (DESIGN 11). */
.dh-footer-links { list-style: none; padding: 0; display: grid; gap: var(--sp-1); justify-items: start; }
@media (pointer: coarse) {
  .dh-footer-links { gap: 0; }
  .dh-footer-links a, .dh-footer-links button { display: inline-flex; align-items: center; min-height: var(--control-h-touch); }
}
.dh-footer-grid { display: grid; gap: var(--sp-8); }
/* The two rules below name the element on purpose: the blanket `.dh-footer p`
   above is more specific than a bare class and would win the colour, the
   max-width and the margin-inline. */
.dh-footer p.dh-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--dh-white);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -.018em;
}
.dh-footer-logo img { width: 2.25rem; height: auto; filter: brightness(0) invert(1); }
.dh-footer-tagline { margin-top: var(--sp-1); color: var(--dh-on-dark-muted); }
/* Photo + contact read as one group. `justify-self` (desktop, below) shrinks the
   pair to its own width and centres it in the middle third. */
.dh-footer-person { display: inline-flex; align-items: center; gap: 1.25rem; }
.dh-footer-person { align-self: start; }   /* its top edge on the brand's and the links' line, not centred in the row */
.dh-footer-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.dh-footer-brand { color: var(--dh-on-dark); font-weight: 700; margin-bottom: var(--sp-2); }
.dh-footer p.dh-footer-copy {
  margin-top: var(--sp-8);
  max-width: none;
  margin-inline: auto;
  font-size: .8125rem;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .dh-footer p.dh-footer-copy { white-space: normal; }
}
/* A tablet has no room for three thirds (the photo + contact pair is ~330 px):
   brand over the trainer on the left, the links on the right. */
@media (min-width: 48rem) {
  .dh-footer-grid { grid-template-columns: 1fr 1fr; }
  .dh-footer-grid > nav { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 64rem) {
  .dh-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .dh-footer-grid > nav { grid-column: auto; grid-row: auto; }
  .dh-footer-person { justify-self: center; }
}

/* ---- Lists ---- */
/* .dh-category ul: the bullet list inside a category description, which comes
   from the portal as markdown and cannot carry a class. */
.dh-check, .dh-category ul { list-style: none; padding: 0; }
.dh-check li, .dh-category li { position: relative; padding-left: 1.5rem; }
.dh-check li + li, .dh-category li + li { margin-top: var(--sp-1); }
.dh-check li::before, .dh-category li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .35rem;
  width: .45rem;
  height: .85rem;
  border-right: 2px solid var(--accent-nav);
  border-bottom: 2px solid var(--accent-nav);
  transform: rotate(45deg);
}
.dh-pricelist, .dh-details {
  list-style: none;
  padding: 0;
  max-width: 46ch;
  margin-inline: auto;
  text-align: left;
}
.dh-pricelist li + li, .dh-details li + li { margin-top: var(--sp-2); }
/* The link after a details list starts on the list's edge, not centred under it. */
.dh-section .dh-details + p { text-align: left; }
.dh-schedule h4 { font-size: 1rem; margin-top: var(--sp-4); }
.dh-schedule ul { list-style: none; padding: 0; }
.dh-schedule li + li { margin-top: var(--sp-1); }

/* ---- FAQ ---- */
.dh-faq-card {
  background: var(--surface-raised);
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  overflow: hidden;                    /* first/last item follow the rounded corners */
}
.dh-faq-card > details { padding: var(--sp-3) var(--sp-4); }
.dh-faq-card > details + details { border-top: 1px solid var(--dh-line); }
.dh-faq summary {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  padding-block: var(--sp-1);
  list-style: none;
}
.dh-faq summary::-webkit-details-marker { display: none; }
.dh-faq summary::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-block: .3rem solid transparent;
  border-left: .4rem solid var(--accent-nav);
  transition: transform .16s ease;
}
.dh-faq details[open] > summary::before { transform: rotate(90deg); }
.dh-faq details[open] summary { margin-bottom: var(--sp-2); }
.dh-faq details p { margin-left: 1.15rem; }   /* line up with the question, not the marker */
.dh-faq details p + p { margin-top: var(--sp-3); }
/* A finger gets a 44 px question; the row keeps its height (padding moves
   from the item to the summary). */
@media (pointer: coarse) {
  .dh-faq-card > details { padding-block: .4375rem; }
  .dh-faq-card > details[open] { padding-block-end: var(--sp-3); }
  .dh-faq summary { padding-block: .5625rem; }
}

/* ---- Forms (6.7) ---- */
.dh-form fieldset { border: 0; padding: 0; margin: 0; }
.dh-form fieldset + fieldset { margin-block-start: var(--sp-8); }
.dh-form legend { font-weight: 700; font-size: 1.25rem; color: var(--text-heading); padding: 0; margin-bottom: var(--sp-4); }
.dh-fields { display: grid; gap: var(--sp-4); }
.dh-field label, .dh-choices legend { display: block; font-weight: 600; margin-bottom: var(--sp-1); font-size: 1rem; }
.dh-input {
  width: 100%;
  background: var(--dh-white);
  color: var(--dh-ink);
  border: 1.5px solid var(--dh-line-strong);
  border-radius: var(--r-inner);
  padding: 0.4375rem 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.25;
  min-height: var(--control-h);
}
.dh-input:focus-visible { outline: 2px solid var(--dh-ink); outline-offset: 1px; border-color: var(--dh-ink); }
.dh-input[aria-invalid="true"], .has-error .dh-input { border-color: var(--dh-orange); }
.dh-help { font-size: .8125rem; color: var(--text-muted); margin-top: var(--sp-1); }
.dh-error { font-size: .875rem; line-height: 1.55; color: var(--dh-ink); margin-top: var(--sp-1); }
.dh-error::before { content: "Chyba: "; font-weight: 600; }
.dh-error[data-age-hint]::before { content: ""; }
.dh-child {
  border: 1px solid var(--dh-line);
  border-radius: var(--r-inner);     /* nested in the 8 px form card (DESIGN 4.1) */
  background: var(--surface-page);
  padding: var(--sp-4);
}
.dh-child + .dh-child { margin-top: var(--sp-4); }
.dh-child h3 { font-size: 1.125rem; margin-bottom: var(--sp-3); }
/* `.dh-form` in front: `.dh-form fieldset { margin: 0 }` above would win over a bare class. */
.dh-form .dh-choices { margin-top: var(--sp-6); }
.dh-form .dh-child + p { margin-block-start: var(--sp-4); }   /* „Pridať ďalšie dieťa" off the child block */
.dh-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  cursor: pointer;
}
.dh-choice input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--accent-nav);
}
.dh-choice.is-full { color: var(--text-muted); }
.dh-choice.is-hidden { display: none; }
.dh-choice--trial { font-weight: 600; margin-bottom: var(--sp-4); }
.dh-alert {
  background: var(--surface-sunken);
  border: 1.5px solid var(--dh-ink);
  border-radius: var(--r-block);
  padding: var(--sp-3) var(--sp-4);
  color: var(--dh-ink);
}
/* An error that stops the form is said in bold; a note (what the 1st half
   still owes) is read as a sentence. */
.dh-alert[role="alert"] { font-weight: 600; }
/* Only an error gets the ink outline; a note is a quieter box, so a clean
   summary does not look like it failed. */
.dh-alert:not([role="alert"]) { border: 1px solid var(--dh-line-strong); }
.dh-alert + .dh-alert { margin-block-start: var(--sp-3); }
.dh-summary {
  background: var(--surface-sunken);
  border-radius: var(--r-block);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
}
.dh-summary ul { list-style: none; padding: 0; }
.dh-summary li + li { margin-top: var(--sp-1); }
.dh-summary .dh-total { font-weight: 700; color: var(--text-heading); margin-top: var(--sp-3); }
@media (pointer: coarse) {
  .dh-input { min-height: var(--control-h-touch); }
  .dh-choice { min-height: var(--control-h-touch); }
}
@media (min-width: 48rem) {
  .dh-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-field--wide { grid-column: 1 / -1; }   /* street alone, so city and PSČ pair up */
}

/* ---- Payment details: thank-you page, Môj účet ---- */
/* align-content: a taller neighbour (the QR) must not stretch the rows apart. */
.dh-kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-2) var(--sp-4); margin: 0; align-content: start; }
* + .dh-kv { margin-block-start: var(--sp-4); }
.dh-kv dt { font-weight: 600; }
.dh-kv dd { margin: 0; }
.dh-kv dd .dh-caption { display: block; margin-top: var(--sp-1); }   /* tight under its value, not 1.65 apart */
/* On a phone the IBAN needs the whole line: label above value. */
@media (max-width: 29.99rem) {
  .dh-kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dh-kv dt { font-size: .8125rem; color: var(--text-muted); }
  .dh-kv dd + dt { margin-block-start: var(--sp-3); }
}
.dh-qr img { width: 100%; max-width: 16rem; margin-inline: auto; border-radius: var(--r-inner); background: var(--dh-white); }
.dh-qr { text-align: center; }
.dh-qr p { margin-inline: auto; }
.dh-qr .dh-caption { margin-block-start: var(--sp-2); }
/* Transfer details as one inset block: the values left, the QR right. In a
   card it is a nested surface (--r-inner); on the thank-you page it stands
   alone in a white band. */
.dh-pay {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  background: var(--surface-sunken);
  border-radius: var(--r-inner);
  text-align: left;
}
.dh-section .dh-pay { border-radius: var(--r-block); }
.dh-pay .dh-qr img { max-width: 11rem; }
@media (min-width: 40rem) {
  .dh-pay { grid-template-columns: minmax(0, 1fr) auto; padding: var(--sp-6); }
  .dh-pay .dh-qr img, .dh-pay .dh-qr .dh-caption { max-width: 10rem; }
}
.dh-nowrap { white-space: nowrap; }
/* A note inside a centred hero (the renewal thank-you): a readable block. */
.dh-hero .dh-alert { max-width: 40rem; margin-inline: auto; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==== Shell pages: legal texts, rules, account (page head + page body) ===== */
/* A compact cream head (h1 + one lead) over a body band: white for reading
   (legal, rules), sunken for cards (Môj účet, login, 2nd-half order). */
.dh-page-head { padding-block: var(--sp-12); text-align: center; }
.dh-page-head .dh-container > * + * { margin-block-start: var(--sp-4); }
.dh-page-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.018em; }
.dh-page-head p { max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.dh-page-body { background: var(--surface-raised); padding-block: var(--sp-12) var(--sp-16); }
.dh-page-body--sunken { background: var(--surface-sunken); }
.dh-page-body .dh-legal { margin-inline: auto; }
@media (min-width: 48rem) {
  .dh-page-head { padding-block: var(--sp-16) var(--sp-12); }
  .dh-page-body { padding-block: var(--sp-16) var(--sp-24); }
}

/* rules: town switch inside the text — small buttons, the chosen one filled */
.dh-town-switch { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.dh-town-switch [aria-pressed="true"] { background: var(--accent-nav); color: var(--dh-white); }
.dh-town-panel { padding: var(--sp-4) var(--sp-6); border: 1px solid var(--dh-line); border-radius: var(--r-block); }
.dh-town-panel > :first-child { margin-block-start: 0; }
.dh-town-panel h4 { margin-block: var(--sp-4) var(--sp-2); font-size: 1rem; }
.dh-town-hint { color: var(--text-muted); font-size: .9375rem; }

/* cookie bar + dialog: flat like the header, a hairline is the only edge */
.dh-cookie-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--surface-raised); border-top: 1px solid var(--dh-line); padding-block: var(--sp-3); }
.dh-cookie-bar-inner { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: center; justify-content: space-between; }
.dh-cookie-bar p { margin: 0; max-width: 62ch; font-size: .875rem; line-height: 1.55; text-align: left; }
.dh-cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* On a phone the two answers share one row, equally wide. */
@media (max-width: 47.99rem) {
  .dh-cookie-bar .dh-cookie-actions { width: 100%; }
  .dh-cookie-bar .dh-cookie-actions .dh-btn { flex: 1 1 0; }
}
@media (min-width: 48rem) { .dh-cookie-bar { padding-block: var(--sp-4); } }
.dh-linkbtn { font: inherit; color: var(--accent-nav); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.dh-linkbtn:hover { text-decoration: none; }
.dh-cookie-dialog { border: 1px solid var(--dh-line); border-radius: var(--r-block); padding: var(--sp-6); max-width: 34rem; width: calc(100% - 2rem); box-shadow: var(--sh-card); background: var(--surface-raised); color: var(--text-body); }
.dh-cookie-dialog::backdrop { background: rgba(36, 30, 24, .45); }
.dh-cookie-dialog h2 { margin-top: 0; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.008em; }
.dh-cookie-dialog form > * + * { margin-block-start: var(--sp-3); }
.dh-cookie-dialog .dh-choice { text-align: left; }
.dh-cookie-dialog .dh-cookie-actions { margin-top: var(--sp-6); justify-content: flex-end; }
/* A phone: the answer full width on top, the two others halved under it. */
@media (max-width: 29.99rem) {
  .dh-cookie-dialog .dh-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dh-cookie-dialog .dh-cookie-actions [value=save] { grid-column: 1 / -1; order: -1; }
}

/* ---- client account (batch 2026-10-10) ---- */
/* "Môj účet" in the header: a quiet link, never orange (DESIGN 5.1 keeps orange
   for "Prihlásiť dieťa"). On a phone the one-row header has no room for it —
   the footer and the e-mails stay the way in (decision D9). */
.dh-nav-account { color: var(--dh-ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.dh-nav-account:hover, .dh-nav-account[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 29.99rem) { .dh-nav-account { display: none; } }
