/* The Tech Pack Room (/guides): the guides' own pieces, drawn in the home page's language.
   Loaded after house.css (the home page's stylesheet, copied by tools/build_guides.py), so every colour, font and
   stripe comes from there. Bands alternate black > pattern paper > white > crimson > black > cream, as on the home page. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.g-page { background: var(--ink); }
.g-page main { display: block; }
.g-page [id] { scroll-margin-top: 24px; }
.g-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.g-page button { font: inherit; }
.g-page .band a:not([class]) { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- the way back: two pills, top right ---------- */
.g-top { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 25; display: flex; gap: 8px; }
.g-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(10, 10, 10, 0.84); border: 1px solid rgba(232, 212, 182, 0.4); color: var(--cream); text-decoration: none;
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.g-pill:hover { border-color: var(--cream); }
.g-pill-room { background: rgba(72, 0, 17, 0.9); }
.shot-clock span { transform: scaleX(var(--g-read, 0)); transition: transform .12s linear; }

/* ---------- bands ---------- */
.band.g-hero, .band.g-ink, .band.g-red, .band.g-paper, .band.g-cream, .band.g-white { padding-block: clamp(72px, 8.4vw, 116px); }
/* the home page's bands hide their overflow, which would stop the sketches staying in view: clip instead (no scroll box) */
.g-page .band { overflow: visible; overflow: clip; }
.g-page .band.g-hero { overflow: hidden; }
.g-ink { background-color: var(--ink); color: var(--cream);
  background-image: radial-gradient(ellipse 70% 22% at 50% 18%, rgba(72, 0, 17, 0.34), rgba(72, 0, 17, 0) 70%), radial-gradient(ellipse 60% 20% at 40% 80%, rgba(72, 0, 17, 0.26), rgba(72, 0, 17, 0) 70%), var(--stars), var(--stars);
  background-size: 100% 100%, 100% 100%, 720px 720px, 520px 520px; background-position: 0 0, 0 0, 0 0, 260px 340px; }
.g-red { color: var(--cream); background-color: #480011;
  background-image: radial-gradient(ellipse 42% 30% at 22% 28%, rgba(255, 236, 226, 0.07), rgba(255, 236, 226, 0) 70%), radial-gradient(ellipse 36% 26% at 78% 62%, rgba(255, 236, 226, 0.06), rgba(255, 236, 226, 0) 70%), radial-gradient(ellipse 120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.32) 100%); }
.g-paper { color: var(--ink); background-color: var(--cream);
  background-image: linear-gradient(rgba(72, 0, 17, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 0, 17, 0.11) 1px, transparent 1px), linear-gradient(rgba(72, 0, 17, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 0, 17, 0.045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px; }
.g-cream { color: var(--ink); background: var(--cream); }
.g-white { color: var(--ink); background: var(--paper); }

/* ---------- the first screen ---------- */
.band.g-hero { background-color: var(--ink); color: var(--cream); padding-block: clamp(96px, 11vw, 150px) clamp(110px, 11vw, 150px);
  background-image: radial-gradient(ellipse 55% 45% at 12% 8%, rgba(72, 0, 17, 0.55), rgba(72, 0, 17, 0) 70%), radial-gradient(ellipse 45% 40% at 92% 72%, rgba(72, 0, 17, 0.42), rgba(72, 0, 17, 0) 70%), var(--stars), var(--stars);
  background-size: 100% 100%, 100% 100%, 720px 720px, 520px 520px; background-position: 0 0, 0 0, 0 0, 260px 340px; }
.g-hero-lane { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.g-hero .heading img { height: clamp(58px, 9vw, 132px); }
.g-hero .heading.stack { gap: clamp(6px, 0.8vw, 12px); }
.g-kick { color: var(--cream-dim); }
.g-kick a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(232, 212, 182, 0.45); }
.g-kick a:hover { border-bottom-color: var(--cream); }
.g-lead { margin: 0; max-width: 42em; font-size: var(--step-body); line-height: 1.62; color: rgba(232, 212, 182, 0.9); text-wrap: pretty; }
.g-ctas { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px 18px; margin-top: 10px; }
.g-ctas-center { justify-content: center; margin-top: clamp(28px, 3vw, 40px); }
button.wa-cta { border: 0; cursor: pointer; font: inherit; }
button.tts-alt { background: transparent; cursor: pointer; font: inherit; }
.g-white button.tts-alt, .g-paper button.tts-alt, .g-cream button.tts-alt { border-color: var(--ink); color: var(--ink); }
.wa-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--crimson), 0 10px 0 3px var(--crimson); }
.wa-cta:focus-visible, .tts-alt:focus-visible, .g-go:focus-visible, .g-ghost:focus-visible { outline: 3px solid var(--cream); outline-offset: 5px; }
.g-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; width: min(760px, 100%); border: 2px solid rgba(232, 212, 182, 0.5); border-radius: 14px; overflow: hidden; background: rgba(10, 10, 10, 0.55); }
.g-board > div { padding: 14px 14px 12px; border-right: 1px solid rgba(232, 212, 182, 0.22); display: flex; flex-direction: column-reverse; gap: 4px; }
.g-board > div:last-child { border-right: 0; }
.g-board dt { font-family: var(--label); font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); }
.g-board dd { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--cream); }
.g-board dd small { font-family: var(--label); font-size: 14px; letter-spacing: 0.12em; color: var(--cream-dim); }
.g-jump { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-jump a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(232, 212, 182, 0.42); color: var(--cream); text-decoration: none;
  font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; transition: background .2s, color .2s; }
