/* fonts.css */
/* self-hosted fonts of the approved mockup C (Google Fonts, OFL). Variable files: one per family and subset, weight ranges. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500 800;font-display:swap;src:url('../fonts/bricolage-var-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500 800;font-display:swap;src:url('../fonts/bricolage-var-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/source-sans-3-var-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/source-sans-3-var-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* tokens.css */
/* Design tokens — jockeyrs.co.
 * Source: approved mockup C «Domingo no Cristal» (Warm Analog),
 * <kit>/mockups/jockeyrs.co/c-domingo-no-cristal.html — moved 2026-09-23 (S3).
 *
 * Names say the role, never the value. Mockup values are kept as they are;
 * every deviation is commented («сайт:»), everything the mockup did not define
 * is under «added».
 */
:root {
  /* ── Colour: from the mockup ─────────────────────────────────────────── */
  --color-paper: #F4EFE6;        /* page background — papel do programa */
  --color-paper-2: #EAE2D3;      /* image placeholder, quiet fills */
  --color-card: #FFFDF8;         /* cards, pules, panels */
  --color-ink: #27221E;          /* text, dark tiles */
  --color-ink-2: #57504A;        /* secondary text — 6.9:1 on paper */
  --color-ink-3: #6F675E;        /* labels, meta. сайт: макап #7A7168 = 4.18:1 на бумаге → 4.85:1 */
  --color-line: #D9CFBE;         /* hairlines, ticket tear-off, borders */
  --color-brand: #B5532C;        /* telha — primary action, marker, stamp. White on it 4.95:1 */
  --color-brand-2: #8F3E1F;      /* hover of the primary action */
  --color-mate: #5E6B2C;         /* erva-mate — official / confirmed (detail only) */
  --color-on-ink: #F4EFE6;       /* text on dark tiles */
  --color-on-ink-2: #D9CFC4;     /* secondary text on dark tiles — 10:1 */
  --color-on-ink-accent: #F2B99F;/* link on dark tiles — 9.2:1 */

  /* ── Colour: added ───────────────────────────────────────────────────── */
  --color-brand-text: #A94A25;   /* telha as text/link on paper: brand itself is 4.33:1 → 4.96:1 */
  --color-brand-active: #7A3419;
  --color-marker: rgb(181 83 44 / .3);      /* the underline marker of the accent word */
  --color-scrim: rgb(39 34 30 / .55);       /* photo captions, modal backdrop */
  --color-error: #A3261B;        /* 6.3:1 on card */
  --color-error-bg: #FBE9E4;
  --color-success: #4F5B22;      /* darker mate, 6.9:1 on card */
  --color-success-bg: #EEF0DF;
  --color-warning-bg: #FBF1DC;
  --focus-ring: 0 0 0 3px var(--color-card), 0 0 0 5px var(--color-brand);

  /* ── Typography: from the mockup ─────────────────────────────────────── */
  --font-display: "Bricolage Grotesque", Georgia, system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, "Segoe UI", sans-serif;
  --fs-h1: clamp(44px, 6.8vw, 104px);
  --fs-h2: clamp(30px, 3.6vw, 54px);
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-micro: 12.5px;
  /* added: steps the mockup did not need */
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-h4: 19px;
  --fs-page-h1: clamp(38px, 5vw, 72px);    /* inner pages: the collage-size H1 is for home only */
  --fs-stat: 56px;                          /* big numerals: date, pule number */
  --lh-tight: .92;
  --lh-heading: 1.08;
  --lh-base: 1.55;
  --tracking-display: -.025em;
  --tracking-label: .1em;

  /* ── Space ───────────────────────────────────────────────────────────── */
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-22: 22px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-48: 48px;
  --space-56: 56px;              /* section rhythm in the mockup */
  --space-72: 72px;

  /* ── Shape and depth: from the mockup ────────────────────────────────── */
  --radius: 14px;                /* tiles, cards */
  --radius-s: 8px;               /* pules, inner boxes */
  --radius-xs: 4px;
  --radius-pill: 999px;          /* buttons, chips */
  --shadow: 0 1px 0 rgb(39 34 30 / .06), 0 18px 40px -26px rgb(39 34 30 / .45);
  --shadow-lift: 0 1px 0 rgb(39 34 30 / .06), 0 24px 44px -24px rgb(39 34 30 / .5);  /* added: hover */
  --tap: 44px;
  --notch: 9px;                  /* pule perforation radius */

  /* ── Container: from the mockup (min(1320px, 100% - 32px)) ──────────── */
  --container: 1320px;
  --container-pad: 16px;
  --header-h: 68px;

  /* ── Motion: from the mockup, scale added ────────────────────────────── */
  --ease: cubic-bezier(.25, .8, .25, 1);
  --ease-in: cubic-bezier(.5, 0, .8, .3);
  --dur-fast: 140ms;
  --dur-base: 220ms;             /* mockup --t */
  --dur-slow: 300ms;
  --dur-reveal: 560ms;           /* mockup section reveal */

  /* ── Layers ──────────────────────────────────────────────────────────── */
  --z-header: 30;
  --z-dock: 40;
  --z-overlay: 60;
  --z-modal: 80;
  --z-gate: 90;
}

/* Breakpoints (media queries cannot read custom properties). Mockup breakpoints:
   720 (header CTA), 760 (collage 4 cols), 900 (overlay menu cols), 1000 (two-col),
   1100 (collage 6 cols). Reference widths: 390 / 1440 (kit.config.json). */

/* base.css */
/* Reset, document defaults, accessibility basics. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  min-height: 100vh;
  overflow-x: hidden;          /* nothing may scroll the page sideways */
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }

/* Headings take face and size from their class; the mockup's h1–h3 are display. */
h1, h2, h3, h4 { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-display); }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p a, .prose li a, dd a { color: var(--color-brand-text); }
p a:hover, .prose li a:hover, dd a:hover { color: var(--color-brand-2); }

ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--color-line); margin-block: 0; }

