/* Zoe Studios site: the design system and the pages, one stylesheet.
   Colours measured from the source files (see README "Colour tokens"); never guessed.
   Round 2 (the studio home, Terms, Privacy) builds on the same tokens and components. */

/* ---------- Fonts (local, OFL: assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* The studio (measured from ZOE_STUDIOS_LOGO.png) */
  --navy: #021849;          /* the logo's outline: ink and dark surfaces */
  --navy-2: #0b2a63;        /* a raised surface on navy */
  --teal: #23cac0;          /* the owl: the studio's accent */
  --teal-deep: #09a7aa;     /* the owl's shade */
  --orange: #fe7103;        /* the beak: one small accent per page, never text */
  /* Chess Life (the one-pager and the game) */
  --blue: #1e6fe0;          /* the one-pager's blue */
  --blue-ink: #1557c0;      /* the blue for small text and links on light surfaces */
  --blue-light: #2e8af2;    /* the sky's lighter part, behind the globe only */
  --blue-tint: #eaf2fe;     /* the one-pager's pale blue fill */
  --cream: #f6ece0;         /* the game's paper */
  --cream-2: #efe1cf;       /* lines and quiet fills on paper */
  --cream-3: #feeed0;       /* the logo letters' cream */
  --gold: #f4bb1d;          /* the game's primary button */
  --gold-deep: #d99a06;
  --feel-fill: #f3c895;     /* "FEEL SMART." fill (the one-pager) */
  --feel-stroke: #7a4f1c;   /* "FEEL SMART." outline (the one-pager) */
  --wood-light: #f8c785;    /* the one-pager board's light square */
  --wood-dark: #9e4a1b;     /* the one-pager board's dark square */
  --white: #ffffff;
  --muted: #45506b;         /* secondary text on paper and white */
  --muted-on-navy: #b8c4dc; /* secondary text on navy */

  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(2 24 73 / 0.06), 0 8px 24px rgb(2 24 73 / 0.10);
  --shadow-lift: 0 2px 4px rgb(2 24 73 / 0.08), 0 16px 40px rgb(2 24 73 / 0.16);
  --measure: 68ch;
  --gutter: 16px;
  --wide: 1160px;
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17 px */
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }  /* 18 px */
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .band-dark :focus-visible { outline-color: var(--teal); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- Type scale ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em; }
.h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); line-height: 1.08; }
.h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1.15; }
.h3 { font-size: 1.4rem; line-height: 1.2; }
.lead { font-size: 1.125rem; line-height: 1.6; }
@media (min-width: 1024px) { .lead { font-size: 1.25rem; } }

/* The one small orange accent of a page: a dot before an eyebrow. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: inset 0 -4px 0 var(--gold-deep), 0 0 0 2px var(--navy), 0 6px 16px rgb(2 24 73 / 0.22);
}
.btn-gold:hover { background: #f7c63e; transform: translateY(-1px); text-decoration: none; }
.btn-gold:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 var(--gold-deep), 0 0 0 2px var(--navy), 0 3px 8px rgb(2 24 73 / 0.2); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 16px rgb(2 24 73 / 0.18);
}
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.55);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.btn .arrow { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--cream-2);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(255 255 255 / 0.88); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}
.brand img { width: 34px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name span { color: var(--teal-deep); }  /* "Studios" */

.nav-desktop { display: none; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop .nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover { background: var(--blue-tint); }
.nav-list a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }

/* The phone menu: a <details>, works without JS. */
.menu { position: relative; }
.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--cream-2);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--teal); }
.menu-icon { width: 18px; height: 12px; position: relative; flex: none; }
.menu-icon::before, .menu-icon::after, .menu-icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--navy);
}
.menu-icon::before { top: 0; }
.menu-icon span { top: 5px; }
.menu-icon::after { bottom: 0; }
.menu[open] .menu-icon span { opacity: 0; }
.menu[open] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { bottom: 5px; transform: rotate(-45deg); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.menu-panel .nav-list a { border-radius: var(--radius-sm); padding: 10px 14px; }
.menu-panel .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--teal); border-radius: 4px var(--radius-sm) var(--radius-sm) 4px; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: 56px 32px;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: auto 1fr; align-items: start; gap: 32px 48px; }
  .footer-cols { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: auto 1fr auto; }
  .footer-cols { grid-column: auto; }
}
.footer-logo img { width: 96px; }
.footer-studio p { margin: 0 0 6px; }
.footer-studio .place { color: var(--muted-on-navy); }
.footer-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.0625rem;
  user-select: all;
  white-space: nowrap;
}
.footer-mail:hover { color: var(--white); }
.footer-links h2 {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-navy);
}
.footer-links ul { list-style: none; margin: 0 0 20px; padding: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: auto auto; } }
.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: var(--muted-on-navy);
  font-size: 0.9375rem;
}

