:root{
  --forest-900:#1e3328;
  --forest-700:#2f5543;
  --forest-500:#4d7a64;
  --sage-200:#d9e7de;
  --sage-100:#edf5f0;
  --sand-100:#fbf7ea;
  --paper:#fffdf8;
  --ink-900:#203028;
  --ink-700:#43574b;
  --ink-500:#65796f;
  --gold-500:#c69225;
  --danger-600:#b84531;
  --line:rgba(32,48,40,.12);
  --shadow:0 18px 38px rgba(26,36,31,.12);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --max-width:1160px;
  --ss-widget-min-height:3.25rem;
  --ss-widget-aspect-ratio:auto;
  --ss-fixed-header-offset:78px;
}

.widget-container{
  position:relative;
  display:block;
  min-height:var(--ss-widget-min-height);
  aspect-ratio:var(--ss-widget-aspect-ratio);
  overflow:hidden;
}

.widget-container > *{
  min-width:0;
}

.widget-container--wide{
  --ss-widget-min-height:4.25rem;
  --ss-widget-aspect-ratio:17 / 1;
}

.widget-container--weather{
  --ss-widget-min-height:1.875rem;
  --ss-widget-aspect-ratio:12 / 1;
}

.widget-container.is-loading,
.widget-container[data-loading="true"],
[data-loading-shell][data-loading="true"]{
  background:
    linear-gradient(110deg,rgba(255,255,255,.76) 8%,rgba(237,245,240,.96) 18%,rgba(255,255,255,.76) 33%),
    #fffdf7;
  background-size:200% 100%;
  animation:ss-widget-skeleton 1.3s linear infinite;
}

body.has-fixed-header{
  padding-top:var(--ss-fixed-header-offset);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:"Noto Sans","Segoe UI",sans-serif;
  color:var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(198,146,37,.16), transparent 28rem),
    linear-gradient(180deg,#f8f4e8 0%,#eef4ef 52%,#f8fbf8 100%);
  line-height:1.65;
  padding-bottom:6.75rem;
}

a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{max-width:100%;display:block}

.container{
  width:min(var(--max-width),calc(100% - 1.5rem));
  margin:0 auto;
}

.page-shell{padding:1.25rem 0 3rem}

main section[id]{
  scroll-margin-top:7.5rem;
}

main :where(article, div)[id]{
  scroll-margin-top:7.5rem;
}

.safety-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,250,240,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(32,48,40,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:78px;
  padding:.85rem 0;
}

.brand{display:grid;gap:.2rem}
.brand strong{
  font-family:var(--font-body,"Cormorant Garamond",Georgia,serif);
  font-size:1.4rem;
  letter-spacing:.02em;
}
.brand span{
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#7a6331;
  font-weight:700;
}

.safety-nav{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  align-items:center;
}

.safety-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:2.8rem;
  padding:.7rem 1rem;
  border-radius:999px;
  border:1px solid rgba(32,48,40,.1);
  background:rgba(255,255,255,.82);
  color:var(--forest-900);
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.safety-nav a:hover,
.safety-nav a:focus-visible,
.button:hover,
.button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible{
  transform:translateY(-1px);
}

.safety-nav a.is-current{
  background:linear-gradient(135deg,var(--forest-900),var(--forest-700));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 28px rgba(30,51,40,.18);
}

.hero{display:grid;gap:1.3rem}

.hero-card,
.content-panel,
.module-card,
.callout-card,
.directory-table tr{
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.hero-card{
  border-radius:var(--radius-xl);
  padding:1.4rem;
  background:linear-gradient(140deg,rgba(255,248,219,.96),rgba(255,255,255,.94) 48%,rgba(232,244,236,.96));
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.95fr);
  gap:1.2rem;
  align-items:start;
}

.eyebrow,
.section-kicker,
.micro-label{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-size:.8rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:800;
  color:#765d1d;
}

.eyebrow::before,
.section-kicker::before,
.micro-label::before{
  content:"";
  width:.55rem;
  height:.55rem;
  border-radius:999px;
  background:var(--gold-500);
  box-shadow:0 0 0 4px rgba(198,146,37,.14);
}

