/* Guide pages (built by guides-src/build.py). Uses the tokens from styles.css. */
.g { --g-accent: #2f5bd3; --g-tint: #eef2fb; --g-tint-line: #d9e2f5; padding-bottom: 0; }
.g .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Hero */
.g-hero { margin: 16px auto 0; max-width: calc(var(--container) + 2 * var(--gutter)); padding-inline: 12px; }
.g-hero-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: radial-gradient(120% 90% at 50% -10%, #dfe7fa 0%, var(--g-tint) 40%, var(--surface) 100%); border: 1px solid var(--g-tint-line); padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px); text-align: center; }
.g-kicker { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g-accent); }
.g-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; color: var(--ink); max-width: 17em; margin: 14px auto 0; text-wrap: balance; }
.g-sub { max-width: 40em; margin: 20px auto 0; font-size: 1.125rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.g-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.g-ctas a { text-decoration: none; }
.g-byline { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-size: .875rem; color: var(--muted); }
.g-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.g-byline strong { color: var(--ink); font-weight: 600; }
.g-def { max-width: 820px; margin: 40px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--g-tint-line); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: var(--shadow-sm); }
.g-def p { margin-top: 10px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--text); letter-spacing: -.01em; }
.g-def strong { color: var(--ink); }

/* Contents grid */
.g-toc { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px auto 0; background: var(--surface); }
.g-toc a { display: block; padding: 16px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.4; font-weight: 500; transition: background .2s var(--ease); }
.g-toc a:hover { background: var(--g-tint); }
.g-toc span { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--g-accent); margin-bottom: 8px; }

/* Sections */
.g-sec { padding-block: clamp(64px, 8vw, 104px) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.g-sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; padding-bottom: 32px; }
.g-num { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .75rem; color: var(--g-accent); margin-bottom: 16px; }
.g-num::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.g-sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.g-sec-sum { font-size: 1.05rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.g-prose { max-width: 720px; }
.g-prose p, .g-prose li { font-size: 1rem; line-height: 1.75; color: var(--text); }
.g-prose p + p { margin-top: 14px; }
.g-prose h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.015em; color: var(--ink); margin: 44px 0 14px; }
.g-prose strong { color: var(--ink); font-weight: 600; }
.g-prose ul { display: grid; gap: 10px; margin-top: 12px; }
.g-prose ul li { position: relative; padding-left: 20px; }
.g-prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--g-accent); }
.g-prose a, .g-sec-sum a { color: var(--g-accent); text-decoration: underline; text-underline-offset: 3px; }
.g-block { margin-top: 32px; }

