/* ===== Reset & Custom Properties ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Core palette */
  --orange: #F69C52;
  --orange-hover: #e88a3a;
  --orange-deep: #d4792a;
  --orange-light: rgba(246, 156, 82, 0.08);
  --orange-glow: 0 0 20px rgba(246, 156, 82, 0.4), 0 0 60px rgba(246, 156, 82, 0.15);
  --orange-glow-lg: 0 0 30px rgba(246, 156, 82, 0.5), 0 0 80px rgba(246, 156, 82, 0.2), 0 0 120px rgba(246, 156, 82, 0.1);
  --orange-glow-pulse: 0 0 40px rgba(246, 156, 82, 0.6), 0 0 100px rgba(246, 156, 82, 0.25);
  --dark-teal: #0D2123;
  --dark-teal-light: #163a3e;
  --dark-teal-deep: #081819;
  --dark-teal-rich: #0a1d1f;
  --blue: #1A4F76;
  --blue-deep: #133b59;
  --teal: #54B6BF;
  --teal-dark: #3896A0;
  --teal-glow: rgba(84, 182, 191, 0.15);
  --cream: #FFFEF8;
  --cream-warm: #fdf8f0;
  --peach: #F8CFA9;
  --peach-light: #fce4cc;
  --black: #080808;
  --gray-900: #151515;
  --gray-800: #222;
  --gray-700: #3a3a3a;
  --gray-600: #555855;
  --gray-500: #7a7a7a;
  --gray-400: #999;
  --gray-300: #c4c4c4;
  --gray-200: #e2e2df;
  --gray-100: #f4f4f1;
  --white: #FFFFFF;
  --green: #00a86b;
  --green-light: rgba(0, 168, 107, 0.1);
  --red: #DF3131;
  --red-light: rgba(223, 49, 49, 0.08);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-ui: 'DM Sans', sans-serif;

  /* Spacing scale */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;
  --space-4xl: 160px;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 72px;
  --topbar-height: 36px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.14);
  --shadow-2xl: 0 40px 100px rgba(0,0,0,0.18);
  --shadow-glow: 0 0 40px rgba(246,156,82,0.15);
  --shadow-glow-lg: 0 0 80px rgba(246,156,82,0.2);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);
  --shadow-dark: 0 20px 60px rgba(0,0,0,0.35);

  /* Easing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snap: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --transition-fast: 0.15s var(--ease);
  --transition-slow: 0.6s var(--ease-out);
  --transition-xslow: 1s var(--ease-out);

  /* Borders */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* Glass */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-bg-light: rgba(255,255,255,0.7);
  --glass-border-light: rgba(255,255,255,0.3);
}

/* ===== Page Load Animation ===== */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background-color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
  animation: pageLoad 0.6s var(--ease-out) forwards;
}

/* Refined noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.014;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.05; letter-spacing: 2px; text-transform: uppercase; }

/* Selection */
::selection { background: rgba(246, 156, 82, 0.2); color: var(--dark-teal); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ===== Layout ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.container--wide { max-width: var(--container-wide); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ===== Section Label ===== */
.section-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: "";
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  flex-shrink: 0;
}

/* ===== Check List ===== */
.check-list { list-style: none; padding: 0; margin: var(--space-lg) 0; }
.check-list li {
  font-size: 16px;
  color: var(--gray-600);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.check-list li:hover { transform: translateX(4px); }
.check-list li i { color: var(--green); font-size: 18px; flex-shrink: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on all buttons */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s var(--ease);
  pointer-events: none;
}
.btn:hover::before { left: 120%; }

.btn--glow {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: var(--white);
  padding: 16px 36px;
  font-size: 15px;
}
.btn--glow:hover {
  background: linear-gradient(135deg, var(--orange-hover) 0%, var(--orange-deep) 100%);
  transform: translateY(-3px);
  box-shadow: var(--orange-glow-lg);
}
.btn--glow:active { transform: translateY(-1px); }

.btn--dark {
  background: var(--dark-teal);
  color: var(--white);
  padding: 16px 36px;
  font-size: 15px;
}
.btn--dark:hover { background: var(--dark-teal-light); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,33,35,0.3); }

.btn--outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.25);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange); background: rgba(246,156,82,0.06); transform: translateY(-3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: var(--white);
  padding: 16px 36px;
  font-size: 15px;
}
.btn--primary:hover { background: linear-gradient(135deg, var(--orange-hover) 0%, var(--orange-deep) 100%); transform: translateY(-3px); box-shadow: var(--orange-glow); }

.btn--ghost {
  background: transparent;
  color: var(--dark-teal);
  padding: 14px 32px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); transform: translateY(-2px); }

.btn--lg { padding: 20px 48px; font-size: 16px; border-radius: var(--radius-md); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--xs { padding: 8px 16px; font-size: 12px; }
.btn--full { width: 100%; }

.btn i { font-size: 14px; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

/* Pulsing glow variant */
.btn--pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 156, 82, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(246, 156, 82, 0); }
}

