/* Final safety net against horizontal bleed on mobile: clip any stray
   horizontal overflow at the page root. `clip` (not `hidden`) is used so
   no scroll container is created and the sticky header keeps sticking.
   The root-cause fix for the bleed this guards against lives in
   Header.astro: the mobile menu nav is display:none until its <details>
   opens (hidden + group-open/menu:block), because the absolutely
   positioned nav inside a closed <details> otherwise lays out at the
   48px hamburger width and its Services grid items spill ~60px past the
   right edge of a phone viewport, unclipped (the header sits outside
   <main class="overflow-x-clip">). */
html,
body {
  overflow-x: clip;
}

/* Supplement to bluecoast.css (the Blue Coast original's compiled
   stylesheet). Loaded after it. Holds only what the original's stylesheet
   cannot cover for this build:
   1. Reveal neutralization. The original hides [data-reveal] content until
      a script adds .is-visible. This build ships zero JavaScript, so any
      reveal state is forced visible here (the markup also omits the
      attribute; this is belt and braces).
   2. .bc-prose typography for markdown-rendered copy (hub intros, city
      pages, legal pages), styled to the original's type scale and colors.
   3. Keyboard support for the header Services dropdown (.dd-panel), which
      the original opens on hover or via its script. */

[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.group\/dd:focus-within .dd-panel {
  visibility: visible;
  opacity: 1;
  --tw-translate-y: 0px;
}

/* Utilities this build uses that the original's pages never used, so its
   compiled stylesheet does not contain them. Defined with the same
   Tailwind v4 spacing scale so they blend in invisibly. */
.border-0 { border-width: 0px; }
.h-16 { height: calc(var(--spacing) * 16); }
.items-start { align-items: flex-start; }
.pb-20 { padding-bottom: calc(var(--spacing) * 20); }
.pr-4 { padding-right: calc(var(--spacing) * 4); }
.pt-4 { padding-top: calc(var(--spacing) * 4); }
.scroll-mt-28 { scroll-margin-top: calc(var(--spacing) * 28); }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-40 { width: calc(var(--spacing) * 40); }
@media (min-width: 40rem) {
  .sm\:p-6 { padding: calc(var(--spacing) * 6); }
  .sm\:text-left { text-align: left; }
}
@media (min-width: 64rem) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:shrink-0 { flex-shrink: 0; }
  .lg\:w-48 { width: calc(var(--spacing) * 48); }
}

.bc-prose {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
}
.bc-prose p {
  margin-top: 1.25rem;
}
.bc-prose p:first-child {
  margin-top: 0;
}
.bc-prose h2 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.875rem;
  line-height: 1.1;
  margin-top: 2.75rem;
}
.bc-prose h2:first-child {
  margin-top: 0;
}
.bc-prose h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 2rem;
}
.bc-prose a {
  color: var(--color-ocean);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bc-prose a:hover {
  color: var(--color-ink);
}
.bc-prose ul {
  margin-top: 1.25rem;
  list-style: disc;
  padding-left: 1.5rem;
}
.bc-prose li {
  margin-top: 0.5rem;
}
.bc-prose strong {
  color: var(--color-ink);
}

/* Local Biz Engine additions: the Our Work marquee (CSS only, matching
   the live site's continuous carousel; pauses on hover, and honors
   reduced-motion by wrapping instead of scrolling) and prose rules for
   ordered lists and section rules in the carried-over long-form copy. */
.bc-marquee {
  overflow: hidden;
  padding-left: max(1rem, calc((100vw - 80rem) / 2 + 2rem));
}
.bc-marquee-track {
  display: flex;
  width: max-content;
  animation: bc-marquee-scroll 55s linear infinite;
}
.bc-marquee:hover .bc-marquee-track {
  animation-play-state: paused;
}
.bc-marquee-item {
  width: 320px;
  max-width: 82vw;
  margin-right: 1.5rem;
  flex-shrink: 0;
}
@keyframes bc-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bc-marquee { padding-left: 1rem; padding-right: 1rem; }
  .bc-marquee-track { animation: none; flex-wrap: wrap; row-gap: 1.5rem; }
}

/* Facts band repair (homepage "by the numbers" band). The old markup set
   the values at text-6xl with font-stretch-expanded inside a plain
   3-column grid: measured at a 1265px viewport, "Nationwide" rendered
   424px wide in a 352px column content box, so its glyphs ran 11px past
   the start of the "Direct" column and the two words ran together. Here
   the values use Archivo at natural stretch, sized to fit their columns,
   and at lg the second and third columns carry a visible cyan divider
   line with padding on both sides of it. Below lg the stats stack,
   keeping the original left accent border on each stat. */
.bc-facts {
  display: grid;
  gap: 2.5rem;
}
.bc-facts > li {
  border-left: 2px solid color-mix(in oklab, var(--color-cyan) 40%, transparent);
  padding-left: 1.25rem;
}
.bc-fact-value {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}
@media (min-width: 64rem) {
  .bc-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .bc-facts > li {
    border-left: none;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
  .bc-facts > li:first-child {
    padding-left: 0;
  }
  .bc-facts > li:last-child {
    padding-right: 0;
  }
  .bc-facts > li + li {
    border-left: 2px solid color-mix(in oklab, var(--color-cyan) 40%, transparent);
  }
  .bc-fact-value {
    font-size: 2.75rem;
  }
}
@media (min-width: 80rem) {
  .bc-fact-value {
    font-size: 3.25rem;
  }
}

.bc-prose ol {
  margin-top: 1.25rem;
  list-style: decimal;
  padding-left: 1.5rem;
}
.bc-prose hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 2.5rem 0;
}
.bc-prose h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.125rem;
  line-height: 1.25;
  margin-top: 1.75rem;
}

/* Utilities this build uses that the Blue Coast original's pages never
   used, so its compiled stylesheet does not contain them. Defined with
   the same Tailwind v4 spacing scale so they blend in invisibly. */
.-top-4 { top: calc(var(--spacing) * -4); }
.aspect-3\/4 { aspect-ratio: 3 / 4; }
.bg-ink\/70 { background-color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
.gap-3\.5 { gap: calc(var(--spacing) * 3.5); }
.gap-x-10 { column-gap: calc(var(--spacing) * 10); }
.gap-x-6 { column-gap: calc(var(--spacing) * 6); }
.gap-y-4 { row-gap: calc(var(--spacing) * 4); }
.items-stretch { align-items: stretch; }
.mt-1\.5 { margin-top: calc(var(--spacing) * 1.5); }
.p-7 { padding: calc(var(--spacing) * 7); }
.ring-ink { --tw-ring-color: var(--color-ink); }
.space-y-3\.5 > :not(:last-child) { margin-block-end: calc(var(--spacing) * 3.5); }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.w-auto { width: auto; }
summary::-webkit-details-marker { display: none; }
@media (min-width: 48rem) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .lg\:h-14 { height: calc(var(--spacing) * 14); }
  .lg\:mt-24 { margin-top: calc(var(--spacing) * 24); }
  .lg\:sticky { position: sticky; }
  .lg\:text-left { text-align: left; }
  .lg\:top-32 { top: calc(var(--spacing) * 32); }
}
