:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e0e8;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --night: #111827;
  --red: #d8232a;
  --red-dark: #a9151b;
  --teal: #0f766e;
  --gold: #f2b84b;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
  --page-max: 1800px;
  --page-gutter: clamp(8px, 1vw, 16px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 35, 42, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(15, 118, 110, 0.14), transparent 26rem),
    radial-gradient(circle at 54% 100%, rgba(242, 184, 75, 0.13), transparent 30rem),
    linear-gradient(135deg, #fbfdff 0%, #eef6f7 46%, #f9f1e5 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  overflow: hidden;
}

.scroll-reveal {
  filter: blur(4px);
  opacity: 0;
  transform: translate3d(0, 26px, 0) rotate(0.35deg);
  transform-origin: center bottom;
  transition:
    opacity 620ms ease,
    filter 700ms ease,
    transform 760ms cubic-bezier(0.18, 0.78, 0.26, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}

.scroll-reveal.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.hero {
  min-height: 92vh;
  background:
    linear-gradient(115deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72)),
    url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--soft));
  pointer-events: none;
}

.nav,
.hero-grid,
.section,
.feature-band,
.message-section,
footer {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    #ffffff
    url("./assets/midcoast-lighthouse-logo.png")
    center / 86% auto
    no-repeat;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.pulse-line {
  display: none;
  width: 34px;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 0 28%, white 29% 34%, transparent 35% 44%, white 45% 50%, transparent 51% 59%, white 60% 65%, transparent 66%);
}

.brand-name,
.brand-subtitle {
  display: block;
  line-height: 1;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
}

.brand-subtitle {
  color: #ffd5d6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: 5px;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 16px;
  transition: 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.nav-links .nav-cta {
  background: white;
  color: var(--night);
  padding-inline: 20px;
}

.nav-links .nav-cta:hover {
  background: var(--red);
}

.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  padding: 74px 0 138px;
  align-items: center;
}

.eyebrow,
.mini-label {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.message-section .eyebrow {
  color: #ffb3b6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.button,
.nav-links a,
.contact-list a,
.source-row-links a {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(3.8rem, 7vw, 6.9rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin: 18px 0 26px;
  max-width: 900px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
  line-height: 1.75;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.request-form button {
  align-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  line-height: 1.15;
  min-height: 56px;
  padding: 0 24px;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.request-form button:hover {
  transform: translateY(-2px);
}

.button-primary,
.request-form button {
  background: var(--red);
  box-shadow: 0 16px 34px rgba(216, 35, 42, 0.32);
  color: white;
}

.button-primary:hover,
.request-form button:hover {
  background: var(--red-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: white;
}

.trust-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 560px;
}

.trust-row div {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 17px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  color: #ffd5d6;
  font-size: 2rem;
  line-height: 1;
}

.trust-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 7px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-card,
.quick-contact,
.course-card,
.price-table,
.group-card,
.feature-band article,
.request-form {
  border: 1px solid rgba(217, 224, 232, 0.9);
  box-shadow: var(--shadow);
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  color: var(--ink);
  padding: 28px;
}

.hero-card-top {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.hero-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 10px 0 18px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.65;
}

.status-dot {
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.12);
  height: 14px;
  margin-top: 6px;
  width: 14px;
}

.cert-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.cert-list a {
  background: var(--soft);
  border-radius: 12px;
  color: #253041;
  display: block;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 12px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cert-list a:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
}

.quick-contact {
  align-items: center;
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 20px 22px;
}

.quick-contact span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.quick-contact a {
  font-size: 1.1rem;
  font-weight: 950;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.message-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 12px 0 20px;
}

.section-heading p:not(.eyebrow),
.message-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.course-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 42px;
}

.course-card {
  background: var(--paper);
  border-radius: 22px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
  position: relative;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.course-card:hover {
  border-color: rgba(216, 35, 42, 0.32);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
  transform: translateY(-5px);
}

.featured-course {
  background: var(--night);
  color: white;
}

.course-tag {
  background: #ffe8e9;
  border-radius: 999px;
  color: var(--red-dark);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 38px;
  max-width: calc(100% - 72px);
  padding: 8px 11px;
  white-space: normal;
}

.featured-course .course-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd5d6;
}

.course-icon {
  align-items: center;
  background: #eef7f6;
  border-radius: 16px;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  height: 56px;
  justify-content: center;
  margin-bottom: 0;
  position: absolute;
  right: 22px;
  top: 20px;
  width: 56px;
}

.featured-course .course-icon {
  background: var(--red);
  color: white;
}

.course-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.course-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.featured-course p {
  color: rgba(255, 255, 255, 0.72);
}

.learn-more {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
  margin-top: auto;
  padding-top: 16px;
}

.compare-section {
  padding-top: 18px;
}

.comparison-wrap {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 246, 0.96)),
    var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-top: 34px;
  overflow-x: auto;
  overflow-y: hidden;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(217, 224, 232, 0.92);
  color: #394454;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--night);
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.comparison-table thead th:first-child {
  border-top-left-radius: 28px;
}

.comparison-table thead th:last-child {
  border-top-right-radius: 28px;
}

.comparison-table tbody th {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  left: 0;
  min-width: 220px;
  position: sticky;
  z-index: 1;
}

.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th {
  background-color: rgba(248, 250, 252, 0.92);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.25;
  padding: 8px 10px;
}

.compare-pill.is-card {
  background: #e8f7f4;
  color: var(--teal);
}

.compare-pill.is-advanced {
  background: #ffe8e9;
  color: var(--red-dark);
}

.compare-pill.is-public,
.compare-pill.is-pediatric {
  background: #fff3d8;
  color: #8a5a00;
}

.compare-pill.is-awareness,
.compare-pill.is-community {
  background: #eef2ff;
  color: #3730a3;
}

.featured-course .learn-more {
  color: #ffd5d6;
}

.page-hero {
  background:
    linear-gradient(115deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76)),
    url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  color: white;
}

.ems-hero {
  background:
    linear-gradient(115deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.66)),
    url("https://images.unsplash.com/photo-1516841273335-e39b37888115?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  color: white;
}

.ems-hero-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  margin: 0 auto;
  padding: 74px 0 96px;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.ems-map-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 24px;
}