.tnum { font-variant-numeric: tabular-nums; }
.label { font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-ink-3); }

/* Visible focus is not optional, whatever the mockup shows. */
:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; border-radius: var(--radius-xs); }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-gate);
  padding: var(--space-8) var(--space-16); background: var(--color-ink); color: var(--color-on-ink);
  border-radius: var(--radius-s);
}
.skip-link:focus { left: var(--space-8); top: var(--space-8); }

/* A hidden control inside a component must stay hidden even when the component sizes its inputs. */
.visually-hidden.visually-hidden { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* A hidden element must stay hidden even when a component sets display. */
[hidden][hidden] { display: none !important; }

/* Tap targets: 24×24 minimum (WCAG 2.2 AA, 2.5.8) by a pseudo-element, never by padding. */
.tap-target { position: relative; }
.tap-target::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%;
  height: 100%; min-height: 24px; z-index: 1;
}

::selection { background: var(--color-marker); }

/* layout.css */
/* Page-level structure: container, header, menu overlay, footer, page head,
 * section rhythm. Values from mockup C (tokens.css). */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--container-pad));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── header (mockup C: minimal, sticky, blurred paper) ─────────────────── */
.hdr {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--color-paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}
.hdr.is-scrolled { border-color: var(--color-line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: var(--header-h); }
.hdr__acts { display: flex; align-items: center; gap: var(--space-8); }

.lt { text-decoration: none; display: flex; align-items: center; gap: var(--space-12); line-height: 1; min-width: 0; }
.lt__txt { min-width: 0; }
.lt b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; display: block; }
.lt small { display: block; font-size: 13px; color: var(--color-ink-3); margin-top: 3px; }
.seal {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--color-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -.02em;
  transition: transform var(--dur-slow) var(--ease), background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.lt:hover .seal { transform: rotate(-12deg); background: var(--color-ink); color: var(--color-on-ink); }
/* logo mark (logo v3, monogram JC): the PNG is a mask, the color comes from currentColor */
.mark {
  flex: none; width: 44px; height: 44px; background: currentColor;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat;
  transition: transform var(--dur-slow) var(--ease), color var(--dur-base) var(--ease);
}
.lt:hover .mark { transform: rotate(-12deg); color: var(--color-brand); }

/* doubled class: must beat .btn{display:inline-flex}, which loads later */
.hide-s.hide-s, .hide-m.hide-m { display: none; }
@media (min-width: 560px) { .hide-m.hide-m { display: inline-flex; } }
@media (min-width: 720px) { .hide-s.hide-s { display: inline-flex; } }
@media (max-width: 559px) { .lt b { font-size: 16px; } .lt small { font-size: 12px; } }
@media (max-width: 389px) { .lt small { display: none; } .menu-btn span { display: none; } }

/* ── menu overlay (mockup C: full paper sheet on every width) ─────────── */
/* doubled selector: .overlay (components.css, loaded later) must not repaint the menu with the scrim */
.overlay.overlay--menu { background: var(--color-paper); padding: 0; place-items: stretch; }
.overlay--menu .overlay__panel { width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 18px 0 40px; background: transparent; transform: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 50px; }
.menu__close { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--color-ink); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.menu__close:hover { background: var(--color-ink); color: var(--color-on-ink); }
.menu__close .icon { width: 20px; height: 20px; }
.menu__cols { display: grid; gap: var(--space-28); margin-top: var(--space-22); }
.menu__h { margin: 0 0 var(--space-8); font: 700 var(--fs-micro)/1 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-ink-3); }
.menu__cols a {
  display: block; padding: 7px 0; text-decoration: none; color: var(--color-ink);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15;
  transform: translateY(8px); opacity: 0;
  transition: color var(--dur-base) var(--ease), transform 380ms var(--ease), opacity 380ms var(--ease);
}
.overlay--menu.is-open .menu__cols a { transform: none; opacity: 1; }
.menu__cols li:nth-child(2) a { transition-delay: 30ms; } .menu__cols li:nth-child(3) a { transition-delay: 60ms; }
.menu__cols li:nth-child(4) a { transition-delay: 90ms; } .menu__cols li:nth-child(5) a { transition-delay: 120ms; }
.menu__cols li:nth-child(6) a { transition-delay: 150ms; }
.menu__cols a:hover, .menu__cols a[aria-current] { color: var(--color-brand-text); }
.menu__cols a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--color-marker); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); margin-top: var(--space-32); padding-top: var(--space-22); border-top: 1px solid var(--color-line); }
.menu__rg { flex-basis: 100%; font-size: var(--fs-small); color: var(--color-ink-2); display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; margin-top: var(--space-8); }
@media (min-width: 900px) { .menu__cols { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ── page head (inner pages; new, in the mockup's language) ───────────── */
.page-head { padding: var(--space-22) 0 var(--space-48); }
.page-head__in { display: grid; gap: var(--space-28); align-items: end; }
.page-head__txt { display: grid; gap: var(--space-14); align-content: start; min-width: 0; }
.page-head__h1 { font-size: var(--fs-page-h1); line-height: var(--lh-tight); }
.page-head__lead { font-size: var(--fs-lead); color: var(--color-ink-2); max-width: 58ch; }
.page-head__aside { position: relative; min-width: 0; }
.page-head__aside .tile { height: clamp(220px, 30vw, 340px); }
@media (min-width: 1000px) {
  .page-head--aside .page-head__in { grid-template-columns: 1.25fr 1fr; gap: var(--space-48); }
}
/* marker under the accent word — signature 3 */
.u { background: linear-gradient(transparent 58%, var(--color-marker) 58%, var(--color-marker) 86%, transparent 86%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--color-ink-3); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--color-line); }
.crumbs a { color: var(--color-ink-3); text-decoration: none; position: relative; }
.crumbs a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.crumbs a:hover { color: var(--color-brand-text); text-decoration: underline; }

/* ── sections ─────────────────────────────────────────────────────────── */
.sec { padding-block: var(--space-56); }
.sec--tight { padding-block: var(--space-32); }
.sec--flush-top { padding-top: 0; }
.sec-h { display: flex; flex-wrap: wrap; gap: var(--space-14) var(--space-28); justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-22); }
.sec-h__txt { max-width: 64ch; }
.sec-h h2 { font-size: var(--fs-h2); line-height: .95; margin-top: var(--space-6); }
.sec-h p { margin-top: var(--space-10); color: var(--color-ink-2); }
.sec-h--sm h2 { font-size: clamp(26px, 2.8vw, 38px); }

.two { display: grid; gap: var(--space-16); }
.two > *, .prox > * { min-width: 0; }
@media (min-width: 1000px) { .two { grid-template-columns: 1.1fr 1fr; } .two--even { grid-template-columns: 1fr 1fr; } }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-14); }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: var(--lh-heading); margin-top: var(--space-48); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); margin-top: var(--space-28); }
.prose ul, .prose ol { display: grid; gap: var(--space-8); padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--color-brand); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--color-ink); display: grid; place-items: center; font: 700 13px/1 var(--font-display); }
.prose strong { font-weight: 700; }

