/* Homepage sections below the hero. Existing components only (site-card,
   site-cta, page-number, abc, site-progress, gal-grid); layout through
   data-home-* attributes. Look: white cards with dark text, soft colour bands,
   big mascots that step out of their cards, solid coloured shadows. */
[data-home-page] { height: auto; min-height: 100%; overflow-x: clip; overflow-y: auto; background: #fff; box-shadow: none; }
/* svh, not dvh: the hero keeps one height while the mobile address bar
   hides and shows during scrolling, so the artwork does not rescale. */
[data-home-page] > main:first-of-type { position: relative; top: 0; left: 0; width: 100%; height: calc(100svh - var(--bar-h) - env(safe-area-inset-top)); margin-top: calc(var(--bar-h) + env(safe-area-inset-top)); transform: none; }
/* Phones: the artwork is a little taller than the hero and sits lower, so the
   title and the lead line fall on the open sky; the extra grass at the bottom
   is clipped (the top may still run under the floating menu bar). */
@media (max-width: 767px) {
  [data-home-page] > main:first-of-type { clip-path: inset(-400px 0 0 0); }
  [data-home-page].page-cover .stage__art { height: calc(120% + var(--bar-h) + env(safe-area-inset-top)); }
}
@media (max-width: 767px) and (max-height: 780px) {
  /* Short phones: the title starts a little higher, so the lead stays on the sky. */
  [data-home-page].page-cover .cover-title { padding-top: 10px; }
  [data-home-page].page-cover .cover-title__lead { margin-top: 6px; }
}
:is([data-home-page], [data-letter-sections]) :is(.site-cta, .page-number, .start-button, .site-footer__bmc) { box-shadow: 0 var(--button-depth, 5px) 0 var(--button-shadow-color, color-mix(in srgb, var(--panel, var(--c-blue)) 70%, #000)); }
[data-home-page] :is(.consent, .practice, .gate, .letters, .letters-soon) { box-shadow: 0 6px 0 color-mix(in srgb, var(--panel, var(--c-blue)) 55%, #3b2410); }

[data-home-content] {
  display: grid; gap: 32px;
  width: min(1120px, 100%); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px;
  color: #3b2410; font-size: 16px; line-height: 1.55; overflow: visible; box-shadow: none;
}
[data-home] { position: relative; width: 100%; min-width: 0; margin: 0; scroll-margin-top: calc(var(--bar-h) + 20px); }
/* Section spacing comes from the shared grid, never from a corner mascot. */
[data-home-content] > section:not(:first-of-type) { margin-block: 0 !important; }

/* Type */
[data-home-content] [data-home-title] { margin: 0 0 6px; font: 800 clamp(30px, 4.6vw, 48px)/1.1 var(--font-display); color: color-mix(in srgb, var(--panel, var(--c-blue)) 72%, #3b2410); text-wrap: balance; }
[data-home="trust"] [data-home-title] { font-size: clamp(36px, 6vw, 60px); }
[data-home-content] h3 { margin: 0; font: 800 clamp(22px, 2.4vw, 26px)/1.15 var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-home-content] [data-home-tr] { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 1.35; color: #7d6650; }
[data-home-content] [data-home-lead] { margin: 8px 0 0; font-size: clamp(18px, 2vw, 21px); font-weight: 700; line-height: 1.45; }
[data-home-content] [data-home-small] { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: #3b2410; }
[data-home-content] p[data-home-small][data-home-lead] { font-size: 12px; }
[data-home-content] p { overflow-wrap: normal; }
[data-home-head] { width: min(760px, 100%); margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
[data-home-head][data-home-left] { margin: 0 0 24px; text-align: left; }
[data-home-left] { min-width: 0; }

/* White cards with a coloured outline and a solid coloured shadow */
[data-home-content] .site-card {
  width: 100%; margin: 0; padding: clamp(24px, 4vw, 44px);
  border: 4px solid color-mix(in srgb, var(--panel) 22%, #fff); border-radius: 32px;
  background: #fff; color: #3b2410; font-weight: 600;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
[data-home-content] .site-card p { margin: 0; }

/* Soft colour bands with a light dot pattern */
[data-home="paths"] { --band-mix: 20%; --dot-mix: 34%; }
[data-home="paths"] [data-home-title] { color: var(--panel); }
[data-home-band], body.page-site .vocab-workspace[data-vocabulary][data-home-band] {
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px);
  border-radius: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--panel) var(--dot-mix, 18%), transparent) 2.5px, transparent 3px) 0 0 / 28px 28px,
    color-mix(in srgb, var(--panel) var(--band-mix, 14%), #fff);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
[data-home-band] [data-home-lead] span {
  background: color-mix(in srgb, var(--panel) var(--band-mix, 14%), #fff);
  padding-inline: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Mascots */
[data-home-mascot] { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(59, 36, 16, 0.12)); }
[data-home-blob] {
  --blob: 150px;
  position: relative; flex: none; width: var(--blob); height: var(--blob); margin: calc(var(--blob) * -0.6) auto 14px;
  border-radius: 50%; background: color-mix(in srgb, var(--panel) 28%, #fff); border: 5px solid #fff;
  box-shadow: 0 7px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
[data-home-blob] > [data-home-mascot] { position: absolute; left: -15%; bottom: 2%; width: 130%; max-width: none; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); transform-origin: 50% 100%; }
:is([data-home-trust-card], [data-home="newsletter"], [data-home="support"]):hover [data-home-mascot] { transform: rotate(-6deg) scale(1.05); }

/* 1. Trust */
[data-home-trust-items] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 124px 14px; padding-top: 120px; }
[data-home-trust-card] { padding: 16px 12px 22px !important; text-align: center; }
[data-home-trust-card] [data-home-blob] { --blob: 128px; }
[data-home-trust-card] [data-home-tr] { margin-block: 4px 8px; }
[data-home-trust-card] p:last-child { font-size: 15px; line-height: 1.45; }

/* 2. Paths */
[data-home-paths] { display: grid; gap: 18px; }
[data-home-path-card] {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 24px !important; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-home-path-card]:hover { transform: translateY(-4px) rotate(-0.6deg); }
[data-home-path-card]:focus-visible { outline: 4px solid #3b2410; outline-offset: 4px; }
[data-home-badge] {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px;
  border-radius: 20px; background: var(--panel); color: #fff; rotate: -6deg;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--panel) 55%, #3b2410);
}
[data-home-badge] [data-home-icon] { width: 32px; height: 32px; }
[data-home-path-card] [data-home-tr] { margin-bottom: 6px; }
[data-home-path-card] > p:not([data-home-tr]) { flex: 1; color: #5b3a1e; }
[data-home-path-card] > .site-cta { margin-top: 16px; min-height: 48px; padding: 8px 20px; font-size: 20px; }
[data-home="early"] [data-home-early-cards] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-home="early"] [data-home-sheet-preview] { margin-bottom: 32px; }
@media (max-width: 599px) { [data-home="early"] [data-home-early-cards] { grid-template-columns: minmax(0, 1fr); } }
/* "Kako pravimo materijale" steps: three per row on every desktop width (user, 21 November 2026). */
@media (min-width: 1024px) { #koraci [data-home-paths] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Method pills at the top of a path card keep their pill size: the card text paragraphs grow (flex: 1), the pill row does not. */
[data-home-path-card] > p.method-pills[data-method-pills] { flex: 0 0 auto; align-items: flex-start; justify-content: center; }

/* Buttons from the existing set */
[data-home-content] [data-home-button] { position: static; inset: auto; translate: none; max-width: 100%; min-height: 48px; white-space: normal; text-align: left; justify-content: center; padding: 8px 22px; line-height: 1.15; }
[data-home-content] [data-home-button-text] { display: grid; justify-items: start; min-width: 0; gap: 1px; }
[data-home-content] [data-home-button-label] { font-size: inherit; }
/* EN and DE lines stay for diaspora parents, smaller and lighter than the
   Bosnian label (test round B6). */
[data-home-content] [data-home-button-text] .page-number__tr { font: 600 11px/1.2 var(--font-body); opacity: 0.78; }
:is([data-home-page], [data-letter-sections]) [data-home-pill] { width: auto; height: auto; margin: 0; padding: 8px 22px; }
[data-home-icon] { flex-shrink: 0; }
[data-home-button] > [data-home-icon] { width: 22px; height: 22px; flex: none; }
[data-home-actions] { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 24px 0 0 !important; }
@media (max-width: 599px) {
  .page-letter :is(#memorija, #glasovi) [data-home-actions] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-letter :is(#memorija, #glasovi) [data-home-actions] > .site-cta { width: 100%; min-width: 0; min-height: 72px; padding: 8px 6px; gap: 6px; font-size: 16px; }
  .page-letter :is(#memorija, #glasovi) [data-home-button-text] .page-number__tr { font-size: 11px; }
}

/* 3. Alphabet */
[data-home="alphabet"] { padding-top: clamp(32px, 4vw, 48px) !important; }
[data-home="alphabet"] [data-home-head] { padding-right: 110px; }
[data-home-mascot="corner"] { position: absolute; top: -48px; right: -8px; width: 140px; rotate: 6deg; }
[data-home="alphabet"] .site-progress { max-width: 480px; margin-top: 18px; }
:is([data-home="alphabet"], #slova) .abc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
:is([data-home="alphabet"], #slova) .abc__tile { min-height: 120px; }
:is([data-home="alphabet"], #slova) .abc__glyph { font-size: 44px; }
:is([data-home="alphabet"], #slova) .abc__item.is-soon .abc__tile { filter: none; opacity: 1; background: #f6efe3; color: #bfa98c; box-shadow: inset 0 0 0 2px #ece0cc; }
/* A visible "Uskoro" pill: a pale tile alone looked broken (UX test, 16 November 2026). */
:is([data-home="alphabet"], #slova) .abc__item.is-soon .abc__tile { position: relative; padding-top: 22px; }
:is([data-home="alphabet"], #slova) .abc__item.is-soon .abc__tile::after { content: "Uskoro"; position: absolute; top: 4px; right: 4px; padding: 1px 8px; border-radius: 999px; background: #fff; color: #9a8468; font: 800 11px/1.5 var(--font-display, sans-serif); box-shadow: inset 0 0 0 1.5px #ece0cc; }
/* The next letter (/abeceda/): "Sljedeće" pill and "Obavijesti me" on the tile, a newsletter link. */
#slova .abc__item.is-soon a.abc__tile[data-next-letter] { cursor: pointer; text-decoration: none; }
#slova .abc__item.is-soon a.abc__tile[data-next-letter]::after { content: "Sljedeće"; color: var(--c-green); }
#slova .abc__notify { margin-top: 2px; color: var(--c-green); font: 800 12px/1.2 var(--font-display, sans-serif); }

/* 4. Daily worksheet */
[data-home-split] { display: grid; align-items: center; gap: 40px; }
/* These two rotated corner mascots need 8px more room at tablet widths. */
@media (min-width: 900px) and (max-width: 1099px) {
  :is(#pregled-padeza, #sta-provjeravamo) > [data-home-mascot="corner"] { right: -16px; }
}
[data-home-countdown] { margin: 14px 0 0 !important; font-weight: 800; color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-home-levels] { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
/* Phones and tablets: under the sheet picture, centred. Desktop: under the level buttons. */
[data-home-more] { grid-column: 1 / -1; justify-self: center; margin: 0; }
@media (min-width: 1024px) {
  [data-home-split]:has(> [data-home-more]) { row-gap: 20px; align-content: center; }
  [data-home-split]:has(> [data-home-more]) > [data-home-left] { grid-column: 1; grid-row: 1; align-self: end; }
  [data-home-split]:has(> [data-home-more]) > [data-home-sheet-preview] { grid-column: 2; grid-row: 1 / 3; }
  [data-home-split] > [data-home-more] { grid-column: 1; grid-row: 2; justify-self: start; align-self: start; }
}
[data-home-more] a { display: inline-flex; align-items: center; gap: 10px; font: 800 18px var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); text-decoration: none; }
[data-home-more] a > svg { flex: none; width: 26px; height: 26px; }
[data-home-more] a > span { display: grid; line-height: 1.2; text-align: left; }
[data-home-more] a small { font: 600 13px var(--font-body, sans-serif); }
[data-home-sheet-preview] { position: relative; width: min(260px, 72%); margin: 0 auto; }
[data-home-sheet-preview] > img:first-of-type {
  display: block; width: 100%; height: auto; border: 8px solid #fff; border-radius: 14px; rotate: 3deg;
  box-shadow: 0 10px 0 color-mix(in srgb, var(--panel) 40%, #fff), 0 20px 40px rgba(40, 25, 10, 0.15);
}
[data-home-mascot="peek"] { position: absolute; left: -64px; bottom: -36px; width: 140px; rotate: -8deg; }

/* 5. Newsletter */
[data-home="newsletter"] { display: grid; justify-items: center; text-align: center; margin-top: 56px !important; }
[data-home="newsletter"] [data-home-actions] { justify-content: center; }
[data-home-blob][data-home-blob-big] { --blob: 180px; margin-top: calc(-1 * clamp(24px, 4vw, 44px) - 110px); }

/* 6. Friends */
[data-home="friends"] { text-align: center; }
[data-home-group] { display: block; width: min(900px, 100%); height: auto; margin: 0 auto; }
[data-home-chips] { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
[data-home-chips] li {
  padding: 6px 16px; border-radius: 999px; border: 3px solid #fff; background: var(--panel); color: #fff;
  font: 800 16px var(--font-display); box-shadow: 0 4px 0 color-mix(in srgb, var(--panel) 55%, #3b2410);
}
[data-home-chips] li:nth-child(odd) { rotate: -2deg; }
[data-home-chips] li:nth-child(even) { rotate: 2deg; }

/* 7. Gallery */
[data-home="gallery"] [data-home-head] { margin-bottom: 20px; }
[data-home-gallery] { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; color: #3b2410; }
[data-home-gallery]:empty { display: none; }
[data-home="gallery"] [data-home-actions] { justify-content: center; }
/* "Online vježbe": one centred button below the centred head (user, 24 November 2026). */
#online-vjezbe [data-home-actions] { justify-content: center; }
/* The game pills above the title: the method pill shape in the section colour. */
#online-vjezbe [data-online-games] b { --method: color-mix(in srgb, var(--panel) 70%, #3b2410); --method-bg: #fff; --method-line: color-mix(in srgb, var(--panel) 55%, #fff); }
/* From 600 px the olm sits in the top-left corner: the pills start below its tail. */
@media (min-width: 600px) { #online-vjezbe > [data-home-head] { padding-top: 40px; } }
/* FAQ: the Padeži reminder boxes (.cases-guide), one per question. */
[data-home="faq"] { --band-mix: 14%; --dot-mix: 30%; }
[data-home="faq"] [data-home-title] { color: var(--panel); }
[data-home="faq"] [data-home-head] { margin-bottom: 20px; text-align: center; }
[data-home-faq] { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
[data-home-faq] .cases-guide { margin: 0; background: #fff; border-color: color-mix(in srgb, var(--panel) 55%, #fff); transition: border-color .2s; }
[data-home-faq] .cases-guide[open], [data-home-faq] .cases-guide:hover { border-color: var(--panel); }
/* Keyboard focus follows the rounded box, not a square around the question. */
[data-home-faq] summary:focus-visible { outline: none; }
/* A numbered list inside an FAQ answer (badge meanings, user 21 November 2026). */
[data-home-faq] [data-faq-list] { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 24px; text-align: left; }
[data-home-faq] [data-faq-list] li::marker { font-weight: 800; color: var(--panel); }
[data-home-faq] .cases-guide:has(summary:focus-visible) { outline: 3px solid var(--panel); outline-offset: 3px; }
[data-home-faq] summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font-size: 18px; }
[data-home-faq] summary::-webkit-details-marker { display: none; }
[data-home-faq] summary::after { content: '+'; flex: none; color: var(--panel); font: 800 26px/1 var(--font-display); }
[data-home-faq] [open] > summary::after { content: '–'; }
[data-home-faq] p { margin: 0 0 12px; }
[data-home-faq] a:not(.site-cta) { color: var(--panel); font-weight: 700; }

/* 8. Support */
[data-home="support"] { display: grid; justify-items: center; text-align: center; margin-top: 56px !important; }
[data-home="support"] [data-home-blob] { --blob: 170px; margin-top: calc(-1 * clamp(24px, 4vw, 44px) - 104px); }
[data-home="support"] .site-progress { width: min(480px, 100%); margin: 16px auto 0; }
/* "Pišite mi": a normal pill in the text flow, not the floating hero pill. */
[data-author] .site-actions { margin-bottom: 32px !important; }
[data-author] [data-home-pill] { position: static; inset: auto; translate: none; width: auto; height: auto; margin: 0; padding: 8px 22px; font-size: 20px; }
[data-author] [data-home-pill] [data-home-button-text] { display: grid; justify-items: start; gap: 1px; }
[data-author] [data-home-pill] [data-home-button-label] { font-size: inherit; }
[data-author] [data-home-pill] .page-number__tr { font: 600 11px/1.2 var(--font-body); opacity: 0.78; }
[data-home="support"] [data-home-actions] { justify-content: center; }
/* Both buttons start at the same position, also when stacked. */
#podrska [data-home-actions] > .site-cta.site-cta { justify-content: flex-start; }

[data-home-footer] { position: relative; isolation: isolate; overflow: hidden; width: 100%; max-width: none; padding-inline: 20px; padding-bottom: clamp(90px, 10vw, 140px); text-shadow: none; }
/* Flower meadow from the bottom of the hero, tinted with the footer blue. */
[data-home-footer]::before {
  content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: clamp(90px, 10vw, 140px); pointer-events: none;
  background:
    linear-gradient(to bottom, var(--c-blue) 0%, color-mix(in srgb, var(--c-blue) 50%, transparent) 55%, color-mix(in srgb, var(--c-blue) 40%, transparent) 100%),
    url("/img/hero-desktop-1280.webp") center bottom / max(100%, 760px) auto no-repeat;
  opacity: 0.7;
}
[data-home-footer-translations] { display: none; }

@media (min-width: 600px) {
  [data-home-paths] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  :is([data-home="alphabet"], #slova) .abc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-home-mascot="corner"] { width: 180px; top: -70px; right: -16px; }
  [data-home="alphabet"] [data-home-head] { padding-right: 170px; }
}
@media (min-width: 860px) {
  [data-home-trust-items] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  [data-home-split] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
  [data-home-sheet-preview] { width: min(280px, 100%); }
  :is([data-home="alphabet"], #slova) .abc { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  [data-home-gallery] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-home="newsletter"], [data-home="support"] {
    grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 36px; text-align: left; margin-top: 0 !important;
  }
  [data-home="newsletter"] [data-home-actions], [data-home="support"] [data-home-actions] { justify-content: flex-start; }
  [data-home="support"] .site-progress { margin-inline: 0; }
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 200px; margin: 20px 0 0; }
  [data-home-trust-items] { gap: 22px; padding-top: 148px; }
  [data-home-trust-card] [data-home-blob] { --blob: 140px; margin-top: -104px; }
  [data-home-mascot="peek"] { width: 240px; left: -110px; bottom: -60px; }
  [data-home-mascot="corner"] { width: 220px; top: -96px; right: -16px; }
  [data-home="alphabet"] [data-home-head] { padding-right: 0; }
  [data-home-content] [data-home="alphabet"] [data-home-head] { width: 100%; padding-right: 200px; }
}
@media (min-width: 1100px) {
  [data-home-paths] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-home-mascot="corner"] { width: 260px; top: -124px; right: -24px; }
  [data-home-content] [data-home="alphabet"] [data-home-head] { padding-right: 230px; }
  [data-home-trust-card] [data-home-blob] { --blob: 150px; margin-top: -112px; }
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 220px; }
  [data-home-group] { width: min(980px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  [data-home-path-card], [data-home-mascot] { transition: none; }
  [data-home-path-card]:hover, :is([data-home-trust-card], [data-home="newsletter"], [data-home="support"]):hover [data-home-mascot] { transform: none; }
}
@media (max-width: 599px) {
  /* Phone: one centred column per section, even side padding, mascots in the flow. */
  [data-home-content] { padding-inline: 14px; gap: 32px; }
  [data-home-trust-items] { gap: 104px 12px; padding-top: 96px; }
  [data-home="trust"] [data-home-head] { margin-bottom: 0; }
  [data-home-band] { padding: 36px 14px; border-radius: 32px; }
  [data-home-content] .site-card { padding: 24px 18px; border-radius: 28px; }
  [data-home-head], [data-home-head][data-home-left], [data-home-left] { text-align: center; margin-inline: auto; }
  [data-home-head] { margin-bottom: 24px; }
  [data-home-content] [data-home-lead] { font-size: 17px; }
  [data-home-actions], [data-home-levels] { justify-content: center; }

  [data-home-paths] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  [data-home-path-card] { align-items: center; text-align: center; padding: 18px 10px !important; border-radius: 24px !important; }
  [data-home-badge] { width: 48px; height: 48px; border-radius: 16px; margin-bottom: 8px; }
  [data-home-badge] [data-home-icon] { width: 26px; height: 26px; }
  [data-home-path-card] h3 { font-size: 19px; }
  [data-home-path-card] [data-home-tr] { font-size: 12px; }
  [data-home-path-card] > p:not([data-home-tr]) { font-size: 14px; line-height: 1.4; }
  [data-home-path-card] > .site-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; padding: 8px 22px; gap: 10px; font-size: 20px; white-space: normal; line-height: 1.15; text-align: left; }
  [data-home-content] [data-home-path-card] > .site-cta [data-home-button-text] .page-number__tr { font-size: 12px; overflow-wrap: normal; }

  [data-home="alphabet"] [data-home-head] { padding-right: 0; margin-bottom: 20px; }
  [data-home-mascot="corner"] { position: static; width: 150px; margin: -84px auto 4px; rotate: 0deg; }
  [data-home="alphabet"] .site-progress { margin-inline: auto; }
  :is([data-home="alphabet"], #slova) .abc { gap: 10px; }
  :is([data-home="alphabet"], #slova) .abc__tile { min-height: 96px; border-radius: 18px; }
  :is([data-home="alphabet"], #slova) .abc__glyph { font-size: 36px; }
  :is([data-home="alphabet"], #slova) .abc__word { font-size: 13px; }

  [data-home-split] { gap: 28px; }
  [data-home-levels] .site-cta { min-width: 200px; }
  [data-home-sheet-preview] { width: 64%; margin-bottom: 12px; }
  [data-home-mascot="peek"] { width: 120px; left: -56px; bottom: -28px; }

  /* The mascot circle sits on the card top; leave room for the mascot above it. */
  [data-home="newsletter"], [data-home="support"] { margin-top: 130px !important; }
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 160px; margin-top: -112px; }
  [data-home="friends"] [data-home-chips] li { font-size: 14px; padding: 5px 12px; }
}

/* Site pages (body.page-site) share the homepage look: white page, white card
   with a coloured outline, a mascot on the card corner and the blue footer. */
body.page-site { background: #fff; color: #3b2410; }
body.page-site > .site-card {
  width: min(880px, 100%); margin-bottom: clamp(48px, 8vw, 80px); border: 4px solid color-mix(in srgb, var(--panel) 22%, #fff); border-radius: 32px;
  background: #fff; color: #3b2410; box-shadow: 0 8px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
body.page-site > .site-card :is(h1, h2) { color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
body.page-site > [data-home-footer] { width: calc(100% + 32px); margin: auto -16px 0; }
body.page-site > [data-site-art] { margin-top: 110px; }
body.page-site > .site-card > [data-home-mascot="corner"] { width: 180px; top: -136px; right: 8px; }
/* The group of all mascots rises above the card edge like a single mascot. */
body.page-site > .site-card > img[data-home-group] { width: min(520px, 100%); margin: -158px auto 8px; }
@media (max-width: 599px) {
  body.page-site > [data-site-art] { margin-top: 96px; }
  body.page-site > .site-card > img[data-home-group] { margin-top: -104px; }
  body.page-site > .site-card > [data-home-mascot="corner"] { position: static; width: 150px; margin: -112px auto 4px; rotate: 0deg; }
}

/* Inner boxes on the game and story pages: white, with the card outline and
   coloured shadow; colour stays on the buttons. */
body.page-site :is(.story-workspace, .cases-mode, .cases-prompt, .cases-guide, .story-reading, .story-related a:not(.page-number)) {
  border: 4px solid color-mix(in srgb, var(--panel) 22%, #fff); border-radius: 24px; background: #fff;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
body.page-site .story-reading { box-shadow: none; }
body.page-site .story-related a:not(.page-number) { color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
body.page-site [data-readiness] .site-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-readiness] .site-tier { min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
[data-readiness] .site-tier__name, [data-readiness] .site-tier__text { margin: 0; }
/* "Spremno za sljedeći korak": a short check list in each path (Za roditelje). */
[data-readiness] .site-tier__ready { margin: 4px 0 0; font-weight: 800; }
[data-readiness] [data-plan-list] { margin: 0; text-align: left; }
body.page-site #odakle-poceti [data-learning-order] { text-align: center !important; margin-top: 20px; }
body.page-site [data-readiness] .site-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 4px 0 0 !important; }
[data-readiness] .site-actions .site-cta { min-width: 0; width: 100%; padding: 10px; font-size: 16px; line-height: 1.3; justify-content: center; text-align: center; }
[data-learning-catalogue] [hidden] { display: none !important; }
[data-learning-filters] { margin-block: 20px; }
[data-learning-filters] .site-cta { justify-self: start; }
[data-learning-words] { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
[data-learning-words] .site-tier { min-width: 0; justify-items: center; text-align: center; }
[data-learning-words] img { display: block; width: 80px; height: 80px; object-fit: contain; }
[data-learning-words] .site-cta { width: 100%; min-width: 0; padding: 8px; font-size: 16px; }
/* Word cards: "Slušaj" and "Oboji" (colouring page) side by side on the whole
   site; icons only up to 1024 px. Bojanke keeps its 48 px circles (#po-temama). */
[data-word-actions] { display: grid; gap: 8px; width: 100%; min-width: 0; }
@media (max-width: 599px) { [data-learning-words]:not([data-learning-vocabulary]) :is([data-learning-audio], [data-word-colour]):not(:only-child) span { display: none !important; } }
/* The four-column word cards of the picture-card themes: icons only up to
   1024 px. From 600 px a card without a sound button keeps the "Oboji" text
   on its full-width button (phones: round icon buttons, rule above). */
@media (min-width: 600px) and (max-width: 1024px) { [data-learning-guide] [data-learning-words]:not([data-learning-vocabulary]) :is([data-learning-audio], [data-word-colour]):not(:only-child) span { display: none !important; } }
[data-learning-vocabulary] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
[data-learning-vocabulary] .site-cta { min-height: 52px; }
@media (max-width: 560px) { [data-learning-vocabulary] { grid-template-columns: minmax(0, 1fr); } }
[data-learning-audio] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
[data-learning-audio] svg { width: 22px; height: 22px; flex: none; }
/* Two buttons side by side in the picture card guides and on letter pages. */
[data-learning-guide] [data-learning-words] .site-tier [data-word-actions], .page-letter #glasovi [data-word-actions] { align-self: end; grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-learning-guide] [data-learning-words] .site-tier [data-word-actions] > :only-child, .page-letter #glasovi [data-word-actions] > :only-child { grid-column: 1 / -1; }
body.page-rijeci-i-igre .site-cta { --button-blur: transparent; box-shadow: 0 var(--button-depth, 5px) 0 var(--button-shadow-color, color-mix(in srgb, var(--panel) 70%, #000)); }
body.page-rijeci-i-igre .site-cta:not(.site-cta--soft) { border: 3px solid #fff; }
.page-rijeci-i-igre [data-vocab-category] { margin-block: 40px; }
body.page-rijeci-i-igre main.site-card [data-vocab-category] > p { text-align: center; }
.page-rijeci-i-igre [data-vocab-category] > h3 { font-weight: 800; }
[data-learning-audio][aria-pressed="true"] { background: color-mix(in srgb, var(--panel) 80%, #000); }
[data-learning-guide="early"] > .site-actions [data-learning-audio] { background: #fff; color: var(--panel); border-color: var(--panel); }
[data-learning-words] .site-tier { background-color: #fff; }
[data-learning-guide] { margin-block: 0; scroll-margin-top: calc(var(--bar-h, 60px) + 20px); }
/* Links to #danas open today's batch or the catalogue below the floating bar (js/early-daily.js). */
:is([data-early-daily], [data-material-list]) { scroll-margin-top: calc(var(--bar-h, 60px) + 20px); }
/* The empty live region must not take a row (and a gap) of its own. */
body.page-site [data-learning-audio-status]:empty { position: absolute; }
/* Wide site pages space their sections with the grid gap only. */
body.page-site [data-site-wide] > .story-workspace, body.page-site section + section.member-locked { margin-block: 0 !important; }
[data-home-content]:has(> [data-learning-guide="early"]) { row-gap: 32px; }
@media (min-width: 600px) {
  [data-home-content], [data-home-content]:has(> [data-learning-guide="early"]) { row-gap: 55px; }
}
body.page-site [data-home-content] > [data-learning-guide="early"] { margin-block: 0; }
body.page-site [data-learning-guide="early"] [data-home-head] { margin-bottom: 24px; }
body.page-site [data-learning-guide="early"] [data-home-head] > p { margin: 16px 0 0; line-height: 1.6; }
body.page-site [data-learning-guide="early"] > .site-actions { justify-content: center; margin: 24px 0 0; }
body.page-site [data-learning-guide="early"] [data-learning-words] { grid-template-columns: minmax(0, 1fr); justify-content: center; margin: 24px 0; gap: 16px; }
[data-learning-guide="early"] [data-learning-words] .site-tier { align-content: start; gap: 16px; }
/* A single card is wide enough for both buttons (Slušaj, Oboji; user, 16 November 2026). */
[data-learning-guide="early"] [data-learning-words] .site-tier:only-child { grid-column: 1 / -1; width: min(260px, 100%); justify-self: center; }
@media (max-width: 599px) { body.page-site [data-learning-guide="early"] [data-learning-words] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
[data-learning-sheet] > .site-cta { max-width: 100%; min-width: 0; padding: 10px 16px; line-height: 1.25; text-align: center; }
body.page-site :is([data-early-editions], [data-early-collections], [data-early-edition], [data-daily-cards]) .ws-card__body .site-actions { margin: 12px 0 0 !important; }
body.page-site :is([data-early-editions], [data-early-collections]) > :is(.site-tiers, .ws-cards), body.page-site [data-daily-cards] > .ws-cards { grid-template-columns: minmax(0, 1fr); }
body.page-site :is([data-early-editions], [data-early-collections], [data-daily-cards]) .ws-card { background: color-mix(in srgb, var(--panel) 14%, #fff); }
@media (min-width: 600px) {
  body.page-site :is([data-early-editions], [data-early-collections], [data-daily-cards]) .ws-card:has(> .ws-card__preview) { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto; }
  body.page-site :is([data-early-editions], [data-early-collections], [data-daily-cards]) .ws-card__preview { padding: 14px; }
  body.page-site :is([data-early-editions], [data-early-collections], [data-daily-cards]) .ws-card__body { align-content: center; padding: 20px; }
  body.page-site :is([data-early-editions], [data-early-collections]) .site-actions > .site-cta { padding: 10px 14px; font-size: 18px; line-height: 1.25; }
}
@media (max-width: 820px) { body.page-site [data-readiness] .site-tiers { grid-template-columns: minmax(0, 1fr); } }
body.page-padezi .cases-mode { transition: transform 0.2s ease; }
body.page-padezi .cases-mode:hover { transform: translateY(-4px) rotate(-0.6deg); }
body.page-padezi .cases-mode:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--panel) 45%, #fff); }
body.page-padezi .cases-guide-list article { border-top-color: color-mix(in srgb, var(--panel) 18%, #fff); }
@media (prefers-reduced-motion: reduce) { body.page-padezi .cases-mode { transition: none; } body.page-padezi .cases-mode:hover { transform: none; } }
/* Support tiers stay two per row in the wider card. */
@media (min-width: 600px) { body.page-site .site-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Buttons in a row keep a clear gap, also when they wrap on a phone. */
body.page-site .site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
body.page-site .site-actions { row-gap: 16px; }
@media (min-width: 1024px) {
  body.page-site .site-actions[data-fixed-levels]:not([data-readiness] *) { display: flex; flex-wrap: nowrap; gap: 10px; }
  body.page-site .site-actions[data-fixed-levels]:not([data-readiness] *) > .site-cta { flex: 1 1 auto; justify-content: center; padding-inline: 14px; font-size: 18px; white-space: nowrap; }
}
body.page-site .site-actions[data-daily-navigation] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
body.page-site .site-actions[data-daily-navigation] > .site-cta { min-width: 0; width: 100%; justify-content: center; text-align: center; }
/* "Za bojenje" on an early-learning edition: a third, full-width button in
   the same row, so it shares the font size of Preuzmi / Dnevni listovi. */
body.page-site .site-actions[data-daily-navigation] > [data-card-colouring] { grid-column: 1 / -1; margin-top: 0; }
/* /radni-list-dana/slovo-x/: the levels of a day as small buttons. */
[data-day-levels] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; width: 100%; gap: 8px; margin-top: 8px; }
[data-day-levels] .site-cta { min-width: 0; width: 100%; min-height: 44px; padding: 0 14px; font-size: 15px; justify-content: center; }
/* One day per row: the date, then its four level buttons. */
/* Earlier days use the letter-catalogue card grid (three in a row on desktop). */
body.page-site [data-daily-days] .ws-card__body > [data-day-levels] { margin-top: 12px; }
[data-daily-days] .site-tier { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
[data-daily-days] [data-day-levels] { margin-top: 0; }
/* "Svi nivoi" in reverse colours (filled site-cta); on desktop it fills the row.
   The same reverse look marks "Svi nivoi" on the homepage and in the catalogue. */
[data-day-levels] [data-day-all] { justify-content: center; }
/* Homepage: four equal level buttons, two per row (one per row on a phone);
   Svi nivoi is filled green like the others. */
:is([data-home-page], [data-letter-sections]) [data-home-levels] { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is([data-home-page], [data-letter-sections]) [data-home-levels] .site-cta { justify-content: flex-start; }
@media (max-width: 599px) {
  :is([data-home-page], [data-letter-sections]) [data-home-levels] { display: grid; grid-template-columns: minmax(0, 260px); justify-content: center; }
  :is([data-home-page], [data-letter-sections]) [data-home-levels] .site-cta { min-width: 0; }
}
@media (min-width: 600px) {
  [data-daily-days] [data-day-levels] { flex: 1; }
  [data-day-levels] [data-day-all] { flex: 1; }
}
@media (min-width: 600px) { [data-daily-days] .site-tier__name { min-width: 150px; } }
/* The hero pins .page-number--parents to a grid cell on phones; level
   buttons in the homepage grid flow normally. */
:is([data-home-page], [data-letter-sections]) [data-home-levels] .site-cta { grid-column: auto; grid-row: auto; justify-self: stretch; align-self: stretch; width: auto; }

/* Phones: buttons that stack get one width (the widest), in one column;
   level choices sit in two equal columns. */
@media (max-width: 599px) {
  body.page-site .site-actions, :is([data-home-page], [data-letter-sections]) [data-home-actions] { display: grid; grid-template-columns: minmax(0, max-content); justify-content: start; }
  :is([data-home-page], [data-letter-sections]) [data-home-actions] { justify-content: center; }
  :is(body.page-site .site-actions, :is([data-home-page], [data-letter-sections]) [data-home-actions]) > :is(.site-cta, .page-number) { justify-content: center; width: auto; }
  .wd-promo__levels, [data-day-levels] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.wd-promo__levels, [data-day-levels]) > .site-cta { justify-content: center; }
  body.page-site .site-actions[data-fixed-levels] { grid-template-columns: minmax(0, 1fr); }
  /* Member dialog: button rows use the full dialog width, like "Odjavi se". */
  body.page-site [data-membership-dialog] .site-actions { grid-template-columns: minmax(0, 1fr); }
  body.page-site [data-membership-dialog] .site-actions > .site-cta { width: 100%; }
  body.page-site .site-actions:is([data-fixed-levels], [data-daily-navigation]) > .site-cta { min-width: 0; width: 100%; padding-block: 10px; text-align: center; }
  body.page-site .site-actions[data-daily-navigation] > .site-cta { gap: 6px; padding-inline: 8px; font-size: 16px; line-height: 1.25; }
  body.page-site .site-actions[data-daily-navigation] > .site-cta > span { min-width: 0; overflow-wrap: anywhere; }
}
/* Preparation activity actions fill their existing container on phones. */
@media (max-width: 767px) {
  body.page-site [data-learning-guide="early"] .site-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.page-site [data-learning-guide="early"] [data-learning-audio],
  body.page-site [data-learning-guide="early"] [data-learning-sheet] > .site-cta { width: 100%; }
  body.page-site :is([data-early-editions], [data-early-collections], [data-early-edition]) .site-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.page-site :is([data-early-editions], [data-early-collections], [data-early-edition]) .site-actions > .site-cta { width: 100%; min-width: 0; padding: 10px 12px; justify-content: center; text-align: center; line-height: 1.25; }
}
/* The hero pins .page-number buttons to one grid cell on phones; homepage
   action rows let them flow and stretch to the shared width. */
@media (max-width: 599px) {
  :is([data-home-page], [data-letter-sections]) [data-home-actions] > :is(.site-cta, .page-number) { grid-column: auto; grid-row: auto; justify-self: stretch; align-self: stretch; }
}

/* /radni-listovi/ cards: PDF and print as two equal pills, then the daily
   sheets of the letter (or the early-learning PDF to colour) as a
   full-width button. */
[data-card-sheet] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-card-sheet] .ws-card__btn, .ws-card [data-card-daily], .ws-card [data-card-colouring], .ws-card [data-card-wide] { justify-content: center; padding: 0 10px; white-space: nowrap; }
.ws-card [data-membership-preview-action] { justify-content: center; }
.ws-card [data-card-daily], .ws-card [data-card-colouring], .ws-card [data-card-wide] { display: flex; width: 100%; margin-top: 12px; }
#izaberi .ws-card [data-card-daily] {
  min-height: 48px; padding: 8px 12px; line-height: 1.2; white-space: normal; text-align: center;
}
@media (min-width: 600px) and (max-width: 1099px) {
  #dnevna > #izaberi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dnevna > #izaberi > .ws-card { grid-column: auto; }
}

/* ---------------------------------------------------------------------
   Letter pages (tools/homepage.mjs letterSections): the book is the first
   screen and scrolls away like the homepage hero; the same sections and
   the blue footer follow. The book's fixed parts become absolute, so they
   stay on the first screen; their sizes are unchanged.
   --------------------------------------------------------------------- */
body.page-letter[data-letter-sections] { height: auto; min-height: 100%; overflow-x: clip; overflow-y: auto; background: #fff; }
/* The blurred backdrop is 40px larger than the screen on every side (for the
   blur); clip it at the root too, so phones get no sideways scroll and the
   fixed menu bar keeps the screen width. */
html:has(> body.page-letter[data-letter-sections]), html:has(> body[data-home-page]) { overflow-x: clip; }
body.page-letter[data-letter-sections] :is(.stage, .backdrop, .backdrop-tint, .page-nav) { position: absolute; }
body.page-letter[data-letter-sections] .backdrop { inset: -40px 0 auto; width: 100%; height: calc(100svh + 80px); }
body.page-letter[data-letter-sections] :is(.backdrop-tint, .page-nav) { inset: 0 0 auto; height: 100svh; }
body.page-letter[data-letter-sections] > [data-home-content] { margin-top: 100svh; min-height: 0; }
[data-home-chips] a { color: inherit; text-decoration: none; }
[data-home-chips] a:hover { text-decoration: underline; }
[data-home-sentences] { margin: 16px 0 0; font-size: clamp(18px, 2vw, 20px); font-weight: 700; }
/* Phones and wide desktop: the book is in the page flow (like the homepage
   hero), so the sections start exactly at its bottom edge. */
@media (max-aspect-ratio: 4/5) {
  body.page-letter[data-letter-sections] .stage { position: relative; top: 0; left: 0; transform: none; width: 100%; height: 100svh; }
  body.page-letter[data-letter-sections] > [data-home-content] { margin-top: 0; }
}
@media (min-width: 768px) and (min-aspect-ratio: 4001/5000) {
  body.page-letter[data-letter-sections][data-desktop-art] .stage { position: relative; top: 0; left: 0; margin-top: calc(var(--bar-h) + env(safe-area-inset-top)); height: calc(100svh - var(--bar-h) - env(safe-area-inset-top)); }
  body.page-letter[data-letter-sections][data-desktop-art] > [data-home-content] { margin-top: 0; }
}
/* Narrow landscape and almost-square screens keep their existing text stage,
   while the illustration reaches every screen edge behind the floating bar. */
@media (max-width: 767px) and (min-aspect-ratio: 4001/5000) {
  body.page-letter[data-letter-sections] .stage { overflow: visible; }
  body.page-letter[data-letter-sections] .stage__art {
    top: calc(0px - var(--bar-h) - env(safe-area-inset-top));
    left: calc((100% - 100vw) / 2);
    width: 100vw;
    height: calc(100% + var(--bar-h) + env(safe-area-inset-top));
  }
  body.page-letter[data-letter-sections] .letter-panel {
    top: calc(0px - var(--bar-h) - env(safe-area-inset-top));
    height: calc(100% + var(--bar-h) + env(safe-area-inset-top));
  }
}
/* The blurred backdrop ends exactly at the bottom of the book (its box is
   40px larger on every side for the blur), so no shadow band shows above
   the first section. */
body.page-letter[data-letter-sections] .backdrop { clip-path: inset(40px 0); transform: none; }
body.page-letter[data-letter-sections] .stage { box-shadow: none; }
/* Letter pages: one button at the bottom of each card, the same height in a row. */
[data-letter-sections] [data-home-trust-card] { display: flex; flex-direction: column; align-items: center; }
[data-home-card-action] { margin: auto 0 0 !important; padding-top: 16px; }
/* Room on both sides of the translation line (user, 29 October 2026). */
[data-home-card-action] .site-cta { min-height: 52px; padding: 8px 16px; font-size: 20px; }
.page-letter [data-home-card-action] { width: 100%; }
.page-letter [data-home-card-action] .site-cta { width: 100%; padding-inline: 8px; gap: 6px; }
@media (max-width: 389px) {
  .page-letter [data-home-trust-items] { grid-template-columns: minmax(0, 1fr); }
}
button.site-cta { font-family: var(--font-display); cursor: pointer; }
/* Unavailable songs keep the shared pill styling without hover movement. */
.page-letter button[data-song-unavailable] { cursor: default; transform: none; }

/* ---------------------------------------------------------------------
   Wide site pages built from homepage sections (tools/site-pages.mjs
   layout({ wide: true }), e.g. Padeži in tools/cases-page.mjs).
   --------------------------------------------------------------------- */
/* Language switch: the same look and place as in the text card of the other
   site pages (top right, border in the section colour). */
body.page-site [data-site-wide] { padding-top: 0; }
body.page-site [data-site-wide] > section:first-of-type .site-lang { position: absolute; z-index: 2; top: calc(clamp(24px, 5vw, 48px) + 4px); right: calc(clamp(24px, 5vw, 48px) + 4px); float: none; margin: 0; border-color: color-mix(in srgb, var(--panel) 25%, #fff); }
/* The page mascot rises above the band's top-right corner, as on the other
   site pages (body.page-site > .site-card > [data-home-mascot="corner"]). */
body.page-site [data-site-wide] > section:first-of-type { margin-top: 110px; }
body.page-site [data-site-wide] > section:first-of-type [data-home-mascot="corner"] { position: absolute; width: 180px; top: -132px; right: 12px; margin: 0; rotate: 6deg; }
@media (max-width: 599px) {
  body.page-site [data-site-wide] > section:first-of-type { margin-top: 96px; }
  body.page-site [data-site-wide] > section:first-of-type [data-home-mascot="corner"] { position: static; display: block; width: 150px; margin: -120px auto 4px; rotate: 0deg; }
  body.page-site [data-site-wide] > section:first-of-type .site-lang { position: static; width: max-content; margin: 0 12px 12px auto; }
}
[data-cases] [hidden] { display: none !important; }
[data-cases-setup] > [data-home-head] { width: min(600px, 100%); }
@media (max-width: 599px) { [data-cases-setup] [data-home-mascot="corner"] { position: static; display: block; width: 160px; margin: -40px auto 0; rotate: 0deg; } }
button[data-home-path-card] { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
[data-cases-modes] { width: min(820px, 100%); margin-inline: auto; }
@media (min-width: 600px) { [data-cases-modes] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { [data-cases-modes] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-cases-setup-title] { margin: 22px 0 0; font: 800 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-cases-filter-row] { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; margin-top: 26px; text-align: center; }
[data-cases-filter-row] .site-note { margin: 0; }
[data-cases] > :is([data-cases-game], [data-cases-result]) { width: min(860px, 100%); margin-inline: auto; }
[data-cases-grid] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px; }
[data-case-card] { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px !important; scroll-margin-top: calc(var(--bar-h) + 24px); }
/* Title and translation line take the card width, so both are centred like on every card (22 November 2026). */
[data-case-card] > :is(h3, [data-home-tr]) { align-self: stretch; margin: 0; }
[data-case-card] [data-home-badge] { width: 52px; height: 52px; margin-bottom: 6px; font: 800 26px/1 var(--font-display); }
[data-case-card] [data-case-question] { font: 800 18px/1.3 var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-case-card] [data-case-example] { padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 10%, #fff); font-weight: 700; }
[data-case-card] [data-case-example] strong { color: color-mix(in srgb, var(--panel) 80%, #3b2410); }
[data-case-card] > .site-cta { margin-top: auto; min-height: 42px; padding: 0 18px; font-size: 16px; }
[data-case-card] > p:not([data-case-question]):not([data-case-example]) { font-size: 14px; color: #5b3a1e; }
[data-cases-filter-row] .story-field { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 16px var(--font-display); }
[data-cases-filter-row] select { min-height: 44px; padding: 0 14px; border: 3px solid #fff; border-radius: 999px; background: #fff; color: #3b2410; font: 700 16px var(--font-body); box-shadow: 0 4px 0 color-mix(in srgb, var(--panel) 35%, #fff); cursor: pointer; }
@media (max-width: 599px) { button[data-home-path-card] { text-align: center; } }

/* Ispravi priču (tools/story-page.mjs, js/story.js): the story arrives in
   parts of two sentences; ✓ / red ✗ per sentence; the exact place of a
   mistake is marked in the child's own sentence. */
[data-story] [hidden] { display: none !important; }
[data-story] [data-home-head] { width: min(640px, 100%); }
[data-story] [data-home-chips] { margin-top: 16px; }
[data-story-panel] { width: min(860px, 100%); margin-inline: auto; text-align: left; }
[data-story-intro] { display: grid; justify-items: center; gap: 8px; text-align: center; }
[data-story-intro] [data-home-badge] { margin: 0 auto 4px; }
[data-story-panel] h2 { margin: 0 0 8px; font: 800 clamp(24px, 3vw, 32px)/1.15 var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-story-panel] h2 small { display: inline-block; margin-left: 8px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 14%, #fff); font: 800 15px var(--font-body); vertical-align: middle; }
[data-story-so-far-box] { margin-bottom: 22px; padding: 16px 20px; border-radius: 18px; background: color-mix(in srgb, var(--c-green) 9%, #fff); border: 2px dashed color-mix(in srgb, var(--c-green) 35%, #fff); }
[data-story-so-far-box] h3 { margin: 0 0 6px; font: 800 18px var(--font-display); color: color-mix(in srgb, var(--c-green) 75%, #3b2410); }
[data-story-so-far] p { margin: 0 0 6px; }
[data-story-items] { display: grid; gap: 18px; margin: 18px 0; }
[data-story-item] { padding: 16px 18px; border: 3px solid color-mix(in srgb, var(--panel) 18%, #fff); border-radius: 20px; background: #fffaf6; }
[data-story-item-head] { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px !important; font: 800 16px var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-story-item] blockquote { margin: 0 0 10px; padding: 10px 14px; border-left: 5px solid var(--panel); border-radius: 0 12px 12px 0; background: #fff; font-size: 18px; font-weight: 700; }
[data-story-item] textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 3px solid #eadcc6; border-radius: 14px; background: #fff; color: #3b2410; font: 700 18px/1.5 var(--font-body); resize: vertical; }
[data-story-item] textarea:focus-visible { outline: 3px solid var(--panel); outline-offset: 2px; }
/* The mark: a big green ✓ or an orange ✗ ("look once more", not a red error). */
[data-story-mark] { font: 900 34px/1 var(--font-display); }
[data-story-mark][data-result="right"] { color: var(--c-green); }
[data-story-mark][data-result="wrong"] { color: var(--c-orange); text-shadow: 0 0 0 var(--c-orange), 1px 0 0 var(--c-orange); }
[data-story-item]:has([data-result="wrong"]) { border-color: color-mix(in srgb, var(--c-orange) 45%, #fff); }
[data-story-item]:has([data-result="right"]) { border-color: color-mix(in srgb, var(--c-green) 45%, #fff); }
[data-story-item-feedback] { margin-top: 10px; font-weight: 700; }
[data-story-item-feedback] p { margin: 0 0 6px; }
[data-story-item-feedback] ul { margin: 4px 0 0; padding-left: 1.2em; }
[data-story-diff] { padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid color-mix(in srgb, var(--c-orange) 25%, #fff); font-size: 18px; white-space: pre-wrap; }
[data-story-diff] mark { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--c-orange) 18%, #fff); color: var(--c-orange); font-weight: 900; text-decoration: underline 3px var(--c-orange); text-underline-offset: 3px; }
[data-story-missing] { display: inline-block; margin: 0 1px; color: var(--c-orange); font: 900 24px/1 var(--font-display); vertical-align: -4px; }
[data-story] .vocab-letters { margin: 4px 0 14px; }
[data-story-note] { width: min(860px, 100%); margin: 0 auto; text-align: center; }
body.page-site section[data-story][data-home-band] {
  --band-mix: 20%;
  border: 0; margin-inline: 0; margin-bottom: 0; padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--panel) 34%, transparent) 2.5px, transparent 3px) 0 0 / 28px 28px,
    color-mix(in srgb, var(--panel) 20%, #fff);
}
#sta-provjeravamo [data-cases-grid] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
/* Wide pages: icons in every button; on phones every button is full width,
   like on the homepage and the letter pages. */
[data-site-wide] :is(.site-cta, .page-number) svg { width: 22px; height: 22px; flex: none; }
[data-site-wide] .page-number { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 599px) {
  [data-site-wide] :is(.story-controls, [data-home-actions], .cases-actions, .vocab-modes, .story-review) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  [data-site-wide] :is(.site-cta, .page-number) { width: 100%; justify-content: center; }
  [data-site-wide] .cases-game-bar { display: grid; gap: 10px; }
  [data-site-wide] [data-case-card] > .site-cta { width: 100%; }
}

/* Phones: buttons inside the story and case cards fill the card width. */
@media (max-width: 599px) {
  body.page-site [data-site-wide] [data-home-actions] { grid-template-columns: minmax(0, 1fr); justify-content: stretch; width: 100%; }
  body.page-site [data-site-wide] [data-home-actions] > :is(.site-cta, .page-number), body.page-site [data-site-wide] .cases-game-bar .page-number { width: 100%; justify-self: stretch; }
  body.page-site [data-site-wide] [data-story-intro] { justify-items: stretch; }
}
body.page-site section[data-story][data-home-band] { box-shadow: none; border-radius: clamp(28px, 5vw, 48px); }
@media (max-width: 599px) {
  body.page-site [data-site-wide] .cases-game-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.page-site [data-site-wide] .cases-game-bar > .page-number { width: 100%; }
}
/* "More games" bands on wide pages: readable title on yellow, the link in the
   site style, and an odd last card spans the row on two-column phones. */
#nastavi [data-home-title] { color: color-mix(in srgb, var(--c-orange) 60%, #3b2410); }
/* "Još malo igre?": a darker shade of its green background (user, 16 November 2026). */
#jos-igara [data-home-title] { color: color-mix(in srgb, var(--panel) 55%, #3b2410); }
:is(#nastavi, #jos-igara) [data-home-lead] a { color: color-mix(in srgb, var(--c-orange) 60%, #3b2410); font-family: var(--font-display); font-weight: 800; text-underline-offset: 3px; }
@media (max-width: 599px) {
  :is(#nastavi, #jos-igara) [data-home-paths] > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Spoken initial-word cards use the full section width at every breakpoint.
   Keep the existing pills, stacked translations and fixed 22px icons. */
.page-letter #glasovi [data-learning-words] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.page-letter #glasovi .site-tier { align-content: start; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.page-letter #glasovi .site-tier__name { overflow-wrap: anywhere; }
.page-letter #glasovi .site-tier__text { margin: 0; }
.page-letter #glasovi .site-cta { align-self: end; justify-content: center; width: 100%; min-width: 0; min-height: 52px; padding: 8px 6px; gap: 6px; font-size: 16px; }
.page-letter #glasovi .site-cta [data-home-icon] { width: 22px; height: 22px; flex: 0 0 22px; }
.page-letter #glasovi .site-cta .page-number__tr { display: none; }
/* The section buttons below the cards look like those of the other sections. */
.page-letter #glasovi [data-home-actions] { justify-content: center; }
.page-letter #glasovi [data-home-actions] > .site-cta { align-self: stretch; }
.page-letter #glasovi [data-home-actions] > .site-cta .page-number__tr { display: block; }
@media (min-width: 600px) {
  .page-letter #glasovi [data-home-actions] > .site-cta { width: auto; padding: 8px 20px; gap: 8px; font-size: 20px; min-height: 59px; }
}
@media (min-width: 600px) and (max-width: 1024px) { .page-letter #glasovi [data-word-actions] > .site-cta:not(:only-child, [data-song-unavailable]) .page-number__text { display: none; } }
@media (max-width: 560px) {
  .page-letter #glasovi [data-learning-words] { grid-template-columns: minmax(0, 1fr); }
}

/* /radni-list-dana/slovo-x/ day cards (functions/radni-list-dana): the level
   links fill the card body; the "Danas"/"Najnoviji" label sits above the date. */
[data-daily-cards] .ws-card__body > .site-tier__price { font: 800 16px/1 var(--font-display); color: color-mix(in srgb, var(--panel) 80%, #3b2410); }
[data-daily-cards] [data-day-levels] { margin-top: 12px; }

/* Letter cards on /radni-listovi/: PDF and Ispiši take the tint of the card's
   picture area instead of white. */
.ws-card [data-card-sheet] .site-cta--soft { background: color-mix(in srgb, var(--panel) 16%, #fff); }

/* "Zašto je korisno" (tools/benefits.mjs): the trust cards as one
   swipeable row (scroll snap), small mascots, arrows on the right of the
   heading (js/site.js). */
/* Every card has the page colour: outline, shadow, mascot circle, heading. */
[data-benefits] { margin-top: 28px; }
[data-benefits-head] { display: flex; align-items: center; gap: 8px; }
[data-benefits-head] h2 { flex: 1; margin: 0; }
[data-benefits-head] .site-cta { width: 44px; min-height: 44px; height: 44px; padding: 0; justify-content: center; }
[data-benefits] [data-home-trust-items] {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 108px 4px 14px; scroll-padding-inline: 4px; margin: 0 -4px 10px; outline-offset: 4px;
}
[data-benefits] [data-home-trust-items]::-webkit-scrollbar { display: none; }
[data-benefits] [data-home-trust-card] {
  flex: 0 0 calc((100% - 14px) / 1.2); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center;
  /* The homepage card: white, an outline and a solid shadow. */
  margin: 0; border: 4px solid color-mix(in srgb, var(--panel) 22%, #fff); border-radius: 28px;
  background: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
[data-benefits] [data-home-trust-card] [data-home-blob] {
  --blob: 112px; margin: -72px auto 12px;
  background: color-mix(in srgb, var(--panel) 28%, #fff); box-shadow: 0 7px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}
[data-benefits-scroll][hidden] { display: none; }
[data-benefits-note] { margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
[data-benefits-note]:last-child { margin-bottom: 14px; }
/* Compact mascot sliders keep both arrows above the cards. */
[data-benefits][data-benefits-compact] { position: relative; margin-top: 0; }
[data-benefits-compact] [data-home-trust-items] { padding-top: 100px; margin-bottom: 6px; }
[data-benefits-compact] [data-benefits-head] { display: flex; justify-content: flex-end; margin-bottom: 14px; }
[data-benefits-compact] [data-benefits-scroll] { position: static; }
/* Phones: less space above the cards; a smaller, lower mascot circle keeps
   the mascot inside the row. */
@media (max-width: 599px) {
  [data-benefits-compact] [data-home-trust-items] { padding-top: 70px; }
  [data-benefits-compact] [data-home-trust-card] [data-home-blob] { --blob: 100px; margin: -50px auto 10px; }
}
[data-benefits] [data-home-trust-card] h3 { margin: 0 0 6px; font: 800 22px/1.15 var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
[data-benefits] [data-home-trust-card] p:last-child { margin: 0; font-size: 14px; }

/* Weekly collections reuse the shared slider, with three visible cards on desktop. */
.learning-paths[data-weekly-editions][data-home-band] { margin-block: 32px; }
:is(#sedmicna-izdanja, [data-weekly-editions]) .site-cta--soft { background: #fff; color: var(--panel); border-color: var(--panel); --button-depth: 2px; --button-blur: transparent; }
:is(#sedmicna-izdanja, [data-weekly-editions]) .site-cta--soft:active { --button-depth: 1px; }
:is(#sedmicna-izdanja, [data-weekly-editions]) .ws-card__actions { gap: 6px; }
[data-weekly-editions] [data-membership-guest-actions] > [data-card-wide] { min-height: 48px; }
[data-weekly-editions="monthly"] .ws-card__actions { margin-top: 14px; padding-bottom: 4px; }
/* Monthly book cover drawn by the page, in the layout of the weekly cover
   pictures (778 x 1100). All sizes are a share of the cover width (cqw). */
.wb-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 778 / 1100; container-type: inline-size; color: color-mix(in srgb, var(--c1) 75%, #3b2410); text-align: center; background: linear-gradient(to bottom left, color-mix(in srgb, var(--c1) 20%, #fff), color-mix(in srgb, var(--c2) 20%, #fff)); }
.wb-cover { border-radius: 6px 6px 0 0; box-shadow: 0 -2px 12px rgba(40, 25, 10, 0.12); transition: transform .2s ease; transform-origin: bottom center; }
.ws-card__preview:hover .wb-cover { transform: translateY(-4px) rotate(-1deg); }
.ws-card__preview:hover .wb-cover img { transform: none; }
.wb-cover::before { content: ""; position: absolute; inset: 0; background: url("/img/hero-mobile.webp") center top / cover; opacity: .22; }
.wb-cover > * { position: absolute; left: 0; right: 0; }
.wb-cover .wb-cover__logo { left: 7cqw; right: auto; top: 6.7cqw; width: 86cqw; height: auto; max-height: none; aspect-ratio: 2524 / 292; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; background: none; }
.wb-cover__kicker { top: 36.2cqw; font: 700 3.9cqw/1.2 var(--font-body); }
.wb-cover__name { top: 43.2cqw; font: 800 15.2cqw/1.1 var(--font-display); paint-order: stroke fill; -webkit-text-stroke: 2.2cqw #fff; }
.wb-cover__sub { top: 62.2cqw; font: 700 4.1cqw/1.2 var(--font-body); paint-order: stroke fill; -webkit-text-stroke: 1.4cqw #fff; }
.wb-cover__row { top: 70.4cqw; padding: 0 4cqw; font: 800 4.6cqw/1.2 var(--font-display); paint-order: stroke fill; -webkit-text-stroke: 1.5cqw #fff; }
.wb-cover__box { left: 6.4cqw; right: 6.4cqw; bottom: 7.6cqw; height: 21cqw; background: rgb(255 255 255 / .9); text-align: left; }
.wb-cover__box > span:first-child { position: absolute; left: 2.8cqw; top: 4.1cqw; font: 500 3.7cqw/1 var(--font-body); }
.wb-cover__box i { position: absolute; left: 11cqw; right: 20.3cqw; top: 8.5cqw; border-bottom: .26cqw solid currentColor; }
.wb-cover__box small { position: absolute; left: 2.8cqw; bottom: 4.4cqw; font: 700 2.06cqw/1 var(--font-body); }
.wb-cover__seal { position: absolute; right: 2.2cqw; top: 2.2cqw; display: grid; place-content: center; width: 16.6cqw; height: 16.6cqw; box-sizing: border-box; border: .64cqw solid currentColor; border-radius: 50%; background: rgb(255 255 255 / .92); font: 700 2.2cqw/1.1 var(--font-body); }
.wb-cover__seal b { display: block; font: 800 3.2cqw/1.1 var(--font-display); }
[data-weekly-latest] .wb-cover__name { font-size: 12.6cqw; }
[data-weekly-latest] .wb-cover__seal b { font-size: 6.4cqw; line-height: 1; }
:is(#sedmicna-izdanja, [data-weekly-editions]) .ws-card__actions [data-card-wide] { margin-top: 0; }
[data-weekly-editions] [data-benefits-head] { justify-content: flex-end; margin-bottom: 14px; }
[data-weekly-editions] [data-benefits-head]:not(:has(button:not([hidden]))) { display: none; }
@media screen {
  :is(#sedmicna-izdanja, [data-weekly-editions]) .ws-cards {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 4px;
    padding: 4px 4px 14px; margin-inline: -4px;
  }
  [data-weekly-editions] .ws-cards::-webkit-scrollbar { display: none; }
  [data-weekly-editions] .ws-cards > .ws-card { flex: 0 0 calc((100% - 14px) / 1.2); min-width: 0; scroll-snap-align: start; }
}
/* Every slider shows part of the next card, so a child or parent sees there
   is more: 1.2 cards on phones (room for the method badges; user, 23 November 2026), 2.5 from tablets (benefit cards 3.5 on desktop). */
@media screen and (min-width: 600px) {
  [data-weekly-editions] .ws-cards > .ws-card { flex-basis: calc((100% - 28px) / 2.5); }
}
@media (prefers-reduced-motion: no-preference) {
  html:has([data-home-page]) { scroll-behavior: smooth; }
}
@media (min-width: 600px) {
  .page-bosanski-jezik-za-dijasporu [data-home="alphabet"] [data-home-head] { padding-top: 56px; }
}
.page-bosanski-jezik-za-dijasporu [data-home-title] { overflow-wrap: anywhere; }

/* Prose reads left to right at every screen size. Short card and slider copy
   keeps its centred presentation; action rows keep their own alignment. */
:is([data-home-content], body.page-site main) :is(h1, h2, h3) { text-align: center; }
:is([data-home-content], body.page-site main) :is([data-home-left], [data-home-split]) :is(h1, h2, h3) { text-align: left; }
:is([data-home-content], body.page-site main) :is([data-home-trust-card], [data-home-path-card], .site-tier, .ws-card__body) :is(h1, h2, h3) { text-align: center; }
:is([data-home-content], body.page-site main) p:not(.site-actions, [data-home-actions], [data-home-card-action]) { text-align: left; }
.page-cover .cover-title__lead { text-align: center; }
:is([data-home-content], body.page-site main) p[data-reading-short] { text-align: center; }
:is([data-home-content], body.page-site main) :is([data-home-left], [data-home-split]) p[data-reading-short] { text-align: left; }
:is([data-home-content], body.page-site main) [data-home-head] > [data-home-tr] { text-align: center; }
:is([data-home-content], body.page-site main) [data-home-head][data-home-left] > [data-home-tr] { text-align: left; }

/* Shared screen prose size, including mobile cards and translated paragraphs.
   Notes retain their established size; action labels and print stay separate. */
@media screen {
  :is([data-home-content], body.page-site main, .cover-title) p:not(.site-note, .site-actions, [data-home-actions], [data-home-card-action]) { font-size: 16px !important; }
}
/* Desktop hero: the lead and the line under the buttons are one, larger size
   and weight (the lead otherwise gets 700 from [data-home-lead]). */
@media screen and (min-width: 768px) {
  .page-cover :is(.cover-title, [data-home-hero-actions]) p:is(.cover-title__lead, .cover-title__sub, .cover-title__tr) { font-size: clamp(17px, 1.35vw, 20px) !important; font-weight: 800; }
}
:is([data-home-content], body.page-site main) [data-home="paths"] [data-home-path-card] > p:not([data-home-tr]) { text-align: left; }
[data-home-path-card] > :is(h3, [data-home-tr]) { width: 100%; text-align: center; }
:is([data-home-content], body.page-site main) [data-home="early"] [data-home-path-card] > p:not([data-home-tr]) { text-align: left; }
[data-home="early"] [data-home-head] { margin-bottom: clamp(40px, 5vw, 56px); }
/* Solid prose backing hides dots on every band, including plain paragraphs
   without a lead/span wrapper. Inner cards already have their own solid fill. */
[data-home-band] p:not(.site-actions, [data-home-actions], [data-home-card-action]) {
  background-color: color-mix(in srgb, var(--panel) var(--band-mix, 14%), #fff);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
[data-home-band] :is(.site-card, .ws-card, .site-tier, .cases-guide, .wd-promo, .story-workspace, .cases-mode, .cases-prompt, .story-reading, [data-plan]) p { background-color: transparent; }

/* A hidden button stays hidden (the button style sets display). */
.site-cta[hidden] { display: none !important; }
/* An empty membership notice must not create a second section gap. */
[data-membership-resource]:empty { display: none; }
/* /clanstvo/: the free links sit centred under the centred heading. */
[data-membership-free] { justify-content: center; }
/* /clanstvo/: buttons that do not work yet keep the button look, paler. */
:is([data-membership-purchase], [data-membership-login]) .site-cta:disabled { opacity: .7; border: 3px solid #fff !important; box-shadow: 0 5px 0 color-mix(in srgb, var(--panel) 55%, #3b2410) !important; cursor: default; }
/* /clanstvo/: the mascot group sits on the card edge (like Hvala); the
   introduction uses the full card width, aligned with the cards below. */
[data-home-group][data-home-blob] {
  --blob: clamp(180px, 24vw, 300px);
  width: var(--blob); height: var(--blob); margin: -158px auto 28px;
}
[data-home-group][data-home-blob] > [data-home-mascot] {
  left: 50%; bottom: 2%; width: min(190%, calc(100vw - 64px), 520px);
  height: auto; aspect-ratio: auto; transform: translateX(-50%);
}
#clanstvo > [data-home-head] { width: 100%; }
#clanstvo > [data-home-head] [data-home-actions] { justify-content: flex-start; }
#clanstvo [data-membership-actions] .site-cta { text-align: center; justify-content: center; }
@media (max-width: 380px) { #clanstvo [data-membership-actions] .site-cta { padding-inline: 12px; gap: 8px; font-size: 18px; } }
@media (max-width: 599px) { [data-home-group][data-home-blob] { margin-top: -104px; } }


a[data-home-blob] { display: block; cursor: pointer; }
a[data-home-blob]:focus-visible { outline: 3px solid var(--panel); outline-offset: 4px; }
/* "Dio članstva" pill: marks paid material on the membership notice and the newsletter window. */
.member-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--c-orange, #f08a24); color: #fff; border: 2px solid #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--c-orange, #f08a24) 60%, #000); font: 800 0.85rem/1.4 var(--font-display, inherit); letter-spacing: 0.02em; white-space: nowrap; }
.member-badge::before { content: ""; width: 0.95em; height: 0.95em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-note .member-badge { margin-right: 4px; vertical-align: 1px; }
/* Locked-material notice: space below the try buttons and a slider of example sheets. */
.member-locked { margin-top: 36px !important; min-width: 0; max-width: 100%; }
.member-locked [data-weekly-editions] { min-width: 0; }
#member-notice-cards { scroll-margin-top: calc(var(--bar-h, 88px) + 84px); }
.member-locked > .site-actions { justify-content: center; margin: 0 0 6px; }
.member-locked .member-badge { gap: 8px; padding: 8px 22px; font-size: 20px; }
.member-locked .member-badge::before { flex: none; width: 22px; height: 22px; }
.member-locked [data-benefits-head] > .member-badge { margin-right: auto; }
.member-locked [data-weekly-editions="notice"] [data-benefits-head] { display: flex; }
@media (max-width: 560px) {
  .member-locked [data-benefits-head] > .member-badge { padding: 6px 10px; gap: 6px; font-size: 14px; }
  .member-locked [data-benefits-head] > .member-badge::before { width: 18px; height: 18px; }
}

/* Red round badge in the top right corner: the picture is part of membership. */
[data-member-lock] { position: relative; }
[data-member-lock]::after, [data-daily-badge="circle"] { content: "Dio članstva"; position: absolute; z-index: 2; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 72px; height: 72px; padding: 25px 6px 6px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.25); pointer-events: none;
  color: #fff; font: 800 11px/1.15 var(--font-display, inherit); text-align: center; white-space: normal;
  background: #d7263d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center 9px / 18px no-repeat; }
[data-member-lock]::after { content: "Dio\a članstva"; white-space: pre-line; }
html[data-lang="en"] [data-member-lock]::after { content: "Members\a only"; }
html[data-lang="de"] [data-member-lock]::after { content: "Für\a Mitglieder"; }
/* /clanstvo/ plans: two wide cards; sign-in form spacing. */
#cijena [data-home-trust-items] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 760px; margin-inline: auto; }
#cijena [data-home-trust-card] .site-actions { justify-content: center; margin-top: auto; }
#prijava .contact-form { display: grid; gap: 14px; margin-top: 8px; }
#prijava .contact-form .site-cta { justify-self: start; }
#prijava .site-note:empty { display: none; }
/* Notice pill centred on every width; plan bullets; sign-in form text on the left. */
.member-locked > .site-actions { display: flex !important; justify-content: center !important; width: 100%; text-align: center; }
[data-membership-points] { text-align: left; margin: 4px 0 14px; padding-left: 1.2em; font-size: 15px; line-height: 1.45; }
[data-membership-points] li + li { margin-top: 4px; }
#prijava .contact-form { text-align: left; min-width: 0; }
#prijava [data-home-left] { min-width: 0; }
#prijava .contact-form__turnstile { max-width: 100%; overflow: hidden; }
/* Full-screen view of a notice picture. */
[data-member-zoom] { cursor: zoom-in; }
.member-zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(72px, calc(env(safe-area-inset-top) + 64px)) 16px max(16px, env(safe-area-inset-bottom)); border: 0; background: transparent; display: none; }
.member-zoom[open] { display: grid; place-items: center; }
.member-zoom::backdrop { background: rgb(20 20 30 / 0.85); }
.member-zoom img { max-width: 100%; max-height: calc(100dvh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); width: auto; height: auto; border-radius: 10px; background: #fff; cursor: zoom-out; }
.member-zoom .practice__close { position: fixed; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 2; }
.member-zoom .practice__close svg { width: 24px; height: 24px; }
/* Diaspora intro: the corner mascot sits above the card, so only the title keeps
   room for it and the paragraphs use the full width. On the homepage the mascot
   reaches into the text area and keeps the full reserved space. */
@media (min-width: 760px) {
  .page-bosanski-jezik-za-dijasporu [data-home-content] [data-home="alphabet"] [data-home-head] { padding-right: 0; }
  .page-bosanski-jezik-za-dijasporu [data-home-content] [data-home="alphabet"] [data-home-head] > :is(h1, h2) { padding-right: 280px; }
}
@media (min-width: 1100px) {
  .page-bosanski-jezik-za-dijasporu [data-home-content] [data-home="alphabet"] [data-home-head] > :is(h1, h2) { padding-right: 360px; }
}
/* Slider sections: less space under the heading and under the cards. */
[data-weekly-editions] > div:first-child { margin-bottom: 12px !important; }
[data-weekly-editions] .ws-cards { margin-bottom: 0 !important; }
[data-weekly-editions][data-home-band] { padding-bottom: 36px !important; }
/* Side-by-side mascot sections (support, newsletter): headings on the left on desktop. */
@media (min-width: 860px) {
  :is([data-home-content], body.page-site main) :is([data-home="support"], [data-home="newsletter"]) > div:not([data-home-blob]) > :is(h1, h2) { text-align: left; }
}
/* Single card actions: centred at their natural width on desktop. */
[data-membership-view] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; }
@media (min-width: 760px) {
  [data-membership-view] { width: auto; align-self: center; justify-self: center; margin-inline: auto; padding-inline: 22px; }
  [data-home-path-card] > .site-cta { align-self: center; }
}
#clanstvo [data-home-head] > p:not(.site-actions) + p:not(.site-actions) { margin-top: 12px; }
/* Membership uses the existing gate, form and action components. */
[data-membership-dialog] [hidden] { display: none !important; }
[data-membership-dialog] .gate__card { padding: 24px; }
[data-membership-dialog] .contact-form { margin: 14px 0 10px; min-width: 0; gap: 10px; }
[data-membership-dialog] .site-actions { display: grid; gap: 12px; margin: 16px 0; }
[data-membership-dialog] .site-cta { width: 100%; justify-content: center; }
[data-membership-dialog] .practice__close { flex: none; }
[data-membership-dialog] [data-membership-logout] { margin-top: 8px; }
.member-locked > [data-membership-notice-actions] { margin-top: 20px; gap: 12px; }
[data-member-sample] { position: relative; }
/* z-index 2: the method circles (z-index 3) below lie over it; each later circle covers the one above (user, 23 November 2026). */
.member-badge[data-member-sample-label] { position: absolute; z-index: 2; top: 8px; right: 8px; display: flex; justify-content: center; align-items: center; width: 72px; height: 72px; box-sizing: border-box; padding: 6px; border: 3px solid #fff; border-radius: 50%; background: var(--c-green); box-shadow: 0 3px 0 color-mix(in srgb, var(--c-green) 60%, #000); color: #fff; font-size: 11px; line-height: 1.1; text-align: center; white-space: normal; }
.member-badge[data-member-sample-label] { flex-direction: column; gap: 2px; }
.member-badge[data-member-sample-label]::before { display: block; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.1 5.2 3 1.6-1.9 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.1 5.2 3 1.6-1.9 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 560px) { .member-badge[data-member-sample-label] { width: 52px; height: 52px; padding: 3px; font-size: 8.5px; line-height: 1.05; } }

/* Membership windows: a mascot in a circle on top, centred, apart from the text (user, 19 November 2026). */
/* The circle sits on the top border: half outside, half inside the window, centred on every screen
   (user, 19 November 2026). The window does not clip it; its card scrolls instead. */
.gate:is([data-membership-dialog][data-show-mascot], [data-paypal-dialog], [data-bank-dialog]) { overflow: visible; max-height: none; }
.gate:is([data-membership-dialog][data-show-mascot], [data-paypal-dialog], [data-bank-dialog]) > .gate__card { box-sizing: border-box; max-height: calc(100dvh - 120px); overflow-y: auto; padding-top: 60px; border-radius: inherit; }
:is(.gate, [data-newsletter-dialog]) [data-gate-mascot] { --blob: 88px; position: absolute; z-index: 2; top: -44px; left: 50%; margin: 0; transform: translateX(-50%); }
/* The X sits in the top band beside the circle, so the title keeps its full width. */
.gate:is([data-membership-dialog][data-show-mascot], [data-paypal-dialog], [data-bank-dialog]) .practice__head { position: static; }
.gate:is([data-membership-dialog][data-show-mascot], [data-paypal-dialog], [data-bank-dialog]) .practice__close { position: absolute; z-index: 3; top: 14px; right: 14px; margin: 0; }
[data-membership-dialog] [data-membership-entry] > p { margin-block: 12px; }
[data-membership-dialog] [data-membership-entry] > .site-cta { margin-top: 4px; }

[data-membership-dialog] [data-membership-status]:empty { display: none; }
[data-membership-dialog] [data-membership-status] { margin: 0; }

@media (max-width: 560px) { [data-member-lock]::after, [data-daily-badge="circle"] { width: 58px; height: 58px; padding: 22px 4px 4px; font-size: 10px; background-position: center 6px; background-size: 16px; } }

/* Identical white outline for paid and free material image badges. */
[data-member-lock]::after, [data-daily-badge="circle"], .member-badge[data-member-sample-label] { border: 3px solid #fff; outline: none; box-shadow: 0 2px 6px rgb(0 0 0 / 0.25); }

[data-membership-edition-actions] { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; width: 100%; gap: 8px; }
[data-membership-edition-actions] > .site-cta { min-width: 0; width: 100%; margin: 0; padding-inline: 8px; gap: 6px; justify-content: center; text-align: center; }
[data-membership-edition-actions] > [data-membership-open] { width: 100%; justify-content: center; }
[data-membership-edition-actions] > .site-cta svg { width: 22px; height: 22px; flex: none; }
[data-membership-preview-action][hidden], [data-membership-guest-actions][hidden] { display: none !important; }

.ws-card:has([data-membership-edition-actions]) { container-type: inline-size; }
@container (min-width: 300px) {
  [data-membership-edition-actions] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { [data-membership-edition-actions] { grid-template-columns: minmax(0, 1fr); } }

/* × alone on the top row, the heading centred below it (user, 13 November 2026). */
[data-membership-dialog] .practice__head { position: relative; justify-content: center; padding: 0; min-height: 44px; }
[data-membership-dialog] [data-membership-title] { text-align: center; }
[data-membership-dialog] .practice__head > [data-membership-close] { position: absolute; right: 0; top: 0; }

body.page-site .site-card > .site-actions:has(> .site-cta:only-child) { justify-content: center; }
body.page-site .site-card > .site-actions > .site-cta:only-child { width: fit-content; max-width: 100%; justify-content: center; }

[data-benefits-head] [data-benefits-scroll]:disabled { opacity: .45; cursor: default; transform: none; }

[data-membership-dialog] [data-membership-turnstile] { width: 100%; min-width: 0; }
[data-membership-dialog] [data-membership-sent] { margin: 0; }
[data-membership-dialog] [data-membership-sent] p { margin: 4px 0; }
[data-membership-dialog] [data-membership-sent] .site-actions { margin: 12px 0 0; }
[data-membership-dialog] { width: min(420px, calc(100% - 32px)); max-width: calc(100% - 32px); }
@media (max-width: 560px) {
  [data-membership-dialog] .gate__card { padding: 20px; }
}

[data-membership-dialog] [data-membership-turnstile] > div { width: 100%; }
.member-badge[data-member-sample-label] > [lang] { width: 100%; word-spacing: 100px; overflow-wrap: normal; word-break: normal; }
@media (max-width: 560px) {
  [data-membership-dialog] [data-membership-close] svg { width: 24px; height: 24px; }
  .member-badge[data-member-sample-label]::before { width: 14px; height: 14px; }
}

/* Compact weekly navigation reuses its section colour and existing membership pill. */
[data-weekly-editions] > [data-benefits-head] > .member-badge {
  margin-right: auto;
  background: var(--panel);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--panel) 60%, #000);
}
[data-weekly-editions]:not([data-weekly-editions="notice"]) > [data-benefits-head] > .member-badge { display: none; }
@media (max-width: 999px) {
  [data-weekly-editions]:not([data-weekly-editions="notice"]) > [data-benefits-head] > .member-badge { display: inline-flex; font-size: 16px; padding: 6px 12px; }
}
@media (max-width: 560px) {
  [data-weekly-editions]:not([data-weekly-editions="notice"]) > [data-benefits-head] > .member-badge { font-size: 14px; padding: 6px 10px; gap: 6px; }
}

/* Existing panels and card actions keep their common reading rhythm. */
body.page-site :is(#odakle-poceti, #pitanja-roditelja) { margin-block: 0; }
body.page-site #odakle-poceti { padding-block: 32px; }
body.page-site #odakle-poceti :is(> h2, > [data-home-head] > h2) { margin: 0 0 16px; }
body.page-site #odakle-poceti p[data-home-lead] { margin: 16px 0; }
[data-home-page] #prije-slova { padding-bottom: 32px; }
[data-home-page] #prije-slova > .site-note[data-home-small][data-home-lead] { margin: 16px 0 0; padding-top: 4px; text-align: center; font-size: 12px; }
@media (max-width: 599px) {
  body.page-site .site-card .site-actions:not([data-membership-edition-actions], [data-daily-navigation]),
  [data-home-trust-card] [data-home-actions] { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; justify-content: stretch; }
  body.page-site .site-card .site-actions:not([data-membership-edition-actions], [data-daily-navigation]) > .site-cta,
  [data-home-trust-card] [data-home-actions] > .site-cta { width: 100%; min-width: 0; justify-content: center; }
  [data-home-page] #prije-slova { padding-bottom: 24px; }
}

/* Shared material examples: two larger sheets and one centred account row. */
@media (min-width: 561px) {
  :is(#member-notice-cards, #letter-material-examples, #hub-daily-examples).ws-cards:not(:has(> .ws-card:nth-child(3))) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 24px; }
  [data-weekly-editions="notice"] > .ws-cards > .ws-card { width: auto; min-width: 0; }
}
[data-weekly-editions="notice"] > [data-benefits-head] { display: flex; }
[data-weekly-editions="notice"] > [data-benefits-head] > .member-badge { margin-right: auto; }
[data-home-band] [data-membership-notice-actions] { display: flex !important; justify-content: center !important; width: 100%; margin-top: 20px; gap: 12px; text-align: center; }
[data-membership-guest][hidden], [data-membership-letter-active][hidden] { display: none !important; }


@media (min-width: 600px) {
  [data-benefits] [data-home-trust-card] { flex-basis: calc((100% - 28px) / 2.5); }
}

/* Membership page plans: free and membership side by side (one column on
   phones). Rounded kids' cards in the panel colour, big price, check list. */
[data-plans] { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 28px; text-align: left; }
@media (min-width: 768px) { [data-plans] { grid-template-columns: 1fr 1fr; align-items: start; } }
[data-plan] { position: relative; min-width: 0; padding: 28px 24px 22px; background: #fff; border: 3px solid color-mix(in srgb, var(--panel) 30%, #fff); border-radius: 28px; box-shadow: 0 6px 0 color-mix(in srgb, var(--panel) 30%, #fff); }
[data-plan="member"] { border-color: var(--panel); background: color-mix(in srgb, var(--panel) 7%, #fff); box-shadow: 0 6px 0 color-mix(in srgb, var(--panel) 70%, #000); }
[data-plan] h3 { margin: 0; font: 800 28px/1.1 var(--font-display); color: var(--panel); }
[data-plan] > p { margin: 8px 0 0 !important; }
[data-plan-badge] { position: absolute; top: -16px; right: 20px; padding: 5px 14px; border-radius: 999px; background: var(--panel); color: #fff; font: 800 14px var(--font-display); box-shadow: 0 3px 0 color-mix(in srgb, var(--panel) 70%, #000); }
[data-plan] > [data-plan-price] { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0 !important; }
[data-plan-price] strong { font: 800 56px/1 var(--font-display); color: #3b2410; }
[data-plan-price] span { font-weight: 800; color: #7a6a5a; }
[data-plan] .site-actions { justify-content: stretch; margin: 22px 0 0 !important; }
/* Notes: a little air under the price, clear space under the button's shadow. */
[data-plan] > .site-note { margin-top: 6px !important; line-height: 1.45; }
[data-plan] > .site-actions + .site-note { margin-top: 16px !important; }
[data-plan] .site-actions .site-cta { width: 100%; justify-content: center; }
[data-plan-list] { margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 2px dashed color-mix(in srgb, var(--panel) 35%, #fff); }
[data-plan-list] li { position: relative; margin: 10px 0; padding-left: 30px; font-weight: 700; line-height: 1.4; }
[data-plan-list] li::before { content: "✓"; position: absolute; left: 2px; top: -1px; color: var(--panel); font: 800 20px/1 var(--font-display); }
/* Buying moment (test round 2): a real sheet, the payment in three steps and
   "cancel at any time" right at the button. */
[data-plan-sheet] { width: 100%; margin: 18px 0 0; text-align: center; }
@media (min-width: 600px) { [data-plan-sheet] { width: 240px; margin-inline: auto; } }
[data-plan-sheet] img { display: block; width: 100%; height: auto; border: 3px solid color-mix(in srgb, var(--panel) 35%, #fff); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--panel) 30%, #fff); }
[data-plan-sheet] figcaption { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #7a6a5a; }
[data-bank-dialog] { width: min(600px, calc(100vw - 32px)); max-width: none; }
[data-bank-dialog] .gate__card { box-sizing: border-box; width: 100%; max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; }
[data-bank-dialog] .practice__head { align-items: center; }
[data-bank-dialog] .gate__title { margin: 0; font-size: 22px; line-height: 1.2; text-align: left; }
[data-bank-dialog] .practice__close { flex: none; width: 40px; height: 40px; font-size: 22px; line-height: 1; }
[data-bank-dialog] [hidden] { display: none !important; }
[data-bank-dialog] [data-bank-slip] { display: block; width: 100%; height: auto; margin: 12px 0; }
[data-bank-dialog] .gate__card p[data-bank-required] { margin: 0 0 12px; padding: 6px 10px; border: 1.5px solid #c62828; border-radius: 8px; background: #fdecea; color: #c62828; font-size: 12px !important; font-weight: 700; line-height: 1.35; }
[data-bank-dialog] dl { margin: 0 0 10px; }
[data-bank-dialog] [data-bank-row] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1.5px dashed #d9c9ae; }
[data-bank-dialog] dt { grid-column: 1; font-size: 12px; font-weight: 700; line-height: 1.2; color: #7a5a3a; }
[data-bank-dialog] dd { display: contents; }
[data-bank-dialog] dd > span { grid-column: 1; font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: break-word; }
[data-bank-dialog] dd > .site-cta.site-cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: auto; min-width: 0; min-height: 32px; padding: 3px 12px; font-size: 13px; }
[data-bank-dialog] [data-bank-email] { padding: 1px 6px; border: 1.5px solid #c62828; border-radius: 6px; background: #fdecea; color: #c62828; font-weight: 800; white-space: nowrap; }
[data-bank-dialog] .gate__card p:last-child { margin: 0; color: #5b4630; font-size: 13px !important; line-height: 1.4; }
@media (max-width: 359px) {
  [data-bank-dialog] .gate__card { padding: 16px; }
  [data-bank-dialog] .gate__title { font-size: 20px; }
  [data-bank-dialog] dd > span { font-size: 13px; }
  [data-bank-dialog] dd > .site-cta.site-cta { padding-inline: 8px; font-size: 12px; }
}
[data-plan-steps] { margin: 18px 0 0; padding: 14px 16px 14px 38px; border-radius: 18px; background: #fff; font-weight: 700; line-height: 1.4; }
[data-plan-steps] li { margin: 4px 0; }
[data-plan-steps] li::marker { color: var(--panel); font-weight: 800; }
[data-plan] [data-membership-purchase] { flex-wrap: wrap; }
[data-plan] [data-membership-purchase] > .site-cta { flex: 1 1 170px; min-width: 0; justify-content: center; padding-inline: 10px; font-size: 18px; line-height: 1.15; white-space: normal; }
@media (max-width: 599px) {
  body.page-site [data-site-wide] [data-plan] [data-membership-purchase] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  body.page-site [data-site-wide] [data-plan] [data-membership-purchase] > .site-cta { width: 100%; font-size: 18px; gap: 8px; padding-inline: 6px; min-height: 56px; } /* short labels "Kartica", "Uplatnica" */
  [data-plan] [data-membership-purchase] > .site-cta [data-home-icon] { width: 18px; height: 18px; }
  [data-plan] [data-plan-cancel] { grid-column: 1 / -1; }
}
@media (max-width: 374px) { /* was 359 px; the EN · DE line needs it up to 374 px (23 November 2026) */
  body.page-site [data-site-wide] [data-plan] [data-membership-purchase] > .site-cta { padding-inline: 4px; font-size: 16px; }
}
[data-plan-cancel] { flex: 1 1 100%; text-align: center; font-weight: 800; color: #3b2410; }
/* Card and wallet marks under "Plati karticom" (member card and Creem dialog). */
.pay-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 23px 0 0; padding: 0; list-style: none; } /* full width under the buttons; the same 18 px visible space above (23 px = 18 px + the buttons' 5 px shadow) and below (user, 21 November 2026) */
[data-creem-box]:has(> .pay-marks) { margin-bottom: 0; }
.gate__card > [data-creem-box]:has(> .pay-marks) + p[data-payment-cancel] { margin-top: 6px; } /* 0 + 12 px grid gap + 6 px = 18 px below the marks in the card dialog */
.pay-marks li { display: flex; align-items: center; justify-content: center; min-width: 0; height: 48px; padding: 8px 10px; border: 1px solid #e3dccf; border-radius: 8px; background: #fff; }
@media (max-width: 359px) { .pay-marks { gap: 6px; } .pay-marks li { padding-inline: 4px; } }
/* Bottom payment popup (pages with the Creem card window; js/site.js). */
.pay-popup { position: fixed; z-index: 20; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(480px, calc(100% - 32px)); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px 18px; border: 3px solid var(--c-orange); border-radius: 20px; background: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--c-orange) 55%, #3b2410), 0 16px 40px rgba(40, 25, 10, .25); }
.pay-popup[hidden] { display: none; }
.pay-popup__title { margin: 0; padding-right: 40px; color: #3b2410; line-height: 1.3; }
.pay-popup__title strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.15; }
.pay-popup__title > span { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #5b4630; }
.pay-popup .pay-marks { margin: 0; }
.pay-popup .pay-marks li { height: 40px; padding: 6px 8px; }
.pay-popup__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 !important; } /* one "Učlani se" button (user, 23 November 2026) */
.pay-popup__actions > .site-cta { justify-content: center; gap: 8px; min-height: 52px; margin: 0; padding: 6px 12px; font-size: 16px; line-height: 1.1; text-align: left; }
.pay-popup__actions > .site-cta svg { width: 18px; height: 18px; }
.pay-popup__actions .page-number__text { gap: 2px; min-width: 0; }
.pay-popup__actions .page-number__label { font-size: 16px; white-space: normal; }
.pay-popup__actions .page-number__tr { font-size: 11px; white-space: normal; }
@media (max-width: 359px) { .pay-popup .pay-marks li { padding-inline: 4px; } .pay-popup__actions > .site-cta { padding-inline: 8px; gap: 6px; } }
.pay-popup__close { position: absolute; top: 12px; right: 12px; margin: 0; padding: 0; } /* the shared round .practice__close, as on the other windows */
body.has-pay-popup .back-to-top { display: none; }
@media print { .pay-popup { display: none !important; } }
.pay-marks img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
[data-plan-cancel]::before { content: "✓ "; color: var(--c-green); }
/* Small phones: more room for the price, the sheet picture and the steps. */
@media (max-width: 400px) {
  [data-plans] [data-plan] { padding-inline: 14px; }
  [data-plan-steps] { padding: 12px 12px 12px 30px; font-size: 16px; }
}
[data-membership-price-line] { margin: 14px 0 0 !important; font-weight: 700; }
[data-membership-price-line] a { font-weight: 800; }
form[data-membership-inline] { margin: 22px 0 0; }
form[data-membership-inline] label { display: block; margin-bottom: 8px; font-weight: 800; color: #3b2410; }
form[data-membership-inline] > div { display: flex; flex-wrap: wrap; gap: 10px; }
form[data-membership-inline] input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 0 14px; border: 3px solid color-mix(in srgb, var(--panel) 35%, #fff); border-radius: 16px; background: #fff; font: 700 16px var(--font-body); color: #3b2410; }
form[data-membership-inline] input:focus { outline: none; border-color: var(--panel); }
form[data-membership-inline] .site-cta { flex: 0 0 auto; }

/* Material cards with Pregledaj and Preuzmi (a real download link, or the
   guest Preuzmi that opens the membership dialog): from tablets on, the two
   sit side by side at 50 %, in the card colours. */
@media (min-width: 561px) {
  .ws-card__actions:has(> [data-card-wide]:is([download], [data-membership-open])) { flex-wrap: nowrap; }
  .ws-card__actions:has(> [data-card-wide]:is([download], [data-membership-open])) > [data-card-wide] { flex: 1 1 0; width: auto !important; min-width: 0; margin-top: 0; white-space: normal; text-align: center; }
}
[data-edition-group] { margin: 40px 0 8px; text-align: center; }
body.page-site main p[data-edition-lead] { max-width: 60ch; margin: 0 auto 18px; text-align: center; }
[data-edition-nav] { justify-content: center; margin-top: 24px; }
body.page-site main p[data-edition-end] { justify-content: center; }
/* Membership page: the comparison card has its mascot above the top-right
   corner (as the first band of the wide site pages); centred on phones. */
:is(#usporedba, #slike) { position: relative; margin-top: 110px; }
:is(#usporedba, #slike) > [data-home-mascot="corner"] { position: absolute; width: 180px; top: -132px; right: 12px; margin: 0; rotate: 6deg; }
@media (max-width: 599px) {
  :is(#usporedba, #slike) { margin-top: 96px; }
  :is(#usporedba, #slike) > [data-home-mascot="corner"] { position: static; display: block; width: 150px; margin: -120px auto 4px; rotate: 0deg; }
}
/* The note for schools under the two plan cards: centred, with air above. */
[data-plans] + .site-note { margin-top: 28px !important; padding-top: 4px; text-align: center; }
#cijena > [data-plans] + .site-note { text-align: center !important; }
/* Desktop: all the mascots fill the empty corner below the shorter free plan. */
[data-plans-mascots] { display: none; }
@media (min-width: 768px) {
  [data-plans] > [data-plan="free"] { grid-column: 1; grid-row: 1; }
  [data-plans] > [data-plan="member"] { grid-column: 2; grid-row: 1 / span 2; }
  [data-plans-mascots] { display: block; grid-column: 1; grid-row: 2; align-self: end; width: 100%; height: auto; }
}

/* Site pages (Članstvo, Za roditelje, Za dijasporu): the intro is an open
   section like "Učenje kroz slike" on the homepage, with mascot cards below;
   no corner mascot above it, so no extra top space. */
body.page-site [data-site-wide] > section[data-site-intro] { position: relative; margin-top: 24px; padding-top: 8px; text-align: center; }
/* The language switch sits above the title on the right, not over it. */
body.page-site [data-site-wide] > section[data-site-intro] > .site-lang { position: static; width: max-content; margin: 0 0 16px auto; }
body.page-site [data-site-wide] > section[data-site-intro] [data-home-head] { text-align: center; }
body.page-site [data-site-wide] > section[data-site-intro] [data-home-lead] { max-width: 760px; margin-inline: auto !important; text-align: center; }
body.page-site [data-site-wide] > section[data-site-intro] .site-actions { justify-content: center !important; margin-top: 20px; }
/* The same free space above the mascots as on the homepage: 48 px from 600 px up, none on
   phones (user, 18 November 2026: hub pages reuse the homepage spacing). */
/* Hub intro mascots: 40 px from the text above to the top of the highest mascot at every width
   (user, 19 November 2026); the padding is the mascot's height above the card + 40 px. */
body.page-site [data-site-wide] > section[data-site-intro] [data-home-trust-items] { margin-top: 0; padding-top: 130px; }
body.page-site [data-site-wide] > section[data-site-intro] [data-home-head]:has(+ [data-home-trust-items]) { margin-bottom: 0; }
@media (min-width: 860px) { body.page-site [data-site-wide] > section[data-site-intro] [data-home-trust-items] { padding-top: 161px; } }
@media (min-width: 1100px) { body.page-site [data-site-wide] > section[data-site-intro] [data-home-trust-items] { padding-top: 172px; } }
/* Author card on the homepage-style pages: title on the left, beside the photo. */
[data-author].site-card [data-home-title] { margin: 0 0 10px; text-align: left; }
/* One centred row of invite buttons with even gaps. */
[data-site-invites] { justify-content: center; margin: 32px 0 0 !important; }
/* Three mascot cards in one row on desktop (Za roditelje: Kako učiti kod kuće). */
@media (min-width: 860px) { [data-home-trust-items][data-trust-three] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* "Zašto je korisno" as plain text cards (pages whose intro has mascot cards). */
/* One swipeable row: 3.5 cards on desktop, 2.5 on tablets, 1.5 on phones
   (half of the next card shows); the arrows sit above the row (js/site.js). */
[data-benefit-cards] { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 14px; margin: 0 -4px; text-align: center; outline-offset: 4px; }
[data-benefit-cards]::-webkit-scrollbar { display: none; }
[data-benefit-cards] > [data-plan] { flex: 0 0 calc((100% - 20px) / 1.5); scroll-snap-align: start; }
@media (min-width: 600px) { [data-benefit-cards] > [data-plan] { flex-basis: calc((100% - 40px) / 2.5); } }
@media (min-width: 1000px) { [data-benefit-cards] > [data-plan] { flex-basis: calc((100% - 60px) / 3.5); } }
[data-benefit-slider] > [data-benefits-head] { justify-content: flex-end; margin-bottom: 14px; }
/* A button row under the cards (Radni listovi: the daily sheet levels):
   equal widths, four in a row from 760 px, two below (phones stack them, as
   every button row of the wide site pages). */
[data-benefit-actions] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; scroll-margin-top: 110px; }
@media (min-width: 760px) { [data-benefit-actions] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
[data-benefit-actions] > .site-cta { width: 100%; justify-content: center; }
[data-benefit-cards] [data-plan] h3 { font-size: 22px; }
[data-benefit-cards] [data-plan] > p { text-align: center; }

/* Monthly books before the first book: the note and the buttons centred. */
[data-benefit-cards] [data-home-badge] { margin: 0 auto 12px; }


/* Bojanke by theme (/bojanke/ #po-temama): one white box per theme in its own
   colour; the pictures sit on a light tint of that colour. */
:is(#po-temama, #teme) [data-bj-themes] { display: grid; gap: 22px; margin-top: 18px; }
:is(#po-temama, #teme) [data-bj-theme] { padding: 22px 18px 18px; background: #fff; border: 3px solid color-mix(in srgb, var(--panel) 30%, #fff); border-radius: 28px; box-shadow: 0 6px 0 color-mix(in srgb, var(--panel) 30%, #fff); scroll-margin-top: 90px; }
/* Riječi i igre: a theme is no box of its own; only the green band and the
   picture cards have borders (user decision, 1 November 2026). */
#teme [data-bj-themes] { gap: 48px; margin-top: 48px; }
#teme [data-bj-theme] { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#teme [data-bj-theme] > [data-learning-words] { margin-bottom: 0; }
:is(#po-temama, #teme) [data-bj-theme] h3 { margin: 0 0 6px; text-align: center; font: 800 26px/1.1 var(--font-display); color: var(--panel); }
/* Theme titles are centred; their translation line too (22 November 2026). */
:is(#po-temama, #teme) [data-bj-theme] > [data-home-tr] { margin: 0 0 10px; text-align: center; }
[data-bj-theme] a.bj-card { background: color-mix(in srgb, var(--panel) 8%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--panel) 25%, #fff); }
[data-bj-theme="related"] { margin-top: 32px; }
[data-bj-theme="related"] a.bj-card { border-bottom: 0; box-shadow: none; }
[data-bj-theme="related"] .bj-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  body.page-site [data-learning-guide] [data-learning-words], [data-bj-theme="related"] .bj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
:is(#po-temama, #teme) > .site-actions { justify-content: center !important; }
#slike .gal-empty { text-align: center !important; }

/* Sections that list concrete materials (catalogues, colouring pages by
   theme; the weekly editions keep their band): a white card with a border in the section colour instead
   of the dotted band. --band-mix 0% makes the text backing white too. */
[data-material-list][data-home-band] { --band-mix: 0%; background: #fff; border: 4px solid color-mix(in srgb, var(--panel) 30%, #fff); }
/* "Dnevna izdanja" keeps the dotted band of the other print collections; the
   cards stay white (user, 6 November 2026). */
#dnevna[data-material-list][data-home-band] { --band-mix: 7%; --dot-mix: 14%; border: 0; background:
  radial-gradient(circle, color-mix(in srgb, var(--panel) var(--dot-mix, 18%), transparent) 2.5px, transparent 3px) 0 0 / 28px 28px,
  color-mix(in srgb, var(--panel) var(--band-mix), #fff); }
/* Links between the daily, weekly and monthly collections, at the end of each section. */
[data-edition-links] { margin-top: 28px; text-align: center; }
[data-edition-links] > p[data-reading-short] { margin: 0 auto 14px; text-align: center; }
[data-edition-links] > .site-actions { justify-content: center; }
/* Material cards: three per row on desktop. Title and its short line stay
   centred; the longer description reads from the left. */
@media (min-width: 900px) { body.page-site [data-material-list] > .ws-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.page-site [data-material-list] .ws-card__body > :is(strong, span) { text-align: center; }
body.page-site [data-material-list] .ws-card__body > p.site-note { text-align: left; }
/* Picture-card games: the sheet page on the left, title, text and button on
   the right, all from the left. Phones stack them. */
[data-game-guide] { display: grid; gap: 20px; align-items: center; }
[data-game-guide] img { display: block; width: min(220px, 100%); height: auto; border-radius: 10px; box-shadow: 0 4px 0 color-mix(in srgb, var(--panel) 30%, #fff), 0 10px 20px rgba(40, 25, 10, 0.08); }
[data-game-guide] [data-home-left] > * { margin: 0 0 12px; }
[data-game-guide] [data-home-left] > :last-child { margin-bottom: 0; }
[data-game-guide] [data-home-lead] { margin-left: -3px !important; }
[data-game-guide] :is(h2, p, .site-actions) { text-align: left !important; justify-content: flex-start; }
@media (min-width: 700px) { [data-game-guide] { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; } }
@media (max-width: 699px) {
  [data-game-guide] [data-home-left] > h2 { text-align: center !important; }
  [data-game-guide] > a { display: block; }
  [data-game-guide] > a img { margin-inline: auto; }
  [data-game-guide] .site-actions { justify-content: center !important; }
}
/* Phones: every mascot card row (homepage, letter pages, site pages) is one
   swipeable row, so card buttons keep their text on one line. The next card
   peeks in at the right side. The "Zašto je korisno" sliders have their own rules. */
@media (max-width: 599px) {
  [data-home-trust-items]:not([data-benefits] *) {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -4px; padding: 96px 4px 14px; scroll-padding-inline: 4px;
  }
  [data-home-trust-items]:not([data-benefits] *)::-webkit-scrollbar { display: none; }
  [data-home-trust-items]:not([data-benefits] *) > [data-home-trust-card] { flex: 0 0 calc((100% - 14px) / 1.2); scroll-snap-align: start; }
  /* Narrow phone cards (1.2 per row) leave too little room for the EN/DE line in the card buttons:
     the label stays (the card heading and the language switch translate). */
  [data-home-trust-items]:not([data-benefits] *) [data-home-card-action] .page-number__tr { display: none; }
  [data-home-trust-items]:not([data-benefits] *) [data-home-card-action] > .site-cta { font-size: 15px; padding-inline: 8px; gap: 0; }
  /* Letter pages: short names, one font size at every width. */
  .page-letter [data-home-trust-items]:not([data-benefits] *) [data-home-card-action] > .site-cta { font-size: 20px; gap: 6px; white-space: nowrap; }
  @media (max-width: 359px) {
    .page-letter [data-home-trust-items]:not([data-benefits] *) [data-home-card-action] > .site-cta { padding-inline: 4px; gap: 4px; }
    .page-letter [data-home-trust-items]:not([data-benefits] *) [data-home-card-action] > .site-cta > [data-home-icon] { width: 18px; height: 18px; }
  }
  /* Path cards on every page (homepage, Riječi i igre, Ispravi priču, Padeži,
     Dijaspora): the same swipeable row; the Padeži game modes stay a grid. */
  [data-home-paths]:not([data-cases-modes]) {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -4px; padding: 4px 4px 14px; scroll-padding-inline: 4px;
  }
  [data-home-paths]:not([data-cases-modes])::-webkit-scrollbar { display: none; }
  /* Room for the "Svaki dan novi" circle (top: -22px) inside the scrolling row, so it is not
     cut off; the negative margin keeps the cards in place (user, 21 November 2026). */
  [data-home-paths]:not([data-cases-modes]):has([data-daily-badge="circle"]) { padding-top: 26px; margin-top: -22px; }
  [data-home-paths]:not([data-cases-modes]) > * { flex: 0 0 calc((100% - 14px) / 1.2); scroll-snap-align: start; }
  [data-home-paths]:not([data-cases-modes]) .site-cta { font-size: 18px; padding-inline: 8px; } /* "Pregledaj" at the size of the other buttons, translation below (user, 19 November 2026) */
  [data-home-trust-items] [data-home-card-action] { width: 100%; }
  /* Every button on these pages: a slightly smaller label and translation line. */
  body.page-site [data-site-wide] [data-home-button] { font-size: 18px; padding-inline: 12px; }
  body.page-site [data-site-wide] [data-home-button-text] .page-number__tr { font-size: 11px; }
  /* Buttons in a question answer use the whole answer width. */
  body.page-site [data-site-wide] details [data-home-actions] { grid-template-columns: minmax(0, 1fr) !important; width: 100%; }
  body.page-site [data-site-wide] details [data-home-actions] > .site-cta { width: 100%; }
  body.page-site [data-site-wide] details [data-home-actions] > .site-cta > svg { display: none; }
  [data-home-trust-items] [data-home-card-action] > .site-cta { width: 100%; justify-content: center; }
  body.page-site [data-site-wide] [data-home-trust-items] [data-home-card-action] > .site-cta { padding-inline: 12px; font-size: 18px; }
}
/* The short note under the intro lead (Dijaspora: Besplatno · Bez reklama …) is centred too. */
body.page-site [data-site-wide] > section[data-site-intro] [data-home-head] > .site-note { text-align: center !important; }
/* Abeceda (/abeceda/ #slova): the homepage alphabet tiles (rules above), links without an underline. */
#slova .abc__tile, #slova .abc__tile * { text-decoration: none; }
/* Phones: the section title (and its small translation line) stays centred;
   the longer text below it reads from the left, as in the homepage cards. */
@media (max-width: 599px) {
  [data-home-left] p[data-home-lead]:not(.site-note, [data-home-tr], [data-home-small]) { text-align: left !important; }
  /* Card descriptions on every page too (path, mascot, material and path
     cards); titles, EN/DE lines and button rows stay centred. */
  :is([data-home-content], body.page-site main) :is([data-home-trust-card], [data-home-path-card], .site-tier, .ws-card__body) > p:not([data-reading-long], [data-home-tr], .site-note, [data-home-card-action], .site-actions) { text-align: left; }
}
/* Hub "Primjeri dana" (tools/prepare-membership.mjs): a centred description. */
:is([data-home-content], body.page-site main) [data-hub-daily-samples] p[data-home-lead] { text-align: center !important; margin-inline: auto; }
/* "Zašto je rano učenje korisno?" / "Zašto su slikovne kartice korisne?"
   (tools/benefits.mjs grid): all six cards in three columns from tablets up;
   phones keep the slider. */
@media (min-width: 700px) {
  [data-benefit-grid] > [data-benefit-cards] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  [data-benefit-grid] > [data-benefits-head] { display: none; }
}
/* "Nastavi" / "Još malo igre?" bands with exactly four cards: one row on desktop
   (phones keep the shared slider). */
@media (min-width: 1100px) {
  :is(#nastavi, #jos-igara) [data-home-paths]:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Homepage colours: six colour circles, each with a name button that opens /boje/ on that colour. */
[data-home-colours] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 24px; padding: 0; list-style: none; }
@media (min-width: 560px) { [data-home-colours] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { [data-home-colours] { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
[data-home-colours] .site-tier { display: grid; justify-items: center; gap: 14px; min-width: 0; padding: 18px 10px; text-align: center; }
[data-home-colour-dot] { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px rgb(59 36 16 / .12), 0 5px 0 rgb(59 36 16 / .12); }
[data-home-colours] .site-cta { width: 100%; justify-content: center; min-height: 44px; padding-inline: 8px; font-size: 16px; white-space: nowrap; }
[data-home-colours-action] { justify-content: center; }

/* Homepage weekly editions: one band, two tabs (tools/weekly-editions.mjs). */
[data-weekly-tabs] > [data-home-head] { margin-bottom: 24px; }
[data-weekly-tablist] { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 24px; }
[data-weekly-tablist] [role="tab"] { min-height: 52px; padding-inline: 22px; font-size: 20px; }
[data-weekly-tablist] [role="tab"] small { font-size: 14px; font-weight: 700; opacity: .85; }
[data-weekly-tabs] [role="tabpanel"] > [data-home-lead] { margin: 0 0 12px; }
@media (min-width: 600px) { [data-weekly-tabs] [role="tabpanel"] > [data-home-lead] { text-align: center; } }
/* From tablets up, the lead under a centred section title is centred too
   (phones keep the left-aligned reading text, see the max-width: 599px block). */
@media (min-width: 600px) {
  :is([data-home-content], body.page-site main) [data-home-head]:not([data-home-left]) > p[data-home-lead] { text-align: center; }
}
/* Homepage colours section: the olm peeks from the top-left corner,
   mirroring Konjo in the alphabet card. Phones: centred above the title. */
[data-home-mascot="corner-left"] { position: static; display: block; width: 140px; margin: -96px auto 4px; }
@media (min-width: 600px) {
  [data-home-mascot="corner-left"] { position: absolute; top: -70px; left: -16px; width: 170px; margin: 0; rotate: -6deg; }
}
@media (min-width: 1100px) {
  [data-home-mascot="corner-left"] { top: -104px; left: -24px; width: 220px; }
}
/* Trust and plan cards: their description reads from the left like all card text
   ("One alignment per kind of text", user, 19 November 2026). */
/* Action rows under a centred title and centred content are centred too:
   "Kako poslati sliku" (galerija), "Memorija za slovo X" (letter pages) and
   "Otvori list" in each picture-card theme. The game guides (Parovi and the
   others) keep their left-aligned column ([data-home-left]). */
:is(#kako-poslati, #memorija) > .site-actions, .site-actions[data-learning-sheet]:not([data-home-left] *) { justify-content: center; }

/* Colouring page (tools/site-pages.mjs bojankaPage): homepage sections with the homepage gap and
   the shared corner mascots, no circles (user, 19 November 2026); the word band keeps its text on a
   white panel, off the dots. */
.page-bojanke main > section:has(> [data-home-mascot]) { position: relative; text-align: center; }
/* The /clanstvo/ mascot size (180 px); it stays inside the homepage gap and never covers the box above. */
@media (min-width: 600px) {
  .page-bojanke main > section > [data-home-mascot^="corner"] { width: 180px; top: -36px; }
  .page-bojanke main > section > [data-home-mascot="corner"] { right: -16px; }
  /* The heading keeps clear of the mascot. */
  .page-bojanke main > section:has(> [data-home-mascot="corner"]) > [data-home-head] { padding-right: 150px; }
  .page-bojanke main > section:has(> [data-home-mascot="corner-left"]) > [data-home-head] { padding-left: 150px; }
}
@media (max-width: 599px) { .page-bojanke main > section > [data-home-mascot^="corner"] { margin-top: -56px; } }
.page-bojanke main > section [data-home-actions] { justify-content: center; margin-top: 22px; }
.page-bojanke #rijec .bj-letters { justify-content: center; gap: 10px; margin: 8px 0 20px; background: none; }
.page-bojanke #rijec .bj-letter { min-width: 64px; height: 64px; border-radius: 18px; font-size: 36px; }
body.page-bojanke #rijec .bj-word-text p { max-width: 760px; margin-inline: auto; background: none; text-align: left; font-size: 16px; }
.page-bojanke #rijec .bj-word-text p > span { padding-inline: 3px; background: color-mix(in srgb, var(--panel) var(--band-mix, 14%), #fff); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-bojanke #rijec a.bj-letter { background: var(--panel); border-color: var(--panel); color: #fff; }
/* The first section has no border; its back button and title are centred. */
body.page-bojanke #bojanka [data-home-head] :is(h1, p) { text-align: center; }
.page-bojanke #bojanka [data-home-head] { margin-bottom: 28px; }
/* [data-home-actions] sets its margin with !important. */
.page-bojanke #bojanka [data-home-head] [data-bj-back] { margin: 24px 0 18px !important; }
.page-bojanke #bojanka [data-bj-back] { justify-content: center; justify-items: center; }
.page-bojanke #bojanka [data-bj-back] > .site-cta { flex: 0 0 auto; width: auto; justify-self: center; }
.page-bojanke #recenice .bj-sentences { display: grid; gap: 10px; max-width: 640px; margin: 8px auto 0; padding: 0; list-style: none; text-align: left; }
.page-bojanke #recenice .bj-sentences li { padding: 12px 18px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 10%, #fff); font-size: 19px; font-weight: 700; }
@media (max-width: 480px) {
  .page-bojanke #rijec .bj-letters { gap: 6px; }
  .page-bojanke #rijec .bj-letter { min-width: 46px; height: 50px; padding: 0 6px; font-size: 28px; }
}
/* The related cards: room under the name, and the whole card darkens on hover. */
.page-bojanke [data-bj-theme] a.bj-card { padding: 12px 10px 24px; transition: transform 0.15s ease, background-color 0.15s ease; }
.page-bojanke [data-bj-theme] a.bj-card:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--panel) 26%, #fff); }

/* Tablets: wider grids where space permits. Word/picture cards keep natural
   left-to-right placement, including a single card in the last row. Other
   feature grids retain their existing centred final card. */
@media (min-width: 600px) and (max-width: 1023px) {
  html body :is([data-home-paths], .boje-levels, [data-cases-grid], [data-learning-words]):has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body :is([data-home-paths], .boje-levels, [data-cases-grid]) > :nth-child(3n + 1):last-child:not(:first-child) { grid-column: 2; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  html body .ws-cards:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .ws-cards > :nth-child(3n + 1):last-child:not(:first-child) { grid-column: 2; }
}
/* Colour tiles on site pages: three columns from 560 px (a site page rule
   would keep the tiles at two). */
@media (min-width: 560px) { body.page-site .site-tiers[data-home-colours] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Picture grids (bojanke) on tablets: four even columns from 760 px, so
   eight pictures make two full rows; below that the long names ("enciklopedija")
   need three columns. */
@media (min-width: 600px) and (max-width: 759px) { html body :is(.bj-grid, [data-bj-theme] .bj-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1023px) { html body :is(.bj-grid, [data-bj-theme] .bj-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Colouring page: a dashed frame keeps the colouring area apart from the
   buttons above; the sentence buttons sit beside the sentences. */
.page-bojanke #bojanka .bj-paint { padding: 16px; border: 3px dashed color-mix(in srgb, var(--panel) 45%, #fff); border-radius: 28px; }
.page-bojanke #recenice .bj-sentences-row { display: grid; gap: 18px; max-width: 920px; margin: 8px auto 0; }
.page-bojanke #recenice .bj-sentences-row .bj-sentences { max-width: none; margin: 0; }
.page-bojanke #recenice .bj-sentences-row [data-home-actions] { margin: 0 !important; }
@media (min-width: 760px) {
  .page-bojanke #recenice .bj-sentences-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .page-bojanke #recenice .bj-sentences-row [data-home-actions] { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
}
/* Tablets: the mascot cards become a swipe row with 2.5 cards in view, so
   the next card shows that there is more. Snap points keep cards whole. */
@media (min-width: 600px) and (max-width: 1023px) {
  html body [data-home-trust-items]:not([data-benefits] *) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 2.5); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding-inline: 4px; padding-bottom: 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  html body [data-home-trust-items]:not([data-benefits] *) > * { scroll-snap-align: start; min-width: 0; }
}
/* Homepage daily section, stacked (phones and tablets): everything centred,
   the four levels as a 2 × 2 grid. */
@media (max-width: 1023px) {
  #danas [data-home-left] { text-align: center; }
  body #danas [data-home-left] :is(h2, [data-home-tr], p[data-home-lead], p[data-home-countdown]) { text-align: center !important; }
  #danas [data-home-levels] { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); justify-content: center; }
}
@media (max-width: 599px) { #danas [data-home-levels] { grid-template-columns: minmax(0, 280px); } }
/* Homepage hero on tablets: the wide picture is cropped in portrait; show its
   left part so both the bear and the whole Tornjak are in view. */
@media (min-width: 600px) and (max-width: 767px) { .page-cover .stage__art { object-position: 35% 100%; } }
@media (min-width: 768px) and (max-width: 1023px) { .page-cover .stage__art { object-position: 32% 50%; } }
/* Path-card titles and translations remain centred, including long-copy cards. */
@media (min-width: 600px) { html body [data-home-path-card] > :is(h3, [data-home-tr]) { align-self: stretch; text-align: center !important; } }
/* Path cards on tablets (three narrow columns): a full-width button without
   its small translation line, so "Vidi sve" stays on one line. */
@media (min-width: 600px) and (max-width: 1023px) {
  html body [data-home-path-card] > .site-cta { align-self: stretch; justify-content: center; padding-inline: 10px; }
  html body [data-home-path-card] > .site-cta .page-number__tr { display: none; }
}
/* Homepage hero on phones: the picture is taller than the screen; moved up a
   little, the bear and the Tornjak stand above the two buttons, while the
   baklava and the coffee stay behind them and the text stays readable. */
@media (max-width: 599px) { .page-cover .stage__art { transform: translateY(-9%); } }
/* Letter A guest section (tools/prepare-membership.mjs): the free sheet button centred. */
[data-membership-guest] > [data-letter-guest-levels] { display: grid; width: fit-content; margin: 0 auto 18px; }
@media (min-width: 600px) {
  [data-membership-guest] > [data-letter-guest-levels] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 940px); }
  [data-membership-guest] > [data-letter-guest-levels] .site-cta { min-width: 0; padding-inline: 12px; }
}
@media (min-width: 600px) and (max-width: 899px) { [data-membership-guest] > [data-letter-guest-levels] .page-number__tr { display: none; } }
[data-membership-guest] > [data-letter-guest-levels] .page-number__text { white-space: nowrap; }
/* Letter pages on phones: the word cards are compact, two per row; the
   description shows in full, 13 px, centred (user, 20 November 2026); "Poslušaj" and "Oboji" are
   round icon buttons (their aria-labels keep the meaning). A tap on the
   picture plays the word (js/letter-page.js). */
@media (max-width: 599px) {
  html body [data-learning-words], html body.page-letter #glasovi [data-learning-words] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html body [data-learning-words] > .site-tier { gap: 8px; padding: 14px 8px !important; }
  html body [data-learning-words] > .site-tier > img { width: 72px; height: 72px; }
  html body [data-learning-words] .site-tier__text { font-size: 13px; line-height: 1.35; text-align: center; }
  /* Wraps only when two round buttons do not fit side by side in a
     half-width card (very small phones, below about 360 px). */
  html body [data-word-actions] { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  html body [data-word-actions] > .site-cta, html body.page-letter #glasovi [data-word-actions] > .site-cta { flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; justify-content: center; }
  html body [data-word-actions] > .site-cta .page-number__text { display: none; }
}
/* /radni-listovi/ #danas: a short heading above the daily levels, so a link
   to #danas lands on a clear title. */
[data-hub-daily] { margin-top: 28px; text-align: center; scroll-margin-top: calc(var(--bar-h, 84px) + 16px); }
[data-hub-daily-title] { margin: 0 0 4px; font: 800 clamp(24px, 4vw, 32px)/1.15 var(--font-display); color: color-mix(in srgb, var(--panel) 72%, #3b2410); }
body.page-site [data-hub-daily] p[data-hub-daily-lead] { margin: 0 auto 6px; max-width: 560px; text-align: center; }

/* The quiz starts from "Igraj kviz" and scrolls here; keep it below the fixed bar. */
[data-vocab-game] { scroll-margin-top: calc(var(--bar-h, 60px) + 16px); }
/* Shared mascot-style dots under every swipe row (js/book.js). */
[data-row-dots] { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; color: color-mix(in srgb, var(--panel, #2f6fc2) 72%, #3b2410); }
[data-row-dots][hidden] { display: none; }
[data-row-dots] span { width: 10px; height: 10px; border-radius: 50%; flex: none; background: color-mix(in srgb, currentColor 30%, #fff); transition: width .2s, background .2s; }
[data-row-dots] span.is-active { width: 26px; border-radius: 6px; background: currentColor; }

/* B6: the same lighter EN and DE line on every site button, also outside the main content. */
.site-cta .page-number__tr { font-weight: 600; opacity: 0.78; }

/* Phones: long picture grids show 8 cards and "Prikaži još" (js/site.js, test round B2). */
[data-show-more] { display: none; }
@media (max-width: 599px) {
  .is-collapsed > :nth-child(n + 9) { display: none !important; }
  [data-show-more] { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 26px; margin: 16px auto 0; }
  [data-show-more] small { font-size: 12px; font-weight: 600; opacity: .85; }
}
.back-to-top { position: fixed; z-index: 15; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--c-blue, #2f6fc2); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c-blue, #2f6fc2) 60%, #000); cursor: pointer; }
.back-to-top[hidden] { display: none; }
@media print { .back-to-top, [data-show-more] { display: none !important; } }

/* Compact phone rails keep one readable benefit/week card rather than
   compressing long Bosnian words into a half-width text column. */
@media (max-width: 599px) {
  [data-benefit-cards] > [data-plan] { flex-basis: min(100%, 260px); min-width: 0; }
}
/* A direct protected-material notice must not size its grid to the images'
   intrinsic widths. The existing slider still handles the phone examples. */
body[data-membership-next] [data-site-wide] { grid-template-columns: minmax(0, 1fr); }
body[data-membership-next] [data-site-intro], body[data-membership-next] .member-locked,
body[data-membership-next] [data-weekly-editions="notice"] { min-width: 0; max-width: 100%; }


/* Homepage material/learning introductions stay centred even with long copy. */
body[data-home-page] :is(#aktivnosti, #prije-slova) > [data-home-head] > :is(h2, p) {
  text-align: center !important;
  margin-inline: auto !important;
}

/* Page hero titles remain centred regardless of lead length or language switch.
   Keep the existing illustration/title columns and printable sheet layout.
   The letter book hero (.stage) and blog articles (blog.css) keep their own
   layout. */
@media screen {
  body.page-site:not(.page-blog) main h1,
  body.page-cover .cover-title__main { text-align: center !important; }
  body.page-site:not(.page-blog) main [data-home-head]:has(> h1) > :is(h1, p:not(.site-actions, [data-home-actions])),
  body.page-site:not(.page-blog) main h1 + p[data-reading-short] {
    text-align: center !important;
    margin-inline: auto !important;
  }
  /* Titles inside a box (.site-card: Kontakt, Privatnost, Podrži nas, Hvala,
     404, archive editions) read from the left with their short lead, beside
     the language switch (user decision, 1 November 2026). */
  body.page-site:not(.page-blog) .site-card h1,
  body.page-site:not(.page-blog) .site-card h1 + p[data-reading-short] {
    text-align: left !important;
    margin-inline: 0 !important;
  }
  /* Letter pages: every section head below the book (heading, translation,
     lead) is centred at every width; side-by-side heads stay left. */
  body.page-letter [data-home-head]:not([data-home-left]) > :is(h2, p:not(.site-actions, [data-home-actions])) {
    text-align: center !important;
    margin-inline: auto !important;
  }
}

/* The colouring catalogue reuses picture cards directly on its theme band. */
#po-temama [data-bj-themes] { gap: 48px; margin-top: 48px; }
#po-temama [data-bj-theme] { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#po-temama [data-bj-theme] > [data-learning-words] { margin-bottom: 0; }
#po-temama [data-learning-words] > .site-tier { grid-template-rows: auto auto 1fr; }
#po-temama [data-learning-words] .site-tier__name { max-width: 100%; overflow-wrap: anywhere; }
#po-temama [data-learning-words] .site-tier > a { display: flex; justify-content: center; width: 100%; }
#po-temama [data-learning-words] [data-word-actions] { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; }
#po-temama [data-word-actions] > .site-cta:not(:only-child) { flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; justify-content: center; }
#po-temama [data-word-actions] .site-cta:not(:only-child) span { display: none !important; }
@media (max-width: 599px) { #po-temama [data-learning-words] .site-tier > a img { width: 72px; height: 72px; } }

@media (max-width: 379px) { #po-temama [data-learning-words] [data-word-actions] { gap: 8px; } }
@media (max-width: 359px) {
  #po-temama { padding-inline: 10px; }
  #po-temama [data-learning-words] > .site-tier { padding-inline: 0 !important; }
}

/* "Preuzmi PDF" with its version window: the long label needs a full-width row. */
.ws-card [data-card-sheet]:has([data-pdf-options]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ws-card [data-card-sheet]:has([data-pdf-options]) .ws-card__btn { width: 100%; }

/* The horse beside every alphabet: larger on desktop, with room for the copy. */
@media (min-width: 860px) {
  #abeceda[data-home="alphabet"] > [data-home-mascot="corner"] { width: 300px; top: -128px; right: -16px; }
  #abeceda[data-home="alphabet"] [data-home-head] { padding-right: 270px; }
}
@media (min-width: 1100px) {
  #abeceda[data-home="alphabet"] > [data-home-mascot="corner"] { width: 340px; top: -150px; right: -24px; }
  #abeceda[data-home="alphabet"] [data-home-head] { padding-right: 310px; }
}

/* Newsletter and support mascot: above the text on phones, beside it from tablet width. */
@media (min-width: 600px) {
  [data-home="newsletter"], [data-home="support"] { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 28px; text-align: left; }
  [data-home="newsletter"] [data-home-actions], [data-home="support"] [data-home-actions] { justify-content: flex-start; }
  [data-home="support"] .site-progress { margin-inline: 0; }
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 170px; margin: 0; }
  :is([data-home="newsletter"], [data-home="support"]) [data-home-left] { margin-inline: 0; text-align: left; }
}
@media (min-width: 860px) {
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 200px; }
}
@media (min-width: 1100px) {
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 220px; }
}

/* Mascots may cross a section edge, but never a text or a button. */
@media (max-width: 599px) {
  [data-home-blob][data-home-blob-big], [data-home="support"] [data-home-blob] { --blob: 140px; margin-top: -40px; }
}
@media (min-width: 860px) {
  [data-letter-sections] #abeceda > [data-home-mascot="corner"] { top: -56px; }
}
@media (min-width: 600px) and (max-width: 1099px) {
  #usporedba :is(h2, [data-home-title]) { padding-right: 200px; }
}
@media (max-width: 599px) {
  [data-home-mascot="corner-left"] { margin-top: -56px; }
}

/* Phones: these three homepage introductions read from the left; titles and translations stay centred. */
@media (max-width: 599px) {
  body[data-home-page] :is(#aktivnosti, #danas, #prije-slova) :is([data-home-head], [data-home-left]) > p[data-home-lead]:not(.site-note, [data-home-small]) { text-align: left !important; text-align-last: left !important; }
  body[data-home-page] #danas [data-home-left] > :is(h2, p[data-home-tr]) { text-align: center !important; }
}

/* "Svi radni listovi" and "Dnevni listovi": a real blue button, icon on the left, no arrow. */
[data-home-more] a { min-height: 48px; padding: 8px 24px 8px 18px; border: 3px solid #fff; border-radius: 999px; background: var(--c-blue); color: #fff; box-shadow: 0 4px 0 #1e4f8f; }
[data-home-more] a > svg:last-child { display: none; }
[data-home-more] a small { color: #fff; }

/* Membership card: the yearly price line starts directly below the monthly price. */
html body.page-site [data-plan] > [data-plan-price] + p.site-note { margin-top: 2px; text-align: left !important; }

/* Membership: the payment steps in a dashed orange frame. */
[data-plan] > [data-plan-steps] { border: 2px dashed var(--c-orange); }
/* Cancel note and help in their own box, styled like the steps box above (user, 18 November 2026). */
[data-plan] > [data-plan-help] { margin: 18px 0 0; padding: 14px 16px; border: 2px dashed var(--c-orange); border-radius: 18px; background: #fff; text-align: center; }
[data-plan-help] > p { margin: 6px 0 0; }
[data-plan-help] > p:first-child { margin-top: 0; }
@media (max-width: 599px) { [data-plan] > [data-plan-help] { padding: 12px; } }

/* Edition tabs: icons, centred on phones, a gentle pulse on the active tab. */
[data-weekly-tablist] [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
[data-weekly-tablist] [role="tab"] svg { flex: none; width: 22px; height: 22px; }
html body [data-weekly-tabs] .site-actions[data-weekly-tablist] { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; width: 100%; }
@keyframes edition-tab-pulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: no-preference) {
  [data-weekly-tablist] [role="tab"][aria-selected="true"] { animation: edition-tab-pulse 2.4s ease-in-out infinite; }
}
/* Diaspora page: the corner picture stays clear of the buttons on small desktops. */
@media (min-width: 860px) and (max-width: 1099px) {
  html body [aria-labelledby="dijaspora-materijali"] [data-home-mascot] { width: 170px !important; transform: translateX(44px); }
}

/* Phones: newsletter and support titles and translations are centred; the description stays as it is. */
@media (max-width: 599px) {
  html body :is([data-home="newsletter"], [data-home="support"]) > div:not([data-home-blob]) > :is(h1, h2, p[data-home-tr]) { text-align: center !important; }
}

/* Worksheet page-type examples ([data-ws-examples], tools/worksheet-examples.mjs): the
   edition slider at every width, 1.2 cards on phones, 2.5 from 600 px. */
@media screen {
  html body [data-ws-examples].ws-cards {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 4px;
    padding: 4px 4px 14px; margin-inline: -4px;
  }
  [data-ws-examples].ws-cards::-webkit-scrollbar { display: none; }
  [data-ws-examples].ws-cards > .ws-card { flex: 0 0 calc((100% - 14px) / 1.2); min-width: 0; scroll-snap-align: start; grid-column: auto; }
}
@media screen and (min-width: 600px) { [data-ws-examples].ws-cards > .ws-card { flex-basis: calc((100% - 28px) / 2.5); } }
/* White examples section with a coral border, without background dots (user, 10 November 2026). */
[data-ws-examples-band] {
  min-width: 0;
  background: #fff;
  border: 3px solid color-mix(in srgb, var(--panel) 45%, #fff);
}
[data-ws-examples-band] { --band-mix: 0%; }
[data-ws-examples-band] [data-benefits-head] { justify-content: flex-end; margin-bottom: 14px; }
[data-ws-examples-band] > [data-home-actions] { justify-content: center; margin-top: 8px; }
#dnevna > [data-home-head] > [data-home-actions] { justify-content: center; }
/* The example slider in place of the sheet picture (homepage #danas, letter pages): full
   column width and 1.5 cards from 600 px, because the column is narrow; 1.2 on phones. */
html body [data-home-sheet-preview][data-ws-examples-slider] { width: 100%; min-width: 0; margin: 0; }
[data-ws-examples-slider] [data-benefits-head] { justify-content: flex-end; margin-bottom: 10px; }
html body [data-ws-examples-slider] [data-ws-examples].ws-cards > .ws-card { flex-basis: calc((100% - 14px) / 1.5); }
@media (max-width: 599px) { html body [data-ws-examples-slider] [data-ws-examples].ws-cards > .ws-card { flex-basis: calc((100% - 14px) / 1.2); } }

/* Alphabet uses the shared picture cards with letter glyphs and one listen pill. */
[data-letter-sound] > [data-letter-sound-glyph] { color: var(--panel); font-size: 52px; line-height: 1.2; }
[data-letter-sound] > [data-home-actions] { margin: 8px 0 0; justify-content: center; }
[data-letter-sound] > [data-home-actions] > .site-cta { min-height: 48px; padding: 8px 12px; font-size: 16px; gap: 8px; }
[data-letter-sound][aria-disabled="true"] { opacity: .45; filter: grayscale(.6); }

body [data-editions-shortcut] [data-home-actions],
body [data-editions-shortcut] [data-home-actions] > .site-cta { justify-content: center; }

#glasovi[data-learning-guide] [data-learning-words]:has([data-letter-sound]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { #glasovi[data-learning-guide] [data-learning-words]:has([data-letter-sound]) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* The guest daily-samples band (prepare-membership.mjs, data-hub-daily-samples) holds a card
   slider: like every slider band it must not widen the page grid on phones. */
[data-hub-daily-samples] { min-width: 0; }
/* Letter pages: "Dnevni listovi" in teal, so it never repeats the blue Početnik button (user, 10 November 2026). */
#radni-listovi-slovo [data-home-more] a { background: var(--c-teal); box-shadow: 0 4px 0 color-mix(in srgb, var(--c-teal) 60%, #000); }
/* Early-learning "Aktivnosti dana" / "Kartice dana" on desktop: title, date and countdown in one row;
   the buttons in one row at their normal width (user, 10 November 2026). */
@media (min-width: 1024px) {
  [data-early-daily] .wd-promo__text { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 2px; }
  [data-early-daily] .wd-promo__text > :not(strong, .fresh-pills) { flex-basis: 100%; }
  [data-early-daily] .wd-promo__text > .fresh-pills { margin: 0; justify-content: flex-start; }
  [data-early-daily] .wd-promo__levels { display: flex; flex-wrap: wrap; gap: 12px; }
  [data-early-daily] .wd-promo__levels .site-cta { width: auto; padding: 0 22px; order: 0; }
  [data-early-daily] .wd-promo__levels [data-early-main] { order: -1; }
}
/* Matching material cards: Pregledaj and Preuzmi share two equal columns.
   Pregledaj keeps a white background and the card-colour border, label and icon. */
html body [data-learning-resource] .ws-card__actions:is([data-card-sheet], [data-membership-guest-actions]):has(> [data-card-wide]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body [data-learning-resource] .ws-card__body { display: flex; flex-direction: column; }
html body [data-learning-resource] .ws-card__actions[data-card-sheet] { display: grid; gap: 14px; margin-top: auto; padding-top: 14px; }
html body [data-learning-resource] .ws-card__actions:is([data-card-sheet], [data-membership-guest-actions]) > [data-card-wide] { flex: 1 1 100%; width: 100% !important; margin: 0; }
html body [data-learning-resource] .ws-card__actions[data-card-sheet] > .site-cta--soft {
  background: #fff; color: color-mix(in srgb, var(--panel) 75%, #3b2410);
  border-color: var(--panel); box-shadow: 0 4px 0 color-mix(in srgb, var(--panel) 45%, #fff);
}

/* A lone colouring action keeps its text and the shared pill shape at every width. */
html body [data-word-actions] > .site-cta[data-word-colour]:only-child { flex: 1 1 auto; width: 100%; max-width: 100%; height: auto; min-height: 48px; padding: 8px 10px; border-radius: 999px; gap: 8px; justify-content: center; text-align: center; }
html body [data-word-actions] > .site-cta[data-word-colour]:only-child > svg { display: none; }

html body [data-early-theme][data-membership-card="active"] .ws-card__actions[data-card-sheet] { gap: 10px; }

/* Notice sliders use the same full-size controls and freshness rows as other sliders. */
@media screen and (max-width: 999px) {
  html body .member-locked [data-weekly-editions="notice"] > [data-benefits-head]:has(> .fresh-pills) { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; align-items: center; gap: 8px; }
  html body .member-locked [data-weekly-editions="notice"] > [data-benefits-head] > [data-benefits-scroll] { box-sizing: border-box; flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
  html body .member-locked [data-benefits-head] > .fresh-pills > .fresh-pill:not(.fresh-pill--count) { min-width: 0; max-width: 100%; white-space: normal; }
  html body .member-locked [data-benefits-head] > .fresh-pills > .fresh-pill:not(.fresh-pill--count) > span { white-space: normal; }
}

/* Shared example notices: one membership label and the normal slider arrows on phones. */
html body [data-weekly-editions="notice"] { margin-block: 20px 24px; }
html body .member-locked > p[data-reading-short] + p[data-reading-short] { margin-top: 16px; }
@media screen and (max-width: 599px) {
  html body.page-site main:has(> .site-card > .member-locked) { padding-inline: 0; }
  html body.page-site .site-card:has(> .member-locked) { padding-inline: 0; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; align-items: center; gap: 8px; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] > .fresh-pills { display: none; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] > .member-badge { grid-column: 1; justify-self: start; min-width: 0; max-width: 100%; margin: 0; padding: 6px 8px; gap: 6px; font-size: 14px; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] > .member-badge::before { width: 18px; height: 18px; flex: none; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] > [data-benefits-scroll] { box-sizing: border-box; flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] > [data-benefits-scroll]:first-of-type { grid-column: 2; }
  html body [data-weekly-editions="notice"] > [data-benefits-head] > [data-benefits-scroll]:last-of-type { grid-column: 3; }
}

@media screen and (max-width: 379px) {
  html body [data-learning-resource] .ws-card__body:has(> .ws-card__actions:is([data-card-sheet], [data-membership-guest-actions]) > [data-card-wide]) { padding-inline: 4px; }
  html body [data-learning-resource] .ws-card__actions:is([data-card-sheet], [data-membership-guest-actions]):has(> [data-card-wide]) > .ws-card__btn { min-width: 0; padding-inline: 0; gap: 2px; font-size: 14px; }
}

/* Material cards keep enough width for paired text actions at each breakpoint. */
@media screen and (max-width: 759px) {
  html body.page-site .ws-cards:has(> [data-learning-resource] [data-card-wide]) { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (min-width: 760px) and (max-width: 1199px) {
  html body.page-site .ws-cards:has(> [data-learning-resource] [data-card-wide]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Edition actions share one equal-width row for guests and active members. */
html body :is([data-weekly-editions] .ws-card__actions, [data-edition-actions]):has(> [data-card-wide]:first-child + [data-card-wide]:last-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html body :is([data-weekly-editions] .ws-card__actions, [data-edition-actions]):has(> [data-card-wide]:first-child + [data-card-wide]:last-child) > [data-card-wide] { box-sizing: border-box; min-width: 0; width: 100% !important; margin-top: 0; padding-inline: 4px; gap: 4px; white-space: normal; }
html body [data-weekly-editions] .ws-card__body { min-width: 0; }
/* Reuse the readable 260 px mobile card width from the benefit sliders. */
@media screen and (max-width: 599px) {
  html body [data-weekly-editions] .ws-cards > .ws-card:has(.ws-card__actions) { flex-basis: min(100%, 260px); }
}
@media screen and (min-width: 600px) {
  html body [data-weekly-editions] .ws-cards > .ws-card:has(.ws-card__actions) { flex-basis: max(min(100%, 260px), calc((100% - 28px) / 2.5)); }
}
@media screen and (max-width: 379px) {
  html body [data-weekly-editions] .ws-card__body:has(.ws-card__actions) { padding-inline: 6px; }
  html body :is([data-weekly-editions] .ws-card__actions, [data-edition-actions]) > [data-card-wide] { padding-inline: 2px; font-size: 14px; }
}

/* Homepage audience dialogs ("Školarci", "Predškolci"; user, 15 November 2026): the shared
   .sheet-choice shell, wider, with the letter-page practice tiles two in a row, no shadow. */
.sheet-choice[data-audience-dialog] { width: min(calc(100vw - 32px), 640px); } /* the width of the "Vježbaj" window (.practice) */
[data-audience-dialog] .sheet-choice__lead span { margin-top: 2px; }
/* "Članstvo" top left and × top right in one row, always visible while the cards scroll. */
.sheet-choice[data-audience-dialog] { padding-top: 0; }
[data-audience-bar] { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* 19 px below = 14 px of free space plus the button's 5 px shadow (user, 16 November 2026). */
  margin: 0 -22px 8px; padding: 14px 22px 19px; background: #fffaf2; }
[data-audience-bar] .sheet-choice__close { margin: 0; }
:is([data-audience-bar], [data-newsletter-bar]) .site-cta { min-height: 44px; padding: 6px 16px; gap: 8px; font-size: 17px; }
:is([data-audience-bar], [data-newsletter-bar]) .site-cta svg { width: 22px; height: 22px; }
@media (max-width: 560px) { [data-audience-bar] { margin-inline: -20px; padding-inline: 20px; } }
[data-audience-dialog] .practice__game { text-decoration: none; }
/* "Svaki dan novi" on site cards (tools/material-links.mjs markDailyCards). */
:is([data-home-path-card], [data-home-trust-card]):has(> [data-daily-badge]) { position: relative; }
[data-daily-badge] { --game: var(--panel); z-index: 2; }
/* Mascot cards: the "Dio članstva" circle in green with a calendar, on the top right corner of the border. */
[data-daily-badge="circle"] { width: 84px; height: 84px; padding: 30px 8px 8px; top: -22px; right: -16px; background-position: center 11px; line-height: 1.1; font-style: normal; background-color: #3b8226; /* darker than "Besplatno" (user, 23 November 2026) */ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E"); }
.practice__game > [data-daily-badge="circle"] { top: 8px; right: 8px; }
.practice__game:has(> [data-daily-badge="circle"]) .practice__game-age[data-age-corner] { top: calc(var(--badge-size, 62px) + 16px); }
.practice__game:has(> [data-daily-badge="circle"]) > .practice__game-icon { margin-top: calc(var(--badge-size, 62px) - 4px); }
/* Grouped cards (user, 19 November 2026): the most important card of a group spans the row; the
   two below it share a row (it overrides the odd-last rule of the "Vježbaj" menu). */
[data-audience-dialog] .practice__games[data-first-wide] > .practice__game:first-child { grid-column: 1 / -1; }
/* A paid card and its free sample: one row of two with a small arrow in the gap (user, 23 November 2026). */
[data-audience-pair] { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.practice__pair-arrow { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50%; background: var(--game); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--game) 60%, #2a1a0c); pointer-events: none; }
.practice__pair-arrow > svg { width: 16px; height: 16px; }
/* A pair fills one row, so the card count after it no longer decides a full-width last card. */
.practice__games > [data-audience-pair] ~ .practice__game:last-child:nth-child(odd) { grid-column: auto; min-height: 118px; }
[data-audience-dialog] .practice__games[data-first-wide="all"] > .practice__game { grid-column: 1 / -1; }
[data-audience-dialog] .practice__games[data-first-wide] > .practice__game:last-child:nth-child(odd):not(:first-child) { grid-column: auto; }
/* Group headings as in the "Vježbaj" menu: normal text colour, read from the left (user, 19 November 2026). */
[data-audience-dialog] .practice__group { justify-content: flex-start; margin: 20px 0 10px; text-align: left; }
[data-audience-dialog] :is(.practice__group, .practice__group small) { color: #3b2410; }
/* Remembered worksheet level (js/book.js): the level button in #danas. */
/* A lighter shade of the button's own colour, not black (user, 16 November 2026). */
#danas [data-level-chosen] { outline: 4px solid color-mix(in srgb, var(--panel, var(--c-green)) 45%, #fff); outline-offset: 3px; }
/* No ✓ before the level icon: one icon per button; the outline marks the choice (user, 16 November 2026). */

/* "Radni listovi za cijelu sedmicu i cijeli mjesec": both buttons centred on every page (user, 16 November 2026). */
[data-editions-shortcut] [data-home-actions] { justify-content: center; }

/* "Preuzmi PDF i nastavi učiti": normal buttons with icons, centred under the centred head (user, 16 November 2026). */
#ispis[data-home="trust"] > .site-actions[data-home-actions] { justify-content: center; }

/* Titles inside boxes read from the left, like their text (user, 16 November 2026). */
:is([data-home-content], body.page-site main) [data-case-card] > h3 { text-align: left; }

/* Section buttons on phones and tablets (user, 16 November 2026): content width and
   centred, several in a centred row that wraps; never stretched to the full width.
   Cards, dialogs, plans, level grids and the letter word buttons keep their layout. */
@media (max-width: 1023px) {
  html body :is([data-home-band], [data-site-wide], main, section) :is([data-home-actions], .site-actions, .vocab-modes, .cases-actions, .story-controls):not(:is(dialog, [data-plan], [data-home-trust-card], .ws-card, .site-tier, [data-home-path-card], [data-home-levels]) *):not([data-fixed-levels], [data-daily-navigation], [data-weekly-tablist], :is(#memorija, #glasovi) [data-home-actions]) { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; width: 100% !important; grid-template-columns: none !important; }
  html body :is([data-home-band], [data-site-wide], main, section) :is([data-home-actions], .site-actions, .vocab-modes, .cases-actions, .story-controls):not(:is(dialog, [data-plan], [data-home-trust-card], .ws-card, .site-tier, [data-home-path-card], [data-home-levels]) *):not([data-fixed-levels], [data-daily-navigation], [data-weekly-tablist], :is(#memorija, #glasovi) [data-home-actions]) > :is(.site-cta, .page-number, button.site-cta, a.site-cta) { flex: 0 1 auto !important; width: auto !important; max-width: 100% !important; justify-self: auto !important; }
}

/* /clanstvo/ purchase buttons: "Kartica" and "Uplatnica" with the EN · DE line at every width
   (user, 23 November 2026; earlier "Plati karticom" / "Plati uplatnicom" on wider screens). */

/* One alignment per kind of text, the same on every page and at every width (user, 19 November
   2026; audit tools/audit-text-align.mjs). No switch by text length or screen width.
   1. Centred section heads: title, translation and lead centred, also long leads on phones.
   2. Text boxes (legal pages, contact, archive: headings outside a section head) read from the left.
   3. Cards: title and translation centred, the card text always reads from the left. */
:is([data-home-content], body.page-site main) [data-home-head]:not([data-home-left], [data-home-split] *, main.site-card *) > p:not(.site-actions, [data-home-actions], [data-home-card-action]) { text-align: center !important; margin-inline: auto !important; text-wrap: pretty; }
:is(body.page-site main.site-card, :is([data-home-content], body.page-site main) .site-card) :is(h2, h3):not([data-home-head] *, [data-home-trust-card] *, [data-home-path-card] *, [data-plan] *, .site-tier *, .ws-card *, .practice__game *, [data-case-card] *) { text-align: left; }
:is(body.page-site main.site-card, :is([data-home-content], body.page-site main) .site-card) :is(h2, h3):not([data-home-head] *, [data-home-trust-card] *, [data-home-path-card] *, [data-plan] *, .site-tier *, .ws-card *) + p[data-home-tr] { text-align: left; }
html body :is([data-home-trust-card], [data-home-path-card], [data-plan], .site-tier, [data-case-card]) > :is(h2, h3, [data-home-tr]) { text-align: center !important; }
html body :is([data-home-trust-card], [data-home-path-card], [data-plan], .site-tier, .ws-card__body, [data-case-card]) > p:not([data-home-tr], .site-note, .site-actions, [data-home-actions], [data-home-card-action]) { text-align: left !important; }
/* Exception (user, 20 November 2026): on phones the word-card description is centred. */
@media (max-width: 599px) { html body [data-learning-words] > .site-tier > p.site-tier__text { text-align: center !important; } }
html body [data-home-path-card] { align-items: stretch; }
/* The icon is centred above the centred title on every path card (user, 21 November 2026). */
html body [data-home-path-card] > [data-home-badge] { align-self: center; }
/* Bojanke pages: side-by-side heads read from the left also inside the centred sections. */
.page-bojanke main > section > [data-home-head][data-home-left] { text-align: left; }
/* The bigger "Svaki dan novi" circle on phones too, so its three words never crop (user, 19 November 2026). */
@media (max-width: 560px) { [data-daily-badge="circle"] { width: 76px; height: 76px; padding: 27px 6px 6px; font-size: 10.5px; background-position: center 9px; } }
/* "Dio članstva" and "Besplatno" have the size of the "Svaki dan novi" circle (user, 19 November 2026). */
[data-member-lock]::after { width: 84px; height: 84px; padding: 30px 8px 8px; background-position: center 11px; line-height: 1.1; }
.member-badge[data-member-sample-label] { width: 84px; height: 84px; padding: 6px; font-size: 11px; line-height: 1.05; }
@media (max-width: 560px) {
  [data-member-lock]::after { width: 76px; height: 76px; padding: 27px 6px 6px; font-size: 10.5px; background-position: center 9px; }
  .member-badge[data-member-sample-label] { width: 76px; height: 76px; padding: 3px; font-size: 10.5px; }
}
/* Language switch at the top of a page: the same space above and below it on every screen
   (user, 19 November 2026); the shared space under the bar stays. */
html body main > section[data-site-intro]:has(> .site-lang:first-child) { margin-top: 0 !important; padding-top: 0 !important; }
html body main > section[data-site-intro] > .site-lang:first-child { margin-bottom: 24px !important; }
/* Newsletter window like the membership windows (user, 20 November 2026): the circle half over the
   top border, "Članstvo" left and the X right in the top row, then one centred title and one line. */
/* The sign-in window's structure (user, 21 November 2026): the window box has no height limit and
   does not clip the circle; only its content has the limit and scrolls. The box therefore always
   ends with its content, and nothing shows below it. */
[data-newsletter-dialog] { overflow: visible; max-height: none; }
[data-newsletter-dialog] > .practice__inner { box-sizing: border-box; max-height: calc(100dvh - 110px); overflow-y: auto; border-radius: inherit; }
[data-newsletter-bar] { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
[data-newsletter-dialog] > .practice__inner > .practice__title { margin: 12px 0 4px; text-align: center; }
[data-newsletter-dialog] > .practice__inner > .practice__prompt { text-align: center; }
/* Phones: "Članstvo" moves below "Ne sada" and the X stays top right, as in the language window
   (user, 21 November 2026). */
[data-newsletter-bar] .practice__close { margin-left: auto; }
[data-newsletter-dialog] [data-newsletter-member-row] { display: none; }
@media (max-width: 560px) {
  [data-newsletter-dialog] [data-newsletter-bar] > .site-cta { display: none; }
  [data-newsletter-dialog] [data-newsletter-member-row] { display: flex; margin: -11px 0 0; } /* the same 10 px as between the buttons above */
  [data-newsletter-dialog] [data-newsletter-member-row] .site-cta { width: 100%; justify-content: center; min-height: 48px; padding: 6px 16px; gap: 8px; font-size: 17px; }
  [data-newsletter-dialog] [data-newsletter-member-row] .site-cta svg { width: 22px; height: 22px; }
}

/* Path cards: "Svaki dan novi", Montessori and Piaget as equal circles, one below another. The
   card border cuts each circle through its middle: the first sits on the top-right corner, the
   others on the right border (user, 21 November 2026; methods.js, material-links.mjs). */
[data-home-path-card]:has(> [data-method-corner]) { position: relative; }
html body [data-home-path-card] > [data-daily-badge="circle"] { top: calc(var(--badge-size) / -2); right: calc(var(--badge-size) / -2); }
[data-method-corner] { top: calc(var(--badge-size) / -2); right: calc(var(--badge-size) / -2); left: auto; gap: 0; z-index: 4; } /* circles lean on each other, as on the picture cards (user, 23 November 2026) */
[data-home-path-card]:has(> [data-daily-badge="circle"]) > [data-method-corner] { top: calc(var(--badge-size) / 2 - 6px); } /* 6 px: "Svaki dan novi" has three lines */
[data-method-corner] i { padding: 3px; gap: 2px; font-size: 9px; border-width: 3px; }
[data-method-corner] svg { width: 17px; height: 17px; }
[data-method-corner] [data-method="montessori"] span { font-size: 8px; letter-spacing: 0; }
/* Room for the circles: the same extra space on both sides keeps centred text centred. */
html body [data-home-path-card]:has(> [data-method-corner]) :is(h2, h3, p, strong) { padding-inline: 14px; }
@media (max-width: 560px) {
  [data-method-corner] { gap: 0; }
  html body [data-home-path-card]:has(> [data-method-corner]) :is(h2, h3, p, strong) { padding-inline: 20px; }
  [data-method-corner] i { font-size: 7.5px; }
  [data-method-corner] svg { width: 15px; height: 15px; }
  [data-method-corner] [data-method="montessori"] span { font-size: 6.5px; }
}

/* One size for every circle badge on the site (user, 21 November 2026): "Dio članstva",
   "Besplatno", "Svaki dan novi", Montessori and Piaget; 62 px, 52 px on phones. */
:root { --badge-size: 62px; }
@media (max-width: 560px) { :root { --badge-size: 52px; } }
html body [data-member-lock]::after, html body [data-daily-badge="circle"], html body .member-badge[data-member-sample-label] { width: var(--badge-size); height: var(--badge-size); }
html body [data-member-lock]::after { padding: 21px 4px 4px; font-size: 9.5px; background-position: center 6px; background-size: 15px; }
html body .member-badge[data-member-sample-label] { padding: 4px; font-size: 9.5px; }
html body [data-daily-badge="circle"] { padding: 22px 4px 4px; font-size: 9px; line-height: 1.05; background-position: center 7px; background-size: 16px; }
@media (max-width: 560px) {
  html body [data-member-lock]::after { padding: 18px 3px 3px; font-size: 8px; background-position: center 5px; background-size: 13px; }
  html body .member-badge[data-member-sample-label] { padding: 3px; font-size: 8px; }
  html body [data-daily-badge="circle"] { padding: 18px 3px 3px; font-size: 7.5px; background-position: center 5px; background-size: 14px; }
}

/* Free letter A level buttons (#danas): the shared "Besplatno" pill (.practice__game-new[data-pill="free"],
   with its heart) beside the level name (user, 23 November 2026). "Svi radni listovi" has none. */
[data-free-levels] .page-number__label { display: inline-flex; align-items: center; gap: 8px; }
/* Phones: the "Besplatno" pill sits at the right end of the button and fills the space (user, 23 November 2026). */
@media (max-width: 599px) {
  [data-free-levels] .page-number__text { flex: 1 1 auto; min-width: 0; }
  [data-free-levels] .page-number__label { display: flex; width: 100%; }
  [data-free-levels] .practice__game-new { margin-left: auto; }
}

/* Card payment window: the e-mail note in a white box with a dashed orange border, and the same
   16 px above and below it (12 px grid gap + 4 px); an empty status line takes no space (user, 23 November 2026). */
[data-email-note] { margin: 4px 0 !important; border-color: var(--c-orange); background: #fff !important; } /* the shared dashed frame (style.css), orange and white; !important above the band rule that clears paragraphs */
[data-email-note] + [data-paypal-status]:empty { display: none; }
[data-email-note] + [data-paypal-status]:empty + [data-creem-box] { margin-top: 0; }
[data-email-note] + [data-paypal-status]:empty + [data-creem-box] > [data-creem-plans] { margin-top: 0; }
