/* =========================================================
   Lexington Fayette Casinos — style.css
   Concept: a racing programme for welcome bonuses.
   Entries at the starting gate, original jockey silks,
   a tote board for the comparison and plank-fence dividers.
   ========================================================= */

/* ---------- Font (self-hosted, OFL — see /assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Rokkitt";
  src: url("/assets/fonts/rokkitt-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Base */
  --limestone: #edf0ea;   /* page background: cool Kentucky limestone */
  --paper: #fafbf7;       /* raised surfaces */
  --ink: #142330;         /* bluegrass night: text and dark board */
  --ink-2: #44525c;       /* secondary text */
  --line: #c9d0c6;        /* rules */
  --on-ink: #edf0ea;
  --on-ink-2: #b9c4cc;

  /* Silks (house colours, not operator branding) */
  --cobalt: #2747b8;
  --rose: #c93a72;
  --rose-ink: #a52a5b;
  --saffron: #e8a317;
  --saffron-soft: #f6d88a;

  /* Status */
  --ok-bg: #dce8dc;
  --ok-ink: #1f4d2e;
  --wait-bg: #f4e4c4;
  --wait-ink: #6a4806;

  --focus: var(--cobalt);

  /* Type */
  --display: "Rokkitt", Rockwell, "Rockwell Nova", "Roboto Slab", "DejaVu Serif", Georgia, serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.75rem, 1.7rem + 5vw, 5.75rem);

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --radius-s: 4px;
  --radius-m: 10px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 800; line-height: 0.94; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; }

a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* SVG sprite holder: kept out of view but rendered, so clip paths work */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Legal legend bar ---------- */
.legend-bar {
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.legend-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding-block: 7px;
  text-align: center;
}
.legend-bar__translation { color: var(--on-ink-2); font-weight: 400; }
.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  height: 1.7em;
  padding: 0 0.4em;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--limestone);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 46px; height: 42px; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.site-nav ul a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.site-nav__end { display: flex; align-items: center; gap: 16px; }
.site-nav .btn { color: var(--paper); }
.site-nav .btn:hover { color: var(--paper); }

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 700;
}
.lang-switch a {
  padding: 6px 10px;
  min-width: 40px;
  text-align: center;
  text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.ext { font-size: 0.95em; line-height: 1; }

/* ---------- Plank fence divider ---------- */
.fence {
  --fence-color: var(--ink);
  height: 46px;
  background:
    linear-gradient(90deg, var(--fence-color) 0 10px, transparent 10px) 0 0 / 132px 100% repeat-x,
    linear-gradient(var(--fence-color), var(--fence-color)) 0 7px / 100% 5px no-repeat,
    linear-gradient(var(--fence-color), var(--fence-color)) 0 19px / 100% 5px no-repeat,
    linear-gradient(var(--fence-color), var(--fence-color)) 0 31px / 100% 5px no-repeat;
}
.fence--light { --fence-color: var(--on-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 96px);
  background:
    repeating-linear-gradient(100deg, rgba(20, 35, 48, 0.035) 0 72px, transparent 72px 144px),
    var(--limestone);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}
.hero__copy { padding-bottom: clamp(24px, 4vw, 56px); }
.hero h1 { max-width: 11ch; margin-bottom: 0.32em; }
.hero__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34em;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 28px 0 22px;
}
.hero__link { font-weight: 600; color: var(--ink); }
.hero__note {
  font-size: var(--step--1);
  color: var(--ink-2);
  max-width: 40em;
  margin: 0;
}

