:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fbfdff;
  --ink: #1b2a39;
  --muted: #5a6c7a;
  --line: #d7e0e6;
  --blue: #009edb;
  --blue-deep: #006f9f;
  --black: #111111;
  --focus: #ffbf47;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

body.high-contrast {
  --surface: #ffffff;
  --surface-muted: #ffffff;
  --ink: #000000;
  --muted: #111111;
  --line: #000000;
  --blue: #000000;
  --blue-deep: #000000;
  --black: #000000;
}

a {
  color: var(--blue-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.utility-bar {
  background: var(--black);
}

.utility-shell {
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
}

.utility-links a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.wordmark-logo {
  width: auto;
  height: 86px;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wordmark-top {
  max-width: 26ch;
  color: var(--blue-deep);
  font-size: 1.9rem;
  line-height: 1.02;
  font-weight: 700;
}

.wordmark-bottom {
  color: var(--muted);
  font-size: 0.95rem;
}

.contrast-toggle {
  border: 1px solid var(--blue-deep);
  padding: 0.7rem 0.95rem;
  background: #ffffff;
  color: var(--blue-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav {
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 0.95rem 0;
  text-decoration: none;
  color: var(--blue-deep);
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown details {
  position: relative;
}

.nav-dropdown summary {
  display: inline-block;
  padding: 0.95rem 0;
  list-style: none;
  color: var(--blue-deep);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: " \25be";
  font-size: 0.8em;
}

.nav-dropdown details[open] summary,
.nav-dropdown summary:hover,
.nav-dropdown summary[aria-current="page"] {
  border-color: var(--blue);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  min-width: 16rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  background: var(--surface-muted);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-color: var(--blue);
}

.hero {
  position: relative;
  padding-bottom: 5rem;
}

.hero-media {
  width: 100%;
  height: min(68vw, 760px);
  min-height: 460px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: relative;
  margin-top: -10rem;
}

.hero-copy {
  width: min(620px, 100%);
  padding: 2rem 2.1rem;
  background: #ffffff;
  border-top: 7px solid var(--blue);
  box-shadow: 0 0 0 1px var(--line);
}

.kicker,
.story-type,
.metric-label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  color: var(--ink);
}

.standfirst {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.hero-date {
  margin: 1rem 0 0;
  color: var(--muted);
}

.hero-link,
.donate-button {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.featured-band,
.mission-band,
.content-stream,
.support-band,
.contact-band {
  padding-bottom: 3rem;
}

.section-heading {
  margin: 0 0 1.1rem;
  font-size: 2.25rem;
  line-height: 1.05;
  color: var(--ink);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.25rem;
}

.lead-story {
  grid-row: span 3;
  padding: 1.6rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.lead-story h3,
.story-list-item h3,
.mission-copy h2,
.stream-card h3,
.support-copy h2,
.contact-block h3 {
  margin: 0 0 0.7rem;
  line-height: 1.12;
}

.lead-story h3,
.mission-copy h2,
.support-copy h2 {
  color: var(--blue-deep);
  font-size: 2rem;
}

.story-list-item {
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.story-list-item h3 {
  font-size: 1.2rem;
  color: var(--ink);
}

.text-link {
  font-weight: 700;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mission-copy {
  padding-right: 1rem;
}

.mission-points {
  display: grid;
  gap: 1rem;
}

.metric {
  padding: 1.15rem 1.2rem;
  background: var(--surface-muted);
  border-left: 5px solid var(--blue);
  box-shadow: 0 0 0 1px var(--line);
}

.metric strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stream-card {
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.stream-card-wide {
  grid-column: span 3;
  border-top: 5px solid var(--blue);
}

.stream-card h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-block {
  padding: 1.25rem 0;
  border-top: 4px solid var(--blue);
}

.contact-block h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

.site-footer {
  padding: 0;
  background: linear-gradient(to bottom, #ffffff, #f6fafc 58%, #f2f7fa);
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.8rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 1.75rem 0 1.5rem;
}

.footer-links {
  margin: 0;
  padding-left: 1rem;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  width: 108px;
  height: 108px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-title {
  max-width: 18ch;
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--blue-deep);
  font-weight: 700;
}

.footer-summary {
  max-width: 28rem;
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.footer-cta {
  display: inline-block;
  padding: 0.95rem 1.2rem;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.footer-column {
  min-height: 100%;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.footer-column:last-child {
  border-right: 0;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--blue-deep);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--blue-deep);
  text-decoration: none;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  text-decoration: underline;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-base p {
  margin: 0;
}

.subhero {
  padding: 3rem 0 2rem;
  background: linear-gradient(to bottom, #f5f9fb, #ffffff);
}

.subhero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.subhero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  color: var(--ink);
}

.subhero-copy p {
  max-width: 44rem;
  font-size: 1.08rem;
}

.subhero-meta {
  padding-top: 0.35rem;
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.meta-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-list strong,
.sidebar-block h3,
.body-copy h2,
.body-copy h3,
.text-columns h2,
.text-columns h3 {
  color: var(--blue-deep);
}

.page-section {
  padding: 2.25rem 0 3rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.body-copy p,
.body-copy ul,
.body-copy ol {
  max-width: 44rem;
}

.body-copy h2 {
  margin: 0 0 0.8rem;
  font-size: 2rem;
  line-height: 1.08;
}

.body-copy h3,
.text-columns h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.3rem;
  line-height: 1.18;
}

.sidebar-stack {
  display: grid;
  gap: 1.25rem;
}

.sidebar-block {
  padding: 1.2rem;
  background: var(--surface-muted);
  border-left: 4px solid var(--blue);
  box-shadow: 0 0 0 1px var(--line);
}

.sidebar-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.sidebar-block p,
.sidebar-block ul {
  margin-bottom: 0;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
}

.action-banner {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.action-banner h2 {
  margin: 0 0 0.6rem;
  color: var(--blue-deep);
  font-size: 1.8rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.recommendation-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tool-block {
  margin: 2rem 0 0;
  padding: 1.4rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.tool-block h2,
.tool-block h3 {
  margin-top: 0;
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-controls label,
.verify-form label,
.donation-form label {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.tool-controls input,
.tool-controls select,
.verify-form input,
.verify-form select,
.verify-form textarea,
.donation-form input,
.donation-form select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: #ffffff;
  font: inherit;
  color: var(--ink);
}

.tool-grid,
.verify-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1.25rem;
}

.list-panel,
.detail-panel,
.result-panel,
.progress-panel {
  padding: 1rem;
  background: var(--surface-muted);
  box-shadow: 0 0 0 1px var(--line);
}

.alert-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alert-list li + li {
  margin-top: 0.75rem;
}

.alert-button {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.alert-button.active {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.alert-button strong,
.alert-detail-heading {
  display: block;
  color: var(--blue-deep);
}

.status-chip {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-critical {
  border-color: #a22727;
  color: #7d1212;
}

.status-high {
  border-color: #b35b00;
  color: #8a4700;
}

.status-medium {
  border-color: #7c7a00;
  color: #615f00;
}

.detail-panel dl,
.contact-list {
  margin: 0;
}

.detail-panel dt,
.result-panel dt {
  margin-top: 0.75rem;
  font-weight: 700;
}

.detail-panel dd,
.result-panel dd {
  margin: 0.2rem 0 0;
}

.verify-form,
.donation-form {
  display: grid;
  gap: 1rem;
}

.verify-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.verify-form button,
.donation-form button,
.starter-action {
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.verify-status {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.verify-valid {
  color: #0a6b2c;
}

.verify-review {
  color: #8a4700;
}

.verify-invalid {
  color: #8c1f1f;
}

.checklist {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.check-item input {
  margin-top: 0.2rem;
}

.progress-bar {
  width: 100%;
  height: 14px;
  overflow: hidden;
  background: #eef4f8;
  box-shadow: inset 0 0 0 1px var(--line);
}

.progress-fill {
  height: 100%;
  background: var(--blue);
}

.priority-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.amount-option {
  display: block;
  padding: 0.9rem 0.75rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  text-align: center;
}

.amount-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-option span {
  font-weight: 700;
}

.amount-option.selected {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.donation-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-muted);
  box-shadow: 0 0 0 1px var(--line);
}

.error-shell {
  max-width: 42rem;
  padding: 3rem 0 2rem;
}

@media (max-width: 980px) {
  .featured-grid,
  .mission-grid,
  .stream-grid,
  .contact-grid,
  .footer-grid,
  .support-grid,
  .subhero-grid,
  .page-grid,
  .text-columns,
  .tool-grid,
  .verify-grid,
  .tool-controls,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .lead-story {
    grid-row: auto;
  }

  .stream-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(1180px, calc(100% - 1rem));
  }

  .masthead,
  .wordmark,
  .utility-shell,
  .footer-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-shell {
    justify-content: flex-start;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav a {
    width: 100%;
    padding: 0.8rem 0;
  }

  .nav-dropdown summary {
    width: 100%;
    padding: 0.8rem 0;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 0 1px var(--line);
  }

  .hero {
    padding-bottom: 2rem;
  }

  .hero-media {
    min-height: 320px;
    height: 320px;
  }

  .hero-overlay {
    margin-top: 0;
  }

  .hero-copy {
    width: 100%;
    padding: 1.25rem 1rem;
    box-shadow: none;
    border-top-width: 5px;
  }

  .wordmark-logo {
    height: 72px;
  }

  .wordmark-top {
    font-size: 1.5rem;
  }
}

/* Holding page styles */
body.holding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--surface);
  text-align: center;
}

.holding-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 2rem;
}

.holding-message {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}