/* ---------- The board motif: a quiet 8 by 8 block on dark bands ---------- */
.board-motif {
  position: absolute;
  width: 384px;
  height: 384px;
  background-image: repeating-conic-gradient(rgb(255 255 255 / 0.07) 0 25%, transparent 0 50%);
  background-size: 96px 96px;   /* 2 squares per tile: 8 by 8 over 384 px */
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}

/* ---------- Landing: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  /* A soft light behind the globe only (as the one-pager's header); text never sits on it. */
  --glow-x: 50%;
  --glow-y: 157px;
  --glow-r: 190px;
  background:
    radial-gradient(circle var(--glow-r) at var(--glow-x) var(--glow-y), rgb(46 138 242 / 0.9), rgb(46 138 242 / 0) 100%),
    linear-gradient(180deg, #1a6ade 0%, var(--blue) 55%, #1a64d4 100%);
  padding-block: 32px 0;
}
@media (min-width: 768px) { .hero { --glow-y: 173px; } }
@media (min-width: 1024px) {
  .hero { --glow-x: calc(max(var(--gutter), (100% - var(--wide)) / 2) + 97px); --glow-y: 161px; --glow-r: 180px; }
}
.hero-grid {
  display: grid;
  gap: 8px;
  align-items: end;
}
.hero-copy { padding-bottom: 8px; text-align: center; }
.hero-globe {
  width: min(250px, 64vw);
  margin: 0 auto 12px;
}
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 1.2rem + 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-shadow: 0 3px 0 rgb(2 24 73 / 0.22);
}
.headline .line-1 { color: var(--white); }
.headline .line-1 { display: block; }
.headline .line-2 {
  display: block;
  color: var(--feel-fill);
  -webkit-text-stroke: 0.07em var(--feel-stroke);
  paint-order: stroke fill;
  letter-spacing: -0.01em;
  margin-top: 0.06em;
}
.hero .lead { max-width: 40ch; margin: 0 auto 24px; color: var(--white); }
.hero .btn-row { justify-content: center; }
.hero-note { margin: 12px 0 0; font-size: 0.875rem; color: rgb(255 255 255 / 0.92); }

