/*
Theme Name: Kadence KPEV
Template: kadence
Description: Kinetic PEV child theme — Design System v4 (token cleanup, canonical tokens from Kinetic PEV Design System)
Version: 1.0
*/

/* ============================================================
   KINETIC PEV — Design System tokens (canonical)
   Source: ~/Claude/Kinetic Pev Design System/tokens/*
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-sans:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ---- Weights ---- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* ---- Type scale (1rem = 16px) ---- */
  --text-2xs:  0.6875rem;  /* 11px */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-md:   1.0625rem;  /* 17px */
  --text-lg:   1.3125rem;  /* 21px */
  --text-xl:   1.625rem;   /* 26px */
  --text-2xl:  2.0625rem;  /* 33px */
  --text-3xl:  2.625rem;   /* 42px */
  --text-4xl:  3.5rem;     /* 56px */
  --text-5xl:  4.5rem;     /* 72px */
  --text-6xl:  6rem;       /* 96px */

  /* ---- Line heights ---- */
  --lh-tight:   1.02;
  --lh-snug:    1.12;
  --lh-heading: 1.18;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* ---- Letter spacing ---- */
  --ls-tighter: -0.03em;
  --ls-tight:   -0.015em;
  --ls-normal:  0em;
  --ls-wide:    0.04em;
  --ls-wider:   0.12em;
  --ls-widest:  0.2em;

  /* ---- Brand: Petrol Teal (brand color #026E73) ---- */
  --teal-50:  #E6F2F2;
  --teal-100: #C2E0E1;
  --teal-200: #8FC6C8;
  --teal-300: #54A8AB;
  --teal-400: #1E8B8F;
  --teal-500: #026E73;   /* brand */
  --teal-600: #02585C;
  --teal-700: #034749;
  --teal-800: #07393B;
  --teal-900: #0A2C2E;

  /* ---- Ink: warm-neutral greys ---- */
  --ink-950: #0E1112;
  --ink-900: #181D1F;
  --ink-800: #2A3134;
  --ink-700: #3D4548;
  --ink-600: #555F63;
  --ink-500: #6E787C;
  --ink-400: #8C9498;
  --ink-300: #AFB6B9;
  --ink-200: #D3D8D9;
  --ink-100: #E7EAEA;
  --ink-50:  #F2F4F3;

  /* ---- Paper: warm sand ---- */
  --sand-50:  #FBFAF6;
  --sand-100: #F6F2EA;
  --sand-200: #EDE7DA;
  --sand-300: #DFD7C5;

  --white: #FFFFFF;
  --black: #0B0D0E;

  /* ---- Accent: Sunset Coral ---- */
  --coral-50:  #FFF0EB;
  --coral-100: #FFDDD0;
  --coral-300: #FF9F80;
  --coral-500: #FF6A3D;  /* accent */
  --coral-600: #E8542A;
  --coral-700: #C23F1B;

  /* ---- Volt: electric amber ---- */
  --volt-100: #FFF1CC;
  --volt-300: #FFD25E;
  --volt-500: #FFC233;
  --volt-600: #EBA300;

  /* ---- Semantic status ---- */
  --green-100: #D8F0E2;
  --green-500: #2FA36B;
  --green-600: #1F8754;
  --amber-100: #FCEBC6;
  --amber-500: #F2A516;
  --amber-600: #CB8200;
  --red-100:   #FBDDDE;
  --red-500:   #E5484D;
  --red-600:   #C12E33;

  /* ---- Semantic aliases ---- */
  --brand:            var(--teal-500);
  --brand-hover:      var(--teal-600);
  --brand-active:     var(--teal-700);
  --brand-subtle:     var(--teal-50);
  --brand-on:         #FFFFFF;
  --accent:           var(--coral-500);
  --accent-hover:     var(--coral-600);
  --accent-on:        #FFFFFF;
  --spark:            var(--volt-500);

  --bg:               var(--sand-100);
  --bg-deep:          var(--ink-950);
  --surface:          var(--white);
  --surface-sunken:   var(--sand-50);
  --surface-raised:   var(--white);
  --surface-inverse:  var(--ink-900);

  --text-strong:      var(--ink-900);
  --text-body:        var(--ink-700);
  --text-muted:       var(--ink-500);
  --text-faint:       var(--ink-400);
  --text-on-brand:    #FFFFFF;
  --text-on-dark:     var(--sand-100);
  --text-on-dark-muted: #9AA4A6;
  --text-link:        var(--teal-600);

  --border:           var(--ink-200);
  --border-strong:    var(--ink-300);
  --border-on-dark:   rgba(255,255,255,0.14);
  --hairline:         rgba(24,29,31,0.10);

  --success:          var(--green-500);
  --success-bg:       var(--green-100);
  --warning:          var(--amber-500);
  --warning-bg:       var(--amber-100);
  --danger:           var(--red-500);
  --danger-bg:        var(--red-100);
  --info:             var(--teal-500);
  --info-bg:          var(--teal-50);

  /* ---- Spacing (4px grid) ---- */
  --space-0:   0;
  --space-px:  1px;
  --space-0-5: 0.125rem;
  --space-1:   0.25rem;
  --space-1-5: 0.375rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* ---- Radii ---- */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---- Border widths ---- */
  --bw-hair: 1px;
  --bw-1:    1.5px;
  --bw-2:    2px;
  --bw-3:    3px;

  /* ---- Shadows ---- */
  --shadow-xs:  0 1px 2px rgba(10,44,46,0.06);
  --shadow-sm:  0 1px 2px rgba(10,44,46,0.06), 0 2px 6px rgba(10,44,46,0.06);
  --shadow-md:  0 2px 4px rgba(10,44,46,0.05), 0 8px 20px rgba(10,44,46,0.09);
  --shadow-lg:  0 4px 8px rgba(10,44,46,0.06), 0 18px 40px rgba(10,44,46,0.12);
  --shadow-xl:  0 8px 16px rgba(10,44,46,0.08), 0 30px 64px rgba(10,44,46,0.16);
  --shadow-brand: 0 8px 22px rgba(2,110,115,0.28);
  --shadow-coral: 0 8px 22px rgba(255,106,61,0.30);
  --shadow-inset: inset 0 1px 2px rgba(10,44,46,0.08);

  /* ---- Focus ring ---- */
  --focus-ring: rgba(2,110,115,0.45);
  --ring-width: 3px;
  --ring: 0 0 0 var(--ring-width) var(--focus-ring);

  /* ---- Motion ---- */
  --ease-out:    cubic-bezier(0.22, 0.78, 0.28, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   320ms;
  --dur-slower: 480ms;

  /* ---- Layout ---- */
  --container:     1200px;
  --container-wide:1380px;
  --container-prose: 680px;
  --gutter:        clamp(1.25rem, 4vw, 4rem);
  --header-h:      72px;
}

