/**
 * CP · Geo Cards — self-contained styles (token-driven, brand-agnostic).
 * Scoped under .cp-geo-cards. Ported from the `.geo-grid` / `.geo-card` rules
 * on the approved installation page.
 */
.cp-geo-cards {
  --gc-fg: var(--wp--preset--color--text);
  --gc-primary: var(--wp--preset--color--primary);
  --gc-white: var(--wp--preset--color--white);
  --gc-display: var(--wp--preset--font-family--barlow-condensed);
  --gc-body: var(--wp--preset--font-family--roboto);
  --gc-cream: #FFF9F0;
  --gc-border: #E5E3DF;
  --gc-muted: #767676;
  --gc-max: 1100px;
  padding: var(--cp-section-py, 80px) clamp(24px, 5vw, 80px);
}
.cp-geo-cards.is-surface-white { background: var(--gc-white); }
.cp-geo-cards.is-surface-cream { background: var(--gc-cream); }
.cp-geo-cards .head { max-width: var(--gc-max); margin: 0 auto; }
.cp-geo-cards .head__lead {
  font-family: var(--gc-body); font-size: 17px; line-height: 27.2px;
  color: var(--gc-fg); margin: 12px 0 0; max-width: none;
}
.cp-geo-cards .eyebrow {
  font-family: var(--gc-body); font-weight: 600; font-size: 11px; line-height: 24px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gc-fg); margin: 0;
}
.cp-geo-cards .head h2 {
  font-family: var(--gc-display); font-weight: 700; font-size: var(--cp-h2, clamp(28px, 4vw, 44px));
  line-height: var(--cp-h2-line, 1.1); letter-spacing: -0.005em; color: var(--gc-fg); margin: 11px 0 0;
}
.cp-geo-cards .head h2 em { font-style: normal; color: var(--cp-em, var(--gc-primary)); }
.cp-geo-cards .geo-grid {
  max-width: var(--gc-max); margin: 32px auto 0; display: grid; gap: 20px;
}
.cp-geo-cards .geo-card {
  background: var(--gc-white); border: 1px solid var(--gc-border); border-top: 3px solid var(--cp-accent, var(--gc-primary));
  border-radius: 2px; padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cp-geo-cards a.geo-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); border-color: var(--cp-accent, var(--gc-primary));
}
.cp-geo-cards .geo-card h3 {
  font-family: var(--gc-display); font-weight: 700; font-size: 22px; line-height: 1.15;
  color: var(--gc-fg); margin: 0;
}
.cp-geo-cards .geo-card__meta { font-family: var(--gc-body); font-size: 13px; color: var(--gc-muted); }
.cp-geo-cards .geo-card__link {
  margin-top: 2px; font-family: var(--gc-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--cp-ink-accent, var(--gc-primary));
}
.cp-geo-cards .geo-card--soon { opacity: 0.92; }
.cp-geo-cards .geo-card--soon .geo-card__link { color: var(--gc-muted); }
/* The column count is the block's own (inline), so the breakpoints must win
   over it: two columns below 980px, one below 640px, as the Playbooks run. */
@media (max-width: 980px) { .cp-geo-cards .geo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .cp-geo-cards .geo-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) { .cp-geo-cards.is-phone-cols-2 .geo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; } }

/* The city page's region band (`is-variant-region`): centred like the Playbook's
   recognition band, a button to the hub, the state coverage map, the nearby
   cities under a second heading and an "Also serving" line. */
.cp-geo-cards.is-variant-region .head { text-align: center; }
/* The kicker is the Playbooks' .recognition__eyebrow, set in 700 (re-audit SA8). */
.cp-geo-cards.is-variant-region .eyebrow { font-weight: 700; }
.cp-geo-cards .geo-hub { text-align: center; margin: 28px 0 0; }
.cp-geo-cards .geo-hub .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--gc-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 4px; text-decoration: none; white-space: nowrap;
  background: var(--gc-primary); color: var(--wp--custom--color--on-primary);
}
.cp-geo-cards .geo-hub .btn:hover { background: var(--wp--custom--color--primary-hover); color: var(--cp-on-primary-hover, var(--wp--custom--color--on-primary)); }
.cp-geo-cards .geo-map { max-width: 640px; margin: 32px auto 0; }
.cp-geo-cards .geo-map img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cp-geo-cards .geo-subheading {
  font-family: var(--gc-display); font-weight: 700; font-size: var(--cp-h2, clamp(28px, 4vw, 44px));
  line-height: var(--cp-h2-line, 1.1); letter-spacing: -0.005em; color: var(--gc-fg); margin: 48px 0 0; text-align: center;
}
.cp-geo-cards .geo-subheading em { font-style: normal; color: var(--cp-em, var(--gc-primary)); }
/* Sibling cards centre under the centred heading, however many a hub has (one for Sarasota). */
.cp-geo-cards.is-variant-region .geo-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.cp-geo-cards.is-variant-region .geo-card { flex: 0 1 220px; text-align: center; }
/* Centred at every width in both Playbooks (the band's text-align); the link is
   the brand's secondary ink, and a brand whose link carries the uppercase rule
   underline sets `is-link-rule` (Grästen; re-audit MSA1). */
.cp-geo-cards.is-variant-region .geo-card__link { color: var(--wp--custom--color--secondary-fg, var(--gc-primary)); }
.cp-geo-cards.is-variant-region.is-link-rule .geo-card__link { align-self: center; border-bottom: 2px solid var(--gc-primary); padding-bottom: 3px; }
.cp-geo-cards .geo-note {
  font-family: var(--gc-body); font-size: 14px; line-height: 22px; color: #555555;
  max-width: 760px; margin: 24px auto 0; text-align: center;
}
/* `is-hub-in-note`: the hub link at the end of the note, in the brand's ink. */
.cp-geo-cards .geo-note a { color: var(--cp-ink-accent, var(--gc-primary)); font-weight: 700; white-space: nowrap; }
.cp-geo-cards .geo-note a:hover { text-decoration: underline; }
@media (max-width: 640px) { .cp-geo-cards.is-variant-region .geo-card { flex-basis: 100%; } }