.ems-map-card button {
  align-items: center;
  aspect-ratio: 1.05;
  background:
    linear-gradient(135deg, rgba(216, 35, 42, 0.12), rgba(15, 118, 110, 0.12)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 950;
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  text-align: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ems-map-card button:hover,
.ems-map-card button.is-active {
  background:
    linear-gradient(135deg, rgba(216, 35, 42, 0.95), rgba(17, 24, 39, 0.96)),
    var(--night);
  box-shadow: 0 16px 34px rgba(216, 35, 42, 0.22);
  color: white;
  transform: translateY(-3px);
}

.ems-main {
  padding: 54px 0 86px;
}

.ems-note,
.service-explorer,
.lifeflight-section,
.county-section {
  margin: 0 auto;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.ems-note {
  background: #fff8ec;
  border: 1px solid rgba(242, 184, 75, 0.4);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: #4d3920;
  line-height: 1.65;
  padding: 22px 24px;
}

.response-chain {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px auto 0;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.response-chain article {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 246, 0.96)),
    var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.1);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.response-chain article::after {
  background: linear-gradient(90deg, var(--red), var(--teal));
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}

.response-chain span {
  align-items: center;
  background: var(--night);
  border-radius: 14px;
  color: white;
  display: inline-flex;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  margin-bottom: 14px;
  width: 38px;
}

.response-chain strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
}

.response-chain p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 8px 0 0;
}

.service-explorer {
  margin-top: 28px;
}

.category-toolbar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.filter-summary {
  color: var(--muted);
  flex: 1 1 100%;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 0 4px 4px;
}

.category-button,
.category-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #394454;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 950;
  padding: 12px 16px;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.category-action {
  background: #eef7f6;
  color: var(--teal);
}

.category-button:hover,
.category-button.is-active {
  background: var(--night);
  border-color: var(--night);
  color: white;
  transform: translateY(-2px);
}

.category-action:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: translateY(-2px);
}

.county-section {
  display: none;
  padding-top: 68px;
}

.county-section.is-active {
  animation: countyIn 260ms ease both;
  display: block;
}

@keyframes countyIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.county-heading {
  max-width: 760px;
}

.county-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 10px 0 16px;
}

.county-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.agency-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.empty-service-state {
  background: #fff8ec;
  border: 1px solid rgba(242, 184, 75, 0.4);
  border-radius: 20px;
  color: #4d3920;
  font-weight: 900;
  grid-column: 1 / -1;
  padding: 24px;
}

.agency-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.agency-card:hover {
  border-color: rgba(216, 35, 42, 0.24);
  box-shadow: 0 28px 68px rgba(17, 24, 39, 0.16);
  transform: translateY(-3px);
}

.agency-photo {
  background:
    linear-gradient(135deg, rgba(238, 247, 246, 0.98), rgba(248, 250, 252, 0.98)),
    var(--soft);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 18px;
  height: 126px;
  margin: auto 24px 24px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.agency-photo-img {
  box-sizing: border-box;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.agency-photo-photo {
  background: #f8fafc;
  object-fit: contain;
  padding: 10px;
}

.agency-photo-logo {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  inset: 0;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.agency-photo::before {
  display: none;
}

.agency-photo.has-media::before {
  display: none;
}

.agency-photo > span {
  display: none !important;
}

.agency-photo::after {
  background: linear-gradient(90deg, var(--red), var(--teal));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: auto;
}

.agency-photo::before {
  z-index: 0;
}

.agency-photo::after {
  z-index: 4;
}

.source-link-section {
  margin: 30px auto 0;
  text-align: center;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.source-link-section a,
.sources-list a {
  color: var(--red);
  font-weight: 950;
}

.sources-page {
  padding: 64px 0 92px;
}

.sources-list {
  display: grid;
  gap: 16px;
  margin: 30px auto 0;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.source-group {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.1);
  padding: 24px;
}

.source-group h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.source-group ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-group li {
  color: var(--muted);
  line-height: 1.45;
}

.source-group strong {
  color: var(--ink);
}

.source-row {
  align-items: start;
  border-top: 1px solid rgba(217, 224, 232, 0.9);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  padding-top: 12px;
}

.source-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.source-row span {
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-top: 3px;
}

.source-row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.source-row-links a {
  background: #ffe8e9;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 8px 10px;
}

.emergency-hero {
  background:
    linear-gradient(115deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.68)),
    url("https://images.unsplash.com/photo-1612277795421-9bc7706a4a34?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  color: white;
}

.emergency-hero-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  margin: 0 auto;
  padding: 74px 0 96px;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.emergency-hero .eyebrow {
  color: #ffb3b6;
}

.emergency-priority-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 30px;
}

.emergency-priority-card span {
  color: var(--red);
  display: block;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.emergency-priority-card ol {
  counter-reset: priority;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.emergency-priority-card li {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px 1fr;
  font-weight: 900;
  line-height: 1.35;
  padding: 12px;
}

.emergency-priority-card li::before {
  align-items: center;
  background: var(--night);
  border-radius: 12px;
  color: white;
  content: counter(priority);
  counter-increment: priority;
  display: flex;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.emergency-priority-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 18px 0 0;
}

.emergency-main {
  padding: 54px 0 86px;
}

.emergency-note,
.emergency-guide-shell,
.equipment-section,
.emergency-sources {
  margin-left: auto;
  margin-right: auto;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.emergency-guide-shell,
.equipment-section,
.emergency-sources {
  margin-top: 28px;
}

.emergency-guide-intro {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 246, 0.94)),
    var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.emergency-guide-intro h2,
.equipment-section .section-heading h2,
.emergency-sources h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  margin: 10px 0 14px;
}

.emergency-guide-intro p:not(.eyebrow),
.equipment-section .section-heading p,
.emergency-sources p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 780px;
}

.emergency-guide-layout {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.emergency-type-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emergency-type-button {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.1);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  line-height: 1.25;
  min-height: 320px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.emergency-card-photo {
  background:
    linear-gradient(135deg, rgba(238, 247, 246, 0.96), rgba(255, 248, 236, 0.94));
  display: block;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.emergency-card-photo::after {
  background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, 0.34));
  content: "";
  inset: 0;
  position: absolute;
}

.emergency-card-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
  width: 100%;
}

.emergency-card-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.emergency-type-tag {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.emergency-type-title {
  color: var(--ink);
  display: block;
  font-size: 1.16rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.06;
}

.emergency-type-summary {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.88rem;
  font-weight: 700;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  overflow: hidden;
}

.emergency-type-button:hover,
.emergency-type-button.is-active {
  border-color: rgba(216, 35, 42, 0.45);
  box-shadow: 0 28px 68px rgba(17, 24, 39, 0.16);
  transform: translateY(-4px);
}

.emergency-type-button:hover .emergency-card-photo img,
.emergency-type-button.is-active .emergency-card-photo img {
  transform: scale(1.055);
}

.emergency-type-button.is-active .emergency-type-title {
  color: var(--red-dark);
}

.emergency-type-button.image-failed .emergency-card-photo {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.88));
}

.emergency-guide-layout [data-emergency-detail] {
  scroll-margin-top: 18px;
}

.emergency-detail-card {
  background: var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.emergency-detail-top {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(15, 118, 110, 0.9)),
    var(--night);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  align-items: stretch;
  color: white;
  padding: 30px;
}

.emergency-detail-top span {
  color: #ffd5d6;
  display: block;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.emergency-detail-top h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  margin: 10px 0 18px;
}

.emergency-detail-top p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  margin-bottom: 0;
}