.g-jump a:hover { background: var(--cream); color: var(--ink); }
/* a tape measure laid across the bottom of the first screen */
.g-tape { position: absolute; left: -2%; right: -2%; bottom: clamp(26px, 3vw, 40px); height: 30px; transform: rotate(-1.1deg); pointer-events: none; opacity: 0.94;
  background: repeating-linear-gradient(90deg, rgba(10, 10, 10, 0.55) 0 1px, transparent 1px 8px) left top / 100% 7px no-repeat,
              repeating-linear-gradient(90deg, rgba(10, 10, 10, 0.8) 0 1.5px, transparent 1.5px 40px) left top / 100% 13px no-repeat,
              repeating-linear-gradient(90deg, #480011 0 2px, transparent 2px 80px) left top / 100% 20px no-repeat,
              linear-gradient(180deg, #EFDFC5, #E2CBA8);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); border-top: 1px solid rgba(255, 255, 255, 0.4); }

/* ---------- section heads ---------- */
.g-head { display: flex; flex-wrap: wrap; gap: 18px 56px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(30px, 3.6vw, 48px); }
.g-head .label { margin-bottom: 12px; color: var(--crimson); }
.g-ink .g-head .label, .g-red .g-head .label { color: var(--cream-dim); }
.g-say { margin: 0; max-width: 31em; display: flex; flex-direction: column; gap: 8px; }
.g-say b { font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.2; text-transform: uppercase; color: var(--crimson); text-wrap: balance; }
.g-say span { font-size: 17px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.g-ink .g-say b, .g-red .g-say b { color: var(--cream); }
.g-ink .g-say span, .g-red .g-say span { color: var(--cream-dim); }
.g-h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; text-transform: uppercase; color: var(--crimson); text-wrap: balance; }
.g-ink .g-h2, .g-red .g-h2 { color: var(--cream); }
.g-note { margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--cream-dim); max-width: 60em; }
.g-note-dark { color: var(--ink-soft); font-size: 17px; border-left: 4px solid var(--crimson); padding-left: 16px; }
.g-paper .g-note, .g-white .g-note, .g-cream .g-note { color: var(--ink-soft); }

/* ---------- cards (the Design Studio's cards from the home page) ---------- */
.g-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px 28px; }
.g-cards-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g-cards li { min-width: 0; }
.g-cards li > a, .g-cards li > div { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 20px 22px 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--crimson); color: var(--ink-soft); text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.g-cards li > a:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--crimson); }
.g-cards li > a:focus-visible { outline: 3px solid var(--crimson); outline-offset: 4px; }
.g-cards b, .g-more b { position: absolute; right: 16px; top: 12px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--crimson); }
.g-cards h3 { margin: 0 0 8px; padding-right: 56px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--crimson); }
.g-cards p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.g-kind { align-self: flex-start; max-width: calc(100% - 58px); margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--crimson); color: var(--cream); font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.g-open { margin-top: auto; padding-top: 16px; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); }

/* ---------- the nine pages of a pack (hub, on black) ---------- */
.g-pack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.g-pack li { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border: 1px solid rgba(232, 212, 182, 0.3); border-radius: 12px; background: rgba(232, 212, 182, 0.05); }
.g-pack b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--cream); }
.g-pack h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.15; color: var(--cream); }
.g-pack p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--cream-dim); }
.g-pack .g-chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }   /* each chip is a link to the guide or template page that fills this page in */
.g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1.5px solid var(--cream); border-radius: 999px; background: var(--cream); color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.g-chip i { font-style: normal; letter-spacing: 0; transition: transform 0.2s; }
.g-chip:hover { background: var(--crimson); color: var(--cream); }
.g-chip:hover i { transform: translateX(3px); }
.g-chip:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .g-chip, .g-chip i { transition: none; } .g-chip:hover i { transform: none; } }