/* The state pages and the Service Areas index (`is-variant-split`): the coverage
   map left, the intro right, the cards below -- the Playbook's `.split--map`. */
.cp-geo-cards .geo-split {
  max-width: var(--gc-max); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cp-geo-cards .geo-split .head { max-width: none; margin: 0; }
.cp-geo-cards .geo-split .head h2 { font-size: 36px; line-height: 1.08; }
.cp-geo-cards .geo-split .head__lead { font-size: 16px; margin-top: 14px; }
.cp-geo-cards .geo-split__media { margin: 0; }
.cp-geo-cards .geo-split__media img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cp-geo-cards.is-variant-split .geo-grid { margin-top: 56px; }
@media (max-width: 980px) {
  .cp-geo-cards .geo-split { grid-template-columns: 1fr; gap: 32px; }
  .cp-geo-cards .geo-split .head h2 { font-size: 26px; }
}

/* is-find-label (Generator One, re-audit R5): the subheading as the Playbook's
   .coverage__find-label, and the card names uppercase as its .state-card__name. */
.cp-geo-cards.is-find-label .geo-find-label {
  max-width: var(--gc-max); margin: 36px auto 0; text-align: left;
  font-family: var(--gc-body); font-weight: 700; font-size: 13px; line-height: 1.5; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gc-fg);
}
.cp-geo-cards.is-find-label .geo-card h3 { text-transform: uppercase; }

/* brand.php `layout` => 'geo-one' (body.cp-lo-geo-one): a grid of one card
   keeps the card at 360px, as the Playbook's .geo-grid--one, and fills the row
   only on phones (Optimize's one Louisiana card, staging re-audit SA1). */
@media (min-width: 641px) {
  body.cp-lo-geo-one .cp-geo-cards:not(.is-variant-region) .geo-grid:has(> :only-child) { grid-template-columns: minmax(0, 360px) !important; }
}

/* brand.php `layout` => 'h2-hold' (body.cp-lo-h2-hold): the split head's 36px
   holds down to 640px and is 28px below it (Service Areas, Louisiana), and the
   spoke region band's two headings are 36px, 28px below 640px, as the Optimize
   Playbook's `.split__copy h2` and `.recognition h2` (staging audit R2). */
@media (min-width: 641px) {
  body.cp-lo-h2-hold .cp-geo-cards .geo-split .head h2 { font-size: 36px; }
  body.cp-lo-h2-hold .cp-geo-cards.is-variant-region .head h2,
  body.cp-lo-h2-hold .cp-geo-cards.is-variant-region .geo-subheading { font-size: 36px; line-height: 1.05; }
}
@media (max-width: 640px) { body.cp-lo-h2-hold .cp-geo-cards .geo-split .head h2 { font-size: 28px; } }

/* brand.php `layout` => 'split-copy-eyebrow' (body.cp-lo-split-copy-eyebrow): in
   the map split the eyebrow is set as the copy's first line, 16px on 27.2px
   and 14px down with the heading directly under it, as the Optimize Playbook's
   `.split__copy p` sets it; the heading is 28px on 1.15 on phones (Service
   Areas, Louisiana; staging audit D, 18 Nov 2026). */
body.cp-lo-split-copy-eyebrow .cp-geo-cards .geo-split .head .eyebrow { font-size: 16px; line-height: 27.2px; margin-top: 14px; }
body.cp-lo-split-copy-eyebrow .cp-geo-cards .geo-split .head h2 { margin-top: 0; }
@media (max-width: 640px) { body.cp-lo-split-copy-eyebrow .cp-geo-cards .geo-split .head h2 { line-height: 1.15; } }
/* brand.php `layout` => 'geo-card-rhythm' (body.cp-lo-geo-card-rhythm): a city
   card's lines 8px apart and the meta line on 20px, as the Optimize Playbook's
   `.geo-card` (4.5px a card; every coverage grid; staging audit K). */
body.cp-lo-geo-card-rhythm .cp-geo-cards .geo-card { gap: 8px; }
body.cp-lo-geo-card-rhythm .cp-geo-cards .geo-card__meta { line-height: 20px; }
/* brand.php `layout` => 'region-band' (body.cp-lo-region-band): the spoke's
   region section is set as the Playbook's recognition band: 73px above and
   below at every width between two hairlines, the heading 10px under the
   eyebrow and the lead at 15px on 25.5px (spokes; staging audit H and K,
   18 Nov 2026). */
body.cp-lo-region-band .cp-geo-cards.is-variant-region { padding-top: 73px; padding-bottom: 73px; border-top: 1px solid var(--gc-border); border-bottom: 1px solid var(--gc-border); }
body.cp-lo-region-band .cp-geo-cards.is-variant-region .head h2 { margin-top: 10px; }
body.cp-lo-region-band .cp-geo-cards.is-variant-region .head__lead { font-size: 15px; line-height: 25.5px; }

/* A source line (a note carrying a link): the Playbook's .source-note, small and left. */
.cp-geo-cards .geo-note.geo-note--source { text-align: left; max-width: var(--content-max, 1100px); margin: 20px auto 0; font-size: 12px; line-height: 1.5; color: #444444; }
.cp-geo-cards .geo-note.geo-note--source a { color: #444444; text-decoration: underline; font-weight: 400; }
