/*
 * CFPG Homepage — approved Figma implementation layer
 * Scoped to cfpgh-* classes so existing inner pages remain unchanged.
 */

.cfpgh-body {
  --cfpgh-navy: #0d2348;
  --cfpgh-body: #334155;
  --cfpgh-muted: #64748b;
  --cfpgh-white: #ffffff;
  --cfpgh-subtle: #f8fafc;
  --cfpgh-sand: #f2e8d9;
  --cfpgh-teal: #15877a;
  --cfpgh-pool: #3894d6;
  --cfpgh-gold: #f7b23a;
  --cfpgh-border: #e2e8f0;
  --cfpgh-border-strong: #64748b;
  --cfpgh-success: #2e7d5b;
  --cfpgh-warning: #a65f00;
  --cfpgh-danger: #a33d3d;
  /* Darker, AA-contrast variants of the brand teal/pool-blue for small
   * text use only (badges, eyebrows, links) — the brighter tokens above
   * stay as-is for icon fills, buttons, and other non-text uses. */
  --cfpgh-teal-text: #0f6e63;
  --cfpgh-pool-text: #1c6499;
  --cfpgh-icon-bg: #e8f5ff;
  /* "High Attention" status color -- distinct from the existing amber
   * (--cfpgh-warning, used for Caution) and muted red (--cfpgh-danger,
   * reserved for a genuinely severe/alert-driven state). */
  --cfpgh-attention: #c2410c;
  --cfpgh-radius-sm: 8px;
  --cfpgh-radius: 12px;
  --cfpgh-radius-lg: 16px;
  --cfpgh-shadow-card: 0 2px 8px rgba(13, 35, 72, 0.08);
  --cfpgh-shadow-raised: 0 6px 20px rgba(13, 35, 72, 0.12);
  /* Weather-reactive ambient accents. Neutral defaults here; the
   * .cfpgh-day--* classes below (set server-side from today's real
   * pool status, see front-page.php) override them. These are used
   * ONLY for low-alpha ambient washes and glows -- never for text,
   * borders carrying meaning, or anything contrast-critical, so an
   * unexpected/missing status can only ever make the page more
   * neutral, never less readable. */
  --cfpgh-day-accent: var(--cfpgh-pool);
  --cfpgh-day-glow: rgba(56, 148, 214, 0.20);
  --cfpgh-day-wash: rgba(56, 148, 214, 0.05);
  --cfpgh-day-sky: rgba(56, 148, 214, 0.00);
  color: var(--cfpgh-body);
  background: var(--cfpgh-white);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Per-day ambient palettes. Kept intentionally close in value to each
 * other and to the base brand -- the goal is a mood the eye registers
 * across a whole page, not a color-coded alarm. Alphas are low enough
 * that these read as light quality, not as tinting. */
.cfpgh-body.cfpgh-day--good {
  --cfpgh-day-accent: var(--cfpgh-teal);
  --cfpgh-day-glow: rgba(21, 135, 122, 0.22);
  --cfpgh-day-wash: rgba(21, 135, 122, 0.05);
  --cfpgh-day-sky: rgba(120, 205, 240, 0.10);
}

.cfpgh-body.cfpgh-day--caution {
  --cfpgh-day-accent: var(--cfpgh-gold);
  --cfpgh-day-glow: rgba(247, 178, 58, 0.24);
  --cfpgh-day-wash: rgba(247, 178, 58, 0.06);
  --cfpgh-day-sky: rgba(247, 200, 120, 0.10);
}

.cfpgh-body.cfpgh-day--high {
  --cfpgh-day-accent: var(--cfpgh-attention);
  --cfpgh-day-glow: rgba(194, 65, 12, 0.20);
  --cfpgh-day-wash: rgba(194, 65, 12, 0.05);
  --cfpgh-day-sky: rgba(140, 160, 190, 0.12);
}

.cfpgh-body * {
  box-sizing: border-box;
}

.cfpgh-body img {
  max-width: 100%;
}

.cfpgh-body a:focus-visible,
.cfpgh-body button:focus-visible,
.cfpgh-body input:focus-visible {
  outline: 3px solid var(--cfpgh-gold);
  outline-offset: 3px;
}

.cfpgh-shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Header */
.cfpgh-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 64px;
  background: var(--cfpgh-white);
  border-bottom: 1px solid var(--cfpgh-border);
  box-shadow: var(--cfpgh-shadow-card);
}

.cfpgh-header__inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  height: 64px;
  padding-inline: 8px;
}

.cfpgh-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--cfpgh-radius);
  background: transparent;
  color: var(--cfpgh-navy);
  font: inherit;
  cursor: pointer;
}

.cfpgh-icon-button:hover {
  background: var(--cfpgh-subtle);
}

/* Menu button open/close icon swap, driven purely by aria-expanded so
 * it stays in lockstep with the state the JS already toggles. Closed =
 * hamburger; open = X. */
.cfpgh-menu-icon--close {
  display: none;
}

.cfpgh-header__menu[aria-expanded="true"] .cfpgh-menu-icon--open {
  display: none;
}

.cfpgh-header__menu[aria-expanded="true"] .cfpgh-menu-icon--close {
  display: block;
}

.cfpgh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(258px, 100%);
  height: 47px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--cfpgh-radius-sm);
  background: transparent;
}

.cfpgh-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cfpgh-desktop-nav,
.cfpgh-header__starter {
  display: none;
}

.cfpgh-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cfpgh-mobile-menu {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 490;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: var(--cfpgh-white);
  border-bottom: 1px solid var(--cfpgh-border);
  box-shadow: var(--cfpgh-shadow-raised);
}

.cfpgh-mobile-menu[hidden] {
  display: none;
}

.cfpgh-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 16px 20px;
}

.cfpgh-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--cfpgh-border);
  color: var(--cfpgh-navy);
  font-weight: 600;
  text-decoration: none;
}

.cfpgh-mobile-menu__starter {
  justify-content: center;
  margin-top: 12px;
  border: 0 !important;
  border-radius: var(--cfpgh-radius);
  background: var(--cfpgh-teal);
  color: var(--cfpgh-white) !important;
}

.cfpgh-search-dialog {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: start center;
  padding: 84px 16px 16px;
  background: rgba(13, 35, 72, 0.74);
}

.cfpgh-search-dialog[hidden] {
  display: none;
}

.cfpgh-search-dialog__panel {
  width: min(640px, 100%);
  padding: 20px;
  border-radius: var(--cfpgh-radius-lg);
  background: var(--cfpgh-white);
  box-shadow: var(--cfpgh-shadow-raised);
}

.cfpgh-search-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cfpgh-search-dialog__header h2 {
  margin: 0;
  color: var(--cfpgh-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}

.cfpgh-search-control {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--cfpgh-border);
  border-radius: var(--cfpgh-radius);
  background: var(--cfpgh-white);
}

.cfpgh-search-control svg {
  flex: 0 0 auto;
  color: var(--cfpgh-navy);
}

.cfpgh-search-control input {
  min-width: 0;
  flex: 1;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cfpgh-body);
  font: inherit;
}

.cfpgh-search-control button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--cfpgh-radius-sm);
  background: var(--cfpgh-teal);
  color: var(--cfpgh-white);
  font-weight: 700;
}

/* Hero */
.cfpgh-hero {
  position: relative;
  overflow: visible;
  background: var(--cfpgh-white);
}

.cfpgh-hero__photo-wrap {
  position: relative;
  min-height: clamp(400px, 78vw, 560px);
  overflow: hidden;
}

.cfpgh-hero__photo,
.cfpgh-photo-fallback,
.cfpgh-featured-card__media img,
.cfpgh-featured-card__media .cfpgh-photo-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfpgh-hero__photo {
  position: absolute;
  inset: 0;
  object-position: center 38%;
}

.cfpgh-hero__video {
  pointer-events: none;
}

/* Hero scroll choreography. Every custom property below defaults to a
 * no-op value, so with no JS (or under prefers-reduced-motion, where
 * the JS never sets them) the hero renders exactly as it did before
 * this was added -- no transform, no fade, nothing to un-do. */
.cfpgh-hero__photo {
  transform: scale(var(--cfpgh-hero-zoom, 1));
  transform-origin: center 42%;
}

.cfpgh-hero__content {
  transform: translateY(var(--cfpgh-hero-lift, 0px));
  opacity: var(--cfpgh-hero-fade, 1);
}

.cfpgh-photo-fallback {
  position: absolute;
  inset: 0;
  min-height: 180px;
  background:
    radial-gradient(circle at 68% 24%, rgba(255,255,255,.82) 0 8%, transparent 9%),
    linear-gradient(175deg, #cde8f7 0 39%, #59b7dc 40% 64%, #3e91bd 65% 72%, #d9c9a8 73% 100%);
}

.cfpgh-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Strongest directly around/below the headline (62-80%), fading
   * smoothly upward so pool/landscaping detail stays visible in the
   * top half of the photo — v4.81 nudge on top of the v4.80 baseline,
   * not a second stacked overlay. */
  background: linear-gradient(180deg, rgba(13,35,72,0) 0%, rgba(13,35,72,.2) 35%, rgba(13,35,72,.7) 62%, rgba(13,35,72,.95) 80%, var(--cfpgh-navy) 100%);
  pointer-events: none;
}

/* Weather-reactive light on the hero photo. Both layers ride on the
 * existing scrim element (no new markup) and sit inside it, so the
 * approved gradient above still governs headline contrast.
 * ::before  -- a very soft wash of today's color over the upper,
 *              un-darkened part of the photo. Alpha is low enough to
 *              read as light quality rather than a color filter, and
 *              --cfpgh-day-sky is fully transparent in the neutral
 *              fallback state, so an unknown status renders exactly
 *              the pre-existing hero.
 * ::after   -- a scroll-driven deepen as the hero leaves the viewport
 *              (--cfpgh-hero-scrim, JS-set, default 0 -- with no JS or
 *              under prefers-reduced-motion this contributes nothing). */
.cfpgh-hero__scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cfpgh-day-sky) 0%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.cfpgh-hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cfpgh-navy);
  opacity: calc(var(--cfpgh-hero-scrim, 0) * 0.3);
  pointer-events: none;
}

.cfpgh-hero__text-panel {
  position: static;
  z-index: 3;
  background: var(--cfpgh-navy);
  /* Safety net for .cfpgh-hero__line2's white-space:nowrap below — on an
   * unusually narrow device that still overflows, clip quietly instead
   * of pushing out a page-wide horizontal scrollbar. */
  overflow-x: hidden;
}

.cfpgh-hero__content {
  max-width: none;
  margin-bottom: 8px;
  color: var(--cfpgh-white);
}