/* ===== Page Hero (inner pages) =====
   One locked size for every inner-page hero. The header is sticky (in normal
   flow), so the hero must NOT reserve space for it — that was adding ~108px of
   dead air at the top of every page. Height is pinned via --hero-h and the
   content is centred inside it, so each page's hero is exactly the same box. */
.page-hero {
  --hero-h: 300px;
  background: var(--dark-teal);
  min-height: var(--hero-h);
  padding: var(--space-xl) 0 calc(var(--space-xl) + 14px);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(26,79,118,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 70%, rgba(84,182,191,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(246,156,82,0.06) 0%, transparent 50%);
  animation: heroMeshDrift 15s ease-in-out infinite alternate;
}
@keyframes heroMeshDrift {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.03) translate(-0.5%, 0.5%); }
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -5%;
  width: 110%;
  height: 34px;
  background: var(--cream);
  border-radius: 50% 50% 0 0;
}

.page-hero .container { position: relative; z-index: 2; width: 100%; }

.page-hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: var(--space-sm);
  position: relative;
  text-wrap: balance;
}
.page-hero h1 span,
.page-hero h1 em { color: var(--orange); font-style: normal; }
.page-hero__sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--peach);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  opacity: 0.85;
  text-wrap: balance;
}

/* Long editorial titles (blog posts, guide chapters) get their own smaller
   ramp and a measure cap, so even a 100-character headline stays at two lines
   and the hero keeps the same height as everywhere else. */
.page-hero--post h1,
.guide-chapter-hero h1 {
  font-size: clamp(23px, 2.5vw, 35px);
  letter-spacing: 1.5px;
  max-width: 900px;
}
/* The post hero is left-aligned, so its title must not be centred as a block —
   only the guide chapter hero centres. */
.guide-chapter-hero h1 { margin-inline: auto; }

/* Anything sitting above the title in a hero stays compact. */
.page-hero .section-label { justify-content: center; margin-bottom: var(--space-sm); }
.page-hero .hero__badge { margin: 0 auto var(--space-sm); }

/* ===== Page Content ===== */
.page-content { padding: var(--space-2xl) 0; }
.page-content h2 { font-size: clamp(32px, 4vw, 52px); color: var(--dark-teal); margin-bottom: var(--space-lg); letter-spacing: 2px; }
.page-content h3 { font-size: 28px; color: var(--dark-teal); margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.page-content p { font-size: 17px; color: var(--gray-600); line-height: 1.85; margin-bottom: var(--space-lg); max-width: 780px; }
.page-content ul, .page-content ol { margin-bottom: var(--space-lg); padding-left: var(--space-lg); }
.page-content li { font-size: 17px; color: var(--gray-600); line-height: 1.85; margin-bottom: var(--space-sm); }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Directional reveals */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.reveal-blur.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Staggered children */
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }
/* Safety net: any child past the 8th still reveals (never leave content hidden) */
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.62s; opacity: 1; transform: translateY(0); }

/* Respect reduced-motion: show everything, skip the movement */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-blur,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ===== Utility Classes ===== */
.text-orange { color: var(--orange); }
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }
.bg-dark { background: var(--dark-teal); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --space-2xl: 56px; --space-3xl: 80px; --space-4xl: 110px; }
  .container { padding: 0 var(--space-md); }
  .page-hero::after { height: 26px; }
  .page-hero { --hero-h: 244px; padding: var(--space-lg) 0 calc(var(--space-lg) + 12px); }
  .page-hero h1 { letter-spacing: 2px; }
  .page-hero__sub { font-size: 15px; }
}
@media (max-width: 480px) {
  .page-hero { --hero-h: 240px; }
  .page-hero h1 { font-size: 30px; letter-spacing: 1.5px; }
  .page-hero--post h1,
  .guide-chapter-hero h1 { font-size: 20px; letter-spacing: 1px; }
  .page-hero__sub { font-size: 14px; }
}

/* ===== In-content (contextual) links =====
   Global `a` is colour:inherit / no underline for nav and cards, so body-copy
   links need to opt back in to looking like links. */
