.secondary-actions .button {
  max-width: 380px;
}

.secondary-actions .registration-cta {
  background: #168ac8;
}

.secondary-actions .registration-cta:hover {
  background: #0f74ad;
}

.form-card details > summary {
  color: #168ac8;
  font-weight: 800;
}

.form-card details label,
.form-card details .grid > label,
.form-card details .region-fields > label {
  color: #173b59;
  font-weight: 750;
}

/* Warm institutional refresh: public portal is calm and editorial; admin is compact and task-first. */
:root {
  --navy: #123b5d;
  --navy2: #0c2e49;
  --terra: #a94f39;
  --ivory: #f7f5f0;
  --paper: #fff;
  --ink: #24313b;
  --muted: #66737c;
  --line: #dbe0df;
  --sage: #e8f0eb;
  --shadow: 0 10px 28px rgba(18, 59, 93, .08);
}

html { font-size: 16px; }
body { background: var(--ivory); }
.topbar {
  max-width: 1160px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(18, 59, 93, .08);
}
.brand { gap: 10px; }
.brand img { width: 42px !important; height: 42px !important; }
.brand b { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; letter-spacing: -.01em; }
.brand small { font-size: 11px; margin-top: 2px; }
.mode { border-radius: 8px; background: #fff; padding: 8px 11px; }
.shell { width: min(100% - 32px, 760px); margin: 24px auto 56px; }
.shell.admin { width: min(100% - 40px, 1180px); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin-bottom: 14px; }
h2 { font-size: 24px; margin: 28px 0 12px; }
h3 { font-size: 18px; }
.lead { font-size: 17px; line-height: 1.6; }
.lead.compact { font-size: 15px; }
.eyebrow { color: var(--terra); letter-spacing: .1em; margin-bottom: 10px; }
.button { min-height: 48px; border-radius: 9px; font-size: 15px; }
.primary { background: var(--navy); }
.primary:hover { background: var(--navy2); }
.secondary { background: #edf1f1; color: var(--navy); }
input, select, textarea { min-height: 48px; border-radius: 8px; border-color: #cdd6d5; }
input:focus, select:focus, textarea:focus { outline-color: rgba(18, 59, 93, .16); border-color: var(--navy); }
details { border-radius: 9px; border-color: #d7dfde; }
summary { padding: 13px 14px; }
.consent { border-radius: 9px; background: #f0f5f2; padding: 14px; }
.notice { border-radius: 9px; }

/* Landing page */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.landing-copy { padding: clamp(26px, 5vw, 52px); }
.landing-copy h1 { max-width: 530px; }
.landing-copy .lead { max-width: 540px; }
.purpose-list { display: grid; gap: 12px; margin: 24px 0; }
.purpose-list > div { display: grid; gap: 3px; border-left: 3px solid #5e9282; padding: 2px 0 2px 13px; }
.purpose-list b { color: var(--navy); font-size: 14px; }
.purpose-list span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.landing-copy .consent { margin: 22px 0 12px !important; }
.landing-meta { display: flex; justify-content: space-between; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 15px; }
.landing-meta a { color: var(--navy); font-weight: 700; }
.landing-photo { position: relative; min-height: 100%; margin: 0; background: #d9e3df; }
.landing-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 43, 66, .03), rgba(10, 43, 66, .28)); }
.landing-photo img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: center 35%; }
.landing-photo figcaption { position: absolute; z-index: 1; bottom: 16px; left: 17px; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.privacy-note { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 2px 0; font-size: 13px; color: var(--muted); }
.privacy-note b { color: var(--navy); }
.verification-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.verification-choice-card { display: grid; width: 100%; gap: 7px; min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.verification-choice-card:hover { border-color: #6a9789; background: #edf4f0; }
.verification-choice-card.is-selected { border-color: #1e5a80; background: #edf5fa; box-shadow: inset 0 0 0 1px #1e5a80; }
.verification-choice-card b { color: var(--navy); font-size: 16px; }
.verification-choice-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.verify-step[hidden] { display: none; }
.registration-complete .reference { margin: 22px 0 8px; }
.community-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr); align-items: center; gap: 28px; }
.community-story h2 { margin-top: 0; }
.community-photo { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: #edf1ef; }
.community-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.community-photo figcaption { position: absolute; right: 12px; bottom: 10px; padding: 5px 8px; border-radius: 5px; background: rgba(18, 59, 93, .78); color: #fff; font-size: 12px; }

/* Forms and member flow */
.form-card { box-shadow: none; }
.tabs { border-radius: 8px; background: #edf1f1; }
.tabs a { border-radius: 6px; }
.tabs a.active { box-shadow: none; color: var(--navy); }
.verified { border-radius: 7px; margin-bottom: 16px; }
.locked { border-radius: 8px; background: #f5f7f6; border-bottom: 1px solid #dfe5e3; padding: 12px 14px; }
.correction { border-left-color: #b86b56; }
.chips label, .choices label { border-radius: 8px; }
.timebox { border-radius: 8px; }
.done-mark, .reference { border-radius: 10px; }

/* Administration: information first, decoration second. */
.admin-head { align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0 18px; margin-bottom: 18px; }
.admin-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.admin-head p { margin: 0; color: var(--muted); }
.admin-nav a { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; text-decoration: none; background: #fff; }
.metrics { grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 18px; }
.metric { border-radius: 10px; padding: 15px; background: #fff; }
.metric.highlight { background: #e8f4eb; border-color: #b9ddc2; }
.metric.highlight b { color: #1f6841; }
.progress-stamp { margin: -4px 0 14px; color: var(--muted); font-size: 13px; }
.progress-download { width: auto; min-height: 42px; font-size: 14px; }
.metric b { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 29px; letter-spacing: -.04em; }
.metric small { color: var(--muted); font-size: 11px; }
.admin-page .card { padding: 22px; }
.admin-page .card > h2 { margin-top: 0; }
.filter-form { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f8; }
.filter-form .button { min-height: 44px; }
.admin-table th { background: #f5f7f6; color: #52616b; font-weight: 750; }
.admin-table th, .admin-table td { padding: 11px 10px; }
.status-badge { border-radius: 6px; }
.registration-card { border-radius: 10px; box-shadow: none; }
.review-grid > div { border-radius: 7px; background: #f4f7f5; }

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; }
  .shell, .shell.admin { width: min(100% - 24px, 760px); margin-top: 18px; }
  .landing-hero { grid-template-columns: 1fr; border-radius: 12px; }
  .landing-copy { padding: 25px 20px 22px; }
  .landing-copy h1 { font-size: 34px; }
  .landing-photo { order: -1; height: 210px; }
  .landing-photo img { min-height: 210px; height: 210px; object-position: center; }
  .community-story { grid-template-columns: 1fr; gap: 18px; }
  .landing-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
  .verification-choice-grid { grid-template-columns: 1fr; }
  .card { border-radius: 11px; padding: 20px 17px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 14px; }
  .admin-head { align-items: flex-start; }
  .admin-page .card { padding: 18px 14px; }
  .filter-form { padding: 12px; }
}
