:root {
  color-scheme: light;
  --paper: #f7f9fc;
  --white: #fff;
  --ink: #0b1736;
  --muted: #465673;
  --line: #dce4f0;
  --blue: #1c52c5;
  --blue-strong: #1545ae;
  --blue-soft: #eaf1ff;
  --mint: #e5f8f3;
  --forest: #166855;
  --radius: 20px;
  --shadow: 0 12px 36px rgba(31, 63, 118, .08);
  font-family: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
img { max-inline-size: 100%; block-size: auto; }
a { color: var(--blue-strong); text-decoration-thickness: .08em; text-underline-offset: .19em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
a:hover { text-decoration-thickness: .13em; }
.guide-skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-200%); }
.guide-skip:focus { transform: translateY(0); }
.guide-shell { width: min(1120px, calc(100% - 2 * clamp(1.05rem, 4.5vw, 3.5rem))); margin-inline: auto; }
.guide-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.guide-nav__in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .55rem; }
.guide-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 850; letter-spacing: -.035em; text-decoration: none; min-height: 44px; }
.guide-brand__mark { inline-size: 25px; block-size: 25px; flex: none; border-radius: 8px; background: linear-gradient(145deg,#246bfd,#18b9a7); transform: rotate(-8deg); }
.guide-nav nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.75rem, 2.5vw, 1.5rem); }
.guide-nav nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.guide-nav nav a:hover, .guide-nav nav a[aria-current] { color: var(--blue-strong); text-decoration: underline; }
.guide-breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .65rem; list-style: none; padding: 0; margin: 0 0 clamp(1rem, 3vw, 2rem); color: var(--muted); font-size: .875rem; }
.guide-breadcrumbs li + li::before { content: "/"; margin-inline-end: .65rem; color: #62728e; }
.guide-head { background: radial-gradient(ellipse at top right, #dfecff, transparent 64%), linear-gradient(160deg, #fff, #f2f7ff); border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 5.5vw, 4.75rem); }
.guide-head--audit { background: radial-gradient(ellipse at top right, #daf4ec, transparent 64%), linear-gradient(160deg, #fff, #f2f9f8); }
.guide-kicker { display: inline-flex; max-inline-size: 100%; width: fit-content; margin: 0; padding: .22rem .66rem; border-radius: 8px; background: var(--blue-soft); color: var(--blue-strong); font-weight: 800; font-size: .875rem; }
.guide-kicker--audit { background: var(--mint); color: var(--forest); }
.guide-head h1 { max-width: 20ch; margin: .72rem 0 1rem; font-size: clamp(2.2rem, 6.2vw, 4.65rem); line-height: 1.04; letter-spacing: -.056em; text-wrap: balance; overflow-wrap: anywhere; }
.guide-lead { max-width: 67ch; margin: 0; color: var(--muted); font-size: clamp(1.04rem, 2.05vw, 1.25rem); }
.guide-byline { margin: 1.1rem 0 0; color: var(--muted); font-size: .875rem; }
.guide-body { max-width: 73ch; padding-block: clamp(1.8rem, 5vw, 3.8rem); }
.guide-body > section + section { margin-top: clamp(2.1rem, 4.2vw, 3.1rem); }
.guide-body h2, .guide-callout h2 { margin: 0 0 .7rem; font-size: clamp(1.55rem, 4.5vw, 2.15rem); letter-spacing: -.044em; line-height: 1.16; }
.guide-body h3 { margin: 0 0 .3rem; font-size: 1.1rem; line-height: 1.3; }
.guide-body p { margin: 0 0 .8rem; }
.guide-body p:last-child, .guide-body li p:last-child { margin-bottom: 0; }
.guide-body ul:not(.guide-paths), .guide-body ol { margin: .7rem 0 0; padding-inline-start: 1.35rem; }
.guide-body li + li { margin-top: .55rem; }
.guide-paths { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.guide-body .guide-paths > li { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: clamp(.85rem, 2vw, 1.15rem); background: var(--white); }
.guide-paths strong { display: block; margin-bottom: .25rem; }
.guide-note { padding: .9rem 1.05rem; border-inline-start: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: var(--blue-soft); }
.guide-note--audit { border-inline-start-color: var(--forest); background: var(--mint); }
.guide-section { padding-block: clamp(1.9rem, 5vw, 4rem); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(.8rem, 2.5vw, 1.5rem); }
.guide-grid--library { grid-template-columns: repeat(3, minmax(0,1fr)); }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.guide-card h2, .guide-card h3 { font-size: clamp(1.4rem, 3.5vw, 1.95rem); letter-spacing: -.04em; line-height: 1.15; margin: .72rem 0 .65rem; }
.guide-card p { margin: 0 0 1rem; color: var(--muted); }
.guide-card a { margin-top: auto; }
.guide-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: fit-content; max-width: 100%; padding: .65rem 1rem; border-radius: 12px; background: var(--blue-strong); color: var(--white); font-weight: 750; text-align: center; text-decoration: none; line-height: 1.35; }
.guide-button:hover { background: #10388e; }
.guide-callout { margin-top: clamp(1.6rem, 4vw, 2.5rem); padding: clamp(1.1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.guide-callout p { margin: .5rem 0 .9rem; color: var(--muted); }
.guide-callout__links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.15rem; }
.guide-footer { padding-block: 1.55rem 1.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.guide-footer .guide-shell { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .6rem 1rem; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.guide-footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
.guide-brand img { border-radius: 6px; flex: none; }
.resource-index-title { margin: 0 0 1.1rem; font-size: clamp(1.6rem, 4.7vw, 2.45rem); letter-spacing: -.045em; line-height: 1.15; }
.resource-card { border-top: 3px solid #1c52c5; background: linear-gradient(150deg,#fff,#eef4ff); }
.resource-card--audit { border-top-color: #166855; background: linear-gradient(150deg,#fff,#eaf7f4); }
.resource-document { max-width: 960px; }
.resource-document h2 { margin: .4rem 0 .65rem; font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.16; letter-spacing: -.038em; }
.resource-document p { margin: 0 0 .8rem; }
.resource-document p:last-child { margin-bottom: 0; }
.resource-summary { padding: clamp(1.05rem, 3.4vw, 2rem); background: #fff; border: 1px solid var(--line); border-block-start: 4px solid #184ba9; border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-head--audit + .resource-document .resource-summary { border-block-start-color: var(--forest); }
.resource-label { color: var(--muted); font-weight: 750; font-size: .92rem; }
.resource-quicklinks { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-top: .65rem; }
.resource-quicklinks a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
.resource-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin: 1.15rem 0 .9rem; }
.resource-facts div { background: var(--paper); border-radius: 12px; padding: .65rem .8rem; }
.resource-facts dt, .resource-finding dt { font-weight: 800; }
.resource-facts dd, .resource-finding dd { margin: .12rem 0 0; color: var(--muted); }
.resource-block { margin-top: clamp(2.35rem, 5vw, 3.6rem); }
.resource-block > p { max-width: 76ch; }
.resource-findings { display: grid; gap: .85rem; margin-top: 1.1rem; }
.resource-finding { min-width: 0; padding: clamp(.95rem, 3.25vw, 1.65rem); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.resource-finding h3 { margin: .65rem 0 .7rem; font-size: clamp(1.18rem, 3vw, 1.55rem); line-height: 1.22; letter-spacing: -.028em; }
.resource-finding dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 1.3rem; margin: 0; }
.resource-status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.resource-tag, .resource-state { display: inline-flex; font-size: .875rem; line-height: 1.45; font-weight: 700; }
.resource-tag { border-radius: 6px; padding: .18rem .54rem; background: #eef1f8; color: var(--muted); }
.resource-tag--high { background: #ffe8e5; color: #8b332d; }
.resource-tag--medium { background: #fff2d9; color: #6d4a0c; }
.resource-state { color: var(--forest); }
.resource-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.resource-row span { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .35rem .58rem; font-weight: 700; }
.resource-checks { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.resource-checks fieldset { min-width: 0; margin: 0; padding: .35rem .85rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.resource-checks legend { padding-inline: .45rem; font-weight: 800; }
.resource-checks label { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .7rem; min-height: 44px; padding: .65rem .2rem; cursor: pointer; }
.resource-checks label + label { border-top: 1px solid var(--line); }
.resource-checks input { inline-size: 1.2rem; block-size: 1.2rem; margin: .22rem 0 0; accent-color: var(--blue-strong); cursor: pointer; }
.resource-checks input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.resource-source { color: var(--muted); font-size: .94rem; }
@media (max-width: 640px) {
  .guide-nav__in { justify-content: flex-start; }
  .guide-nav nav { width: 100%; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-button { width: 100%; }
  .resource-facts, .resource-finding dl { grid-template-columns: minmax(0,1fr); }
}
@media print {
  .guide-nav, .guide-footer, .guide-skip, .guide-breadcrumbs, .resource-quicklinks, .resource-document .guide-callout { display: none; }
  body, .guide-head { background: #fff; color: #000; }
  .guide-head, .resource-document { padding-block: .55rem; }
  .guide-head h1 { font-size: 2rem; }
  .guide-shell { width: 100%; }
  .resource-summary, .resource-finding, .resource-checks fieldset { break-inside: avoid; box-shadow: none; }
  .resource-block { margin-top: 1.4rem; }
}
