/* Stylesheet for the static guide pages in /guides (generated by build/seo.ts). No JavaScript runs on these pages and the CSP allows
 * only files from this origin, so every style lives here. Colours are the logo's navy and blue; text pairs are WCAG AA (4.5:1) or better. */
@font-face { font-family: "Archivo DS"; src: url("/fonts/archivo-latin-wdth-wght.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --navy: #0e2541; --blue: #056ceb; --blue-dark: #0558c4; --ink: #0c1220; --text: #172033; --text-2: #3e485c; --muted: #5c6679;
  --bg: #ffffff; --bg-2: #f6f8fb; --line: #e2e7ee; --soft: #eaf2fe;
  --font: "Archivo DS", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.7 var(--font); }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.g-skip { position: absolute; left: 16px; top: -80px; z-index: 10; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.g-skip:focus { top: 16px; }
.g-wrap { width: min(100% - 32px, 720px); margin-inline: auto; }

.g-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.g-head-row { width: min(100% - 32px, 1000px); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.g-logo { display: inline-flex; align-items: center; min-height: 44px; }
.g-logo svg { display: block; height: 26px; width: auto; }
.g-head nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.g-head nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 500; font-size: 1rem; text-decoration: none; }
.g-head nav a:hover { color: var(--blue-dark); text-decoration: underline; }

main { padding: 32px 0 72px; }
.g-crumbs { font-size: 0.9375rem; color: var(--muted); margin-bottom: 24px; }
.g-article h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 12px; font-weight: 650; text-wrap: balance; }
.g-meta { margin: 0 0 24px; font-size: 0.9375rem; color: var(--muted); }
.g-intro { font-size: 1.25rem; line-height: 1.6; color: var(--text-2); margin: 0 0 32px; }
.g-article h2 { font-size: 1.625rem; line-height: 1.25; letter-spacing: -0.018em; color: var(--ink); margin: 48px 0 14px; font-weight: 650; text-wrap: balance; scroll-margin-top: 16px; }
.g-article p { margin: 0 0 16px; }
.g-article ul, .g-article ol { margin: 0 0 20px; padding-left: 1.4em; }
.g-article li { margin-bottom: 8px; }
.g-article dl { margin: 0 0 20px; }
.g-article dt { font-weight: 650; color: var(--ink); margin-top: 20px; }
.g-article dd { margin: 4px 0 0; padding-left: 16px; border-left: 3px solid var(--soft); color: var(--text-2); }
.g-article q { font-style: normal; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.g-article q::before, .g-article q::after { content: ""; }

.g-toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; font-size: 1rem; }
.g-toc p { margin: 0 0 6px; font-weight: 650; color: var(--ink); }
.g-toc ol { margin: 0; padding-left: 1.3em; }
.g-toc li { margin: 0; }
.g-toc a { display: inline-block; padding: 4px 0; }

.g-article .g-cards { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.g-article .g-cards li { margin: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.g-article .g-cards h2 { margin: 0 0 8px; font-size: 1.375rem; }
.g-article .g-cards p { margin: 0; color: var(--text-2); }

.g-cta { margin: 56px 0 8px; padding: 28px; border-radius: 16px; background: var(--navy); color: #eef1f6; }
.g-cta h2 { margin: 0 0 8px; color: #fff; font-size: 1.5rem; }
.g-cta p { color: #d3dbe8; }
.g-cta a { color: #fff; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; margin: 4px 8px 4px 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid var(--blue); }
.g-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.g-btn-line { background: transparent; border-color: #9fb4d1; }
.g-btn-line:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.g-cta :focus-visible { outline-color: #fff; }

.g-related h2 { font-size: 1.375rem; }
.g-article .g-related ul { list-style: none; padding: 0; }

.g-foot { background: var(--navy); color: #c3cde0; padding: 40px 0 48px; font-size: 0.9375rem; line-height: 1.6; }
.g-foot p { margin: 0 0 8px; }
.g-foot p:first-child { color: #eef1f6; font-weight: 500; }
.g-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 12px 0 0; padding: 0; }
.g-foot a { display: inline-flex; align-items: center; min-height: 44px; color: #eef1f6; }
.g-foot a:hover { color: #fff; }

@media (max-width: 560px) { .g-head-row { flex-wrap: wrap; padding-block: 6px; } .g-head nav { width: 100%; gap: 0 20px; border-top: 1px solid var(--line); } }
@media (max-width: 480px) { body { font-size: 1.0625rem; } .g-cta { padding: 22px; } }
@media print { .g-head, .g-foot, .g-cta, .g-toc, .g-skip { display: none; } body { font-size: 12pt; } }

/* ------------------------------------------------------------------ free tools (/tools) */
[hidden] { display: none !important; }
.g-tool { margin: 8px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.g-fields { display: grid; gap: 18px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .g-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-field label { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--ink); margin-bottom: 6px; }
.g-input { position: relative; display: flex; align-items: center; }
.g-input input, .g-table input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #8a94a6; border-radius: 8px; background: #fff; color: var(--ink); font: 500 1.0625rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.g-input input:focus-visible, .g-table input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.g-unit { position: absolute; left: 12px; color: var(--muted); font-weight: 500; pointer-events: none; }
.g-unit + input { padding-left: 26px; }
.g-unit-end { left: auto; right: 12px; font-size: 0.9375rem; }
.g-input:has(.g-unit-end) input { padding-right: 62px; }
.g-tool .g-hint { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.g-tool .g-status { min-height: 1.4em; margin: 14px 0 0; color: #9b1c2e; font-weight: 600; font-size: 0.9375rem; }
.g-tool .g-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #fff3d6; border: 1px solid #e3c06b; color: #5a3d00; font-size: 0.9375rem; }
.g-article .g-results-h { margin: 18px 0 10px; font-size: 1.125rem; }
.g-wide { width: min(100% - 32px, 1000px); }
.g-wide .g-article > :not(form), .g-wide .g-article section { max-width: 720px; }
.g-results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.g-result { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.g-result dt { margin: 0; font-size: 0.875rem; line-height: 1.35; color: var(--muted); font-weight: 500; }
.g-result dd { margin: 4px 0 0; padding: 0; border: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-result-big { background: var(--navy); border-color: var(--navy); }
.g-result-big dt { color: #c3cde0; }
.g-result-big dd { color: #fff; font-size: 1.875rem; }
.g-fine { margin: 14px 0 0 !important; font-size: 0.875rem; color: var(--muted); }
.g-article .g-callout { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid var(--blue); background: var(--soft); border-radius: 0 8px 8px 0; font-size: 1rem; }
.g-article section h2 + dl dd { margin-bottom: 4px; }
.g-tpls { display: grid; gap: 16px; }
.g-tpl { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.g-tpl h2 { margin: 0 0 2px; font-size: 1.1875rem; }
.g-when { margin: 0 0 10px !important; font-size: 0.9375rem; color: var(--muted); }
.g-tpl-text { margin: 0 0 12px !important; padding: 12px 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.g-copy { cursor: pointer; font-family: var(--font); }
.g-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.g-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 0.9375rem; }
.g-table th, .g-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.g-table thead th { font-size: 0.8125rem; line-height: 1.3; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.g-table tbody th { min-width: 150px; font-weight: 600; }
.g-table td input { min-width: 90px; }
.g-table output { display: block; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.g-table tfoot th, .g-table tfoot td { border-bottom: 0; background: var(--bg-2); font-weight: 650; }
@media (max-width: 480px) { .g-tool { padding: 16px; } .g-result dd { font-size: 1.375rem; } }
@media print { .g-copy { display: none !important; } .g-tool { background: #fff; } }