/* ---------- points of measure: the sketch beside its table ---------- */
.g-pom { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.g-sketch { position: sticky; top: 64px; padding: 14px 14px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--crimson); }
.g-red .g-sketch { box-shadow: 6px 6px 0 var(--ink); border-color: var(--ink); }
.g-ink .g-sketch { border-color: var(--cream); }
.g-views { display: block; }
.g-view { margin: 0; }
.g-view svg { display: block; width: 100%; height: auto; max-height: min(66vh, 560px); margin: 0 auto; }
.g-pom[data-view="front"] .g-view[data-v="back"], .g-pom[data-view="back"] .g-view[data-v="front"] { display: none; }
.g-vt { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.g-vt button { min-height: 34px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.g-vt button[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: var(--cream); }
.flat .pom { cursor: pointer; transition: opacity .2s; }
.flat .pom .pb { transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease-out); }
.g-pom.has-on .flat .pom { opacity: 0.16; }
.g-pom.has-on .flat .pom.on { opacity: 1; }
.flat .pom.on .pl { stroke-width: 2.6; animation: g-march 0.9s linear infinite; }
.flat .pom.on .pb { transform: scale(1.22); }
@keyframes g-march { to { stroke-dashoffset: -17; } }
@media (prefers-reduced-motion: reduce) { .flat .pom.on .pl { animation: none; } }
.g-pomt { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15.5px; line-height: 1.5; }
.g-pomt thead th { padding: 0 12px 4px; text-align: left; font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); }
.g-ink .g-pomt thead th, .g-red .g-pomt thead th { color: var(--cream-dim); }
.g-pomt tbody tr { cursor: pointer; outline: none; }
.g-pomt tbody th, .g-pomt tbody td { padding: 10px 12px; text-align: left; vertical-align: top; background: rgba(72, 0, 17, 0.045); border-top: 2px solid transparent; border-bottom: 2px solid transparent; transition: background .15s, border-color .15s; }
.g-pomt tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; border-left: 2px solid transparent; border-radius: 10px 0 0 10px; }
.g-pomt tbody td { color: var(--ink-soft); }
.g-pomt tbody td:last-child { white-space: nowrap; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--crimson); border-right: 2px solid transparent; border-radius: 0 10px 10px 0; }
.g-pomt tbody tr:hover > *, .g-pomt tbody tr:focus-visible > *, .g-pomt tbody tr.on > * { background: rgba(72, 0, 17, 0.1); border-color: var(--crimson); }
.g-red .g-pomt tbody th, .g-red .g-pomt tbody td, .g-ink .g-pomt tbody th, .g-ink .g-pomt tbody td { background: rgba(232, 212, 182, 0.07); color: var(--cream-dim); }
.g-red .g-pomt tbody th, .g-ink .g-pomt tbody th { color: var(--cream); }
.g-red .g-pomt tbody td:last-child, .g-ink .g-pomt tbody td:last-child { color: var(--cream); }
.g-red .g-pomt tbody tr:hover > *, .g-red .g-pomt tbody tr:focus-visible > *, .g-red .g-pomt tbody tr.on > *,
.g-ink .g-pomt tbody tr:hover > *, .g-ink .g-pomt tbody tr:focus-visible > *, .g-ink .g-pomt tbody tr.on > * { background: rgba(232, 212, 182, 0.16); border-color: var(--cream); }
.g-page th i, .g-pomt th i { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: var(--crimson); color: var(--cream); font-family: var(--label); font-weight: 700; font-size: 13.5px; font-style: normal; vertical-align: -1px; }
.g-red th i, .g-ink th i { background: var(--cream); color: var(--crimson); }

