/* Emergency Preparedness: a layout used on no other page. After the shared
   hero: a full-bleed photo with a minute-by-minute response track, a tabbed
   scenario explorer, an emergency contact card, a before / during / after
   board, and a red split closing call to action. */

/* The first five minutes: dark photo, white type, a five-stop track. */
.ep-minutes { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem); background: #12142a; color: #fff; }
.ep-minutes-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.ep-minutes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 16 34 / .94) 0%, rgb(14 16 34 / .82) 45%, rgb(14 16 34 / .55) 100%); }
.ep-minutes-head { max-width: 40rem; }
.sv-page .ep-eyebrow { margin: 0 0 .875rem; color: #ff8da1; font-size: clamp(.9375rem, 1vw, 1.0625rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sv-page .ep-minutes h2 { color: #fff; }
.ep-minutes-head > p:last-child { margin: 0; color: rgb(255 255 255 / .86); font-size: clamp(1.125rem, 1.45vw, 1.3125rem); }
.ep-track { display: grid; gap: 1.5rem; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0 0 0 1.75rem; border-left: 2px solid rgb(255 255 255 / .3); list-style: none; }
.ep-track li { position: relative; min-width: 0; }
.ep-track li::before { content: ""; position: absolute; top: .35rem; left: calc(-1.75rem - 7px); width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(203 25 57 / .3); }
.ep-time { display: block; margin-bottom: .25rem; color: #ff8da1; font-family: var(--font-accent); font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sv-page .ep-track h3 { margin: 0 0 .25rem; color: #fff; font-size: 1.125rem; letter-spacing: 0; }
.ep-track p { margin: 0; color: rgb(255 255 255 / .78); font-size: 1rem; line-height: 1.5; }
.sv-page .ep-minutes-note { margin: 2rem 0 0; color: rgb(255 255 255 / .65); font-size: .9375rem; }

/* Scenario explorer: wide tabs over a photo-and-checklist panel. */
.ep-scenarios-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ep-tabs { display: flex; gap: .5rem; overflow-x: auto; margin-bottom: 1.5rem; padding-bottom: .25rem; scrollbar-width: none; }
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tab { flex: 0 0 auto; min-height: 48px; padding: .75rem 1.25rem; border: 2px solid var(--sv-line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 1rem var(--font-accent); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ep-tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.ep-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ep-panels { display: grid; gap: 2rem; }
.ep-panel { display: grid; min-width: 0; border: 1px solid var(--sv-line); background: #fff; }
.ep-panel[hidden] { display: none; }
.ep-panel-photo { position: relative; min-height: 15rem; overflow: hidden; background: var(--sv-ph); }
.ep-panel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-panel-text { padding: clamp(1.5rem, 3.5vw, 3rem); }
.sv-page .ep-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sv-page .ep-panel-lead { margin: 0; color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.sv-page .ep-panel-label { margin: 1.75rem 0 .875rem; padding-top: 1.25rem; border-top: 1px solid var(--sv-line); color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-panel ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ep-panel li { position: relative; padding-left: 1.5rem; line-height: 1.5; }
.ep-panel li::before { content: ""; position: absolute; top: .55em; left: 0; width: .55rem; height: .55rem; background: var(--accent); }

/* Emergency contact card. */
.ep-call { background: var(--sv-panel); }
.ep-call-inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ep-call-inner h2 { max-width: 18ch; }
.ep-card { max-width: 28rem; width: 100%; justify-self: center; overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 24px 50px rgb(18 22 42 / .14); }
.sv-page .ep-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin: 0; padding: 1rem 1.5rem; background: var(--accent); color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-card-top span { opacity: .85; }
.ep-card-body { display: grid; justify-items: center; gap: .25rem; padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem; border: 2px dashed var(--sv-line); border-top: 0; border-radius: 0 0 1rem 1rem; text-align: center; }
.sv-page .ep-card-label { margin: 0; color: var(--muted); font-size: .9375rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-card-phone { color: var(--ink); font-family: var(--font-accent); font-size: clamp(2rem, 4vw, 2.625rem); font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.ep-card-phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sv-page .ep-card-or { margin: .5rem 0; color: var(--muted); font-size: .9375rem; }

/* Before / during / after board with oversized outlined phase words. */
.ep-phases h2 { max-width: 20ch; }
.ep-phase-list { display: grid; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.ep-phase-list > li { min-width: 0; padding-block: 1.75rem; border-top: 1px solid var(--sv-line); }
.sv-page .ep-phase-word { margin: 0 0 .75rem; color: transparent; font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.04em; -webkit-text-stroke: 2px var(--accent); }
.sv-page .ep-phase-list h3 { margin-bottom: 1rem; }
.ep-phase-list ul { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.ep-phase-list ul li { padding-left: 1.25rem; border-left: 2px solid var(--sv-line); color: var(--muted); line-height: 1.5; }

/* Closing call to action: red panel beside the dispatcher photo. */
.ep-final { display: grid; background: var(--accent); color: #fff; }
.ep-final-photo { position: relative; min-height: 16rem; overflow: hidden; background: var(--sv-ph); }
.ep-final-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.ep-final-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem) max(var(--sv-gutter), env(safe-area-inset-right, 0px)) clamp(2.5rem, 6vw, 5rem) max(var(--sv-gutter), env(safe-area-inset-left, 0px)); }
.sv-page .ep-final h2 { max-width: 16ch; color: #fff; }
.ep-final-text > p { max-width: 38rem; margin: 0; color: rgb(255 255 255 / .9); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.ep-final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.ep-final-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .85rem 2.1rem; border: 2px solid #fff; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.ep-final-call { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.ep-final-btn:focus-visible, .ep-final-call:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .ep-tab:not([aria-selected="true"]):hover { border-color: var(--ink); }
  .ep-card-phone:hover { color: var(--accent); }
  .ep-final-btn:hover { background: transparent; color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-tab, .ep-final-btn { transition: none; }
}
@media (min-width: 48rem) {
  .ep-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .ep-panel-photo { min-height: 100%; }
  .ep-phase-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
}
@media (min-width: 64rem) {
  /* The track runs across the photo instead of down the page. */
  .ep-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; padding: 2rem 0 0; border-left: 0; border-top: 2px solid rgb(255 255 255 / .3); }
  .ep-track li::before { top: calc(-2rem - 7px); left: 0; }
  .ep-call-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .ep-final { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(26rem, 36vw, 34rem); }
  .ep-final-photo { min-height: 100%; }
  .ep-final-text { padding-left: clamp(3rem, 6vw, 6rem); padding-right: max(var(--sv-gutter), env(safe-area-inset-right, 0px), calc((100vw - 92rem) / 2 + var(--sv-gutter))); }
}
