/* senior-bridge setup guide (/setup-guide). Same palette and type as the homepage
   (style.css). The PDF is printed from this page with headless Chrome; the
   @media print rules at the bottom do that layout. Rewritten 2026-10-02. */

:root {
  --bg: #fdfaf3;
  --tint: #f6efe1;
  --surface: #fffdf9;
  --ink: #2a2520;
  --soft: #4d4740;
  --muted: #6b645b;
  --sage: #7a8e6a;
  --sage-deep: #55684a;
  --sage-soft: #e7ecdf;
  --terra: #c9663d;
  --terra-deep: #a3502a;
  --terra-soft: #f8e3d6;
  --gold: #f0b44c;
  --gold-soft: #fcebc9;
  --border: #e8dfcb;
  --bubble: #ecebe6;
  --shadow: 0 1px 2px rgba(60, 50, 35, .05), 0 6px 20px rgba(60, 50, 35, .07);
  --heading: 'Lora', Georgia, serif;
  --body: 'Atkinson Hyperlegible', -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--terra-deep); }
img { max-width: 100%; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: .95rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(253, 250, 243, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--heading); font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-link { color: var(--soft); text-decoration: none; font-size: .95rem; padding: 8px 10px; }
.top-link:hover { color: var(--terra-deep); }
.top-cta { background: var(--terra-deep); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
@media (max-width: 480px) { .top-link { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbe7c2 0%, #fdf3df 60%, var(--bg) 100%); padding: 56px 0 44px; }
.sun { position: absolute; width: 560px; height: 560px; right: -140px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 76, .7) 0%, rgba(240, 180, 76, .25) 40%, rgba(240, 180, 76, 0) 70%); }
.hero-inner { position: relative; max-width: 860px; }
.eyebrow, .kicker { margin: 0 0 10px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); font-weight: 600; letter-spacing: -.01em; margin-bottom: 18px; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--terra-deep); }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--soft); max-width: 720px; }
.hero-meta { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta li { margin: 0; background: rgba(255, 255, 255, .7); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--soft); }

/* ---------- Layout + contents ---------- */
.layout { display: block; padding-top: 28px; padding-bottom: 40px; }
.toc { margin-bottom: 8px; }
.toc-title { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.toc ol::-webkit-scrollbar { display: none; }
.toc li { margin: 0; flex: 0 0 auto; }
.toc a { display: block; text-decoration: none; color: var(--soft); font-size: .92rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.toc a.on, .toc a:hover { color: var(--terra-deep); border-color: var(--terra); }
.content { min-width: 0; max-width: 780px; }

@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 92px; align-self: start; }
  .toc ol { display: block; overflow: visible; border-left: 2px solid var(--border); }
  .toc a { border: 0; background: none; border-radius: 0; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; white-space: normal; }
  .toc a.on { border-left-color: var(--terra); font-weight: 700; }
}

/* ---------- Sections ---------- */
.block { padding: 36px 0; border-bottom: 1px solid var(--border); }
.block:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.step-head h2 { margin: 0; }
.step-head .kicker { margin: 0 0 2px; }
.num { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--heading); font-weight: 700; font-size: 1.5rem;
  color: var(--terra-deep); background: var(--gold-soft); border: 2px solid var(--gold); }
