:root {
  --navy: #001e5f;
  --navy2: #071c3b;
  --blue: #0066fd;
  --blue-dark: #064a9b;
  --gold: #ffd82b;
  --ink: #17293f;
  --muted: #5f6f82;
  --line: #d6e0eb;
  --page: #f3f6fb;
  --surface: #fff;
  --success: #147653;
  --danger: #9b2735;
  font-family: InterVariable, Inter, Aptos, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); line-height: 1.5; background: var(--page); }
a { color: var(--blue-dark); }
.skip-link { position: absolute; z-index: 20; top: -80px; left: 16px; padding: 10px 14px; background: #fff; }
.skip-link:focus { top: 12px; }
.interests-main { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.interests-hero { padding: 28px; color: #fff; background: linear-gradient(135deg, var(--navy), #123e72); border-radius: 16px; box-shadow: 0 15px 38px rgb(0 30 95 / 12%); }
.eyebrow { margin: 0 0 6px; color: #ffe971; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.interests-hero h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.25rem); }
.interests-hero p:last-child { max-width: 760px; margin: 9px 0 0; color: #dce9f7; }
.request-card { margin-top: 22px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 13px 34px rgb(0 30 95 / 8%); }
.request-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; border: 0; }
.request-kind legend { width: 100%; margin-bottom: 8px; color: var(--navy); font-weight: 850; }
.request-kind label { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid #b9cce0; border-radius: 11px; background: #f8fbff; cursor: pointer; }
.request-kind input { margin-top: 4px; }
.request-kind strong,
.request-kind small { display: block; }
.request-kind small { margin-top: 2px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid label,
.researcher-field { display: grid; gap: 5px; color: var(--navy); font-size: .82rem; font-weight: 780; }
.field-grid input,
.field-grid select,
.field-grid textarea { width: 100%; padding: 10px 11px; color: var(--ink); font: inherit; font-weight: 400; background: #fff; border: 1px solid #aebfd2; border-radius: 9px; }
.field-grid textarea { min-height: 92px; resize: vertical; }
.span-2 { grid-column: 1 / -1; }
.field-note { color: var(--muted); font-size: .73rem; font-weight: 400; }
.field-label { display: block; min-height: 1.5em; line-height: 1.5; }
.field-label .field-note { margin-left: 5px; }
.researcher-combobox { position: relative; }
.researcher-options { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; left: 0; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid #aebfd2; border-radius: 9px; box-shadow: 0 14px 32px rgb(0 30 95 / 16%); }
.researcher-options button { display: grid; width: 100%; gap: 2px; padding: 11px 13px; color: var(--ink); text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.researcher-options button:last-child { border-bottom: 0; }
.researcher-options button:hover,
.researcher-options button[aria-selected="true"] { background: #edf5ff; }
.researcher-options strong,
.researcher-options small { display: block; }
.researcher-options small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.submission-preview { margin-top: 18px; padding: 15px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 11px; }
.submission-preview h2 { margin: 0 0 5px; color: var(--navy); font-size: .92rem; }
.submission-preview p { margin: 0; color: var(--muted); font-size: .78rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 15px; color: var(--ink); font-size: .82rem; }
.consent input { margin-top: 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 16px; }
.local-save { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 15px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 11px; }
.local-save[hidden] { display: none; }
.local-save h2 { margin: 0 0 3px; color: var(--navy); font-size: .92rem; }
.local-save p { margin: 0; color: var(--muted); font-size: .78rem; }
.local-save button { flex: 0 0 auto; }
.primary,
.secondary { min-height: 42px; padding: 9px 14px; font: inherit; font-weight: 800; border-radius: 9px; cursor: pointer; }
.primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.secondary { color: var(--blue-dark); background: #fff; border: 1px solid #9ab5d3; }
.primary:disabled,
.secondary:disabled { cursor: not-allowed; opacity: .58; }
.form-status { min-height: 1.4em; margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }
.duplicate-warning { margin-top: 10px; padding: 11px 13px; color: #684809; background: #fff6dc; border: 1px solid #e4c56c; border-radius: 9px; font-size: .8rem; }
.receipt { margin-top: 22px; padding: 22px; background: #effaf5; border: 1px solid #acd8c6; border-radius: 14px; }
.receipt h2 { margin: 0; color: #10583f; }
.receipt p { margin: 7px 0 0; }
.receipt code { padding: 2px 6px; background: #fff; border-radius: 5px; }
.hidden { display: none !important; }
.privacy-footnote { margin: 18px 2px 0; color: var(--muted); font-size: .76rem; }
.interests-footer { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 34px; color: var(--muted); font-size: .76rem; }
.interests-footer p { margin: 0; }

@media (max-width: 700px) {
  .interests-main { width: min(100% - 22px, 1060px); padding-top: 18px; }
  .interests-hero,
  .request-card { padding: 19px; }
  .request-kind,
  .field-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .local-save { align-items: stretch; flex-direction: column; }
  .local-save button { width: 100%; }
  .interests-footer { width: min(100% - 22px, 1060px); }
}
