/* The guidebook shares Sera's typography, colour tokens and theme. */
.guidebook { --guide-lavender:#efedff; --guide-peach:#fff0e8; --guide-mint:#eaf3ed; --guide-sand:#f5f0e3; }
.guidebook [hidden] { display:none !important; }
[data-theme="dark"] .guidebook { --guide-lavender:#24223b; --guide-peach:#332722; --guide-mint:#1b2e28; --guide-sand:#302c20; }
.guidebook :where(a,button,summary):focus-visible { outline:3px solid var(--brand); outline-offset:5px; border-radius:4px; }
.guidebook #main:focus { outline:none; }
.skip-link { position:fixed; top:8px; left:16px; z-index:100; transform:translateY(-180%); padding:12px 20px; background:var(--bg-elevated); color:var(--text-primary); border:2px solid var(--brand); border-radius:12px; }
.skip-link:focus { transform:translateY(0); }
.guide-nav { display:flex; align-items:center; gap:24px; }
.guide-nav a { padding:10px 0; font-size:.9rem; text-decoration:none; }
.guide-nav a[aria-current] { color:var(--brand); text-decoration:underline; text-underline-offset:6px; }
.guidebook .bar .wrap { gap:24px; }
.guide-header-cta { font-size:.9rem; padding:12px 20px; min-height:44px; }
.guidebook .theme-toggle { margin:0; }
.guidebook .theme-toggle:before { content:none; }
.guidebook h1 { font-size:clamp(2.5rem,5.2vw,4.4rem); line-height:1.07; font-weight:600; letter-spacing:-.055em; text-wrap:balance; }
.guidebook h2 { font-weight:600; font-size:clamp(1.6rem,2.8vw,2.25rem); line-height:1.2; letter-spacing:-.035em; text-wrap:balance; }
.guidebook .eyebrow { font-size:.7rem; letter-spacing:.14em; }
.guidebook-hero { padding:88px 0 80px; }
.hero-editorial { display:grid; grid-template-columns:1.2fr .8fr; gap:80px; align-items:center; }
.guidebook-intro h1 { max-width:15ch; }
.guidebook-intro h1 .serif { line-height:1.16; }
.guidebook-deck { font-size:1.2rem; line-height:1.7; color:var(--text-secondary); max-width:39ch; margin:26px 0 18px; }
.guidebook-promise { font-size:.95rem; color:var(--text-secondary); margin:0 0 25px; }
.text-link { display:inline-flex; gap:18px; align-items:center; color:var(--brand); font-weight:600; text-decoration:none; padding:10px 0; }
.text-link:hover { text-decoration:underline; text-underline-offset:5px; }
.hero-notebook { background:var(--guide-lavender); border:1px solid var(--border-subtle); border-radius:6px 28px 28px 6px; padding:27px 32px 0; position:relative; box-shadow:8px 9px 0 var(--bg-card-2); transform:rotate(2deg); }
.hero-notebook:before { content:""; position:absolute; left:14px; top:0; bottom:0; border-left:1px solid var(--border-strong); }
.notebook-top { display:flex; justify-content:space-between; gap:12px; align-items:center; font-size:.68rem; text-transform:uppercase; letter-spacing:.13em; color:var(--on-soft); }
.notebook-top span:last-child { font-size:1.8rem; }
.notebook-prompt { font-family:var(--font-serif); font-size:2.1rem; line-height:1.25; letter-spacing:-.035em; color:var(--text-primary); margin:30px 0 24px; }
.notebook-answer { font-family:var(--font-serif); font-style:italic; font-size:1.15rem; line-height:2.1; color:var(--text-secondary); background:repeating-linear-gradient(transparent 0,transparent calc(2.415rem - 1px),var(--border-strong) calc(2.415rem - 1px),var(--border-strong) 2.415rem); }
.notebook-bottom { display:flex; align-items:center; justify-content:space-between; min-height:107px; font-size:.76rem; color:var(--text-secondary); }
.notebook-bottom img { width:120px; height:120px; object-fit:contain; margin-bottom:-6px; }
.guidebook-library { padding:62px 0 80px; border-top:1px solid var(--border-subtle); }
.section-label { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:30px; }
.section-label .eyebrow { margin-bottom:12px; }
.section-label > p { color:var(--text-secondary); font-size:.87rem; margin:0; }
.section-label > a { color:var(--brand); white-space:nowrap; text-underline-offset:4px; }
.guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.guide-card { display:flex; flex-direction:column; min-width:0; min-height:310px; border:1px solid var(--border-subtle); border-radius:22px; padding:27px 30px 24px; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.guide-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-soft); }
.lavender { background:var(--guide-lavender); }
.peach { background:var(--guide-peach); }
.mint { background:var(--guide-mint); }
.sand { background:var(--guide-sand); }
.card-top,.card-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.category { font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--text-secondary); }
.card-number { color:var(--text-secondary); font-family:var(--font-serif); font-size:1.4rem; }
.guide-card h3 { font-family:var(--font-serif); font-size:clamp(1.65rem,2.7vw,2.25rem); font-weight:400; line-height:1.17; letter-spacing:-.04em; max-width:19ch; margin:25px 0 13px; }
.guide-card > p { font-size:.93rem; color:var(--text-secondary); max-width:43ch; line-height:1.6; margin:0 0 24px; }
.card-bottom { margin-top:auto; font-size:.74rem; color:var(--text-secondary); }
.card-arrow { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid var(--border-strong); border-radius:50%; font-size:1.2rem; color:var(--text-primary); }
.guide-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; background:var(--guide-lavender); border:1px solid var(--border-subtle); border-radius:24px; padding:40px; }
.guide-cta > div { max-width:620px; }
.guide-cta h2 { margin-bottom:16px; }
.guide-cta p { color:var(--text-secondary); }
.guide-cta .eyebrow { color:var(--brand); margin:0 0 12px; }
.guide-cta > img { width:170px; height:170px; object-fit:contain; flex:none; }
.guide-cta .btn { margin-top:8px; }
.guide-cta .cta-note { font-size:.78rem; line-height:1.7; margin:15px 0 0; }
.guide-cta .cta-note a { text-underline-offset:3px; }
.editorial-note { padding:86px 0; }
.editorial-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:75px; }
.editorial-grid p { color:var(--text-secondary); font-size:.94rem; margin:0 0 16px; }
.editorial-grid .eyebrow { color:var(--brand); }
.editorial-grid a { color:var(--text-primary); text-underline-offset:4px; }
.guidebook footer { border-top:1px solid var(--border-subtle); }
.guidebook footer .wrap { gap:24px; }
.guidebook footer .links { flex-wrap:wrap; }
.article-shell { padding-top:30px; }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:.75rem; color:var(--text-secondary); }
.breadcrumbs a { text-decoration:none; padding:5px 0; }
.breadcrumbs a:hover { text-decoration:underline; }
.article-heading { max-width:860px; padding:44px 0 42px; }
.article-heading h1 { font-size:clamp(2.3rem,4.4vw,3.65rem); max-width:25ch; line-height:1.1; }
.article-deck { max-width:54ch; font-size:1.2rem; line-height:1.7; color:var(--text-secondary); margin:22px 0; }
.article-meta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:.77rem; color:var(--text-secondary); }
.article-meta a { text-underline-offset:4px; }
.article-layout { display:grid; grid-template-columns:minmax(0,720px) minmax(190px,1fr); gap:76px; align-items:start; }
.article-body { min-width:0; font-size:1.0625rem; line-height:1.85; }
.article-body > section { padding:30px 0 0; }
.article-body h2 { font-size:1.65rem; margin-bottom:19px; }
.article-body h3 { font-size:1.12rem; font-weight:650; line-height:1.5; margin-bottom:6px; }
.article-body p { margin:0 0 20px; }
.article-body a:not(.btn) { color:var(--brand); text-decoration-thickness:1px; text-underline-offset:4px; }
.article-body a:not(.btn):hover { text-decoration-thickness:2px; }
.short-answer { padding:27px 30px; border-left:3px solid var(--brand); background:var(--bg-card-2); border-radius:0 16px 16px 0; }
.short-answer .eyebrow { margin-bottom:10px; }
.short-answer p:not(.eyebrow) { font-size:1.04rem; margin-bottom:14px; }
.short-answer > a { font-size:.82rem; font-weight:600; }
.question-list { padding-left:28px; margin:24px 0 0; }
.question-list li { padding-left:10px; margin-bottom:24px; }
.question-list li::marker { color:var(--brand); font-family:var(--font-serif); font-size:1.35rem; }
.question-list p { margin-bottom:0; }
.worked-example { background:var(--guide-sand); border:1px solid var(--border-subtle); border-radius:18px; padding:26px 30px; margin:22px 0; }
.worked-example > p:last-child { font-family:var(--font-serif); font-size:1.16rem; line-height:1.7; margin-bottom:0; }
.worked-example .example-before { font-size:.95rem; color:var(--text-secondary); }
.worked-example dl { margin:0; }
.worked-example dt { font-size:.79rem; font-weight:650; color:var(--text-secondary); margin:16px 0 3px; }
.worked-example dt:first-child { margin-top:0; }
.worked-example dd { margin:0; font-size:1rem; }
.article-body .template-panel { background:var(--bg-card); border:1px solid var(--border-strong); border-radius:20px; padding:27px 30px 16px; margin-top:30px; }
.template-heading { display:flex; align-items:start; justify-content:space-between; gap:18px; }
.template-heading .eyebrow { margin-bottom:8px; }
.template-heading h2 { font-size:1.4rem; }
.template-panel > p { font-size:.87rem; color:var(--text-secondary); }
.copy-template { flex:none; background:var(--accent-soft); color:var(--on-soft); border:1px solid var(--border-strong); border-radius:10px; min-height:44px; padding:9px 13px; font:600 .78rem var(--font-sans); cursor:pointer; }
.copy-template:hover { background:var(--guide-lavender); }
.copy-template:disabled { opacity:.65; cursor:wait; }
.template-text { font:1rem/2.1 var(--font-sans); white-space:pre-wrap; overflow-wrap:anywhere; margin:4px 0; padding:18px 20px; background:var(--bg-card-2); border-radius:10px; user-select:text; }
.template-panel .copy-status { min-height:1.5em; margin:10px 0 0; font-size:.78rem; }
.article-body > .guide-cta { padding:30px; margin:38px 0 12px; gap:10px; }
.article-body .guide-cta > img { width:100px; height:100px; }
.article-body .guide-cta h2 { font-size:1.6rem; }
.article-body .guide-cta p:not(.eyebrow):not(.cta-note) { font-size:.96rem; line-height:1.75; }
.article-body .guide-cta .cta-note { margin-bottom:0; }
.guide-questions details { border-bottom:1px solid var(--border-strong); padding:17px 0; }
.guide-questions summary { cursor:pointer; font-size:1rem; font-weight:600; line-height:1.6; }
.guide-questions details p { color:var(--text-secondary); font-size:.95rem; line-height:1.8; margin:15px 0 3px; }
.article-body .article-sources { margin:30px 0 0; border-top:1px solid var(--border-strong); }
.article-sources h2 { font-size:1.2rem; }
.article-sources p { font-size:.85rem; line-height:1.8; color:var(--text-secondary); }
.article-sidebar { position:sticky; top:110px; }
.guide-contents summary { min-height:44px; cursor:pointer; color:var(--text-secondary); font-size:.7rem; line-height:44px; letter-spacing:.1em; text-transform:uppercase; }
.guide-contents[open] summary { margin-bottom:8px; }
.article-sidebar ol { padding:0; margin:0; list-style:none; }
.article-sidebar li { margin:0 0 13px; font-size:.8rem; line-height:1.6; }
.article-sidebar li a { text-decoration:none; color:var(--text-secondary); }
.article-sidebar li a:hover { color:var(--brand); text-decoration:underline; text-underline-offset:4px; }
.sidebar-note { margin-top:30px; padding-top:26px; border-top:1px solid var(--border-strong); }
.sidebar-note p { font-family:var(--font-serif); font-size:1.3rem; line-height:1.4; margin:16px 0 12px; }
.sidebar-note a { font-size:.84rem; color:var(--brand); text-underline-offset:4px; }
.sidebar-note small { display:block; color:var(--text-secondary); font-size:.73rem; margin-top:5px; }
.related-guides { border-top:1px solid var(--border-strong); margin-top:55px; padding:48px 0 72px; }
.related-guides .guide-card { min-height:270px; }
.related-guides .guide-card h3 { font-size:1.9rem; }
@media (min-width:1500px) { .hero-editorial { gap:100px; } }
@media (max-width:1000px) {
  .hero-editorial { gap:42px; grid-template-columns:1.1fr .9fr; }
  .guidebook .bar .wrap { gap:17px; }
  .article-layout { gap:38px; grid-template-columns:minmax(0,1fr) 190px; }
  .hero-notebook { padding:22px 25px 0; }
  .notebook-prompt { font-size:1.8rem; }
  .guide-cta > img { width:135px; height:135px; }
}
@media (max-width:760px) {
  html { scroll-padding-top:140px; }
  .guidebook .bar .wrap { gap:14px; flex-wrap:wrap; padding-top:12px; padding-bottom:10px; }
  .guidebook .bar .sp { display:block; }
  .guide-nav { order:5; width:100%; gap:22px; border-top:1px solid var(--border-subtle); padding-top:3px; }
  .guide-nav a { font-size:.8rem; padding:8px 0 1px; }
  .guide-header-cta { font-size:.76rem; padding:10px 14px; }
  .guidebook .theme-toggle { min-width:44px; padding:6px; font-size:.73rem; }
  .guidebook-hero { padding:36px 0 32px; }
  .hero-editorial { grid-template-columns:1fr; gap:34px; }
  .guidebook-intro h1 { max-width:15ch; font-size:clamp(2.5rem,8.5vw,3.7rem); }
  .guidebook-deck { font-size:1.06rem; }
  .guidebook-promise { display:none; }
  .hero-notebook { display:none; }
  .notebook-prompt { margin:15px 0 12px; font-size:1.8rem; }
  .notebook-answer { font-size:1rem; line-height:2.1; background-size:100% 2.1rem; }
  .notebook-bottom { min-height:80px; }
  .notebook-bottom img { width:100px; height:100px; }
  .guidebook-library { padding:30px 0 48px; }
  .section-label { align-items:start; flex-direction:column; gap:12px; margin-bottom:24px; }
  .section-label > p br { display:none; }
  .section-label > p { font-size:.8rem; }
  .guide-grid { grid-template-columns:1fr; gap:16px; }
  .guide-card { min-height:270px; padding:23px 24px; }
  .guide-card h3 { max-width:20ch; font-size:1.95rem; margin-top:21px; }
  .guide-card > p { font-size:.88rem; }
  .guide-cta { padding:28px; align-items:start; }
  .guide-cta > img { display:none; }
  .guide-cta > div { max-width:none; }
  .guide-cta h2 { font-size:1.85rem; }
  .guide-cta p { font-size:.94rem; }
  .editorial-note { padding:54px 0; }
  .editorial-grid { grid-template-columns:1fr; gap:25px; }
  .article-shell { padding-top:23px; }
  .article-heading { padding:29px 0 28px; }
  .article-heading h1 { font-size:clamp(2.15rem,7.7vw,3.2rem); }
  .article-deck { font-size:1.05rem; margin:19px 0; }
  .article-meta { font-size:.71rem; gap:8px; }
  .article-layout { display:flex; flex-direction:column; gap:28px; }
  .article-sidebar { position:static; order:-1; width:100%; padding:18px 0; border-block:1px solid var(--border-strong); }
  .article-sidebar nav ol { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
  .article-sidebar li { margin:0; font-size:.76rem; }
  .article-sidebar li a { display:flex; align-items:center; min-height:44px; }
  .sidebar-note { display:none; }
  .article-body { width:100%; font-size:1rem; }
  .article-body h2 { font-size:1.5rem; }
  .short-answer { padding:22px; }
  .short-answer p:not(.eyebrow) { font-size:.98rem; }
  .worked-example { padding:22px; }
  .article-body .template-panel { padding:22px 20px 14px; }
  .template-heading { flex-direction:column; gap:0; margin-bottom:15px; }
  .template-text { font-size:.9rem; padding:15px; }
  .article-body > .guide-cta { padding:25px; }
  .related-guides { margin-top:36px; padding:35px 0 48px; }
  .guidebook footer .wrap { align-items:start; }
}
@media (max-width:360px) {
  .guidebook .wrap { padding-left:18px; padding-right:18px; }
  .guidebook .bar .wrap { gap:8px; }
  .guidebook .brand { font-size:1.25rem; gap:6px; }
  .guide-header-cta { padding:10px; font-size:.7rem; }
  .guidebook .theme-toggle { font-size:.66rem; }
  .article-sidebar nav ol { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .guidebook { scroll-behavior:auto; }
  .guidebook *, .guidebook *:before, .guidebook *:after { animation:none !important; transition:none !important; }
}
@media print {
  .guidebook, [data-theme="dark"] .guidebook { --bg-page:#fff; --bg-card:#fff; --bg-card-2:#fff; --text-primary:#111; --text-secondary:#333; --brand:#222; --border-strong:#999; --guide-sand:#fff; background:#fff !important; color:#111 !important; }
  .guidebook .bar,.guidebook footer,.skip-link,.article-sidebar,.related-guides,.guide-cta,.copy-template,.copy-status { display:none !important; }
  .guidebook .wrap { max-width:none; padding:0; }
  .article-layout { display:block; }
  .article-shell { padding-top:0; }
  .article-heading { padding:16px 0; }
  .article-heading h1 { font-size:28pt; }
  .article-body { font-size:11pt; line-height:1.65; }
  .article-body h2 { font-size:17pt; break-after:avoid; }
  .article-body h3 { break-after:avoid; }
  .article-body a { color:#111 !important; }
  .template-panel,.worked-example { break-inside:avoid; box-shadow:none; }
  .short-answer { background:#fff; }
  .guide-questions details > * { display:block; }
  .guide-questions details::details-content { content-visibility:visible; }
  .hero-notebook { box-shadow:none; transform:none; }
}