.hero__art { margin: 0; padding-bottom: 20px; }
.gate { width: 100%; height: auto; }
.gate__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
}
.gate__caption {
  font-size: var(--step--1);
  color: var(--ink-2);
  text-align: center;
  margin: 10px 0 0;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section__head h2 { margin: 0; }
.section__intro { color: var(--ink-2); max-width: 34em; margin: 0; }

/* ---------- Programme entries ---------- */
.programme { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.programme > li { border-bottom: 1px solid var(--line); }

.entry {
  --silk: var(--cobalt);
  --silk-on: #ffffff;
  display: grid;
  grid-template-columns: 84px 116px minmax(0, 1fr) minmax(0, 1fr) 272px;
  grid-template-areas:
    "cloth silk head offer action"
    "cloth silk desc desc action";
  column-gap: 28px;
  row-gap: 10px;
  padding-block: 30px;
}
.entry--2 { --silk: var(--rose); }
.entry--3 { --silk: var(--saffron); --silk-on: var(--ink); }

.entry__cloth {
  grid-area: cloth;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  background: var(--silk);
  color: var(--silk-on);
  border-radius: var(--radius-s);
  font-family: var(--display);
  font-weight: 850;
  font-size: 3.4rem;
  line-height: 1;
  min-height: 100%;
}
.entry__silk { grid-area: silk; width: 116px; height: auto; align-self: start; }

.entry__head { grid-area: head; }
.entry__head h3 { margin: 0 0 4px; font-size: var(--step-3); }
.entry__cat { margin: 0 0 12px; color: var(--ink-2); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status--ok { background: var(--ok-bg); color: var(--ok-ink); }
.status--wait { background: var(--wait-bg); color: var(--wait-ink); }

.entry__offer { grid-area: offer; }
.offer__lead { margin: 0; font-weight: 600; color: var(--ink-2); }
.offer__figure {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1.9rem + 2.4vw, 3.9rem);
  line-height: 0.95;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}
.offer__extra {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
}

.code {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.code__label { font-size: 0.85rem; color: var(--ink-2); }
.code__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.code__copy {
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.code__copy:hover { background: var(--ink); color: var(--paper); }
.code__copy[hidden] { display: none; }
.code__status { font-size: 0.85rem; color: var(--ok-ink); min-height: 1em; }

.entry__desc { grid-area: desc; margin: 6px 0 0; max-width: 46em; }
.entry__desc strong { font-weight: 650; }

.entry__action { grid-area: action; display: grid; align-content: start; gap: 10px; }
.entry__dest,
.entry__terms { margin: 0; font-size: var(--step--1); color: var(--ink-2); line-height: 1.45; }
.entry__terms { padding-top: 10px; border-top: 1px solid var(--line); }

.programme-note {
  margin: 22px 0 0;
  font-size: var(--step--1);
  color: var(--ink-2);
  max-width: 60em;
}

/* ---------- Tote board ---------- */
.board {
  --focus: var(--saffron);
  background: var(--ink);
  color: var(--on-ink);
}
.board a { color: var(--saffron-soft); }
.board .section__intro { color: var(--on-ink-2); }

.tote {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid rgba(237, 240, 234, 0.35);
}
.tote caption { text-align: left; }
.tote th,
.tote td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(237, 240, 234, 0.18);
}
.tote td + td,
.tote th + th { border-left: 1px solid rgba(237, 240, 234, 0.12); }
.tote thead th {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--on-ink-2);
  background: rgba(237, 240, 234, 0.06);
}
.tote tbody th {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}
.tote__post {
  display: inline-grid;
  place-items: center;
  width: 1.5em; height: 1.5em;
  margin-right: 10px;
  border-radius: var(--radius-s);
  font-size: 0.85em;
  vertical-align: 0.05em;
}
.tote__post--1 { background: var(--cobalt); color: #fff; }
.tote__post--2 { background: var(--rose); color: #fff; }
.tote__post--3 { background: var(--saffron); color: var(--ink); }
.tote__fig {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--saffron);
  font-variant-numeric: lining-nums tabular-nums;
}
.tote__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}
.tote__muted { color: var(--on-ink-2); }
.tote .status { font-size: 0.82rem; }

.board__note {
  margin: 22px 0 0;
  font-size: var(--step--1);
  color: var(--on-ink-2);
  max-width: 62em;
}

/* ---------- Checklist ---------- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 3px solid var(--ink);
}
.checks li {
  padding: 26px 28px 26px 0;
  border-bottom: 1px solid var(--line);
}
.checks li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.checks h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--step-2);
}
.checks h3::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border: 2.5px solid var(--ink);
  border-radius: 3px;
}
.checks p { margin: 0; color: var(--ink-2); max-width: 34em; }

.tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 22px;
  align-items: center;
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 8px solid var(--cobalt);
  border-radius: var(--radius-s);
}
.tip__domain {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--cobalt);
}
.tip p { margin: 0; }

/* ---------- Responsible gambling ---------- */
.care {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
}
.section--care { padding-top: 0; }
.care h2 { margin-bottom: 0.4em; }
.care h3 { font-size: var(--step-2); }
.care .btn { margin-top: 4px; }
.care__warning {
  margin: 0 0 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-s);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.1;
}
.care__age {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-weight: 700;
}
.care__age .age-badge { font-size: 1.6rem; height: 1.9em; min-width: 2.7em; }
.care__help {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.care__help li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--limestone); }
.care__help strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.care__help a { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 3px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 750;
  font-size: var(--step-1);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: translateY(-4px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; max-width: 46em; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Inner pages ---------- */
.page-head {
  padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px);
  background:
    repeating-linear-gradient(100deg, rgba(20, 35, 48, 0.035) 0 72px, transparent 72px 144px),
    var(--limestone);
}
.page-head h1 { font-size: var(--step-4); max-width: 14ch; margin-bottom: 0.3em; }
.page-head__lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0; }