.emergency-detail-photo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  margin: 0;
  min-height: 230px;
  overflow: hidden;
}

.emergency-detail-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.emergency-steps {
  counter-reset: emergency-step;
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 26px 30px 10px;
}

.emergency-steps li {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  display: grid;
  gap: 14px;
  grid-template-columns: 38px 1fr;
  line-height: 1.58;
  padding: 14px;
}

.emergency-steps li::before {
  align-items: center;
  background: var(--red);
  border-radius: 13px;
  color: white;
  content: counter(emergency-step);
  counter-increment: emergency-step;
  display: flex;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.emergency-watch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 30px 30px;
}

.emergency-watch-links a,
.emergency-source-links a {
  background: #ffe8e9;
  border: 1px solid rgba(216, 35, 42, 0.18);
  border-radius: 999px;
  color: var(--red-dark);
  font-size: 0.9rem;
  font-weight: 950;
  padding: 11px 14px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.emergency-watch-links a:hover,
.emergency-source-links a:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
}

.equipment-section {
  padding-top: 40px;
}

.equipment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.equipment-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 20px;
}

.equipment-card h3 {
  font-size: 1.28rem;
  line-height: 1.08;
  margin: 10px 0;
}

.equipment-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
  margin-bottom: 0;
}

.equipment-photo {
  background:
    linear-gradient(135deg, rgba(238, 247, 246, 0.96), rgba(255, 248, 236, 0.96));
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 20px;
  height: 190px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.equipment-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.equipment-card:hover .equipment-photo img {
  transform: scale(1.045);
}

.equipment-photo.is-contain img {
  background: #f8fafc;
  object-fit: contain;
  padding: 12px;
}

.equipment-tag {
  background: #eef7f6;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  margin-top: 16px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.equipment-visual {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #eef7f6, #fff8ec);
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 20px;
  height: 190px;
  overflow: hidden;
  position: relative;
}

.equipment-visual span,
.equipment-visual i,
.equipment-visual b {
  display: block;
  position: absolute;
}

.device-aed span:nth-child(1) {
  background: var(--red);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.2);
  height: 118px;
  left: 23%;
  top: 34px;
  width: 46%;
}

.device-aed span:nth-child(2) {
  background:
    linear-gradient(135deg, transparent 0 32%, #1fc48f 33% 38%, transparent 39% 54%, #1fc48f 55% 61%, transparent 62%),
    #101827;
  border-radius: 10px;
  height: 38px;
  left: 30%;
  top: 52px;
  width: 32%;
}

.device-aed span:nth-child(3) {
  background: var(--gold);
  border-radius: 999px;
  height: 28px;
  left: 39%;
  top: 106px;
  width: 28px;
}

.device-aed i {
  border: 4px solid var(--night);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  height: 78px;
  right: 18%;
  top: 60px;
  width: 42px;
}

.device-cabinet span:nth-child(1) {
  background: rgba(216, 35, 42, 0.92);
  border: 10px solid white;
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.2);
  height: 118px;
  left: 28%;
  top: 40px;
  width: 44%;
}

.device-cabinet span:nth-child(2) {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  height: 86px;
  left: 37%;
  top: 56px;
  width: 26%;
}

.device-cabinet i {
  color: white;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 950;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 75px;
}

.device-monitor span:nth-child(1) {
  background: var(--night);
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.2);
  height: 112px;
  left: 18%;
  top: 38px;
  width: 54%;
}

