.guide-page { --article-width: 46rem; }
.guide-page .masthead { background: var(--paper); }
.guide-hero { padding-block: 4.5rem 2.25rem; }
.guide-hero-inner { max-width: 56rem; }
.guide-kicker { color: var(--accent); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.guide-hero h1 { margin: .85rem 0 1rem; font-size: clamp(2.2rem, 8.5vw, 4rem); line-height: 1; letter-spacing: 0; }
.guide-deck { max-width: 46ch; color: var(--muted); font-size: 1.08rem; }
.guide-body { display: grid; grid-template-columns: minmax(12rem, .55fr) minmax(0, 1.45fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: 2rem 5rem; }
.guide-toc { position: sticky; top: 5.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.guide-toc strong { display: block; margin-bottom: .65rem; font-size: .8rem; }
.guide-toc ol { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .8rem; }
.guide-toc li { padding: .2rem 0; }
.guide-toc a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .2em; }
.guide-article { max-width: var(--article-width); }
.guide-answer { padding: 1.1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--wash); }
.guide-article h2 { margin: 2.2rem 0 .75rem; font-size: 2.25rem; line-height: 1.05; letter-spacing: 0; }
.guide-article h3 { margin: 1.45rem 0 .4rem; font: 700 1rem/1.4 "Jakarta", system-ui, sans-serif; letter-spacing: 0; }
.guide-article p { margin: .75rem 0; color: var(--muted); }
.guide-article strong { color: var(--ink); }
.guide-article ul, .guide-article ol { margin: .8rem 0 1.2rem; padding-left: 1.3rem; color: var(--muted); }
.guide-article li { padding: .2rem 0 .2rem .25rem; }
.guide-article table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; font-size: .86rem; }
.guide-article caption { padding: .5rem 0; color: var(--muted); text-align: left; }
.guide-article th, .guide-article td { padding: .75rem .65rem; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.guide-article th { color: var(--ink); font-weight: 700; }
.guide-note { margin: 1.25rem 0; padding: 1rem 1.2rem; border: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.guide-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; border-top: 1px solid var(--rule); padding-top: 1.3rem; }
.guide-related a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.guide-cta { padding: 2.5rem 0 4rem; border-top: 1px solid var(--rule); }
.guide-cta h2 { margin-bottom: .55rem; font-size: 2.4rem; letter-spacing: 0; }
.guide-cta p { max-width: 54ch; margin-bottom: 1.2rem; color: var(--muted); }
.guide-list { margin: 2.2rem 0 4rem; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.guide-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.guide-list-number { color: var(--accent); font: 500 1.5rem/1.2 var(--display); }
.guide-list h2 { margin: 0 0 .4rem; font-size: 2rem; line-height: 1.1; letter-spacing: 0; }
.guide-list p { max-width: 60ch; color: var(--muted); }
.guide-list a { text-decoration: none; }
.guide-list a:hover { color: var(--accent); }
.guide-page .masthead .brand-img-lockup { height: 3.4rem; }
@media (max-width: 760px) {
  .guide-page .primary-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .82rem; }
  .guide-page .masthead-inner { flex-wrap: wrap; max-height: none; padding-block: .65rem; gap: .6rem 1.25rem; }
  .guide-page .sign-in.button { margin-left: auto; }
  .guide-hero { padding-block: 2.5rem 1.5rem; }
  .guide-body { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1rem; }
  .guide-toc { position: static; }
  .guide-article h2 { font-size: 1.9rem; }
  .guide-related { grid-template-columns: minmax(0, 1fr); }
  .guide-list h2 { font-size: 1.6rem; }
}

/* Page transition: matching entrance for guide pages. These play on the
   element itself so the page animates from its very first paint (no flash of
   fully-loaded content). The exit fade lives in site.css (html.is-leaving)
   and is driven by page-transition.js. */
@keyframes guide-head-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes guide-body-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes guide-back-in {
  from { opacity: .9; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.guide-page .masthead { animation: guide-head-in .55s cubic-bezier(.16, 1, .3, 1) both; }
.guide-page main { animation: guide-body-in .6s .08s cubic-bezier(.16, 1, .3, 1) both; }
.guide-page .guide-list > li { animation: guide-body-in .5s cubic-bezier(.16, 1, .3, 1) both; }
.guide-page .guide-list > li:nth-child(1) { animation-delay: .1s; }
.guide-page .guide-list > li:nth-child(2) { animation-delay: .16s; }
.guide-page .guide-list > li:nth-child(3) { animation-delay: .22s; }
.guide-page .guide-list > li:nth-child(4) { animation-delay: .28s; }
.guide-page .guide-list > li:nth-child(5) { animation-delay: .34s; }
.guide-page.is-back .masthead { animation: guide-back-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.guide-page.is-back main { animation: guide-back-in .4s .05s cubic-bezier(.16, 1, .3, 1) both; }
.guide-page.is-back .guide-list > li { animation: guide-back-in .4s cubic-bezier(.16, 1, .3, 1) both; animation-delay: 0s; }

/* Native cross-page transition (Chrome 126+, Edge, Safari 18.2+): the browser
   freezes the outgoing page and cross-fades the incoming one, with no gap
   between fade-out and load. Entrances are disabled in these browsers so the
   content does not animate twice; other browsers keep the manual fade driven
   by page-transition.js plus the entrances above. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .3s; animation-timing-function: ease; }
::view-transition-new(root) { animation-duration: .3s; animation-timing-function: ease; }
@supports (view-transition-name: none) {
  .guide-page .masthead,
  .guide-page main,
  .guide-page .guide-list > li,
  .guide-page.is-back .masthead,
  .guide-page.is-back main,
  .guide-page.is-back .guide-list > li { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page .masthead,
  .guide-page main,
  .guide-page .guide-list > li,
  .guide-page.is-back .masthead,
  .guide-page.is-back main,
  .guide-page.is-back .guide-list > li { animation: none; }
}