.field { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 20px 6px; margin: 16px 0; box-shadow: var(--shadow); }
.field.premium { border-color: #e9cfa0; }
.badge { display: inline-block; vertical-align: middle; font-family: var(--body); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #7a5a14; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.why { font-size: .97rem; color: var(--soft); background: var(--sage-soft); border-radius: 12px; padding: 10px 14px; }
.why strong { color: var(--sage-deep); }
.lever { font-weight: 700; color: var(--terra-deep); background: var(--terra-soft); border-radius: 12px; padding: 10px 14px; }
.pull { font-family: var(--heading); font-style: italic; font-size: 1.25rem; color: var(--terra-deep); text-align: center; margin: 24px 0 0; }
.note { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 14px 0 16px; font-size: .97rem; }

/* ---------- Examples ---------- */
.ex { display: grid; gap: 10px; margin: 6px 0 14px; }
@media (min-width: 640px) { .ex { grid-template-columns: 1fr 1fr; } .ex.single { grid-template-columns: 1fr; } }
.ex > div { border-radius: 12px; padding: 12px 14px; font-size: .95rem; line-height: 1.5; }
.ex span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.ex-no { background: #f3efe8; color: var(--muted); }
.ex-no span { color: #9a6a5a; }
.ex-no span::before { content: '✕  '; }
.ex-yes { background: #eef3e8; color: var(--ink); border: 1px solid #cfdcc3; }
.ex-yes span { color: var(--sage-deep); }
.ex-yes span::before { content: '✓  '; }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.tag.no { background: #f3e2dc; color: #8a4a35; }
.tag.mid { background: var(--gold-soft); color: #7a5a14; }
.tag.yes { background: #dfe9d5; color: var(--sage-deep); }
.ladder { display: grid; gap: 8px; margin: 4px 0 14px; }
.ladder > div { display: flex; gap: 10px; align-items: baseline; font-size: .97rem; }
.ladder .tag { flex: 0 0 64px; text-align: center; }

.tones { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 640px) { .tones { grid-template-columns: 1fr 1fr; } }
.tones > div { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: .95rem; color: var(--soft); }
.tones strong { display: block; color: var(--ink); }
.tones .pick { border: 2px solid var(--terra); background: var(--terra-soft); }
.tones em { color: var(--terra-deep); font-weight: 700; font-style: normal; }

.faiths { margin: 0 0 14px; display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faiths > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 14px; font-size: .95rem; }
.faiths > div:nth-child(odd) { background: var(--tint); }
.faiths dt { font-weight: 700; }
.faiths dd { margin: 0; color: var(--soft); }

.rhythm, .extras { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 16px; }
@media (min-width: 640px) { .rhythm, .extras { grid-template-columns: 1fr 1fr; } }
.rhythm > div, .extras > div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; font-size: .95rem; color: var(--soft); box-shadow: var(--shadow); }
.rhythm span, .extras > div > span:first-child { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.rhythm strong, .extras strong { color: var(--ink); display: block; font-size: 1.02rem; }

/* ---------- Phones + bubbles ---------- */
.versus { display: grid; gap: 20px; margin: 22px 0 6px; }
@media (min-width: 680px) { .versus { grid-template-columns: 1fr 1fr; align-items: start; } }
.phone { margin: 0; background: #fff; border: 7px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.phone figcaption { padding: 12px 14px; background: #f7f5f0; border-bottom: 1px solid #ece6da; }
.phone figcaption small { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.screen { padding: 14px 12px 16px; display: flex; flex-direction: column; }
.phone.thin { opacity: .92; }
.bubble { font-size: .97rem; line-height: 1.45; padding: 9px 13px; border-radius: 18px; margin-bottom: 8px; max-width: 88%; width: fit-content; }
.bubble.them { background: var(--bubble); border-bottom-left-radius: 5px; }
.bubble.me { background: var(--terra-deep); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble.voice { font-style: italic; }
.bubble.wide { max-width: 560px; margin-top: 4px; }
.bubble u { text-decoration-color: rgba(0, 0, 0, .35); word-break: break-all; }
.bubble.card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); }
.bubble.card img { border-radius: 50%; }
.bubble.card small { display: block; color: var(--muted); font-size: .8rem; }
.bubble.card strong { display: block; font-size: .92rem; }

.join { display: grid; gap: 20px; margin-top: 10px; }
@media (min-width: 680px) { .join { grid-template-columns: 300px 1fr; align-items: center; } }
.phone.small { border-width: 6px; border-radius: 26px; }
.phone.small .bubble { font-size: .88rem; }
.join-steps { list-style: none; padding: 0; margin: 0; }
.join-steps li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.join-steps li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }

/* ---------- The week ---------- */
.week { list-style: none; padding: 0; margin: 22px 0 0; position: relative; }
.week::before { content: ''; position: absolute; left: 51px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--terra)); opacity: .5; }
.week > li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; margin-bottom: 28px; }
.day { position: relative; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 2px; }
.day strong { display: block; font-family: var(--heading); font-size: 1rem; color: var(--ink); background: var(--bg); position: relative; padding: 4px 0; }
.day .badge { margin: 6px 0 0; }
.day-body { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px 6px; box-shadow: var(--shadow); min-width: 0; }
.day-body > p { font-size: .95rem; color: var(--soft); margin-top: 8px; }
.day-body .bubble { display: block; }
.day-body .bubble.me { display: block; }
@media (max-width: 600px) {
  .week::before { display: none; }
  .week > li { grid-template-columns: 1fr; gap: 6px; }
  .day { text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .day strong { background: none; padding: 0; }
}
.recap { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
@media (min-width: 560px) { .recap { grid-template-columns: 170px 1fr; } }
.recap img { width: 100%; max-width: 220px; border-radius: 10px; border: 6px solid #fff; box-shadow: var(--shadow); transform: rotate(-2deg); }
details { margin: 4px 0 14px; border-top: 1px dashed var(--border); padding-top: 10px; font-size: .95rem; color: var(--soft); }
summary { cursor: pointer; font-weight: 700; color: var(--terra-deep); }
details p { margin: 10px 0 0; }

.script { margin: 12px 0 18px; padding: 12px 16px; border-left: 4px solid var(--terra); background: var(--tint); border-radius: 0 12px 12px 0; font-family: var(--heading); font-style: italic; }

/* ---------- AI interview prompt ---------- */
.tip-ai { margin: 18px 0 0; text-align: center; font-size: .97rem; color: var(--soft); }
.prompt-box { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); margin: 16px 0; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: var(--tint); border-bottom: 1px solid var(--border); }
.prompt-bar span { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); }
.copy-btn { font: inherit; font-weight: 700; font-size: .95rem; color: #fff; background: var(--terra-deep); border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; min-height: 44px; white-space: nowrap; }
.copy-btn:hover { background: #87401f; }
.prompt-box pre { margin: 0; padding: 16px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-wrap: break-word;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.55; color: var(--soft); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { margin: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: .97rem; min-height: 100%; }
.checklist input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sage-deep); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(85, 104, 74, .5); }
.progress { font-weight: 700; color: var(--sage-deep); }

.closing { text-align: left; }
.print-note { display: none; }
.signoff { font-family: var(--heading); font-style: italic; font-size: 1.4rem; color: var(--terra-deep); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #d9ceb6; padding: 28px 0 36px; font-size: .9rem; }
.foot .brand { color: #f3ead8; margin-bottom: 10px; }
.foot p { margin: 6px 0; }
.foot a { color: var(--gold); }

/* ---------- Print (the PDF) ---------- */
@page { size: Letter; margin: .55in .6in .6in; }
@media print {
  html { scroll-padding-top: 0; }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top, .toc, .skip-link, .screen-only, script { display: none !important; }
  .hero { padding: 0 0 18pt; background: none; }
  .sun { display: none; }
  .hero h1 { font-size: 26pt; }
  .hero-meta li:last-child { display: none; }
  .wrap { padding: 0; max-width: none; }
  .layout { display: block; padding: 0; }
  .content { max-width: none; }
  .block { padding: 16pt 0; }
  .tip-ai, .copy-btn { display: none; }
  .prompt-box pre { max-height: none; overflow: visible; font-size: 8.2pt; line-height: 1.4; }
  .prompt-box { box-shadow: none; }
  .foot { display: none; }
  .ex, .phone, .bubble, .ladder, .faiths, .tones, .step-head, .rhythm > div, .extras > div, .checklist label, .why, .note, .field ul { break-inside: avoid; }
  .field > h3, .field > h3 + p, .day-body > h3, .ex { break-after: avoid; }
  h2, h3 { break-after: avoid; }
  .field, .day-body, .rhythm > div, .extras > div, .phone { box-shadow: none; }
  details { display: block; }
  details > summary { list-style: none; }
  details > summary::-webkit-details-marker { display: none; }
  .bubble { font-size: 9.5pt; }
  .checklist input { width: 14pt; height: 14pt; }
  a { color: inherit; text-decoration: none; }
  .print-note { display: block; font-size: 8.5pt; color: var(--muted); break-before: avoid; }
  .signoff { break-after: avoid; }
  .content p, .content li { break-inside: avoid; }
  #week, #reminders { break-before: page; }
  .closing { break-inside: avoid; }
}
