/*
Theme Name: LPI Blog
Theme URI: https://localpoolinspections.com/
Author: Local Pool Inspections
Description: WordPress theme that mirrors the static localpoolinspections.com homepage UI.
             Lifts the same <header>/<footer> markup the static site uses and loads
             the same CSS so blog pages feel like a native section of the main site.
Version: 1.9.20261014fx31
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: lpi-blog
*/

/* This file carries the theme metadata + blog-only overrides.
   Visual tokens (colours, fonts, spacing) come from the parent site's
   stylesheets enqueued in functions.php (base.css + style.css).

   Static-site token reference (from /style.css on the droplet):
     --color-primary       #062b58   navy primary
     --color-primary-hover #0a3d7a
     --color-primary-light #e8eef6
     --color-accent        #ffbe01   gold
     --color-bg            #f8f9fb   page bg
     --color-surface       #ffffff   cards/panels
     --color-text          #0d1b2a   body+headings (high contrast)
     --color-text-muted    #4a5568   meta/secondary
     --color-text-faint    #94a3b8   tertiary
     --color-border        #d0d7e2
     --color-divider       #dde3ec
     --font-display        'Cabinet Grotesk'
     --font-body           'Satoshi'
*/

/* ----------------------------------------------------------------
   Layout shell — clears the fixed header on the static site.
   Top padding responsive: 7rem mobile → 11rem desktop.
   ---------------------------------------------------------------- */
