/* THE DUKE GUIDE (guide.html and the PDF printed from it). White page, near-black text, DUKE red #D4232B as the only accent. No dark theme. */
.guide { --g-red: #D4232B; --g-ink: #111; --g-grey: #f5f5f5; --g-line: #e2e2e2; background: #fff; color: var(--g-ink); padding-bottom: 72px; overflow-x: clip; }
.guide .g-col { width: 100%; max-width: 768px; margin: 0 auto; padding: 0 24px; }
.guide p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.guide .ph { color: var(--g-red); font-weight: 800; }

/* ---------- hero ---------- */
.g-hero { padding: 56px 0 24px; }
.g-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: .16em; color: var(--g-red); }
.guide .g-kicker { font-size: 14px; line-height: 1.3; margin-bottom: 14px; }
.g-hero h1 { font-size: clamp(34px, 6.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 900; }
.guide .g-sub { font-size: 20px; line-height: 1.55; color: #2a2a2a; margin-bottom: 24px; }
.g-hero .nb { white-space: nowrap; }
.g-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.g-stats li { background: var(--g-grey); border: 1px solid var(--g-line); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.g-stats b { color: var(--g-red); font-weight: 900; }
.g-wide { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.g-video { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.g-video video { display: block; width: 100%; height: 100%; background: #000; }
.g-print-poster { display: none; margin: 0 0 16px; }
.guide .g-made { margin: 16px 0 0; font-size: 15px; font-weight: 600; color: #444; text-align: center; }

/* ---------- headings and steps ---------- */
.g-h2 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 20px; font-weight: 900; }
.g-how { padding-top: 40px; padding-bottom: 8px; }
.g-how .g-h2 { font-size: 15px; letter-spacing: .16em; color: var(--g-red); font-weight: 800; }
.g-step { padding-top: 56px; margin-top: 56px; border-top: 3px solid var(--g-red); }
.g-step-mark { display: flex; align-items: flex-end; gap: 14px; line-height: 1; margin-bottom: 8px; }
.g-step-word { font-size: 15px; font-weight: 800; letter-spacing: .16em; color: var(--g-red); padding-bottom: 14px; }
.g-step-no { font-size: clamp(88px, 22vw, 140px); font-weight: 900; line-height: .85; color: var(--g-red); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.guide .g-step-name { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .14em; color: #555; }

/* ---------- boxes and tables ---------- */
.g-box { background: var(--g-grey); border: 1px solid var(--g-line); border-radius: 12px; padding: 22px 22px 8px; margin: 26px 0; }
.g-box-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--g-red); }
.g-box .g-box-sub { margin: -8px 0 12px; font-size: 14px; color: #555; }
.g-box p { font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.g-box-note { font-size: 15px; font-weight: 700; margin: 12px 0 14px; }
.g-scroll { overflow-x: auto; margin: 0 -4px 14px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.g-scroll:focus-visible { outline: 3px solid var(--g-red); outline-offset: 2px; }
.g-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.g-table th, .g-table td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid #dcdcdc; vertical-align: top; font-weight: 600; }
.g-table tr:last-child th, .g-table tr:last-child td { border-bottom: 0; }
.g-table thead th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #555; border-bottom: 2px solid var(--g-ink); white-space: nowrap; }
.g-table .num, .g-box--sum td { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-box--sum td { text-align: right; padding-right: 0; padding-left: 14px; }
.g-box--sum td.num[colspan] { color: var(--g-red); font-weight: 800; }
.g-table th[scope="row"].num { color: var(--g-red); font-weight: 800; width: 1%; padding-right: 18px; }
.g-table td.num:first-child { color: var(--g-red); font-weight: 800; padding-right: 18px; }
.g-list { margin: 0 0 14px; padding: 0; list-style: none; }
.g-list li { position: relative; padding: 8px 0 8px 20px; font-size: 16px; line-height: 1.6; font-weight: 600; border-bottom: 1px solid #dcdcdc; overflow-wrap: break-word; }
.g-list li:last-child { border-bottom: 0; }
.g-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; background: var(--g-red); }
.g-list--mono li { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; font-size: 14.5px; font-weight: 600; }
.g-tip { border-left: 4px solid var(--g-red); padding: 2px 0 2px 18px; margin: 26px 0; }
.g-tip p { margin: 0; font-size: 17px; }
.g-tip strong { color: var(--g-red); font-weight: 900; }
.g-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px -48px; }
.g-imgs img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--g-line); background: #111; }

/* ---------- prompts ---------- */
.g-prompt { display: flex; align-items: flex-start; gap: 16px; border: 2px solid var(--g-ink); border-radius: 12px; padding: 16px 16px 16px 20px; margin: 18px 0; background: #fff; }
.guide .g-prompt-text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.g-copy { flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 800; line-height: 1; min-width: 88px; min-height: 44px; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--g-red); background: var(--g-red); color: #fff; cursor: pointer; }
.g-copy:hover { background: #b81d24; border-color: #b81d24; }
.g-copy:focus-visible { outline: 3px solid var(--g-ink); outline-offset: 3px; }
.g-copy.is-copied { background: #fff; color: var(--g-red); }

/* ---------- closing ---------- */
.g-things { margin-top: 64px; }
.g-box--close { padding-bottom: 22px; border-top: 4px solid var(--g-red); border-radius: 0 0 12px 12px; }
.g-box--close .g-h2 { font-size: 15px; letter-spacing: .16em; color: var(--g-red); font-weight: 800; margin-bottom: 16px; }
.g-things-list { margin: 0; padding: 0; list-style: none; counter-reset: gt; }
.g-things-list li { counter-increment: gt; display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #dcdcdc; font-size: 18px; font-weight: 700; line-height: 1.45; }
.g-things-list li:last-child { border-bottom: 0; }
.g-things-list li::before { content: counter(gt); color: var(--g-red); font-weight: 900; font-size: 26px; min-width: 22px; line-height: 1; }
.g-cta { margin-top: 56px; padding-top: 40px; border-top: 3px solid var(--g-red); }
.guide .g-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 28px; }
.guide .g-foot-line { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #555; }
.g-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.g-copy-tmp { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .g-imgs { margin-left: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .guide .g-col, .g-wide { padding-left: 18px; padding-right: 18px; }
  .guide p { font-size: 17px; }
  .g-hero { padding-top: 36px; }
  .guide .g-sub { font-size: 18px; }
  .g-step { padding-top: 40px; margin-top: 40px; }
  .g-box { padding: 18px 16px 4px; }
  .g-imgs { grid-template-columns: 1fr; }
  .g-prompt { flex-direction: column; align-items: stretch; padding: 16px; }
  .g-copy { width: 100%; }
  .g-stats li { font-size: 14px; padding: 8px 13px; }
  .g-table { font-size: 14px; }
  .g-table th, .g-table td { padding-right: 10px; }
  .g-things-list li { font-size: 17px; }
  .guide .g-cta-btns .btn { width: 100%; }
}

/* ---------- print (the PDF): Letter, 0.6 in margins, white, no site chrome, no Copy buttons, no video ---------- */
@page { size: Letter; margin: 0.6in; }
/* Beat board (the only 3-column table with a header): stack each row on phones so nothing is cut off. */
@media (max-width: 560px) {
  .g-table:has(thead th:nth-child(3)) thead { display: none; }
  .g-table:has(thead th:nth-child(3)) tr { display: block; padding: 10px 0; border-bottom: 1px solid #dcdcdc; }
  .g-table:has(thead th:nth-child(3)) tr:last-child { border-bottom: 0; }
  .g-table:has(thead th:nth-child(3)) th, .g-table:has(thead th:nth-child(3)) td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .g-table:has(thead th:nth-child(3)) td:last-child { color: #555; font-weight: 500; }
}
@media print {
  html, body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 10.5pt; overflow: visible; }
  .site-head, .mobile-menu, .site-foot, .skip, dialog, .toast, .g-copy, .g-video, .g-cta-btns, .g-sr { display: none !important; }
  .guide { padding: 0; overflow: visible; }
  .guide .g-col, .g-wide { max-width: none; padding: 0; }
  .guide p { font-size: 10pt; line-height: 1.5; margin-bottom: .8em; orphans: 3; widows: 3; }
  .g-hero { padding: 0 0 14pt; }
  .g-hero h1 { font-size: 30pt; }
  .guide .g-sub { font-size: 12.5pt; }
  .g-print-poster { display: block; }
  .g-print-poster img { display: block; width: 78%; margin: 0 auto; height: auto; border-radius: 6px; border: 1px solid var(--g-line); }
  .g-print-poster figcaption { margin-top: 6pt; font-size: 10pt; font-weight: 700; text-align: center; color: #444; }
  .guide .g-made { margin-top: 8pt; font-size: 10pt; }
  .g-h2 { font-size: 20pt; margin-bottom: 10pt; break-after: avoid; }
  .g-how { padding-top: 14pt; }
  .g-step { padding-top: 0; margin-top: 0; border-top: 0; break-before: page; }
  .g-step-mark { margin-bottom: 4pt; }
  .g-table th, .g-table td { padding-top: 4pt; padding-bottom: 4pt; }
  .g-list li { padding-top: 4pt; padding-bottom: 4pt; }
  .g-list li::before { top: 9pt; }
  .g-step-no { font-size: 54pt; }
  .g-step-mark, .g-step-name { break-after: avoid; }
  .g-box, .g-prompt, .g-tip, .g-imgs, .g-imgs img, .g-table tr, .g-list li, .g-things-list li { break-inside: avoid; }
  .g-box { margin: 8pt 0; padding: 10pt 14pt 2pt; background: #f5f5f5 !important; }
  .g-box-title { break-after: avoid; }
  .g-scroll { overflow: visible; }
  .g-table { font-size: 9.5pt; }
  .g-list li, .g-box p { font-size: 10pt; }
  .g-list--mono li { font-size: 9.5pt; }
  .g-imgs { margin: 10pt auto; gap: 8pt; width: 56%; }
  .g-prompt { padding: 8pt 12pt; margin: 7pt 0; border-width: 1.5pt; }
  .guide .g-prompt-text { font-size: 10pt; }
  .g-things { margin-top: 0; break-before: page; }
  .g-cta { margin-top: 22pt; padding-top: 14pt; border-top: 0; break-inside: avoid; }
  .g-things-list li { font-size: 11pt; }
  .guide a { text-decoration: none; color: inherit; }
}