/* Tomo over the board (as the one-pager's header) */
.scene {
  position: relative;
  width: min(380px, 100%);
  margin: 24px auto 0;
  padding-top: 150px;      /* room for Tomo above the board */
}
.scene-tomo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 200px;
  height: 196px;           /* the picture cropped at the waist by the board */
  transform: translateX(-50%);
  overflow: hidden;
}
.scene-tomo img { width: 200px; height: auto; }
.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  padding: 10px;
  background: linear-gradient(160deg, #fbf3e6, #e9d7bb);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 0 rgb(255 255 255 / 0.6) inset, 0 18px 40px rgb(2 24 73 / 0.35);
}
.board > i {
  display: block;
  --wood: linear-gradient(135deg, rgb(255 255 255 / 0.12), rgb(122 79 28 / 0.10));
  background-color: var(--wood-light);
  background-image: var(--pc, none), var(--wood);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 86% 86%, cover;
}
.board > i.d { background-color: var(--wood-dark); --wood: linear-gradient(135deg, rgb(255 255 255 / 0.07), rgb(0 0 0 / 0.12)); }
.board > i.hl { background-color: #d8a35a; }
/* The game's pieces (assets/img/piece-*.webp, PNG where WebP is not supported). */
.p-wK { --pc: url("../img/piece-wK.png"); }
.p-wQ { --pc: url("../img/piece-wQ.png"); }
.p-wR { --pc: url("../img/piece-wR.png"); }
.p-wB { --pc: url("../img/piece-wB.png"); }
.p-wN { --pc: url("../img/piece-wN.png"); }
.p-wP { --pc: url("../img/piece-wP.png"); }
.p-bK { --pc: url("../img/piece-bK.png"); }
.p-bQ { --pc: url("../img/piece-bQ.png"); }
.p-bR { --pc: url("../img/piece-bR.png"); }
.p-bB { --pc: url("../img/piece-bB.png"); }
.p-bN { --pc: url("../img/piece-bN.png"); }
.p-bP { --pc: url("../img/piece-bP.png"); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .p-wK { --pc: image-set(url("../img/piece-wK.webp") type("image/webp"), url("../img/piece-wK.png") type("image/png")); }
  .p-wQ { --pc: image-set(url("../img/piece-wQ.webp") type("image/webp"), url("../img/piece-wQ.png") type("image/png")); }
  .p-wR { --pc: image-set(url("../img/piece-wR.webp") type("image/webp"), url("../img/piece-wR.png") type("image/png")); }
  .p-wB { --pc: image-set(url("../img/piece-wB.webp") type("image/webp"), url("../img/piece-wB.png") type("image/png")); }
  .p-wN { --pc: image-set(url("../img/piece-wN.webp") type("image/webp"), url("../img/piece-wN.png") type("image/png")); }
  .p-wP { --pc: image-set(url("../img/piece-wP.webp") type("image/webp"), url("../img/piece-wP.png") type("image/png")); }
  .p-bK { --pc: image-set(url("../img/piece-bK.webp") type("image/webp"), url("../img/piece-bK.png") type("image/png")); }
  .p-bQ { --pc: image-set(url("../img/piece-bQ.webp") type("image/webp"), url("../img/piece-bQ.png") type("image/png")); }
  .p-bR { --pc: image-set(url("../img/piece-bR.webp") type("image/webp"), url("../img/piece-bR.png") type("image/png")); }
  .p-bB { --pc: image-set(url("../img/piece-bB.webp") type("image/webp"), url("../img/piece-bB.png") type("image/png")); }
  .p-bN { --pc: image-set(url("../img/piece-bN.webp") type("image/webp"), url("../img/piece-bN.png") type("image/png")); }
  .p-bP { --pc: image-set(url("../img/piece-bP.webp") type("image/webp"), url("../img/piece-bP.png") type("image/png")); }
}

@media (min-width: 768px) {
  .hero { padding-top: 48px; }
  .scene { width: 420px; padding-top: 168px; }
  .scene-tomo { width: 224px; height: 220px; }
  .scene-tomo img { width: 224px; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; align-items: end; }
  .hero-copy { text-align: left; padding-bottom: 72px; }
  .hero-globe { width: 210px; margin: 0 0 16px -8px; }
  .hero .lead { margin-left: 0; }
  .hero .btn-row { justify-content: flex-start; }
  .scene { width: 440px; margin: 0 0 0 auto; padding-top: 176px; }
  .scene-tomo { width: 236px; height: 232px; left: 54%; }
  .scene-tomo img { width: 236px; }
}
@media (min-width: 1280px) {
  .scene { width: 480px; padding-top: 190px; }
  .scene-tomo { width: 252px; height: 248px; }
  .scene-tomo img { width: 252px; }
}

/* The hero's one calm entrance; nothing moves under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-2 { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

/* The three cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
@media (min-width: 1024px) { .card { padding: 32px 28px; } }
.feature-card { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; align-items: center; }
.feature-card .icon { grid-row: span 2; width: 64px; height: 56px; }
.feature-card .icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--blue-ink); }
.feature-card p { margin: 0; color: var(--navy); }
@media (min-width: 768px) {
  .feature-card { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .feature-card .icon { grid-row: auto; width: 72px; height: 64px; }
  .feature-card .icon img { object-position: left center; }
}

/* The screens strip */
.screens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.phone {
  flex: 0 1 280px;
  min-width: 0;
  padding: 8px;
  background: var(--navy);
  border-radius: 30px;
  box-shadow: var(--shadow-lift);
}
.phone img {
  width: 100%;
  border-radius: 23px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--cream-2);
}
.phone:nth-child(2) { transform: translateY(-24px); }
/* On phones the screens are a strip that scrolls sideways inside itself (the page never does). */
@media (max-width: 767px) {
  .screens {
    justify-content: flex-start;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 8px var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 min(64vw, 260px); padding: 6px; border-radius: 26px; scroll-snap-align: center; }
  .phone img { border-radius: 20px; }
  .phone:nth-child(2) { transform: none; }
}
.cards-section { padding-bottom: 32px; }
.screens-section { padding-top: 32px; }
@media (min-width: 1024px) { .cards-section { padding-bottom: 48px; } .screens-section { padding-top: 64px; } }