.lpi__shell {
  max-width: var(--content-default, 960px);
  margin: 0 auto;
  padding: clamp(7rem, 12vw, 11rem) var(--space-6, 1.5rem) var(--space-16, 4rem);
  color: var(--color-text-muted, #4a5568);
}

/* Anchor offset so #links don't land under the fixed header */
html { scroll-padding-top: clamp(6rem, 10vw, 9rem); }

/* Section header (blog index hero, archive title) */
.lpi__hero {
  text-align: center;
  margin-bottom: var(--space-12, 3rem);
}
.lpi__hero h1 {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  /* 800 to match the homepage .section-title / .hero h1 weight (was 700). */
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3, 0.75rem);
  color: var(--color-primary, #062b58);
  line-height: 1.1;
}
[data-theme="dark"] .lpi__hero h1 { color: var(--color-text, #e6edf3); }
.lpi__hero p {
  color: var(--color-text-muted, #4a5568);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  max-width: 640px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   Post list — card grid (mirrors blog index aesthetic)
   ---------------------------------------------------------------- */
.lpi__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6, 1.5rem);
  margin-bottom: var(--space-16, 4rem);
}
.lpi__card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
              transform var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.lpi__card:hover {
  /* matched to the homepage .service-card:hover (amber border, -4px lift). */
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(6,43,88,0.12));
  border-color: var(--color-accent, #ffbe01);
  transform: translateY(-4px);
}
.lpi__card-inner { padding: var(--space-6, 1.5rem); }
.lpi__card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  flex-wrap: wrap;
  margin-bottom: var(--space-4, 1rem);
}
.lpi__card-date {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-faint, #94a3b8);
}
.lpi__card-tag {
  background: var(--color-primary-light, #e8eef6);
  color: var(--color-primary, #062b58);
  padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lpi__card-tag a { color: inherit; text-decoration: none; }
.lpi__card-title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: var(--text-lg, 1.25rem);
  font-weight: 700;
  color: var(--color-primary, #062b58);
  margin: 0 0 var(--space-3, 0.75rem);
  line-height: 1.3;
}
.lpi__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}
.lpi__card-title a:hover { color: var(--color-primary-hover, #0a3d7a); }
.lpi__card-excerpt {
  font-size: var(--text-sm, 0.9rem);
  color: var(--color-text-muted, #4a5568);
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------------
   Single post
   ---------------------------------------------------------------- */
.lpi__post-header {
  margin-bottom: var(--space-10, 2.5rem);
  text-align: center;
}
.lpi__post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  flex-wrap: wrap;
  margin-bottom: var(--space-3, 0.75rem);
}
.lpi__post-meta time {
  font-size: var(--text-sm, 0.9rem);
  color: var(--color-text-muted, #4a5568);
}
.lpi__post-cats { display: inline-flex; gap: 0.5rem; }
.lpi__post-cats a {
  background: var(--color-primary-light, #e8eef6);
  color: var(--color-primary, #062b58);
  padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lpi__post-cats a:hover {
  background: var(--color-primary, #062b58);
  color: var(--color-text-inverse, #fff);
}
.lpi__post-title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: var(--space-3, 0.75rem) 0;
  color: var(--color-primary, #062b58);
  line-height: 1.15;
  text-wrap: balance;
}

.lpi__post-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl, 1rem);
  margin-bottom: var(--space-8, 2rem);
}

.lpi__post-body {
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: var(--text-base, 1.0625rem);
  color: var(--color-text, #0d1b2a);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}
.lpi__post-body h2,
.lpi__post-body h3 {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700;
  color: var(--color-primary, #062b58);
  margin-top: var(--space-10, 2.5rem);
  margin-bottom: var(--space-3, 0.75rem);
  line-height: 1.25;
}
.lpi__post-body h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
.lpi__post-body h3 { font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem); }
.lpi__post-body p { margin: 1.25em 0; }
.lpi__post-body strong { color: var(--color-text, #0d1b2a); font-weight: 600; }
.lpi__post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 0.75rem);
  margin: 2em 0;
}
.lpi__post-body blockquote {
  border-left: 3px solid var(--color-accent, #ffbe01);
  background: var(--color-accent-light, #fff8e1);
  padding: 1em 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: var(--color-text, #0d1b2a);
  border-radius: 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0;
}
.lpi__post-body code {
  background: var(--color-surface-2, #f1f4f8);
  border: 1px solid var(--color-divider, #dde3ec);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm, 0.375rem);
  font-size: 0.9em;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.lpi__post-body pre {
  background: var(--color-surface-2, #f1f4f8);
  border: 1px solid var(--color-divider, #dde3ec);
  padding: 1em;
  border-radius: var(--radius-lg, 0.75rem);
  overflow-x: auto;
}
.lpi__post-body a {
  color: var(--color-primary, #062b58);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.lpi__post-body a:hover { color: var(--color-primary-hover, #0a3d7a); }
.lpi__post-body ul,
.lpi__post-body ol { padding-left: 1.5em; margin: 1em 0; }
.lpi__post-body li { margin: 0.5em 0; }

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.lpi__pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: var(--space-12, 3rem) 0 0;
  flex-wrap: wrap;
}
.lpi__pagination a,
.lpi__pagination span {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  color: var(--color-text, #0d1b2a);
  background: var(--color-surface, #ffffff);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.lpi__pagination a:hover {
  background: var(--color-primary-light, #e8eef6);
  border-color: var(--color-primary, #062b58);
}
.lpi__pagination .current {
  background: var(--color-primary, #062b58);
  color: var(--color-text-inverse, #fff);
  border-color: var(--color-primary, #062b58);
}

/* ----------------------------------------------------------------
   Comments + search form + 404
   ---------------------------------------------------------------- */
.lpi__comments {
  margin-top: var(--space-12, 3rem);
  padding-top: var(--space-8, 2rem);
  border-top: 1px solid var(--color-divider, #dde3ec);
}
.lpi__comments h3 {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  margin-bottom: var(--space-6, 1.5rem);
  color: var(--color-primary, #062b58);
}
.lpi__comments .comment {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--color-surface-2, #f1f4f8);
  border: 1px solid var(--color-divider, #dde3ec);
  border-radius: var(--radius-lg, 0.75rem);
}
.lpi__comments input[type="text"],
.lpi__comments input[type="email"],
.lpi__comments input[type="url"],
.lpi__comments textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-md, 0.5rem);
  font: inherit;
  background: var(--color-surface, #fff);
  color: var(--color-text, #0d1b2a);
}

.lpi__searchform {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: var(--space-4, 1rem) auto;
}
.lpi__searchform input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-md, 0.5rem);
  font: inherit;
  background: var(--color-surface, #fff);
}
.lpi__searchform input[type="search"]:focus {
  outline: 2px solid var(--color-primary, #062b58);
  outline-offset: 1px;
}
.lpi__searchform button {
  background: var(--color-primary, #062b58);
  color: var(--color-text-inverse, #fff);
  border: 0;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md, 0.5rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lpi__searchform button:hover { background: var(--color-primary-hover, #0a3d7a); }

.lpi__404 {
  text-align: center;
  padding: var(--space-16, 4rem) var(--space-6, 1.5rem);
}
.lpi__404 h1 {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 0;
  color: var(--color-accent, #ffbe01);
}
.lpi__404 p { color: var(--color-text-muted, #4a5568); }

/* ----------------------------------------------------------------
   Blog index card grid — same .blog-card layout as Drysdale Fencing.
   Uses an auto-fill responsive grid; each card has h2 title (dark
   navy), excerpt (muted), and a single meta row (date + category pill).
   The static /blog/blog.css already provides base .blog-card styling
   but we override here for richer hover state + LPI brand tokens.
   ---------------------------------------------------------------- */
.blog-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--color-surface, #ffffff) !important;
  border: 1px solid var(--color-border, #d0d7e2) !important;
  /* radius unified to the homepage card token (--radius-xl) so blog cards
     match .service-card / .why-card exactly (was a one-off 14px). */
  border-radius: var(--radius-xl, 1rem) !important;
  padding: 1.5rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover,
.blog-card:focus-within {
  /* matched to the homepage .service-card:hover recipe: amber border,
     shadow-lg token, -4px lift (was navy border + -2px). The amber
     top-rule (::before below) layers on top as the bespoke accent. */
  border-color: var(--color-accent, #ffbe01) !important;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(6,43,88,0.12));
  transform: translateY(-4px);
}
.blog-card-title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.75rem !important;
}
.blog-card-title a {
  color: var(--color-text, #0d1b2a) !important;
  text-decoration: none !important;
  background: none !important;
  transition: color 0.18s ease;
}
.blog-card-title a:hover,
.blog-card-title a:focus {
  color: var(--color-primary, #062b58) !important;
  text-decoration: none !important;
}
.blog-card-excerpt {
  font-family: var(--font-body, sans-serif);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted, #4a5568) !important;
  margin: 0 0 1rem !important;
}
.blog-card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex-wrap: wrap;
  font-size: 0.78rem !important;
  color: var(--color-text-faint, #94a3b8) !important;
}
.blog-card-meta .blog-category-tag {
  background: var(--color-primary-light, #e8eef6) !important;
  color: var(--color-primary, #062b58) !important;
  padding: 2px 10px !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
[data-theme="dark"] .blog-card-title a { color: var(--color-text, #e6edf3) !important; }
[data-theme="dark"] .blog-card-title a:hover { color: var(--color-accent, #ffbe01) !important; }
[data-theme="dark"] .blog-card-meta .blog-category-tag {
  background: rgba(255,255,255,0.08) !important;
  color: var(--color-text, #e6edf3) !important;
}

/* ----------------------------------------------------------------
   Header overrides for blog pages.
   The static homepage header floats over a dark hero (transparent bg
   + white text) and only flips to solid-blur on scroll. On blog pages
   there's no hero, so we force the .header--scrolled look permanently
   AND override nav/hamburger colours with !important so we win the
   cascade over the homepage's scroll-state rules.
   ---------------------------------------------------------------- */
.header.header--scrolled,
body.single .header,
body.archive .header,
body.search .header,
body.error404 .header,
body.home .header,
body.page .header,
body.blog .header {
  background: color-mix(in srgb, var(--color-bg, #f8f9fb) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(13,27,42,0.06), 0 4px 14px rgba(13,27,42,0.04);
}
.header.header--scrolled .header__nav a,
body.single .header .header__nav a,
body.archive .header .header__nav a,
body.search .header .header__nav a,
body.error404 .header .header__nav a,
body.home .header .header__nav a,
body.page .header .header__nav a,
body.blog .header .header__nav a {
  color: var(--color-text, #0d1b2a) !important;
}
.header.header--scrolled .theme-toggle,
body.single .header .theme-toggle,
body.archive .header .theme-toggle,
body.search .header .theme-toggle,
body.error404 .header .theme-toggle,
body.home .header .theme-toggle,
body.page .header .theme-toggle,
body.blog .header .theme-toggle {
  color: var(--color-text, #0d1b2a) !important;
}
.header.header--scrolled .hamburger span,
body.single .header .hamburger span,
body.archive .header .hamburger span,
body.search .header .hamburger span,
body.error404 .header .hamburger span,
body.home .header .hamburger span,
body.page .header .hamburger span,
body.blog .header .hamburger span {
  background: var(--color-text, #0d1b2a) !important;
}

/* Active nav link styling — fires when WP page IS the blog */
.header__nav a[aria-current="page"] {
  color: var(--color-accent, #ffbe01) !important;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   HERO REFINEMENT (v1.0.9) — premium dark-overlay treatment using
   the homepage hero-bg image + a deep-navy gradient. Replaces the
   previous flat #062b58 hero so the blog feels cohesive with the
   homepage's dark-image-overlay aesthetic.
   ---------------------------------------------------------------- */
/* v2.0 — blog hero matched to the HOMEPAGE hero: text LEFT, angled pool photo
   RIGHT, on the same two-layer navy substrate. (Was a full-bleed bg image.) */
.blog-hero,
.blog-hero--split {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: clamp(320px, 42vh, 460px) !important;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  isolation: isolate;
  /* same navy bloom + diagonal substrate as the homepage hero */
  background:
    radial-gradient(44% 48% at 82% 20%, rgba(255,190,1,0.28) 0%, rgba(255,190,1,0.08) 40%, transparent 70%),
    radial-gradient(34% 40% at 90% 28%, rgba(255,190,1,0.14) 0%, transparent 62%),
    radial-gradient(55% 55% at 8% 92%, rgba(91,155,213,0.18) 0%, transparent 66%),
    radial-gradient(120% 90% at 78% 18%, #0a3d7a 0%, transparent 55%),
    linear-gradient(165deg, #062b58 0%, #041d3d 58%, #02152d 100%) !important;
}
.blog-hero .container,
.blog-hero--split .container {
  position: relative !important;
  z-index: 2 !important;
}
.blog-hero-inner {
  position: relative !important;
  z-index: 2 !important;
  /* LEFT-anchored text column (free space on the right for the photo) */
  max-width: 640px !important;
  margin: 0 auto 0 0 !important;
  padding: 0 var(--space-5, 1.5rem) !important;
}
.blog-hero-title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif) !important;
  font-size: clamp(2rem, 4.5vw + 0.5rem, 3.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  color: #fff !important;
  margin: 0 0 1rem !important;
  text-wrap: balance;
}
.blog-hero-sub {
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  max-width: 52ch;
}
/* Angled photo plate on the RIGHT — same treatment as the homepage hero__plate */
.blog-hero__plate {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(320px, 42vw, 620px);
  height: 100%;
  z-index: 0;
  margin: 0;
  pointer-events: none;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(280deg, #000 55%, transparent 96%);
          mask-image: linear-gradient(280deg, #000 55%, transparent 96%);
  opacity: 0.82;
}
.blog-hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.78) contrast(1.08) sepia(0.5) hue-rotate(175deg) saturate(2.2);
  mix-blend-mode: luminosity;
}
@media (max-width: 768px) {
  .blog-hero__plate {
    top: auto; bottom: 0;
    width: 70vw; height: 34vh;
    opacity: 0.28; z-index: -1;
  }
  .blog-hero-inner { max-width: 100% !important; }
}
.blog-breadcrumb {
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 1.25rem !important;
}
.blog-breadcrumb a { color: rgba(255,255,255,0.85) !important; }
.blog-breadcrumb a:hover { color: #fff !important; }
.blog-meta { color: rgba(255,255,255,0.75) !important; }
.blog-meta .blog-category-tag {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Defensive: WP body classes inherit the static site bg */
body.single,
body.archive,
body.search,
body.error404,
body.home,
body.page,
body.blog {
  background: var(--color-bg, #f8f9fb);
  color: var(--color-text, #0d1b2a);
}

/* ----------------------------------------------------------------
   v2.0 — blog hero now uses the HOMEPAGE dossier style (navy gradient
   substrate + angled photo plate, defined above at .blog-hero--split).
   The old "repaint to light grey" override was REMOVED — it forced the
   hero back to flat #f1f4f8 with !important and only looked right in dark
   mode (light-on-light otherwise). Text is now WHITE on navy in BOTH themes
   (the hero substrate is dark navy regardless of site theme, like the
   homepage hero). The breadcrumb/meta SIT INSIDE the navy hero so they stay
   light in both themes.
   ---------------------------------------------------------------- */
.blog-hero-title {
  color: #fff !important;
}
.blog-hero .blog-breadcrumb,
.blog-hero--split .blog-breadcrumb {
  color: rgba(255,255,255,0.7) !important;
}
.blog-hero .blog-breadcrumb a,
.blog-hero--split .blog-breadcrumb a { color: rgba(255,255,255,0.92) !important; }
.blog-hero .blog-breadcrumb a:hover { color: #fff !important; }
.blog-hero .blog-breadcrumb .breadcrumb-sep { color: rgba(255,255,255,0.45) !important; }
/* .blog-meta inside the navy hero (single posts) = light; in the post list/body = muted-dark */
.blog-hero .blog-meta,
.blog-hero--split .blog-meta { color: rgba(255,255,255,0.8) !important; }
.blog-hero .blog-meta-item,
.blog-hero--split .blog-meta-item { color: rgba(255,255,255,0.8) !important; }
.blog-main .blog-meta { color: var(--color-text-muted, #4a5568) !important; }
.blog-category-tag {
  background: var(--color-primary-light, #e8eef6) !important;
  color: var(--color-primary, #062b58) !important;
}
/* Dark-mode safety: ensure pill stays legible when --color-primary-light
   inverts to a dark value. */
[data-theme="dark"] .blog-category-tag {
  background: rgba(255,255,255,0.08) !important;
  color: var(--color-text, #e6edf3) !important;
}

/* ----------------------------------------------------------------
   Comment form — paint submit button to match the .blog-cta navy
   block, and strip default WP white borders/outlines that look out
   of place on the dark button.
   ---------------------------------------------------------------- */
.lpi__comments-section .form-submit,
.lpi__comments .form-submit { margin-top: 1rem; }

.lpi__comments-section input[type="submit"],
.lpi__comments-section button[type="submit"],
.lpi__comments input[type="submit"],
.lpi__comments button[type="submit"],
#commentform #submit,
#submit {
  background: #062b58 !important;
  background-image: linear-gradient(135deg, #062b58 0%, #0a3d7a 50%, #062b58 100%) !important;
  color: #fff !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.85rem 1.75rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif) !important;
  font-size: 1rem !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  transition: filter 0.18s ease, transform 0.18s ease !important;
}
.lpi__comments-section input[type="submit"]:hover,
.lpi__comments-section button[type="submit"]:hover,
.lpi__comments input[type="submit"]:hover,
.lpi__comments button[type="submit"]:hover,
#commentform #submit:hover,
#submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.lpi__comments-section input[type="submit"]:focus,
.lpi__comments-section button[type="submit"]:focus,
#commentform #submit:focus,
#submit:focus {
  outline: 2px solid var(--color-accent, #ffbe01) !important;
  outline-offset: 2px;
}

/* ================================================================
   PREMIUM POLISH — PASS 1  (2026-06-19, premium-polish agent)
   Craft upgrades only. Brand tokens unchanged (navy/amber, Cabinet/
   Satoshi, light+dark). Additive CSS to named classes + !important
   overrides on inline-styled callouts. No DOM/copy/schema change.
   ================================================================ */

/* ----------------------------------------------------------------
   1. CALLOUT LEGIBILITY FIX  (owner-reported)
   Post bodies hardcode inline light-blue backgrounds on .lpi-tldr
   (the "In short:" answer block) and .lpi-cta (callouts). They go
   light-on-light/illegible in dark mode and clash with navy+amber
   in light mode. We override with !important (beats inline non-
   important) and theme via brand tokens. The answer block keeps its
   DOM position (first after H1) — we only restyle.
   ---------------------------------------------------------------- */

/* "In short:" answer block — quiet branded surface, amber spine */
.blog-content .lpi-tldr,
.lpi__post-body .lpi-tldr,
.blog-content .lpi-answer-block,
.lpi__post-body .lpi-answer-block,
.lpi-tldr {
  background: var(--color-surface-2, #e8ecf2) !important;
  border: 1px solid var(--color-border, #d0d7e2) !important;
  border-left: 4px solid var(--color-accent, #ffbe01) !important;
  color: var(--color-text, #0d1b2a) !important;
  padding: 1rem 1.25rem !important;
  margin: 0 0 1.75rem 0 !important;
  border-radius: var(--radius-md, 0.5rem) !important;
  line-height: 1.65;
}
.blog-content .lpi-tldr strong,
.lpi-tldr strong { color: var(--color-text, #0d1b2a) !important; }

/* Callout box — navy-tinted surface, navy spine */
.blog-content .lpi-cta,
.lpi__post-body .lpi-cta,
.lpi-cta {
  background: var(--color-primary-light, #e8eef6) !important;
  border: 1px solid var(--color-border, #d0d7e2) !important;
  border-left: 4px solid var(--color-primary, #062b58) !important;
  color: var(--color-text, #0d1b2a) !important;
  padding: 1.1rem 1.4rem !important;
  margin: 1.75rem 0 !important;
  border-radius: var(--radius-md, 0.5rem) !important;
}
.blog-content .lpi-cta strong,
.lpi-cta strong { color: var(--color-primary, #062b58) !important; }
.blog-content .lpi-cta a,
.lpi-cta a { color: var(--color-primary, #062b58); font-weight: 600; }

/* Dark mode: --color-primary-light is rgba(91,155,213,0.12) and
   --color-surface-2 is #1c2333, so both read as dark tinted panels;
   the amber/navy spines and near-white text stay legible. We harden
   the navy spine in dark to the lighter primary so it's visible. */
[data-theme="dark"] .lpi-cta {
  border-left-color: var(--color-primary, #5b9bd5) !important;
}
[data-theme="dark"] .lpi-cta strong { color: var(--color-primary, #5b9bd5) !important; }
[data-theme="dark"] .lpi-cta a { color: var(--color-primary, #5b9bd5); }
[data-theme="dark"] .lpi-tldr,
[data-theme="dark"] .lpi-tldr strong { color: var(--color-text, #e6edf3) !important; }

/* Green-variant one-offs (a few posts) → success-token themed */
.lpi-cta[style*="2e7d4f"],
.lpi-cta[style*="eaf7ef"] {
  background: var(--color-accent-light, #fff8e1) !important;
  border-left-color: var(--color-success, #16a34a) !important;
}
[data-theme="dark"] .lpi-cta[style*="2e7d4f"],
[data-theme="dark"] .lpi-cta[style*="eaf7ef"] {
  background: rgba(63,185,80,0.10) !important;
  border-left-color: var(--color-success, #3fb950) !important;
}
/* Navy-filled one-off (#0a3a5e) → keep dark but ensure white text */
.lpi-cta[style*="0a3a5e"] {
  background: linear-gradient(135deg, #062b58 0%, #0a3d7a 100%) !important;
  border: 0 !important;
  border-left: 4px solid var(--color-accent, #ffbe01) !important;
  color: #fff !important;
}
.lpi-cta[style*="0a3a5e"] strong,
.lpi-cta[style*="0a3a5e"] a { color: #fff !important; }

/* ----------------------------------------------------------------
   2. TRAILING IN-POST CTA  (.lpi-post-cta — wrapped by functions.php)
   Was unstyled (plain white). Make it the branded navy CTA card so
   the "Ready to get started / Form 23 in {suburb}" block reads
   intentional in both themes.
   ---------------------------------------------------------------- */
.blog-content .lpi-post-cta,
.lpi__post-body .lpi-post-cta {
  background:
    radial-gradient(140% 180% at 82% 12%, #0a3d7a 0%, transparent 60%),
    linear-gradient(165deg, #062b58 0%, #041d3d 60%, #02152d 100%);
  color: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl, 1rem);
  margin: 3rem 0 1rem;
  box-shadow: var(--shadow-lg);
}
.lpi-post-cta h2,
.lpi-post-cta h3 {
  color: #fff !important;
  margin-top: 0 !important;
}
.lpi-post-cta p { color: rgba(255,255,255,0.86) !important; }
.lpi-post-cta a { color: var(--color-accent, #ffbe01) !important; font-weight: 600; }
.lpi-post-cta strong { color: #fff !important; }
.lpi-post-cta .lpi-cta,
.lpi-post-cta .lpi-tldr {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: #fff !important;
}
.lpi-post-cta .lpi-cta strong,
.lpi-post-cta .lpi-cta a { color: var(--color-accent, #ffbe01) !important; }

/* ----------------------------------------------------------------
   3. POST-BODY TABLES  (some posts ship raw <table> — unstyled)
   Brand-token table styling for both .blog-content and .lpi__post-body.
   ---------------------------------------------------------------- */
.blog-content table,
.lpi__post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
}
.blog-content thead th,
.lpi__post-body thead th {
  background: var(--color-primary, #062b58);
  color: #fff;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
}
.blog-content th,
.blog-content td,
.lpi__post-body th,
.lpi__post-body td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--color-divider, #dde3ec);
  text-align: left;
  vertical-align: top;
}
.blog-content tbody tr:nth-child(even),
.lpi__post-body tbody tr:nth-child(even) {
  background: var(--color-surface-2, #e8ecf2);
}
.blog-content tbody tr:last-child td,
.lpi__post-body tbody tr:last-child td { border-bottom: 0; }
[data-theme="dark"] .blog-content thead th,
[data-theme="dark"] .lpi__post-body thead th {
  background: var(--color-surface-2, #1c2333);
  color: var(--color-text, #e6edf3);
}

/* ----------------------------------------------------------------
   4. INNER WP PAGES — bespoke classes that shipped UNSTYLED.
   /services/ /faq/ /form-23-certificates/ /re-inspections/ /about/
   /non-conformance-reports/ /areas/ use page.php (.lpi__shell) and
   carry .hero-section/.service-card/.process-step/.faq-item/etc with
   NO CSS anywhere → they render plain. Style them on-brand so inner
   pages stop feeling plainer than the homepage. Pure additive CSS.
   ---------------------------------------------------------------- */

/* Inner-page hero band — matches the homepage/blog navy hero.
   It lives INSIDE .lpi__shell, so break it full-bleed and re-pad. */
.lpi__post-body .hero-section {
  position: relative;
  /* Contained rounded navy band (overflow-safe — no 100vw breakout). */
  margin: 0 0 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(120% 140% at 82% 12%, #0a3d7a 0%, transparent 58%),
    linear-gradient(165deg, #062b58 0%, #041d3d 58%, #02152d 100%);
  color: #fff;
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  isolation: isolate;
}
.lpi__post-body .hero-section .container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative; z-index: 2;
}
.lpi__post-body .hero-section h1 {
  color: #fff;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(2rem, 4.5vw + 0.5rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
.lpi__post-body .hero-section > .container > p,
.lpi__post-body .hero-section p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.18rem);
  max-width: 60ch;
  margin: 0;
}

/* Section rhythm wrappers */
.lpi__post-body .section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.lpi__post-body .section-light { background: transparent; }
.lpi__post-body .section-gray {
  background: var(--color-surface-2, #e8ecf2);
  margin: 2.5rem 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-divider, #dde3ec);
  border-radius: var(--radius-xl, 1rem);
}
.lpi__post-body .text-center { text-align: center; }
.lpi__post-body .mb-5 { margin-bottom: 2rem; }

/* Service / feature card grid */
.lpi__post-body .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6, 1.5rem);
  margin: 2rem 0;
}
.lpi__post-body .service-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-xl, 1rem);
  padding: var(--space-6, 1.5rem);
  transition: transform var(--transition-interactive, 180ms cubic-bezier(0.16,1,0.3,1)),
              box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16,1,0.3,1)),
              border-color var(--transition-interactive, 180ms cubic-bezier(0.16,1,0.3,1));
}
.lpi__post-body .service-card:hover {
  /* matched to the homepage .service-card:hover (amber border, -4px lift)
     so inner-page service cards behave identically to the homepage's. */
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent, #ffbe01);
}
.lpi__post-body .service-card h3 { margin-top: 0; }
.lpi__post-body .service-card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--color-primary-light, #e8eef6);
  color: var(--color-primary, #062b58);
  margin-bottom: var(--space-4, 1rem);
  font-size: 1.4rem;
}
[data-theme="dark"] .lpi__post-body .service-card-icon { color: var(--color-primary, #5b9bd5); }

/* Numbered process steps */
/* PREMIUM process steps — connected numbered timeline, aligned + elevated.
   Each step: an amber-ringed navy number badge in a fixed 56px column, with a
   vertical connector threading the badges so the 3 steps read as one journey.
   Fixes the plain/misaligned look. */
.lpi__post-body .process-steps {
  display: grid;
  gap: 0;
  margin: 2.5rem 0;
  counter-reset: lpi-step;
  position: relative;
}
.lpi__post-body .process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-auto-rows: min-content;
  gap: 0.15rem 1.25rem;
  align-items: start;
  position: relative;
  padding: 0 0 2rem 0;
}
/* badge spans both text rows so the number vertically centres against the block */
.lpi__post-body .process-step .process-step-number { grid-row: 1 / span 2; }
.lpi__post-body .process-step h4 { grid-column: 2; }
.lpi__post-body .process-step p  { grid-column: 2; }
.lpi__post-body .process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--color-accent, #ffbe01), rgba(255,190,1,0.15));
}
.lpi__post-body .process-step:last-child { padding-bottom: 0; }
.lpi__post-body .process-step-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-full, 9999px);
  background:
    radial-gradient(120% 120% at 30% 20%, #0a3d7a 0%, transparent 70%),
    linear-gradient(160deg, #062b58, #041d3d);
  color: #fff;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255,190,1,0.18), 0 8px 20px -8px rgba(6,43,88,0.5);
  position: relative;
  z-index: 1;
  align-self: start;
}
.lpi__post-body .process-step h4,
.lpi__post-body .process-step .process-step-title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary, #062b58) !important;
  margin: 0 0 0.15rem !important;
  line-height: 1.25;
  align-self: center;
}
[data-theme="dark"] .lpi__post-body .process-step h4,
[data-theme="dark"] .lpi__post-body .process-step .process-step-title {
  color: var(--color-text, #e6edf3) !important;
}
.lpi__post-body .process-step p { margin: 0; color: var(--color-text-muted, #4a5568); line-height: 1.6; }

/* FAQ accordion-style list (faq-item/question/answer) */
.lpi__post-body .lpi-faq { padding-block: clamp(1.5rem, 4vw, 3rem); }
.lpi__post-body .faq-item {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.1rem 1.4rem;
  margin: 0 0 0.85rem;
  transition: border-color var(--transition-interactive, 180ms ease),
              box-shadow var(--transition-interactive, 180ms ease);
}
.lpi__post-body .faq-item:hover {
  border-color: var(--color-primary, #062b58);
  box-shadow: var(--shadow-sm);
}
.lpi__post-body .faq-question {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700;
  color: var(--color-primary, #062b58);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
[data-theme="dark"] .lpi__post-body .faq-question { color: var(--color-text, #e6edf3); }
.lpi__post-body .faq-answer {
  color: var(--color-text-muted, #4a5568);
  margin: 0;
  line-height: 1.7;
}
[data-theme="dark"] .lpi__post-body .faq-answer { color: var(--color-text-muted, #8b949e); }

/* Closing CTA section (.cta-section + .btn-white) */
.lpi__post-body .cta-section {
  background:
    radial-gradient(140% 180% at 82% 12%, #0a3d7a 0%, transparent 60%),
    linear-gradient(165deg, #062b58 0%, #041d3d 60%, #02152d 100%);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-6, 1.5rem);
  border-radius: var(--radius-xl, 1rem);
  margin: 3rem 0 1rem;
}
.lpi__post-body .cta-section h2,
.lpi__post-body .cta-section h3 { color: #fff !important; margin-top: 0 !important; }
.lpi__post-body .cta-section p { color: rgba(255,255,255,0.86) !important; }
.lpi__post-body .btn-white,
.lpi__post-body .btn.btn-white {
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  background: var(--color-accent, #ffbe01);
  color: #0d1b2a !important;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  transition: transform var(--transition-interactive, 180ms ease),
              box-shadow var(--transition-interactive, 180ms ease),
              background var(--transition-interactive, 180ms ease);
}
.lpi__post-body .btn-white:hover {
  background: var(--color-accent-hover, #e6ab00);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.lpi__post-body .btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Inner-page FORM FIELDS (e.g. /contact/). The inline-styled inputs set
   border/padding/radius but NOT background or color, so in DARK theme the
   text inherited the light page colour over a white input → invisible
   (light-on-white). Pin an explicit themed surface + text. Non-!important:
   we only set properties the inline style leaves unset, so we win cleanly. */
.lpi__post-body input[type="text"],
.lpi__post-body input[type="email"],
.lpi__post-body input[type="tel"],
.lpi__post-body input[type="url"],
.lpi__post-body input[type="number"],
.lpi__post-body input[type="search"],
.lpi__post-body select,
.lpi__post-body textarea {
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #0d1b2a);
}
.lpi__post-body input::placeholder,
.lpi__post-body textarea::placeholder {
  color: var(--color-text-faint, #94a3b8);
}
.lpi__post-body input:focus,
.lpi__post-body select:focus,
.lpi__post-body textarea:focus {
  outline: 2px solid var(--color-primary, #062b58);
  outline-offset: 1px;
}
[data-theme="dark"] .lpi__post-body input[type="text"],
[data-theme="dark"] .lpi__post-body input[type="email"],
[data-theme="dark"] .lpi__post-body input[type="tel"],
[data-theme="dark"] .lpi__post-body input[type="url"],
[data-theme="dark"] .lpi__post-body input[type="number"],
[data-theme="dark"] .lpi__post-body input[type="search"],
[data-theme="dark"] .lpi__post-body select,
[data-theme="dark"] .lpi__post-body textarea {
  background: var(--color-surface-2, #1c2333);
  color: var(--color-text, #e6edf3);
  border-color: var(--color-border, #2d3748) !important;
}
[data-theme="dark"] .lpi__post-body input:focus,
[data-theme="dark"] .lpi__post-body select:focus,
[data-theme="dark"] .lpi__post-body textarea:focus {
  outline-color: var(--color-accent, #ffbe01);
}

/* Byline on inner pages. NOTE: the markup hardcodes inline `color:#555`,
   which wins over a plain rule — and #555 on the dark canvas is only
   ~2.5:1 (fails AA). Force the dark colour with !important so the byline
   stays legible in dark theme. (#555 on white in light mode is fine.) */
.lpi__post-body .lpi-byline {
  font-size: 0.9rem;
  color: var(--color-text-muted, #4a5568);
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .lpi__post-body .lpi-byline {
  color: var(--color-text-muted, #8b949e) !important;
}
[data-theme="dark"] .lpi__post-body .lpi-byline a {
  color: var(--color-text, #e6edf3) !important;
}

/* Inline-styled info callouts on inner pages (e.g. /areas/ uses
   <div style="background:#e8f4fa;border-left:4px solid #1e88c7">). The
   light-blue inline bg stays light in dark theme while the text inverts
   to light → light-on-light (invisible). Re-theme the box for dark. */
[data-theme="dark"] .lpi__post-body [style*="e8f4fa"],
[data-theme="dark"] .lpi__post-body [style*="E8F4FA"] {
  background: var(--color-surface-2, #1c2333) !important;
  border-left-color: var(--color-primary, #5b9bd5) !important;
  color: var(--color-text, #e6edf3) !important;
}
[data-theme="dark"] .lpi__post-body [style*="e8f4fa"] a,
[data-theme="dark"] .lpi__post-body [style*="e8f4fa"] strong {
  color: var(--color-accent, #ffbe01) !important;
}

/* ----------------------------------------------------------------
   5. INNER-PAGE SHELL — tighten typography/measure now that the
   hero band carries the title. Body copy gets a comfortable measure.
   ---------------------------------------------------------------- */
.lpi__post-body { max-width: 720px; margin: 0 auto; } /* unified measure */
/* hero-section + section-gray are now contained bands (no full-bleed) */
.lpi__post-body p,
.lpi__post-body li { max-width: 68ch; }

/* Bare-H1 inner pages (e.g. /areas/) have NO .hero-section navy band, so
   their page H1 was falling back to the body font (Satoshi). Pin any
   .lpi__post-body H1 to the brand display face so every inner page reads
   on-brand even without the navy hero band. Scoped to NOT touch the
   navy-band H1 (which is already styled white inside .hero-section). */
.lpi__post-body > h1 {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-primary, #062b58);
  text-wrap: balance;
  margin: 0 0 1rem;
}
[data-theme="dark"] .lpi__post-body > h1 {
  color: var(--color-text, #e6edf3);
}
/* The navy-band H1 (.hero-section h1, specificity 0,3,0) keeps its white
   styling — it out-ranks the rule above (0,1,1) so this is safe. */

/* ================================================================
   PREMIUM POLISH — PASS 2  (2026-06-19)
   Reading experience: related-reading, editorial drop-cap, static-
   glass pill substitute, blog-card hover accent. Additive only.
   ================================================================ */

/* ----------------------------------------------------------------
   1. STATIC-GLASS PILL  (replace live backdrop-filter on the hero
   category pill — forbidden staple on the 55+ buyer's daylight iPad
   Safari; convert to a paint-once translucent surface instead).
   ---------------------------------------------------------------- */
.blog-hero .blog-meta .blog-category-tag,
.blog-hero--split .blog-meta .blog-category-tag {
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

/* ----------------------------------------------------------------
   2. EDITORIAL DROP-CAP — REMOVED (owner request, 2026-06-19).
   NOTE: a dangling `[data-theme="dark"]` selector used to live here
   (left over from removing the drop-cap rule). Because the following
   comment is whitespace to the parser, it had silently fused with the
   `.blog-card` rule below — turning it into `[data-theme="dark"] .blog-card`
   and stripping position:relative/overflow:hidden from .blog-card in
   LIGHT mode (the amber hover top-rule was then unclipped/mispositioned).
   The orphan selector has been deleted so .blog-card is global again.
   ---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   3. BLOG-CARD HOVER ACCENT  (subtle amber top-rule reveal on hover —
   ties cards to brand without recolouring the resting state).
   ---------------------------------------------------------------- */
.blog-card {
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--color-accent, #ffbe01);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive, 220ms cubic-bezier(0.16,1,0.3,1));
}
.blog-card:hover::before,
.blog-card:focus-within::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .blog-card::before { transition: none; }
}

/* ----------------------------------------------------------------
   4. RELATED READING  (single-post aside — same card language as the
   blog index, themed both modes).
   ---------------------------------------------------------------- */
.lpi-related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-divider, #dde3ec);
}
.lpi-related__head {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary, #062b58);
  margin: 0 0 1.25rem;
}
[data-theme="dark"] .lpi-related__head { color: var(--color-text, #e6edf3); }
.lpi-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5, 1.25rem);
}
.lpi-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive, 200ms cubic-bezier(0.16,1,0.3,1)),
              box-shadow var(--transition-interactive, 200ms cubic-bezier(0.16,1,0.3,1)),
              border-color var(--transition-interactive, 200ms cubic-bezier(0.16,1,0.3,1));
}
.lpi-related__card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--color-accent, #ffbe01);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition-interactive, 200ms cubic-bezier(0.16,1,0.3,1));
}
.lpi-related__card:hover,
.lpi-related__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary, #062b58);
}
.lpi-related__card:hover::before,
.lpi-related__card:focus-visible::before { transform: scaleX(1); }
.lpi-related__tag {
  align-self: flex-start;
  background: var(--color-primary-light, #e8eef6);
  color: var(--color-primary, #062b58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--radius-full, 9999px);
}
[data-theme="dark"] .lpi-related__tag {
  background: rgba(255,255,255,0.08);
  color: var(--color-text, #e6edf3);
}
.lpi-related__title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--color-text, #0d1b2a);
}
[data-theme="dark"] .lpi-related__title { color: var(--color-text, #e6edf3); }
.lpi-related__date {
  font-size: 0.78rem;
  color: var(--color-text-faint, #94a3b8);
  margin-top: auto;
}
@media (prefers-reduced-motion: reduce) {
  .lpi-related__card,
  .lpi-related__card::before { transition: none; }
}

/* ============================================================
   END-OF-POST CTA (.blog-cta) — was unstyled (ugly, misaligned,
   plain phone link). Now an on-brand navy gradient card with a
   centred layout + amber phone pill, matching the homepage CTA band.
   ============================================================ */
.blog-cta {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 720px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 85% 12%, #0a3d7a 0%, transparent 60%),
    linear-gradient(165deg, #062b58 0%, #041d3d 100%);
  border-radius: 18px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 18px 48px -16px rgba(6,43,88,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
.blog-cta h2 {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem);
  color: #fff !important;
  margin: 0 0 0.6rem !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.blog-cta p {
  color: rgba(255,255,255,0.82) !important;
  font-size: 1.05rem;
  margin: 0 auto 1.6rem !important;
  max-width: 46ch;
  line-height: 1.6;
}
/* Phone as a premium amber pill button (was a plain text link) */
.blog-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-accent, #ffbe01);
  color: #0d1b2a !important;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none !important;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 8px 22px -8px rgba(255,190,1,0.5);
  transition: transform 180ms cubic-bezier(.16,1,.3,1), box-shadow 180ms cubic-bezier(.16,1,.3,1), background 180ms ease;
}
.blog-cta-phone:hover {
  transform: translateY(-2px);
  background: #ffca34;
  box-shadow: 0 12px 28px -8px rgba(255,190,1,0.6);
}
.blog-cta-phone svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ----------------------------------------------------------------
   "← Back to Blog" link (.blog-back-link) shipped UNSTYLED → it was a
   default browser-blue link, and in DARK theme that dark blue on the
   dark page background was ~2:1 (effectively invisible). Brand it as a
   quiet navy/amber pill-less text link, legible in both themes.
   ---------------------------------------------------------------- */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary, #062b58) !important;
  text-decoration: none !important;
  margin: 0 0 1.25rem;
  transition: color 0.18s ease, gap 0.18s ease;
}
.blog-back-link:hover {
  color: var(--color-primary-hover, #0a3d7a) !important;
  gap: 0.65rem;
}
[data-theme="dark"] .blog-back-link {
  color: var(--color-text, #e6edf3) !important;
}
[data-theme="dark"] .blog-back-link:hover {
  color: var(--color-accent, #ffbe01) !important;
}
@media (prefers-reduced-motion: reduce) {
  .blog-back-link { transition: color 0.18s ease; }
}

/* ================================================================
   PREMIUM POLISH — PASS 3  (2026-06-19, final visual QA)
   Two regressions caught on the staging eye-check:
   (a) the in-body "Related guides" (.lpi-related-guides) and the
       internal-link mesh (.lpi-money-mesh) shipped UNSTYLED — the
       Pass-2 related-reading CSS targeted .lpi-related__* but the live
       markup is .lpi-related-guides/.lpi-money-mesh (plain div>ul>li).
       They rendered as bare disc bullet lists. Style them on-brand as
       quiet bordered link panels (both themes). DOM/copy untouched.
   (b) handled above: the orphaned [data-theme="dark"] selector that
       fused with .blog-card.
   ================================================================ */

/* Shared branded link-panel surface for the two in-body internal-link
   blocks. Quiet (recedes vs the navy .blog-cta), amber left-spine for
   "Related guides", navy left-spine for the services mesh. */
.blog-content .lpi-related-guides,
.lpi__post-body .lpi-related-guides,
.blog-content .lpi-money-mesh,
.lpi__post-body .lpi-money-mesh,
.lpi-related-guides,
.lpi-money-mesh {
  background: var(--color-surface-2, #e8ecf2);
  border: 1px solid var(--color-border, #d0d7e2);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.4rem 1.6rem 1.5rem;
  margin: 2.5rem 0;
}
.blog-content .lpi-related-guides,
.lpi__post-body .lpi-related-guides,
.lpi-related-guides { border-left: 4px solid var(--color-accent, #ffbe01); }
.blog-content .lpi-money-mesh,
.lpi__post-body .lpi-money-mesh,
.lpi-money-mesh { border-left: 4px solid var(--color-primary, #062b58); }
[data-theme="dark"] .blog-content .lpi-money-mesh,
[data-theme="dark"] .lpi__post-body .lpi-money-mesh,
[data-theme="dark"] .lpi-money-mesh { border-left-color: var(--color-primary, #5b9bd5); }

/* Heading — already Cabinet Grotesk via .lpi__post-body h3, but pin the
   size/spacing so these mid-body blocks open cleanly and don't inherit
   the big 2.5rem top-margin meant for article H3s. */
.lpi-related-guides > h3:first-child,
.lpi-money-mesh > h3:first-child {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--color-primary, #062b58) !important;
  margin: 0 0 0.85rem !important;
  line-height: 1.3;
}
[data-theme="dark"] .lpi-related-guides > h3:first-child,
[data-theme="dark"] .lpi-money-mesh > h3:first-child {
  color: var(--color-text, #e6edf3) !important;
}

/* Links: clean stacked list, no disc bullets, branded link colour +
   amber underline-on-hover. Keeps the <ul><li> DOM intact. */
.lpi-related-guides ul,
.lpi-money-mesh ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: grid;
  gap: 0.55rem;
}
.lpi-related-guides li,
.lpi-money-mesh li {
  margin: 0 !important;
  padding-left: 1.1rem;
  position: relative;
}
/* small amber chevron marker in place of the disc */
.lpi-related-guides li::before,
.lpi-money-mesh li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent, #ffbe01);
  font-weight: 700;
  line-height: inherit;
}
.lpi-related-guides li a,
.lpi-money-mesh li a {
  color: var(--color-primary, #062b58) !important;
  text-decoration: none !important;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lpi-related-guides li a:hover,
.lpi-money-mesh li a:hover {
  color: var(--color-primary-hover, #0a3d7a) !important;
  border-bottom-color: var(--color-accent, #ffbe01);
}
[data-theme="dark"] .lpi-related-guides li a,
[data-theme="dark"] .lpi-money-mesh li a {
  color: var(--color-text, #e6edf3) !important;
}
[data-theme="dark"] .lpi-related-guides li a:hover,
[data-theme="dark"] .lpi-money-mesh li a:hover {
  color: var(--color-accent, #ffbe01) !important;
}

/* ================================================================
   PREMIUM POLISH — PASS 4  (2026-06-20, premium-polish agent: trust+callbar+figure)
   Conversion + E-E-A-T trust layer on the money pages (council).
   TEXT trust strip (no photo of a person — owner private), a below-
   fold owned-image figure, and a mobile sticky tap-to-call bar.
   Brand tokens only (navy #062b58 / amber #ffbe01, Cabinet/Satoshi).
   Additive CSS to named classes; light + dark; no DOM/copy/schema
   change beyond the page-body content the bodies themselves carry.
   ================================================================ */

/* ---- 1. TEXT TRUST STRIP (E-E-A-T, named credential) ----------
   PREMIUM credential card (redesigned 2026-06-20, premium-polish):
   navy card (HARD navy #062b58 so it stays navy in BOTH themes — the
   --color-primary token remaps to light-blue #5b9bd5 in dark), an
   amber "credential ribbon" top-rule, and a CUSTOM SHIELD SEAL on the
   existing __badge span (inline SVG data-URI — navy shield, amber ring,
   verified tick, "VBA / REGISTERED" wordmark). NOT a government logo
   (VBA merged into the Building & Plumbing Commission Jul 2025; gov
   marks are trademark/endorsement-restricted) — a bespoke trust-seal.
   Shared CSS → identical on /about/ + the 3 money pages. Real HTML
   text, no image of a person. Sits AFTER the .lpi-tldr answer block. */
.lpi-trust-strip {
  display: flex !important;
  align-items: center;
  gap: 1.15rem;
  background: #041d3d !important;
  color: #fff !important;
  border: 1px solid #07294f !important;
  border-radius: var(--radius-lg, 0.75rem) !important;
  padding: 1.1rem 1.35rem !important;
  margin: 0 0 1.75rem 0 !important;
  box-shadow: 0 1px 2px rgba(6,43,88,0.18), 0 10px 30px -14px rgba(6,43,88,0.55);
  position: relative;
  overflow: hidden;
}
/* hairline amber top-rule = the "credential ribbon" accent */
.lpi-trust-strip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent, #ffbe01), rgba(255,190,1,0));
}
/* paint-once amber seal-glow in the corner = premium depth (no runtime filter) */
.lpi-trust-strip::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at center, rgba(255,190,1,0.10), rgba(255,190,1,0) 68%);
  pointer-events: none;
}
/* SHIELD SEAL rendered on the existing __badge span — custom, no gov logo */
.lpi-trust-strip__badge {
  flex: 0 0 auto;
  position: relative;
  width: 62px;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cpath d='M32 2 L60 11 V34 C60 52 47 64 32 70 C17 64 4 52 4 34 V11 Z' fill='%23041d3d' stroke='%23ffbe01' stroke-width='2.5'/%3E%3Cpath d='M32 8 L54 15 V34 C54 48.5 43.5 58.5 32 63.5 C20.5 58.5 10 48.5 10 34 V15 Z' fill='none' stroke='%23ffbe01' stroke-width='1' opacity='0.5'/%3E%3Cpath d='M24 22 L29.5 28 L39 17' fill='none' stroke='%23ffbe01' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ctext x='32' y='44' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='10' font-weight='800' fill='%23ffffff' letter-spacing='0.3'%3EVBA%3C/text%3E%3Ctext x='32' y='53' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='4.2' font-weight='700' fill='%23ffbe01' letter-spacing='0.5'%3EREGISTERED%3C/text%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,0.30));
}
.lpi-trust-strip__badge-sub {
  display: none;
  font-size: 0.34rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--color-accent, #ffbe01);
  margin-top: 3px;
}
.lpi-trust-strip__body { min-width: 0; }
.lpi-trust-strip__name {
  margin: 0 0 3px 0 !important;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: 1.08rem;
  line-height: 1.3;
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.lpi-trust-strip__name strong { color: #fff !important; font-weight: 700; }
.lpi-trust-strip__lic {
  margin: 0 !important;
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.80) !important;
}
.lpi-trust-strip__lic strong { color: var(--color-accent, #ffbe01) !important; font-weight: 700; }
.lpi-trust-strip__verify {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent, #ffbe01);
  text-decoration: none;
}
.lpi-trust-strip__verify:hover { text-decoration: underline; }
/* Dark mode: add amber hairline + deeper shadow so the navy card lifts off the dark page. */
[data-theme="dark"] .lpi-trust-strip {
  border-color: rgba(255,190,1,0.30) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 12px 32px -16px rgba(0,0,0,0.7);
}
@media (max-width: 420px) {
  .lpi-trust-strip { gap: 0.85rem; padding: 0.9rem 1rem !important; }
  .lpi-trust-strip__badge { width: 50px; height: 58px; padding-bottom: 9px; font-size: 0.64rem; }
  .lpi-trust-strip__name { font-size: 0.98rem; }
}

/* ---- 1b. ABOUT-PAGE PREMIUM LAYOUT (lead image + editorial kicker) -------
   Added 2026-06-20. /about/ design pass: the generic grey .card blocks were
   replaced in the page body with the homepage's .why-card / .area-tag
   components; this adds the two-column "Who We Are" lead (copy + the
   owned about-pool-barrier image, lazy, below the fold → LCP protected) and
   the editorial index-mark kicker. Copy/headings unchanged — design only. */
.lpi-about-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.lpi-about-lead__copy { min-width: 0; }
.lpi-about-lead__copy h2 { margin: 0.35rem 0 1rem; }
.lpi-about-lead__figure { margin: 0; min-width: 0; }
.lpi-about-lead__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid var(--color-border, #d0d7e2);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(6,43,88,0.10), 0 18px 40px -22px rgba(6,43,88,0.45);
}
[data-theme="dark"] .lpi-about-lead__figure img {
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 18px 44px -22px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
  .lpi-about-lead { grid-template-columns: 1fr; gap: 1.5rem; }
  .lpi-about-lead__figure { order: -1; }
}
/* editorial kicker / index-mark (bespoke CN pattern: hairline + tracked label) */
.lpi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #ffbe01);
  margin-bottom: 0.25rem;
}
.lpi-kicker::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent, #ffbe01));
}
.text-center .lpi-kicker { justify-content: center; }
.text-center .lpi-kicker::after {
  content: "";
  width: 1.6em;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent, #ffbe01), transparent);
}

/* ---- 2. BELOW-FOLD OWNED-IMAGE FIGURE -------------------------
   Real-HTML section with an H3 + named alt. loading=lazy, never
   above the fold (LCP protected). Process imagery — no face. */
.lpi-figure {
  margin: 2.5rem 0 0.5rem 0;
}
.lpi-figure h3 {
  margin: 0 0 0.75rem 0;
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  color: var(--color-primary, #062b58);
}
[data-theme="dark"] .lpi-figure h3 { color: var(--color-text, #e6edf3); }
.lpi-figure figure { margin: 0; }
.lpi-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid var(--color-border, #d0d7e2);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
[data-theme="dark"] .lpi-figure img { border-color: rgba(255,255,255,0.10); }
.lpi-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted, #4a5568);
  line-height: 1.5;
}
[data-theme="dark"] .lpi-figure figcaption { color: var(--color-text-faint, #94a3b8); }

/* ---- 3. STICKY MOBILE TAP-TO-CALL BAR (CSS-only) --------------
   Fixed-bottom on <=768px only; hidden on desktop. NAP-canonical
   number (0402 860 499 — matches schema/GBP). Body gets bottom
   padding so it never covers content. Premium amber CTA on navy. */
.lpi-callbar { display: none; }
@media (max-width: 768px) {
  .lpi-callbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: var(--color-primary, #062b58);
    border-top: 1px solid rgba(255, 190, 1, 0.25);
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
    box-shadow: 0 -6px 24px -14px rgba(0,0,0,0.45);
  }
  .lpi-callbar__label {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    font-size: 0.86rem;
    line-height: 1.3;
    font-weight: 500;
  }
  /* The brand tail is redundant on-site and only pads the rail's height. */
  .lpi-callbar__label .lpi-callbar__brand { display: none; }
  .lpi-callbar__label strong { color: var(--color-accent, #ffbe01); font-weight: 700; }
  .lpi-callbar__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-accent, #ffbe01);
    color: var(--color-primary, #062b58) !important;
    font-family: var(--font-body, 'Satoshi', 'Helvetica Neue', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md, 0.5rem);
    min-height: 44px;            /* tap target — WCAG 2.2 */
    box-shadow: none;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .lpi-callbar__btn:hover { transform: translateY(-1px); background: var(--color-accent-hover, #e6ab00); }
  .lpi-callbar__btn:active { transform: translateY(0); }
  .lpi-callbar__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* Inline SVG phone glyph (replaced the U+260E emoji, which rendered as a red
     colour-emoji desk phone on iOS/Android and read as cheap). currentColor keeps
     it in the navy ink already used for the button label. */
  .lpi-callbar__btn svg { width: 15px; height: 15px; opacity: 0.85; }
  /* lift the page so the fixed bar never covers the footer/last block */
  body.lpi-has-callbar { padding-bottom: 76px; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .lpi-callbar__btn { transition: none; }
}


/* ============================================================
   2026-09-30 — new UI lock for the blog.
   Loads after ui-2026.css + grok-color-consistency.css + blog.css.
   Wins the old !important blog rules so cards, type, header and
   footer follow the static site (navy #062b58, amber #ffbe01).
   Nothing here hides an h1, breadcrumb, byline, TL;DR, answer
   block, FAQ, meta or money mesh.
   ============================================================ */

/* Header: transparent over the navy hero (white type), frosted once scrolled.
   The phone pill stays amber/navy in both states. */
body.blog .header:not(.header--scrolled),
body.single .header:not(.header--scrolled),
body.archive .header:not(.header--scrolled),
body.category .header:not(.header--scrolled) {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.blog .header:not(.header--scrolled) .header__nav a:not(.header__call),
body.single .header:not(.header--scrolled) .header__nav a:not(.header__call),
body.archive .header:not(.header--scrolled) .header__nav a:not(.header__call),
body.category .header:not(.header--scrolled) .header__nav a:not(.header__call),
body.blog .header:not(.header--scrolled) .theme-toggle,
body.single .header:not(.header--scrolled) .theme-toggle,
body.archive .header:not(.header--scrolled) .theme-toggle,
body.category .header:not(.header--scrolled) .theme-toggle {
  color: #fff !important;
}
body.blog .header:not(.header--scrolled) .header__nav a[aria-current="page"],
body.single .header:not(.header--scrolled) .header__nav a[aria-current="page"],
body.archive .header:not(.header--scrolled) .header__nav a[aria-current="page"],
body.category .header:not(.header--scrolled) .header__nav a[aria-current="page"] {
  color: #ffbe01 !important;
}
body.blog .header:not(.header--scrolled) .hamburger span,
body.single .header:not(.header--scrolled) .hamburger span,
body.archive .header:not(.header--scrolled) .hamburger span,
body.category .header:not(.header--scrolled) .hamburger span {
  background: #fff !important;
}
body.blog .header .header__nav a.header__call,
body.single .header .header__nav a.header__call,
body.archive .header .header__nav a.header__call,
body.category .header .header__nav a.header__call,
body.home .header .header__nav a.header__call,
body.page .header .header__nav a.header__call,
body.search .header .header__nav a.header__call,
body.error404 .header .header__nav a.header__call {
  color: #062b58 !important;
  background: #ffbe01 !important;
  text-decoration: none !important;
}
/* Static site hides the in-page Locations link when the bar is tight.
   Absolute blog URLs don't match the root-relative selector in ui-2026. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .header__nav > a[href*="#locations"] { display: none; }
}

/* Footer stays the static navy band in both themes (old style.css
   repaints [data-theme=dark] .footer near-black). Services column is
   two columns on desktop — ui-2026 keys that off href="/services/",
   which an absolute URL does not match. */
.footer,
footer.footer,
[data-theme="dark"] .footer {
  background-color: #062b58 !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, #0a3d7a 55%, transparent) 0%, transparent 42%) !important;
  color: #fff !important;
  border-color: #041f42 !important;
}
.footer a,
[data-theme="dark"] .footer a {
  color: rgba(255, 255, 255, 0.92);
}
.footer__links a:hover,
.footer__copy a:hover { color: #ffbe01 !important; }
.footer__desc,
.footer__copy { color: rgba(255, 255, 255, 0.86) !important; }
@media (min-width: 1025px) {
  .footer .footer__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr) minmax(0, 1.1fr) minmax(0, 1.3fr) !important;
  }
}
.footer .footer__grid > div:nth-child(2) .footer__links {
  display: block;
  columns: 2 9.5rem;
  column-gap: 1.5rem;
}
.footer .footer__grid > div:nth-child(2) .footer__links li {
  break-inside: avoid;
  margin: 0;
  padding: 0;
}
.footer .footer__grid > div:nth-child(2) .footer__links a {
  display: inline-block;
  padding: 0.2rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
@media (max-width: 639.98px) {
  .footer .footer__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .footer .footer__grid > div:nth-child(2) .footer__links { columns: 1; }
}
@media (min-width: 640px) and (max-width: 1024.98px) {
  .footer .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Hero — token navy, white type, photo plate kept. grok-color-consistency
   paints .blog-hero-inner as a solid navy box; that fights the split hero. */
.blog-hero,
.blog-hero--split {
  background:
    radial-gradient(42% 48% at 86% 16%, rgba(255, 190, 1, 0.22) 0%, transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #0a3d7a 0%, #062b58 55%, #041f42 100%) !important;
  color: #fff !important;
  padding: clamp(6.25rem, 12vw, 8.25rem) 0 clamp(2.75rem, 5vw, 4.25rem) !important;
  min-height: clamp(300px, 38vh, 440px) !important;
  overflow: hidden !important;
}
.blog-hero .blog-hero-inner,
.blog-hero--split .blog-hero-inner {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  max-width: min(40rem, 100%) !important;
}
.blog-hero-title {
  font-family: var(--font-display, "Cabinet Grotesk", sans-serif) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #fff !important;
  text-wrap: balance;
}
.blog-hero-sub { color: rgba(255, 255, 255, 0.88) !important; max-width: 52ch; }
.blog-hero .blog-breadcrumb,
.blog-hero .blog-breadcrumb a,
.blog-hero .blog-meta,
.blog-hero .blog-meta-item {
  color: rgba(255, 255, 255, 0.92) !important;
}
.blog-hero .blog-meta,
.blog-hero--split .blog-meta,
.blog-hero-inner .blog-meta {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.65rem 0.9rem !important;
  width: auto !important;
  max-width: 100% !important;
}
.blog-hero .blog-meta-item { color: #fff !important; }
.blog-hero .blog-breadcrumb a { text-decoration: underline; text-underline-offset: 0.15em; }
.blog-hero .blog-meta .blog-category-tag,
.blog-hero--split .blog-meta .blog-category-tag,
.blog-hero .blog-category-tag {
  background: rgba(255, 190, 1, 0.22) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 190, 1, 0.9) !important;
}
.blog-hero__plate,
.blog-hero--split .blog-hero__plate {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
@media (max-width: 767.98px) {
  .blog-hero__plate {
    width: min(78vw, 100%) !important;
    height: 30vh !important;
    opacity: 0.3;
  }
}

/* Page canvas */
body.blog,
body.single,
body.archive,
body.category,
body.search,
body.error404,
body.page {
  background: var(--color-bg, #f8f9fb) !important;
  color: var(--color-text, #0d1b2a);
}
.blog-main { background: transparent !important; }

/* Index / archive cards — 1 / 2 / 3 columns, equal height, meta pinned. */
.blog-main > .container { max-width: var(--content-wide, 1200px); }
.blog-index {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(1rem, 2vw, 1.35rem) !important;
  align-items: stretch !important;
  margin-top: clamp(1.25rem, 3vw, 2rem) !important;
  min-width: 0 !important;
}
@media (min-width: 700px) {
  .blog-index { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1100px) {
  .blog-index { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.blog-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
  gap: 0.65rem !important;
  padding: 1.3rem 1.3rem 1.15rem !important;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, #d0d7e2 80%, #062b58 20%) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffbe01 7%, #fff), #fff) !important;
  box-shadow: 0 10px 28px -18px rgba(6, 43, 88, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="dark"] .blog-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffbe01 8%, transparent), transparent 42%),
    var(--color-surface, #161b22) !important;
  border-color: #30363d !important;
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.55) !important;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 52px; height: 3px;
  background: linear-gradient(90deg, #ffbe01, rgba(255, 190, 1, 0.08));
}
.blog-card:hover,
.blog-card:focus-within {
  border-color: color-mix(in srgb, #ffbe01 45%, #d0d7e2) !important;
  transform: translateY(-3px);
}
.blog-card-title {
  font-family: var(--font-display, "Cabinet Grotesk", sans-serif) !important;
  font-size: clamp(1.12rem, 0.4vw + 1rem, 1.28rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.28 !important;
  margin: 0.2rem 0 0 !important;
  text-wrap: balance;
  color: var(--color-text, #0d1b2a) !important;
}
.blog-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
}
.blog-card-title a:hover,
.blog-card-title a:focus {
  color: #062b58 !important;
  text-decoration: underline !important;
  text-decoration-color: #ffbe01 !important;
  text-underline-offset: 0.14em;
}
[data-theme="dark"] .blog-card-title,
[data-theme="dark"] .blog-card-title a { color: #e6edf3 !important; }
[data-theme="dark"] .blog-card-title a:hover { color: #ffbe01 !important; }
.blog-card-excerpt {
  flex: 1 1 auto !important;
  margin: 0 !important;
  font-family: var(--font-body, Satoshi, sans-serif) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #4a5568 !important;
}
[data-theme="dark"] .blog-card-excerpt { color: #c5d0dc !important; }
.blog-card-meta {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.65rem !important;
  margin-top: auto !important;
  padding-top: 0.7rem !important;
  border-top: 1px solid color-mix(in srgb, #d0d7e2 85%, transparent) !important;
  font-size: 0.8rem !important;
  line-height: 1 !important;
  color: #4a5568 !important;
  min-width: 0 !important;
}
[data-theme="dark"] .blog-card-meta {
  color: #c5d0dc !important;
  border-top-color: #30363d !important;
}
.blog-card-meta > span:first-child {
  flex: 0 0 auto;
  line-height: 1;
}
.blog-card .blog-category-tag,
.blog-index .blog-category-tag {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  line-height: 1 !important;
  padding: 0.32rem 0.65rem !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #ffbe01 18%, #fff) !important;
  color: #062b58 !important;
  border: 1px solid color-mix(in srgb, #ffbe01 55%, #d0d7e2) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
[data-theme="dark"] .blog-card .blog-category-tag,
[data-theme="dark"] .blog-index .blog-category-tag {
  background: color-mix(in srgb, #ffbe01 16%, transparent) !important;
  color: #fff !important;
  border-color: color-mix(in srgb, #ffbe01 50%, #30363d) !important;
}
@media (max-width: 420px) {
  .blog-card { padding-inline: 1.05rem !important; }
  .blog-card-meta { gap: 0.45rem !important; }
}

/* Pagination */
.lpi__pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.45rem !important;
}
.lpi__pagination a,
.lpi__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border, #d0d7e2);
  text-decoration: none;
  color: var(--color-text, #0d1b2a);
  font-weight: 650;
}
.lpi__pagination .current,
.lpi__pagination span.current {
  background: color-mix(in srgb, #ffbe01 22%, #fff);
  border-color: color-mix(in srgb, #ffbe01 55%, #d0d7e2);
  color: #062b58;
}

/* Single post measure, type scale, underlined links, scrolling tables. */
.blog-layout,
.blog-article {
  max-width: 72ch !important;
  margin-inline: auto !important;
  min-width: 0;
}
.blog-content,
.blog-content.lpi__post-body {
  font-family: var(--font-body, Satoshi, sans-serif) !important;
  font-size: 1.0625rem !important;
  line-height: 1.72 !important;
  color: var(--color-text, #0d1b2a) !important;
  max-width: 72ch;
  overflow-wrap: break-word;
}
.blog-content h2 {
  font-family: var(--font-display, "Cabinet Grotesk", sans-serif) !important;
  font-size: clamp(1.45rem, 1vw + 1.15rem, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  color: #062b58 !important;
  margin: 2.1rem 0 0.75rem !important;
  text-wrap: balance;
}
.blog-content h3 {
  font-family: var(--font-display, "Cabinet Grotesk", sans-serif) !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: #062b58 !important;
  margin: 1.6rem 0 0.5rem !important;
}
[data-theme="dark"] .blog-content h2,
[data-theme="dark"] .blog-content h3 { color: #e6edf3 !important; }
.blog-content a,
.blog-breadcrumb a,
.blog-back-link {
  text-decoration: underline !important;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
.blog-content .lpi-inline-cta a,
.blog-content .blog-cta-phone,
.blog-cta-phone {
  text-decoration: none !important;
}
.blog-content p,
.blog-content li { color: inherit; }
.blog-back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  color: #062b58;
}
[data-theme="dark"] .blog-back-link { color: #e6edf3; }

/* Tables scroll in their own box at phone width. */
.blog-content table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border-collapse: collapse !important;
}
@media (max-width: 700px) {
  .blog-content th,
  .blog-content td {
    min-width: 9.5rem !important;
  }
}
.blog-content th,
.blog-content td {
  padding: 0.65rem 0.75rem !important;
  border-color: var(--color-border, #d0d7e2) !important;
  vertical-align: top;
}
[data-theme="dark"] .blog-content th,
[data-theme="dark"] .blog-content td { color: #e6edf3; }

/* TL;DR + answer block — kill the inline light-blue wash. */
.blog-content .lpi-tldr,
.blog-content .lpi-answer-block,
.lpi-tldr,
.lpi-answer-block {
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, #062b58 14%, #d0d7e2) !important;
  border-left: 3px solid #ffbe01 !important;
  background: linear-gradient(180deg, color-mix(in srgb, #ffbe01 10%, #fff), #fff) !important;
  color: #0d1b2a !important;
  padding: 1rem 1.15rem !important;
  box-shadow: 0 10px 28px -18px rgba(6, 43, 88, 0.35) !important;
}
.blog-content .lpi-tldr strong,
.lpi-tldr strong { color: #062b58 !important; }
[data-theme="dark"] .blog-content .lpi-tldr,
[data-theme="dark"] .blog-content .lpi-answer-block,
[data-theme="dark"] .lpi-tldr,
[data-theme="dark"] .lpi-answer-block,
[data-theme="dark"] .blog-content .lpi-tldr strong,
[data-theme="dark"] .lpi-tldr strong {
  background: color-mix(in srgb, #161b22 90%, #062b58) !important;
  color: #e6edf3 !important;
  border-color: #30363d !important;
  border-left-color: #ffbe01 !important;
}

.lpi-byline {
  color: #3d4a5c !important;
  font-size: 0.9rem !important;
  border-bottom: 1px solid var(--color-border, #d0d7e2) !important;
}
[data-theme="dark"] .lpi-byline {
  color: #c5d0dc !important;
  border-bottom-color: #30363d !important;
}

/* FAQ — same details accordion language as the static site. */
.blog-content details.faq-item,
.blog-content .faq-item {
  border: 1px solid color-mix(in srgb, #d0d7e2 75%, #062b58 25%) !important;
  border-radius: 18px !important;
  padding: 0.9rem 1.1rem !important;
  margin: 0.7rem 0 !important;
  background: var(--color-surface, #fff) !important;
  box-shadow: 0 8px 22px -18px rgba(6, 43, 88, 0.45);
}
[data-theme="dark"] .blog-content details.faq-item,
[data-theme="dark"] .blog-content .faq-item {
  background: var(--color-surface, #161b22) !important;
  border-color: #30363d !important;
}
.blog-content .faq-item__question,
.blog-content details.faq-item > summary {
  font-family: var(--font-display, "Cabinet Grotesk", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #062b58 !important;
  cursor: pointer;
  list-style: none;
}
[data-theme="dark"] .blog-content .faq-item__question,
[data-theme="dark"] .blog-content details.faq-item > summary { color: #e6edf3 !important; }
.blog-content .faq-item__answer,
.blog-content details.faq-item .faq-item__answer {
  color: var(--color-text, #0d1b2a) !important;
  padding-top: 0.55rem;
}
[data-theme="dark"] .blog-content .faq-item__answer { color: #e6edf3 !important; }

/* CTAs */
.lpi-inline-cta {
  background: #062b58 !important;
  color: #fff !important;
  border-radius: 18px !important;
  border: 1px solid #041f42 !important;
  padding: 1.15rem 1.25rem !important;
  margin: 1.5rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.85rem !important;
}
.lpi-inline-cta,
.lpi-inline-cta span,
.lpi-inline-cta strong { color: #fff !important; }
.lpi-inline-cta a {
  background: #ffbe01 !important;
  color: #062b58 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.15rem !important;
  text-decoration: none !important;
}
.blog-cta {
  background: #062b58 !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, #0a3d7a 50%, transparent), transparent 55%) !important;
  color: #fff !important;
  border-radius: 22px !important;
  border: 1px solid #041f42 !important;
  padding: 1.6rem 1.4rem !important;
  text-align: center;
  margin-top: 2rem !important;
}
.blog-cta h2 { color: #fff !important; font-family: var(--font-display, "Cabinet Grotesk", sans-serif) !important; }
.blog-cta p { color: rgba(255, 255, 255, 0.88) !important; }
.blog-cta-phone {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: #ffbe01 !important;
  color: #062b58 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.2rem !important;
  text-decoration: none !important;
}
.blog-content .lpi-money-mesh {
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, #062b58 12%, #d0d7e2) !important;
  border-left: 3px solid #ffbe01 !important;
  padding: 1rem 1.15rem !important;
  background: var(--color-surface, #fff) !important;
}
[data-theme="dark"] .blog-content .lpi-money-mesh {
  background: var(--color-surface, #161b22) !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
}

/* Diagram frame for figures dropped into posts later. */
.lpi-figure {
  position: relative;
  margin: 1.75rem auto;
  padding: 1.25rem 1.3rem 1.3rem;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, #d0d7e2 80%, #062b58 20%);
  background: var(--color-surface, #fff);
  box-shadow: 0 10px 28px -18px rgba(6, 43, 88, 0.35);
  overflow: hidden;
}
.lpi-figure h3 { color: #062b58; margin-top: 0; }
[data-theme="dark"] .lpi-figure {
  background: var(--color-surface, #161b22);
  border-color: #30363d;
}
[data-theme="dark"] .lpi-figure h3 { color: #e6edf3; }
.lpi-figure img { max-width: 100%; height: auto; border-radius: 12px; }

/* Call bar — light surface + navy type (static design lock), amber pill. */
@media (max-width: 768px) {
  .lpi-callbar {
    display: flex !important;
    background: color-mix(in srgb, #fff 94%, #062b58 6%) !important;
    color: #062b58 !important;
    border-top: 1px solid color-mix(in srgb, #ffbe01 45%, #d0d7e2) !important;
  }
  .lpi-callbar__label,
  .lpi-callbar__label strong,
  .lpi-callbar__brand { color: #062b58 !important; }
  .lpi-callbar__label .lpi-callbar__brand { display: inline !important; }
  .lpi-callbar__btn {
    background: #ffbe01 !important;
    color: #062b58 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
  }
  body.lpi-has-callbar { padding-bottom: 4.5rem; }
}
[data-theme="dark"] .lpi-callbar {
  background: color-mix(in srgb, #0d1117 88%, #062b58 12%) !important;
}
[data-theme="dark"] .lpi-callbar__label,
[data-theme="dark"] .lpi-callbar__label strong,
[data-theme="dark"] .lpi-callbar__brand { color: #e6edf3 !important; }

/* No sideways page scroll at 390. */
@media (max-width: 420px) {
  .blog-hero,
  .blog-main,
  .footer .container,
  .header__inner { max-width: 100%; }
  .blog-content img,
  .blog-content figure,
  .lpi-figure img { max-width: 100% !important; height: auto; }
}

/* Hero meta sits on the navy plate. ui-2026 paints every .blog-meta as a
   cream card (html[data-theme="light"] .blog-meta), which hid the white
   date and author. Keep that card for in-body meta; flatten it here. */
html[data-theme] .blog-hero .blog-meta,
html[data-theme] .blog-hero--split .blog-meta,
html[data-theme] .blog-hero-inner .blog-meta {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
html[data-theme] .blog-hero .blog-meta-item,
html[data-theme] .blog-hero--split .blog-meta-item {
  color: #fff !important;
}

/* LPI FIXES v31 (staged): parity with root ui-2026.css */
.entry-content p{font-size:max(1rem,1em)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #062b58;outline-offset:2px}
html[data-theme="dark"] :focus-visible,footer :focus-visible,header :focus-visible{outline-color:#ffbe01}