/* Numbered key points */
.g-points { border-top: 1px solid var(--ink); }
.g-points li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.g-points li > span { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; color: var(--g-accent); line-height: 1; }
.g-points p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--text); letter-spacing: -.01em; }
.g-points mark { background: linear-gradient(transparent 62%, #dbe4fb 62%); color: var(--ink); font-weight: 500; }

/* Callout */
.g-rule { max-width: 1040px; background: var(--g-tint); border: 1px solid var(--g-tint-line); border-radius: var(--radius-lg); padding: 24px 28px; margin-top: 32px; }
.g-rule .g-kicker { font-size: .7rem; }
.g-rule p { margin-top: 10px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }

/* Tables */
.g-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
.g-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--text); }
.g-table tr:last-child > * { border-bottom: 0; }
.g-table thead th { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--subtle); }
.g-table tbody th { font-weight: 600; color: var(--ink); width: 20%; }
.g-table .hl { background: var(--g-tint); color: var(--ink); }
.g-table thead .hl { background: var(--ink); color: #fff; }
.g-table .strike { color: var(--faint); text-decoration: line-through; }

/* Steps timeline */
.g-steps { max-width: 760px; counter-reset: step; position: relative; }
.g-steps li { position: relative; padding: 0 0 28px 52px; counter-increment: step; }
.g-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.g-steps li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.g-steps li:last-child::after { display: none; }
.g-steps h4 { font-size: 1.15rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; line-height: 30px; }
.g-steps p { margin-top: 4px; font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* Card grids */
.g-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.g-cards.three { grid-template-columns: repeat(3, 1fr); }
.g-cards.four { grid-template-columns: repeat(4, 1fr); }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.g-card h4 { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.g-card p { margin-top: 6px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.g-card .g-big { font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.g-card code, .g-prose code { font-family: var(--font-mono); font-size: .78rem; background: var(--g-tint); color: var(--g-accent); padding: 2px 6px; border-radius: 6px; }
.g-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.g-check::before { content: ""; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Example panel (illustrative app-style mock) */
.g-example { margin-top: 8px; border-radius: var(--radius-xl); background: radial-gradient(90% 120% at 50% 0%, #e3eafb, var(--g-tint) 55%, #f6f8fd); border: 1px solid var(--g-tint-line); padding: clamp(20px, 4vw, 48px); }
.g-window { max-width: 760px; margin-inline: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.g-window-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.g-window-bar b { color: var(--ink); font-weight: 600; }
.g-window-bar .dot { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); }
.g-window-body { padding: 20px; display: grid; gap: 12px; }
.g-q { justify-self: end; max-width: 80%; background: var(--subtle); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: .92rem; color: var(--ink); }
.g-a { font-size: .92rem; line-height: 1.6; color: var(--text); }
.g-prod { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.g-prod > span:first-child { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.g-prod b { color: var(--ink); font-weight: 600; }
.g-prod small { display: block; color: var(--muted); font-size: .8rem; }
.g-prod.you { border-color: var(--g-accent); background: var(--g-tint); }
.g-tag { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--subtle); color: var(--muted); white-space: nowrap; }
.g-prod.you .g-tag { background: var(--g-accent); color: #fff; }
.g-sheet { width: 100%; border-collapse: collapse; font-size: .82rem; }
.g-sheet th, .g-sheet td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.g-sheet th { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 500; }
.g-sheet .yes { color: #1f7a4d; font-weight: 600; }
.g-sheet .no { color: var(--faint); }
.g-caption { text-align: center; margin-top: 16px; font-size: .78rem; color: var(--faint); }

/* FAQ */
.g-faq { max-width: 860px; border-top: 1px solid var(--line); }
.g-faq details { border-bottom: 1px solid var(--line); }
.g-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--g-accent); transition: transform .2s var(--ease); }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { padding: 0 0 22px; max-width: 720px; line-height: 1.7; color: var(--text); }

/* Closing CTA + related */
.g-end { margin: clamp(72px, 9vw, 112px) auto 0; padding-inline: 12px; max-width: calc(var(--container) + 2 * var(--gutter)); }
.g-cta { border-radius: var(--radius-xl); background: radial-gradient(90% 140% at 85% 0%, #1d3566 0%, var(--navy-deep) 60%); color: #fff; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.g-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.g-cta p { margin-top: 12px; color: rgba(255,255,255,.72); line-height: 1.6; }
.g-cta .g-ctas { justify-content: flex-end; margin-top: 0; }
.g-cta .btn-primary { background: #fff; color: var(--ink); }
.g-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; margin-bottom: clamp(64px, 8vw, 96px); }
.g-related a { display: block; text-decoration: none; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s var(--ease); }
.g-related a:hover { border-color: var(--g-accent); }
.g-related span { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.g-related b { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }

/* Guides index */
.g-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0 clamp(64px, 8vw, 96px); }
.g-list a { display: flex; flex-direction: column; gap: 10px; min-height: 200px; text-decoration: none; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.g-list a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.g-list b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.g-list p { color: var(--muted); line-height: 1.55; }
.g-list .more { margin-top: auto; font-size: .85rem; color: var(--g-accent); font-weight: 500; }

@media (max-width: 900px) {
  .g-toc { grid-template-columns: repeat(2, 1fr); }
  .g-sec-head { grid-template-columns: 1fr; align-items: start; }
  .g-cards.three, .g-cards.four { grid-template-columns: repeat(2, 1fr); }
  .g-cta { grid-template-columns: 1fr; }
  .g-cta .g-ctas { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .g-toc, .g-cards, .g-cards.three, .g-cards.four, .g-related, .g-list { grid-template-columns: 1fr; }
  .g-points li { grid-template-columns: 56px 1fr; }
  .g-hero { padding-inline: 8px; }
}

/* Labels inside boxes keep the small mono style */
.g-def p.g-kicker, .g-rule p.g-kicker { margin-top: 0; font-size: .7rem; line-height: 1.4; color: var(--g-accent); letter-spacing: .1em; }
.g-def p.g-kicker + p, .g-rule p.g-kicker + p { margin-top: 10px; }
.g-toc.cols-3 { grid-template-columns: repeat(3, 1fr); }
.g-card .g-big { color: var(--g-accent); }
@media (max-width: 900px) { .g-toc.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-toc.cols-3 { grid-template-columns: 1fr; } }

/* Navy hero (Kelian, 2026-10-20) */
.g-hero-card { background: radial-gradient(70% 90% at 50% -10%, #23407a 0%, #10224a 45%, var(--navy-deep) 100%); border-color: transparent; color: #fff; }
.g-hero h1 { color: #fff; }
.g-hero .g-sub { color: rgba(255,255,255,.72); }
.g-hero .g-kicker { color: #9db8ff; }
.g-hero .g-byline { color: rgba(255,255,255,.6); }
.g-hero .g-byline strong { color: #fff; }
.g-hero .g-avatar { background: #fff; color: var(--ink); }
.g-hero .btn-primary { background: #fff; color: var(--ink); }
.g-hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.g-hero .g-def { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.g-hero .g-def p { color: rgba(255,255,255,.85); }
.g-hero .g-def strong { color: #fff; }
.g-hero .g-def p.g-kicker { color: #9db8ff; }

/* Sourced stat cards */
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-stat { display: flex; flex-direction: column; min-height: 200px; background: var(--navy-deep); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.g-stat b { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.g-stat p { margin-top: 12px; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.g-stat em { display: block; margin-top: 10px; font-style: normal; font-size: .85rem; color: #9db8ff; font-weight: 500; }
.g-stat small { margin-top: auto; padding-top: 16px; font-size: .75rem; color: rgba(255,255,255,.5); }
.g-stat small a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }
.g-sources { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 16px; }
.g-sources summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.g-sources ol { margin-top: 12px; padding-left: 1.2em; list-style: decimal; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.g-sources a { color: var(--g-accent); text-decoration: underline; word-break: break-word; }
@media (max-width: 900px) { .g-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-stats { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .g-toc a.toc-last { grid-column: span var(--span); } }

/* Tool cards (comparison articles) */
.g-tools { display: grid; gap: 16px; }
.g-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; box-shadow: var(--shadow-xs); scroll-margin-top: calc(var(--header-h) + 16px); }
.g-tool.ours { border-color: var(--g-accent); box-shadow: 0 0 0 3px var(--g-tint); }
.g-tool-head .g-kicker { font-size: .68rem; }
.g-tool-head h3 { margin-top: 6px; font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.g-tool-head .price { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--g-tint); color: var(--ink); }
.g-tool-head a { display: block; margin-top: 10px; font-size: .8rem; color: var(--g-accent); text-decoration: underline; text-underline-offset: 2px; }
.g-tool-body p { font-size: .95rem; line-height: 1.6; color: var(--text); }
.g-tool-body dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin-top: 14px; font-size: .9rem; line-height: 1.5; }
.g-tool-body dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 3px; }
.g-tool-body dd { color: var(--text); }
.g-table td.yes { color: #1f7a4d; font-weight: 500; }
.g-table td.part { color: #8a5a00; }
@media (max-width: 760px) { .g-tool { grid-template-columns: 1fr; gap: 12px; } .g-tool-body dl { grid-template-columns: 1fr; gap: 2px; } .g-tool-body dt { padding-top: 8px; } }

/* Press kit */
.g-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g-shots figure { margin: 0; }
.g-shots img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.g-shots figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.g-shots figcaption a, .g-logo a, .g-card p a { color: var(--g-accent); text-decoration: underline; text-underline-offset: 2px; }
.g-logo-box { height: 120px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); margin-bottom: 14px; padding: 16px; }
.g-logo-box.dark { background: var(--navy-deep); }
.g-logo-box img { max-width: 80%; max-height: 48px; width: auto; height: auto; }
.g-stat small a { color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .g-shots { grid-template-columns: 1fr; } }