/* ============================================================
   Base layer — element defaults + brand utilities
   ============================================================ */

body {
  font-family: var(--font-sans) !important;
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .site-title, .entry-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
h1 { font-size: var(--text-4xl); letter-spacing: var(--ls-tighter); line-height: var(--lh-tight); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

a { color: var(--text-link); }
a:hover { color: var(--brand-hover); }

::selection { background: var(--teal-200); color: var(--ink-900); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

.kpe-eyebrow {
  display: inline-block;
  line-height: 1;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand);
}

.wp-block-button__link, .button, button, input[type="submit"] {
  border-radius: var(--radius-pill) !important;
}

/* ---------- Kadence theme chrome ---------- */
.site-header { background-color: var(--surface); border-bottom: 1px solid var(--hairline); }
.site-footer { background-color: var(--sand-50); border-top: 1px solid var(--hairline); }
.site-header img.custom-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
}

/* Home page: hide the default WP page-title hero — the kpev-hero section below already provides the page heading */
body.home .entry-hero.page-hero-section { display: none; }
body.home #primary.content-area { margin-top: 0; margin-bottom: 24px; }
body.home .entry-content-wrap { padding-top: 0; }
/* Tighten the gap between the Paperwork card and the site footer */
section.kpev-paperwork-section { padding-bottom: 24px; }
body.home .kpev-hero { padding-top: 4px; }

/* Sign Up page: hide the default WP page-title hero */
body.page-id-6 .entry-hero.page-hero-section { display: none; }
body.page-id-6 #primary.content-area { margin-top: 0; }
body.page-id-6 .entry-content-wrap { padding-top: 1rem; }

/* Request a Quote page: hide the default WP page-title hero */
body.page-id-61 .entry-hero.page-hero-section { display: none; }
body.page-id-61 #primary.content-area { margin-top: 0; }
body.page-id-61 .entry-content-wrap { padding-top: 1rem; }

/* Service Center page: hide the default WP page-title hero — the kpev-page-hero section below already provides the page heading */
body.page-id-7 .entry-hero.page-hero-section { display: none; }
body.page-id-7 #primary.content-area { margin-top: 0; }
body.page-id-7 .entry-content-wrap { padding-top: 0; }

/* Tire & Brake Services page: hide the default WP page-title hero — the kpev-page-hero section below already provides the page heading */
body.page-id-8 .entry-hero.page-hero-section { display: none; }
body.page-id-8 #primary.content-area { margin-top: 0; }
body.page-id-8 .entry-content-wrap { padding-top: 0; }

/* Electronic Services page: hide the default WP page-title hero — the kpev-page-hero section below already provides the page heading */
body.page-id-9 .entry-hero.page-hero-section { display: none; }
body.page-id-9 #primary.content-area { margin-top: 0; }
body.page-id-9 .entry-content-wrap { padding-top: 0; }

/* Terms & Conditions / Privacy Policy pages: hide the default WP page-title hero — the kpev-page-hero section below already provides the page heading */
body.page-id-109 .entry-hero.page-hero-section,
body.page-id-110 .entry-hero.page-hero-section { display: none; }
body.page-id-109 #primary.content-area,
body.page-id-110 #primary.content-area { margin-top: 0; }
body.page-id-109 .entry-content-wrap,
body.page-id-110 .entry-content-wrap { padding-top: 0; }

/* Paperwork page: hide the default WP page-title hero — the kpev-page-hero section below already provides the page heading */
body.page-id-137 .entry-hero.page-hero-section { display: none; }
body.page-id-137 #primary.content-area { margin-top: 0; }
body.page-id-137 .entry-content-wrap { padding-top: 0; }

/* Book an Appointment page: hide the default WP page-title hero — kpev-page-hero in post_content provides the heading */
body.page-id-11 .entry-hero.page-hero-section { display: none; }
body.page-id-11 #primary.content-area { margin-top: 0; }
body.page-id-11 .entry-content-wrap { padding-top: 0; }

/* Full-width section padding fix — keep alignfull content off the viewport edge */
.wp-block-group.alignfull {
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}

/* Constrain alignfull section content to the same container width as the
   kpev-* sections, so text doesn't run edge-to-edge on wide screens */
.entry-content > .wp-block-group.alignfull > .wp-block-group__inner-container.is-layout-constrained > :not(.alignwide):not(.alignfull) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Sticky header (window.SiteHeader equivalent)
   ============================================================ */
.kpev-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(246,242,234,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.kpev-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.kpev-header-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.kpev-header-brand img { width: 42px; height: 42px; }
.kpev-header-brand span {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 19px;
  letter-spacing: var(--ls-tight);
  color: var(--ink-900);
}
.kpev-header-brand .kpev-teal-text { color: var(--brand); }
.kpev-footer .kpev-teal-text { color: var(--teal-300); }
.kpev-header-nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.kpev-header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 14.5px;
  color: var(--text-body);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.kpev-header-nav a:hover {
  background: var(--sand-200);
  color: var(--ink-900);
  text-decoration: none;
}
.kpev-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kpev-header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-800);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: 13.5px;
}
.kpev-header-phone:hover { color: var(--brand); text-decoration: none; }
.kpev-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff !important;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.kpev-header-cta:hover { background: var(--brand-hover); text-decoration: none; }
.kpev-header-cta:active { background: var(--brand-active); transform: translateY(1px) scale(0.985); }

