:root {
  --orange: #E95F0C;
  --blue: #003A78;
  --white: #FFFFFF;
  --charcoal: #2C2C2C;
  --light-bg: #f4f6fa;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   Base reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--light-bg);
  color: var(--charcoal);
  line-height: 1.6;
}

/* Prevent any media from overflowing containers */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Links
========================= */
a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* =========================
   Header
========================= */
header {
  background: linear-gradient(135deg, var(--blue), #001a3d);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* =========================
   Navigation
========================= */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

nav a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

nav a:hover,
nav a:focus,
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* =========================
   Main layout
========================= */
main {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem 2rem;
}

/* =========================
   Hero
========================= */
.hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.75rem;

  /* Critical: prevents any child (like images) from bleeding outside */
  overflow: hidden;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.hero h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.85rem;
  line-height: 1.2;
}

.hero p {
  margin: 0.25rem 0;
}

/* Highlight block */
.hero-highlight {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(233, 95, 12, 0.06);
  border-left: 4px solid var(--orange);
  font-size: 0.95rem;
}

/* Placeholder image block */
.placeholder-image {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(0, 58, 120, 0.35);
  background: rgba(0, 58, 120, 0.03);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0, 58, 120, 0.85);
  text-align: center;
  padding: 0.75rem;
}

/* =========================
   Homepage band image (default.htm)
   Use:
   <figure class="hero-band"><img ... /></figure>
========================= */
.hero-band {
  margin-top: 1.25rem;
  width: 100%;
  height: 220px;          /* controls banner height */
  overflow: hidden;      /* hides excess image */
  border-radius: 10px;
}

.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* crops vertically, fills space */
  display: block;
}

/* =========================
   Section headers & cards
========================= */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 2rem 0 0.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
}

.section-card ul {
  padding-left: 1.1rem;
  margin: 0.35rem 0 0.5rem;
}

.section-card li + li {
  margin-top: 0.15rem;
}

/* =========================
   Callout
========================= */
.callout {
  border-radius: var(--radius-md);
  background: rgba(0, 58, 120, 0.05);
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--blue);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* =========================
   Chips (hazard quick links)
========================= */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 58, 120, 0.07);
  border: 1px solid rgba(0, 58, 120, 0.18);
}

.chip a {
  color: var(--blue);
}

/* =========================
   Hazards grid + cards
========================= */
.hazard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.hazard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--orange);
}

.hazard-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.hazard-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.hazard-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hazard-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--blue);
}

/* =========================
   Footer
========================= */
footer {
  background: #010814;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 1.25rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-main span {
  display: block;
}

.footer-accessibility {
  max-width: 360px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-accessibility a {
  color: #c5ddff;
}

.footer-accessibility a:hover,
.footer-accessibility a:focus {
  text-decoration: underline;
}

/* =========================
   Responsive tweaks
========================= */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 1.5rem 1.25rem;
  }
}