/* ── footer (new: TZ §10, three columns + data band) ──────────────────── */
.ftr { background: var(--color-ink); color: var(--color-on-ink-2); padding: var(--space-56) 0 var(--space-28); margin-top: var(--space-32); font-size: var(--fs-small); }
.ftr a { color: var(--color-on-ink); text-decoration: none; }
.ftr a:hover { color: var(--color-on-ink-accent); text-decoration: underline; }
.ftr .seal { border-color: var(--color-on-ink); color: var(--color-on-ink); }
.ftr .mark { color: var(--color-on-ink); }
.ftr .lt:hover .mark { color: var(--color-on-ink-accent); }
.lt--ftr b { color: var(--color-on-ink); }
.lt--ftr small { color: var(--color-on-ink-2); }
.ftr__top { display: grid; gap: var(--space-32); padding-bottom: var(--space-32); border-bottom: 1px solid rgb(244 239 230 / .14); }
.ftr__cols { display: grid; gap: var(--space-28); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ftr__h { font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-on-ink); margin-bottom: var(--space-12); display: flex; align-items: center; gap: var(--space-8); }
.ftr__col ul { display: grid; gap: 2px; }
.ftr__col a { display: inline-block; padding: 5px 0; position: relative; }
.ftr__band { display: grid; gap: var(--space-28); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding: var(--space-32) 0; border-bottom: 1px solid rgb(244 239 230 / .14); }
.ftr__block { display: grid; gap: var(--space-8); align-content: start; }
.ftr__block a { text-decoration: underline; text-decoration-color: rgb(244 239 230 / .35); }
.ftr__block--rg b { color: var(--color-on-ink); }
.ftr__base { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); justify-content: space-between; padding-top: var(--space-22); font-size: 13.5px; }
.ftr__base a { position: relative; }
.ftr__base a::after, .ftr__block a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.ftr__block a { position: relative; }
.ftr__top > .lt { align-self: start; }
@media (min-width: 1000px) { .ftr__top { grid-template-columns: 1fr 2fr; } }

/* ── back to top ──────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: var(--space-16); bottom: var(--space-16); z-index: var(--z-dock);
  width: var(--tap); height: var(--tap); border-radius: 50%;
  background: var(--color-ink); color: var(--color-on-ink); display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.to-top:hover { background: var(--color-brand); transform: translateY(-2px); }
.to-top .icon { width: 20px; height: 20px; }

/* components.css */
/* Components — from mockup C where it draws them, the rest designed in its language
 * (reports/S3-system.md). States covered: hover, focus, active, disabled, selected, error. */

/* ── icons ─────────────────────────────────────────────────────────────── */
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* ── buttons (mockup: pill) ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--tap); padding: 0 20px; border-radius: var(--radius-pill); border: 0;
  font-weight: 700; font-size: var(--fs-body); line-height: 1.1; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--brand { background: var(--color-brand); color: #fff; }
.btn--brand:hover { background: var(--color-brand-2); color: #fff; }
.btn--brand:active { background: var(--color-brand-active); }
.btn--ink { background: var(--color-ink); color: var(--color-paper); }
.btn--ink:hover { background: var(--color-brand); color: #fff; }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--line:hover { background: var(--color-ink); color: var(--color-paper); }
.btn--line-light { box-shadow: inset 0 0 0 1.5px var(--color-on-ink-2); color: var(--color-on-ink); }
.btn--line-light:hover { background: var(--color-on-ink); color: var(--color-ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-10); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-brand-text); text-decoration: none; min-height: 32px; }
.link-arrow .icon { transition: transform var(--dur-base) var(--ease); }
.link-arrow:hover { color: var(--color-brand-2); }
.link-arrow:hover .icon { transform: translateX(3px); }

.menu-btn {
  display: inline-flex; align-items: center; gap: var(--space-8); min-height: var(--tap); padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--color-card); box-shadow: inset 0 0 0 1.5px var(--color-line);
  font-weight: 700; transition: box-shadow var(--dur-base) var(--ease);
}
.menu-btn:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink); }

.age-badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: var(--radius-pill); font: 800 12px/1 var(--font-display); }