.page-body { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--cobalt); }

.fact-card {
  margin: 0 0 2em;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 8px solid var(--ink);
  border-radius: var(--radius-s);
}
.fact-card p:last-child { margin-bottom: 0; }
.fact-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.fact-card dt { font-weight: 700; }
.fact-card dd { margin: 0; overflow-wrap: anywhere; }

.contact-card {
  display: grid;
  gap: 6px;
  margin: 0 0 2em;
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-m);
  --focus: var(--saffron);
}
.contact-card__org { margin: 0; font-weight: 700; color: var(--on-ink-2); }
.contact-card__mail {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 0.9rem + 2.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--saffron-soft);
  overflow-wrap: anywhere;
}
.contact-card .btn { justify-self: start; margin-top: 14px; background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.contact-card .btn:hover { background: var(--paper); border-color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  --focus: var(--saffron);
  background: var(--ink);
  color: var(--on-ink);
  margin-top: 0;
}
.site-footer a { color: var(--on-ink); }
.site-footer__fence { padding-top: 26px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 36px 56px;
  padding-block: clamp(40px, 6vw, 72px) 36px;
}
.site-footer .brand { color: var(--on-ink); margin-bottom: 16px; }
.site-footer .brand__sub { color: var(--on-ink-2); }
.site-footer__desc { color: var(--on-ink-2); max-width: 30em; }
.site-footer h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--on-ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer__org { margin: 0 0 4px; font-weight: 700; }
.site-footer__legal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 22px;
  align-items: start;
  padding-block: 26px 34px;
  border-top: 1px solid rgba(237, 240, 234, 0.2);
  font-size: var(--step--1);
  color: var(--on-ink-2);
}
.site-footer__legal .age-badge { color: var(--on-ink); font-size: 1.3rem; }
.site-footer__legal p { margin: 0 0 0.7em; max-width: 78em; }
.site-footer__legal p:last-child { margin-bottom: 0; }
.site-footer__legend { color: var(--on-ink); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .entry {
    grid-template-columns: 76px 100px minmax(0, 1fr) 250px;
    grid-template-areas:
      "cloth silk head action"
      "cloth silk offer action"
      "cloth silk desc desc";
  }
  .entry__silk { width: 100px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__art { max-width: 520px; width: 100%; justify-self: center; }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .checks li,
  .checks li + li { padding: 22px 0; border-left: 0; }
  .care { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }

  .entry {
    grid-template-columns: 58px minmax(0, 1fr) 84px;
    grid-template-areas:
      "cloth head silk"
      "offer offer offer"
      "desc desc desc"
      "action action action";
    column-gap: 16px;
    row-gap: 16px;
    padding-block: 26px;
  }
  .entry__cloth { font-size: 2.6rem; min-height: 0; height: 84px; padding-top: 10px; }
  .entry__silk { width: 84px; }
  .entry__head h3 { font-size: var(--step-2); }
  .entry__action { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile navigation: collapsed only when JavaScript is available */
@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav__end { justify-content: space-between; padding-top: 6px; }

  /* Without JavaScript the links simply wrap under the brand */
  html:not(.js) .site-nav { flex-basis: 100%; }
}

@media (max-width: 640px) {
  body { line-height: 1.55; }
  .masthead__inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 1.2rem; }
  .brand__sub { font-size: 0.74rem; }
  .brand__mark { width: 38px; height: 35px; }
  .nav-toggle { padding: 8px 12px; }
  .legend-bar { font-size: 0.78rem; }
  .tote .status { justify-self: start; }
  .hero__actions .btn { width: 100%; }

  .tote,
  .tote tbody,
  .tote tr,
  .tote td,
  .tote th { display: block; width: 100%; }
  .tote { border: 0; }
  .tote thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tote tr {
    margin-bottom: 16px;
    border: 1.5px solid rgba(237, 240, 234, 0.35);
    border-radius: var(--radius-s);
  }
  .tote tbody th { padding: 14px 16px; background: rgba(237, 240, 234, 0.06); }
  .tote td {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 12px;
    padding: 10px 16px;
    border-left: 0 !important;
  }
  .tote td:last-child { border-bottom: 0; }
  .tote td::before {
    content: attr(data-label);
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--on-ink-2);
    padding-top: 0.25em;
  }

  .tip { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__legal { grid-template-columns: minmax(0, 1fr); }
  .fact-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fact-card dd { margin-bottom: 10px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .legend-bar, .nav-toggle, .site-nav, .fence, .hero__art, .code__copy { display: none !important; }
  body, .board, .site-footer { background: #fff; color: #000; }
  .board .tote__fig, .board a, .site-footer a { color: #000; }
}