/* Dark band (PRO) */
.band-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.pro-band { padding-block: 56px 0; }
.pro-grid { display: grid; gap: 8px; align-items: end; position: relative; }
.pro-copy { padding-bottom: 48px; }
.pro-copy .h2 { margin-bottom: 14px; }
.pro-copy p { max-width: 36rem; color: var(--white); }
.pro-copy .btn-row { margin-top: 24px; }
.pro-mark {
  display: inline-block;
  padding: 0.06em 0.42em 0.02em;
  margin-left: 0.12em;
  border-radius: 0.35em;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8em;
  vertical-align: 0.08em;
}
.pro-tomo { width: min(260px, 70%); margin: 0 auto; }
.pro-band .board-motif { right: -60px; top: -40px; }
@media (min-width: 768px) {
  .pro-grid { grid-template-columns: 1fr 300px; gap: 32px; }
  .pro-copy { padding-bottom: 64px; }
  .pro-tomo { width: 300px; }
}
@media (min-width: 1024px) {
  .pro-band { padding-top: 72px; }
  .pro-grid { grid-template-columns: 1fr 340px; }
  .pro-copy { padding-bottom: 88px; }
  .pro-tomo { width: 340px; }
}

/* ---------- Document pages ---------- */
.page-title {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: 40px 44px;
}
@media (min-width: 1024px) { .page-title { padding-block: 64px 68px; } }
.page-title .board-motif { right: -96px; top: -110px; }
/* A page title with a character beside it (help): the picture stands on the band's bottom edge. */
.page-title .title-art { display: none; }
@media (min-width: 768px) {
  .page-title.has-art { padding-bottom: 0; }
  .page-title.has-art .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
  .page-title.has-art .title-text { padding-bottom: 44px; }
  .page-title .title-art { display: block; width: 200px; position: relative; }
}
@media (min-width: 1024px) {
  .page-title.has-art .title-text { padding-bottom: 68px; }
  .page-title .title-art { width: 240px; margin-right: 40px; }
}
.page-title .eyebrow { color: var(--teal); }
.page-title h1 { margin-bottom: 16px; }
@media (min-width: 1024px) { .page-title h1 { max-width: 22ch; } }
.page-title .intro { max-width: var(--measure); margin: 0; color: var(--white); }
.page-title .intro a { color: var(--teal); font-weight: 700; }
.page-title .intro a:hover { color: var(--white); }
.updated {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--muted-on-navy);
  font-size: 0.9375rem;
}

.doc { padding-block: 40px 72px; }
@media (min-width: 1024px) { .doc { padding-block: 56px 104px; } }
.doc-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
}
.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--navy);
}
.prose section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--cream-2); }
.prose .opening { font-size: 1.125rem; margin-bottom: 40px; }
@media (min-width: 1024px) { .prose .opening { font-size: 1.25rem; } }
.anchor {
  margin-left: 0.3em;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.7em;
  opacity: 0;
  transition: opacity 0.15s;
}
.prose h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
.support-line {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.support-line a { font-weight: 700; }

/* "In short" */
.in-short {
  margin: 0 0 40px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--blue);
}
@media (min-width: 768px) { .in-short { padding: 28px 32px; } }
.in-short h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: var(--blue-ink);
}
.in-short ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.in-short li { position: relative; padding-left: 30px; }
.in-short li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--teal-deep);
  border-bottom: 3px solid var(--teal-deep);
  transform: rotate(-45deg);
}

/* Table of contents: a list above the text on phones, sticky beside it on wide screens */
.toc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 12px;
}
.toc h2 {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.3;
}
.toc a::before {
  content: counter(toc);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.toc a:hover { color: var(--blue-ink); text-decoration: underline; }
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Help: the questions */
.qa-list { display: grid; gap: 12px; max-width: 46rem; }
.qa {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qa > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px 16px 24px;
  cursor: pointer;
  border-radius: var(--radius);
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--navy);
}
.qa > summary:hover h2 { color: var(--blue-ink); }
.chev {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-tint);
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--blue-ink);
  border-bottom: 2.5px solid var(--blue-ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.qa[open] .chev { transform: rotate(180deg); background: var(--teal); }
.qa[open] .chev::before { border-color: var(--navy); }
.qa-body { padding: 0 24px 24px; }
.qa-body .btn { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

.contact-card {
  margin-top: 40px;
  max-width: 46rem;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 768px) { .contact-card { padding: 36px 40px; } }
.contact-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin-bottom: 10px; }
.contact-card p { font-size: 1.125rem; }
.contact-card a { color: var(--white); font-weight: 700; }
.contact-card .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.contact-card .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; }

/* ---------- 404 ---------- */
.not-found { padding-block: 56px 88px; text-align: center; }
.not-found img { width: 200px; margin: 0 auto 20px; }
.not-found h1 { margin-bottom: 20px; }
@media (min-width: 768px) { .not-found img { width: 240px; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .btn { display: none !important; }
  body { background: #fff; }
  .page-title { background: none; color: #000; }
  .page-title .board-motif { display: none; }
  .qa:not([open]) > :not(summary) { display: block; }
}