/* ── photo tile + credit (signature 4) ────────────────────────────────── */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--color-paper-2); box-shadow: var(--shadow); margin: 0; min-height: 120px; }
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; justify-content: space-between; gap: 8px; align-items: flex-end;
  color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / .6);
}
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgb(20 16 12 / .45)); pointer-events: none; }
.credit { font-size: 12px; font-weight: 500; color: #fff; background: rgb(20 16 12 / .62); padding: 2px 7px; border-radius: var(--radius-xs); text-shadow: none; text-decoration: none; text-align: right; line-height: 1.25; position: relative; z-index: 2; }
.credit:hover { text-decoration: underline; }
.credit::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.tile figcaption > span:not(:empty) { background: rgb(20 16 12 / .62); padding: 2px 8px; border-radius: var(--radius-xs); text-shadow: none; }
/* a dark label on dark blocks (Ao Vivo, GP) */
.live__label { color: var(--color-on-ink-accent); display: flex; align-items: center; gap: 6px; }
.figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.figure .credit { position: absolute; right: 8px; bottom: 8px; background: var(--color-scrim); padding: 3px 8px; border-radius: var(--radius-xs); }
.img-missing { display: block; width: 100%; height: 100%; background: var(--color-paper-2); }

/* ── stamp (signature 2) ──────────────────────────────────────────────── */
.stamp {
  position: absolute; z-index: 3; width: 112px; height: 112px; border-radius: 50%;
  border: 2px solid var(--color-brand); color: var(--color-brand-text); background: rgb(255 253 248 / .9);
  display: grid; place-items: center; text-align: center; font: 800 12px/1.15 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-12deg); pointer-events: none;
}
.stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed currentColor; }
.stamp b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stamp--static { position: relative; }
.stamp--ink { border-color: var(--color-ink); color: var(--color-ink); }

/* ── dark day tile (mockup .t-day) ────────────────────────────────────── */
.day-tile { background: var(--color-ink); color: var(--color-on-ink); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-14); text-decoration: none; box-shadow: var(--shadow); }
.day-tile__when { display: flex; align-items: baseline; gap: 12px; }
.day-tile__when b { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-stat); line-height: .85; letter-spacing: -.04em; }
.day-tile__when span { font-weight: 600; line-height: 1.25; }
.day-tile ul { display: grid; gap: 4px; font-size: var(--fs-small); }
.day-tile li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgb(244 239 230 / .16); padding-top: 6px; }
.day-tile li b { font-variant-numeric: tabular-nums; }
.day-tile__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-on-ink-accent); }
.day-tile__go .icon { transition: transform var(--dur-base) var(--ease); }
a.day-tile:hover .day-tile__go .icon { transform: translateX(3px); }