.cfpgh-eyebrow {
  margin: 0 0 8px;
  color: var(--cfpgh-teal-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cfpgh-eyebrow--gold {
  color: var(--cfpgh-gold);
}

.cfpgh-hero h1,
.cfpgh-section h2,
.cfpgh-section h3,
.cfpgh-footer h2,
.cfpgh-footer h3 {
  font-family: "Playfair Display", Georgia, serif;
}

.cfpgh-hero h1 {
  max-width: none;
  margin: 0 0 20px;
  /* Warm off-white rather than pure #fff: it belongs to the golden-hour
   * photograph instead of sitting on top of it, and costs nothing
   * measurable against the navy scrim. */
  color: #fff8f0;
  /* "With Confidence." is held to one line structurally (see
   * .cfpgh-hero__line2's white-space:nowrap below), not by this
   * font-size fitting exactly — real Mobile Safari measured this text
   * meaningfully wider than the Chromium sandbox predicted (confirmed
   * by a real-device screenshot showing it running past the right
   * edge at the previous, more aggressive size), so this is sized
   * with a large, deliberately generous margin rather than a close
   * pixel fit. */
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.42);
}

/* Gold marker-style accent under "Confidence." — a hand-drawn-looking
 * arched underline (SVG, not a straight bar), scoped to just that word
 * rather than the full headline width. Sized in em so it scales with
 * the word's own font-size at every breakpoint. */
/* Guarantees "With Confidence." never splits across two lines, no
 * matter how a given browser/device measures Playfair Display's text
 * width (Chromium and real Mobile Safari render the same webfont at
 * slightly different widths — a font-size tuned to just barely fit in
 * one engine isn't guaranteed to fit in the other). white-space:nowrap
 * makes the two-line break structural instead of a close pixel fit;
 * worst case on an unusually narrow device is a few px of harmless
 * overflow, never a 3rd line. */
.cfpgh-hero__line2 {
  /* nowrap keeps "With Confidence." on one line so the hand-drawn accent
   * arch under it stays aligned with the word it underlines. */
  white-space: nowrap;
}

/* ...but nowrap must not win over reflow. At 200% browser zoom on a
 * 390px phone the effective width halves and this line pushed 42px of
 * horizontal overflow onto the document -- a WCAG 1.4.10 reflow failure,
 * and the existing overflow-x:hidden safety net only clipped it rather
 * than preventing it. Below an effective 420px the line is allowed to
 * wrap; the arch simply sits under the first line, which is far better
 * than a page that scrolls sideways.
 *
 * Expressed in em so it follows the zoom/root font size rather than the
 * device width, which is what makes it fire under zoom at all. */
@media (max-width: 26.25em) {
  .cfpgh-hero__line2 {
    white-space: normal;
  }
}

.cfpgh-hero__confidence {
  position: relative;
  display: inline-block;
  padding-bottom: 0.16em;
}

.cfpgh-hero__accent-arch {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 104%;
  height: 0.26em;
  overflow: visible;
}

.cfpgh-hero__accent-arch path {
  fill: none;
  stroke: var(--cfpgh-gold);
  stroke-width: 9;
  stroke-linecap: round;
}

.cfpgh-hero__copy {
  margin: 0;
  max-width: 34rem;
  /* Was rgba(255,255,255,.92). Near-opaque and faintly warm, to match
   * the headline and lift the supporting copy off the photograph. */
  color: rgba(255,250,244,.98);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

.cfpgh-hero__copy--desktop {
  display: none;
}

/* The conditions card is the homepage's signature element -- give it an
 * ambient glow in the day's color and a small lift as it arrives, so
 * the eye lands here first. The glow lives on a pseudo-element of the
 * wrapper (never on its children), which matters because this wrapper
 * is #cfpgh-tpc-wrap: the AJAX refresh replaces its innerHTML, so
 * anything glow-related inside would be destroyed on every refresh.
 * Pseudo-elements of the wrapper itself survive that untouched. */
.cfpgh-conditions-wrap {
  position: relative;
  /* Opens the main content now rather than sitting inside the hero, so
   * the spacing above it is the gap between two sections, not the gap
   * under a wave. */
  margin-top: 26px;
}

.cfpgh-conditions-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  /* Deliberately capped at the wrapper's own width: a wider glow read
     slightly better but pushed the page's scrollWidth ~29px past the
     viewport on mobile (a pseudo-element still contributes to overflow
     even at z-index:-1 / pointer-events:none, and doesn't show up in a
     querySelectorAll geometry scan -- caught here only by measuring
     scrollWidth). The gradient fades out well before this edge, so the
     visible glow is unchanged. */
  width: 100%;
  height: 78%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--cfpgh-day-glow) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: var(--cfpgh-card-glow, 0);
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.cfpgh-conditions-wrap.cfpgh-card-lift-ready {
  transform: translateY(20px);
  opacity: 0;
  transition: transform .8s cubic-bezier(.22, .9, .3, 1), opacity .8s ease;
}

.cfpgh-conditions-wrap.cfpgh-card-lift-ready.cfpgh-card-lift-in {
  transform: translateY(0);
  opacity: 1;
}

.cfpgh-pool-tip-wrap {
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Wave — replaces the hero's straight bottom edge with a broad, layered
 * diagonal swell (matching Billy's reference image) instead of an abrupt
 * rectangle cut. Three bands, each a shade lighter, sweep from upper-left
 * to lower-right so it reads as one continuous wave rather than a
 * side-to-side ripple. Sits in normal document flow right after the
 * solid-navy text panel, so it doesn't touch photo height, gradient, or
 * spacing anywhere else in the hero. */
.cfpgh-hero__wave {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: clamp(90px, 22vw, 140px);
  margin-top: -1px;
  background: var(--cfpgh-navy);
  overflow: hidden;
}

.cfpgh-hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Wave-layer parallax (Phase: homepage scroll polish). Opt-in only --
 * JS sets the per-layer --cfpgh-wave-shift values; with no JS or under
 * prefers-reduced-motion they stay at 0 and the wave renders exactly
 * as it always has. */
.cfpgh-hero--wave-enhanced .cfpgh-hero__wave-back,
.cfpgh-hero--wave-enhanced .cfpgh-hero__wave-mid,
.cfpgh-hero--wave-enhanced .cfpgh-hero__wave-front {
  will-change: transform;
}

.cfpgh-hero__wave-back {
  fill: url(#cfpghWaveBackGrad);
  transform: translateY(var(--cfpgh-wave-shift-back, 0px));
}

.cfpgh-hero__wave-mid {
  fill: url(#cfpghWaveMidGrad);
  transform: translateY(var(--cfpgh-wave-shift-mid, 0px));
}

.cfpgh-hero__wave-front {
  fill: url(#cfpghWaveFrontGrad);
  transform: translateY(var(--cfpgh-wave-shift-front, 0px));
}

@media (max-width: 767px) {
  .cfpgh-hero__photo-wrap {
    /* Back to the original height. Making this taller on a narrow
     * mobile viewport actually zooms the (landscape) photo IN more via
     * object-fit:cover — a taller/narrower box relative to the image's
     * own aspect ratio shows LESS of it side-to-side, not more. Keep
     * the full, un-cropped view; the gradient timing below is the only
     * lever that changes how much of it reads clearly. */
    height: clamp(240px, 68vw, 275px);
    min-height: 0;
  }

  .cfpgh-hero__photo {
    object-position: 62% center;
  }

  .cfpgh-hero__scrim {
    display: block;
    /* Soft fade from the photo into the solid navy panel below it. The
     * photo and headline sit in separate stacked blocks (not overlaid),
     * so the fade physically can't extend past the photo's own bottom
     * edge — the latest it can start is right at that edge. Pushed as
     * late as the layout allows (stays fully transparent to ~85%) so
     * the photo reads perfectly clear almost the entire way down, then
     * ramps quickly over the last stretch to solid navy, reading as
     * "the fade begins right where the title starts" rather than
     * gradually creeping up through the photo. Hands off cleanly to
     * .cfpgh-hero__text-panel's own solid navy background with no
     * visible seam. */
    background: linear-gradient(180deg, rgba(13,35,72,0) 0%, rgba(13,35,72,0) 85%, rgba(13,35,72,.55) 93%, var(--cfpgh-navy) 100%);
  }

  .cfpgh-hero__text-panel {
    /* 56px of bottom padding was sized to sit under the Command Center
     * panel. With that panel removed in v4.99.2 the trust row is the
     * last thing in the hero, and 56px left a band of empty navy above
     * the wave. */
    padding: 26px 0 32px;
  }

  .cfpgh-tpc {
    margin-top: -28px;
    padding: 16px;
    border-radius: 22px;
  }
}

.cfpgh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--cfpgh-radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

.cfpgh-button--primary {
  background: var(--cfpgh-gold);
  color: var(--cfpgh-navy);
}

.cfpgh-button--primary:hover {
  background: #e5a12e;
  color: var(--cfpgh-navy);
}

.cfpgh-button--outline {
  border-color: var(--cfpgh-border-strong);
  background: var(--cfpgh-white);
  color: var(--cfpgh-navy);
}

.cfpgh-button--outline:hover {
  border-color: var(--cfpgh-pool);
  color: var(--cfpgh-navy);
}

.cfpgh-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* Today's Pool Conditions card */
.cfpgh-tpc {
  position: relative;
  z-index: 4;
  margin-top: -36px;
  padding: 20px;
  border: 1px solid rgba(13, 35, 72, 0.08);
  border-radius: 24px;
  background: #f7f1e7;
  box-shadow: 0 16px 34px rgba(13, 35, 72, 0.12);
  overflow: hidden;
}

.cfpgh-tpc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--cfpgh-teal);
}

.cfpgh-tpc__header {
  margin-bottom: 14px;
}

.cfpgh-tpc__heading {
  margin: 0;
  color: var(--cfpgh-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.cfpgh-tpc__heading-sub {
  display: block;
  margin-top: 2px;
  color: var(--cfpgh-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.cfpgh-tpc__unavailable {
  margin: 0 0 14px;
  color: var(--cfpgh-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cfpgh-tpc__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.cfpgh-tpc__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
}

.cfpgh-tpc__badge--good    { background: rgba(46, 125, 91, 0.14); color: var(--cfpgh-success); }
.cfpgh-tpc__badge--caution { background: rgba(166, 95, 0, 0.14); color: var(--cfpgh-warning); }
.cfpgh-tpc__badge--high    { background: rgba(194, 65, 12, 0.14); color: var(--cfpgh-attention); }
.cfpgh-tpc__badge--severe  { background: rgba(163, 61, 61, 0.16); color: var(--cfpgh-danger); }

.cfpgh-tpc__score {
  color: var(--cfpgh-navy);
  font-size: 13.5px;
  font-weight: 700;
}

.cfpgh-tpc__delayed {
  margin: 0 0 8px;
  color: var(--cfpgh-warning);
  font-size: 12.5px;
  font-weight: 700;
}

.cfpgh-tpc__outlook {
  margin: 0 0 8px;
  color: var(--cfpgh-body);
  font-size: 14.5px;
  line-height: 1.5;
}

.cfpgh-tpc__chlorine {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--cfpgh-navy);
  font-size: 13.5px;
  font-weight: 700;
}

.cfpgh-tpc__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--cfpgh-muted);
  cursor: help;
}

.cfpgh-tpc__info:hover,
.cfpgh-tpc__info:focus-visible {
  color: var(--cfpgh-pool-text);
  background: var(--cfpgh-icon-bg);
}

.cfpgh-tpc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: var(--cfpgh-white);
}

.cfpgh-tpc__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  padding: 12px 10px;
  border-radius: 14px;
}

.cfpgh-tpc__tile:not(:nth-child(2n)) {
  border-right: 1px solid var(--cfpgh-border);
}

.cfpgh-tpc__tile:nth-child(-n+2) {
  border-bottom: 1px solid var(--cfpgh-border);
}

.cfpgh-tpc__tile-icon.cfpgh-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
  color: var(--cfpgh-pool-text);
}

.cfpgh-tpc__tile-label {
  color: var(--cfpgh-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.cfpgh-tpc__tile-value {
  color: var(--cfpgh-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.cfpgh-tpc__tile-interp {
  margin-top: auto;
  color: var(--cfpgh-body);
  font-size: 12px;
  line-height: 1.35;
}

.cfpgh-tpc__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fdf1e4;
}

.cfpgh-tpc__alert--calm {
  background: var(--cfpgh-subtle);
}

.cfpgh-tpc__alert-icon {
  flex: 0 0 auto;
  color: var(--cfpgh-attention);
}

.cfpgh-tpc__alert--calm .cfpgh-tpc__alert-icon {
  color: var(--cfpgh-success);
}

.cfpgh-tpc__alert-text {
  color: var(--cfpgh-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

a.cfpgh-tpc__alert-text:hover {
  text-decoration: underline;
}

.cfpgh-tpc__alert--calm .cfpgh-tpc__alert-text {
  color: var(--cfpgh-body);
  font-weight: 500;
}

.cfpgh-tpc__recommendation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(21, 135, 122, 0.08);
}

.cfpgh-tpc__rec-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--cfpgh-teal-text);
}

.cfpgh-tpc__rec-heading {
  margin: 0 0 3px;
  color: var(--cfpgh-navy);
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.cfpgh-tpc__rec-text {
  margin: 0;
  color: var(--cfpgh-body);
  font-size: 13.5px;
  line-height: 1.5;
}

.cfpgh-tpc__meta {
  margin: 12px 0 0;
  color: var(--cfpgh-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cfpgh-tpc__meta-sr {
  display: block;
  margin-top: 2px;
  color: var(--cfpgh-muted);
  font-size: 11px;
}

.cfpgh-tpc__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 4px 2px;
  color: var(--cfpgh-teal-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.cfpgh-tpc__link:hover {
  color: #0b5750;
  text-decoration: underline;
}

.cfpgh-tpc__link:hover .cfpgh-text-link__arrow {
  transform: translateX(3px);
}

.cfpgh-tpc__link:active {
  color: #08423d;
}

/* Main content */
.cfpgh-home-main {
  background: var(--cfpgh-white);
}

.cfpgh-home-main > .cfpgh-shell {
  padding-top: 28px;
  padding-bottom: 48px;
}

.cfpgh-section {
  margin-bottom: 44px;
  scroll-margin-top: 84px;
}

.cfpgh-section:last-child {
  margin-bottom: 0;
}

/* Section reveal-on-scroll (Phase: homepage scroll polish). Fully
 * opt-in: a section only gets the "ready" class from JS, at which
 * point it starts hidden/offset until it scrolls into view. If JS
 * never runs, or prefers-reduced-motion is set, no section ever gets
 * cfpgh-reveal-ready and every section stays at its normal, always-
 * visible default -- same safety contract as the conditions card's
 * load-in animation. The Starter Pack section is deliberately excluded
 * in JS (not here) since it's a direct anchor-scroll target that must
 * never be invisible on a hard page-load jump to #cfpg-starter-pack. */
.cfpgh-section.cfpgh-reveal-ready {
  opacity: 0;
  transition: opacity var(--cfpgh-mo-dur-section) var(--cfpgh-mo-ease);
}

.cfpgh-section.cfpgh-reveal-ready.cfpgh-reveal-in {
  opacity: 1;
}

/* Staggered children inside a revealing section (the two tile grids).
 * JS sets --cfpgh-reveal-i per child; the delay is capped by only ever
 * being applied to small, known grids (6 tiles each), so the last item
 * lands ~300ms after the first -- brisk enough that nobody waits on
 * content. Same opt-in contract as the parent: the class is only added
 * by JS, so the default state is fully visible. */
.cfpgh-reveal-child {
  opacity: 0;
  transform: translateY(var(--cfpgh-mo-rise));
  transition:
    opacity var(--cfpgh-mo-dur) var(--cfpgh-mo-ease),
    transform var(--cfpgh-mo-dur) var(--cfpgh-mo-ease);
  transition-delay: calc(var(--cfpgh-reveal-i, 0) * var(--cfpgh-mo-stagger));
}

.cfpgh-reveal-child.cfpgh-reveal-child--in {
  opacity: 1;
  transform: translateY(0);
}

.cfpgh-section h2 {
  margin: 0 0 12px;
  color: var(--cfpgh-navy);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.cfpgh-section h3 {
  margin: 0;
  color: var(--cfpgh-navy);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.cfpgh-section__intro {
  margin: 0 0 16px;
  color: var(--cfpgh-body);
}

/* Florida Pool Owner Alerts — compact homepage summary card. Names the
 * single highest-priority current alert directly (headline + Florida
 * relevance note + verified date) instead of only showing counts, with
 * a truthful generic fallback when a headline isn't available. Calm/
 * authoritative: severity color is a left rule + small badge only,
 * never a full-bleed background, no animation anywhere here. */

.cfpgh-alerts-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--cfpgh-border);
  border-left: 4px solid var(--cfpgh-navy);
  border-radius: var(--cfpgh-radius-lg);
  background: var(--cfpgh-white);
  box-shadow: var(--cfpgh-shadow-card);
}

/* Tone reflects the alert's category (Homepage Refinement Pass) —
 * red is reserved for genuine recalls/safety warnings, amber for
 * cautionary items, teal for general/informational updates. Severity
 * 'urgent' always forces red in front-page.php regardless of tone. */
.cfpgh-alerts-compact--tone-red    { border-left-color: var(--cfpgh-danger); }
.cfpgh-alerts-compact--tone-amber  { border-left-color: var(--cfpgh-warning); }
.cfpgh-alerts-compact--tone-teal   { border-left-color: var(--cfpgh-teal); }

.cfpgh-alerts-compact__icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--cfpgh-navy);
}

.cfpgh-alerts-compact--tone-red   .cfpgh-alerts-compact__icon { color: var(--cfpgh-danger); }
.cfpgh-alerts-compact--tone-amber .cfpgh-alerts-compact__icon { color: var(--cfpgh-warning); }
.cfpgh-alerts-compact--tone-teal  .cfpgh-alerts-compact__icon { color: var(--cfpgh-teal); }

.cfpgh-alerts-compact__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 4px;
}

.cfpgh-alerts-compact__status {
  color: var(--cfpgh-navy);
  font-size: 12px;
  font-weight: 800;
}

.cfpgh-alerts-compact__category {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cfpgh-subtle);
  color: var(--cfpgh-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.cfpgh-alerts-compact__freshness {
  color: var(--cfpgh-muted);
  font-size: 12px;
}

.cfpgh-alerts-compact__icon svg { width: 22px; height: 22px; }

.cfpgh-alerts-compact__body { flex: 1 1 240px; min-width: 0; }

.cfpgh-alerts-compact__eyebrow {
  margin: 0 0 6px;
  color: var(--cfpgh-teal-text);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cfpgh-alerts-compact__severity {
  display: inline-block;
  margin: 0 0 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.cfpgh-alerts-compact__severity--urgent    { color: var(--cfpgh-danger); background: #FDEDEC; }
.cfpgh-alerts-compact__severity--important { color: var(--cfpgh-warning); background: #FEF3E2; }
.cfpgh-alerts-compact__severity--watch     { color: var(--cfpgh-navy); background: var(--cfpgh-subtle); }

.cfpgh-alerts-compact__headline {
  display: block;
  margin: 0 0 4px;
  color: var(--cfpgh-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}

.cfpgh-alerts-compact__headline:hover {
  text-decoration: underline;
}

.cfpgh-alerts-compact__desc {
  margin: 0 0 6px;
  color: var(--cfpgh-body);
  font-size: 13.5px;
  line-height: 19px;
}

.cfpgh-alerts-compact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: var(--cfpgh-muted);
  font-size: 12.5px;
  line-height: 17px;
}

.cfpgh-alerts-compact__meta span + span {
  position: relative;
  padding-left: 12px;
}

.cfpgh-alerts-compact__meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transform: translateY(-50%);
}

.cfpgh-alerts-compact__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--cfpgh-radius);
  background: var(--cfpgh-navy);
  color: var(--cfpgh-white);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cfpgh-alerts-compact__btn:hover { background: #16305c; }

.cfpgh-alerts-compact__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  font-size: 11px;
  font-weight: 800;
}

.cfpgh-quick-grid,
.cfpgh-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cfpgh-quick-tile,
.cfpgh-topic-tile {
  display: grid;
  align-items: center;
  min-width: 0;
  color: var(--cfpgh-navy);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.cfpgh-quick-tile {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  min-height: 112px;
  padding: 18px 16px;
  border: 1.5px solid #cfdce6;
  border-radius: 18px;
  background: var(--cfpgh-white);
  box-shadow: 0 7px 18px rgba(13, 35, 72, 0.09);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.cfpgh-quick-tile:hover {
  border-color: #91b9cf;
  box-shadow: 0 9px 22px rgba(13, 35, 72, 0.12);
}

.cfpgh-quick-tile:active {
  transform: translateY(1px);
  background: #f5fafc;
  border-color: var(--cfpgh-teal);
  box-shadow: 0 3px 9px rgba(13, 35, 72, 0.09);
}

.cfpgh-topic-tile {
  grid-template-columns: 52px minmax(0, 1fr) 16px;
  gap: 12px;
  min-height: 88px;
  padding: 16px;
  border: 1.25px solid rgba(13, 35, 72, 0.15);
  border-radius: 16px;
  background: var(--cfpgh-white);
  box-shadow: 0 5px 14px rgba(13, 35, 72, 0.07);
  font-size: 14px;
  font-weight: 700;
}

.cfpgh-quick-tile:focus-visible,
.cfpgh-topic-tile:focus-visible {
  outline: 2px solid var(--cfpgh-pool);
  outline-offset: 2px;
}

.cfpgh-topic-tile__chevron {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  color: var(--cfpgh-pool-text);
  transition: transform 140ms ease;
}

/* Hover only where a real pointer supports it — touch devices get
 * their tap feedback from :active below, not a hover state that can
 * stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  .cfpgh-topic-tile:hover .cfpgh-topic-tile__chevron {
    transform: translateX(4px);
  }

  .cfpgh-topic-tile:hover {
    border-color: rgba(21, 135, 122, 0.4);
    box-shadow: 0 8px 18px rgba(13, 35, 72, 0.11);
  }

  /* Tile micro-interactions: a small lift plus an icon "pop" so the
     grids feel responsive under the cursor. Pointer-gated so touch
     devices get the existing :active feedback instead of a hover
     state that can stick after a tap. */
  .cfpgh-quick-tile:hover,
  .cfpgh-topic-tile:hover {
    transform: translateY(-3px);
  }

  .cfpgh-quick-tile:hover .cfpgh-icon,
  .cfpgh-topic-tile:hover .cfpgh-icon {
    transform: scale(1.08);
    border-color: rgba(56, 148, 214, 0.4);
  }
}

.cfpgh-quick-tile .cfpgh-icon,
.cfpgh-topic-tile .cfpgh-icon {
  transition: transform 160ms ease, border-color 160ms ease;
}

.cfpgh-topic-tile:active {
  transform: translateY(1px) scale(0.99);
  background: #f7fbfd;
  border-color: rgba(21, 135, 122, 0.4);
  box-shadow: 0 2px 7px rgba(13, 35, 72, 0.06);
}

.cfpgh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--cfpgh-icon-bg);
  border: 1px solid rgba(56, 148, 214, 0.16);
  overflow: hidden;
}

.cfpgh-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.cfpgh-quick-tile .cfpgh-icon {
  width: 56px;
  height: 56px;
}

.cfpgh-topic-tile .cfpgh-icon {
  width: 48px;
  height: 48px;
}

/* Featured article */
.cfpgh-featured-card {
  overflow: hidden;
  border: 1px solid var(--cfpgh-border);
  border-radius: var(--cfpgh-radius-lg);
  background: var(--cfpgh-white);
  box-shadow: var(--cfpgh-shadow-card);
}

.cfpgh-featured-card__media {
  display: block;
  /* ~11% taller than the previous 16/9 (mobile/tablet only — the
   * >=768px breakpoint below overrides this to a fixed min-height and
   * is left as-is, already balanced for the two-column layout). */
  aspect-ratio: 8 / 5;
  overflow: hidden;
}

.cfpgh-featured-card__media img {
  transition: transform .25s ease;
  /* Scroll parallax shifts the crop window rather than transforming the
     image: object-fit:cover already guarantees full coverage, so moving
     object-position can never expose an edge the way a translate could,
     and it leaves the hover scale below completely untouched instead of
     fighting it for the same transform property. JS sets the shift;
     default 0% means no-JS/reduced-motion renders the original crop. */
  object-position: center calc(50% + var(--cfpgh-parallax-shift, 0%));
}

.cfpgh-featured-card:hover .cfpgh-featured-card__media img {
  transform: scale(1.015);
}

.cfpgh-featured-card__body {
  padding: 20px;
}

.cfpgh-featured-card__body h3 a {
  color: var(--cfpgh-navy);
  text-decoration: none;
}

.cfpgh-featured-card__body > p:not(.cfpgh-eyebrow):not(.cfpgh-meta) {
  margin: 12px 0 0;
}

.cfpgh-meta {
  margin: 12px 0 0;
  color: var(--cfpgh-muted);
  font-size: 14px;
  line-height: 20px;
}

.cfpgh-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 4px 2px;
  color: var(--cfpgh-teal-text);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.cfpgh-text-link--strong {
  font-size: 15px;
}

.cfpgh-text-link:hover {
  color: #0b5750;
  text-decoration: underline;
}

.cfpgh-text-link:hover .cfpgh-text-link__arrow {
  transform: translateX(3px);
}

.cfpgh-text-link:active {
  color: #08423d;
}

.cfpgh-text-link__arrow {
  display: inline-flex;
  transition: transform 140ms ease;
}

/* Checklist */
.cfpgh-checklist-section {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 36px;
}

.cfpgh-checklist-card {
  width: 100%;
  max-width: 460px;
  padding: 20px;
  border: 1px solid var(--cfpgh-border);
  border-radius: var(--cfpgh-radius-lg);
  background: var(--cfpgh-sand);
  box-shadow: var(--cfpgh-shadow-card);
}

.cfpgh-checklist-card > p:not(.cfpgh-eyebrow) {
  margin: 12px 0 0;
}

.cfpgh-checklist-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cfpgh-checklist-card li {
  position: relative;
  padding-left: 38px;
  line-height: 1.4;
}

.cfpgh-checklist-card li::before {
  /* ~14% larger than the previous 22px, within the requested 10-15%
   * range; padding-left/top nudged to match so it still aligns with
   * the first line of text. */
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border: 1.5px solid var(--cfpgh-teal);
  border-radius: 999px;
  background: var(--cfpgh-white);
}

.cfpgh-checklist-sam {
  display: none;
  width: 120px;
  height: auto;
  flex: 0 0 auto;
  /* Scroll parallax (JS-set, defaults to no movement). Safe as a plain
     transform here: this image isn't inside an overflow-clipped box and
     has no hover transform to conflict with. */
  transform: translateY(var(--cfpgh-parallax-y, 0px));
}

/* Trust banner */
.cfpgh-trust-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--cfpgh-radius-lg);
  background: var(--cfpgh-subtle);
  border: 1px solid var(--cfpgh-border);
}

.cfpgh-trust-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--cfpgh-teal);
  color: var(--cfpgh-white);
}

.cfpgh-trust-banner__body h2 {
  margin: 0 0 8px;
  color: var(--cfpgh-navy);
  font-size: 20px;
  line-height: 26px;
}

.cfpgh-trust-banner__body p {
  margin: 0;
  color: var(--cfpgh-body);
}

.cfpgh-trust-banner__body .cfpgh-text-link {
  margin-top: 10px;
}

/* Starter panel (standalone, full-width) */
/* #cfpg-starter-pack is the anchor-scroll target (header link, mobile
   menu link, and direct #cfpg-starter-pack URLs all jump here), but it
   sits on this <article>, not on the ancestor .cfpgh-section -- so the
   .cfpgh-section scroll-margin-top above never applies to it. Verified
   via real interactive testing (all entry paths, 320-390px) that the
   panel heading landed ~16px under the 64px sticky header without
   this. Same 84px value (header height + gap) already used for
   .cfpgh-section, applied directly to the actual scroll target. */
#cfpg-starter-pack {
  scroll-margin-top: 84px;
}

.cfpgh-starter-panel {
  padding: 24px 20px;
  border-radius: var(--cfpgh-radius-lg);
  background: var(--cfpgh-navy);
  color: var(--cfpgh-white);
  box-shadow: var(--cfpgh-shadow-raised);
}

.cfpgh-starter-panel h2 {
  color: var(--cfpgh-white);
  font-size: 28px;
  line-height: 36px;
}

.cfpgh-starter-panel > p:not(.cfpgh-eyebrow):not(.cfpgh-starter-panel__privacy) {
  margin: 14px 0 0;
}

.cfpgh-starter-panel__cta,
.cfpgh-starter-panel__pending {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.cfpgh-starter-panel .cfpgh-button {
  width: 100%;
}

.cfpgh-starter-panel__pending > p,
.cfpgh-starter-panel__privacy {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 20px;
}

.cfpgh-starter-panel__privacy {
  margin-top: 10px;
}

/* Footer */
.cfpgh-footer {
  background: var(--cfpgh-navy);
  color: var(--cfpgh-white);
}

.cfpgh-footer__grid {
  display: grid;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 20px;
}

.cfpgh-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
}

.cfpgh-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cfpgh-footer__tagline {
  max-width: 340px;
  margin: 20px 0 0;
  color: var(--cfpgh-gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cfpgh-footer__description {
  max-width: 420px;
  margin: 16px 0 0;
}

.cfpgh-footer__follow {
  margin: 16px 0 0;
  color: var(--cfpgh-gold);
  font-weight: 600;
}

.cfpgh-footer__follow a {
  color: var(--cfpgh-gold);
}

.cfpgh-footer-group {
  border-bottom: 1px solid var(--cfpgh-border-strong);
}

.cfpgh-footer-group__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cfpgh-white);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.cfpgh-footer-group__symbol {
  color: var(--cfpgh-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
}

.cfpgh-footer-group__links {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 16px;
}

.cfpgh-footer-group.is-open .cfpgh-footer-group__links {
  display: flex;
}

.cfpgh-footer-group.is-open .cfpgh-footer-group__symbol {
  transform: rotate(45deg);
}

.cfpgh-footer-group__links a,
.cfpgh-footer__bottom a {
  color: var(--cfpgh-white);
  text-decoration: none;
}

.cfpgh-footer-group__links a:hover,
.cfpgh-footer__bottom a:hover {
  color: var(--cfpgh-gold);
}

.cfpgh-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  line-height: 20px;
}

.cfpgh-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cfpgh-footer__bottom p {
  margin: 0;
}

@media (min-width: 480px) {
  .cfpgh-quick-tile {
    min-height: 108px;
  }
}

@media (min-width: 768px) {
  /* Desktop's Pool Conditions card already pulls up over the hero with
   * its own large negative margin (see .cfpgh-tpc below) — the wave
   * would just get covered/conflict with that, so it's scoped to the
   * mobile hero only, where the card sits in normal flow below it. */
  .cfpgh-hero__wave {
    display: none;
  }

  .cfpgh-shell {
    padding-inline: 24px;
  }

  .cfpgh-header__inner {
    display: flex;
    gap: 18px;
    padding-inline: 24px;
  }

  .cfpgh-header__menu {
    display: none;
  }

  .cfpgh-logo {
    width: 210px;
    margin: 0 auto 0 0;
  }

  .cfpgh-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .cfpgh-desktop-nav a {
    padding: 8px 7px;
    color: var(--cfpgh-navy);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .cfpgh-desktop-nav a:nth-child(4),
  .cfpgh-desktop-nav a:nth-child(5) {
    display: none;
  }

  .cfpgh-header__actions {
    gap: 10px;
  }

  .cfpgh-header__starter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--cfpgh-radius);
    background: var(--cfpgh-teal);
    color: var(--cfpgh-white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .cfpgh-mobile-menu {
    display: none !important;
  }

  .cfpgh-hero__photo-wrap {
    min-height: clamp(460px, 56vw, 620px);
  }

  .cfpgh-hero__photo {
    object-position: center 38%;
  }

  .cfpgh-hero__scrim {
    /* The full-width vertical scrim (mobile's bottom-to-top fade) was
     * washing dark navy across the entire photo on desktop, including
     * the pool on the right side of the crop. Desktop relies solely on
     * .cfpgh-hero__text-panel's own gradient below, which is already
     * scoped to just the text column. */
    display: none;
  }

  .cfpgh-hero__text-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(460px, 56vw, 620px);
    padding: 0;
    /* Anchored to the bottom-left, where the text actually sits (it's
     * pinned to the bottom via margin-top:auto) — fades out both
     * upward and to the right, so the rest of the photo, including the
     * pool water, stays fully visible instead of getting a full-height
     * vertical wash down the whole left column. */
    /* CONTRAST, NOT DECORATION.
     *
     * This panel is absolutely positioned OVER the photograph at >=768px,
     * so whatever sits behind the headline is whatever the photo happens
     * to contain -- and the sunset crop is bright exactly where the copy
     * sits. The previous single radial peaked at .5 alpha, which is not
     * enough: white text over 50% navy on a near-white photo pixel
     * measures about 3.4:1, under the 4.5 body-text requirement.
     *
     * Two layers now, and the ORDER matters (first = on top):
     *   1. a bottom-anchored linear wash that reaches .88 navy where the
     *      copy actually sits and is fully clear by 62% up, so the pool
     *      and sky are untouched;
     *   2. the original left-anchored radial, kept for the soft falloff
     *      toward the right of the frame.
     *
     * Verified by compositing the gradient over PURE WHITE -- the
     * brightest pixel any photo can present -- so the result holds for
     * any crop, not just the current image. */
    /* v5.0.3. Measuring the AVERAGE contrast under the headline said
     * 12.5:1 and hid the actual problem. Measuring the worst 24x24 tile
     * found the headline crossing the lit house at 768px with only
     * 3.58:1 behind it -- over the 3:1 large-text bar on paper, and
     * visibly washed out in practice. The old vertical wash did not
     * start until 26% down, which is below where the headline sits at
     * tablet widths, so that text had almost no scrim at all.
     *
     * Now a single bottom-left ellipse sized in PERCENTAGES, so it
     * covers the same part of the composition at every width instead of
     * drifting with a pixel radius. It is deep where the copy sits and
     * fully clear by 90% across, which keeps the sunset, the sky and
     * the pool water untouched -- a localized scrim, not a blanket. */
    background:
      radial-gradient(ellipse 82% 108% at 2% 100%,
        rgba(13, 35, 72, .78) 0%,
        rgba(13, 35, 72, .60) 34%,
        rgba(13, 35, 72, .30) 58%,
        rgba(13, 35, 72, .10) 76%,
        rgba(13, 35, 72, 0) 92%);
  }

  /* The scrim that actually carries the text, localized on BOTH axes.
   *
   * A bottom-left ellipse alone cannot do this job: at 768px the hero is
   * only 460px tall and the headline starts 27.8% down, far outside an
   * ellipse anchored at the bottom corner (measured 2.94:1 there). A
   * plain vertical wash reaches it, but washes the pool and sunset on
   * the right too, which is the blanket overlay we are told not to
   * build.
   *
   * So: a vertical gradient masked to fade out horizontally. Full
   * strength behind the text column, gone by 78% across, leaving the
   * pool water and the sun untouched. */
  .cfpgh-hero__text-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(13, 35, 72, 0) 0%,
      rgba(13, 35, 72, .30) 12%,
      rgba(13, 35, 72, .62) 30%,
      rgba(13, 35, 72, .78) 56%,
      rgba(13, 35, 72, .84) 100%);
    -webkit-mask-image: linear-gradient(90deg,
      #000 0%, #000 38%, rgba(0, 0, 0, .45) 58%, transparent 78%);
    mask-image: linear-gradient(90deg,
      #000 0%, #000 38%, rgba(0, 0, 0, .45) 58%, transparent 78%);
  }

  .cfpgh-hero__text-panel > .cfpgh-shell {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .cfpgh-hero__content {
    margin-top: auto;
    max-width: 480px;
  }

  .cfpgh-hero h1 {
    max-width: 460px;
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 52px;
    letter-spacing: normal;
  }

  .cfpgh-hero__copy--mobile {
    display: none;
  }

  .cfpgh-hero__copy--desktop {
    display: block;
    max-width: 440px;
    font-size: 16px;
    line-height: 24px;
  }

  .cfpgh-tpc {
    max-width: 560px;
    margin-top: -48px;
    padding: 22px 26px;
  }

  .cfpgh-tpc__grid {
    gap: 14px;
  }

  .cfpgh-home-main > .cfpgh-shell {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .cfpgh-section {
    margin-bottom: 64px;
  }

  .cfpgh-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cfpgh-quick-tile {
    min-height: 102px;
  }

  .cfpgh-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    align-items: stretch;
  }

  .cfpgh-featured-card__media {
    min-height: 330px;
    aspect-ratio: auto;
  }

  .cfpgh-featured-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
  }

  .cfpgh-checklist-sam {
    display: block;
  }

  .cfpgh-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cfpgh-trust-banner {
    padding: 28px 32px;
  }

  .cfpgh-starter-panel {
    padding: 32px 40px;
  }

  .cfpgh-starter-panel__cta {
    max-width: 420px;
  }

  .cfpgh-footer__grid {
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.8fr);
    gap: 60px;
    padding-top: 40px;
    padding-bottom: 34px;
  }

  .cfpgh-footer__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .cfpgh-footer-group {
    border: 0;
  }

  .cfpgh-footer-group__button {
    min-height: 32px;
    cursor: default;
    pointer-events: none;
  }

  .cfpgh-footer-group__symbol {
    display: none;
  }

  .cfpgh-footer-group__links,
  .cfpgh-footer-group.is-open .cfpgh-footer-group__links {
    display: flex;
    padding-top: 10px;
  }

  .cfpgh-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .cfpgh-header__inner {
    padding-inline: 16px;
  }

  .cfpgh-desktop-nav a {
    padding-inline: 12px;
    font-size: 13px;
  }

  .cfpgh-desktop-nav a:nth-child(4),
  .cfpgh-desktop-nav a:nth-child(5) {
    display: inline-flex;
  }

  .cfpgh-hero__photo-wrap {
    /* Raised the ceiling a bit — shows more of the photo vertically
     * (less crop/zoom from object-fit:cover) and, since the text block
     * is pinned to the bottom via margin-top:auto, pushes it further
     * down the scene too. */
    min-height: clamp(500px, 46vw, 700px);
  }

  .cfpgh-hero__text-panel {
    height: clamp(500px, 46vw, 700px);
  }

  .cfpgh-hero__content {
    max-width: 560px;
  }

  .cfpgh-hero h1 {
    max-width: 560px;
    font-size: 54px;
    line-height: 62px;
  }

  .cfpgh-tpc {
    max-width: 720px;
    margin-top: -56px;
    padding: 26px 32px;
  }

  .cfpgh-section h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .cfpgh-quick-grid,
  .cfpgh-topic-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cfpgh-quick-tile,
  .cfpgh-topic-tile {
    min-height: 126px;
  }

  .cfpgh-featured-card__media {
    min-height: 380px;
  }

  .cfpgh-checklist-sam {
    width: 175px;
  }
}

/* Measured at every required width from 320-430px: the base 2-column
 * .cfpgh-quick-grid / .cfpgh-topic-grid (repeat(2, minmax(0, 1fr)))
 * leaves only ~60-110px for each tile's label once the fixed-width icon
 * (and, for topic tiles, the chevron) and gaps are subtracted — enough
 * to force labels like "Green or Cloudy Water" or "Equipment & Repairs"
 * into 3-4 cramped lines. A single column gives every label its full
 * width back (confirmed 1-2 lines everywhere in this range), matching
 * the single-column treatment .cfpgh-quick-grid already had below
 * 340px -- just widened enough to cover the whole required range
 * instead of shrinking font size or touching the card design itself. */
@media (max-width: 430px) {
  .cfpgh-quick-grid,
  .cfpgh-topic-grid {
    grid-template-columns: 1fr;
  }

  /* v5.2.1: a live audit flagged the six single-column problem tiles as
   * "occupying considerable vertical space" -- fair at 112px min-height
   * with 18px vertical padding each, stacked six deep. ~9% off both
   * (112px -> 102px, 18px -> 16px) keeps every measured 1-2 line label
   * from the comment above unaffected and stays far above the 48px tap
   * minimum -- this only trims the padding around already-short label
   * text, not the tap target itself. */
  .cfpgh-quick-tile {
    min-height: 102px;
    padding: 16px 16px;
  }
}

@media (max-width: 340px) {
  /* Below this width the 2x2 metric grid would crowd values like
   * "60% · Up to 0.8 in." too tightly against the divider; a single
   * column stays readable instead of colliding. */
  .cfpgh-tpc__grid {
    grid-template-columns: 1fr;
  }

  .cfpgh-tpc__tile:not(:nth-child(2n)) {
    border-right: none;
  }

  .cfpgh-tpc__tile:not(:last-child) {
    border-bottom: 1px solid var(--cfpgh-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* html must be listed explicitly: the scrolling element is the root,
   * which is the PARENT of .cfpgh-body, so ".cfpgh-body *" never reached
   * it and site.css's `html { scroll-behavior: smooth }` still animated
   * every anchor jump for people who asked for reduced motion. */
  html,
  .cfpgh-body *,
  .cfpgh-body *::before,
  .cfpgh-body *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  /* Hero video off entirely — the still poster image underneath (already
   * in the markup as the <picture><img>) shows instead, no motion at all. */
  .cfpgh-hero__video {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Trending row, mobile dock, seasonal tints
 * What remains of the Command Center block after its "Today's Pool
 * Outlook" panel was removed in v4.99.2 (it duplicated the conditions
 * dashboard). Mobile-first; desktop refinements at the bottom.
 * ═══════════════════════════════════════════════════════════════ */

/* Trending editorial row */
.cfpgh-trending-heading {
  margin: 26px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  color: var(--cfpgh-navy);
}

.cfpgh-trending-row {
  display: grid;
  gap: 12px;
}

.cfpgh-trending-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  align-content: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--cfpgh-border);
  background: var(--cfpgh-white);
  box-shadow: var(--cfpgh-shadow-card);
  color: var(--cfpgh-navy);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.cfpgh-trending-card__media {
  grid-row: 1 / 3;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.cfpgh-trending-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfpgh-trending-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.cfpgh-trending-card__sub {
  font-size: 12px;
  color: var(--cfpgh-muted);
}

@media (hover: hover) and (pointer: fine) {
  .cfpgh-trending-card:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 135, 122, 0.4);
    box-shadow: 0 10px 22px -10px rgba(13, 35, 72, 0.3);
  }
}

/* Mobile quick-action dock. [hidden] wins until JS reveals it; the
 * is-open class on <body> reserves scroll room so the dock never
 * covers the last content line. Never rendered >=768px. */
.cfpgh-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(13, 35, 72, 0.94);
  box-shadow: 0 12px 30px -8px rgba(6, 18, 38, 0.6);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

@supports (backdrop-filter: blur(8px)) {
  .cfpgh-dock {
    background: rgba(13, 35, 72, 0.85);
    backdrop-filter: blur(8px);
  }
}

.cfpgh-dock.is-open {
  transform: translateY(0);
  opacity: 1;
}

.cfpgh-dock[hidden] { display: none; }

.cfpgh-dock__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 52px;
  justify-content: center;
  border-radius: 13px;
  color: #eaf2fb;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.cfpgh-dock__item:active { background: rgba(255, 255, 255, 0.12); }

.cfpgh-dock__item:focus-visible {
  outline: 2px solid var(--cfpgh-gold);
  outline-offset: 2px;
}

body.cfpgh-dock-open .cfpgh-deep { padding-bottom: 124px; }

/* Seasonal tints: quarter-scale mood shifts on the ambient tokens
 * only. The hurricane-season flag additionally warms the gold accent
 * slightly -- the visible, explicit signal is the season badge in the
 * Command Center, not a color code a visitor must decode. */
.cfpgh-body.cfpgh-season--winter { --cfpgh-day-sky: rgba(150, 190, 225, 0.08); }
.cfpgh-body.cfpgh-season--spring { --cfpgh-day-sky: rgba(140, 215, 190, 0.08); }
.cfpgh-body.cfpgh-season--fall   { --cfpgh-day-sky: rgba(235, 195, 130, 0.08); }

@media (min-width: 768px) {
  .cfpgh-trending-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .cfpgh-trending-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 6px;
    padding: 12px;
    align-content: start;
  }

  .cfpgh-trending-card__media {
    grid-row: auto;
    /* v5.2.1: a live audit noted these three cards read visually small
     * next to the large Featured Guide card above them on desktop.
     * Taller media (16:10 -> 16:9.2, a modest bump) and larger title
     * type close some of that gap without touching the mobile layout
     * or the card's row/grid structure. */
    aspect-ratio: 16 / 9.2;
  }

  .cfpgh-trending-card strong {
    font-size: 15.5px;
    line-height: 1.35;
  }

  .cfpgh-dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cfpgh-trending-card,
  .cfpgh-dock {
    transition: none;
  }
}

/* =====================================================================
 * v4.92.0 — Art direction pass: time-of-day sky, the deep end, and a
 * full-bleed editorial band.
 *
 * Presentation only. Nothing here adds a request, changes a URL, or
 * touches the conditions pipeline; every rule below restyles markup
 * that already exists.
 * ===================================================================== */

/* Full-bleed children (the deep band, the featured band) escape the
 * shell with a 100vw pseudo-element. `clip` rather than `hidden` so it
 * cannot turn the page into a scroll container and break the sticky
 * header, and so the page can never scroll sideways on the scrollbar
 * gutter difference between 100vw and 100%. */
.cfpgh-home-main {
  overflow-x: clip;
}

/* ---------------------------------------------------------------------
 * Time-of-day sky grade
 *
 * A single low-alpha wash layered over the hero photograph, keyed to a
 * phase class the inline head script puts on <html> from the visitor's
 * own clock. The photo, the <picture>, its fetchpriority and the
 * existing scrim are all untouched: this is one extra gradient, zero
 * extra bytes, and no effect on LCP.
 *
 * Fail-safe by construction — with no JS there is no phase class, both
 * tokens stay transparent, and the hero renders exactly as it does
 * today. These never carry meaning and never sit behind text that
 * relies on them for contrast; the existing scrim does that work.
 * ------------------------------------------------------------------- */
.cfpgh-body {
  --cfpgh-hour-a: rgba(0, 0, 0, 0);
  --cfpgh-hour-b: rgba(0, 0, 0, 0);
  --cfpgh-hour-filter: none;
}

.cfpgh-phase--dawn .cfpgh-body {
  --cfpgh-hour-a: rgba(247, 178, 58, .17);
  --cfpgh-hour-b: rgba(194, 65, 12, .08);
  --cfpgh-hour-filter: saturate(1.04);
}

.cfpgh-phase--morning .cfpgh-body {
  --cfpgh-hour-a: rgba(56, 148, 214, .15);
  --cfpgh-hour-b: rgba(255, 255, 255, .05);
  --cfpgh-hour-filter: brightness(1.04) saturate(1.02);
}

.cfpgh-phase--midday .cfpgh-body {
  --cfpgh-hour-a: rgba(56, 148, 214, .07);
  --cfpgh-hour-b: rgba(255, 255, 255, .03);
  --cfpgh-hour-filter: brightness(1.06);
}

.cfpgh-phase--golden .cfpgh-body {
  --cfpgh-hour-a: rgba(247, 178, 58, .24);
  --cfpgh-hour-b: rgba(194, 65, 12, .10);
  --cfpgh-hour-filter: saturate(1.08);
}

.cfpgh-phase--dusk .cfpgh-body {
  --cfpgh-hour-a: rgba(194, 65, 12, .20);
  --cfpgh-hour-b: rgba(13, 35, 72, .38);
  --cfpgh-hour-filter: saturate(1.02) brightness(.86);
}

.cfpgh-phase--night .cfpgh-body {
  --cfpgh-hour-a: rgba(13, 35, 72, .58);
  --cfpgh-hour-b: rgba(28, 100, 153, .26);
  --cfpgh-hour-filter: brightness(.66) saturate(.88);
}

.cfpgh-hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cfpgh-hour-a) 0%, var(--cfpgh-hour-b) 46%, rgba(255, 255, 255, 0) 76%);
  pointer-events: none;
}