/* ---------- tables ---------- */
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.g-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; background: var(--paper); color: var(--ink-soft); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.g-table thead th { padding: 12px 14px; text-align: left; background: var(--ink); color: var(--cream); font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.g-table tbody th, .g-table tbody td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid rgba(10, 10, 10, 0.12); }
.g-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.g-table tbody tr:nth-child(even) > * { background: rgba(232, 212, 182, 0.28); }
.g-red .g-table, .g-ink .g-table { box-shadow: 6px 6px 0 var(--ink); }
.g-red .g-table { box-shadow: 6px 6px 0 #0A0A0A; }
.g-ink .g-table { box-shadow: 6px 6px 0 var(--crimson); border-color: var(--cream); }
.g-cols { min-width: 680px; }
.g-bomt { min-width: 960px; }
.g-bomt td:first-child { font-family: var(--label); font-weight: 700; color: var(--crimson); }
.g-bomt td:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.g-grade { min-width: 600px; }
.g-grade td { text-align: center !important; font-variant-numeric: tabular-nums; }
.g-grade thead th:not(:first-child) { text-align: center; }
.g-grade td:nth-child(2) { color: var(--crimson); font-weight: 700; }
.g-grade .g-base { background: rgba(72, 0, 17, 0.1) !important; color: var(--ink); font-weight: 700; }
.g-grade thead .g-base { background: var(--crimson) !important; color: var(--cream); }
.g-tol { align-self: start; }
.g-tol td:last-child { white-space: nowrap; font-family: var(--label); font-weight: 700; font-size: 15.5px; color: var(--crimson); }

/* ---------- tolerances: table + notes ---------- */
.g-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.g-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.g-notes li { padding: 16px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--crimson); }
.g-notes h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--crimson); }
.g-notes p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- rules of thumb, checks, steps ---------- */
.g-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 28px; }
.g-rules li { padding: 4px 0 4px 18px; border-left: 4px solid var(--crimson); font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.g-rules b { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--crimson); }
.g-checks { list-style: none; margin: 0; padding: 0; counter-reset: gc; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px 28px; }
.g-checks li { counter-increment: gc; position: relative; padding: 14px 16px 14px 62px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.g-checks li::before { content: counter(gc); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--crimson); color: var(--cream); font-family: var(--display); font-size: 18px; }
.g-steps { list-style: none; margin: 0; padding: 0; counter-reset: gs; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 26px; }
.g-steps li { counter-increment: gs; position: relative; padding: 18px 20px 18px 74px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 6px 6px 0 var(--crimson); }
.g-steps li::before { content: counter(gs, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--display); font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--crimson); }
.g-steps h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--crimson); }
.g-steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- the tech pack's nine pages, the example film ---------- */
.g-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px 26px; }
.g-pages li { position: relative; padding: 14px 16px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--crimson); }
.g-pages li[id] { scroll-margin-top: 96px; }   /* landed on from the main page's chips: clear of the pills (outranks .g-page [id]), and lit */
.g-pages li:target { outline: 3px solid var(--crimson); outline-offset: 5px; }
.g-pages img { display: block; width: 100%; height: auto; aspect-ratio: 297 / 210; object-fit: cover; border: 1px solid rgba(10, 10, 10, 0.25); border-radius: 4px; background: #F4EDE2; margin-bottom: 12px; }
.g-pages b { position: static; display: inline-block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px var(--crimson); margin-right: 10px; vertical-align: -3px; }
.g-pages h3 { display: inline; margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--crimson); }
.g-pages p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.g-film { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.g-film li { transform: rotate(-1.4deg); transition: transform .3s var(--ease-out); }
.g-film li:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.g-film li:nth-child(3) { transform: rotate(-0.6deg); }
.g-film li:hover { transform: rotate(0) scale(1.03); }
.g-film img { display: block; width: 100%; height: auto; border: 6px solid var(--paper); border-radius: 6px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45); background: var(--paper); }

/* ---------- the download band ---------- */
.g-get-lane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.g-get-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.g-get-text .label { color: var(--crimson); }
.g-get-text p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--ink-soft); max-width: 34em; }
.g-get-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.g-get-pic { margin: 0; }
.g-get-pic img { display: block; width: 100%; height: auto; filter: drop-shadow(10px 12px 0 rgba(72, 0, 17, 0.9)); }   /* the pages carry their own frames; the picture's background is clear */