/* ── card ─────────────────────────────────────────────────────────────── */
.card { background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-24); }
.card--flat { box-shadow: inset 0 0 0 1.5px var(--color-line); }
.card__h { font-size: var(--fs-h3); line-height: var(--lh-heading); }
a.card { display: block; text-decoration: none; transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
a.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.grid-cards { display: grid; gap: var(--space-16); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* ── pule: the result ticket (signature 1) ─────────────────────────────── */
.pule {
  position: relative; background: var(--color-card); border-radius: var(--radius-s); padding: 18px 18px 16px; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.pule__hd { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--color-ink-3); font-weight: 600; }
.pule__h { font-size: var(--fs-h3); margin: 10px 0 2px; line-height: 1.1; padding-right: 64px; }
.pule__h a { text-decoration: none; }
.pule__h a:hover { color: var(--color-brand-text); }
.pule__h a::after { content: ""; position: absolute; inset: 0; }
.pule__who { font-size: 14px; color: var(--color-ink-2); }
.pule__cut { border-top: 2px dashed var(--color-line); margin: 16px -18px 12px; }
.pule__rat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.pule__rat b { font-variant-numeric: tabular-nums; text-align: right; }
.pule__no { position: absolute; right: 16px; top: 40px; font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--color-paper-2); }
.pule__ok { display: inline-flex; align-items: center; gap: 5px; color: var(--color-success); font-weight: 700; font-size: 12.5px; margin-top: 10px; }
.pule--dark { background: var(--color-ink); color: var(--color-on-ink); box-shadow: var(--shadow); }
.pule--dark .pule__hd, .pule--dark .pule__who { color: var(--color-on-ink-2); }
.pule--dark .pule__cut { border-color: rgb(244 239 230 / .2); }

/* horizontal lane of pules (mockup) */
.lane { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 300px); gap: var(--space-14); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.lane > * { scroll-snap-align: start; }
.lane-ctl { display: flex; gap: var(--space-8); }
.lane-ctl button { width: var(--tap); height: var(--tap); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-ink); display: grid; place-items: center; transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.lane-ctl button:hover { background: var(--color-ink); color: var(--color-paper); }
.lane-ctl button:disabled { opacity: .35; pointer-events: none; }
.lane-ctl .icon { width: 20px; height: 20px; }

/* ── cloth number, status pill, chip ──────────────────────────────────── */
.cloth { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 50%; border: 1.5px solid var(--color-ink); font: 800 14px/1 var(--font-display); font-variant-numeric: tabular-nums; background: var(--color-card); }
.cloth--win { background: var(--color-ink); color: var(--color-on-ink); }
.cloth--sel { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--color-paper-2); color: var(--color-ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill--programada, .pill--programado { background: var(--color-paper-2); }
.pill--em-andamento { background: var(--color-brand); color: #fff; }
.pill--em-andamento::before { opacity: 1; animation: pulse 1.6s var(--ease) infinite; }
.pill--aguardando-resultado { background: var(--color-warning-bg); }
.pill--disputado { background: var(--color-paper-2); color: var(--color-ink-2); }
.pill--resultado-oficial { background: var(--color-success-bg); color: var(--color-success); }
.pill--tag { background: var(--color-ink); color: var(--color-on-ink); }
.pill--tag::before { display: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* filter chips: a radio group styled as pills */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-line); background: var(--color-card); font-weight: 600; font-size: var(--fs-small); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.chip input:checked + span { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.chip input:focus-visible + span { box-shadow: var(--focus-ring); }
.chip small { font-weight: 500; opacity: .75; }

/* ── fields ───────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--space-16); }
.form-row { display: grid; gap: var(--space-16); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: 2fr 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--color-ink); }
.field__label small { font-weight: 400; color: var(--color-ink-3); }
.field__hint { font-size: 13.5px; color: var(--color-ink-3); }
.field input:not([type="checkbox"]):not([type="radio"]):not(.visually-hidden), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--color-line); border-radius: var(--radius-s);
  background: var(--color-card); font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(135deg, var(--color-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:hover:not(:disabled), .field select:hover, .field textarea:hover { border-color: var(--color-ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-ink); box-shadow: var(--focus-ring); outline: none; }
.field input:disabled, .field input[readonly] { background: var(--color-paper-2); color: var(--color-ink-2); }
.field__error { color: var(--color-error); font-size: 14px; font-weight: 600; display: flex; gap: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); background: var(--color-error-bg); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 10px; }
.field--check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--color-ink); cursor: pointer; }
.field--check .field__label { font-weight: 400; }
.field--check .field__error { grid-column: 2; }
.form__error { color: var(--color-error); background: var(--color-error-bg); padding: 12px 14px; border-radius: var(--radius-s); font-weight: 600; }
.form__success { color: var(--color-success); }
fieldset.field { border: 0; padding: 0; min-width: 0; }
legend.field__label { padding: 0; margin-bottom: 6px; }

/* switch (cookie settings) */
.switch { position: relative; display: inline-flex; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch__ui { width: 48px; height: 28px; border-radius: 999px; background: var(--color-line); position: relative; transition: background-color var(--dur-base) var(--ease); }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform var(--dur-base) var(--ease); }
.switch input:checked + .switch__ui { background: var(--color-ink); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:disabled + .switch__ui { opacity: .55; }
.switch input:focus-visible + .switch__ui { box-shadow: var(--focus-ring); }

/* ── notice + empty state ─────────────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s); background: var(--color-card); box-shadow: inset 0 0 0 1.5px var(--color-line); font-size: var(--fs-small); }
.notice > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--color-ink-2); }
.notice b { color: var(--color-ink); }
.notice--warn { background: var(--color-warning-bg); box-shadow: none; }
.notice--ok { background: var(--color-success-bg); box-shadow: none; }
.notice--ok > .icon { color: var(--color-success); }
.notice--dark { background: var(--color-ink); color: var(--color-on-ink-2); box-shadow: none; }
.notice--dark b { color: var(--color-on-ink); }
.notice--dark a { color: var(--color-on-ink-accent); }
.empty { position: relative; text-align: center; padding: 40px 24px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px dashed var(--color-line); border: 2px dashed var(--color-line); display: grid; gap: 10px; justify-items: center; }
.empty h3 { font-size: var(--fs-h3); }
.empty p { color: var(--color-ink-2); max-width: 46ch; }
.empty .stamp { position: relative; transform: rotate(-8deg); width: 96px; height: 96px; }

/* ── races (páreo accordion) + runners table ──────────────────────────── */
.races { background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.race { border-top: 1px solid var(--color-line); scroll-margin-top: calc(var(--header-h) + 12px); }
.race:first-child { border-top: 0; }
.race__btn { width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 6px 14px; align-items: center; text-align: left; padding: 14px 16px; transition: background-color var(--dur-fast) var(--ease); }
.race__btn:hover { background: var(--color-paper); }
.race__no { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.race__no small { display: block; font: 700 11px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-3); }
.race__name { font-weight: 700; line-height: 1.25; display: block; }
.race__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--color-ink-3); margin-top: 4px; align-items: center; }
.race__side { display: grid; grid-template-columns: auto auto; gap: 4px 10px; justify-items: end; align-items: center; text-align: right; }
.race__side > .race__meta { grid-column: 1; margin-top: 0; }
.race__side > .race__time { grid-column: 1; }
.race__side > .pill { grid-column: 1; }
.race__side > .race__chev { grid-column: 2; grid-row: 1 / span 3; }
.race__time { font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.race__chev { width: 22px; height: 22px; transition: transform var(--dur-base) var(--ease); }
.race__btn[aria-expanded="true"] .race__chev { transform: rotate(180deg); }
.race__btn[aria-expanded="true"] { background: var(--color-paper); }
.race__body > div { padding: 0 16px; }
.race__inner { padding: 4px 0 20px; display: grid; gap: var(--space-14); }
.race__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--color-ink-2); }
.race__facts b { color: var(--color-ink); font-weight: 600; }
@media (max-width: 599px) {
  .race__btn { grid-template-columns: 44px 1fr; }
  .race__side { grid-column: 2; justify-items: start; text-align: left; display: flex; align-items: center; gap: 10px; }
  .race__chev { margin-left: auto; }
}

.tbl-wrap { overflow-x: auto; }
.runners { font-size: 15px; }
.runners th { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--color-ink-3); text-align: left; font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--color-ink); white-space: nowrap; }
.runners td { padding: 9px 10px; border-bottom: 1px solid var(--color-line); vertical-align: middle; }
.runners td.c, .runners th.c { text-align: center; }
.runners td.r, .runners th.r { text-align: right; }
.runners tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.runners tbody tr:hover { background: var(--color-paper); }
.runners .horse { font-weight: 700; }
.runners .sub { display: block; font-size: 13px; color: var(--color-ink-3); font-weight: 400; }
/* on phones the runners table becomes stacked lines of the program */
@media (max-width: 599px) {
  .runners--stack thead { display: none; }
  .runners--stack tr { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
  .runners--stack td { border: 0; padding: 0; }
  .runners--stack td:first-child { grid-row: span 3; }
  .runners--stack td[data-l]::before { content: attr(data-l) " "; color: var(--color-ink-3); font-size: 13px; }
  .runners--stack td.c, .runners--stack td.r { text-align: left; }
  .runners--stack td.xs-right { grid-column: 3; grid-row: 1; text-align: right; }
}

/* ── steps (Cadastro, Apostas) ────────────────────────────────────────── */
.steps { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; counter-reset: s; border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); background: var(--color-card); }
.steps li { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: var(--fs-small); color: var(--color-ink-3); white-space: nowrap; }
.steps li + li { border-left: 1px solid var(--color-line); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font: 800 13px/1 var(--font-display); flex: none; }
.steps li.is-done { color: var(--color-ink); }
.steps li.is-done::before { content: "✓"; background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.steps li.is-now { color: var(--color-ink); background: var(--color-paper); }
.steps li.is-now::before { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

/* ── faq accordion ────────────────────────────────────────────────────── */
.faq { display: grid; gap: var(--space-10); }
.faq__item { background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); transition: box-shadow var(--dur-base) var(--ease); scroll-margin-top: calc(var(--header-h) + 12px); }
.faq__item:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink-3); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; font-weight: 700; font-size: 17px; min-height: 56px; }
.faq__q .icon { width: 20px; height: 20px; transition: transform var(--dur-base) var(--ease); flex: none; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a > div > div { padding: 0 18px 18px; color: var(--color-ink-2); display: grid; gap: 10px; }

/* ── key/value list ───────────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: var(--fs-small); }
.kv dt { color: var(--color-ink-3); }
.kv dd { margin: 0; font-weight: 600; }

/* ── overlays: modal dialog, age gate ─────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--space-16);
  background: var(--color-scrim); opacity: 0; transition: opacity var(--dur-slow) var(--ease); overflow-y: auto;
}
.overlay.is-open { opacity: 1; }
.overlay__panel { width: min(100%, 520px); max-height: calc(100vh - 32px); overflow: auto; background: var(--color-paper); border-radius: var(--radius); padding: var(--space-28); transform: translateY(10px); transition: transform var(--dur-slow) var(--ease); box-shadow: var(--shadow-lift); }
.overlay.is-open .overlay__panel { transform: none; }
.dialog__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: var(--space-16); }
.dialog__h { font-size: 26px; line-height: 1.05; }
.dialog__close { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--color-line); transition: box-shadow var(--dur-fast) var(--ease); }
.dialog__close:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.dialog__close .icon { width: 20px; height: 20px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: var(--space-10); margin-top: var(--space-22); }

.overlay--gate { z-index: var(--z-gate); background: rgb(39 34 30 / .78); }
.gate { position: relative; text-align: left; padding-top: 40px; overflow: visible; }
.gate__stamp { right: -12px; top: -34px; }
.gate__h { font-size: clamp(28px, 4vw, 38px); line-height: 1.02; margin: 8px 0 20px; padding-right: 70px; }
.gate__actions { display: grid; gap: var(--space-10); }
.gate__note { margin-top: var(--space-16); font-size: var(--fs-small); color: var(--color-ink-2); }

/* cookie bar + settings */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-overlay); background: var(--color-card); box-shadow: 0 -16px 40px -24px rgb(39 34 30 / .5); border-top: 1px solid var(--color-line); }
.cookie-bar__in { display: grid; gap: var(--space-14); padding-block: var(--space-16); }
.cookie-bar__h { font-size: 18px; }
.cookie-bar__txt p { font-size: var(--fs-small); color: var(--color-ink-2); margin-top: 4px; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
@media (min-width: 960px) { .cookie-bar__in { grid-template-columns: 1fr auto; align-items: center; } }
.cookie-set { display: grid; gap: 0; }
.cookie-set__row { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--color-line); }
.cookie-set__row p { font-size: 14px; color: var(--color-ink-2); margin-top: 2px; }