.device-monitor span:nth-child(2) {
  background:
    linear-gradient(135deg, transparent 0 22%, #40f0a0 23% 28%, transparent 29% 42%, #40f0a0 43% 50%, transparent 51%),
    #07111f;
  border-radius: 10px;
  height: 54px;
  left: 25%;
  top: 56px;
  width: 40%;
}

.device-monitor span:nth-child(3),
.device-monitor i {
  background: var(--red);
  border-radius: 14px;
  height: 58px;
  top: 96px;
  width: 30px;
}

.device-monitor span:nth-child(3) {
  right: 18%;
  transform: rotate(-18deg);
}

.device-monitor i {
  right: 8%;
  transform: rotate(18deg);
}

.device-pads span:nth-child(1),
.device-pads span:nth-child(2) {
  background: white;
  border: 4px solid var(--red);
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
  height: 92px;
  top: 50px;
  width: 34%;
}

.device-pads span:nth-child(1) {
  left: 16%;
  transform: rotate(-9deg);
}

.device-pads span:nth-child(2) {
  right: 16%;
  transform: rotate(9deg);
}

.device-pads i {
  border-top: 5px solid var(--night);
  height: 38px;
  left: 39%;
  top: 92px;
  width: 22%;
}

.device-narcan span:nth-child(1) {
  background: #f8fafc;
  border: 5px solid var(--night);
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.16);
  height: 106px;
  left: 20%;
  top: 44px;
  transform: rotate(-8deg);
  width: 40%;
}

.device-narcan span:nth-child(2) {
  background: var(--red);
  border-radius: 999px;
  height: 18px;
  left: 28%;
  top: 78px;
  transform: rotate(-8deg);
  width: 24%;
}

.device-narcan i {
  background: white;
  border: 4px solid var(--teal);
  border-radius: 18px 18px 10px 10px;
  height: 88px;
  right: 22%;
  top: 58px;
  width: 26px;
}

.device-epi span:nth-child(1),
.device-epi span:nth-child(2) {
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
  height: 124px;
  top: 36px;
  width: 28px;
}

.device-epi span:nth-child(1) {
  background: linear-gradient(#1f2937 0 20%, #f2b84b 20% 72%, #111827 72%);
  left: 38%;
  transform: rotate(-16deg);
}

.device-epi span:nth-child(2) {
  background: linear-gradient(#1f2937 0 20%, #3bb2a0 20% 72%, #111827 72%);
  right: 38%;
  transform: rotate(16deg);
}

.device-epi i {
  background: var(--red);
  border-radius: 999px;
  height: 54px;
  left: calc(50% - 27px);
  opacity: 0.14;
  top: 70px;
  width: 54px;
}

.device-aspirin span:nth-child(1) {
  background: white;
  border: 5px solid var(--red);
  border-radius: 12px 12px 24px 24px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
  height: 104px;
  left: 31%;
  top: 48px;
  width: 38%;
}

.device-aspirin span:nth-child(2) {
  background: var(--red);
  border-radius: 8px;
  height: 22px;
  left: 35%;
  top: 70px;
  width: 30%;
}

.device-aspirin i,
.device-aspirin b {
  background: #f8fafc;
  border: 3px solid var(--night);
  border-radius: 999px;
  height: 34px;
  top: 130px;
  width: 34px;
}

.device-aspirin i {
  left: 21%;
}

.device-aspirin b {
  right: 22%;
}

.device-bleed-kit span:nth-child(1) {
  background: var(--red);
  border-radius: 26px;
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.2);
  height: 108px;
  left: 19%;
  top: 52px;
  width: 62%;
}

.device-bleed-kit span:nth-child(2) {
  background: white;
  border-radius: 999px;
  height: 42px;
  left: calc(50% - 21px);
  top: 85px;
  width: 42px;
}

.device-bleed-kit i {
  background: var(--red);
  height: 12px;
  left: calc(50% - 28px);
  top: 100px;
  width: 56px;
}

.device-bleed-kit i::after {
  background: var(--red);
  content: "";
  height: 56px;
  left: 22px;
  position: absolute;
  top: -22px;
  width: 12px;
}

.device-tourniquet span:nth-child(1) {
  background: var(--night);
  border-radius: 999px;
  height: 42px;
  left: 15%;
  top: 80px;
  width: 70%;
}

.device-tourniquet span:nth-child(2) {
  background: var(--red);
  border-radius: 12px;
  height: 72px;
  left: 42%;
  top: 64px;
  transform: rotate(28deg);
  width: 22px;
}

.device-tourniquet i {
  background: var(--gold);
  border-radius: 999px;
  height: 24px;
  left: 25%;
  top: 89px;
  width: 48%;
}

.device-mask span:nth-child(1) {
  background: rgba(255, 255, 255, 0.92);
  border: 5px solid var(--teal);
  border-radius: 999px 999px 30px 30px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
  height: 108px;
  left: 29%;
  top: 42px;
  width: 42%;
}

.device-mask span:nth-child(2) {
  background: var(--red);
  border-radius: 999px;
  height: 34px;
  left: calc(50% - 17px);
  top: 78px;
  width: 34px;
}

.device-mask i {
  border: 5px solid var(--night);
  border-radius: 999px;
  height: 64px;
  left: calc(50% - 32px);
  top: 70px;
  width: 64px;
}

.device-gloves span:nth-child(1),
.device-gloves span:nth-child(2) {
  background: #7dd3fc;
  border: 4px solid white;
  border-radius: 26px 26px 18px 18px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
  height: 104px;
  top: 48px;
  width: 34%;
}

.device-gloves span:nth-child(1) {
  left: 21%;
  transform: rotate(-10deg);
}

.device-gloves span:nth-child(2) {
  right: 21%;
  transform: rotate(10deg);
}

.device-gloves i {
  background: white;
  border-radius: 999px;
  height: 26px;
  left: calc(50% - 13px);
  top: 82px;
  width: 26px;
}

.device-blanket span:nth-child(1) {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 12%, transparent 12% 24%),
    var(--gold);
  background-size: 34px 100%;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
  height: 108px;
  left: 21%;
  top: 48px;
  transform: rotate(-4deg);
  width: 58%;
}