h1,h2,h3{
  font-family:var(--font-body,"Cormorant Garamond",Georgia,serif);
  line-height:1.1;
  margin:0;
  color:var(--forest-900);
}

h1{
  font-size:clamp(2.1rem,4.8vw,3.5rem);
  margin-top:.45rem;
}

h2{
  font-size:clamp(1.75rem,3.2vw,2.45rem);
  margin-top:.35rem;
}

h3{font-size:1.35rem}

p{
  margin:.55rem 0 0;
  color:var(--ink-700);
}

.hero-copy p{max-width:62ch}

.action-row,
.button-row,
.filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  align-items:center;
}

.action-row{margin-top:1.15rem}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:3.2rem;
  padding:.9rem 1.2rem;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button-primary{
  background:linear-gradient(135deg,var(--forest-900),var(--forest-700));
  color:#fff;
  box-shadow:0 14px 28px rgba(30,51,40,.2);
}

.button-urgent{
  background:linear-gradient(135deg,var(--danger-600),#d15b46);
  color:#fff;
  box-shadow:0 14px 28px rgba(184,69,49,.2);
}

.button-soft{
  background:rgba(255,255,255,.78);
  color:var(--forest-900);
  border-color:rgba(32,48,40,.1);
}

.hero-side{display:grid;gap:1rem}

.summary-card,
.module-card,
.content-panel,
.callout-card{
  border-radius:var(--radius-xl);
  padding:1.25rem;
}

.summary-card{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(32,48,40,.08);
}

.stats-grid,
.contact-grid,
.route-grid,
.emc-grid,
.faq-grid,
.hub-grid,
.quick-call-grid,
.ambulance-grid{
  display:grid;
  gap:1rem;
}

.stats-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:1rem;
}

.stat-card{
  border-radius:var(--radius-lg);
  padding:1rem;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(32,48,40,.08);
}

.stat-card strong{
  display:block;
  font-size:1.05rem;
  margin-top:.35rem;
}

.hub-grid,
.route-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.contact-grid,
.emc-grid,
.faq-grid,
.ambulance-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.content-panel{display:grid;gap:1.15rem}
.panel-head{display:grid;gap:.35rem}

.module-card{
  display:grid;
  gap:.9rem;
}

.module-card p{margin:0}
.module-card ul,
.route-points,
.note-list{
  margin:0;
  padding-left:1.1rem;
  color:var(--ink-700);
}

.module-card li,
.route-points li,
.note-list li{
  margin:.38rem 0 0;
}

.quick-call-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

.quick-call-card{
  border-radius:var(--radius-lg);
  padding:1rem;
  background:linear-gradient(180deg,rgba(237,245,240,.95),rgba(255,255,255,.94));
  border:1px solid rgba(32,48,40,.08);
}

.quick-call-card strong{
  display:block;
  font-size:1.15rem;
  margin-top:.45rem;
  color:var(--forest-900);
}

.tag{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:.45rem .75rem;
  border-radius:999px;
  background:var(--sand-100);
  border:1px solid rgba(198,146,37,.18);
  color:#72591d;
  font-size:.8rem;
  font-weight:700;
}

.emc-card,
.road-card,
.faq-card,
.contact-card,
.route-card{
  border-radius:var(--radius-lg);
  padding:1.15rem;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,249,.96));
  border:1px solid rgba(32,48,40,.08);
  min-height:100%;
}

.emc-badge,
.route-badge,
.category-pill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:.42rem .72rem;
  border-radius:999px;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.emc-badge{
  color:#7a5b18;
  background:rgba(198,146,37,.18);
}

.route-badge,
.category-pill{
  background:rgba(77,122,100,.12);
  color:var(--forest-700);
}

.support-note{
  margin-top:.85rem;
  padding:.8rem .95rem;
  border-radius:var(--radius-md);
  background:rgba(237,245,240,.78);
  color:var(--forest-700);
  font-weight:700;
}