/* ── handoff dialog (Apostas → sistema oficial) ───────────────────────── */
.handoff__sum { margin: var(--space-14) 0; }

/* ── filter links (GET filters that work without JS) ─────────────────── */
.chip-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-line); background: var(--color-card); font-weight: 600; font-size: var(--fs-small); text-decoration: none; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.chip-link:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.chip-link.is-on { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }

/* ── small lists and notes ────────────────────────────────────────────── */
.date-list { display: grid; margin-top: 10px; }
.date-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--color-line); }
.date-list b { font: 800 22px/1 var(--font-display); }
.date-list small { display: block; color: var(--color-ink-3); font-size: 13.5px; }
.src-note { font-size: 13.5px; color: var(--color-ink-3); margin-top: 12px; }
.side-p { font-size: var(--fs-small); color: var(--color-ink-2); margin: 8px 0 10px; }
.card > .card__h + * { margin-top: 8px; }
/* icon + text list; shared by content pages and Cadastro, so it lives here */
.checklist { display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--color-brand-text); }

/* ── spacing utilities (instead of inline styles) ─────────────────────── */
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-22 { margin-top: 22px; } .mt-32 { margin-top: 32px; }
.mb-18 { margin-bottom: 18px; } .self-start { align-self: start; }
.h2 { font-size: var(--fs-h2); line-height: .95; margin-top: 6px; }

/* ── S6 flow fixes: no lone last row, nothing wider than the column ────── */
@media (max-width: 599px) { .race__side { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; } .race__side > .race__chev { grid-column: 2; grid-row: 1; justify-self: end; } }
.race__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.race__facts > span[aria-hidden] { display: none; }
@media (max-width: 479px) { .race__facts { grid-template-columns: 1fr; } }

.res-pos { white-space: nowrap; }
.res-pos b { display: inline-block; min-width: 34px; }
@media (max-width: 599px) { .runners--stack .res-pos { grid-row: span 3; display: grid; gap: 4px; justify-items: start; align-content: start; } }