@media (max-width: 960px) {
  .kpev-header { display: none; }
}
@media (min-width: 961px) {
  #masthead.site-header { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.kpev-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 40px;
}
.kpev-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .kpev-hero-grid { grid-template-columns: 1fr; }
}
.kpev-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  margin: 0;
}
.kpev-hero h1 .kpev-accent { color: var(--brand); }
.kpev-hero p.kpev-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 460px;
  margin: 20px 0 0;
}
.kpev-hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.kpev-hero-ctas a {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 15px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kpev-hero-ctas a.kpev-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.kpev-hero-ctas a.kpev-btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.kpev-hero-ctas a.kpev-btn-primary:active { background: var(--brand-active); transform: translateY(1px) scale(0.985); }
.kpev-hero-ctas a.kpev-btn-secondary {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--border-strong);
}
.kpev-hero-ctas a.kpev-btn-secondary:hover { background: var(--sand-200); text-decoration: none; }
.kpev-hero-ctas a.kpev-btn-secondary:active { transform: translateY(1px) scale(0.985); }

.kpev-hero-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.kpev-hero-rating .stars { color: var(--spark); font-size: 17px; letter-spacing: 2px; }
.kpev-hero-rating .label { font-size: 14px; color: var(--text-muted); }
.kpev-hero-rating .label strong { color: var(--ink-900); }

