/* Guide pages only (loaded after styles.css by /guides/*.html).
   Uses the site's tokens from styles.css: --paper, --surface, --ink, --teal, --teal-deep, --mint-deep, --line, --muted.
   Small teal text uses --teal-deep (5.3:1 on --paper), never --teal (3.6:1). */

:root { --guide-width: 680px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.guide { width: calc(100% - 36px); max-width: var(--guide-width); margin: 0 auto; padding: 8px 0 24px; }
.guide article { min-width: 0; }

/* Breadcrumb: plain text until the guides index exists */
.crumbs { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs li:not(:last-child)::after { content: "\203A"; margin-left: 8px; color: var(--muted); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Heading block */
.guide h1 { max-width: none; margin: 0; font-size: clamp(32px, 8.4vw, 46px); line-height: 1.1; }
.guide .h1-sub { display: block; margin-top: 10px; color: var(--teal-deep); font-size: .62em; line-height: 1.2; letter-spacing: -.01em; }

.short-answer { margin: 28px 0 0; padding: 20px 22px; border: 1px solid #cfe0d8; border-radius: 14px; background: var(--mint-deep); }
.short-answer p { margin: 0; font-size: 18px; line-height: 1.6; }
.short-answer .short-answer-label { margin-bottom: 8px; color: var(--teal-deep); font-size: 14px; font-weight: 700; line-height: 1.4; }

.byline { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Contents */
.toc { margin: 32px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc-title { margin: 0 0 8px; color: var(--teal-deep); font-size: 14px; font-weight: 700; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 10px; }
.toc li::before { content: counter(toc) "."; min-width: 1.6em; padding: 9px 0; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.toc a { min-height: 44px; padding: 9px 0; display: flex; align-items: center; color: var(--ink); font-size: 16px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Body copy: about 680px wide, 18px text */
.guide-body { margin-top: 12px; font-size: 18px; line-height: 1.7; }
.guide-body p, .guide-body li { overflow-wrap: break-word; }
.guide-body p { margin: 0 0 1.1em; }
.guide-body h2, .we-do h2, .guide-faq h2, .guide-sources h2 { scroll-margin-top: 24px; margin: 2em 0 .55em; font-size: clamp(25px, 6.2vw, 31px); line-height: 1.18; }
.guide-body ul, .guide-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.guide-body li { margin-bottom: .6em; padding-left: .2em; }
.guide-body li::marker { color: var(--teal-deep); font-weight: 700; }
.guide-body strong { font-weight: 700; }
.guide-body a, .guide-sources a { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-body a:hover, .guide-sources a:hover { color: var(--teal-deep); }

/* Comparison table: stacks into one block per row on phones, so the page never scrolls sideways */
.compare { width: 100%; margin: 1.2em 0 1.6em; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare tr { display: block; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.compare th[scope="row"] { display: block; padding: 10px 16px; background: var(--mint-deep); color: var(--ink); font-size: 15px; font-weight: 700; text-align: left; }
.compare td { display: block; padding: 10px 16px; border-top: 1px solid var(--line-soft); overflow-wrap: break-word; }
.compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--teal-deep); font-size: 13px; font-weight: 800; letter-spacing: .06em; }

/* "What we'd do for you" */
.we-do { margin: 40px 0 0; padding: 22px 22px 18px; border: 1px solid #cfe0d8; border-radius: 14px; background: var(--mint-deep); }
.we-do h2 { margin-top: 0; font-size: clamp(22px, 5.6vw, 26px); }
.we-do p { margin: 0 0 .8em; font-size: 17px; line-height: 1.6; }

/* FAQ: reuses the site's .faq look, widened to the reading column */
.guide-faq .faq { max-width: none; }
.guide-faq h2, .guide-sources h2 { margin-top: 2.2em; }
.guide .faq summary { font-size: 17px; }
.guide .faq details p { color: var(--ink); font-size: 17px; line-height: 1.65; }

/* Sources */
.guide-sources ol { margin: 0; padding-left: 1.3em; font-size: 16px; line-height: 1.6; }
.guide-sources li { margin-bottom: .6em; padding-left: .2em; overflow-wrap: anywhere; }
.guide-sources li::marker { color: var(--muted); }

/* Call to action band after the article */
.guide-page .cta-band { margin-top: clamp(40px, 6vw, 64px); }

@media (min-width: 721px) {
  .guide { width: calc(100% - 64px); padding-top: 16px; }
  .guide h1 { font-size: 52px; }
  .short-answer { padding: 24px 28px; }
  .short-answer p { font-size: 19px; }
  .toc { padding: 22px 28px; }
  .toc ol { columns: 1; }

  /* Real table from tablet width up */
  .compare { font-size: 15px; }
  .compare thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .compare tr { display: table-row; margin: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .compare thead th, .compare th[scope="row"], .compare td { display: table-cell; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
  .compare thead th { background: var(--mint-deep); color: var(--ink); font-weight: 700; }
  .compare th[scope="row"] { width: 17%; background: var(--surface); font-size: 15px; }
  .compare td { border-top: 1px solid var(--line); }
  .compare td::before { display: none; }
}

@media (max-width: 380px) {
  .short-answer, .toc, .we-do { padding-left: 16px; padding-right: 16px; }
  .compare th[scope="row"], .compare td { padding-left: 14px; padding-right: 14px; }
}

/* Links in the breadcrumb and the byline */
.crumbs a, .byline a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.crumbs a:hover, .byline a:hover { color: var(--teal-deep); text-decoration-color: var(--teal); }

.guide-related { margin-top: 2.2em; }
.guide-related h2 { margin: 0 0 .7em; font-size: clamp(25px, 6.2vw, 31px); line-height: 1.18; }

/* /guides page */
.hub { max-width: 880px; }
.hub-intro { margin: 14px 0 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.topic-chips { margin-top: 26px; }
.topic-chips ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-chips a { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color 180ms ease; }
.topic-chips a:hover { border-color: var(--teal); color: var(--teal-deep); }
.hub-section { margin-top: 52px; scroll-margin-top: 24px; }
.hub-section h2 { margin: 0 0 .45em; font-size: clamp(25px, 6.2vw, 31px); line-height: 1.18; }
.hub-topic-intro { max-width: 62ch; margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hub-topic-intro a, .hub-how a, .def a { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hub-topic-intro a:hover, .hub-how a:hover, .def a:hover { color: var(--teal-deep); }
.defs { margin: 0; border-bottom: 1px solid var(--line); }
.def { padding: 18px 0; border-top: 1px solid var(--line); }
.def dt { font-size: 18px; font-weight: 700; line-height: 1.4; scroll-margin-top: 24px; }
.def dd { margin: 6px 0 0; font-size: 17px; line-height: 1.65; }
.hub-how-body { max-width: 62ch; font-size: 17px; line-height: 1.65; }
.hub-how-body p { margin: 0 0 .8em; }
.hub-how-body ul { margin: 0; padding-left: 1.3em; }
.hub-how-body li { margin-bottom: .5em; padding-left: .2em; }
.hub-how-body li::marker { color: var(--teal-deep); font-weight: 700; }
.hub-page .cta-band { margin-top: clamp(48px, 7vw, 72px); }

/* Code sample (robots.txt example) */
.guide-body pre { margin: 0 0 1.3em; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-body code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
