/* The guides (/guides/): long-form reading on the site's own tokens (site.css). Loaded only on guide pages. */

.g-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--surface), var(--paper)); }
.g-hero--hub { padding-bottom: 48px; }
.g-narrow { max-width: 920px; }
.g-hero h1 { font-size: 50px; line-height: 1.06; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; margin: 6px 0 18px; }
.g-meta { font-size: 16px; color: var(--muted); }
.g-author { color: var(--ink); font-weight: 700; }

.g-crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--muted); }
.g-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.g-crumbs a { color: var(--muted); }
.g-crumbs a:hover { color: var(--blue); }

.g-answer { margin-top: 26px; padding: 20px 24px; background: #fff; border: 1px solid var(--line-2); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; box-shadow: var(--shadow-1); }
.g-answer-k { font-size: 15px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.g-answer p:last-child { font-size: 20px; line-height: 1.5; color: var(--ink); }

.g-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; justify-content: center; padding-top: 48px; padding-bottom: 72px; }
.g-toc { position: sticky; top: 96px; align-self: start; font-size: 15.5px; }
.g-toc-h { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.g-toc ol { list-style: none; padding: 0; display: grid; gap: 8px; border-left: 2px solid var(--line); }
.g-toc a { display: block; padding-left: 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; line-height: 1.35; }
.g-toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.g-layout > .g-prose:only-child { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; }

.g-prose { min-width: 0; }
.g-prose > * + * { margin-top: 18px; }
.g-prose h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.015em; margin-top: 48px; text-wrap: balance; }
.g-prose h3 { font-size: 23px; line-height: 1.25; margin-top: 32px; }
.g-prose h4 { font-family: var(--head); font-size: 19px; color: var(--ink); margin: 26px 0 0; }
.g-prose h2 + *, .g-prose h3 + *, .g-prose h4 + * { margin-top: 12px; }
.g-prose ul, .g-prose ol { padding-left: 24px; display: grid; gap: 8px; }
.g-prose li::marker { color: var(--blue); font-weight: 700; }
.g-prose strong { color: var(--ink); }
.g-prose code { font-family: var(--mono); font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 5px; }
.g-prose blockquote { margin: 24px 0 0; padding: 16px 20px; background: var(--blue-tint); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; color: var(--ink); }
.g-prose blockquote p + p { margin-top: 8px; }
.g-prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.g-prose a { overflow-wrap: anywhere; }

.g-table { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.45; }
.g-table th, .g-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table thead th { background: #F7F9FC; color: var(--ink); font-size: 15px; }
.g-table tbody th { color: var(--ink); font-weight: 700; }
.g-table tbody tr:last-child th, .g-table tbody tr:last-child td { border-bottom: 0; }

.g-faq { margin-top: 56px !important; }
.g-faq h2 { margin-bottom: 18px; }
.g-faq summary { font-size: 19px; }

.g-sources { margin-top: 48px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.g-sources h2 { font-size: 22px; margin-top: 0; }
.g-sources ol { font-size: 16px; margin-top: 12px; }
.g-sources span { color: var(--muted); }
.g-sources .fine { margin-top: 12px; }

.g-next { margin-top: 56px !important; padding: 32px; background: var(--blue-tint); border: 1px solid #C9D6FA; border-radius: 14px; }
.g-next h2 { font-size: 28px; margin-top: 4px; }
.g-next .ctas { margin-top: 20px; }
.g-next .fine { margin-top: 14px; }

.g-related { padding-top: 8px; padding-bottom: 80px; }
.g-related h2 { font-size: 30px; letter-spacing: -.015em; margin-bottom: 20px; }
.g-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.g-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.g-card:hover { border-color: var(--blue); box-shadow: var(--shadow-2); }
.g-card a { text-decoration: none; color: var(--ink); }
.g-card a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.g-card-t { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.g-card-k { order: -1; font-size: 13.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.g-card-d { font-size: 16px; line-height: 1.45; color: var(--muted); }

.g-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.g-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.g-topics a:hover { border-color: var(--blue); color: var(--blue); }
.g-hub { padding-top: 48px; padding-bottom: 72px; display: grid; gap: 56px; }
.g-hub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.g-hub-head h2 { font-size: 34px; letter-spacing: -.02em; }
.g-hub-sec > p { margin: 8px 0 20px; max-width: 46em; }
.g-hub-sec:not(:has(.g-card)) { display: none; }

@media (max-width: 980px) {
  .g-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .g-toc { position: static; margin-bottom: 28px; padding: 18px 20px; background: var(--surface); border-radius: 12px; }
  .g-toc ol { border-left: 0; }
  .g-toc a { padding-left: 0; border-left: 0; }
  .g-hero h1 { font-size: clamp(30px, 7.6vw, 44px); }
  .g-prose h2 { font-size: 27px; margin-top: 40px; }
}
@media (max-width: 560px) {
  .g-crumbs li:last-child:not(:first-child) { display: none; }
  .g-hero { padding: 36px 0 28px; }
  .g-answer { padding: 16px 18px; }
  .g-answer p:last-child { font-size: 18.5px; }
  .g-next { padding: 24px 20px; }
  .g-cards { grid-template-columns: 1fr; }
  .g-table table { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .g-card { transition: none; } }

.g-photo { margin: 0 0 28px; }
.g-photo img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.g-photo figcaption { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