.page-content p a:not(.btn),
.page-content li a:not(.btn),
.page-content td a:not(.btn),
.prose a:not(.btn) {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 121, 42, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.page-content p a:not(.btn):hover,
.page-content li a:not(.btn):hover,
.page-content td a:not(.btn):hover,
.prose a:not(.btn):hover {
  color: var(--dark-teal);
  border-bottom-color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content p a:not(.btn):focus-visible,
.page-content li a:not(.btn):focus-visible,
.prose a:not(.btn):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On dark sections, flip to the light brand tone for contrast */
.section--dark .page-content p a:not(.btn),
.split--dark p a:not(.btn) {
  color: var(--peach);
  border-bottom-color: rgba(248, 207, 169, 0.4);
}
.section--dark .page-content p a:not(.btn):hover,
.split--dark p a:not(.btn):hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ===================================================================
   MOBILE HARDENING
   Phone-width fixes that have to sit last in the cascade. Much of the
   page markup carries layout in `style="..."` attributes, and an inline
   declaration outranks any stylesheet rule — so the grid overrides below
   need `!important` to reach it. Everything here is gated behind a
   max-width query and changes nothing on desktop.
   =================================================================== */

/* --- 1. Directional reveals must not push sideways -----------------
   `.reveal-left/-right` start 50px off to the side. On a wide screen the
   page gutter swallows that; on a phone it lands outside the viewport and
   the whole document scrolls horizontally. Same animation, vertical axis. */
@media (max-width: 900px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }
  .reveal-left.is-visible,
  .reveal-right.is-visible {
    transform: translateY(0);
  }
}

/* --- 2. Collapse hard-coded column counts -------------------------
   Grids declared inline as `repeat(3, 1fr)` etc. keep all their columns at
   375px and blow the layout out (the reviews stat bar measured 716px inside
   a 375px screen). `auto-fit`/`auto-fill` grids already reflow on their own,
   so they're excluded. `minmax(0, 1fr)` rather than `1fr` so a long word or
   a wide child can't force the track open again. */
@media (max-width: 900px) {
  [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Grid and flex children default to min-width:auto, which refuses to shrink
   below their content. That is what widened the contact page to 425px. */
@media (max-width: 900px) {
  [style*="display: grid"] > *,
  [style*="display:grid"] > *,
  [style*="display: flex"] > *,
  [style*="display:flex"] > * {
    min-width: 0;
  }
}

/* The thin vertical rules between stacked stats read as a stray full-width
   line once the row becomes a column. */
@media (max-width: 600px) {
  [style*="width: 1px"][style*="height: 80px"],
  [style*="width:1px"][style*="height:80px"] {
    display: none !important;
  }
}

/* --- 3. Wide media can't set the page width ------------------------ */
@media (max-width: 900px) {
  img,
  svg,
  video,
  iframe,
  .video-embed {
    max-width: 100%;
    height: auto;
  }
  /* Tables keep their own width but scroll inside their own box rather
     than dragging the document sideways (the plan-comparison table on
     /services/ is 407px wide and cannot usefully reflow). */
  .page-content table,
  .prose table,
  .blog-post__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Long unbroken strings — URLs, emails — wrap instead of overflowing. */
  p, li, td, th, h1, h2, h3, h4, dd, dt, figcaption {
    overflow-wrap: break-word;
  }
  /* `info@mobilemechanicleads.com` has no break opportunity, so the contact
     card's min-content width was 378px and nothing could shrink it. */
  .contact-grid span,
  .contact-grid a {
    overflow-wrap: anywhere;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  /* Reclaim the horizontal room those cards spend on chrome. */
  .contact-grid a[style*="display: flex"] {
    gap: 14px !important;
    padding: 18px 16px !important;
  }
}

/* Grid children declared in stylesheets (rather than inline) need the same
   min-width release — a long button label inside the guide chapter layout
   was forcing its track 29px wider than the container. */
@media (max-width: 900px) {
  .guide-chapter-grid > *,
  .blog-post__grid > *,
  .loc-grid > *,
  .contact-grid > * {
    min-width: 0;
  }
  .btn {
    white-space: normal;
    max-width: 100%;
  }
}

/* --- 4. Touch targets ---------------------------------------------
   WCAG 2.5.8 asks for 24px minimum; 44px is the platform convention and
   what these controls were missing — several sat at 20–30px. */
@media (max-width: 900px) {
  .topbar__phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }
  .header__toggle {
    width: 44px;
    height: 44px;
  }
  .footer__bottom a,
  .footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }
  /* Phone and email in the footer are the two highest-intent links on a
     phone — they were 22px tall. The icon sits outside the <a>, so the row
     becomes the flex container and the link stretches inside it. */
  .footer__contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
  }
  .footer__contact p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .header__logo {
    min-height: 44px;
  }
  details > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* These live in per-page <style> blocks, which the browser applies after
     this file — so they need !important to be reached from here. */
  .blog-topic-tag,
  .blog-card__link,
  .guide-share__btn,
  .guide-chapter-meta__toc-link {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .guide-share__btn {
    min-width: 44px !important;
  }
  .blog-topic-tag {
    padding-block: 10px !important;
  }
}

/* --- 5. Type floors ------------------------------------------------
   11px uppercase eyebrows are legible on a desktop monitor and not on a
   phone held at arm's length. Nothing here changes the desktop sizes. */
@media (max-width: 600px) {
  .hero__badge,
  .hero__float-label,
  .pstep__meta,
  .blog-featured__badge,
  .blog-card__date,
  .blog-popular__item-date,
  .guide-part__num,
  .guide-toc-hero__stat-label,
  .footer__bottom p,
  .footer__bottom a {
    font-size: 12px;
  }
}

/* --- 6. Safety net -------------------------------------------------
   The causes above are fixed individually; this stops any future stray
   wide element from making the whole page scroll sideways. `clip` rather
   than `hidden` because `hidden` would turn <body> into a scroll container
   and break the sticky header. */
@media (max-width: 900px) {
  body {
    overflow-x: clip;
  }
}