/* long e-mails and links break inside narrow cards (contato at 320) */
.kv dd, .ct-addr { overflow-wrap: anywhere; min-width: 0; }
.field--action .btn { align-self: start; }

/* the watermark number of a pule is decoration: drawn by CSS, not text (axe contrast, S8) */
.pule__no::before { content: attr(data-no); }

/* pages/content.css */
/* Content pages: Como Apostar, Guia do Turfe, Hipódromo do Cristal, Sobre o Jockey,
 * Jogo Responsável, Ajuda, legal pages. Mockup C language: paper, cards, stamps, pules. */

/* article with a sticky table of contents */
.doc { display: grid; gap: var(--space-32); align-items: start; }
.doc > * { min-width: 0; }
@media (min-width: 1100px) { .doc { grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-56); } }
.toc { display: grid; gap: 4px; padding: 18px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); }
@media (min-width: 1100px) { .toc { position: sticky; top: calc(var(--header-h) + 16px); } }
.toc__h { margin-bottom: 6px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--color-line); text-decoration: none; font-size: var(--fs-small); color: var(--color-ink-2); transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.toc a:hover, .toc a.is-on { color: var(--color-ink); border-color: var(--color-brand); }
@media (max-width: 1099px) { .toc ol { display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 0; padding: 6px 12px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-line); } }
.doc__meta { font-size: 13.5px; color: var(--color-ink-3); margin-bottom: var(--space-16); }
.doc .prose h2:first-child { margin-top: 0; }

/* numbered step cards (Como Apostar, Cadastro explanation) */
.step-cards { display: grid; gap: var(--space-12); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); counter-reset: sc; }
.step-card { position: relative; counter-increment: sc; padding: 20px 18px 18px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.step-card::before { content: counter(sc, decimal-leading-zero); font: 800 34px/1 var(--font-display); color: var(--color-paper-2); position: absolute; right: 14px; top: 12px; }
.step-card h3 { font-size: var(--fs-h4); line-height: 1.15; padding-right: 48px; }
.step-card p { font-size: var(--fs-small); color: var(--color-ink-2); }
.step-card .icon { width: 24px; height: 24px; color: var(--color-brand-text); }

/* flow line: A → B → C */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-small); }
.flow li span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--color-card); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.flow li + li::before { content: "→"; color: var(--color-ink-3); }

/* glossary */
.gloss { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gloss__item { padding: 18px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); scroll-margin-top: calc(var(--header-h) + 16px); transition: box-shadow var(--dur-base) var(--ease); }
.gloss__item:target { box-shadow: inset 0 0 0 2px var(--color-brand); }
.gloss__item dt { font: 800 20px/1.1 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.gloss__item dd { margin: 0; font-size: var(--fs-small); color: var(--color-ink-2); }

/* modalidades */
.mods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .mods { grid-template-columns: repeat(3, 1fr); } }
.mod { display: grid; gap: 8px; padding: 18px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.mod__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mod h3 { font-size: 22px; }
.mod__nums { display: flex; gap: 6px; }
.mod p { font-size: var(--fs-small); color: var(--color-ink-2); }
.mod small { font-size: 13px; color: var(--color-ink-3); }

/* facts / numbers */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fact { padding: 18px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.fact b { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.03em; }
.fact span { font-size: var(--fs-small); color: var(--color-ink-2); }

/* photo gallery (Hipódromo) */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
.gallery .tile:first-child { grid-column: 1 / -1; grid-row: span 2; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } .gallery .tile:first-child { grid-column: span 2; } }

/* timeline (Sobre) */
.timeline { display: grid; gap: 0; border-left: 2px dashed var(--color-line); margin-left: 10px; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-brand); }
.timeline b { display: block; font: 800 22px/1.1 var(--font-display); }
.timeline p { color: var(--color-ink-2); font-size: var(--fs-small); margin-top: 4px; max-width: 60ch; }

/* document quote (Carta Patente) */
.doc-quote { position: relative; padding: 24px 24px 24px 28px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: var(--shadow); border-left: 4px solid var(--color-brand); }
.doc-quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.doc-quote figcaption { margin-top: 12px; font-size: 13.5px; color: var(--color-ink-3); }