.kpev-hero-figure { position: relative; }
.kpev-hero-photo {
  position: relative;
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-500) 60%, var(--teal-400));
  box-shadow: var(--shadow-lg);
}
.kpev-hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.14;
  background-image: url('/wp-content/uploads/2026/06/kinetic-badge-white-1-scaled.png');
  background-size: 78%;
  background-position: center;
  background-repeat: no-repeat;
}
.kpev-hero-photo .kpev-photo-label {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.kpev-hero-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.kpev-hero-card.kpev-ticket {
  right: -14px; top: 28px;
  width: 210px;
}
.kpev-hero-card .kpev-badge-success {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: var(--fw-bold); color: var(--teal-700);
  background: var(--brand-subtle); padding: 4px 10px; border-radius: var(--radius-pill);
}
.kpev-hero-card .kpev-badge-success::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.kpev-hero-card .kpev-ticket-name {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 16px;
  margin-top: 10px; color: var(--ink-900);
}
.kpev-hero-card .kpev-ticket-id {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
.kpev-hero-card.kpev-specs {
  left: -16px; bottom: 26px;
  display: flex; gap: 18px;
}
.kpev-spec-stat .v { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: 22px; color: var(--ink-900); }
.kpev-spec-stat .v.brand { color: var(--brand); }
.kpev-spec-stat .u { font-size: 13px; }
.kpev-spec-stat .l { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-wide); margin-top: 2px; }

@media (max-width: 600px) {
  .kpev-hero-card { display: none; }
}

/* ============================================================
   Stat strip
   ============================================================ */
.kpev-stat-strip {
  background: var(--ink-950);
  padding: 36px 24px;
}
.kpev-stat-strip .kpev-stat-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 780px) {
  .kpev-stat-strip .kpev-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
.kpev-stat-grid .kpev-stat-value {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 2.1rem;
  color: #fff;
  line-height: var(--lh-tight);
}
.kpev-stat-grid .kpev-stat-value .unit { font-size: 1.2rem; color: var(--spark); }
.kpev-stat-grid .kpev-stat-label {
  font-size: 0.82rem;
  letter-spacing: var(--ls-wide);
  color: var(--text-on-dark-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ============================================================
   Instagram feed
   ============================================================ */
.kpev-instagram {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}
.kpev-ig-feed {
  margin-top: 28px;
}
.kpev-ig-feed #sb_instagram.sbi_carousel_wrap .sbi_photo img,
.kpev-ig-feed #sb_instagram .sbi_photo img {
  border-radius: var(--radius-md);
}

/* ============================================================
   Reviews widget
   ============================================================ */
.kpev-reviews {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}
.kpev-reviews-feed {
  margin-top: 28px;
}

/* ============================================================
   Ride family
   ============================================================ */
.kpev-ride-family {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}
.kpev-ride-family .kpev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 780px) {
  .kpev-ride-family .kpev-grid { grid-template-columns: repeat(2, 1fr); }
}
.kpev-ride-card {
  text-align: center;
  padding: 28px 14px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kpev-ride-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kpev-ride-card img {
  display: block;
  height: 76px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  margin: 0 auto 12px;
}
.kpev-ride-card .kpev-ride-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.1rem;
  color: var(--text-strong);
}
.kpev-ride-card .kpev-ride-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: var(--ls-wide);
}

