/* Guides (gd-): the /guides hub and each guide page. Summit tokens from alpine.css only.
   Guides are long-form articles, so only the title band and the hub use full-screen sections. */

/* Title band */
.gd-hero, .gd-hub-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 6vh, 64px); }
.gd-hero-in { position: relative; }
.gd-hero-in > * { max-width: 54rem; }
.gd-hero h1 { max-width: 24ch; font-size: clamp(2rem, 3.3vw, 3.15rem); line-height: 1.06; }
.gd-lead { max-width: 40rem; margin-top: 24px; }
.gd-lead a { color: inherit; }
.gd-byline { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vh, 40px); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.gd-byline a { color: var(--ink); font-weight: 500; }
.gd-dates { color: var(--muted); }

/* Article */
.gd-body { background: var(--paper); padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); }
.gd-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.gd-toc { position: sticky; top: calc(var(--nav-h) + 28px); font-size: var(--fs-small); }
.gd-toc .s-label { margin-bottom: 14px; }
.gd-toc-track { position: relative; }
.gd-toc ol { list-style: none; }
.gd-toc a { display: block; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35; transform-origin: left center; transition: color .2s var(--ease), transform .16s var(--ease); }
.gd-toc a:active { transform: scale(.985); }
.gd-toc a[aria-current] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .gd-toc a:hover { color: var(--ink); } }
/* The contents doubles as a progress bar: the 1px rule fills with reading progress through the article,
   and a teal marker slides to the section being read (guide script). Scroll-linked, so no easing. */
.gd-toc-fill, .gd-toc-mark { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }
.gd-toc-fill { bottom: 0; width: 1px; background: var(--teal-bright); transform-origin: 50% 0; transform: scaleY(0); }
.gd-toc-mark { left: -1px; width: 3px; height: 0; border-radius: 2px; background: var(--teal); opacity: 0; transition: transform .22s var(--ease-in-out), height .22s var(--ease-in-out), opacity .2s var(--ease); }
.gd-toc-mark.is-on { opacity: 1; }
@media (min-width: 961px) {
  @supports (animation-timeline: view()) and (timeline-scope: --gd-read) {
    /* Progress runs from the article's top reaching the header to its end reaching the bottom of the screen. */
    .gd-grid { timeline-scope: --gd-read; }
    .gd-article { view-timeline: --gd-read block; view-timeline-inset: var(--nav-h) 0px; }
    .gd-toc-fill { animation: gd-read linear both; animation-timeline: --gd-read; animation-range: contain 0% contain 100%; }
  }
}
@keyframes gd-read { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.gd-article { min-width: 0; max-width: 44rem; font-size: var(--fs-body); line-height: 1.72; color: var(--text); }
.gd-article > * + * { margin-top: 1.1em; }
.gd-opening > * + * { margin-top: 1.1em; }
.gd-article h2 { margin-top: 2.6em; margin-bottom: -.2em; font: var(--h-weight) var(--fs-h3)/1.2 var(--f-display); letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 14px; }
.gd-article h3 { margin-top: 2em; margin-bottom: -.4em; font: 500 var(--fs-h4)/1.3 var(--f-display); letter-spacing: -.015em; color: var(--ink); }
.gd-article strong { font-weight: 600; color: var(--ink); }
.gd-article a { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .gd-article a:hover { color: var(--ink); } }
.gd-article h2[tabindex="-1"]:focus { outline: none; }
.gd-article ul, .gd-article ol { padding-left: 1.25em; }
.gd-article li + li { margin-top: .5em; }
.gd-article li::marker { color: var(--teal); }
.gd-article code { font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.gd-article blockquote { padding-left: 20px; border-left: 2px solid var(--teal); font: 400 1.15rem/1.55 var(--f-serif); color: var(--ink); }

/* Callouts: paragraphs that open with "Our price:", "What you should get:" and similar labels.
   White, a fine outline, a 2px rule on the left and a small label. No tinted fills, no motion. */
.gd-article > .gd-callout, .gd-article > .gd-callout + * { margin-top: 1.4em; }
.gd-article > .gd-callout + .gd-callout { margin-top: 12px; }
.gd-callout { min-width: 0; padding: 14px 18px 15px; border: 1px solid var(--line); border-left: 2px solid var(--teal); border-radius: 0 6px 6px 0; background: var(--surface); break-inside: avoid; }
.gd-callout-k { margin-bottom: 4px; font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); overflow-wrap: anywhere; }
.gd-callout-b { line-height: 1.65; overflow-wrap: break-word; }
.gd-callout-b::first-letter { text-transform: uppercase; }
.gd-callout--price .gd-callout-b { font: 400 1.25rem/1.42 var(--f-serif); letter-spacing: -.01em; color: var(--ink); }
.gd-callout--warn { border-left-color: var(--ink); }
.gd-callout--warn .gd-callout-k { color: var(--ink); }
.gd-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Tables: fine rules, no fills. The wrapper scrolls sideways on small screens, never the page. */
.gd-table { overflow-x: auto; margin-top: 1.6em; -webkit-overflow-scrolling: touch; }
.gd-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.gd-table thead th { text-align: left; vertical-align: bottom; padding: 0 18px 12px 0; border-bottom: 1px solid var(--ink); font-weight: 500; color: var(--ink); }
.gd-table tbody th, .gd-table td { text-align: left; vertical-align: top; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--line); }
.gd-table tbody th { font-weight: 500; color: var(--ink); }