.device-blanket span:nth-child(2) {
  background: rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  height: 24px;
  left: 31%;
  top: 86px;
  width: 38%;
}

.device-blanket i {
  border: 4px solid white;
  border-radius: 20px;
  height: 92px;
  left: 27%;
  top: 56px;
  width: 46%;
}

.emergency-sources {
  align-items: start;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  padding: 30px;
}

.emergency-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agency-body {
  flex: 1;
  padding: 24px;
}

.agency-county {
  color: var(--red);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.agency-body h3 {
  font-size: 1.42rem;
  line-height: 1.08;
  margin-bottom: 14px;
}

.agency-body p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
  margin-bottom: 10px;
}

.agency-body a {
  color: var(--red);
  display: inline-flex;
  font-weight: 950;
  margin-top: 8px;
}

.county-map-section,
.lifeflight-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-top: 24px;
  padding: 28px;
}

.county-map-section {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
}

.county-map-section h3,
.lifeflight-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  margin: 10px 0 12px;
}

.county-map-section p:not(.eyebrow),
.lifeflight-section p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.county-mini-map,
.lifeflight-map {
  background: #d9e8ef;
  border: 1px solid rgba(90, 110, 130, 0.3);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.county-mini-map.leaflet-container,
.lifeflight-map.leaflet-container {
  font: inherit;
}

.leaflet-service-marker-shell {
  background: transparent;
  border: 0;
}

.leaflet-service-marker {
  align-items: center;
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.28);
  color: white;
  display: flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.marker-ems {
  background: var(--teal);
}

.marker-fire {
  background: var(--red);
}

.marker-police {
  background: #2563eb;
}

.marker-dispatch {
  background: var(--gold);
  color: var(--ink);
}

.marker-lifeflight {
  background: #7c3aed;
}

.marker-multi {
  background: var(--night);
}

.map-popup {
  display: grid;
  gap: 10px;
  max-height: 260px;
  max-width: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.map-popup-service {
  border-bottom: 1px solid rgba(217, 224, 232, 0.9);
  display: grid;
  gap: 4px;
  padding-bottom: 9px;
}

.map-popup-service:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.map-popup-service strong,
.map-popup-service span,
.map-popup-service a {
  display: block;
}

.map-popup-service strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.2;
}

.map-popup-service span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.map-popup-service a {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
}

.map-unavailable {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 850;
  inset: 0;
  justify-content: center;
  line-height: 1.5;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.leaflet-control-attribution {
  font-size: 0.68rem;
}

.map-title {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  left: 16px;
  padding: 8px 11px;
  position: absolute;
  top: 16px;
  z-index: 3;
}

.county-map-art {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.map-water {
  fill: #cae7f1;
}

.map-land {
  fill: #f7f7e7;
  filter: drop-shadow(0 10px 12px rgba(17, 24, 39, 0.16));
  stroke: #263648;
  stroke-linejoin: round;
  stroke-width: 0.7;
}

.map-bay,
.map-harbor,
.map-river {
  fill: none;
  stroke: #68aeca;
  stroke-linecap: round;
  stroke-width: 3.2;
}

.map-harbor,
.map-bay {
  fill: #cae7f1;
  stroke: #8ac2d8;
  stroke-width: 0.5;
}

.map-peninsula {
  fill: #f1f0d8;
  stroke: #263648;
  stroke-linejoin: round;
  stroke-width: 0.55;
}

.map-island {
  fill: #f6f3d7;
  stroke: #263648;
  stroke-linejoin: round;
  stroke-width: 0.5;
}

.map-road {
  fill: none;
  stroke: rgba(71, 85, 105, 0.68);
  stroke-linecap: round;
  stroke-width: 0.72;
}

.map-route-one {
  stroke: rgba(216, 35, 42, 0.74);
  stroke-width: 1.05;
}

.map-town,
.map-route-label,
.map-water-label {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-weight: 950;
  letter-spacing: 0;
  paint-order: stroke;
  stroke-linejoin: round;
}

.map-town {
  fill: #1f2937;
  font-size: 2.65px;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 0.72px;
}

.map-route-label {
  fill: #9f171c;
  font-size: 2.45px;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 0.7px;
}

.map-water-label {
  fill: #27677f;
  font-size: 2.65px;
  opacity: 0.85;
  stroke: rgba(202, 231, 241, 0.9);
  stroke-width: 0.72px;
}

.map-shape {
  background:
    radial-gradient(circle at 24% 24%, rgba(216, 35, 42, 0.12), transparent 22%),
    radial-gradient(circle at 72% 70%, rgba(15, 118, 110, 0.14), transparent 24%),
    rgba(255, 255, 255, 0.56);
  border: 2px solid rgba(17, 24, 39, 0.08);
  border-radius: 42% 56% 48% 52% / 48% 36% 64% 52%;
  inset: 32px;
  position: absolute;
}

.map-point {
  align-items: center;
  background: var(--red);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.28);
  color: white;
  display: flex;
  height: 18px;
  justify-content: center;
  left: var(--x);
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 18px;
  z-index: 4;
}

.map-point i {
  display: none;
}

.map-point b {
  background: var(--night);
  border-radius: 10px;
  bottom: calc(100% + 7px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
  display: none;
  font-size: 0.74rem;
  left: 50%;
  max-width: 180px;
  padding: 8px 10px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-point:hover b {
  display: block;
}

.map-point-ems {
  background: var(--teal);
}

.map-point-fire {
  background: var(--red);
}

.map-point-police {
  background: #2563eb;
}

.map-point-dispatch {
  background: var(--gold);
}

.map-point-lifeflight {
  background: #7c3aed;
}

.map-legend {
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 16px;
  position: absolute;
  right: 16px;
  z-index: 3;
}

.map-legend span {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  padding: 7px 9px;
}

.lifeflight-section {
  margin-top: 58px;
}

.lifeflight-overview {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
}

.lifeflight-brand-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 246, 0.96)),
    var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.12);
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  text-decoration: none;
}