/* ============================================================
   Services
   ============================================================ */
.kpev-services {
  max-width: var(--container);
  margin: 0 auto;
  padding: 31px 24px 56px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.kpev-services .kpev-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 980px) {
  .kpev-services .kpev-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .kpev-services .kpev-grid-6 { grid-template-columns: 1fr; }
}
.kpev-service-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kpev-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kpev-service-card.featured {
  border: 2px solid var(--brand);
  position: relative;
}
.kpev-service-card .kpev-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.kpev-service-card .kpev-icon svg { width: 22px; height: 22px; display: block; }
.kpev-service-card .kpev-badge-featured {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.kpev-service-card h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--text-strong);
}
.kpev-service-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  flex-grow: 1;
  margin: 0 0 14px;
}
.kpev-service-card .kpev-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpev-service-card .kpev-price {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.kpev-service-card .kpev-price strong {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.1rem;
  color: var(--text-strong);
}
.kpev-service-card a.kpev-book {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--brand);
  text-decoration: none;
}
.kpev-service-card a.kpev-book:hover { color: var(--brand-hover); }

/* ============================================================
   Page hero (sub-pages, e.g. Service Center)
   ============================================================ */
.kpev-page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 0;
}
.kpev-page-hero-inner {
  background: linear-gradient(150deg, var(--teal-700), var(--teal-500) 60%, var(--teal-400));
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}
.kpev-page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: var(--lh-tight) !important;
  letter-spacing: var(--ls-tighter);
  margin: 0 0 10px !important;
  color: #fff;
}
.kpev-page-hero .kpev-page-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin: 0 0 8px;
}
.kpev-page-hero p.kpev-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0 auto 28px;
}
.kpev-page-hero a.kpev-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 15px;
  text-decoration: none;
  background: #fff;
  color: var(--teal-700);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.kpev-page-hero a.kpev-btn-primary:hover { background: var(--brand-subtle); text-decoration: none; }
.kpev-page-hero a.kpev-btn-primary:active { transform: translateY(1px) scale(0.985); }

/* ============================================================
   Brand pills
   ============================================================ */
.kpev-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.kpev-brand-pills span {
  background: var(--brand-subtle);
  color: var(--teal-700);
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   Community
   ============================================================ */
.kpev-community {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}
.kpev-community .kpev-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 780px) {
  .kpev-community .kpev-community-grid { grid-template-columns: 1fr; }
}
.kpev-community-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--teal-700), var(--teal-500) 60%, var(--teal-400));
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.kpev-community-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kpev-community-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
.kpev-community-photo span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}
.kpev-community ul.kpev-check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
}
.kpev-community ul.kpev-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-800);
}
.kpev-community ul.kpev-check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-subtle);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: var(--fw-bold);
}

/* ============================================================
   Legal pages (Privacy Policy / Terms & Conditions)
   ============================================================ */