/* Prompts to copy */
.gd-prompt { margin-top: 1.4em; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.gd-prompt-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 9px 18px; border-bottom: 1px solid var(--line-soft); }
.gd-prompt-bar > span { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
/* Copy: the icon morphs copy to tick (200ms crossfade, 2px blur hides the seam), press shrinks to 96%. */
.gd-copy { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 11px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font: 500 var(--fs-micro)/1.2 var(--f-body); color: var(--ink); white-space: nowrap; cursor: pointer; transition: border-color .2s var(--ease), transform .16s var(--ease); }
.gd-copy:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .gd-copy:hover { border-color: var(--ink); } }
.gd-copy.is-copied, .gd-copy.is-copied:hover { border-color: var(--teal); }
.gd-copy-ic { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.gd-copy-ic svg { position: absolute; inset: 0; width: 14px; height: 14px; transition: opacity .2s var(--ease), transform .2s var(--ease), filter .2s var(--ease); }
.gd-copy-ok { opacity: 0; transform: scale(.7); filter: blur(2px); color: var(--teal); }
.gd-copy.is-copied .gd-copy-cp { opacity: 0; transform: scale(.7); filter: blur(2px); }
.gd-copy.is-copied .gd-copy-ok { opacity: 1; transform: none; filter: none; }
.gd-prompt pre { margin: 0; padding: 16px 18px 18px; white-space: pre-wrap; word-break: break-word; }
.gd-prompt code { font: .875rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }

/* Common questions reuse the service FAQ styles; tighter inside the article. */
.gd-faq { margin-top: 1.2em; }
.gd-faq h3 { margin: 0; }
.gd-faq .sv-faq-btn { padding: 20px 0; }
.gd-faq .sv-faq-a p { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); }
.gd-faq .sv-faq-a p + p { margin-top: .8em; }

/* Sources */
.gd-sources { margin-top: 3em; padding-top: 24px; border-top: 1px solid var(--line); }
.gd-sources .s-label { margin-bottom: 12px; }
.gd-sources ol { padding-left: 1.3em; font-size: var(--fs-small); line-height: 1.5; }
.gd-sources li + li { margin-top: .4em; }
.gd-sources a { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .gd-sources a:hover { color: var(--ink); } }
.gd-checked { margin-top: 16px; font-size: var(--fs-micro); line-height: 1.5; color: var(--muted); }