.ambulance-card{
  position:relative;
  border-radius:var(--radius-lg);
  padding:1.15rem;
  background:linear-gradient(180deg,#ffffff,#f7fbf8);
  border:1px solid rgba(32,48,40,.08);
  min-height:15.25rem;
  overflow:hidden;
}

.loading-shell{
  position:relative;
}

.loading-shell[data-loading="true"] .ambulance-card{
  pointer-events:none;
}

.loading-shell[data-loading="true"] .ambulance-card > *{
  opacity:0;
}

.loading-shell[data-loading="true"] .ambulance-card::before{
  content:"";
  position:absolute;
  inset:1rem;
  border-radius:1rem;
  background:
    linear-gradient(180deg, rgba(32,48,40,.08) 0 16%, transparent 16% 26%, rgba(32,48,40,.08) 26% 38%, transparent 38% 54%, rgba(32,48,40,.08) 54% 66%, transparent 66% 78%, rgba(32,48,40,.08) 78% 92%, transparent 92% 100%);
}

.loading-shell[data-loading="true"] .ambulance-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.72) 45%, transparent 100%);
  transform:translateX(-100%);
  animation:skeleton-sweep 1.25s linear infinite;
}

@keyframes skeleton-sweep{
  to{transform:translateX(100%)}
}

.info-strip,
.quiet-note{
  padding:1rem 1.1rem;
  border-radius:var(--radius-lg);
}

.info-strip{
  background:linear-gradient(180deg,rgba(255,241,235,.94),rgba(255,252,248,.96));
  border:1px solid rgba(184,69,49,.14);
}

.info-strip strong{color:var(--danger-600)}

.quiet-note{
  background:rgba(237,245,240,.8);
  border:1px solid rgba(32,48,40,.08);
  color:var(--forest-700);
}

.callout-card{
  background:linear-gradient(180deg,rgba(255,248,219,.96),rgba(255,255,255,.98));
}

.phone-link-shell{
  display:flex;
  align-items:center;
  min-height:3rem;
}

.phone-link-shell.action-shell{min-height:3.3rem}

.call-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  min-height:2.6rem;
  padding:.7rem 1rem;
  border-radius:999px;
  background:rgba(32,48,40,.06);
  color:var(--forest-900);
  font-weight:800;
  white-space:nowrap;
}

.call-link.is-emergency{
  background:rgba(184,69,49,.08);
  color:var(--danger-600);
}

.call-link::before{
  content:"Call";
  font-size:.73rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-500);
}

.call-link.is-emergency::before{color:rgba(184,69,49,.85)}

.deferred-section{
  content-visibility:auto;
  contain-intrinsic-size:840px;
}

.directory-toolbar{
  display:grid;
  gap:1rem;
}

.search-field{
  display:grid;
  gap:.4rem;
}

.search-field label{
  font-size:.86rem;
  font-weight:700;
  color:var(--forest-700);
}

.search-field input{
  width:100%;
  min-height:3.25rem;
  padding:.8rem 1rem;
  border-radius:18px;
  border:1px solid rgba(32,48,40,.14);
  background:rgba(255,255,255,.92);
  color:var(--ink-900);
}

.search-field input:focus-visible{
  outline:2px solid rgba(77,122,100,.22);
  outline-offset:2px;
}

.filter-chip{
  min-height:2.7rem;
  padding:.68rem .95rem;
  border-radius:999px;
  border:1px solid rgba(32,48,40,.12);
  background:#fff;
  color:var(--forest-900);
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.filter-chip.is-active{
  background:linear-gradient(135deg,var(--forest-900),var(--forest-700));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 24px rgba(30,51,40,.14);
}

.directory-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  align-items:center;
  justify-content:space-between;
}

.directory-status{
  color:var(--ink-500);
  font-weight:700;
}

.subcopy{color:var(--ink-500)}

.table-shell{
  overflow:auto;
  border-radius:var(--radius-lg);
  border:1px solid rgba(32,48,40,.08);
  background:rgba(255,255,255,.78);
}

.directory-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
  table-layout:fixed;
}

.directory-table th,
.directory-table td{
  padding:1rem;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid rgba(32,48,40,.08);
}