.kpev-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.kpev-legal .kpev-legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-600);
  text-align: center;
  margin: 0 0 32px;
}
.kpev-legal h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.4rem;
  color: var(--text-strong);
  margin: 36px 0 12px;
}
.kpev-legal h2:first-child { margin-top: 0; }
.kpev-legal h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.1rem;
  color: var(--text-strong);
  margin: 24px 0 10px;
}
.kpev-legal p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 14px;
}
.kpev-legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.kpev-legal li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 6px;
}
.kpev-legal strong { color: var(--text-strong); }
.kpev-legal a { color: var(--brand); font-weight: var(--fw-semibold); text-decoration: none; }
.kpev-legal a:hover { color: var(--brand-hover); }

/* ============================================================
   Pricing tables (Tire & Brake / Electronics pages)
   ============================================================ */
.kpev-services h3,
.kpev-community h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  color: var(--text-strong);
  margin: 32px 0 12px;
}
.kpev-services h3:first-of-type,
.kpev-community h3:first-of-type {
  margin-top: 28px;
}
.kpev-services .wp-block-table,
.kpev-community .wp-block-table {
  margin: 0 0 24px;
}
.kpev-services .wp-block-table table,
.kpev-community .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpev-services .wp-block-table th,
.kpev-community .wp-block-table th {
  background: var(--brand-subtle);
  color: var(--teal-700);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  text-align: left;
  padding: 12px 18px;
}
.kpev-services .wp-block-table td,
.kpev-community .wp-block-table td {
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--text-body);
  border-top: 1px solid var(--hairline);
}
.kpev-services .wp-block-table td:last-child,
.kpev-community .wp-block-table td:last-child {
  text-align: right;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  white-space: nowrap;
}
.kpev-services .wp-block-table tbody tr:nth-child(even) td,
.kpev-community .wp-block-table tbody tr:nth-child(even) td {
  background: rgba(2,110,115,0.03);
}

/* ============================================================
   Paperwork / document buttons
   ============================================================ */
.kpev-doc-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.kpev-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--hairline);
  background: var(--surface);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.kpev-doc-btn svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-500); }
.kpev-doc-btn:hover {
  border-color: var(--brand);
  background: var(--brand-subtle);
  color: var(--brand-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   About
   ============================================================ */
.kpev-about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.kpev-about .kpev-about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 780px) {
  .kpev-about .kpev-about-grid { grid-template-columns: 1fr; }
}
.kpev-about-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kpev-about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kpev-about-card .kpev-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.kpev-about-card .kpev-icon svg { width: 22px; height: 22px; display: block; }
.kpev-about-card h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--text-strong);
}
.kpev-about-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin: 0 0 12px;
}
.kpev-about-card p:last-child { margin-bottom: 0; }

/* ============================================================
   Footer
   ============================================================ */
.kpev-footer {
  background: var(--ink-950);
  color: var(--sand-100);
  margin-top: 40px;
}
.kpev-footer .kpev-footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 780px) {
  .kpev-footer .kpev-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kpev-footer .kpev-footer-grid { grid-template-columns: 1fr; }
}
.kpev-footer .kpev-footer-brand {
  display: flex; align-items: center; gap: 10px;
}
.kpev-footer .kpev-footer-brand img { width: 40px; height: 40px; }
.kpev-footer .kpev-footer-brand span {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem; color: #fff;
}
.kpev-footer p { font-size: 0.85rem; color: var(--text-on-dark-muted); line-height: 1.6; margin-top: 14px; max-width: 280px; }
.kpev-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 14px;
}
.kpev-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.kpev-footer ul li a { color: var(--text-on-dark-muted); text-decoration: none; font-size: 0.88rem; }
.kpev-footer ul li a:hover { color: #fff; }
.kpev-footer .kpev-footer-bottom {
  border-top: 1px solid var(--border-on-dark);
}
.kpev-footer .kpev-footer-bottom-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: var(--text-on-dark-muted);
}
.kpev-footer .kpev-footer-legal a { color: var(--text-on-dark-muted); text-decoration: underline; }
.kpev-footer .kpev-footer-legal a:hover { color: #fff; }

/* ==== New / Returning Customer modal ==== */
.kpev-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(24,29,31,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.kpev-modal-overlay.active { opacity: 1; visibility: visible; }
.kpev-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 480px; width: 100%;
  padding: 36px 32px;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--dur-base) var(--ease-out);
}
.kpev-modal-overlay.active .kpev-modal { transform: translateY(0) scale(1); }
.kpev-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  border: none; background: var(--sand-100); color: var(--text-muted);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.kpev-modal-close:hover { background: var(--sand-200); color: var(--text-strong); }
.kpev-modal h2 {
  margin: 10px 0 6px;
  font-size: 1.5rem;
}
.kpev-modal > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}
.kpev-modal-options {
  display: grid;
  gap: 12px;
}
.kpev-modal-option {
  display: block;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--hairline);
  background: var(--surface);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.kpev-modal-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.kpev-modal-option-title {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.05rem;
  color: var(--text-strong);
}
.kpev-modal-option-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.kpev-modal-option-primary {
  background: var(--brand-subtle);
  border-color: var(--brand);
}
.kpev-modal-option-secondary {
  background: var(--sand-50);
}
.kpev-modal-option-secondary:hover {
  border-color: var(--coral-500);
}