.cfpgh-hero__photo {
  filter: var(--cfpgh-hour-filter);
}

/* ---------------------------------------------------------------------
 * The deep end
 * ------------------------------------------------------------------- */
.cfpgh-deep {
  position: relative;
  margin-top: 60px;
  padding-top: 44px;
  padding-bottom: 4px;
}

/* Base field. */
.cfpgh-deep::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--cfpgh-navy);
}

/* Ambient depth, the same low-alpha treatment used elsewhere: never
 * behind text that depends on it, never contrast-critical. */
.cfpgh-deep::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 18% 0%, rgba(56, 148, 214, .26), rgba(56, 148, 214, 0) 62%),
    radial-gradient(100% 55% at 86% 100%, rgba(21, 135, 122, .22), rgba(21, 135, 122, 0) 60%);
}

.cfpgh-deep > .cfpgh-section {
  position: relative;
  z-index: 1;
}

/* Wave transition into the band, sitting on the white above it. */
.cfpgh-deep__wave {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 50%;
  width: 100vw;
  transform: translate(-50%, -100%);
  line-height: 0;
  pointer-events: none;
}

.cfpgh-deep__wave svg {
  display: block;
  width: 100%;
  height: 44px;
  fill: var(--cfpgh-navy);
}

.cfpgh-deep .cfpgh-section h2 {
  color: var(--cfpgh-white);
}

