/* The /guides pages: built on site.css tokens and components (wrap, eyebrow, btn, foot), so they
   follow the same light/dark theme. Written by site/guides/build.mjs. */

.guide { display: block; }
.g-narrow { max-width: 780px; }

.nav a[aria-current="page"] { color: var(--ink); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 0.875rem; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li[aria-current="page"] { color: var(--ink-2); }

/* Header */
.g-head { padding: 48px 0 36px; background: var(--bg); }
.g-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; margin: 0 0 22px; }
.g-head .lead { margin-bottom: 18px; }
.g-meta { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }

.g-answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.g-answer-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.g-answer p { margin: 0; font-size: 1.075rem; line-height: 1.6; color: var(--ink); }

/* Body */
.g-body { padding-bottom: 56px; }
.g-body section { margin-top: 40px; }
.g-body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 14px; }
.g-body h3 { font-size: 1.06rem; margin: 0 0 6px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.g-body p, .g-body li { color: var(--ink-2); line-height: 1.7; }
.g-body p { margin: 0 0 14px; }
.g-body ul, .g-body ol { margin: 0 0 14px; padding-left: 1.25em; list-style: disc; }
.g-body ol { list-style: decimal; }
.g-body .g-sources ul { list-style: none; }
.g-body li { margin: 0 0 8px; }
.g-body li::marker { color: var(--accent); }
.g-body strong { color: var(--ink); font-weight: 600; }
.g-body a { color: var(--accent-ink); text-underline-offset: 2px; }
.g-body code { font-size: 0.88em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }

.g-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 0.94rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.g-table th, .g-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.g-table th { font-weight: 600; color: var(--ink); background: var(--bg-alt); }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.g-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.g-box h2 { font-size: 1.45rem; }
.g-not { border-top: 4px solid var(--wait); }
.g-fit { background: var(--accent-soft); border-color: transparent; }
.g-fit p { color: var(--ink); }
.g-status { font-size: 0.9rem; color: var(--ink-2) !important; border-top: 1px solid var(--line-strong); padding-top: 12px; margin-bottom: 0 !important; }

.g-q { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.g-q:first-of-type { border-top: 0; padding-top: 4px; }
.g-q p { margin-bottom: 8px; }

.g-sources ul { list-style: none; padding: 0; }
.g-sources li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.g-sources li a { font-weight: 500; }
.g-sources li span { display: block; font-size: 0.85rem; color: var(--muted); }
.g-disclaimer { font-size: 0.875rem; color: var(--muted) !important; }

/* Related and index cards */
.g-related { background: var(--bg-alt); padding: 56px 0; }
.g-related h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 20px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.g-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.g-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.g-card strong { font-weight: 600; line-height: 1.35; }
.g-card-cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.g-card-desc { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.g-all { margin: 22px 0 0; }
.g-all a { color: var(--accent-ink); font-weight: 500; }

.g-index { padding-top: 8px; padding-bottom: 64px; }
.g-index-head h1 { max-width: 820px; }
.g-index-head .lead { max-width: 680px; }
.g-group { margin-top: 40px; }
.g-group h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 6px; }
.g-group-lead { color: var(--muted); margin: 0 0 18px; max-width: 680px; }

/* Call to action */
.g-cta { background: var(--band); color: var(--band-ink); padding: 64px 0; }
.g-cta-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.g-cta h2 { color: var(--band-ink); font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 12px; }
.g-cta p { color: var(--band-muted); margin: 0; max-width: 560px; line-height: 1.65; }
.g-cta .eyebrow { color: var(--band-accent); }
.g-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.g-cta-mail { color: var(--band-muted); font-size: 0.92rem; }
.g-cta-mail:hover { color: var(--band-ink); }

@media (max-width: 760px) {
  .g-head { padding: 32px 0 28px; }
  .g-box { padding: 20px 18px; }
  .g-cta-in { grid-template-columns: 1fr; }
  .g-table td:first-child { white-space: normal; }
}
