:root {
  --ink: #15213c;
  --muted: #4f5d75;
  --blue: #1849d6;
  --blue-dark: #103aa9;
  --line: #d9e0ec;
  --pale: #f1f5ff;
  --surface: #f8faff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap { width: min(1240px, calc(100% - 3rem)); margin: auto; }
header, footer { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -.05em; }
.brand span, .eyebrow { color: var(--blue); }
main { padding: 3.5rem 0 4.5rem; }
.breadcrumbs { margin-bottom: 2.4rem; color: var(--muted); font-size: .92rem; }
.breadcrumbs span { margin: 0 .45rem; color: #8a96aa; }
.eyebrow { margin: 0; font-size: .82rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 28ch; margin: .7rem 0 1.3rem; font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { margin: 2.8rem 0 1rem; font-size: 1.75rem; }
h3 { margin: 1.7rem 0 .7rem; font-size: 1.2rem; }
.lead { max-width: 68ch; color: var(--muted); font-size: 1.18rem; }
.content { max-width: 82ch; }
.callout { margin: 2rem 0; padding: 1.25rem 1.4rem; border-left: 4px solid var(--blue); background: var(--pale); }
.result-grid, .related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.result-card, .related-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.result-card h3, .related-card h3 { margin-top: 0; }
.button { display: inline-block; margin-top: 1.2rem; padding: .82rem 1.12rem; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 750; text-decoration: none; }
.button:hover, .button:focus-visible { background: var(--blue-dark); }
.button.secondary { border: 1px solid var(--blue); background: #fff; color: var(--blue); }
li + li { margin-top: .55rem; }
code { padding: .08rem .3rem; border-radius: 3px; background: #f0f2f6; }
pre { margin: 1rem 0 0; padding: 1rem 1.15rem; overflow-wrap: anywhere; border: 1px solid #26334a; border-radius: 7px; background: #101828; color: #fff; font: 700 1.05rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
a { color: var(--blue); text-underline-offset: .2em; }
.faq details { margin: .8rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { margin-bottom: 0; }
.sources { color: var(--muted); font-size: .92rem; }
.hub-intro { max-width: 76ch; }
.hub-section { margin-top: 3.2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: block; padding: 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--blue); }
.guide-card strong { display: block; margin-bottom: .35rem; color: var(--blue); font-size: 1.05rem; }
.guide-card span { color: var(--muted); }
footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 2rem, 1240px); }
  main { padding-top: 2.3rem; }
  .result-grid, .related-grid, .guide-grid { grid-template-columns: 1fr; }
}