/* ---------- buttons ---------- */
.g-go, .g-ghost { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1; text-transform: uppercase; transition: transform .2s var(--ease-out), background .2s, color .2s; }
.g-go { border: 2px solid var(--crimson); background: var(--crimson); color: var(--cream); box-shadow: 0 5px 0 var(--ink); }
.g-go:hover { transform: translateY(-2px); }
.g-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.g-go span, .g-ghost span { font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; color: rgba(232, 212, 182, 0.8); }
.g-ghost { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.g-ghost span { color: var(--ink-soft); }
.g-ghost:hover { background: var(--ink); color: var(--cream); }
.g-ghost:hover span { color: var(--cream-dim); }
.g-ink .g-ghost, .g-red .g-ghost { border-color: var(--cream); color: var(--cream); }
.g-ink .g-ghost:hover, .g-red .g-ghost:hover { background: var(--cream); color: var(--ink); }
.g-ink .g-go { box-shadow: 0 5px 0 var(--cream); }
.g-link { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.g-add { margin-top: 12px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px dashed var(--crimson); background: transparent; color: var(--crimson); cursor: pointer; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.g-add:hover { background: rgba(72, 0, 17, 0.08); }

/* ---------- Time Out: questions ---------- */
.g-faq { display: grid; gap: 12px; max-width: 920px; }
.g-faq details { border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); transition: box-shadow .2s; }
.g-faq details[open] { box-shadow: 6px 6px 0 var(--crimson); background: var(--paper); }
.g-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-family: var(--display); font-weight: 400; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.3; color: var(--ink); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--crimson); color: var(--cream); font-family: var(--label); font-size: 22px; font-weight: 700; line-height: 1; transition: transform .25s var(--ease-out); }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq summary:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 12px; }
.g-faq details p { margin: 0; padding: 0 18px 18px; font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); max-width: 46em; }

/* ---------- more from the Tech Pack Room ---------- */
.g-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 22px; }
.g-more a { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 18px 18px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); color: var(--ink-soft); text-decoration: none; box-shadow: 5px 5px 0 var(--crimson); transition: transform .2s var(--ease-out); }
.g-more a:hover { transform: translate(-2px, -2px); }
.g-more h3 { margin: 0 0 6px; padding-right: 50px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--crimson); }
.g-more p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.g-more .g-kind { margin-bottom: 12px; }
.g-more li.cur a { background: var(--paper); box-shadow: none; border-style: dashed; }
.g-more li.cur .g-kind::after { content: ' · you are here'; }

/* ---------- the last play ---------- */
.band.g-shot { text-align: center; padding-block: clamp(96px, 10vw, 136px);
  background-image: radial-gradient(ellipse 34% 30% at 50% 18%, rgba(255, 236, 206, 0.2), rgba(255, 236, 206, 0) 100%), radial-gradient(ellipse 125% 95% at 50% 40%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.42) 100%); }
