* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--white); font: var(--body)/var(--body-line) var(--font); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--dark); text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.16; }
h2 { font-size: var(--h2); line-height: 1.25; }
h3 { font-size: var(--h3); line-height: 1.4; }
p + p { margin-top: var(--space-12); }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[id] { scroll-margin-top: var(--space-24); }
.wrap { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.measure { max-width: var(--measure); }
.skip { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 8px 16px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .brand, .nav, .actions { display: flex; align-items: center; }
.top-inner { justify-content: space-between; gap: var(--space-16); }
.brand { gap: 8px; min-height: 72px; flex: none; }
.brand img { display: block; }
.nav { gap: clamp(4px, .6vw, 10px); flex-wrap: wrap; }
.nav a { min-height: var(--touch); display: grid; place-items: center; padding-inline: 9px; border-radius: var(--radius); font-size: var(--nav); font-weight: 600; }
.nav a:is(:hover, :active, [aria-current]) { background: var(--canvas); color: var(--brand-blue); }
.actions { gap: 12px; flex-wrap: wrap; margin-top: var(--space-24); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--brand-blue); background: var(--brand-blue); color: white; text-decoration: none; font: 600 var(--nav)/1.45 var(--font); cursor: pointer; gap: 6px; }
.btn:is(:hover, :active) { background: var(--blue-hover); color: white; }
.btn.secondary { background: var(--white); color: var(--brand-blue); }
.btn.secondary:is(:hover, :active) { background: var(--canvas); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.related-link { display: flex; flex-direction: column; gap: 8px; }
.related-link strong { display: flex; justify-content: space-between; gap: 8px; }
.related-link span:not([aria-hidden]) { color: var(--muted); font-size: var(--small); }
.related-link:is(:hover, :active) { background: var(--canvas); border-color: var(--control-line); }
.footer { border-top: 1px solid var(--line); font-size: var(--small); padding-block: 32px; background: var(--dark); color: white; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.footer-group strong { display: block; margin-bottom: 8px; }
.footer a:not(.btn) { display: flex; align-items: center; width: fit-content; min-height: var(--touch); color: white; }
.footer a:not(.btn):is(:hover, :active) { background: var(--brand-blue); }
.footer .btn { margin-top: 16px; gap: 6px; }

.content-hero {
  background: linear-gradient(112deg, #f6f8fc 45%, #e8eef8 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: clamp(36px, 5.6vw, 80px);
}
.stripe { width: 40px; height: 4px; background: var(--brand-green); margin-bottom: 20px; }
.phrase { display: inline-block; max-width: 100%; }
.lead { font-size: var(--lead); margin-top: 18px; }
.page-guide { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 28px); border-bottom: 1px solid var(--line); padding-block: 6px; }
.page-guide a, .inline-link { display: inline-flex; align-items: center; min-height: var(--touch); padding-inline: 3px; font-size: var(--nav); font-weight: 700; }
.page-guide a:hover, .inline-link:hover { background: var(--canvas); }
.section { padding-block: clamp(36px, 5.4vw, 72px); }
.section-intro { margin-bottom: clamp(18px, 3vw, 30px); }
.section h2 + p, .section h3 + p { margin-top: 10px; }
.band { background: var(--canvas); }
.panel { padding: clamp(16px, 2.3vw, 25px); border: 1px solid var(--line); border-radius: var(--panel-radius); background: white; }
.example-detail { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.example-detail summary { min-height: var(--touch); padding: 10px 16px; color: var(--brand-blue); font-weight: 700; cursor: pointer; }
.example-detail summary:hover { background: var(--canvas); }
.detail-body { padding: 0 16px 14px; max-width: var(--measure); }
.consult-bar, .closing { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; padding: clamp(16px, 3vw, 32px); border-radius: var(--panel-radius); }
.consult-bar .btn, .closing .btn { flex: none; }
.closing { background: var(--dark); color: white; margin-bottom: 18px; }
.closing h2 { color: white; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.closing p { max-width: 42rem; }
@media (max-width: 950px) {
  .top-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 5px; }
  .brand { min-height: 56px; }
  .nav a { padding-inline: 7px; }
}
@media (max-width: 740px) {
  .hero-grid, .related-grid { grid-template-columns: 1fr; }
  .consult-bar, .closing { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

.lead + p { margin-top: 12px; }

.topics { border-top: 4px solid var(--brand-green); padding: clamp(16px, 3vw, 32px); }
.topics strong { display: block; font-size: var(--lead); color: var(--dark); margin-bottom: 8px; }
.topics a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.topics a:hover { background: var(--canvas); }
.guide-grid, .channel-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.guide-grid article, .channel-paths article { display: flex; flex-direction: column; }
.guide-grid .inline-link, .channel-paths .inline-link { align-self: flex-start; margin-top: auto; padding-top: 8px; }
.channel-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.channel-paths article { border-top: 2px solid var(--brand-green); padding-top: 12px; }
.resource-closing { margin: 26px 0 0; }
@media (max-width: 700px) {
  .guide-grid, .channel-paths { grid-template-columns: 1fr; }
}
.self-check { margin-top: 24px; background: var(--green-tint); }
.self-check dl { margin-bottom: 0; }
.self-check dl > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; }
.self-check dl > div + div { border-top: 1px solid #c7d8c2; }
.self-check dt { color: var(--green-text); font-weight: 700; }
.self-check dd { margin: 0; }
@media (max-width: 600px) {
  .self-check dl > div { grid-template-columns: 1fr; }
}

.guide-article > section + section { margin-top: clamp(36px, 6vw, 66px); }
.guide-article h2 { text-wrap: pretty; }
.index-signals { border-top: 2px solid var(--brand-green); margin: 18px 0; }
.index-signals div { border-bottom: 1px solid var(--line); padding: 10px 0; }
.index-signals dt { color: var(--brand-blue); font-weight: 700; }
.index-signals dd { margin: 4px 0 0; }
.guide-proof { margin-top: 18px; background: var(--canvas); }
.guide-grid .companion-guide { margin-top: 0; padding-top: 0; }
.guide-article li + li { margin-top: 8px; }
