/* Page-local styles for /academic/
   .page-hero is NOT in the shared styles.css — it must be defined here. */

.page-hero {
  background: linear-gradient(135deg, #F5F0E4 0%, #e4eee7 100%);
}
.dark .page-hero {
  background: linear-gradient(135deg, #102B26 0%, #172f2a 100%);
}

/* ---------- Accessibility: skip link and focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.15rem;
  background: #173C35;
  color: #F5F0E4;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 0 0 .5rem 0;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid #A04E38;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #A04E38;
  outline-offset: 2px;
  border-radius: .25rem;
}
.dark a:focus-visible,
.dark button:focus-visible,
.dark select:focus-visible,
.dark input:focus-visible,
.dark summary:focus-visible {
  outline-color: #E09A82;
}

/* ---------- Section label column rhythm ---------- */
.section-label {
  color: #A04E38;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dark .section-label { color: #E09A82; }

/* ---------- Report contents blocks ---------- */
.report-block {
  border-left: 2px solid #d5e0d8;
  padding: .15rem 0 .15rem 1.15rem;
}
.dark .report-block { border-left-color: #31564c; }
.report-block h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.report-block p {
  margin: 0;
  color: #52675f;
  font-size: .92rem;
  line-height: 1.65;
}
.dark .report-block p { color: #d1ded6; }

/* ---------- Verdict chips ---------- */
.verdict-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.verdict-chip {
  border-radius: .4rem;
  padding: .3rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.v-healthy     { background: #d1e7dd; color: #0f5132; }
.v-conditional { background: #fff3cd; color: #664d03; }
.v-declining   { background: #f8d7da; color: #842029; }
.v-insufficient{ background: #e2e3e5; color: #41464b; }
.dark .v-healthy     { background: #14432f; color: #a8e0c4; }
.dark .v-conditional { background: #4a3a08; color: #f3d98b; }
.dark .v-declining   { background: #4d1a20; color: #f2b8bd; }
.dark .v-insufficient{ background: #2c3033; color: #c9cdd1; }

/* ---------- Numbered steps ---------- */
.step-number {
  color: #A04E38;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.dark .step-number { color: #E09A82; }

/* ---------- Limits panel ---------- */
.limits-panel {
  border: 1px solid #d5e0d8;
  border-left: 4px solid #B75E46;
  border-radius: 0 .75rem .75rem 0;
  background: #fffdf8;
  padding: 1.65rem;
}
.dark .limits-panel {
  border-color: #31564c;
  border-left-color: #B75E46;
  background: #102B26;
}
.limits-panel ul { margin: .75rem 0 0; padding-left: 1.15rem; }
.limits-panel li {
  margin: .5rem 0;
  color: #52675f;
  font-size: .92rem;
  line-height: 1.65;
}
.dark .limits-panel li { color: #d1ded6; }

/* ---------- Request form ---------- */
.form-panel {
  border: 1px solid #d5e0d8;
  border-radius: 1rem;
  background: #fffdf8;
  padding: 1.9rem;
}
.dark .form-panel { border-color: #31564c; background: #102B26; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #29483f;
}
.dark .field label { color: #c4d6cc; }
.field .hint {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #52675f;
}
.dark .field .hint { color: #9db3a8; }

.field input,
.field select {
  width: 100%;
  border: 1px solid #b9cbc0;
  border-radius: .5rem;
  background: #ffffff;
  padding: .7rem .8rem;
  font-size: .95rem;
  color: #173C35;
  font-family: inherit;
}
.dark .field input,
.dark .field select {
  border-color: #3d6357;
  background: #0d211d;
  color: #F5F0E4;
}
.field input:focus,
.field select:focus {
  outline: 2px solid #B75E46;
  outline-offset: 1px;
  border-color: #B75E46;
}
.field input::placeholder { color: #8fa79b; }

.form-note {
  font-size: .78rem;
  line-height: 1.6;
  color: #52675f;
}
.dark .form-note { color: #9db3a8; }

.form-status {
  border-radius: .5rem;
  padding: .85rem 1rem;
  font-size: .88rem;
  line-height: 1.6;
  background: #fff3cd;
  color: #664d03;
}
.dark .form-status { background: #4a3a08; color: #f3d98b; }
.form-status[hidden] { display: none; }

/* ---------- Responsive card grid (homepage uses .card-grid, not in styles.css) ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Data source ledger ---------- */
.source-group {
  border-top: 1px solid #d5e0d8;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.dark .source-group { border-top-color: #31564c; }
.source-group:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.source-group-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #A04E38;
}
.dark .source-group-title { color: #E09A82; }

.source-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.source-list li {
  display: grid;
  gap: .25rem .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid #e6ece8;
  grid-template-columns: 1fr;
}
.dark .source-list li { border-bottom-color: #24413a; }
@media (min-width: 768px) {
  .source-list li { grid-template-columns: 13rem 1fr; align-items: baseline; }
}
.source-list li:last-child { border-bottom: none; }

.source-name {
  font-size: .92rem;
  font-weight: 650;
  color: #173C35;
  letter-spacing: -.01em;
}
.dark .source-name { color: #F5F0E4; }
.source-detail {
  font-size: .88rem;
  line-height: 1.6;
  color: #52675f;
}
.dark .source-detail { color: #d1ded6; }
.source-detail .agency {
  display: block;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a9d93;
  margin-top: .15rem;
}
.dark .source-detail .agency { color: #8aa79a; }

/* ---------- Scale strip ---------- */
.scale-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .scale-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .scale-strip { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.scale-figure {
  border: 1px solid #d5e0d8;
  border-radius: .75rem;
  background: #fffdf8;
  padding: 1.15rem 1.25rem;
}
.dark .scale-figure { border-color: #31564c; background: #102B26; }
.scale-figure .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -.02em;
  color: #173C35;
  font-variant-numeric: tabular-nums;
}
.dark .scale-figure .num { color: #F5F0E4; }
.scale-figure .cap {
  display: block;
  margin-top: .3rem;
  font-size: .78rem;
  line-height: 1.5;
  color: #52675f;
}
.dark .scale-figure .cap { color: #9db3a8; }

/* ---------- Provenance note ---------- */
.provenance-note {
  border-left: 2px solid #B75E46;
  padding-left: 1rem;
  font-size: .85rem;
  line-height: 1.65;
  color: #52675f;
}
.dark .provenance-note { color: #9db3a8; }

/* ---------- AI disclosure ---------- */
.ai-note {
  border-left: 2px solid #B75E46;
  padding-left: .9rem;
  font-size: .8rem;
  line-height: 1.65;
  color: #52675f;
}
.dark .ai-note { color: #9db3a8; }
.ai-note a {
  color: #A04E38;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dark .ai-note a { color: #E09A82; }
.ai-note a:hover { color: #173C35; }
.dark .ai-note a:hover { color: #F5F0E4; }

/* ---- Report request form: honeypot and status states ---- */

/* Honeypot field. Hidden from sighted users and from screen readers, but not
   display:none — some bots skip fields that are not rendered. */
.field.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status--ok {
  background: #E8F0EA;
  color: #173C35;
  border-left: 3px solid #173C35;
}
.dark .form-status--ok {
  background: #173C35;
  color: #E8F0EA;
  border-left-color: #9AB4A7;
}

.form-status--error {
  background: #F7E9E4;
  color: #7A2E1C;
  border-left: 3px solid #B75E46;
}
.dark .form-status--error {
  background: #3A1F17;
  color: #F0C4B4;
  border-left-color: #B75E46;
}

/* Disabled submit while the request is in flight. */
.button-primary[disabled] {
  opacity: .65;
  cursor: progress;
}