.lifeflight-logo {
  height: 58px;
  justify-self: end;
  max-width: 220px;
  object-fit: contain;
  width: 100%;
}

.lifeflight-helicopter {
  aspect-ratio: 16 / 7;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.lifeflight-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.lifeflight-card {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(124, 58, 237, 0.72)),
    var(--night);
  border-radius: 22px;
  color: white;
  padding: 24px;
}

.lifeflight-card span {
  color: #ddd6fe;
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.lifeflight-card h3 {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.lifeflight-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 0;
}

.lifeflight-card a {
  color: white;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 950;
  margin-top: 16px;
}

.lifeflight-map {
  margin-top: 18px;
}

.lf-dot {
  background: #7c3aed;
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.26);
  color: white;
  font-size: 0.74rem;
  font-weight: 950;
  left: var(--x);
  padding: 9px 11px;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 4;
}

.course-detail-hero {
  align-items: end;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  margin: 0 auto;
  padding: 74px 0 96px;
  position: relative;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  z-index: 1;
}

.course-detail-hero h1 {
  margin-top: 18px;
}

.back-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 28px;
  padding: 10px 14px;
}

.detail-facts {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 28px;
}

.detail-facts span,
.detail-facts strong {
  display: block;
}

.detail-facts span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-facts strong {
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
  margin: 12px 0 14px;
}

.detail-facts p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.detail-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(238, 246, 247, 0.34) 52%, rgba(249, 241, 229, 0.36)),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  padding: 72px 0 86px;
}

.detail-overview,
.detail-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.detail-overview {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  margin-bottom: 18px;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.detail-intro-card,
.detail-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.detail-intro-card h2,
.detail-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  margin: 14px 0 20px;
}

.detail-intro-card p:not(.eyebrow),
.detail-card p,
.detail-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.detail-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.accent-card {
  background: #fff8ec;
}

.course-photo-card {
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.course-photo-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.01);
  transition: transform 600ms ease;
  width: 100%;
}

.course-photo-card:hover img {
  transform: scale(1.05);
}