.g-shot .lane { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.g-shot .label { color: var(--cream-dim); }
.g-shot .heading img { margin: 0 auto; }
.g-shot-say { margin: 0; max-width: 32em; font-size: var(--step-body); line-height: 1.6; color: var(--cream); }
.g-shot .tts-ctas { justify-content: center; }
.g-shot .tts-ctas > a { width: auto; }
.g-trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.g-trust li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(232, 212, 182, 0.4); font-family: var(--label); font-weight: 600; font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim); }
.g-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; }
.g-foot-links a { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.g-foot-links a:hover { color: var(--crimson); text-decoration: underline; }

/* ---------- the grader ---------- */
.g-grader { padding: clamp(16px, 2vw, 24px); background: var(--cream); color: var(--ink); border-radius: 16px; border: 2px solid var(--cream); box-shadow: 8px 8px 0 var(--crimson); }
.g-gr-bar { display: flex; flex-wrap: wrap; gap: 12px 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px dashed rgba(72, 0, 17, 0.35); }
.g-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.g-f > span { font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); }
.g-f > span i { font-style: normal; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: none; font-weight: 500; }
.g-f select, .g-f input, .g-gr-rules input { box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #FFFDF8; color: var(--ink); font: 500 16px var(--body); }
.g-f select:focus, .g-f input:focus, .g-gr-rules input:focus { outline: 3px solid rgba(72, 0, 17, 0.35); outline-offset: 1px; border-color: var(--crimson); }
.g-gr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.g-gr-in h3, .g-gr-out h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 21px; text-transform: uppercase; color: var(--crimson); }
.g-gr-rules { width: 100%; border-collapse: collapse; font-size: 15px; }
.g-gr-rules th { padding: 0 6px 6px; text-align: left; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.g-gr-rules td { padding: 3px 4px; }
.g-gr-rules input { width: 100%; min-height: 38px; padding: 6px 8px; font-size: 15px; border-width: 1.5px; border-radius: 8px; }
.g-gr-rules input[type="number"] { width: 78px; text-align: right; font-variant-numeric: tabular-nums; }
.g-gr-rules td:first-child { min-width: 150px; }
.g-grader:not(.has-break) .gr-j2 { display: none; }
.g-gr-rules .gr-x { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(10, 10, 10, 0.35); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 18px; line-height: 1; }
.g-gr-rules .gr-x:hover { background: var(--crimson); color: var(--cream); border-color: var(--crimson); }
.g-gr-out .g-table { box-shadow: none; }
.g-gr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.g-gr-acts .g-go, .g-gr-acts .g-ghost { min-height: 46px; font-size: 16px; padding: 0 18px; }
.g-grader .g-ghost { border-color: var(--ink); color: var(--ink); }   /* the grader is a cream card inside a dark band */
.g-grader .g-ghost:hover { background: var(--ink); color: var(--cream); }
.g-grader .g-go:focus-visible, .g-grader .g-ghost:focus-visible { outline-color: var(--crimson); }
.g-gr-msg { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--crimson); }
.g-grader .g-note { color: var(--ink-soft); }
.g-grade td.g-warn { color: #B3261E; }

/* ---------- the download question ---------- */
.g-gate { width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--crimson); overflow: auto; }
.g-gate::backdrop { background: rgba(10, 10, 10, 0.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.g-gate-card { position: relative; margin: 0; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.g-gate-kick { color: var(--crimson); font-size: 13px; }
.g-gate h2 { margin: 0; padding-right: 36px; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.g-gate-file { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(232, 212, 182, 0.45); font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: var(--crimson); }
.g-gate-fields { display: flex; flex-direction: column; gap: 12px; }
.g-gate .g-f input { width: 100%; }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-gate-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.g-gate .g-go { justify-content: center; width: 100%; }
.g-gate .g-go[disabled] { opacity: 0.6; cursor: progress; }
.g-gate-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1; }
.g-gate-x:hover { background: var(--ink); color: var(--cream); }
.g-gate-done p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.g-gate-done a { color: var(--crimson); font-weight: 600; }
.g-gate-ok { font-family: var(--display); font-size: 20px !important; text-transform: uppercase; color: var(--crimson) !important; }
.g-gate-err { margin: 0; min-height: 0; font-family: var(--label); font-weight: 700; font-size: 14.5px; letter-spacing: 0.04em; color: #B3261E; }
.g-gate-err:empty { display: none; }

/* ---------- phones and tablets ---------- */
@media (max-width: 980px) {
  .g-split, .g-gr-grid, .g-get-lane { grid-template-columns: minmax(0, 1fr); }
  .g-pom { display: block; }   /* a block, not a grid, so the sketch can stay in view while the table scrolls under it */
  .g-sketch { top: 8px; z-index: 2; padding: 8px 8px 6px; margin-bottom: 14px; }
  .g-view svg { max-height: 40vh; }
  .g-pom-tall .g-view svg { max-height: 44vh; }
  .g-get-pic { order: -1; }
}
@media (max-width: 720px) {
  .g-top { position: absolute; }
  .g-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-board > div:nth-child(2) { border-right: 0; }
  .g-board > div:nth-child(-n+2) { border-bottom: 1px solid rgba(232, 212, 182, 0.22); }
  .g-ctas > * { width: 100%; justify-content: flex-start; }
  .g-film { grid-template-columns: minmax(0, 1fr); }
  .g-film li, .g-film li:nth-child(2), .g-film li:nth-child(3) { transform: none; }
  .g-two { grid-template-columns: 1fr; }
  .g-pomt { font-size: 15px; }
  .g-pomt thead { display: none; }
  .g-pomt tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 8px; }
  .g-pomt tbody th { grid-column: 1; border-radius: 10px 0 0 0; white-space: normal; }
  .g-pomt tbody td:last-child { grid-column: 2; grid-row: 1; border-radius: 0 10px 0 0; }
  .g-pomt tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-radius: 0 0 10px 10px; padding-top: 0; border-left: 2px solid transparent; border-right: 2px solid transparent; }
  .g-pomt tbody tr:hover > *, .g-pomt tbody tr.on > *, .g-red .g-pomt tbody tr.on > *, .g-ink .g-pomt tbody tr.on > *, .g-red .g-pomt tbody tr:hover > *, .g-ink .g-pomt tbody tr:hover > * { border-color: transparent; }
  .g-pomt tbody tr.on { outline: 2px solid var(--crimson); outline-offset: 0; border-radius: 10px; }
  .g-red .g-pomt tbody tr.on, .g-ink .g-pomt tbody tr.on { outline-color: var(--cream); }
  .g-gr-rules td:first-child { min-width: 128px; }
  .g-gr-rules input[type="number"] { width: 66px; }
}
