.stirling-coverage {
  width: 100%;
  background: transparent;
  color: var(--sfs-ink);
  font-family: var(--sfs-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  /* ----- Stirling brand tokens ----- */
  --sfs-paper:#FBF8F2;
  --sfs-ink:#1C1B1A;
  --sfs-navy:#06274E;         /* primary (navy, sampled from hero) */
  --sfs-navy-deep:#04182F;
  --sfs-no:#B0403A;           /* not-served icon only */
  --sfs-gold:#eac748;         /* accent (confirmed exact) */
  --sfs-gold-2:#f3d670;
  --sfs-locate:#3FBF87;       /* user-location pin only */
  --sfs-mute:rgba(28,27,26,.62);
  --sfs-rule-2:rgba(28,27,26,.06);
  --sfs-serif: Georgia, 'Times New Roman', serif;  /* fallback; JS matches the site's H1 font at runtime */
  --sfs-sans:'Source Sans 3', system-ui, sans-serif;
  --sfs-mono:'IBM Plex Mono', ui-monospace, monospace;
}
.stirling-coverage *, .stirling-coverage *::before, .stirling-coverage *::after { box-sizing: border-box; }
.stirling-coverage a { color: inherit; text-decoration: none; }
.stirling-coverage ::selection { background: var(--sfs-gold); color: var(--sfs-ink); }

/* Address checker (sits above the map) */
.stirling-coverage .sfs-checker {
  display: flex; gap: 10px; align-items: stretch;
  background: rgba(28,27,26,.32);
  border: 1px solid rgba(251,248,242,.20);
  border-radius: 14px; padding: 10px; margin: 0 0 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.stirling-coverage .sfs-input-wrap { position: relative; flex: 1; min-width: 0; }
.stirling-coverage .sfs-input {
  width: 100%; height: 100%; padding: 13px 14px;
  background: rgba(251,248,242,.10);
  border: 1px solid transparent; border-radius: 10px;
  color: #fff; font-family: inherit; font-size: 14.5px;
  transition: background .2s, border-color .2s;
}
.stirling-coverage .sfs-input:focus { outline: none; background: rgba(251,248,242,.16); border-color: var(--sfs-gold); }
.stirling-coverage .sfs-input::placeholder { color: rgba(255,255,255,.6); }
.stirling-coverage .sfs-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; color: var(--sfs-ink);
  border-radius: 10px; max-height: 280px; overflow-y: auto;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); display: none; z-index: 100;
}
.stirling-coverage .sfs-suggest.active { display: block; }
.stirling-coverage .sfs-suggest-item { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--sfs-rule-2); transition: background .15s; }
.stirling-coverage .sfs-suggest-item:hover { background: var(--sfs-paper); }
.stirling-coverage .sfs-suggest-item:last-child { border-bottom: none; }
.stirling-coverage .sfs-suggest-item .sfs-sn { font-weight: 600; font-size: 14px; }
.stirling-coverage .sfs-suggest-item .sfs-sa { font-size: 12.5px; color: var(--sfs-mute); margin-top: 2px; }
.stirling-coverage .sfs-check-btn {
  padding: 13px 22px; border: none; cursor: pointer;
  background: var(--sfs-gold); color: var(--sfs-ink);
  border-radius: 10px; font-family: inherit; font-weight: 700; font-size: 14px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.stirling-coverage .sfs-check-btn:hover { background: var(--sfs-gold-2); transform: translateY(-1px); }

/* Map card */
.stirling-coverage .sfs-map-wrap {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(251,248,242,.15);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
  aspect-ratio: 16/12; background: var(--sfs-navy-deep);
}
.stirling-coverage .sfs-map-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, transparent 50%, rgba(3,14,28,.55) 100%); z-index: 3;
}
@keyframes sfs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,191,135,.6), 0 0 0 4px rgba(63,191,135,.3), 0 4px 12px rgba(0,0,0,.4); }
  70%  { box-shadow: 0 0 0 18px rgba(63,191,135,0), 0 0 0 4px rgba(63,191,135,.3), 0 4px 12px rgba(0,0,0,.4); }
  100% { box-shadow: 0 0 0 0 rgba(63,191,135,0), 0 0 0 4px rgba(63,191,135,.3), 0 4px 12px rgba(0,0,0,.4); }
}
.stirling-coverage .sfs-map-toggle {
  position: absolute; top: 16px; left: 16px; z-index: 12; display: inline-flex;
  background: rgba(28,27,26,.85); color: var(--sfs-paper);
  border: 1px solid rgba(251,248,242,.15); border-radius: 999px; padding: 4px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stirling-coverage .sfs-map-toggle button {
  background: none; border: none; cursor: pointer; color: rgba(251,248,242,.7);
  font-family: var(--sfs-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.stirling-coverage .sfs-map-toggle button:hover { color: var(--sfs-paper); }
.stirling-coverage .sfs-map-toggle button.is-active { background: var(--sfs-gold); color: var(--sfs-ink); }
.stirling-coverage .mapboxgl-ctrl-bottom-right { z-index: 4; }
.stirling-coverage .mapboxgl-ctrl-attrib { background: rgba(28,27,26,.6) !important; color: rgba(251,248,242,.6) !important; font-size: 9px; }
.stirling-coverage .mapboxgl-ctrl-attrib a { color: rgba(251,248,242,.75) !important; }
.stirling-coverage .mapboxgl-ctrl-logo { opacity: .55; filter: brightness(2); }
.stirling-coverage .sfs-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.stirling-coverage .sfs-map-legend {
  position: absolute; bottom: 16px; left: 16px; z-index: 10;
  background: rgba(28,27,26,.85); color: var(--sfs-paper);
  border: 1px solid rgba(251,248,242,.15); border-radius: 12px; padding: 12px 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--sfs-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6;
}
.stirling-coverage .sfs-map-legend .ll { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.stirling-coverage .sfs-map-legend .ll:last-child { margin-bottom: 0; }
.stirling-coverage .sfs-map-legend .lc { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.stirling-coverage .sfs-map-legend .lc.plant { background: var(--sfs-gold); box-shadow: 0 0 0 3px rgba(234,199,72,.25); }
.stirling-coverage .sfs-map-legend .lc.county { background: var(--sfs-paper); opacity: .85; }
.stirling-coverage .sfs-map-legend .lc.user { background: var(--sfs-locate); }
.stirling-coverage .sfs-map-legend b { color: var(--sfs-gold); font-weight: 700; }
.stirling-coverage .sfs-map-badge {
  position: absolute; top: 16px; right: 16px; z-index: 10; display: inline-flex; gap: 6px;
  font-family: var(--sfs-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.stirling-coverage .sfs-map-badge span {
  padding: 6px 12px; border-radius: 999px; background: rgba(28,27,26,.85); color: var(--sfs-gold);
  border: 1px solid rgba(234,199,72,.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stirling-coverage .sfs-result {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 20;
  background: #fff; color: var(--sfs-ink); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); display: none; flex-direction: column; gap: 12px; animation: sfs-slide .35s ease;
}
.stirling-coverage .sfs-result.is-shown { display: flex; }
.stirling-coverage .sfs-result.sfs-no .sfs-r-icon { background: var(--sfs-no); }
@keyframes sfs-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.stirling-coverage .sfs-result .sfs-r-head { display: flex; align-items: center; gap: 12px; }
.stirling-coverage .sfs-r-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sfs-locate); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.stirling-coverage .sfs-r-title { font-family: var(--sfs-serif); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
.stirling-coverage .sfs-r-msg { font-size: 13.5px; line-height: 1.5; color: var(--sfs-mute); }
.stirling-coverage .sfs-r-msg b { color: var(--sfs-ink); font-weight: 600; }
.stirling-coverage .sfs-r-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  background: var(--sfs-gold); color: var(--sfs-ink); border-radius: 999px; font-weight: 700; font-size: 14px;
  align-self: flex-start; transition: background .2s;
}
.stirling-coverage .sfs-r-cta:hover { background: var(--sfs-gold-2); }
.stirling-coverage .sfs-result .sfs-r-close {
  position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: none; border: 1px solid rgba(28,27,26,.12); cursor: pointer; color: var(--sfs-mute);
  display: inline-flex; align-items: center; justify-content: center;
}
.stirling-coverage .sfs-result .sfs-r-close:hover { background: var(--sfs-paper); color: var(--sfs-ink); }
.stirling-coverage .mapboxgl-popup-content { padding: 14px 16px; border-radius: 12px; font-family: var(--sfs-sans); box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); }
.stirling-coverage .sfs-pop-title { font-family: var(--sfs-serif); font-size: 17px; font-weight: 700; color: var(--sfs-navy); margin-bottom: 4px; letter-spacing: -.3px; }
.stirling-coverage .sfs-pop-meta { font-family: var(--sfs-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sfs-mute); font-weight: 600; }
.stirling-coverage .sfs-pop-addr { font-size: 13px; line-height: 1.5; color: var(--sfs-mute); margin-top: 6px; }
@media (max-width: 782px) {
  .stirling-coverage .sfs-checker { flex-direction: column; padding: 8px; }
  .stirling-coverage .sfs-check-btn { justify-content: center; padding: 14px; }
  .stirling-coverage .sfs-map-wrap { aspect-ratio: 4/3.6; }
}