* {
  box-sizing: border-box;
}

:root {
  --fbu-navy: #08224a;
  --fbu-red: #c8102e;
  --fbu-white: #ffffff;
  --soft-bg: #f4f6f8;
  --ink: #111827;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft-bg);
  color: var(--ink);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  background: var(--fbu-navy);
  color: white;
  padding: 72px 0;
  border-bottom: 10px solid var(--fbu-red);
}

.hero-grid,
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: #ffccd4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.96;
  margin: 0 0 24px;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.lead {
  font-size: 1.25rem;
  max-width: 660px;
}

.section {
  padding: 56px 0;
}

.section-light {
  background: var(--soft-bg);
}

.section-navy {
  background: var(--fbu-navy);
  color: white;
}

.section-red {
  background: var(--fbu-red);
  color: white;
}

.card,
.impact-box,
.graphic-slot {
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 34px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.graphic-slot {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 3px dashed #cbd5e1;
  color: #64748b;
  font-weight: 800;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 16px;
}

.hero-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.primary-link,
.button,
.postcode-form button {
  display: inline-block;
  background: var(--fbu-red);
  color: white;
  text-decoration: none;
  border: 0;
  padding: 16px 26px;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.button.secondary {
  background: var(--fbu-navy);
}

.big-button {
  font-size: 1.25rem;
  padding: 22px 36px;
  margin-top: 12px;
}

.intro-section {
  text-align: left;
}

.postcode-card {
  margin-top: 34px;
  text-align: center;
  border: 4px solid var(--fbu-red);
}

.postcode-panel {
  margin-top: 10px;
}

.postcode-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.postcode-form input {
  flex: 1;
  padding: 18px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  font-size: 1.1rem;
  font-weight: 700;
}

.impact-box {
  border-left: 10px solid #64748b;
}

.impact-box.danger {
  border-left-color: var(--fbu-red);
}

.urgent-card {
  border: 4px solid white;
}

.countdown {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 950;
  color: var(--fbu-red);
}

.section-red .countdown {
  color: white;
}

.action-card {
  text-align: center;
}

.tracking-note {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 14px auto 0;
  max-width: 640px;
}

.center {
  text-align: center;
}

.error {
  color: #b91c1c;
  font-weight: 900;
}

.disclaimer {
  font-size: 0.9rem;
  color: #4b5563;
}

.version {
  color: #9ca3af;
  font-size: 0.8rem;
}

.hidden {
  display: none;
}

@media (max-width: 820px) {
  .hero {
    padding: 48px 0;
  }

  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 300px;
  }

  .graphic-slot {
    min-height: 220px;
  }

  .postcode-form {
    flex-direction: column;
  }

  .postcode-form input,
  .postcode-form button {
    width: 100%;
  }

  .card,
  .impact-box,
  .graphic-slot {
    padding: 24px;
  }
}

.countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.count-box {
  background: var(--fbu-navy);
  color: white;
  border: 3px solid white;
  border-radius: 8px;
  padding: 18px 8px;
  text-align: center;
  min-width: 0;
}

.count-box span {
  display: block;
  font-size: clamp(1.8rem, 7vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.count-box small {
  display: block;
  margin-top: 8px;
  font-size: clamp(0.65rem, 2.4vw, 0.95rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffccd4;
}

@media (max-width: 520px) {
  .countdown-boxes {
    gap: 6px;
  }

  .count-box {
    padding: 14px 3px;
    border-width: 2px;
  }
}

.intro-list {
  text-align: left;
  font-weight: 800;
  line-height: 1.7;
  margin: 18px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-top: 8px solid var(--fbu-red);
}

.info-card h3 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
}

.info-card p {
  margin-bottom: 0;
  line-height: 1.55;
}

.card-icon {
  font-size: 2.4rem;
}

.section-navy .section-title {
  color: white;
}

@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.small-hero {
  padding: 42px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dashboard-card,
.admin-table-card {
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dashboard-card h2 {
  color: var(--fbu-red);
  font-size: 3rem;
  margin-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: var(--fbu-navy);
  color: white;
}

@media (max-width: 820px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-card {
    overflow-x: auto;
  }
}

.card-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

.info-card {
  text-align: center;
}

.dashboard-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.chart-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-card canvas {
  max-height: 360px;
}

.danger-card {
  border-top: 8px solid var(--fbu-red);
}

.danger-card .button {
  margin-top: 12px;
}

@media (max-width: 820px) {
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
}

.card-material-icon {
  display: block;
  text-align: center;

  font-size: 72px;
  line-height: 1;

  color: var(--fbu-red);

  margin: 0 auto 18px;

  font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' 0,
    'opsz' 48;
}

.section-navy .card-material-icon {
  color: white;
}

.info-card {
  text-align: center;
}

.info-card h3 {
  margin-top: 8px;
}

.card-icon-img {
  display: none;
}

.info-card {
  text-align: center;
}

.card-material-icon {
  display: block;
  text-align: center;

  font-size: 72px;
  line-height: 1;

  color: var(--fbu-red);

  margin: 0 auto 18px;

  font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' 0,
    'opsz' 48;
}

.section-navy .card-material-icon {
  color: white;
}

.info-card {
  text-align: center;
}

.info-card h3 {
  margin-top: 8px;
}

.card-icon-img {
  display: none;
}

.info-card {
  text-align: center;
}

/* v0.0.8 icon override */

.card-material-icon {
  display: block !important;
  text-align: center !important;

  width: auto !important;
  height: auto !important;

  background: transparent !important;
  border-radius: 0 !important;

  font-size: 72px !important;
  line-height: 1 !important;

  color: var(--fbu-red) !important;

  margin: 0 auto 18px !important;

  font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' 0,
    'opsz' 48;
}

.section-navy .card-material-icon {
  color: white !important;
}

/* v0.0.9 fix catalyst icon colour */

.catalyst-section .card-material-icon {
  color: var(--fbu-red) !important;
}