.course-photo-card::after {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04) 0%, rgba(17, 24, 39, 0.22) 42%, rgba(17, 24, 39, 0.9) 100%),
    linear-gradient(90deg, rgba(216, 35, 42, 0.34), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.course-photo-card figcaption {
  align-self: end;
  display: grid;
  gap: 14px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.photo-kicker {
  align-self: start;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  justify-self: start;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.course-photo-card strong {
  font-size: clamp(1.22rem, 2.2vw, 1.7rem);
  line-height: 1.18;
  max-width: 520px;
}

.course-photo-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-photo-steps span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 11px 9px;
  text-align: center;
}

.training-graphic {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(242, 184, 75, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(216, 35, 42, 0.95), rgba(17, 24, 39, 0.96)),
    var(--night);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.training-graphic::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.22;
  position: absolute;
}

.training-graphic > * {
  position: relative;
  z-index: 1;
}

.graphic-screen {
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  color: var(--night);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.graphic-label,
.graphic-button {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.graphic-pulse {
  height: 54px;
  background:
    linear-gradient(135deg, transparent 0 20%, var(--red) 21% 25%, transparent 26% 38%, var(--red) 39% 45%, transparent 46% 58%, var(--red) 59% 64%, transparent 65%),
    linear-gradient(#edf2f7, #edf2f7);
  border-radius: 12px;
}

.graphic-button {
  align-self: start;
  background: var(--red);
  border-radius: 999px;
  color: white;
  justify-self: start;
  padding: 11px 16px;
}

.manikin-graphic {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 104px;
  gap: 18px;
  margin: 0 auto;
  max-width: 390px;
  width: 100%;
}

.manikin-head {
  background: #f7d7c9;
  border-radius: 999px;
  box-shadow: inset -12px -10px 0 rgba(17, 24, 39, 0.08);
  grid-column: 1;
  height: 76px;
  justify-self: center;
  width: 76px;
}

.manikin-torso {
  align-items: center;
  background: #f8fafc;
  border-radius: 34px 34px 24px 24px;
  box-shadow:
    inset 0 0 0 10px rgba(216, 35, 42, 0.08),
    0 24px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  grid-column: 1;
  height: 148px;
  justify-content: center;
  position: relative;
}

.manikin-torso::before {
  background: rgba(216, 35, 42, 0.12);
  border-radius: 999px;
  content: "";
  height: 62px;
  position: absolute;
  width: 62px;
}

.hand {
  background: #f2c7b6;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
  height: 44px;
  position: relative;
  width: 76px;
  z-index: 1;
}

.hand-left {
  transform: rotate(22deg) translateX(18px);
}

.hand-right {
  transform: rotate(-22deg) translateX(-18px);
}

.aed-unit {
  align-self: end;
  background: white;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 8px rgba(15, 118, 110, 0.1),
    0 20px 34px rgba(0, 0, 0, 0.18);
  color: var(--teal);
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 128px;
  place-items: center;
  width: 104px;
}

.aed-unit span {
  font-size: 1.25rem;
  font-weight: 950;
}

.aed-unit i {
  background: var(--red);
  border-radius: 999px;
  display: block;
  height: 16px;
  width: 44px;
}

.graphic-steps {
  align-self: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graphic-steps span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 950;
  padding: 12px 10px;
  text-align: center;
}

.first-aid-kit {
  align-self: center;
  background: white;
  border-radius: 26px;
  box-shadow: inset 0 0 0 10px rgba(216, 35, 42, 0.12);
  display: grid;
  height: 170px;
  justify-self: center;
  place-items: center;
  width: min(260px, 100%);
}

.first-aid-kit span {
  background: var(--red);
  border-radius: 8px;
  height: 34px;
  position: relative;
  width: 106px;
}

.first-aid-kit span::after {
  background: var(--red);
  border-radius: 8px;
  content: "";
  height: 106px;
  left: 36px;
  position: absolute;
  top: -36px;
  width: 34px;
}

.team-grid {
  align-self: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid span {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  color: var(--night);
  display: flex;
  font-weight: 950;
  justify-content: center;
}

.naloxone-device {
  align-self: center;
  background: white;
  border-radius: 38px;
  box-shadow: inset 0 0 0 12px rgba(15, 118, 110, 0.14);
  color: var(--teal);
  display: grid;
  height: 190px;
  justify-self: center;
  place-items: center;
  width: 120px;
}

.naloxone-device span {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.support-circle {
  align-self: center;
  aspect-ratio: 1;
  border: 16px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-self: center;
  max-width: 250px;
  padding: 18px;
  width: 100%;
}

.support-circle span {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: flex;
  font-weight: 950;
  justify-content: center;
}

.support-circle span:first-child {
  grid-column: 1 / -1;
}

.bls-scene {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
}

.patient-board {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  box-shadow:
    inset 0 0 0 10px rgba(216, 35, 42, 0.08),
    0 24px 40px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 10px;
  grid-row: 1 / span 3;
  justify-items: center;
  min-height: 210px;
  padding: 20px;
  position: relative;
}

.patient-head {
  background: #f7d7c9;
  border-radius: 999px;
  box-shadow: inset -10px -8px 0 rgba(17, 24, 39, 0.08);
  display: block;
  height: 54px;
  width: 54px;
}

.patient-chest {
  background: #eef2f7;
  border-radius: 28px 28px 20px 20px;
  display: block;
  height: 96px;
  width: min(190px, 100%);
}

.compression-hands {
  background: #f2c7b6;
  border-radius: 999px;
  box-shadow:
    -24px 0 0 #f2c7b6,
    0 12px 20px rgba(17, 24, 39, 0.14);
  display: block;
  height: 34px;
  position: absolute;
  top: 118px;
  transform: rotate(10deg);
  width: 70px;
}

.role-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  color: var(--night);
  display: flex;
  font-size: 0.86rem;
  font-weight: 950;
  justify-content: center;
  min-height: 58px;
  padding: 12px;
}

.role-lead {
  border-left: 6px solid var(--gold);
}

.role-aed {
  border-left: 6px solid var(--teal);
}

.role-airway {
  border-left: 6px solid var(--red);
}

.aid-graphic,
.senior-graphic {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(17, 24, 39, 0.96)),
    var(--night);
}

.bls-graphic {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(216, 35, 42, 0.88)),
    var(--night);
}

.detail-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  margin: 18px auto 0;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.detail-columns article,
.detail-cta,
.quiz-section {
  background: var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.detail-columns h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1;
  margin-bottom: 18px;
}

.quiz-section {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  margin: 18px auto 0;
  padding: 30px;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.quiz-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  margin: 10px 0 14px;
}

.quiz-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.quiz-card {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(15, 118, 110, 0.86)),
    var(--night);
  border-radius: 22px;
  color: white;
  min-height: 360px;
  padding: 24px;
}

.quiz-progress {
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: space-between;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-meter {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 8px;
  margin: 14px 0 20px;
  overflow: hidden;
}

.quiz-meter span {
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 240ms ease;
}

.quiz-question {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quiz-options button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  line-height: 1.35;
  padding: 14px 16px;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.quiz-options button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.quiz-options button:disabled {
  cursor: default;
}

.quiz-options button:disabled:hover {
  transform: none;
}

.quiz-options button.is-correct {
  background: rgba(15, 118, 110, 0.92);
  border-color: rgba(255, 255, 255, 0.42);
}

.quiz-options button.is-wrong {
  background: rgba(216, 35, 42, 0.88);
}

.quiz-feedback {
  color: #ffd5d6;
  font-weight: 950;
  margin: 16px 0 0;
  min-height: 24px;
}

.quiz-feedback.is-positive {
  color: #b7f7df;
}

.quiz-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.quiz-next {
  background: white;
  border: 0;
  border-radius: 999px;
  color: var(--night);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  padding: 12px 16px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.quiz-next:not(:disabled):hover {
  transform: translateY(-2px);
}

.quiz-next:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.quiz-result {
  display: grid;
  min-height: 312px;
  place-content: center;
  text-align: center;
}

.quiz-result-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-score {
  color: #b7f7df;
  font-size: clamp(4rem, 9vw, 6.4rem);
  line-height: 1;
  margin: 12px 0 6px;
}

.quiz-result h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  margin-bottom: 12px;
}

.quiz-result p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  margin: 0 auto 22px;
  max-width: 520px;
}

.detail-columns ol {
  color: var(--muted);
  display: grid;
  gap: 12px;
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
}

.fact-list {
  display: grid;
  gap: 10px;
}

.fact-list span {
  background: var(--soft);
  border-radius: 14px;
  color: #394454;
  font-weight: 800;
  line-height: 1.45;
  padding: 14px;
}

.detail-cta {
  align-items: center;
  background: var(--night);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 18px auto 0;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.detail-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  margin: 10px 0 0;
}

.pricing-section {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
}

.section-heading.compact {
  max-width: 520px;
}

.pricing-layout {
  display: grid;
  gap: 16px;
}

.pricing-photo {
  background: var(--paper);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.1);
  margin: 30px 0 0;
  overflow: hidden;
}

.pricing-photo img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.pricing-photo figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px 16px;
}

.price-table,
.group-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 16px;
}

.price-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 8px;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row span {
  color: #394454;
  font-weight: 750;
}

.price-row strong {
  color: var(--ink);
  font-size: 1.32rem;
  white-space: nowrap;
}

.group-card {
  background: var(--night);
  color: white;
  padding: 28px;
}

.group-card h3 {
  font-size: 2rem;
  line-height: 1;
  margin: 10px 0 18px;
}

.group-rates {
  display: grid;
  gap: 10px;
}

.group-rates span,
.group-rates strong {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  padding: 13px 14px;
}

.group-rates strong {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
}

.feature-band {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 0 96px;
}

.feature-band article {
  background: var(--paper);
  border-radius: 22px;
  padding: 28px;
}

.feature-band article:nth-child(2) {
  background: var(--teal);
  color: white;
}

.feature-band article:nth-child(3) {
  background: #fff8ec;
}

.feature-icon {
  align-items: center;
  background: var(--red);
  border-radius: 14px;
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  margin-bottom: 24px;
  width: 44px;
}

.feature-band article:nth-child(2) .feature-icon {
  background: white;
  color: var(--teal);
}

.feature-band h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.feature-band p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.feature-band article:nth-child(2) p {
  color: rgba(255, 255, 255, 0.76);
}

.message-section {
  background: var(--night);
  border-radius: 34px;
  color: white;
  display: grid;
  gap: 54px;
  grid-template-columns: 0.78fr 1.22fr;
  margin-bottom: 34px;
  padding: 58px;
}

.message-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-list a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: block;
  font-weight: 900;
  line-height: 1.35;
  padding: 17px 18px;
}