/* Closing call to action */
.gd-cta { padding: clamp(64px, 8vw, 112px) 0; }
.gd-cta-in > * { max-width: 46rem; }
.gd-cta-text p { margin-top: 14px; font: 400 var(--fs-lead)/1.5 var(--f-body); color: var(--ink); }
.gd-cta-text a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.gd-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* Cards (related guides and the hub) */
.gd-related { padding: var(--section-y) 0; }
.gd-related h2 { margin-bottom: clamp(28px, 4vh, 44px); }
.gd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); list-style: none; }
.gd-cards a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding-top: 22px; border-top: 1px solid var(--ink); color: inherit; text-decoration: none; transition: transform .16s var(--ease); }
.gd-cards a:active { transform: scale(.985); }
.gd-cards b { font: 500 var(--fs-h4)/1.3 var(--f-display); letter-spacing: -.015em; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .gd-cards a:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; } }
.gd-card-k { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.gd-card-d { font-size: var(--fs-small); line-height: 1.55; color: var(--text); }
.gd-card-m { margin-top: auto; padding-top: 6px; font-size: var(--fs-micro); color: var(--muted); }
.gd-new { align-self: flex-start; padding: 2px 10px; border: 1px solid var(--teal); border-radius: var(--radius-pill); font-size: var(--fs-micro); font-weight: 500; color: var(--teal); }
.gd-all { margin-top: clamp(28px, 4vh, 40px); }

/* Hub */
.gd-hub-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.gd-hub-hero h1 { max-width: 16ch; margin-bottom: 24px; }
.gd-hub-hero .t-lead { max-width: 38rem; }
.gd-hub-meta { margin-top: 24px; font-size: var(--fs-small); color: var(--muted); }
/* "Start here": up to three numbered picks in the hero's right-hand column. White card, fine outline. */
.gd-start { justify-self: end; width: 100%; max-width: 400px; padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.gd-start .s-label { margin-bottom: 8px; }
.gd-start ol { list-style: none; }
.gd-start a { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) 14px; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line-soft); color: var(--text); text-decoration: none; transition: transform .16s var(--ease); }
.gd-start a:active { transform: scale(.985); }
.gd-start-n { font: 300 1.6rem/1 var(--f-serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; color: var(--teal); }
.gd-start-t { min-width: 0; }
.gd-start-t b { display: block; font-size: 1rem; font-weight: 500; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.gd-start-t small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: var(--fs-micro); line-height: 1.45; color: var(--muted); }
.gd-start-go { width: 14px; height: 14px; margin-top: 4px; color: var(--ink); transition: transform .2s var(--ease); }
.gd-start-meta { padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: var(--fs-micro); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .gd-start a:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
  .gd-start a:hover .gd-start-go { transform: translateX(3px); }
}
.gd-hub { padding: var(--section-y) 0; }
.gd-group { margin-top: clamp(24px, 3vh, 36px); }
.gd-group + .gd-group { margin-top: clamp(48px, 7vh, 72px); }
/* html already pads anchor jumps for the fixed header (scroll-padding-top), so headings add only a little air. */
.gd-group h2 { margin-bottom: 22px; scroll-margin-top: 14px; }

@media (max-width: 960px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .gd-toc { position: static; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
  /* Above the article on tablets and phones the contents isn't visible while reading: no marker or fill. */
  .gd-toc-fill, .gd-toc-mark { display: none; }
  .gd-toc a[aria-current] { border-left-color: var(--teal); box-shadow: inset 1px 0 0 var(--teal); }
  .gd-start { justify-self: start; max-width: 480px; }
  .gd-cards { grid-template-columns: 1fr 1fr; }
  .gd-hub-hero-in { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) { .gd-hero, .gd-hub-hero { padding-top: calc(var(--nav-h) + 28px); } }
@media (max-width: 640px) {
  .gd-cards { grid-template-columns: 1fr; }
  /* Tables become one block per row, each value labelled with its column heading. */
  .gd-table { overflow: visible; }
  .gd-table table { min-width: 0; border-top: 1px solid var(--ink); }
  .gd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gd-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gd-table tbody th, .gd-table td { display: block; padding: 0; border: 0; }
  .gd-table tbody th { margin-bottom: 6px; font-size: var(--fs-body); }
  .gd-table td + td { margin-top: 4px; }
  .gd-table td::before { content: attr(data-label) ': '; color: var(--muted); }
  .gd-byline { align-items: flex-start; }
}
@media print {
  .gd-toc-fill, .gd-toc-mark { display: none; }
  .gd-callout { break-inside: avoid; }
}
