/* Resources pages (/resources/...). Loaded after styles.css; uses the same navy/gold tokens. */
.resource-hero { padding: 2.25rem 0 2.75rem; }
.resource-hero .container { position: relative; }
.resource-title {
  font-family: var(--serif); color: var(--white);
  font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.12; margin: .6rem 0 0; max-width: 24ch;
}
.resource-lead { max-width: 62ch; margin: 0; }

.breadcrumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; }
.breadcrumbs li { color: var(--on-navy-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 .45rem 0 .2rem; color: var(--gold); }
.breadcrumbs a { color: var(--white); text-decoration-color: var(--gold); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--on-navy-muted); }

.site-nav a[aria-current="page"] { color: var(--gold); }

.resource-section { padding-top: 2.5rem; }
.resource-layout { display: grid; gap: 2rem; }

.resource-toc { background: var(--ivory); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.resource-toc-title { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .5rem; }
.resource-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.resource-toc a { display: inline-block; padding: .3rem 0; line-height: 1.35; }

.resource-body { max-width: 72ch; min-width: 0; }
.resource-body h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  margin: 2.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.resource-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.resource-body h3 { margin: 1.75rem 0 .5rem; scroll-margin-top: 96px; }
.resource-body ul { margin: 0 0 1.1em; padding-left: 1.3rem; }
.resource-body li { margin: .3rem 0; }
.resource-body li::marker { color: var(--gold-ink); }
.resource-body ul ul { margin: .3rem 0 .2rem; }
.resource-body a { overflow-wrap: anywhere; }

.resource-book {
  position: relative; margin: 2.5rem 0; padding: 1.5rem 1.5rem 1.25rem 1.85rem;
  background: var(--navy); color: var(--on-navy-muted); border-radius: var(--radius); --focus: var(--gold);
}
.resource-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); border-radius: var(--radius) 0 0 var(--radius); }
.resource-book h2 { color: var(--white); margin-top: 0; padding-top: 0; border-top: 0; }
.resource-book strong { color: var(--gold); }
.resource-book a { color: var(--white); font-weight: 700; text-decoration-color: var(--gold); }
.resource-book a:hover { color: var(--gold); }
.resource-book .sep { color: var(--gold); margin: 0 .35rem; }
.resource-book p:last-child { margin-bottom: 0; }

.resource-body ul.sources { font-size: .95rem; color: var(--ink-muted); }
.resource-body ul.sources li { margin: .5rem 0; }
.resource-disclaimer { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--mist); border-radius: var(--radius-sm); color: var(--ink-muted); font-size: .95rem; }

.resource-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.resource-card {
  position: relative; display: flex; flex-direction: column; gap: .25rem;
  padding: 1.5rem 1.5rem 1.5rem 1.85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); overflow: hidden;
}
.resource-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.resource-card :is(h2,h3) { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0 0 .4rem; }
.resource-card :is(h2,h3) a { text-decoration: none; }
.resource-card :is(h2,h3) a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.resource-card :is(h2,h3) a:hover { color: var(--gold-ink); }
.resource-card p { color: var(--ink-muted); margin: 0 0 .75rem; }
.resource-card-link { margin-top: auto; font-weight: 700; color: var(--gold-ink); text-decoration: none; }

@media (min-width: 960px) {
  .resource-hero { padding: 3.25rem 0 3.5rem; }
  .resource-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .resource-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; }
  .resource-cards { grid-template-columns: 1fr 1fr; }
}
@media (forced-colors: active) {
  .resource-book::before, .resource-card::before { background: CanvasText; }
}
/* "Full info:" link lines under each section (link to the official source) */
.resource-body p.full-info { font-size: .95rem; color: var(--ink-muted); margin: -.25rem 0 1.1rem; }
.resource-body p.full-info a { font-weight: 700; }

/* ---------- /resources/ "I am…" chooser (mobile-first) ---------- */
.resource-index { max-width: 880px; }
.chooser-title { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: .25rem; }
.chooser-intro { color: var(--ink-muted); margin: 0 0 1rem; }
.chooser-pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pill-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 1.15rem;
  border: 2px solid var(--navy); border-radius: 999px; background: var(--white, #fff); color: var(--navy);
  font-weight: 700; font-size: 1.05rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.pill:hover { background: var(--ivory-2); color: var(--navy); }
.pill-input:checked + .pill { background: var(--navy); color: var(--white, #fff); box-shadow: inset 0 -4px 0 var(--gold); }
.pill-input:focus-visible + .pill, a.pill:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
@media (max-width: 520px) { .chooser .pill-row > .pill, .chooser .pill-row li, .chooser .pill-row li .pill { flex: 1 1 100%; justify-content: center; } }
/* No JS: hide the radio pills, show jump links, and show every card (panels are only hidden by script.js). */
.chooser-jump { display: none; }
html:not(.js) .chooser-pills { display: none; }
html:not(.js) .chooser-jump { display: block; }
.chooser-hint { margin: 1rem 0 0; color: var(--ink-muted); font-style: italic; }
.choice-panels { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.choice-panel {
  position: relative; background: var(--white, #fff); border: 1px solid #d5dbe6; border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem 1.5rem; box-shadow: 0 6px 20px rgba(18, 31, 59, .07); overflow: hidden;
}
.choice-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.choice-panel[hidden] { display: none; }
.choice-panel:focus { outline: none; }
.choice-panel h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.choice-note { margin: 0 0 .5rem; padding: .5rem .75rem; background: var(--ivory); border-radius: 8px; font-size: .95rem; color: var(--ink-muted); }
.choice-points { margin: .25rem 0 1rem; padding-left: 1.2rem; }
.choice-points li { margin: .45rem 0; }
.choice-links-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .4rem; }
.choice-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.choice-links a { font-weight: 700; }
.choice-links a::before { content: "→ "; color: var(--gold-ink); }
.general-resources { margin-top: 2.75rem; padding: 1.5rem 1.25rem; background: var(--navy); color: var(--white, #fff); border-radius: 14px; --focus: var(--gold); }
.general-resources h2 { color: var(--white, #fff); margin-bottom: .25rem; }
.general-resources > p { color: var(--on-navy-muted, #c9d1e0); margin: 0 0 1rem; }
.general-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.general-list a { color: var(--gold); font-weight: 700; text-decoration-color: var(--gold); }
.general-list a:hover { color: var(--gold-soft); }
.general-desc { display: block; color: var(--on-navy-muted, #c9d1e0); font-size: .95rem; margin-top: .1rem; }
.full-guides { margin-top: 2.75rem; }
@media (min-width: 760px) { .general-list { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; } .general-resources { padding: 2rem; } }
@media (forced-colors: active) { .choice-panel::before { background: CanvasText; } .pill-input:checked + .pill { outline: 3px solid Highlight; } }