.contact-list .ecard-link,
.ecard-form-button {
  align-items: center;
  background: var(--red);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(216, 35, 42, 0.28);
  color: white;
  display: flex;
  font-weight: 950;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  text-align: center;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.contact-list .ecard-link:hover,
.ecard-form-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.ecard-form-button {
  width: 100%;
}

.request-form {
  background: white;
  border-radius: 26px;
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.form-title {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 2px;
}

.form-title > span {
  align-items: center;
  background: var(--red);
  border-radius: 14px;
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.form-title h3 {
  margin: 0 0 4px;
}

.form-title p,
.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: #394454;
  display: grid;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 8px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  width: 100%;
}

textarea {
  min-height: 128px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(216, 35, 42, 0.1);
}

.request-form button {
  width: 100%;
}

footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 16px 0 34px;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 1250px) {
  .agency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .course-detail-hero,
  .ems-hero-grid,
  .emergency-hero-grid,
  .emergency-guide-layout,
  .emergency-sources,
  .detail-overview,
  .detail-grid,
  .detail-columns,
  .quiz-section,
  .pricing-section,
  .message-section {
    grid-template-columns: 1fr;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-section {
    padding-top: 72px;
  }

  .course-card {
    min-height: 260px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .ems-map-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-grid,
  .emergency-type-list,
  .equipment-grid,
  .county-map-section,
  .lifeflight-overview,
  .lifeflight-grid,
  .response-chain {
    grid-template-columns: 1fr;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency-type-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency-detail-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav,
  .hero-grid,
  .course-detail-hero,
  .ems-hero-grid,
  .emergency-hero-grid,
  .ems-note,
  .emergency-note,
  .emergency-guide-shell,
  .equipment-section,
  .emergency-sources,
  .response-chain,
  .service-explorer,
  .lifeflight-section,
  .county-section,
  .detail-overview,
  .detail-grid,
  .detail-columns,
  .quiz-section,
  .section,
  .feature-band,
  .message-section,
  footer {
    width: min(100% - 24px, var(--page-max));
  }

  .nav {
    align-items: flex-start;
    gap: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    padding: 46px 0 92px;
  }

  .ems-hero-grid {
    padding: 42px 0 72px;
  }

  .emergency-hero-grid {
    padding: 42px 0 72px;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 4.4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .trust-row,
  .cert-list,
  .course-grid,
  .emergency-type-list,
  .equipment-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .comparison-wrap {
    border-radius: 22px;
    margin-top: 24px;
  }

  .comparison-table {
    min-width: 980px;
  }

  .comparison-table th,
  .comparison-table td {
    font-size: 0.84rem;
    padding: 14px;
  }

  .comparison-table tbody th {
    min-width: 180px;
  }

  .hero-card {
    padding: 22px;
  }

  .quick-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section {
    padding: 72px 0;
  }

  .message-section {
    border-radius: 24px;
    padding: 32px 20px;
  }

  .course-detail-hero {
    padding: 42px 0 72px;
  }

  .detail-card {
    padding: 26px;
  }

  .course-photo-card {
    min-height: 340px;
  }

  .course-photo-card figcaption {
    padding: 24px;
  }

  .detail-intro-card,
  .training-graphic,
  .detail-columns article,
  .quiz-section,
  .quiz-card,
  .detail-cta {
    padding: 24px;
  }

  .bls-scene,
  .manikin-graphic {
    grid-template-columns: 1fr;
  }

  .aed-unit,
  .patient-board {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  .detail-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: stretch;
  }

  .cta-actions .button {
    width: 100%;
  }

  .graphic-steps {
    grid-template-columns: 1fr;
  }

  .ems-map-card,
  .agency-card {
    grid-template-columns: 1fr;
  }

  .agency-photo {
    height: 150px;
  }

  .category-toolbar {
    position: static;
  }

  .emergency-type-list {
    position: static;
  }

  .emergency-type-button {
    min-height: auto;
  }

  .emergency-card-photo {
    height: 170px;
  }

  .category-button {
    flex: 1 1 130px;
  }

  .source-row {
    grid-template-columns: 1fr;
  }

  .source-row-links {
    justify-content: start;
  }

  .category-action {
    flex: 1 1 110px;
  }

  .county-mini-map,
  .lifeflight-map {
    min-height: 300px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    filter: none;
    opacity: 1;
    transform: none;
  }
}