/* ============================================================
   Tech Portal login gate
   ============================================================ */
.kpev-tech-banner {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 20px;
}
.kpev-tech-banner a { color: var(--brand); font-weight: 600; }

.kpev-login-card {
  max-width: 420px;
  margin: 20px auto 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.kpev-login-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-900);
  margin: 0 0 10px;
}
.kpev-login-card p {
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.kpev-login-card #loginform { text-align: left; }
.kpev-login-card p.login-username,
.kpev-login-card p.login-password { margin-bottom: 14px; }
.kpev-login-card label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-800);
  margin-bottom: 6px;
}
#loginform input[type="text"],
#loginform input[type="password"] {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--surface-sunken);
  box-sizing: border-box;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.kpev-login-card p.login-remember {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.kpev-login-card p.login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.kpev-login-card p.login-submit { margin: 0; }
.kpev-login-card #wp-submit {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.kpev-login-card #wp-submit:hover { background: var(--brand-hover); }

/* ============================================================
   Service Provider ticker
   ============================================================ */
.kpev-ticker {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 6%, #fff 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #fff 6%, #fff 94%, transparent);
}
.kpev-ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: kpev-ticker-scroll 38s linear infinite;
}
.kpev-ticker:hover .kpev-ticker-track,
.kpev-ticker:focus-within .kpev-ticker-track {
  animation-play-state: paused;
}
.kpev-ticker-logo {
  flex: 0 0 auto;
  width: 168px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kpev-ticker-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kpev-ticker-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@keyframes kpev-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .kpev-ticker-logo { width: 124px; height: 76px; padding: 10px; }
  .kpev-ticker-track { gap: 16px; animation-duration: 26s; }
}
@media (prefers-reduced-motion: reduce) {
  .kpev-ticker-track { animation: none; }
  .kpev-ticker { overflow-x: auto; }
}

/* ── Blog ──────────────────────────────────────────────────────────────────── */

/* Hide default Kadence page-title hero on blog index & single posts */
body.blog .entry-hero,
body.single-post .entry-hero { display: none; }
body.blog #primary.content-area,
body.single-post #primary.content-area { margin-top: 0; }
body.blog .entry-content-wrap,
body.single-post .entry-content-wrap { padding-top: 0; }