.directory-table thead th{
  position:sticky;
  top:0;
  background:rgba(249,246,236,.98);
  z-index:1;
  font-size:.82rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#755d24;
}

.directory-table tbody tr:last-child td{border-bottom:none}
.directory-table tbody tr[hidden]{display:none}

@media (min-width:761px){
  .directory-table th:nth-child(1),
  .directory-table td:nth-child(1){width:16%}

  .directory-table th:nth-child(2),
  .directory-table td:nth-child(2){width:32%}

  .directory-table th:nth-child(3),
  .directory-table td:nth-child(3){width:18%}

  .directory-table th:nth-child(4),
  .directory-table td:nth-child(4){width:34%}
}

.cell-label{
  display:none;
  margin-bottom:.3rem;
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7d6326;
}

.sticky-call-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:45;
  padding:.7rem .75rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background:rgba(22,31,26,.94);
  backdrop-filter:blur(16px);
  border-top:1px solid rgba(255,255,255,.08);
}

.sticky-call-inner{
  width:min(560px,calc(100% - .5rem));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
}

.sticky-call-bar .phone-link-shell{min-height:3.2rem}

.sticky-call-bar .call-link{
  width:100%;
  min-height:3.2rem;
  background:rgba(255,255,255,.08);
  color:#fff;
}

.sticky-call-bar .call-link::before{color:rgba(255,255,255,.7)}
.sticky-call-bar .call-link.is-emergency{background:rgba(184,69,49,.24)}

@keyframes ss-widget-skeleton{
  from{background-position:200% 0}
  to{background-position:-200% 0}
}

.section-stack{
  display:grid;
  gap:1.2rem;
}

.split-grid{
  display:grid;
  gap:1.2rem;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
}

@media (max-width:980px){
  .hero-grid,
  .split-grid,
  .hub-grid,
  .route-grid,
  .contact-grid,
  .emc-grid,
  .faq-grid,
  .ambulance-grid{
    grid-template-columns:1fr;
  }

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

@media (max-width:760px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .safety-nav{width:100%}
  .safety-nav a{flex:1 1 12rem}
  .stats-grid{grid-template-columns:1fr}
  .quick-call-grid{grid-template-columns:1fr}
}

@media (max-width:599px){
  body{padding-bottom:7.2rem}
  .page-shell{padding-top:1rem}
  .hero-card,
  .summary-card,
  .module-card,
  .content-panel,
  .callout-card{
    padding:1.1rem;
    border-radius:22px;
  }

  .table-shell{
    overflow:visible;
    border:none;
    background:transparent;
  }

  .directory-table,
  .directory-table tbody,
  .directory-table tr,
  .directory-table td{
    display:block;
    width:100%;
  }

  .directory-table{min-width:0}
  .directory-table thead{display:none}

  .directory-table tr{
    margin-bottom:.9rem;
    border-radius:20px;
    overflow:hidden;
    background:var(--paper);
  }

  .directory-table td{
    border-bottom:1px solid rgba(32,48,40,.08);
    padding:.9rem 1rem;
  }

  .directory-table td:last-child{border-bottom:none}
  .cell-label{display:block}

  .call-link{
    width:100%;
    justify-content:center;
    white-space:normal;
    text-align:center;
  }
}

@media print{
  body{
    background:#fff;
    padding-bottom:0;
  }

  .safety-header,
  .sticky-call-bar{
    position:static;
    display:none;
  }

  .page-shell{padding:0}

  .hero-card,
  .module-card,
  .content-panel,
  .callout-card,
  .directory-table tr{
    box-shadow:none;
    border:1px solid #d6d6d6;
  }
}

:where(.info-card-grid,.route-grid,.hub-grid){
  grid-template-columns:repeat(auto-fit,minmax(min(100%,18.75rem),1fr));
  align-items:stretch;
}

:where(.info-card,.route-card,.road-card){
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  height:100%;
  min-height:0;
}

:where(.info-card,.route-card,.road-card) > p{
  flex:1 1 auto;
}

:where(.info-card,.route-card,.road-card) :where(.route-points,.note-list){
  margin-top:auto;
}
