:root {
  color-scheme: light;
  --navy: #00107f; --ink: #12173a; --muted: #565c78; --rule: #d9dce8; --soft: #f4f5f9; --white: #fff;
  --accent: #c8324a; --blue: #3a6fd8;
  --coral: #fde9eb; --coral-ink: #b4283f; --sky: #e4f1fb; --sky-ink: #14609c; --amber: #fdf0df; --amber-ink: #99560c;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
svg { display: block; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 6px; background: var(--white); padding: 8px 14px; z-index: 40; }
.skip:focus { left: 12px; }

.site-head { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 22px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.search { display: flex; flex: 1; max-width: 460px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #8f95ad; border-right: 0; border-radius: 4px 0 0 4px; background: var(--soft); }
.search button { font: inherit; font-size: 15px; font-weight: 700; padding: 9px 14px; color: var(--white); background: var(--navy); border: 1px solid var(--navy); border-radius: 0 4px 4px 0; cursor: pointer; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.tools a { text-decoration: none; }
.tools a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.menu-btn { font: inherit; font-weight: 700; padding: 8px 14px; color: var(--navy); background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; cursor: pointer; }
.menu-btn[aria-expanded="true"] { color: var(--white); background: var(--navy); }

.cats { border-top: 1px solid var(--rule); }
.cats { overflow: hidden; }
.cat-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-link { display: block; padding: 11px 12px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.cat:first-child .cat-link { margin-left: -12px; }
.cat-link:hover, .cat-link[aria-expanded="true"], .cat-link[aria-current] { color: var(--navy); border-bottom-color: var(--accent); }
.panel, .drawer { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -22px rgb(18 23 58 / .5); max-height: calc(100dvh - 140px); overflow-y: auto; }
.panel-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding-block: 28px 32px; }
.panel-in p { color: var(--muted); }
.panel-title { color: var(--ink) !important; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.panel-title a { text-decoration: none; }
.panel-list { columns: 2; column-gap: 32px; }
.panel-list a, .drawer li a { display: block; padding: 7px 0; text-decoration: none; }
.panel-list a:hover, .drawer li a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.drawer-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-block: 28px 32px; }

.kick { display: block; color: var(--accent); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.more { display: inline-block; color: var(--navy); font-size: 15.5px; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }
.more::after { content: " →"; }
.note, .muted, .meta { color: var(--muted); }
.btn { display: inline-block; padding: 12px 20px; color: var(--white); background: var(--navy); border-radius: 4px; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--blue); }

.lead { padding-block: 28px 12px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
.lead-main { display: block; text-decoration: none; }
.lead-visual { display: block; aspect-ratio: 16 / 7; background: var(--soft); margin-bottom: 18px; }
.lead-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-main h1 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 6px; }
.lead-main:hover h1 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lead-main p { margin-top: 12px; font-size: 19px; max-width: 42em; }
.lead-side li { border-top: 1px solid var(--rule); }
.lead-side li:first-child { border-top: 3px solid var(--ink); }
.lead-side a { display: block; padding: 18px 0; text-decoration: none; }
.lead-side strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.22; }
.lead-side a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.section { padding-block: 40px; }
.band { padding-block: 40px; background: var(--soft); border-top: 1px solid var(--rule); }
.band + .band { background: var(--white); }
.band + .band + .band { background: var(--soft); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.band-head h2 { min-width: 0; }
.band-head.rule { border-top: 3px solid var(--ink); padding-top: 12px; }
.band-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.note { margin: -8px 0 18px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card a { display: block; text-decoration: none; }
.card h3 { font-size: 20px; margin-top: 3px; }
.card p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.thumb { display: block; aspect-ratio: 16 / 10; margin-bottom: 12px; overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tone-coral { background: var(--coral); color: var(--coral-ink); }
.tone-sky { background: var(--sky); color: var(--sky-ink); }
.tone-amber { background: var(--amber); color: var(--amber-ink); }
.split-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.feature { display: flex; flex-direction: column; text-decoration: none; }
.feature-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.feature-text { display: block; padding: 20px 22px 24px; }
.feature .kick { color: inherit; }
.feature strong { display: block; margin-top: 6px; color: var(--ink); font-size: clamp(23px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.feature:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rows li { border-top: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows a { display: block; padding: 13px 0; text-decoration: none; }
.rows strong { display: block; font-size: 18px; line-height: 1.25; }
.rows span { display: block; margin-top: 2px; font-size: 15.5px; color: var(--muted); }
.rows a:hover strong { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trio a { display: block; height: 100%; padding: 0 0 22px; background: var(--soft); text-decoration: none; }
.trio h3, .trio p { padding-inline: 20px; }
.trio a:hover { background: #e9ebf4; }
.trio-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; }
.trio h3 { font-size: 21px; }
.trio p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.page-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; margin-bottom: 32px; }
.crumbs { padding-block: 16px 0; font-size: 14.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.page-head { padding-block: 18px 26px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 4px; }
.intro { margin-top: 12px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.42; max-width: 42em; }
.meta { margin-top: 10px; font-size: 15px; }
.sample { display: inline-block; margin-bottom: 14px; padding: 6px 10px; background: var(--amber); color: #6e3e08; font-size: 14.5px; font-weight: 700; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-bottom: 56px; }
.aside { position: sticky; top: 130px; padding-top: 12px; border-top: 3px solid var(--ink); }
.aside h2 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.aside a { display: block; padding: 6px 0; font-size: 15.5px; text-decoration: none; }
.aside a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.aside-more { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.topic { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--rule); scroll-margin-top: 130px; }
.topic:first-child { border-top: 0; padding-top: 0; }
.topic .thumb { margin: 0; }
.topic h2 { font-size: 24px; margin-top: 3px; }
.topic p { margin-top: 8px; }
.prose-page { padding-bottom: 56px; }
.prose-page.wrap { max-width: 1200px; }
.prose-page section { scroll-margin-top: 130px; }
.prose-page h2 { font-size: 26px; margin: 30px 0 12px; }
.prose-page section:first-child h2, .prose-page > h2:first-child { margin-top: 0; }
.prose-page > p, .prose-page section > p { max-width: 44em; }
.empty { padding: 14px 16px; background: var(--soft); color: var(--muted); }
.plain li { padding: 6px 0; }
.crit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.crit li { padding: 18px; background: var(--soft); }
.crit h3 { font-size: 18px; }
.crit p { margin-top: 5px; font-size: 15.5px; color: var(--muted); }
.process { counter-reset: s; max-width: 760px; }
.process li { counter-increment: s; position: relative; padding: 0 0 20px 54px; }
.process li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: 50%; font-weight: 700; font-size: 15px; }
.process li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--rule); }
.process h3 { font-size: 19px; padding-top: 6px; }
.process p { margin-top: 4px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--rule); }
thead th { background: var(--soft); font-size: 14px; line-height: 1.25; vertical-align: bottom; }
tbody tr:last-child > * { border-bottom: 0; }
.theme-grid, .trio-plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 56px; }
.theme-grid h2 { font-size: 22px; padding-top: 12px; border-top: 3px solid var(--ink); margin-bottom: 8px; }
.theme-grid h2 a { text-decoration: none; }
.trio-plain section { scroll-margin-top: 130px; padding-top: 12px; border-top: 3px solid var(--ink); }
.trio-plain h2 { font-size: 22px; margin-bottom: 8px; }
.trio-plain p + p { margin-top: 12px; }
.trio-plain a:not(.btn) { overflow-wrap: anywhere; }

.site-foot { padding-block: 40px; background: var(--navy); color: #dfe3fa; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.site-foot h2 { color: var(--white); font-size: 15.5px; margin-bottom: 8px; }
.site-foot li a { display: block; padding: 3px 0; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .head-row { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .with-aside { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .aside { position: static; order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 150px; }
  .tools a { display: none; }
  .panel-in { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 18px 22px; }
  .panel-list { columns: 1; }
  .split-feature, .trio, .theme-grid, .trio-plain { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-photo { aspect-ratio: 16 / 8; }
  .topic { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lead-visual { aspect-ratio: 16 / 8; }
  .band, .section { padding-block: 30px; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