/* Blog index — post card grid */
body.blog #archive-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 32px 0 48px;
  list-style: none;
  margin: 0;
}
body.blog article.loop-entry {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e0d8);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
body.blog article.loop-entry:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}
body.blog .loop-entry .entry-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
body.blog .loop-entry .entry-content-wrap {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
body.blog .loop-entry .entry-meta {
  font-size: 0.78rem;
  color: var(--ink-500, #7a7570);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
body.blog .loop-entry .entry-meta a { color: var(--teal-500, #026E73); }
body.blog .loop-entry .entry-title {
  font-family: var(--font-serif, 'Fredoka', sans-serif);
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 10px;
}
body.blog .loop-entry .entry-title a {
  color: var(--ink-900, #2D2A26);
  text-decoration: none;
}
body.blog .loop-entry .entry-title a:hover { color: var(--teal-500, #026E73); }
body.blog .loop-entry .entry-summary {
  font-size: 0.9rem;
  color: var(--ink-600, #5c5650);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}
body.blog .loop-entry .entry-more-link,
body.blog .loop-entry .read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-500, #026E73);
  text-decoration: none;
  margin-top: auto;
}
body.blog .loop-entry .entry-more-link:hover,
body.blog .loop-entry .read-more-link:hover { color: var(--teal-700, #01565A); }
body.blog .loop-entry .cat-links a {
  background: var(--teal-50, #e6f2f2);
  color: var(--teal-700, #01565A);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
  text-decoration: none;
}

/* Blog index — no-thumbnail fallback */
body.blog article.loop-entry.no-featured-image .entry-thumbnail { display: none; }
body.blog .loop-entry { list-style: none; }

/* Blog hero band */
.kpev-blog-hero {
  background: var(--ink-900, #1a1a18);
  color: #fff;
  padding: 36px 24px 28px;
  text-align: center;
  border-radius: 20px;
  margin: 16px 0 0;
}
.kpev-blog-hero .kpev-page-tagline {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-400, #4db8bc);
  margin-bottom: 12px;
}
.kpev-blog-hero h1 {
  font-family: var(--font-serif, 'Fredoka', sans-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin: 0 0 12px;
}
.kpev-blog-hero .kpev-lead {
  font-size: 1.05rem;
  color: #cfc9bf;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Pagination */
body.blog .pagination {
  text-align: center;
  padding: 0 24px 48px;
}
body.blog .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-600, #5c5650);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
body.blog .pagination .page-numbers:hover,
body.blog .pagination .page-numbers.current {
  background: var(--teal-500, #026E73);
  color: #fff;
}

/* ── Single Post ─────────────────────────────────────────────────────────── */

body.single-post .site-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
body.single-post .entry-header { padding: 48px 0 28px; }
body.single-post .entry-header .entry-meta {
  font-size: 0.82rem;
  color: var(--ink-500, #7a7570);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
body.single-post .entry-header .entry-meta a { color: var(--teal-500, #026E73); }
body.single-post .entry-header .entry-title {
  font-family: var(--font-serif, 'Fredoka', sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink-900, #2D2A26);
  margin: 0 0 16px;
}
body.single-post .entry-thumbnail {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}
body.single-post .entry-thumbnail img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
body.single-post .entry-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-800, #3d3a36);
}
body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  font-family: var(--font-serif, 'Fredoka', sans-serif);
  color: var(--ink-900, #2D2A26);
  margin: 2em 0 0.6em;
}
body.single-post .entry-content a { color: var(--teal-500, #026E73); }
body.single-post .entry-content ul,
body.single-post .entry-content ol { padding-left: 1.4em; margin: 1em 0; }
body.single-post .entry-content li { margin-bottom: 0.4em; }
body.single-post .entry-content strong { color: var(--ink-900, #2D2A26); }

/* Post nav (prev/next) */
body.single-post .post-navigation {
  border-top: 1px solid var(--border-subtle, #e5e0d8);
  padding: 28px 0 0;
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
body.single-post .post-navigation a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-500, #026E73);
  text-decoration: none;
}
body.single-post .post-navigation .nav-subtitle {
  font-size: 0.78rem;
  color: var(--ink-500, #7a7570);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

/* Back to blog link */
.kpev-back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-500, #026E73);
  text-decoration: none;
  margin-bottom: 24px;
}
.kpev-back-to-blog:hover { color: var(--teal-700, #01565A); }

@media (max-width: 640px) {
  body.blog #archive-container { grid-template-columns: 1fr; padding: 28px 0 48px; gap: 20px; }
  body.single-post .site-main { padding: 0 16px 48px; }
  body.single-post .entry-header { padding: 28px 0 20px; }
}
