.unit-resources { padding-bottom:80px; --accent:#ffd18f; }
[hidden] { display:none!important; }
#resource-nav,.utility { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0; }
#resource-nav a,.utility a,.button-link { padding:7px 11px; border:1px solid #49617d; border-radius:7px; color:#f8e7ca; background:#132840; font-size:.86rem; text-decoration:none; font-weight:680; }
#resource-nav a[aria-current],.button-link,form>button,.response-pad>button { background:#ffc986; border-color:#ffc986; color:#132438; }
#resource-nav a:hover,.utility a:hover,.button-link:hover { border-color:#ffc986; text-decoration:underline; }
.resource-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,27%); align-items:center; isolation:isolate; overflow:hidden; border-radius:18px; border:1px solid #415d76; min-height:215px; margin:19px 0; background:linear-gradient(115deg,#203f5c,#10233a 65%,#0a172a); }
.resource-hero>div { padding:clamp(18px,3vw,46px); }
.resource-hero h1 { color:#fff0d1; font:700 clamp(2rem,5.1vw,4.55rem)/1.03 Georgia,serif; text-wrap:balance; }
.resource-hero p:last-child { color:#d4e1ee; margin-top:11px; font-size:clamp(.98rem,1.5vw,1.25rem); max-width:48rem; }
.resource-hero img { display:block; width:100%; height:auto; max-height:295px; object-fit:contain; }
#resource>h2,#resource>section>h2 { margin-top:25px; }
.resource-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr)); gap:14px; margin:13px 0 25px; }
.resource-card,.paper { background:#142943; border:1px solid #405974; border-radius:12px; overflow:hidden; }
.resource-card { display:flex; flex-direction:column; }
.resource-card>img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; background:#081322; }
.card-copy { display:flex; flex-direction:column; flex:1; align-items:flex-start; padding:15px; }
.card-copy h2 { font-size:clamp(1.18rem,1.8vw,1.64rem); margin-bottom:8px; }
.card-copy p:not(.eyebrow) { color:var(--muted); margin:0 0 12px; }
.card-copy a { margin-top:auto; }
.paper { padding:clamp(14px,2.2vw,26px); margin:12px 0; }
.paper p { max-width:76ch; }
.paper a { display:inline-block; margin-top:8px; }
.aside { padding:9px 12px; background:#0d2035; border-left:3px solid #eeba77; border-radius:5px; color:#dae7f4; }
.expand summary { cursor:pointer; font-weight:750; color:#fff0d1; }
.expand h3 { margin-top:13px; }
.expand p { margin:8px 0; }
.guide { padding:0; }
.guide summary { display:flex; gap:14px; align-items:center; min-height:99px; padding:6px 13px; }
.guide summary img { width:108px; max-width:31%; height:auto; aspect-ratio:3/2; object-fit:contain; border-radius:6px; }
.guide summary small,.guide summary strong { display:block; }
.guide summary small { color:#ffd091; letter-spacing:.06em; text-transform:uppercase; }
.guide summary strong { font:700 clamp(1.14rem,2vw,1.55rem)/1.12 Georgia,serif; }
.guide summary::after { content:"+"; color:#ffd091; margin-left:auto; font-size:1.35rem;}
.guide[open] summary::after { content:"−"; }
.guide-body { padding:0 clamp(13px,2vw,26px) 18px; }
.term-filter { font-weight:700; display:block; margin:12px 0 5px; }
#term-search,textarea { color:var(--text); background:#081a2c; border:1px solid #52708c; border-radius:8px; padding:9px; font:inherit; }
#term-search { width:min(100%,380px); }
.frayer-content { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:14px; margin-top:12px; }
.frayer-content img { width:100%; max-height:280px; height:auto; object-fit:contain; border-radius:8px; background:#091725; }
.frayer-content dl,.rubric-grid dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:0; }
.frayer-content dl div,.rubric-grid dl div { background:#0d2137; border:1px solid #395575; border-radius:7px; padding:10px; }
dt { color:#ffd48f; font-weight:750; margin:6px 0 3px; }
dd { color:#dee7f0; margin:0; }
.rubric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:13px; }
.rubric-grid article { margin:0; }
.rubric-grid article h2 { font-size:1.35rem; }
.response-fields { display:grid; gap:7px; margin:12px 0; }
.response-fields label { margin-top:7px; font-weight:700; }
textarea { width:100%; resize:vertical; }
.reading-layout { display:grid; grid-template-columns:minmax(0,.98fr) minmax(0,1.1fr); align-items:start; gap:15px; }
.reading { position:sticky; top:13px; max-height:calc(100vh - 26px); overflow:auto; }
.reading h2 { font-size:1.48rem; margin:8px 0 7px; }
.reading p { margin-bottom:13px; }
.questions fieldset { min-width:0; margin:0 0 16px; border:1px solid #54708a; border-radius:8px; padding:10px; }
.questions legend { padding:0 3px; font-weight:720; }
.questions legend span { display:block; color:#f7cd91; font-size:.73rem; }
.choice { display:flex; gap:9px; padding:6px; cursor:pointer; border-radius:6px; }
.choice input { accent-color:#ffca8a; flex:none; }
.choice:has(input:checked) { background:#283f59; }
.feedback { padding:8px 10px; margin-top:7px; border-left:3px solid #ffb796; background:#392b3d; }
.feedback.correct { border-color:#9fe2bb; background:#173831; }
.video-frame { aspect-ratio:16/9; background:#081524; }
.video-frame iframe { display:block; width:100%; height:100%; border:0; }
.video-frame button { display:grid; place-items:center; position:relative; width:100%; height:100%; border:0; padding:0; background:#091725; }
.video-frame img { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:contain; }
.video-frame button span { position:relative; padding:8px 13px; border-radius:8px; background:#0a172aeb; color:#fff0d1; font-weight:800; }
.video-grid .card-copy button { margin-top:8px; min-height:35px; padding:5px 9px; }
.council-grid { align-items:start; }
.council-grid details { margin:0; }
.round-list p { margin-top:2px; }
.round-list li+li { margin-top:10px; }
@media (max-width:740px) {
 .reading-layout,.frayer-content { grid-template-columns:minmax(0,1fr); }
 .reading { position:static; max-height:none; }
 .resource-hero { grid-template-columns:minmax(0,1fr) minmax(72px,21%); min-height:150px; }
 .resource-hero h1 { font-size:clamp(1.65rem,6vw,2.5rem); }
 .resource-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); }
}