/* Topic tiles: the same tiles, lifted off a dark field. The icon chip
 * keeps its light background so the existing icon artwork stays legible
 * exactly as drawn — the glow is added around it, not applied to it. */
.cfpgh-deep .cfpgh-topic-tile {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: var(--cfpgh-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cfpgh-deep .cfpgh-topic-tile .cfpgh-icon {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 0 20px rgba(56, 148, 214, .40);
}

.cfpgh-deep .cfpgh-topic-tile__chevron {
  color: #9ecbf0;
}

.cfpgh-deep .cfpgh-topic-tile:focus-visible {
  outline-color: #9ecbf0;
}

/* Trust banner. */
.cfpgh-deep .cfpgh-trust-banner {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}

.cfpgh-deep .cfpgh-trust-banner__body h2 {
  color: var(--cfpgh-white);
}

.cfpgh-deep .cfpgh-trust-banner__body p {
  color: rgba(255, 255, 255, .78);
}

.cfpgh-deep .cfpgh-text-link {
  color: #9ecbf0;
}

/* Starter Pack. Already navy, so on a navy field it inverts to warm
 * cream — the page's one bright closing note, and the strongest
 * contrast pairing in the palette. */
.cfpgh-deep .cfpgh-starter-panel {
  background: var(--cfpgh-sand);
  color: var(--cfpgh-navy);
}

.cfpgh-deep .cfpgh-starter-panel h2,
.cfpgh-deep .cfpgh-starter-panel > p:not(.cfpgh-eyebrow):not(.cfpgh-starter-panel__privacy) {
  color: var(--cfpgh-navy);
}

.cfpgh-deep .cfpgh-starter-panel .cfpgh-eyebrow--gold {
  color: #8a5a00;
}

.cfpgh-deep .cfpgh-starter-panel__privacy,
.cfpgh-deep .cfpgh-starter-panel__pending > p {
  color: #4a5568;
}

.cfpgh-deep .cfpgh-starter-panel .cfpgh-button--primary {
  background: var(--cfpgh-navy);
  color: var(--cfpgh-white);
}

/* ---------------------------------------------------------------------
 * Full-bleed featured band
 * ------------------------------------------------------------------- */
.cfpgh-featured-card--bleed {
  position: relative;
  display: block;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--cfpgh-navy);
  box-shadow: none;
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__media {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__media img,
.cfpgh-featured-card--bleed .cfpgh-featured-card__media .cfpgh-photo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.cfpgh-featured-card--bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(13, 35, 72, .93) 6%, rgba(13, 35, 72, .62) 42%, rgba(13, 35, 72, .18) 78%, rgba(13, 35, 72, .06) 100%);
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 1200px;
  min-height: 320px;
  margin-inline: auto;
  padding: 120px 16px 32px;
  color: var(--cfpgh-white);
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__body h3 {
  color: var(--cfpgh-white);
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__body h3 a,
.cfpgh-featured-card--bleed .cfpgh-featured-card__body p {
  color: var(--cfpgh-white);
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__body .cfpgh-eyebrow {
  color: var(--cfpgh-gold);
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__body .cfpgh-meta {
  color: rgba(255, 255, 255, .76);
}

.cfpgh-featured-card--bleed .cfpgh-featured-card__body .cfpgh-text-link {
  color: #ffffff;
}

@media (min-width: 768px) {
  .cfpgh-deep {
    margin-top: 76px;
    padding-top: 56px;
  }

  .cfpgh-deep__wave svg {
    height: 60px;
  }

  .cfpgh-featured-card--bleed .cfpgh-featured-card__body {
    min-height: 420px;
    padding: 160px 32px 44px;
  }

  .cfpgh-featured-card--bleed .cfpgh-featured-card__body p {
    max-width: 62ch;
  }
}

/* =====================================================================
 * v4.92.1 — Cohesion and presentation pass.
 *
 * Six corrections found by measuring the assembled page rather than
 * each component in isolation. Presentation only; no markup, copy,
 * links, or data involved.
 * ===================================================================== */

/* 1. The deep band has to actually reach the footer.
 *
 * Measured: a 64px strip of white (48px below 768px) was left between
 * the bottom of the navy field and the top of the navy footer, which
 * broke the one thing the band exists to do. The source is the home
 * shell's own bottom padding, so the fix is to move that padding
 * inside the band rather than to overhang the footer -- an overhang
 * would paint the band's ambient wash over the footer's first row of
 * links, since an absolutely positioned pseudo-element with a z-index
 * paints above the static footer that follows it. */
.cfpgh-home-main > .cfpgh-shell {
  padding-bottom: 0;
}

.cfpgh-deep {
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .cfpgh-deep {
    padding-bottom: 64px;
  }
}

/* The mobile dock's reserved scroll room used to sit on
 * .cfpgh-home-main, which put 76px of white between the navy band and
 * the navy footer whenever the dock was open. It belongs inside the
 * band (48px + 76px), so the reserve stays navy. */

/* 2. Six-across tile grids were too narrow for their own labels.
 *
 * Measured at 1200px and 1440px: 182px tiles, with "Equipment &
 * Repairs", "Weather & Storms" and "Permits & Safety" all breaking to
 * three cramped lines. This is the same failure already documented and
 * fixed at 320-430px, just at the other end of the range and never
 * caught. Three across gives every label its width back (1-2 lines
 * everywhere) and turns two ragged rows into a deliberate 3x2 block. */
@media (min-width: 1100px) {
  .cfpgh-quick-grid,
  .cfpgh-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .cfpgh-quick-tile,
  .cfpgh-topic-tile {
    min-height: 96px;
  }
}

/* 3. Breathing room around the full-bleed featured band.
 *
 * Measured: 12px between the section heading and the top of the band,
 * and 0px between the band and "Trending in Central Florida" — the
 * trending heading's own top margin collapses against the band. A band
 * that runs edge to edge needs more air than a card, not less. */
.cfpgh-featured-card--bleed {
  margin-top: 24px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .cfpgh-featured-card--bleed {
    margin-top: 32px;
    margin-bottom: 48px;
  }
}

/* 4. Trending cards: let the artwork reach the card edge.
 *
 * In the stacked layout the thumbnail sat inset inside the card's
 * padding with 6px between it and the title, which read as a cropping
 * mistake rather than a choice. Bleeding it to the top edge with the
 * card's own corner radius matches the featured band directly above it
 * and makes the row look like one family. Mobile keeps its compact
 * 88px thumbnail row, which was already right. */
@media (min-width: 768px) {
  .cfpgh-trending-card {
    padding: 0 0 16px;
    overflow: hidden;
    row-gap: 4px;
  }

  .cfpgh-trending-card__media {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 0;
  }

  .cfpgh-trending-card strong,
  .cfpgh-trending-card__sub {
    padding-inline: 16px;
  }
}

/* 5. The trending heading is a subhead inside the featured section, not
 *    a peer of the page's section headings — give it the eyebrow-scale
 *    treatment the rest of the page uses for that job. */
.cfpgh-trending-heading {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* =====================================================================
 * v4.93.0 — let the site-wide water ground through on the homepage.
 *
 * .cfpgh-home-main painted flat white over the whole area between the
 * hero and the deep band, which would have hidden the new ground on
 * the one page that matters most. The hero, the full-bleed featured
 * band and the deep band all still paint their own opaque surfaces, so
 * only the light sections change.
 * ===================================================================== */
.cfpgh-home-main,
.cfpgh-body {
  background: transparent;
}

/* The hero's own white fallback ground ran on below the photograph and
 * met the water on a hard horizontal line. The photograph paints over
 * this area regardless, so dropping the fill removes the seam without
 * changing the hero itself. */
.cfpgh-hero {
  background: transparent;
}

/* =====================================================================
 * v4.94.0 — the one homepage label that sits on the water wallpaper.
 *
 * .cfpgh-eyebrow ("Start here", "Seasonal checklist") is the only text
 * on the homepage whose nearest opaque ancestor is the wallpaper
 * itself. Against the veiled photograph's worst case, rgb(142,198,214),
 * the brand teal-text token measures 3.26:1; this deeper teal measures
 * 4.76:1. On white it simply reads as a slightly richer teal.
 *
 * The gold and inverted eyebrow variants are untouched -- they sit on
 * the navy band and on the cream Starter Pack panel, not on the water.
 * ===================================================================== */
.cfpgh-eyebrow {
  color: #0B534B;
}

/* =====================================================================
 * v4.95.0 — Progressive reveal motion system
 *
 * One set of tokens drives every reveal on the page, so the timing
 * stays consistent and tunable from a single place instead of being
 * scattered across component rules.
 *
 * The whole system is opt-in: nothing below applies until JS adds the
 * -ready / -entrance classes, so the homepage is fully visible with no
 * JavaScript, with JS still loading, and under prefers-reduced-motion
 * (where the script never initialises the effects at all).
 * ===================================================================== */
.cfpgh-body {
  /* A restrained ease-out. No overshoot, no spring -- the deceleration
   * is what reads as "calm", and anything springier fights the copy. */
  --cfpgh-mo-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --cfpgh-mo-dur: 560ms;          /* individual elements   */
  --cfpgh-mo-dur-section: 700ms;  /* the section's own fade */
  --cfpgh-mo-stagger: 90ms;       /* between siblings      */
  --cfpgh-mo-rise: 22px;          /* travel distance       */
}

/* Mobile: shorter travel and a slightly quicker cadence, so a column
 * of stacked cards doesn't turn into a long queue on a small screen. */
@media (max-width: 767px) {
  .cfpgh-body {
    --cfpgh-mo-rise: 16px;
    --cfpgh-mo-stagger: 80ms;
    --cfpgh-mo-dur: 500ms;
  }
}

/* ---------------------------------------------------------------------
 * Hero entrance
 *
 * A short, four-step introduction on load -- headline, copy, trust row,
 * Command Center panel. It is deliberately brief (~770ms end to end)
 * and never gates scrolling or the primary actions: the panel's links
 * are clickable from the first frame because only opacity and transform
 * are involved, and nothing is pointer-events: none.
 *
 * The hero photograph is not touched, so the LCP element paints exactly
 * as it would without any of this.
 * ------------------------------------------------------------------- */
.cfpgh-hero--entrance .cfpgh-hero__entrance-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--cfpgh-mo-dur) var(--cfpgh-mo-ease),
    transform var(--cfpgh-mo-dur) var(--cfpgh-mo-ease);
  transition-delay: calc(var(--cfpgh-entrance-i, 0) * var(--cfpgh-mo-stagger));
}

.cfpgh-hero--entrance.cfpgh-hero--entered .cfpgh-hero__entrance-item {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .cfpgh-hero--entrance .cfpgh-hero__entrance-item {
    transform: translateY(6px);
  }
}

/* ---------------------------------------------------------------------
 * Sticky/pinned moment: evaluated and deliberately not shipped.
 *
 * "Browse by Topic" was the candidate -- hold the heading while its
 * 3x2 grid passes beneath. Measured in the browser, that section is
 * only 260px tall, so the heading would pin for roughly 200px: not
 * enough for anyone to read it as intentional, while still adding a
 * z-index relationship with the deep band's pseudo-element fills and
 * a second sticky element competing with the 64px site header.
 *
 * No other homepage section is tall enough to pin against either. A
 * pin that lasts less than one screen of scrolling reads as a bug, so
 * this is left out until there is a section that genuinely earns it.
 * ------------------------------------------------------------------- */

/* Reduced motion: belt and braces. The script already declines to
 * initialise any of this, so these rules should never have anything to
 * neutralise -- they exist so that a future code path that adds a class
 * early still cannot leave content hidden or moving. */
@media (prefers-reduced-motion: reduce) {
  .cfpgh-section.cfpgh-reveal-ready,
  .cfpgh-reveal-child,
  .cfpgh-hero--entrance .cfpgh-hero__entrance-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }
}

/* =====================================================================
 * v4.96.0 — Line-by-line headline + arrival scale
 * ===================================================================== */

/* The hero headline rises line by line out of its own mask. Applied
 * only once JS has wrapped the authored lines, so without JS the h1 is
 * an ordinary two-line heading with no mask and nothing hidden. */
.cfpgh-hero--split-title .cfpgh-hero__line {
  display: block;
  overflow: hidden;
  /* The accent arch under "Confidence." is drawn below the text
   * baseline; without this it would be clipped by the mask. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.cfpgh-hero--entrance.cfpgh-hero--split-title .cfpgh-hero__line-inner {
  display: block;
  transform: translateY(108%);
  transition: transform 720ms var(--cfpgh-mo-ease);
  transition-delay: calc(var(--cfpgh-line-i, 0) * 110ms);
}

.cfpgh-hero--entered.cfpgh-hero--split-title .cfpgh-hero__line-inner {
  transform: translateY(0);
}

/* The headline itself no longer fades as one block -- the lines carry
 * the movement, so fading on top of them would read as two effects. */
.cfpgh-hero--entrance.cfpgh-hero--split-title .cfpgh-hero__content h1.cfpgh-hero__entrance-item {
  opacity: 1;
  transform: none;
}

/* Arrival scale.
 *
 * Cards settle *down* to their resting size rather than growing into
 * it: scaling below 1 can never widen an element, which matters
 * because the featured band is a 100vw full-bleed element and growing
 * it would push the page sideways. */
.cfpgh-body {
  --cfpgh-mo-scale: 0.985;
}

.cfpgh-reveal-child {
  transform: translateY(var(--cfpgh-mo-rise)) scale(var(--cfpgh-mo-scale));
}

.cfpgh-reveal-child.cfpgh-reveal-child--in {
  transform: translateY(0) scale(1);
}

/* The featured band's photograph gets the slight image scale, inside a
 * container that already clips, so no empty space can ever appear
 * around it and the crop is preserved. */
.cfpgh-reveal-child.cfpgh-featured-card--bleed .cfpgh-featured-card__media img {
  transform: scale(1.035);
  transition: transform 900ms var(--cfpgh-mo-ease);
}

.cfpgh-reveal-child--in.cfpgh-featured-card--bleed .cfpgh-featured-card__media img {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .cfpgh-hero--split-title .cfpgh-hero__line-inner,
  .cfpgh-reveal-child,
  .cfpgh-reveal-child.cfpgh-featured-card--bleed .cfpgh-featured-card__media img {
    transform: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * v4.97.0 — Focus: the nearest card forward, its neighbours receding
 * ══════════════════════════════════════════════════════════════════
 *
 * The reveal system above introduces a card once, on entry. This adds
 * the ongoing half: as you scroll, whichever row sits nearest the
 * middle of the screen is the one fully forward, and the rows above
 * and below it sit back. Cards enter, hold, and leave, rather than
 * arriving and then all sitting at the same weight.
 *
 * The two systems compose rather than compete. The reveal owns the
 * 0 -> 1 entry (with its stagger); focus owns the resting state after
 * it, through custom properties the JS writes per frame. That is why
 * the rule below is scoped to `--in`: an element that has not revealed
 * yet is still owned by the reveal transition and must not be touched.
 *
 * THE OPACITY FLOOR IS A CONTRAST DECISION, NOT A TASTE ONE.
 * A receding card is still real text a visitor can stop scrolling on
 * and read, so its dimmest state has to clear WCAG AA on its own.
 * --body #334155 composited on white at 0.80 measures 5.4:1; at the
 * 0.5 the demo used it falls to about 2.6:1. Depth is carried by scale
 * and shadow instead, which cost nothing in contrast. Do not lower
 * this floor without re-measuring rendered pixels. The floor lives in
 * home-figma.js, in the `1 - t * 0.20` in the focus unit's apply() --
 * it is not a token here, because a token the JS did not read would be
 * a lie about where the value comes from.
 *
 * No transition: the value is already continuous, driven per frame by
 * the shared rAF loop. A transition here would lag the scroll. */
.cfpgh-reveal-child.cfpgh-reveal-child--in.cfpgh-focus {
  opacity: var(--cfpgh-focus-dim, 1);
  transform: scale(var(--cfpgh-focus-scale, 1));
  transition: none;
}

/* Shadow recedes with the card. Free, contrast-wise, so it carries
 * more of the depth than the opacity is allowed to. */
.cfpgh-focus.cfpgh-quick-card,
.cfpgh-focus.cfpgh-topic-card,
.cfpgh-focus.cfpgh-trending-card,
.cfpgh-focus.cfpgh-checklist-card,
.cfpgh-focus.cfpgh-trust-banner {
  box-shadow:
    0 calc(var(--cfpgh-focus-depth, 0) * 18px + 2px)
      calc(var(--cfpgh-focus-depth, 0) * 34px + 8px)
      rgba(13, 35, 72, calc(var(--cfpgh-focus-depth, 0) * 0.10 + 0.05));
}

@media (prefers-reduced-motion: reduce) {
  .cfpgh-reveal-child.cfpgh-reveal-child--in.cfpgh-focus {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* One colour had no headroom left to spend on a fade.
 *
 * Measured on rendered pixels with every focus unit pinned at the 0.80
 * floor, the trending caption -- .cfpgh-trending-card__sub, #64748b at
 * 12px -- lands at 3.40:1 desktop / 3.44:1 mobile against a 4.5
 * requirement.
 *
 * That is not a fault in the fade. #64748b on the card ground measures
 * 4.54:1 at full opacity, about a tenth of a point of margin, so ANY
 * dimming breaks it and no floor high enough to save it is high enough
 * to see.
 *
 * Opacity cannot be escaped from inside -- a child can never be more
 * opaque than its parent -- so exempting the caption is not an option.
 * The headroom has to come from the colour, and --body is already in
 * the palette. With this in place all 27 measurable text runs pass at
 * the floor; without it, three fail.
 *
 * The trust banner's rgba(255,255,255,.78) body copy was ALSO changed
 * during this work and then reverted: measured, it holds 6.14:1 at the
 * floor on its own and never needed the help. */
.cfpgh-focus .cfpgh-trending-card__sub {
  color: var(--body);
}

/* ══════════════════════════════════════════════════════════════════
 * v4.98.0 — Compact homeowner updates + quick actions
 * ══════════════════════════════════════════════════════════════════
 *
 * Replaces the tall stacked run of alert card -> pool tip -> Ask Sam
 * with two compact cards side by side, a quick-action row, and one
 * final CTA. Namespaced under .cfpgh-updates / .cfpgh-quick-actions so
 * nothing here can reach the rest of the homepage.
 *
 * Card A carries a headline, one summary sentence and a link. The full
 * regulatory title, source-verification date, badges and additional-
 * notice count are not deleted -- they live on the recall detail page
 * and the notices archive, which is where someone acting on a recall
 * needs them. Red is an accent and a status signal only. */
.cfpgh-updates {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

/* The packet is specific: "On true mobile widths, stack safety and tip
 * cards vertically. Do not force two narrow columns below approximately
 * 640px." */
@media (min-width: 640px) {
  .cfpgh-updates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
}

.cfpgh-update-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--cfpgh-border);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(13, 35, 72, 0.07);
}

/* A left rule rather than a coloured card: the severity has to be
 * visible without the panel itself shouting. */
.cfpgh-update-card--alert {
  border-left: 4px solid var(--cfpgh-teal, #15877a);
}

.cfpgh-update-card--tone-red { border-left-color: #c0392b; }
.cfpgh-update-card--tone-gold { border-left-color: #b8791a; }

.cfpgh-update-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfpgh-teal-text, #0f6e63);
}

.cfpgh-update-card--tone-red .cfpgh-update-card__eyebrow { color: #a5342a; }
.cfpgh-update-card--tone-gold .cfpgh-update-card__eyebrow { color: #8a5a00; }

.cfpgh-update-card__eyebrow-icon {
  display: grid;
  place-items: center;
}

.cfpgh-update-card__eyebrow-icon svg {
  width: 17px;
  height: 17px;
}

.cfpgh-update-card__title {
  margin: 0;
  font-family: var(--head);
  font-size: 1.2rem;
  line-height: 1.22;
  color: var(--cfpgh-navy);
  text-wrap: balance;
}

.cfpgh-update-card__title a {
  color: inherit;
  text-decoration: none;
}

.cfpgh-update-card__title a:hover,
.cfpgh-update-card__title a:focus-visible {
  text-decoration: underline;
}

/* A long official title is clamped rather than allowed to set the
 * card's height. No fixed height is used anywhere here, so a short
 * title simply produces a shorter card. */
@supports (-webkit-line-clamp: 3) {
  .cfpgh-update-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.cfpgh-update-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cfpgh-body);
}

.cfpgh-update-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  /* v5.2.1: this is now always nested inside .cfpgh-update-card__actions,
   * which owns the bottom-anchoring (margin-top: auto) and the row
   * layout. align-self/margin-top here were leftover from when this was
   * a direct child of the column-flex card and fought the new wrapper,
   * pushing the second action down unevenly when the two links wrapped
   * onto separate lines. */
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cfpgh-pool-text, #1c6499);
  text-decoration: none;
}

.cfpgh-update-card--tone-red .cfpgh-update-card__link { color: #a5342a; }

.cfpgh-update-card__link:hover,
.cfpgh-update-card__link:focus-visible {
  text-decoration: underline;
}

.cfpgh-update-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: auto;
}

.cfpgh-update-card__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: var(--cfpgh-teal, #15877a);
  border-radius: 10px;
}

.cfpgh-update-card__btn:hover,
.cfpgh-update-card__btn:focus-visible {
  background: #0f6e63;
}

/* Small secondary link, shown beside "View recall details" only when
 * more than one alert is currently eligible. Deliberately quieter than
 * the primary link -- it is a way out to the full list, not a second
 * call to action competing with the first. */
.cfpgh-update-card__all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cfpgh-muted, #64748b);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cfpgh-update-card__all-link:hover,
.cfpgh-update-card__all-link:focus-visible {
  color: var(--cfpgh-navy);
}

/* v5.2.1 -- consolidating the standalone tip and Ask Sam cards (v5.1.x)
 * left .cfpgh-updates rendering at most one card now, the alert card,
 * inside a grid still laid out for two. At >=640px that put a single
 * narrow card in column 1 with an empty column 2 beside it -- reading
 * as a missing second card rather than an intentional single notice.
 *
 * :only-child scopes this to exactly that case: if a second card is
 * ever reintroduced, it reverts to the original two-column layout with
 * no further change needed here. */
.cfpgh-updates > .cfpgh-update-card:only-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .cfpgh-updates > .cfpgh-update-card:only-child {
    flex-direction: row;
    align-items: center;
    gap: 20px 28px;
    padding: 18px 26px;
  }

  .cfpgh-updates > .cfpgh-update-card:only-child .cfpgh-update-card__eyebrow {
    flex: none;
    width: 132px;
  }

  .cfpgh-updates > .cfpgh-update-card:only-child .cfpgh-update-card__title {
    flex: 1 1 260px;
    margin: 0;
    -webkit-line-clamp: 2;
  }

  .cfpgh-updates > .cfpgh-update-card:only-child .cfpgh-update-card__text {
    flex: 1 1 260px;
  }

  .cfpgh-updates > .cfpgh-update-card:only-child .cfpgh-update-card__actions {
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px 16px;
    margin-top: 0;
  }
}

/* ── Quick actions ─────────────────────────────────────────────────
 * NOT RENDERED as of v4.99.0 -- the approved build packet asks for this
 * module to stay off the homepage. The rules are kept so the row can be
 * restored by re-adding its markup alone, and cost nothing while no
 * element carries these classes. */

.cfpgh-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  /* Bottom margin matters: this row is the last thing before the
   * "What pool problem are you dealing with?" heading, and without it
   * the two read as one block. */
  margin: 14px 0 26px;
}

/* Four across from 360px. At 320 the row falls back to 2x2 rather than
 * squeezing four labels into ~74px each, which is the width where
 * "Equipment help" stops being readable. */
@media (min-width: 360px) {
  .cfpgh-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .cfpgh-quick-actions__item {
    min-height: 72px;
    padding: 10px 4px;
    font-size: 0.72rem;
  }
}

@media (min-width: 560px) {
  .cfpgh-quick-actions {
    gap: 8px;
  }

  .cfpgh-quick-actions__item {
    min-height: 76px;
    padding: 12px 8px;
    font-size: 0.8rem;
  }
}

.cfpgh-quick-actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 12px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: var(--cfpgh-navy);
  background: #ffffff;
  border: 1px solid var(--cfpgh-border);
  border-radius: 14px;
}

.cfpgh-quick-actions__item:hover,
.cfpgh-quick-actions__item:focus-visible {
  border-color: var(--cfpgh-pool, #3894d6);
  box-shadow: 0 6px 18px rgba(13, 35, 72, 0.09);
}

.cfpgh-quick-actions__icon {
  display: grid;
  place-items: center;
  color: var(--cfpgh-pool-text, #1c6499);
}

/* An editor-supplied short headline gets two lines; a full official
 * regulatory title falls back to three. Clamped rather than truncated
 * at a character count, because cutting a legal title mid-clause
 * produces nonsense. */
@supports (-webkit-line-clamp: 2) {
  .cfpgh-update-card__title--short {
    -webkit-line-clamp: 2;
  }
}

/* ── Hero CTAs (v5.1.0) ───────────────────────────────────────────────
 *
 * Replaces the three trust items. Mobile-first: stacked and full width,
 * which is also what guarantees the 48px target and stops either label
 * wrapping at 390px. */
.cfpgh-hero__ctas {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.cfpgh-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  font-family: var(--cfpgh-sans, inherit);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  /* Neither label may wrap; both fit at 320px at this size. */
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cfpgh-hero__cta--primary {
  color: var(--cfpgh-navy, #0d2348);
  background: var(--cfpgh-gold, #f7b23a);
  border: 2px solid var(--cfpgh-gold, #f7b23a);
}

.cfpgh-hero__cta--primary:hover,
.cfpgh-hero__cta--primary:focus-visible {
  background: #ffc95a;
  border-color: #ffc95a;
}

/* Subordinate: outlined and translucent, so the primary stays dominant
 * without making this one look disabled. */
.cfpgh-hero__cta--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 2px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.cfpgh-hero__cta--secondary:hover,
.cfpgh-hero__cta--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

@media (min-width: 768px) {
  /* Side by side, each sized to its own label rather than stretched. */
  .cfpgh-hero__ctas {
    grid-auto-flow: column;
    justify-content: start;
    gap: 14px;
    margin-top: 30px;
  }

  .cfpgh-hero__cta {
    font-size: 16px;
    padding: 14px 26px;
  }
}