/* help centre */
.help-cats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.help-cat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); text-decoration: none; font-weight: 700; transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.help-cat:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink); transform: translateY(-1px); }
.help-cat .icon { width: 22px; height: 22px; color: var(--color-brand-text); }
.help-cat small { display: block; font-weight: 400; font-size: 13px; color: var(--color-ink-3); }
.help-search { display: flex; gap: 8px; max-width: 560px; }
.help-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-line); background: var(--color-card); }
.help-search input:focus { outline: none; border-color: var(--color-ink); box-shadow: var(--focus-ring); }
.faq-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group + .faq-group { margin-top: var(--space-32); }
.faq-group__h { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* RG */
.rg-hero { display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--color-ink); color: var(--color-on-ink-2); }
.rg-hero b { color: var(--color-on-ink); }
.rg-hero__age { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--color-on-ink); color: var(--color-on-ink); font: 800 28px/1 var(--font-display); }
.rg-hero__msg { font: 800 clamp(22px, 2.6vw, 32px)/1.1 var(--font-display); color: var(--color-on-ink); letter-spacing: -.02em; }
@media (min-width: 900px) { .rg-hero { grid-template-columns: auto 1fr; gap: 28px; } }
.help-lines { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.step-cards--from-3 { counter-reset: sc 3; }
.step-card--n8 { counter-set: sc 8; }

/* 404 */
.nf { padding: var(--space-56) 0 var(--space-72); }
.nf__in { display: grid; gap: var(--space-28); align-items: center; }
@media (min-width: 800px) { .nf__in { grid-template-columns: auto 1fr; gap: var(--space-48); } }
.nf__stamp { width: 180px; height: 180px; font-size: 15px; transform: rotate(-10deg); }
.nf__stamp b { font-size: 52px; }
.nf__h1 { font-size: var(--fs-page-h1); line-height: var(--lh-tight); margin-top: 8px; }
.nf__p { font-size: var(--fs-lead); color: var(--color-ink-2); margin-top: 14px; max-width: 52ch; }
/* S6: sequences read top-down on narrow screens, TOC pills in two columns */
@media (max-width: 899px) { .flow { flex-direction: column; align-items: flex-start; } .flow li + li::before { content: "↓"; } }
@media (max-width: 1099px) { .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .toc a { text-align: center; } }

/* pages/legal.css */
/* Legal pages, Jogo Responsável and Help Centre — only what content.css does not cover. */

/* components placed inside .prose must not inherit the article list bullets */
.prose .checklist li { padding-left: 0; }
.prose .checklist li::before { content: none; }
.prose .help-lines, .prose .notice, .prose .card { max-width: none; }

/* help-channel cards */
.help-line { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.help-line > .icon { width: 24px; height: 24px; color: var(--color-brand-text); }
.prose .help-line h3 { margin-top: 0; font-size: var(--fs-h4); line-height: 1.15; }
.help-line p { font-size: var(--fs-small); color: var(--color-ink-2); }
.help-line .help-line__big { font: 800 30px/1 var(--font-display); letter-spacing: -.02em; color: var(--color-ink); }
.help-line a { overflow-wrap: anywhere; }

/* RG hero sits right under the page head */
.rg-hero__txt { display: grid; gap: 8px; }
.rg-hero__txt p { max-width: 70ch; }

/* key/value table used in the privacy and cookie policies */
.ltable { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ltable th, .ltable td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--color-line); }
.ltable thead th { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--color-ink-3); border-bottom: 1.5px solid var(--color-ink); white-space: nowrap; }
.ltable code { font-size: 13.5px; white-space: nowrap; }
@media (max-width: 639px) {
  .ltable thead { display: none; }
  .ltable tr { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .ltable td { border: 0; padding: 0; }
  .ltable td[data-l]::before { content: attr(data-l) ": "; color: var(--color-ink-3); font-weight: 600; }
  .ltable td:first-child { font-weight: 700; }
}

/* org data block (controller, club details) */
.org-card { padding: 18px 20px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); font-size: var(--fs-small); }
.org-card p + p { margin-top: 6px; }

/* Help Centre */
.help-top { display: grid; gap: var(--space-16); }
.help-search label { flex: 1; min-width: 0; display: flex; }
.help-search__status { font-size: var(--fs-small); color: var(--color-ink-3); min-height: 1.4em; }
.help-empty { padding: 22px; background: var(--color-card); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.help-empty h2 { font-size: var(--fs-h4); margin-bottom: 6px; }
.help-cat { color: var(--color-ink); }
.help-cat .icon { flex: none; }
.faq-group .faq { max-width: 860px; }
.help-cta { display: grid; gap: var(--space-16); }
@media (min-width: 900px) { .help-cta { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.help-cta .ctas { justify-content: flex-start; }
@media (max-width: 599px) {
  .help-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .help-cat { padding: 12px; gap: 8px; font-size: 15px; line-height: 1.2; }
  .help-cat small { display: none; }
}
/* the search field must shrink with the column (320/360 overflow, S6) */
.help-top > * { min-width: 0; }
.help-search input { width: 100%; min-width: 0; }

/* wide.css */
/* Шире 1440: раскладка стоит по центру, фоны секций — во всю ширину. Каждой
 * секции верхнего уровня — её боковой паддинг плюс половина «лишней» ширины
 * окна. Абсолютные декорации, привязанные к краю секции, сдвигаются margin'ом на
 * ту же величину. Ниже 1441 не срабатывает. Проверка на 1920 — обязательная часть
 * S6 (flow.js включает 1920). См. site-task/S5-build.md, «Ширины шире 1440». */
@media (min-width: 1441px) {
  :root { --edge: calc((100vw - 1440px) / 2); }
  /* секции с боковым паддингом 60 — перечислить все верхнеуровневые блоки */
  /* .site-header, .hero, .section-a { padding-inline: calc(60px + var(--edge)); } */
  /* секции с паддингом 80 */
  /* .legal-body { padding-inline: calc(80px + var(--edge)); } */
  /* секции, у которых паддинг живёт на детях */
  /* .hero-split { padding-inline: var(--edge); } */
  /* абсолютные декорации у левого / правого края */
  /* .hero__wm { margin-left: var(--edge); }  .featured__wm { margin-right: var(--edge); } */
}

/* motion.css */
/* Motion, loaded last: transitions, keyframes, and the reduced-motion block.
 *
 * Rules that do not bend (S5-tech, "Движение"):
 *   · only opacity, transform, colour, shadow and filter are animated;
 *   · the first screen does not animate in — that is a direct hit on LCP;
 *   · the end state is the resting layout (transform: none, opacity: 1) — a
 *     screenshot must not catch a half-played animation.
 */

/* Signature motion of mockup C: paper settling — 16px up and −0.4° back to rest.
   Only below the first screen; the first screen never animates in (LCP). */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px) rotate(-.4deg);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Staggering by nth-child costs nothing and reads as intentional. */
[data-reveal-group] > * { transition-delay: 0ms; }
[data-reveal-group] > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 180ms; }

/* Height is never animated: a row expands through grid-template-rows. */
.collapsible { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease); }
.collapsible.is-open { grid-template-rows: 1fr; }
.collapsible > * { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s var(--dur-base); }   /* min-height: a 0fr row cannot collapse a padded item; put padding on the grandchild */
.collapsible.is-open > * { visibility: visible; transition-delay: 0s; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

