:root {
  --resource-ink:#19273a;
  --resource-accent:#294f47;
  --resource-line:#d7e1dd;
  --resource-surface:#f1f6f4;
}
.resource-gateway { background:var(--resource-surface); padding:clamp(40px,7vw,90px) 0; color:var(--resource-ink); }
.resource-gateway h1 { max-width:800px; margin:0 0 18px; }
.resource-gateway .lede { max-width:62ch; font-size:1.12rem; margin:0 0 28px; color:#465969; }
.resource-gateway h1 + p { margin-top:0; }
.resource-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:18px; align-items:stretch; }
.resource-tile { background:#fff; border:1px solid var(--resource-line); border-radius:12px; padding:24px; color:var(--resource-ink); }
.resource-tile h2,.resource-tile h3 { margin:0 0 7px; }
.resource-tile p { margin:0 0 14px; }
.resource-tile .subject-link { font-weight:700; color:var(--resource-accent); text-decoration:underline; text-underline-offset:4px; }
.resource-grid-nav { display:flex; gap:10px; flex-wrap:wrap; padding:0; list-style:none; }
.resource-grid-nav a { display:block; border:1px solid #bdcfca; border-radius:8px; padding:9px 12px; background:white; }
.resource-body { padding:48px 0 70px; }
.resource-body h2 { margin:26px 0 12px; }
.resource-body h3 { margin:18px 0 8px; }
.resource-body section + section { margin-top:34px; }
.resource-body .reading-width { max-width:75ch; }
.resource-body li + li { margin-top:6px; }
.resource-body a,.resource-gateway a{ text-underline-offset:4px; }
.resource-body [hidden] { display:none!important; }
.resource-path { display:flex; gap:8px; flex-wrap:wrap; font-size:.92rem; margin-bottom:20px; }
.resource-path a { text-decoration:underline; }
.resource-filter { border:1px solid var(--resource-line); border-radius:12px; padding:20px; background:var(--resource-surface); margin:18px 0 22px; }
.resource-filter legend { color:var(--resource-ink); font-weight:700; padding:0 6px; }
.resource-filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:12px; }
.resource-filter label { display:grid; gap:5px; font-size:.94rem; font-weight:600; }
.resource-filter :is(input,select) { width:100%; min-height:44px; margin:0; padding:8px 12px; border:1px solid #aabdb6; border-radius:7px; background:white; color:var(--resource-ink); font:inherit; }
.resource-results { padding-left:0; list-style:none; }
.resource-results li { padding:14px 12px; border-bottom:1px solid var(--resource-line); margin:0; }
.resource-results a { font-weight:700; text-decoration:underline; }
.resource-results p { margin:4px 0 0; }
.resource-code { color:#3b5753; font-size:.88rem; font-weight:600; }
.resource-brief { background:var(--resource-surface); border-left:3px solid var(--resource-accent); padding:13px 18px; max-width:70ch; }
.resource-details { border-block-start:1px solid var(--resource-line); padding:10px 0; }
.resource-details summary { cursor:pointer; font-weight:700; padding:5px 0; }
.resource-cover { width:min(100%,185px); height:auto; border:1px solid var(--resource-line); border-radius:7px; margin-bottom:12px; }
.resource-gateway :focus-visible,.resource-body :focus-visible { outline:3px solid #326f68; outline-offset:4px; }
.resource-footer { padding:22px 0; border-top:1px solid var(--resource-line); }
.resource-footer .wrap { display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; }
.resource-footer a { text-decoration:underline; text-underline-offset:4px; }
.resource-subject-choice { padding:24px 0; }
.resource-subject-choice .wrap { display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; }
.resource-subject-choice a { font-weight:650; text-decoration:underline; text-underline-offset:4px; }
.resource-legacy-heading { font-size:clamp(2rem,5vw,3.8rem); line-height:1.04; margin-bottom:25px; }
