
/* === HANDYRANKING DIRECTORY — GRAPHITE & RUST === */

/* The [hidden] attribute must always win over any display: rule. Without this,
   elements like .modal-overlay/.buy-promo-fields (display:flex) render on load
   despite being marked hidden, and JS that sets .hidden=true can't close them. */
[hidden] { display: none !important; }

:root {
  /* ── HandyRanking brand palette ──────────────────────────────────────────
     Graphite ground with a rust-orange action color and a workwear slate
     as the deep brand tone. Deliberately unrelated to the palettes used on
     our other properties so the two sites never read as one template. */
  --hr-accent: #A84C0E;          /* rust — primary action */
  --hr-accent-light: #E8752A;
  --hr-accent-dim: #97430B;
  --hr-accent-glow: rgba(199, 91, 18, 0.20);

  --hr-brand: #1D3A45;           /* workwear slate — deep brand tone */
  --hr-brand-light: #2F5A6B;
  --hr-brand-dark: #12242C;
  --hr-brand-deep: #0B171C;
  --hr-brand-mid: #162C35;

  /* Backgrounds */
  --bg: #0B171C;
  --bg-soft: #12242C;
  --bg-card: rgba(18, 36, 44, 0.85);
  --bg-card-solid: #162C35;
  --surface: #ffffff;
  --surface-soft: #F6F4F1;       /* warm off-white, not a tinted lilac */
  --surface-alt: #ECE7E1;

  /* Text */
  --ink: #12242C;
  --ink-soft: #3D4F57;
  --ink-muted: #5C6B71;
  --on-dark: #F4F1EC;
  --on-dark-dim: #A9BCC4;

  /* Lines */
  --line: rgba(29, 58, 69, 0.35);
  --line-bright: rgba(29, 58, 69, 0.70);
  --line-soft: #DFD8D0;

  /* Accents */
  --hr-amber: #E8A33D;           /* hi-vis amber — badges and highlights */

  /* Type — a squared industrial grotesk over a technical humanist sans */
  --display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', sans-serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
/* Scroll-elevated state: applied via JS once the page leaves the hero so the
   sticky nav reads as a deliberate, floating bar on desktop. */
.site-nav.is-scrolled {
  background: rgba(13, 6, 24, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(58, 171, 34, 0.45);
  box-shadow: 0 8px 28px rgba(13, 6, 24, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.site-nav.is-scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: padding 0.25s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--hr-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.3px;
  border-radius: 4px;
}
.brand-text {
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: 0.6px;
  line-height: 1.12;
}
.brand-text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 4px;
  color: var(--hr-accent);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-dropdown-trigger { white-space: nowrap; }
/* Mid widths: tighten before anything is allowed to wrap */
@media (max-width: 1280px) {
  .nav-inner { gap: 20px; }
  .nav-links { gap: 16px; font-size: 14.5px; }
  .brand-text { font-size: 18px; }
}
.nav-links a:hover { color: var(--hr-accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  letter-spacing: 0.5px;
  transition: background 0.15s, transform 0.12s;
}
.nav-cta::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: var(--hr-accent-light);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z"/></svg>') center / contain no-repeat;
}
.nav-cta:hover {
  background: rgba(58, 171, 34, 0.22);
  transform: translateY(-1px);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-left: 8px;
}
.mobile-menu-bars {
  display: block;
  width: 26px;
  height: 20px;
  position: relative;
}
.mobile-menu-bars span {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.mobile-menu-bars span:nth-child(1) { top: 0; }
.mobile-menu-bars span:nth-child(2) { top: 8px; }
.mobile-menu-bars span:nth-child(3) { top: 16px; }
body.menu-open .mobile-menu-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.menu-open .mobile-menu-bars span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-menu-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Mobile drawer — slides down from below the header */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f0813;
  color: #ffffff;
  z-index: 100;
  overflow-y: auto;
  padding: 20px 24px 40px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a1f34;
  margin-bottom: 20px;
}
.mobile-menu-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a3d9a5;
}
.mobile-menu-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 12px;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-link {
  display: block;
  padding: 14px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-link:hover,
.mobile-menu-link:active { background: #2a1f34; color: #a3d9a5; }
.mobile-menu-cta {
  background: linear-gradient(180deg, var(--hr-accent-light) 0%, var(--hr-accent) 100%);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(58, 171, 34, 0.3);
}
.mobile-menu-phone {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #ffffff !important;
  font-family: var(--mono);
  font-weight: 700;
  margin-top: 12px;
  border-radius: 8px;
}
.mobile-menu-phone .phone-glyph, .nav-phone-glyph { color: var(--hr-accent-light); }
.mobile-menu-section-title {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a3d9a5;
  margin: 24px 0 8px 16px;
}
.mobile-menu-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mobile-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14.5px;
  background: #1e1526;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-cat-link:hover { background: #2a1f34; color: #a3d9a5; }
body.menu-open { overflow: hidden; }

/* One clean nav: every link shares the default style; Get Certified is the
   single green accent. Shop Tools/Learn Free inherit the plain link look. */
.nav-cta-cert {
  color: var(--hr-accent-light) !important;
  font-weight: 700 !important;
  transition: color 0.15s;
}
.nav-cta-cert:hover {
  color: #ffffff !important;
}

/* Log In — subtle nav link */
.nav-cta-login {
  color: var(--on-dark-dim) !important;   /* was #1d3a45 — 1.55:1 on the dark nav */
  font-weight: 600 !important;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-cta-login:hover { color: #fff !important; border-bottom-color: var(--hr-accent); }

/* ═════════════════════════════════════════════════════════════════════════════
   USER DASHBOARD
   ═════════════════════════════════════════════════════════════════════════════ */
.dash-hero {
  display: flex;
  gap: 24px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #14532d 0%, #1d3a45 100%);
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.dash-hero h1 { color: #fff; margin: 0 0 4px; font-family: 'Oswald', sans-serif; }
.dash-hero-body { flex: 1; min-width: 260px; }
.dash-hero #dash-user-meta {
  color: #a3d9a5;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 14.5px;
  margin-top: 6px;
}

.dash-rank-card {
  padding: 24px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.dash-rank-summary {
  font-size: 16px;
  color: #14532d;
  margin-bottom: 16px;
}
.dash-progress-track {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0;
}
.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  transition: width 0.5s;
}
.dash-rank-next {
  font-size: 14.5px;
  color: #1d3a45;
  font-weight: 600;
  text-align: right;
}

/* Embed code */
.dash-embed-preview {
  padding: 24px;
  background: #14532d;
  border-radius: 10px;
  text-align: center;
  margin: 16px 0;
}
.dash-embed-preview img {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.dash-embed-code textarea {
  width: 100%;
  padding: 12px;
  font-family: var(--mono);
  font-size: 14.5px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #14532d;
  resize: vertical;
  box-sizing: border-box;
}

/* Cert list */
.dash-certs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.dash-cert-row {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  align-items: center;
}
.dash-cert-row img { flex-shrink: 0; }
.dash-cert-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  color: #14532d;
  font-weight: 600;
}
.dash-cert-meta { font-size: 14.5px; color: #666; margin-top: 4px; }

/* Study progress tracker */
.dash-study-list { display: grid; gap: 10px; margin-top: 16px; }
.dash-study-row {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  align-items: center;
}
.dash-study-row.is-ready { border-color: #c75b12; background: #f6fbf4; }
.dash-study-row img { flex-shrink: 0; }
.dash-study-body { flex: 1; min-width: 0; }
.dash-study-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 6px;
}
.dash-study-bar {
  height: 8px;
  background: #eee9f3;
  border-radius: 6px;
  overflow: hidden;
}
.dash-study-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c75b12, #57c93f);
  border-radius: 6px;
  transition: width 0.4s ease;
}
.dash-study-meta { font-size: 14.5px; color: #666; margin-top: 6px; }
.dash-study-row.is-ready .dash-study-meta { color: #2d7a1c; font-weight: 700; }
.dash-study-cta { flex-shrink: 0; white-space: nowrap; font-size: 14.5px; padding: 10px 16px; }
.dash-study-empty { color: #666; font-style: italic; }
@media (max-width: 560px) {
  .dash-study-row { flex-wrap: wrap; }
  .dash-study-cta { width: 100%; text-align: center; }
}

/* Remaining modules */
.dash-remaining-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.dash-remaining-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(163, 217, 165, 0.3);
  border-radius: 8px;
  color: #d8cee0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.15s;
}
.dash-remaining-card:hover { background: rgba(163, 217, 165, 0.2); }
.dash-remaining-card img { display: block; opacity: 0.9; }
/* Mobile drawer variant */
.mobile-menu-tools {
  background: #14532d !important;
  color: #a3d9a5 !important;
  font-weight: 700;
}
.mobile-menu-tools:hover,
.mobile-menu-tools:active { background: #16a34a !important; color: #ffffff !important; }

/* Highlighted "Get Certified" link in footer For Handymen column */
.footer-cert-cta {
  color: #a3d9a5 !important;
  font-weight: 600 !important;
}
.footer-cert-cta:hover {
  color: #16a34a !important;
}

/* Certification hint inside the claim CTA sidebar */
.claim-cta-cert-hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d0d0d0;
  font-size: 14.5px;
  color: #666;
  text-align: center;
}
.claim-cta-cert-hint a {
  color: #1d3a45;
  font-weight: 600;
  text-decoration: none;
}
.claim-cta-cert-hint a:hover {
  color: #16a34a;
  text-decoration: underline;
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--on-dark);
  padding: 100px 40px 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(77, 33, 127, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(58, 171, 34, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(13, 6, 24, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* === IMAGE HERO === */
.hero-has-image {
  padding: 128px 40px 120px;
  min-height: clamp(560px, 82vh, 860px);
  display: flex;
  align-items: center;
}
/* When a photo backs the hero, the radial-gradient scrim is replaced by the
   dedicated .hero-overlay so we can tune it for text readability. */
.hero-has-image::before { display: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* brand tint for character */
    radial-gradient(ellipse 70% 60% at 12% 8%, rgba(77, 33, 127, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 92%, rgba(58, 171, 34, 0.20) 0%, transparent 55%),
    /* left-to-right darkening so left-aligned copy stays legible */
    linear-gradient(100deg,
      rgba(13, 6, 24, 0.94) 0%,
      rgba(13, 6, 24, 0.86) 28%,
      rgba(13, 6, 24, 0.55) 52%,
      rgba(13, 6, 24, 0.22) 78%,
      rgba(13, 6, 24, 0.10) 100%),
    /* bottom + top fades to seat the nav and the section below */
    linear-gradient(to top,
      rgba(13, 6, 24, 0.90) 0%,
      rgba(13, 6, 24, 0.20) 34%,
      rgba(13, 6, 24, 0.00) 60%),
    linear-gradient(to bottom,
      rgba(13, 6, 24, 0.65) 0%,
      rgba(13, 6, 24, 0.00) 22%);
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
  width: 100%;
}
.hero-has-image .hero-grain { z-index: 2; }
/* Lift text off the photo for extra contrast on bright frames */
.hero-has-image .hero-title { text-shadow: 0 2px 24px rgba(13, 6, 24, 0.55); }
.hero-has-image .hero-sub { text-shadow: 0 1px 12px rgba(13, 6, 24, 0.6); }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 4px;
  color: var(--hr-accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(37px, 5.94vw, 84px);
  line-height: 1.07;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}
.hero-accent {
  color: var(--hr-accent);
  font-style: italic;
}
.hero-sub {
  font-size: 20px;
  color: var(--on-dark-dim);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.5;
}
.hero-search {
  display: flex;
  max-width: 600px;
  margin-bottom: 20px;
  border: 2px solid var(--line-bright);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(20, 8, 48, 0.6);
  backdrop-filter: blur(8px);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-search input {
  flex: 1;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 16px;
  outline: 0;
}
.hero-search input::placeholder { color: var(--on-dark-dim); }
.hero-search button {
  padding: 18px 32px;
  background: var(--hr-accent);
  color: #ffffff;
  border: 0;
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--hr-accent-light); }
.hero-stats {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--display);
  font-size: 37px;
  line-height: 1.12;
  color: var(--hr-accent);
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 2px;
  color: var(--on-dark-dim);
  text-transform: uppercase;
  margin-top: 4px;
}
/* hero-grain: keep noise overlay only, gradients moved to .hero::before */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* === SECTIONS === */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 40px;
}
.section-dark {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(58, 171, 34, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(77, 33, 127, 0.4) 0%, transparent 60%),
    var(--bg);
  color: var(--on-dark);
  max-width: 100%;
  padding: 96px 40px;
  position: relative;
}
.section-dark .section-head h2 { color: var(--on-dark); }
.section-featured {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(77, 33, 127, 0.06) 0%, transparent 70%),
    var(--surface-soft);
  max-width: 100%;
  padding: 96px 40px;
  border-top: 4px solid var(--hr-accent);
  position: relative;
}
.section-featured .section-head,
.section-featured .card-grid {
  max-width: 1320px;
  margin: 0 auto;
}
.section-dark .section-head,
.section-dark .card-grid {
  max-width: 1320px;
  margin: 0 auto;
}
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 4px;
  color: var(--hr-accent-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.3vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.section-dark .section-head p { color: var(--on-dark-dim); }

/* === HANDYMAN CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.mech-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  box-shadow: 0 3px 12px rgba(23, 10, 38, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.mech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(23, 10, 38, 0.12);
  border-color: var(--ink-soft);
}
.section-dark .mech-card {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--on-dark);
  backdrop-filter: blur(8px);
}
.section-dark .mech-card .card-type,
.section-dark .mech-card .card-location {
  color: var(--on-dark-dim);
}
.mech-card-featured {
  background:
    linear-gradient(135deg, var(--hr-brand) 0%, var(--hr-brand-dark) 100%);
  color: var(--on-dark);
  border: 2px solid var(--hr-accent);
  box-shadow:
    0 8px 24px rgba(77, 33, 127, 0.3),
    0 0 0 1px rgba(58, 171, 34, 0.2);
  position: relative;
}
.mech-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(58, 171, 34, 0.15), transparent 60%);
  pointer-events: none;
  border-radius: 4px;
}
.mech-card-featured > * { position: relative; z-index: 1; }
.mech-card-featured .card-type,
.mech-card-featured .card-location {
  color: var(--on-dark-dim);
}
.mech-card-featured {
  /* additional emphasis if needed */
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
  text-transform: uppercase;
  margin-right: 6px;
}
.badge-official {
  background: var(--hr-accent);
  color: #ffffff;
}
.badge-verified {
  background: var(--hr-brand);
  color: #ffffff;
}
/* Service type badges — color-coded per category */
.badge-type {
  background: #f1f3f5;
  color: #2c2c2c;
  border: 1px solid #d9dde0;
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.badge-type-general       { background: #eceff1; border-color: #b0bec5; color: #263238; }
.badge-type-drywall       { background: #f5f5f5; border-color: #bdbdbd; color: #212121; }
.badge-type-painting      { background: #fff3e0; border-color: #ffb74d; color: #e65100; }
.badge-type-carpentry     { background: #efebe9; border-color: #bcaaa4; color: #3e2723; }
.badge-type-plumbing      { background: #e1f5fe; border-color: #4fc3f7; color: #01579b; }
.badge-type-electrical    { background: #fffde7; border-color: #ffe082; color: #f57f17; }
.badge-type-doors_windows { background: #e8eaf6; border-color: #7986cb; color: #1a237e; }
.badge-type-flooring      { background: #e0f2f1; border-color: #4db6ac; color: #004d40; }
.badge-type-deck_fence    { background: #f1f8e9; border-color: #aed581; color: #33691e; }
.badge-type-mounting      { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.badge-type-exterior      { background: #e3f2fd; border-color: #90caf9; color: #0d47a1; }
.badge-type-remodel       { background: #fce4ec; border-color: #f48fb1; color: #880e4f; }

.badge-mobile {
  background: var(--hr-accent);
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* ─── Nav dropdown for service categories ─── */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
}
.nav-dropdown-trigger .caret {
  margin-left: 4px;
  font-size: 14.5px;
  opacity: 0.7;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 280px;
  padding: 8px;
  display: none;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu .cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #2c2c2c;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-menu .cat-link:hover {
  background: #f1f3f5;
}
.cat-icon {
  font-size: 18px;
}

/* ─── Profile service type badge (clickable, large) ─── */
.profile-type-row {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.profile-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 2px solid;
  transition: all 0.2s;
}
.profile-type-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.profile-type-badge-general       { background: #eceff1; border-color: #607d8b; color: #263238; }
.profile-type-badge-drywall       { background: #f5f5f5; border-color: #757575; color: #212121; }
.profile-type-badge-painting      { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.profile-type-badge-carpentry     { background: #efebe9; border-color: #8d6e63; color: #3e2723; }
.profile-type-badge-plumbing      { background: #e1f5fe; border-color: #03a9f4; color: #01579b; }
.profile-type-badge-electrical    { background: #fffde7; border-color: #ffc107; color: #f57f17; }
.profile-type-badge-doors_windows { background: #e8eaf6; border-color: #3f51b5; color: #1a237e; }
.profile-type-badge-flooring      { background: #e0f2f1; border-color: #009688; color: #004d40; }
.profile-type-badge-deck_fence    { background: #f1f8e9; border-color: #689f38; color: #33691e; }
.profile-type-badge-mounting      { background: #e8f5e9; border-color: #4caf50; color: #1b5e20; }
.profile-type-badge-exterior      { background: #e3f2fd; border-color: #2196f3; color: #0d47a1; }
.profile-type-badge-remodel       { background: #fce4ec; border-color: #e91e63; color: #880e4f; }

.profile-mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14.5px;
  background: var(--hr-accent);
  color: #ffffff;
}

/* ─── Legal pages (Terms, Privacy, SMS Policy) ─── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}
.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: 0.3px;
}
.legal-content p {
  margin-bottom: 14px;
  color: #2c2c2c;
}
.legal-content ul {
  margin: 12px 0 18px 24px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--hr-brand);
  text-decoration: underline;
}
.legal-meta {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}
.footer-legal-line {
  margin-top: 12px;
  font-size: 14.5px;
  opacity: 0.8;
}
.footer-legal-line a {
  color: var(--hr-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.footer-legal-line a:hover {
  opacity: 0.85;
}
.footer-bottom a {
  color: var(--hr-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.footer-bottom a:hover {
  opacity: 0.85;
}
.footer-tiles {
  max-width: 1320px; margin: 0 auto; padding: 26px 40px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-tiles-head {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 3px; font-weight: 700;
  color: var(--hr-accent); text-align: center; margin: 0 0 18px;
}
.footer-tiles-row {
  display: flex; justify-content: center; align-items: flex-start; gap: 36px; flex-wrap: wrap;
}
@media (max-width: 640px) { .footer-tiles { padding: 8px 20px 22px; } .footer-tiles-row { gap: 24px; } }
.footer-game-mini {
  display: inline-block; text-decoration: none; max-width: 150px;
}
.footer-game-mini img {
  display: block; width: 150px; height: 200px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(165, 106, 194, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.footer-game-mini:hover img {
  transform: translateY(-3px) rotate(-1.5deg);
  border-color: var(--hr-accent);
  box-shadow: 0 0 24px rgba(58, 171, 34, 0.4);
}
.footer-game-mini span {
  display: block; margin-top: 8px; font-weight: 800; font-size: 14.5px;
  color: var(--hr-accent); text-align: center;
}
.footer-game-mini:hover span { color: var(--hr-accent-light); }

/* ─── Qualification quiz page ─── */
.qualify-loading, .qualify-invalid, .qualify-success {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;
}
.qualify-invalid h2 {
  color: #b71c1c;
  margin-top: 0;
}
.qualify-success {
  background: #e8f5e9;
  border-left: 4px solid var(--hr-accent);
  text-align: left;
}
.qualify-success h2 {
  color: #1b5e20;
  margin-top: 0;
}
.qualify-form {
  max-width: 760px;
  margin: 0 auto;
}
.qualify-progress {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.qualify-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--hr-accent), #0d7d3a);
  transition: width 0.3s ease;
}
.qualify-context {
  font-size: 14.5px;
  color: #666;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
.qualify-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f1f3f5;
}
.qualify-section:last-of-type {
  border-bottom: none;
}
.qualify-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2c2c2c;
}
.qualify-section label {
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
  color: #333;
}
.qualify-section select, .qualify-section input[type="text"], .qualify-section input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9dde0;
  border-radius: 6px;
  font-size: 14.5px;
  margin-top: 6px;
  font-family: var(--body);
}
.qualify-section input[type="number"] {
  max-width: 200px;
}
.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
@media (max-width: 640px) {
  .qualify-grid {
    grid-template-columns: 1fr;
  }
}
.qualify-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-weight: normal !important;
  margin-bottom: 0 !important;
  font-size: 14.5px;
  line-height: 1.4;
}
.qualify-checkbox:hover {
  background: #f8f9fa;
}
.qualify-checkbox input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.qualify-checkbox strong {
  color: var(--hr-accent);
}
.qualify-section small {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: #666;
  font-weight: normal;
}
.qualify-disclaimer {
  font-size: 14.5px;
  color: #666;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
  margin: 24px 0;
  line-height: 1.5;
}
.qualify-status-msg {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  background: #f1f3f5;
  border: 1px solid #d9dde0;
}
.qualify-status-error {
  background: #ffebee;
  border-color: #ef5350;
  color: #b71c1c;
}

/* ─── HandyRanking Certification (MRC) — profile section + verify pages ─── */
.profile-certifications {
  margin: 24px 0;
  padding: 28px;
  background: linear-gradient(180deg, #12242c 0%, #1d3a45 100%);
  border-radius: 12px;
  color: #f5f0f8;
  position: relative;
  overflow: hidden;
}
.profile-certifications::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.profile-certifications > * { position: relative; z-index: 1; }
.profile-certifications h3 {
  font-family: 'Oswald', 'Impact', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #a3d9a5;
}
.mrc-mark {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid #16a34a;
  color: #a3d9a5;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.2em;
  border-radius: 4px;
}
.cert-tagline {
  font-family: var(--mono);
  color: #c8b8d4;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  margin: 0 0 24px 0;
  text-transform: uppercase;
}
.cert-holders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cert-holder {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.cert-holder-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.cert-holder-info {
  flex: 1;
}
.cert-holder-name {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.cert-holder-rank {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3d9a5;
  margin-bottom: 2px;
}
.cert-holder-count {
  font-size: 14.5px;
  color: #c8b8d4;
}
.cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 14.5px;
  color: #f5f0f8;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.cred-chip-badge {
  width: 26px; height: 26px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
.cred-chip-emoji { font-size: 15px; line-height: 1; }
.cred-chip-label { line-height: 1.2; }
.cert-rank-badge { flex-shrink: 0; display: block; }
.cert-rank-badge img { width: 80px; height: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(74,33,127,0.4)); }
.cred-chip:hover {
  background: rgba(163, 217, 165, 0.2);
  border-color: rgba(163, 217, 165, 0.5);
}
.cred-tier-apprentice { border-left: 3px solid #8a95a3; }
.cred-tier-grade_c    { border-left: 3px solid #a3714a; }
.cred-tier-grade_b    { border-left: 3px solid #16a34a; }
.cred-tier-grade_a    { border-left: 3px solid #0d7d3a; }
.cred-tier-master     { border-left: 3px solid #1d3a45; }
.cert-disclosure {
  font-size: 14.5px;
  color: #c8b8d4;
  font-style: italic;
  margin: 20px 0 0 0;
  line-height: 1.6;
}

/* Verify pages */
.verify-page {
  max-width: 720px;
  margin: 24px auto;
  padding: 40px;
  background: #f6f4ee;
  border: 3px solid var(--metal, #c8912f);
  border-radius: 4px;
  color: #1c1e22;
  position: relative;
}
.verify-tier-apprentice { --metal: #4a5560; }
.verify-tier-grade_c    { --metal: #a3714a; }
.verify-tier-grade_b    { --metal: #16a34a; }
.verify-tier-grade_a    { --metal: #0d7d3a; }
.verify-tier-master     { --metal: #1d3a45; }
.verify-header {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--metal);
}
.verify-badge-wrap {
  flex-shrink: 0;
}
.verify-title-block {
  flex: 1;
}
.verify-eyebrow {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #565b63;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.verify-page h1 {
  font-family: 'Zilla Slab', 'Georgia', serif;
  font-size: 28px;
  margin: 0 0 6px 0;
  color: #1c1e22;
}
.verify-rank {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14.5px;
  color: var(--metal);
}
.verify-status {
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  white-space: nowrap;
}
.verify-status-active {
  background: #16a34a;
  color: #fff;
}
.verify-status-expired, .verify-status-revoked {
  background: #dc2626;
  color: #fff;
}
.verify-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.verify-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #d5cfba;
  gap: 24px;
}
.verify-label {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #565b63;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.verify-value {
  font-weight: 500;
  color: #1c1e22;
  text-align: right;
}
.verify-mono {
  font-family: var(--mono);
  font-size: 14.5px;
}
.verify-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d5cfba;
  font-size: 14.5px;
  color: #565b63;
}
.verify-footer p {
  margin-bottom: 8px;
}
.verify-footer a {
  color: var(--hr-brand);
}

/* Rank ladder on /certification/ */
.rank-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 700px) {
  .rank-ladder { grid-template-columns: repeat(2, 1fr); }
}
.rank-tile {
  padding: 16px 8px 20px;
  text-align: center;
  background: transparent;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.rank-tile-badge {
  display: block;
  filter: drop-shadow(0 6px 14px rgba(74, 29, 95, 0.35));
  transition: transform 0.2s;
  width: 100%;
}
.rank-tile:hover .rank-tile-badge { transform: translateY(-3px); }
.rank-tile .grade-badge,
.rank-tile-badge picture,
.rank-tile-badge img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.rank-tile-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-top: 12px;
}
.rank-tile-name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #14532d;
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.rank-tile-score {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #1d3a45;
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.rank-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 32px 0;
  align-items: end;
}
@media (max-width: 900px) {
  .rank-ladder { grid-template-columns: repeat(3, 1fr); }
  .rank-ladder .rank-tile:nth-child(4),
  .rank-ladder .rank-tile:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 500px) {
  .rank-ladder { grid-template-columns: repeat(2, 1fr); }
}
.rank-ladder-note {
  font-size: 14.5px;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 16px;
}

/* Track cards on /certification/ landing */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.track-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.track-card:hover {
  transform: translateY(-2px);
  border-color: #1d3a45;
  box-shadow: 0 4px 12px rgba(74, 29, 95, 0.1);
}
.track-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.track-card-badge {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(74,29,95,0.15));
}
.track-card-external {
  background: #f9fafb;
  border-style: dashed;
}
.track-card-external:hover {
  border-color: #16a34a;
  border-style: solid;
}
.track-card-body { flex: 1; min-width: 0; }
.track-card-code {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #16a34a;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.track-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
  color: #2c2c2c;
}
.track-card-arrow {
  color: #1d3a45;
  font-size: 20px;
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.track-card:hover .track-card-arrow {
  opacity: 1;
}

/* Pricing on cert landing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.price-card {
  padding: 24px 20px;
  background: #ffffff;
  border: 1px solid #d9dde0;
  border-radius: 10px;
  text-align: center;
}
.price-card-featured {
  border: 2px solid #16a34a;
  background: linear-gradient(180deg, #f0f9f0 0%, #ffffff 100%);
  position: relative;
}
.price-card-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1d3a45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.price-card-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 8px;
}
.price-card-note {
  font-size: 14.5px;
  color: #666;
  line-height: 1.5;
}
.pricing-note {
  font-size: 14.5px;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

/* Track page — hero, covers, exam info, notify form */

/* Optional action-shot banner above the hero when a matching image exists */
.track-hero-banner {
  position: relative;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #14532d;
  box-shadow: 0 8px 24px rgba(74, 29, 95, 0.2);
}
.track-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.track-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(74, 29, 95, 0.35));
  pointer-events: none;
}
@media (max-width: 700px) {
  .track-hero-banner { aspect-ratio: 4 / 3; }
}

.track-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #12242c 0%, #1d3a45 100%);
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 32px;
}
.track-hero-icon {
  font-size: 72px;
  line-height: 1;
  flex-shrink: 0;
}
.track-hero-badge {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}
@media (max-width: 600px) {
  .track-hero-badge { width: 96px; height: 96px; }
  .track-hero { flex-direction: column; text-align: center; }
}
.track-hero-code {
  font-family: var(--mono);
  color: #a3d9a5;
  font-size: 14.5px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}
.track-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  margin: 4px 0 8px 0;
  color: #ffffff;
  line-height: 1.1;
}
.track-hero-tagline {
  color: #d8cee0;
  font-size: 17px;
  margin: 0;
  font-style: italic;
}
.track-summary {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
}
.track-covers {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.track-covers li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid #f1f3f5;
  position: relative;
}
.track-covers li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: #16a34a;
  font-weight: 700;
}
.track-exam-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.track-exam-block {
  padding: 16px 0;
}
.track-exam-label {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #a3d9a5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.track-exam-value {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
}

/* Track notify signup card */
.track-notify-card {
  background: linear-gradient(180deg, #f0f9f0 0%, #ffffff 100%);
  border: 2px solid #16a34a;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.track-notify-card h2 {
  color: #0d7d3a;
  margin-top: 0;
}
.track-notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px auto;
  max-width: 500px;
}
.track-notify-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid #d9dde0;
  border-radius: 6px;
  font-size: 14.5px;
  font-family: var(--body);
}
.track-notify-form input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.track-notify-form button {
  padding: 12px 24px;
  white-space: nowrap;
}
.track-notify-note {
  font-size: 14.5px;
  color: #666;
  margin-top: 8px;
}

/* Track tags list (sibling tracks) */
.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.track-tag {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #d9dde0;
  border-radius: 6px;
  font-size: 14.5px;
  text-decoration: none;
  color: #2c2c2c;
  transition: border-color 0.15s, color 0.15s;
}
.track-tag:hover {
  border-color: #16a34a;
  color: #16a34a;
}

/* Breadcrumb (used on track pages) */
.breadcrumb {
  font-size: 14.5px;
  color: #666;
  margin-bottom: 24px;
}
.breadcrumb a {
  color: #1d3a45;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.specialty-list {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .specialty-list { columns: 1; }
}
.specialty-list li {
  padding: 8px 0;
  break-inside: avoid;
}
.cert-flow {
  padding-left: 20px;
  margin-top: 16px;
}
.cert-flow li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ─── Qualification badges on profile pages ─── */
.profile-qualification {
  margin: 24px 0;
  padding: 24px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}
.profile-qualification h3 {
  font-size: 20px;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.qualify-verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--hr-accent);
  color: white;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.qualify-badge-row {
  margin-bottom: 20px;
}
.qualify-badge-row:last-child {
  margin-bottom: 0;
}
.qualify-badge-row h4 {
  font-size: 14.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.qualify-badge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qbadge {
  display: inline-block;
  padding: 5px 11px;
  background: white;
  border: 1px solid #d9dde0;
  border-radius: 14px;
  font-size: 14.5px;
  color: #2c2c2c;
  font-weight: 500;
  line-height: 1.4;
}
.qbadge-cert {
  background: #eef7ff;
  border-color: #b8daff;
  color: #084298;
}
.qbadge-insured {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
  font-weight: 600;
}
.qbadge-response {
  background: #fff4e0;
  border-color: #ffcc80;
  color: #7c4a03;
  font-weight: 600;
}
.qbadge-dispatch {
  background: linear-gradient(135deg, #16a34a, #0d7d3a);
  border-color: transparent;
  color: white;
  font-weight: 700;
}
.qualify-disclosure-small {
  font-size: 14.5px;
  color: #666;
  margin-top: 16px;
  margin-bottom: 0;
  font-style: italic;
}

/* ─── Claim form status messages ─── */
.claim-status {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  background: #f1f3f5;
  border: 1px solid #d9dde0;
}
.claim-status-success {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #1b5e20;
}
.claim-status-error {
  background: #ffebee;
  border-color: #ef5350;
  color: #b71c1c;
}
.claim-form label small {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: #666;
  font-weight: normal;
}
.claim-form input[type="file"] {
  padding: 8px;
  background: #fff;
  border: 1px dashed #d9dde0;
  border-radius: 6px;
  width: 100%;
}
.claim-form textarea {
  font-family: var(--body);
  font-size: 14.5px;
  padding: 12px;
  border: 1px solid #d9dde0;
  border-radius: 6px;
  width: 100%;
  resize: vertical;
}


/* ─── Profile logo (uploaded / default / featured) ─── */
.profile-logo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-logo-default img {
  width: 100%;
  height: auto;
}
.profile-logo-default .powered-by {
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1px;
  color: #666;
  text-transform: uppercase;
}
.profile-logo-featured {
  background: #fff;
  border: 2px solid var(--hr-accent);
}
.profile-logo-uploaded {
  background: #fff;
  border: 1px solid #e0e0e0;
}
.profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.profile-header-text {
  flex: 1;
  min-width: 0;
}
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    gap: 16px;
  }
  .profile-logo {
    width: 96px;
    height: 96px;
  }
}

/* ─── Claimed badge ─── */
.profile-badge-claimed {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #0d7d3a);
  color: #fff;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ─── Owner-supplied description ─── */
.profile-description {
  margin: 24px 0;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid var(--hr-accent);
}
.profile-description h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}
.profile-description p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* ─── Owner-supplied services ─── */
.profile-services {
  margin: 24px 0;
}
.profile-services h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #555;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-chip {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d9dde0;
  border-radius: 16px;
  font-size: 14.5px;
  color: #2c2c2c;
  font-weight: 500;
}

/* ─── Card thumbnail logos (for unclaimed cards) ─── */
.mech-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.mech-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Reviews placeholder block ─── */
.profile-reviews {
  margin-top: 32px;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 16px;
}
.reviews-summary-text strong {
  font-size: 18px;
}
.reviews-cta-coming-soon {
  background: #fff;
  border: 2px dashed #d9dde0;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}
.reviews-cta-coming-soon h3 {
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 8px;
}
.reviews-cta-coming-soon p {
  color: #666;
  max-width: 540px;
  margin: 0 auto 20px;
}
.reviews-notify-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.reviews-notify-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d9dde0;
  border-radius: 6px;
  font-size: 15px;
}
@media (max-width: 540px) {
  .reviews-notify-form {
    flex-direction: column;
  }
}

/* ─── Category page header ─── */
.page-header-category {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 12px;
  padding: 48px 32px;
  margin-bottom: 32px;
  text-align: center;
}
.page-header-category h1 {
  font-size: 48px;
}
.page-header-category .page-lead {
  font-size: 18px;
  max-width: 720px;
  margin: 16px auto 24px;
  color: #555;
}
@media (max-width: 720px) {
  .page-header-category {
    padding: 32px 16px;
  }
  .page-header-category h1 {
    font-size: 32px;
  }
}

/* ─── Homepage category grid ─── */
.section-categories .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--hr-brand);
}
.cat-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.cat-card-label {
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.cat-card-count {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── City page category quick links ─── */
.city-cats {
  background: #f8f9fa;
  padding: 18px 22px;
  border-radius: 10px;
  margin: 20px 0 28px;
}
.city-cats-label {
  font-family: var(--mono);
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  margin-bottom: 12px;
}
.city-cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  text-decoration: none;
  color: #2c2c2c;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.city-cat-link:hover {
  border-color: var(--hr-brand);
  background: var(--hr-brand);
  color: #fff;
}
.city-cat-count {
  background: #f1f3f5;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: var(--mono);
  font-weight: 700;
}
.city-cat-link:hover .city-cat-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ─── Find page filter bar ─── */
.filter-bar-wide {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .filter-bar-wide {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar-wide .filter-input {
    grid-column: 1 / -1;
  }
}
.filter-clear {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #d9dde0;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-clear:hover {
  background: #f1f3f5;
  border-color: var(--hr-brand);
}
.filter-meta {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.card-name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.05;;
}
.card-name a {
  color: inherit;
  transition: color 0.2s;
}
.mech-card:hover .card-name a { color: var(--hr-accent); }

.card-type {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card-rating {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars {
  color: var(--hr-amber);
  font-size: 16px;
  letter-spacing: 2px;
}
.rating-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14.5px;
}
.review-count {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--ink-muted);
}
.no-rating {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-location {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.section-dark .card-actions,
.mech-card-featured .card-actions { border-color: var(--line); }

.card-phone {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hr-accent);
}
.card-phone:hover { text-decoration: underline; }
.card-view {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1px;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: 6px;
  text-align: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.section-dark .card-view, .mech-card-featured .card-view {
  color: var(--on-dark-dim);
  border-color: rgba(255, 255, 255, 0.25);
}
.card-view:hover {
  color: var(--hr-accent-dim);
  border-color: var(--hr-accent);
  background: rgba(58, 171, 34, 0.07);
}
.section-dark .card-view:hover, .mech-card-featured .card-view:hover {
  color: var(--hr-accent-light);
  background: rgba(58, 171, 34, 0.15);
}
.card-claim {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hr-accent);
}
.card-claim:hover { text-decoration: underline; }

/* === CITY BROWSER === */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
/* ─── About page ─── */
.about-prose { max-width: 760px; }
.about-prose p { margin-bottom: 16px; line-height: 1.7; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.about-card {
  padding: 26px 28px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}
.about-card h3 { font-family: var(--display); font-size: 16px; margin-bottom: 10px; }
.about-card p { line-height: 1.65; color: var(--ink-soft); }
.about-note {
  margin-top: 22px;
  max-width: 760px;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ─── Service chips — the "what these pros do" grid on category pages ─── */
.section-services .section-head p { max-width: 760px; }
.service-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.service-chip {
  display: inline-block;
  padding: 9px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}
.service-chip:hover { border-color: var(--line); color: var(--ink); }

.city-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}
.city-chip:hover {
  background: var(--bg);
  color: var(--surface);
  border-color: var(--bg);
}
.city-name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.5px;
}
.city-count {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #687980;
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 3px;
}
.city-chip:hover .city-count {
  background: var(--hr-accent);
  color: #ffffff;
}

.city-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.city-card {
  padding: 32px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  transition: all 0.2s;
}
.city-card:hover {
  background: var(--bg);
  color: var(--surface);
  transform: translateY(-2px);
}
.city-card-name {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.city-card-count {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--ink-muted);
}
.city-card:hover .city-card-count { color: var(--on-dark-dim); }
.city-card-sc {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hr-accent);
  letter-spacing: 1px;
  margin-top: 12px;
  text-transform: uppercase;
}

/* === CTA BAND === */
.cta-band {
  background: linear-gradient(135deg, var(--hr-accent) 0%, var(--hr-accent-dim) 100%);
  color: #ffffff;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(77, 33, 127, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(77, 33, 127, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.cta-content { flex: 1; min-width: 320px; }
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 700;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.3vw, 42px);
  line-height: 1.12;
  margin-bottom: 16px;
  color: #ffffff;
}
.cta-band p {
  font-size: 18px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
}
.cta-band .btn-primary {
  background: var(--hr-brand-deep);
  color: #ffffff;
  border: 2px solid var(--hr-brand-deep);
}
.cta-band .btn-primary:hover {
  background: var(--hr-brand);
  border-color: var(--hr-brand);
}
.cta-band .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}
.cta-band .btn-secondary:hover {
  background: #ffffff;
  color: var(--hr-accent-dim);
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Certification CTA band — deep purple + green accents */
.cta-band-cert {
  padding: 72px 40px;
  background: linear-gradient(180deg, #12242c 0%, #1d3a45 100%);
  color: #f5f0f8;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.cta-band-cert::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163, 217, 165, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 217, 165, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-band-cert::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a3d9a5 0%, #16a34a 50%, #0d7d3a 100%);
}
.cta-band-cert .cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-band-cert .cta-content {
  flex: 1;
  min-width: 300px;
}
.cta-eyebrow-gold {
  font-family: var(--mono);
  color: #a3d9a5;
  font-size: 14.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.cta-band-cert h2 {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: clamp(18px, 2.64vw, 28px);
  margin: 0 0 12px 0;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.cta-band-cert p {
  color: #d8cee0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}
.btn-gold {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(180deg, #4caf50 0%, #16a34a 100%);
  color: #ffffff !important;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid #0d7d3a;
  border-radius: 8px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
  transition: filter 0.15s, transform 0.1s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}
.btn-gold:active { transform: translateY(0); filter: brightness(1); }

/* Badge images: some (like PPI) aren't square — letterbox instead of squishing */
img[src^="/badges/"] { object-fit: contain; }

/* Brand service-type icons (purple/green PNG set) */
.type-icon { display: inline-block; vertical-align: -0.2em; object-fit: contain; }
.cat-card-icon .type-icon { vertical-align: middle; }

/* ── Repair cost guides ───────────────────────────────────────────────────── */
.repair-hero {
  max-width: 1320px; margin: 0 auto; padding: 40px 40px 8px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.repair-hero-body { flex: 1 1 460px; min-width: 0; }
.repair-hero h1 { font-family: var(--display); font-size: clamp(25px, 3.3vw, 41px); margin: 8px 0 12px; }
.repair-hero-sub { font-size: 18px; color: #555; max-width: 760px; line-height: 1.6; }
.repair-hero-art { flex: 0 0 380px; max-width: 380px; }
.repair-hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@media (max-width: 900px) { .repair-hero-art { flex: 1 1 100%; max-width: none; margin-top: 20px; } }
.repair-hero-range {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 22px;
  background: linear-gradient(120deg, #f1f8ee, #f3f0f8);
  border: 1px solid rgba(58, 171, 34, 0.35); border-radius: 14px; padding: 18px 26px;
}
.repair-range-label { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; color: var(--hr-accent-dim); font-weight: 700; text-transform: uppercase; }
.repair-range-value { font-family: var(--display); font-size: 28px; color: #1a1a1a; }
.repair-range-note { font-size: 14.5px; color: #666; }
.repair-estimator-wrap { padding-top: 16px; }
.repair-estimator {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 28px 32px; box-shadow: 0 8px 28px rgba(23, 10, 38, 0.08);
}
.repair-estimator h2 { font-family: var(--display); font-size: 17px; margin: 0 0 16px; }
.repair-estimator-controls { display: flex; gap: 16px; flex-wrap: wrap; }
.repair-estimator-controls label {
  flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px;
  font-size: 14.5px; font-weight: 700; color: #1d3a45;
}
.repair-estimator-controls select {
  padding: 12px 14px; border: 1.5px solid var(--line-soft); border-radius: 8px;
  font-size: 15px; background: #fff; cursor: pointer;
}
.repair-estimator-controls select:focus { outline: 2px solid var(--hr-accent); }
.repair-estimate-result { margin-top: 20px; text-align: center; padding: 18px; background: #faf9fc; border-radius: 12px; }
.repair-estimate-value { font-family: var(--display); font-size: 30px; color: var(--hr-accent-dim); }
.repair-estimate-note { font-size: 14.5px; color: #666; margin-top: 4px; }
.repair-disclaimer { font-size: 14.5px; color: #666; margin-top: 14px; line-height: 1.5; }
.repair-article { max-width: 880px; margin: 0 auto; padding: 8px 40px 40px; }
.repair-article h2 { font-family: var(--display); font-size: 20px; margin: 34px 0 12px; }
.repair-article p { line-height: 1.7; color: #333; margin: 0 0 14px; }
.repair-article ul { margin: 0 0 16px; padding-left: 22px; }
.repair-article ul li { line-height: 1.65; margin-bottom: 7px; color: #333; }
.repair-symptoms li { padding-left: 4px; }
.repair-meta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
@media (max-width: 640px) { .repair-meta-cards { grid-template-columns: 1fr; } }
.repair-meta-card { background: #faf9fc; border-left: 3px solid var(--hr-accent); border-radius: 8px; padding: 16px 18px; }
.repair-meta-card.is-urgent { border-left-color: #c0392b; background: #fdf3f2; }
.repair-meta-card.is-soon { border-left-color: #e67e22; background: #fdf8f0; }
.repair-meta-label { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; color: #666; margin-bottom: 6px; }
.repair-meta-card p { margin: 0; font-size: 14.5px; }
.repair-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.repair-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.repair-table th {
  text-align: left; font-family: var(--mono); font-size: 14.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; background: var(--hr-brand); padding: 12px 16px;
}
.repair-table td { padding: 11px 16px; border-bottom: 1px solid #f2eef8; }
.repair-table tr:nth-child(even) td { background: #faf9fc; }
.repair-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.repair-table-note { font-size: 14.5px; color: #666; margin: 10px 0 0; }
.repair-faq { border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 10px; padding: 0; }
.repair-faq summary { cursor: pointer; font-weight: 700; padding: 14px 18px; color: #2a2a2a; }
.repair-faq[open] summary { border-bottom: 1px solid var(--line-soft); }
.repair-faq p { padding: 12px 18px; margin: 0; }
.source-band { border-top: 1px solid var(--line-soft); padding-top: 26px; margin-top: 30px; }
.source-band h2 { margin-bottom: 6px; }
.source-intro { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; max-width: 62ch; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.source-list li {
  padding: 12px 16px; border: 1.5px solid var(--line-soft); border-radius: 12px;
  background: var(--surface-soft, #fbfaff);
}
.source-list li a { font-weight: 700; color: var(--hr-brand); text-decoration: none; }
.source-list li a:hover { text-decoration: underline; }
.source-note { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 14.5px; }
.repair-related { display: flex; flex-wrap: wrap; gap: 10px; }
.repair-related-link {
  padding: 10px 16px; border: 1.5px solid var(--line-soft); border-radius: 24px;
  font-weight: 700; font-size: 14.5px; color: var(--hr-brand); text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.repair-related-link:hover { border-color: var(--hr-accent); background: rgba(58, 171, 34, 0.07); }
.repair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.repair-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 3px 12px rgba(23, 10, 38, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.repair-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23, 10, 38, 0.12); border-color: var(--hr-accent); }
.repair-card-cat { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; color: var(--hr-accent-dim); font-weight: 700; text-transform: uppercase; }
.repair-card h3 { font-family: var(--display); font-size: 16px; margin: 0; }
.repair-card-range { font-family: var(--display); font-size: 14.5px; color: var(--hr-brand); }
.repair-card p { font-size: 14.5px; color: #666; line-height: 1.55; margin: 0; flex: 1; }
.repair-card-cta { font-family: var(--mono); font-size: 14.5px; letter-spacing: 1px; color: var(--hr-accent-dim); font-weight: 700; text-transform: uppercase; }
@media (max-width: 640px) {
  .repair-hero, .repair-article { padding-left: 20px; padding-right: 20px; }
}

/* ── Interactive map ──────────────────────────────────────────────────────── */
.map-page { display: flex; flex-direction: column; height: calc(100vh - 64px); }
.map-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap; padding: 14px 40px; border-bottom: 1px solid var(--line-soft);
}
.map-head h1 { font-family: var(--display); font-size: 17px; margin: 0; }
.map-head p { font-size: 14.5px; color: #666; margin: 2px 0 0; }
.map-head-note { color: #666; }
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: #444; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-key { font-style: normal; }
.map-key-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hr-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); display: inline-block; }
.map-key-star { font-size: 18px; line-height: 1; }
.map-key-claimed { color: var(--hr-accent); }
.map-key-sc { color: #6b2d84; }
.map-canvas { flex: 1; min-height: 420px; z-index: 1; }
.pin-dot {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--hr-accent); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.pin-star {
  font-size: 30px; line-height: 1.1; display: block; text-align: center;
  text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 2px 5px rgba(0,0,0,0.55);
  filter: drop-shadow(0 0 6px rgba(58, 171, 34, 0.65));
}
.pin-claimed { color: var(--hr-accent); }
.pin-sc {
  color: #7b2d9b; font-size: 38px;
  filter: drop-shadow(0 0 8px rgba(123, 45, 155, 0.75));
  animation: pin-sc-pulse 2.4s ease-in-out infinite;
}
@keyframes pin-sc-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.mr-tooltip {
  background: #2a1a3d; color: #fff; border: 0; border-radius: 8px;
  font-weight: 700; font-size: 14.5px; padding: 6px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.mr-tooltip::before { border-top-color: #2a1a3d; }
.pin-cluster {
  background: rgba(58, 171, 34, 0.9); color: #fff; border-radius: 50%;
  text-align: center; font-weight: 800; font-size: 14.5px;
  border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.leaflet-popup-content { margin: 14px 16px; min-width: 190px; }
.pop-badge { display: block; font-family: var(--mono); font-size: 14.5px; letter-spacing: 1px; font-weight: 700; margin-bottom: 4px; }
.pop-sc { color: #6b2d84; }
.pop-claimed { color: var(--hr-accent-dim); }
.pop-name { display: block; font-weight: 700; font-size: 15px; color: #1a1a1a; margin-bottom: 4px; }
.pop-meta { font-size: 14.5px; color: #666; margin-bottom: 3px; }
.pop-phone { display: block; font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--hr-accent-dim); margin: 6px 0 2px; }
.pop-link { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--hr-brand); margin-top: 4px; }
@media (max-width: 640px) { .map-head { padding: 12px 20px; } }
.map-near-btn { font-size: 14.5px; padding: 10px 18px; white-space: nowrap; }
.map-toast {
  position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 1200;
  background: #2a1a3d; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14.5px; box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.pin-you {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: #2b6cff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,108,255,0.25);
  animation: pin-you-pulse 2s ease-out infinite;
}
@keyframes pin-you-pulse {
  0% { box-shadow: 0 0 0 4px rgba(43,108,255,0.35); }
  70% { box-shadow: 0 0 0 14px rgba(43,108,255,0); }
  100% { box-shadow: 0 0 0 4px rgba(43,108,255,0); }
}
/* Jobs pages */
.jobs-demo-banner {
  background: repeating-linear-gradient(45deg, #ffb020, #ffb020 14px, #2a1a3d 14px, #2a1a3d 28px);
  color: #fff; font-weight: 800; text-align: center; padding: 10px 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7); letter-spacing: 0.5px; font-size: 14.5px;
}
.jobs-hero {
  background:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(58, 171, 34, 0.16), transparent 60%),
    linear-gradient(120deg, #170a26, var(--hr-brand-dark));
  padding: 64px 40px 58px;
}
.jobs-hero .page-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.jobs-hero .page-eyebrow { color: var(--hr-accent); }
.jobs-hero h1 {
  font-family: var(--display); font-size: clamp(25px, 3.3vw, 38px);
  color: #fff; margin: 10px 0 14px; line-height: 1.05;;
}
.jobs-hero p { color: var(--on-dark-dim); font-size: 16.5px; line-height: 1.65; margin: 0 auto 24px; max-width: 720px; }
.jobs-hero .hero-ctas { justify-content: center; }
@media (max-width: 640px) { .jobs-hero { padding: 44px 20px 40px; } }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.job-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 3px 12px rgba(23, 10, 38, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23, 10, 38, 0.12); border-color: var(--hr-accent); }
.job-card-head { display: flex; gap: 14px; align-items: flex-start; }
.job-card-icon { font-size: 30px; line-height: 1.2; }
.job-card h3 { font-family: var(--display); font-size: 15px; margin: 0 0 4px; }
.job-card-pay { font-family: var(--mono); font-size: 14.5px; font-weight: 700; color: var(--hr-accent-dim); }
.job-card-pay-note { color: #666; font-weight: 400; font-size: 14.5px; }
.job-card p { font-size: 14.5px; color: #555; line-height: 1.6; margin: 0; flex: 1; }
.job-card-need span {
  display: block; font-family: var(--mono); font-size: 14.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--hr-brand); font-weight: 700; margin-bottom: 6px;
}
.job-card-need ul { margin: 0; padding-left: 18px; }
.job-card-need li { font-size: 14.5px; color: #555; line-height: 1.55; margin-bottom: 4px; }
.job-card-cta { text-align: center; margin-top: 4px; }
.jp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 22px; }
.jp-card {
  background: #fff; border: 1.5px solid var(--hr-accent); border-radius: 16px; padding: 26px;
  box-shadow: 0 6px 18px rgba(58, 171, 34, 0.12);
}
.jp-card-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.jp-intro-tag { background: #eef4fb; color: #23527c; border-color: #c6d9ee; }
.jp-card-intro { border-color: var(--line-soft); box-shadow: 0 3px 12px rgba(23, 10, 38, 0.06); }
.jp-sample-tag {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 1.5px; font-weight: 800;
  background: #ffb020; color: #2a1a3d; border-radius: 4px; padding: 3px 8px;
}
.jp-sched {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 1px; font-weight: 700;
  color: var(--hr-brand); border: 1px solid #e0d5ec; border-radius: 20px; padding: 3px 11px;
}
.jp-pay { font-family: var(--mono); font-size: 14.5px; font-weight: 800; color: var(--hr-accent-dim); margin-left: auto; }
.jp-card h3 { font-family: var(--display); font-size: 16px; margin: 0 0 4px; }
.jp-title-link { color: inherit; text-decoration: none; }
.jp-title-link:hover { color: var(--hr-brand); }
.jp-biz { font-size: 14.5px; font-weight: 700; color: #555; margin-bottom: 10px; }
.jp-date { color: #666; font-weight: 400; margin-left: 8px; font-size: 14.5px; }
.jp-card p { font-size: 14.5px; color: #444; line-height: 1.65; margin: 0 0 16px; }
.jp-apply { display: flex; flex-wrap: wrap; gap: 10px; }
.jp-apply a { font-size: 14.5px; padding: 9px 16px; }
.jp-empty {
  border: 2px dashed var(--line-soft); border-radius: 14px; padding: 28px; text-align: center;
  color: #666; font-size: 15px; margin-bottom: 22px;
}
.jp-empty p { margin: 0; }
.jp-post-band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #f8f6fb; border: 1px solid #e8e2f2; border-radius: 14px; padding: 18px 24px;
  font-size: 15px; color: #444;
}
.jp-form { max-width: 780px; margin: 0 auto; }
.jp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.jp-form label { display: block; font-weight: 700; font-size: 14.5px; color: #333; }
.jp-form input, .jp-form select, .jp-form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 14px; font-family: inherit;
  font-size: 14.5px; border: 1.5px solid var(--line-soft); border-radius: 10px; outline: none;
}
.jp-form input:focus, .jp-form select:focus, .jp-form textarea:focus { border-color: var(--hr-accent); }
.jp-form-wide { margin-bottom: 14px; }
.jp-form-check { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 600; }
.jp-form-check input { width: auto; margin: 0; }
.jp-hp { position: absolute; left: -9999px; height: 1px; width: 1px; opacity: 0; }
.jp-form-note { font-size: 14.5px; color: #666; margin: 0 0 18px; }
.jp-form-msg { margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.jp-form-ok { background: #f1f8ee; color: #2b5d1d; border: 1px solid var(--hr-accent); }
.jp-form-err { background: #fdf0ee; color: #a33; border: 1px solid #e2a69e; }
@media (max-width: 640px) { .jp-form-grid { grid-template-columns: 1fr; } .jp-pay { margin-left: 0; } }
.learn-repairs-band { border-top: 1px solid var(--line-soft); margin-top: 28px; }
.repair-learn-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: #f1f8ee; border: 1px solid #d6e9cf; border-radius: 14px;
  padding: 20px 24px; margin: 26px 0; line-height: 1.6;
}
.repair-learn-eyebrow {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; color: var(--hr-accent-dim);
  font-weight: 700; margin-bottom: 4px;
}
.repair-learn-band .btn-secondary { white-space: nowrap; }

.listing-note {
  max-width: 1320px; margin: 22px auto 0; padding: 16px 22px;
  background: #fff8ec; border: 1px solid #f0dcb4; border-left: 4px solid #d99a1e;
  border-radius: 10px;
}
.listing-note-label {
  display: block; font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px;
  font-weight: 700; color: #a4700c; margin-bottom: 4px;
}
.listing-note p { margin: 0; color: #4a3a1c; line-height: 1.6; font-size: 15.5px; }
@media (max-width: 640px) { .listing-note { margin: 16px 20px 0; } }

/* Quote request band */
.quote-band {
  background:
    radial-gradient(ellipse 60% 100% at 12% 0%, rgba(58, 171, 34, 0.14), transparent 60%),
    linear-gradient(115deg, #f4f0fa, #eef5ec);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.quote-band-inner {
  max-width: 1320px; margin: 0 auto; padding: 34px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.quote-band h2 { font-family: var(--display); font-size: clamp(16px, 1.98vw, 22px); margin: 0 0 6px; }
.quote-band p { color: #555; margin: 0; max-width: 560px; line-height: 1.6; }
.quote-band .btn-large { white-space: nowrap; }
.quote-btn { white-space: nowrap; }
@media (max-width: 640px) { .quote-band-inner { padding: 26px 20px; } }

/* Industry news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.news-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 28px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 3px 12px rgba(23, 10, 38, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23, 10, 38, 0.12); border-color: var(--hr-accent); }
.news-card-cat { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; color: var(--hr-accent-dim); font-weight: 700; }
.news-card h2 { font-family: var(--display); font-size: 17px; margin: 0; line-height: 1.15;; }
.news-card p { font-size: 14.5px; color: #555; line-height: 1.6; margin: 0; flex: 1; }
.news-card-meta { font-size: 14.5px; color: #666; }
.news-article { max-width: 780px; margin: 0 auto; padding: 48px 24px 64px; }
.news-hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  border-radius: 16px; margin: 0 0 30px; box-shadow: 0 10px 30px rgba(23, 10, 38, 0.14);
}
.news-card-img {
  display: block; width: calc(100% + 56px); margin: -28px -28px 6px; height: auto;
  aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 15px 15px 0 0;
}
.news-article-head { margin-bottom: 30px; }
.news-article h1 { font-family: var(--display); font-size: clamp(21px, 2.97vw, 32px); line-height: 1.08;; margin: 10px 0 12px; }
.news-meta { font-size: 14.5px; color: #666; }
.news-article h2 { font-family: var(--display); font-size: 18px; margin: 36px 0 12px; }
.news-article p { font-size: 16.5px; line-height: 1.75; color: #333; margin: 0 0 16px; }
.news-list { margin: 0 0 18px; padding-left: 22px; }
.news-list li { font-size: 15.5px; line-height: 1.7; color: #333; margin-bottom: 10px; }
.news-stat {
  background: #f1f8ee; border-left: 3px solid var(--hr-accent); border-radius: 6px;
  padding: 16px 20px; margin: 4px 0 20px; font-size: 15.5px; font-weight: 600; color: #2b3d26;
}
.news-code {
  background: #1a0e28; color: #d8f5cf; border-radius: 12px; padding: 20px 24px;
  font-size: 14.5px; line-height: 1.6; overflow-x: auto; margin: 4px 0 20px;
}
.news-related { margin-top: 40px; border-top: 1px solid var(--line-soft); padding-top: 24px; }
.news-related h3 { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--hr-accent-dim); margin: 0 0 12px; }
.news-rel-link {
  display: block; font-weight: 700; font-size: 16px; color: var(--hr-brand);
  text-decoration: none; padding: 8px 0; border-bottom: 1px dashed #eee;
}
.news-rel-link:hover { color: var(--hr-accent-dim); }
.news-cta {
  margin-top: 44px; background: #f8f6fb; border: 1px solid #e8e2f2; border-radius: 16px;
  padding: 28px; text-align: center;
}
.news-cta h3 { font-family: var(--display); font-size: 16px; margin: 0 0 8px; }
.news-cta p { font-size: 15px; margin: 0 auto 16px; max-width: 520px; }
.jobs-how { max-width: 1320px; margin: 0 auto; padding: 30px 40px 56px; }
.jobs-how h2 { font-family: var(--display); font-size: 22px; margin-bottom: 22px; }
.jobs-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.jobs-how-step {
  background: #f8f6fb; border: 1px solid #e8e2f2; border-radius: 14px; padding: 22px;
}
.jobs-how-num {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: var(--hr-brand); color: #fff; border-radius: 50%; font-weight: 800; margin-bottom: 10px;
}
.jobs-how-step h3 { font-family: var(--display); font-size: 14.5px; margin: 0 0 8px; }
.jobs-how-step p { font-size: 14.5px; color: #555; line-height: 1.6; margin: 0; }
@media (max-width: 640px) { .jobs-how { padding: 20px 20px 40px; } }

/* Map search (typeahead on /map/ and homepage embed) */
.map-search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.map-search input {
  width: 100%; padding: 11px 16px; border: 2px solid var(--line-soft); border-radius: 26px;
  font-size: 14.5px; font-family: inherit; outline: none; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.map-search input:focus { border-color: var(--hr-accent); box-shadow: 0 0 0 3px rgba(58,171,34,0.15); }
.map-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1500;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(23,10,38,0.18); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.map-sr {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 14px; border: 0; background: #fff; cursor: pointer; font-family: inherit;
  font-size: 14.5px; border-bottom: 1px solid #f4f1f8;
}
.map-sr:last-child { border-bottom: 0; }
.map-sr:hover { background: #f6fbf4; }
.map-sr-ico { color: var(--hr-accent); font-size: 14.5px; flex: none; }
.map-sr-star { font-size: 16px; line-height: 1; flex: none; }
.map-sr-sc { color: #7b2d9b; }
.map-sr-cl { color: var(--hr-accent); }
.map-sr-name { font-weight: 700; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-sr-meta { margin-left: auto; font-size: 14.5px; color: #666; flex: none; }
.map-sr-none { padding: 14px; font-size: 14.5px; color: #666; }

/* Homepage embedded map */
.home-map-section .section-head { margin-bottom: 22px; }
.home-map-wrap {
  position: relative; max-width: 1320px; margin: 0 auto;
  border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 34px rgba(23,10,38,0.10);
}
.home-map-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line-soft);
  position: relative; z-index: 1100;
}
.home-map-search { max-width: 460px; }
.home-map-full { white-space: nowrap; font-weight: 700; }
.home-map-canvas { height: 520px; z-index: 1; }
.home-map-wrap .map-toast { top: 84px; }
@media (max-width: 640px) { .home-map-canvas { height: 420px; } }

/* Map feature band (home / find / state pages) */
.map-band {
  background:
    radial-gradient(ellipse 70% 90% at 85% 15%, rgba(58,171,34,0.18), transparent 60%),
    linear-gradient(120deg, #170a26, var(--hr-brand-dark));
  color: var(--on-dark); overflow: hidden;
}
.map-band-inner {
  max-width: 1320px; margin: 0 auto; padding: 56px 40px;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap; position: relative;
}
.map-band-body { flex: 1; min-width: 300px; }
.map-band-eyebrow { font-family: var(--mono); font-size: 14.5px; letter-spacing: 3px; color: var(--hr-accent); font-weight: 700; margin-bottom: 12px; }
.map-band h2 { font-family: var(--display); font-size: clamp(20px, 2.64vw, 32px); color: #fff; margin: 0 0 12px; }
.map-band p { color: var(--on-dark-dim); max-width: 560px; line-height: 1.6; margin-bottom: 24px; }
.map-band-star { font-size: 18px; vertical-align: -2px; }
.map-band-star-green { color: var(--hr-accent-light); }
.map-band-star-purple { color: #a56ac2; }
.map-band-art { position: relative; flex: 1; min-width: 260px; height: 180px; }
.mba-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--hr-accent); border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 10px rgba(58,171,34,0.6);
}
.mba-star {
  position: absolute; font-size: 26px; line-height: 1;
  text-shadow: 0 0 10px rgba(255,255,255,0.35);
}
.mba-star-green { color: var(--hr-accent-light); }
.mba-star-purple { color: #a56ac2; font-size: 32px; }
@media (max-width: 780px) { .map-band-art { display: none; } }

/* City-page mini map */
.city-map {
  height: 420px; border-radius: 14px; overflow: hidden; z-index: 1;
  border: 1px solid var(--line-soft); box-shadow: 0 6px 20px rgba(23,10,38,0.08);
}
@media (max-width: 640px) { .city-map { height: 320px; } }

/* ── Super-admin dashboard ────────────────────────────────────────────────── */
.admin-gate { display: flex; justify-content: center; padding: 80px 20px; }
.admin-gate-card {
  max-width: 420px; width: 100%; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 36px; text-align: center;
  box-shadow: 0 12px 40px rgba(23, 10, 38, 0.12);
}
.admin-gate-card h1 { font-family: var(--display); font-size: 22px; margin: 8px 0; }
.admin-gate-card p { color: #666; margin-bottom: 20px; }
.admin-gate-card form { display: flex; gap: 10px; }
.admin-gate-card input {
  flex: 1; padding: 13px 16px; border: 1.5px solid var(--line-soft); border-radius: 8px;
  font-size: 15px; font-family: var(--mono);
}
.admin-gate-card input:focus { outline: 2px solid var(--hr-accent); border-color: var(--hr-accent); }
.admin-head {
  max-width: 1320px; margin: 0 auto; padding: 36px 40px 8px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.admin-head h1 { font-family: var(--display); font-size: clamp(21px, 2.64vw, 32px); margin: 4px 0; }
.admin-generated { font-family: var(--mono); font-size: 14.5px; color: #666; }
.admin-head-actions { display: flex; gap: 10px; align-items: center; }
.admin-tiles {
  max-width: 1320px; margin: 0 auto; padding: 20px 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px;
}
.admin-tile {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(23, 10, 38, 0.06);
}
.admin-tile-value { font-family: var(--display); font-size: 24px; color: #1a1a1a; line-height: 1.12; }
.admin-tile-label {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--hr-accent-dim); font-weight: 700; margin-top: 8px;
}
.admin-tile-sub { font-size: 14.5px; color: #666; margin-top: 6px; }
.admin-grid {
  max-width: 1320px; margin: 0 auto; padding: 6px 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px;
}
.admin-panel {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(23, 10, 38, 0.06);
}
.admin-panel h2 { font-family: var(--display); font-size: 15px; margin: 0 0 14px; }
.admin-panel-wide { max-width: 1240px; margin: 14px auto; }
@media (max-width: 1330px) { .admin-panel-wide { margin: 14px 40px; } }
.admin-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.admin-bar-key { flex: 0 0 170px; font-size: 14.5px; font-weight: 600; color: #444;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-bar-track { flex: 1; height: 10px; background: #f0ebf7; border-radius: 6px; overflow: hidden; }
.admin-bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--hr-accent), var(--hr-accent-light)); border-radius: 6px; }
.admin-bar-n { flex: 0 0 auto; font-family: var(--mono); font-size: 14.5px; color: #555; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th {
  text-align: left; font-family: var(--mono); font-size: 14.5px; letter-spacing: 1px;
  text-transform: uppercase; color: #666; padding: 6px 10px; border-bottom: 1px solid var(--line-soft);
}
.admin-table td { padding: 8px 10px; border-bottom: 1px solid #f2eef8; color: #333; }
.admin-empty { color: #666; font-style: italic; font-size: 14.5px; }
.admin-tabs {
  max-width: 1320px; margin: 0 auto; padding: 6px 40px 0;
  display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line-soft);
}
.admin-tab {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 14.5px; font-weight: 700; letter-spacing: 0.5px;
  color: #666; padding: 12px 16px; border-radius: 8px 8px 0 0; margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.admin-tab:hover { color: var(--hr-brand); background: #f7f4fb; }
.admin-tab.is-active { color: var(--hr-brand); border-bottom-color: var(--hr-accent); background: #f7f4fb; }
.admin-tabpane { display: none; padding-bottom: 40px; }
.admin-tabpane.is-active { display: block; }
.admin-count { font-family: var(--mono); font-size: 14.5px; color: #666; font-weight: 400; }
.admin-note { font-size: 14.5px; color: #666; margin-top: 12px; }
.admin-detail { max-height: 560px; overflow: auto; }
.admin-delta { font-family: var(--mono); font-size: 14.5px; color: #666; }
.admin-delta-up { color: var(--hr-accent-dim); font-weight: 700; }
.admin-delta-down { color: #c0392b; font-weight: 700; }
@media (max-width: 640px) {
  .admin-head, .admin-tiles, .admin-grid { padding-left: 20px; padding-right: 20px; }
  .admin-panel-wide { margin: 14px 20px; overflow-x: auto; }
}

/* === BUTTONS === */
/* Shared geometry so every button on the site feels like one family. */
.btn-primary, .btn-secondary, .btn-green, .btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: 0.45px;
  line-height: 1.1;;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s,
              box-shadow 0.18s, transform 0.12s, filter 0.18s;
}
.btn-primary {
  background: var(--bg);
  color: var(--surface);
  border: 0;
  box-shadow: 0 2px 6px rgba(13, 6, 24, 0.22);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13, 6, 24, 0.28);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(13, 6, 24, 0.25);
}
.btn-secondary {
  padding: 13px 26px;   /* 2px border keeps overall size equal to primary */
  background: transparent;
  color: var(--bg);
  border: 2px solid var(--bg);
}
.btn-secondary:hover {
  background: var(--bg);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13, 6, 24, 0.18);
}
.btn-secondary:active { transform: translateY(0); box-shadow: none; }
/* High-emphasis action — the brand green. Use for "start/learn/go" moments. */
.btn-green {
  background: linear-gradient(180deg, var(--hr-accent-light) 0%, var(--hr-accent) 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 2px 8px rgba(58, 171, 34, 0.35);
}
.btn-green:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 171, 34, 0.45);
}
.btn-green:active {
  transform: translateY(0);
  filter: brightness(0.97);
  box-shadow: 0 1px 4px rgba(58, 171, 34, 0.35);
}
/* Quiet button for dark hero/CTA surfaces */
.btn-ghost-light {
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  border-color: var(--hr-accent);
  background: rgba(58, 171, 34, 0.15);
  transform: translateY(-2px);
}
.btn-ghost-light:active { transform: translateY(0); }
/* Keyboard focus — visible ring on every button-like control */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-green:focus-visible,
.btn-gold:focus-visible, .btn-ghost-light:focus-visible, .btn-finish:focus-visible,
.hero-search button:focus-visible, .card-view:focus-visible,
.nav-cta:focus-visible, .nav-cta-cert:focus-visible, .nav-cta-tools:focus-visible {
  outline: 3px solid var(--hr-accent);
  outline-offset: 2px;
}

/* === PROFILE PAGE === */
.breadcrumb {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 40px 0;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1px;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.breadcrumb a { color: var(--hr-accent-dim); }  /* was --hr-accent (2.99:1 on white) */
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--ink-muted); }

.profile {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 40px 96px;
}
.profile-featured {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(58, 171, 34, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-soft), var(--surface));
}
.profile-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.profile-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 14px;
  border-radius: 3px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.profile-badge-official {
  background: var(--hr-accent);
  color: #ffffff;
}
.profile-header h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3.96vw, 53px);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.profile-type {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 2px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.profile-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.rating-text { color: var(--ink-soft); }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.profile-details {
  margin-bottom: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}
.profile-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.profile-detail:last-child { border-bottom: 0; }
.detail-label {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 2px;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.profile-detail a { color: var(--hr-accent); }
.profile-detail a:hover { text-decoration: underline; }

.profile-hours {
  margin-bottom: 32px;
}
.profile-hours h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.profile-hours table {
  width: 100%;
  border-collapse: collapse;
}
.profile-hours td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.profile-hours td:first-child {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1px;
  color: var(--ink-muted);
  text-transform: uppercase;
  width: 140px;
}

.profile-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-side aside {
  padding: 32px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.claim-cta {
  background: var(--surface-soft);
  border: 1px dashed var(--ink-soft);
}
.claim-cta h3,
.franchise-cta h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1.1;;
  margin-bottom: 12px;
}
.claim-cta p, .franchise-cta p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.franchise-cta {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(58, 171, 34, 0.12), transparent 60%),
    linear-gradient(135deg, var(--hr-brand) 0%, var(--hr-brand-dark) 100%);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.franchise-eyebrow {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 2px;
  color: var(--hr-accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.franchise-cta p { color: var(--on-dark-dim); }
.franchise-cta .btn-primary {
  background: var(--hr-accent);
  color: #ffffff;
}
.franchise-cta .btn-primary:hover { background: var(--hr-accent-light); }

/* === PAGE HEADERS (city/state/etc) === */
.page-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 40px 32px;
}
.page-eyebrow {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 3px;
  color: var(--hr-accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.62vw, 63px);
  line-height: 1.07;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.page-header p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 720px;
}

.franchise-hero {
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(77, 33, 127, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(58, 171, 34, 0.18) 0%, transparent 55%),
    var(--bg);
  color: var(--on-dark);
  max-width: 100%;
  padding: 96px 40px;
  position: relative;
  overflow: hidden;
}
.franchise-hero h1 { color: var(--on-dark); }
.franchise-hero p { color: var(--on-dark-dim); max-width: 720px; margin: 0 auto; }
.franchise-hero .page-eyebrow { margin-left: 0; }
.franchise-hero > * { max-width: 1320px; margin-left: auto; margin-right: auto; }

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-input, .filter-select {
  padding: 14px 18px;
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 15px;
  background: var(--surface);
  outline: 0;
  transition: border-color 0.2s;
}
.filter-input { flex: 1; min-width: 280px; }
.filter-input:focus, .filter-select:focus { border-color: var(--hr-accent); }

/* === CLAIM / FRANCHISE FORMS === */
.claim-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.claim-step {
  padding: 32px;
  background: var(--surface-soft);
  border-radius: 6px;
  border-left: 4px solid var(--hr-accent);
}
.step-num {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.12;
  color: var(--hr-accent);
  margin-bottom: 16px;
}
.claim-step h3 {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.claim-step p { color: var(--ink-soft); font-size: 14.5px; }

.claim-form, .franchise-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background: var(--surface-soft);
  border-radius: 6px;
}
.claim-form h2, .franchise-form h2 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.claim-form label, .franchise-form label {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 600;
  gap: 6px;
}
.claim-form input, .claim-form textarea,
.franchise-form input, .franchise-form textarea {
  padding: 14px 16px;
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 15px;
  background: var(--surface);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s;
}
.claim-form input:focus, .claim-form textarea:focus,
.franchise-form input:focus, .franchise-form textarea:focus {
  border-color: var(--hr-accent);
}
.consent {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 14.5px !important;
  letter-spacing: 0.5px !important;
  color: var(--ink-soft) !important;
  text-transform: none !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
.consent input { width: auto; flex-shrink: 0; margin-top: 3px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.benefit {
  padding: 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--hr-accent);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.benefit strong {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--hr-accent-light);
}
.benefit span { font-size: 14.5px; color: var(--on-dark-dim); }

.franchise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.franchise-card {
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
}
.franchise-card h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--hr-accent);
}
.qualifier-list {
  list-style: none;
  max-width: 720px;
  margin-bottom: 32px;
}
.qualifier-list li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16px;
}
.qualifier-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--hr-accent);
  font-weight: 700;
}
.section-dark .qualifier-list li { color: var(--on-dark-dim); border-bottom-color: var(--line); }

.franchise-disclaimer {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-top: 16px;
  font-style: italic;
  max-width: 600px;
}

/* === FOOTER === */
.site-footer {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(77, 33, 127, 0.4) 0%, transparent 70%),
    var(--bg);
  color: var(--on-dark);
  padding: 80px 40px 32px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.9px;
  color: var(--hr-accent);
  margin-bottom: 16px;
}
.footer-col p {
  color: var(--on-dark-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h2 {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hr-accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--on-dark-dim);
  font-size: 14.5px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--hr-accent); }
.footer-bottom {
  max-width: 1320px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 1.5px;
  color: var(--on-dark-dim);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-bottom .footer-credit {
  color: var(--on-dark-dim);
  text-decoration: none;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0.5px;
}
.footer-bottom .footer-credit a { color: inherit; text-decoration: underline; border-bottom: 0; text-transform: none; letter-spacing: inherit; }
.footer-bottom .footer-credit a:hover { color: var(--hr-accent-light); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; gap: 10px; }
  /* Compact the phone CTA and hide subtitle on mobile so hamburger fits */
  .nav-cta { padding: 8px 12px; font-size: 14.5px; letter-spacing: 0; }
  .brand-text em { display: none; }
  .brand-text { font-size: 15px; }
  .hero { padding: 64px 20px 80px; }
  .hero-stats { gap: 32px; }
  .hero-stats strong { font-size: 40px; }
  .section { padding: 64px 20px; }
  .section-dark, .section-featured { padding: 64px 20px; }
  .cta-band { padding: 56px 20px; }
  .page-header { padding: 40px 20px 24px; }
  .profile { padding: 32px 20px 64px; }
  .breadcrumb { padding: 20px 20px 0; }
  .footer-inner { padding: 0 0 32px; }
  .site-footer { padding: 56px 20px 24px; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   COURSE PLATFORM — Buy pages, exam runner, results, certificates, verify
   ═════════════════════════════════════════════════════════════════════════════ */

/* Track buy CTA card (replaces notify for launch tracks) */
.track-buy-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid var(--hr-accent);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(58,171,34,0.12);
}
.track-buy-badge {
  display: inline-block;
  background: var(--hr-accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.track-buy-card h2 {
  color: #14532d;
  margin: 0 0 8px;
  font-size: 26px;
}
.track-buy-note {
  color: #4b5563;
  font-size: 14.5px;
  max-width: 480px;
  margin: 8px auto 0;
}
.btn-large {
  padding: 16px 36px !important;
  font-size: 18px !important;
}
@media (max-width: 480px) {
  .btn-primary, .btn-secondary, .btn-green, .btn-ghost-light, .btn-gold {
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .btn-large {
    padding: 14px 22px !important;
    font-size: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Buy page */
.buy-hero {
  text-align: center;
  padding: 28px 24px 16px;
}
/* Above-the-fold: the summary + form live in a generic .section (96px pad).
   Pull them up under the hero so the form is reachable without a long scroll. */
.buy-hero + .section,
.exam-hero + .section { padding-top: 24px; padding-bottom: 48px; }
.buy-hero-with-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: left;
}
.buy-hero-badge {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(74,29,95,0.25));
}
.buy-hero-body { flex: 1; max-width: 460px; }
.buy-hero-alt { font-size: 14.5px; margin-top: 6px; }
.buy-hero-alt a { color: #1d3a45; font-weight: 600; text-decoration: underline; }

/* Subscribe hero glyph — infinite symbol on subscribe page (no per-track badge) */
.subscribe-hero-glyph {
  width: 120px; height: 120px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 58px; line-height: 1.12;
  color: #1d3a45;
  background: linear-gradient(135deg, #f4ecfa 0%, #d8bfe6 100%);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(74,29,95,0.25);
  font-family: var(--display);
}

/* Subscriber dashboard */
.sub-dashboard-hero {
  padding: 32px 24px;
  background: linear-gradient(135deg, #12242c 0%, #1d3a45 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 32px;
}
.sub-dashboard-hero h1 { color: #fff; font-family: 'Oswald', sans-serif; margin: 0 0 8px; }
.sub-dashboard-hero p { color: #d8cee0; margin: 0; }
.sub-status {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sub-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.sub-track-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s, transform 0.15s;
}
.sub-track-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.sub-track-badge { width: 80px; height: 80px; object-fit: contain; flex-shrink: 0; }
.sub-track-body { flex: 1; }
.sub-track-code {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #1d3a45;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.sub-track-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  color: #14532d;
  margin: 2px 0 8px;
}
.sub-start-btn {
  font-size: 14.5px;
  padding: 6px 14px;
}
.buy-legal-note {
  font-size: 14.5px;
  color: #6b7280;
  margin: 16px 0;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROMO CODE — buy page
   ═════════════════════════════════════════════════════════════════════════════ */
.buy-promo-toggle { margin: 8px 0 20px; }
.promo-toggle-btn {
  background: transparent;
  border: 1px dashed #a3d9a5;
  color: #14532d;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
}
.promo-toggle-btn:hover { background: rgba(163,217,165,0.15); }
.buy-promo-fields {
  margin-top: 12px;
  padding: 14px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}
.buy-promo-fields .buy-form-inline {
  display: flex; gap: 10px; align-items: flex-end;
}
.promo-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14.5px;
  font-weight: 600;
}
.promo-status-ok   { background: #16a34a; color: #ffffff; }
.promo-status-warn { background: #fef3c7; color: #854d0e; }
.promo-status-err  { background: #fee2e2; color: #991b1b; }

/* ═════════════════════════════════════════════════════════════════════════════
   MANAGE LISTING — post-claim photo grid
   ═════════════════════════════════════════════════════════════════════════════ */
.ml-hero {
  padding: 24px;
  background: linear-gradient(135deg, #14532d 0%, #1d3a45 100%);
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 24px;
}
.ml-hero h1 { color: #ffffff; font-family: 'Oswald', sans-serif; margin: 0 0 8px; }
.ml-hero p { color: #d8cee0; margin: 0; font-size: 15px; }
.ml-hero span { color: #a3d9a5; font-family: var(--mono); font-size: 0.85em; }
.ml-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.ml-slot {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ml-slot:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,29,95,0.15); }
.ml-slot.is-empty {
  border-style: dashed;
  display: flex; align-items: center; justify-content: center;
}
.ml-slot.is-uploading {
  opacity: 0.5;
  pointer-events: none;
}
.ml-slot img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.ml-slot-empty {
  text-align: center; color: #6b7280;
}
.ml-plus {
  font-size: 40px; font-weight: 300; line-height: 1; color: #1d3a45;
}
.ml-slot-num { font-size: 14.5px; margin-top: 4px; letter-spacing: 0.05em; }
.ml-slot-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 6px 8px;
  font-size: 14.5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.ml-slot:hover .ml-slot-overlay,
.ml-slot:active .ml-slot-overlay { opacity: 1; }
.ml-slot-overlay [data-action="delete"] { color: #fca5a5; cursor: pointer; }
.ml-slot-overlay [data-action="delete"]:hover { color: #ffffff; text-decoration: underline; }
.ml-tip {
  font-size: 14.5px; color: #6b7280; text-align: center; margin-top: 20px; font-style: italic;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROFILE PHOTO GALLERY — handyman profile pages
   ═════════════════════════════════════════════════════════════════════════════ */
.profile-photos { margin: 24px 0; }
.profile-primary-photo {
  margin: 12px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  max-height: 420px;
  background: #f3f0f8;
}
.profile-primary-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.profile-photo {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  background: #f3f4f6;
  transition: transform 0.15s, box-shadow 0.15s;
}
.profile-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═════════════════════════════════════════════════════════════════════════════
   ACTION-SHOT STRIP — /certification/ header
   ═════════════════════════════════════════════════════════════════════════════ */
.cert-header-with-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}
.cert-action-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
}
.cert-action-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #14532d;
}
@media (max-width: 700px) {
  .cert-action-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .buy-hero { padding: 18px 20px 10px; }
  .buy-hero-with-badge { flex-direction: column; text-align: center; gap: 12px; }
  .buy-hero-badge { width: 72px; height: 72px; }
  .buy-hero h1 { font-size: 24px; }
  .buy-hero + .section, .exam-hero + .section { padding-top: 18px; }
}
.buy-hero h1 { margin: 0 0 8px; color: #14532d; font-size: 30px; }
.buy-price-tag {
  display: inline-block;
  background: var(--hr-brand, #1d3a45);
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  padding: 6px 22px;
  border-radius: 8px;
  margin: 8px 0;
}
.buy-tagline { color: #6b7280; font-size: 14.5px; }
.buy-summary {
  background: #f9fafb;
  border-left: 4px solid var(--hr-accent);
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.buy-summary h3 { margin: 0 0 12px; color: #14532d; }
.buy-summary ul { margin: 0; padding-left: 20px; }
.buy-summary li { margin-bottom: 6px; color: #374151; }
.buy-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
.buy-form-row { margin-bottom: 16px; }
.buy-form-inline { display: flex; gap: 12px; margin-bottom: 16px; }
.buy-form label { display: block; font-weight: 600; color: #374151; font-size: 14.5px; margin-bottom: 6px; }
.buy-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.buy-form input:focus { outline: 2px solid var(--hr-accent); outline-offset: -1px; }
.buy-card-section {
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
  padding-top: 24px;
}
.buy-card-section h3 { margin: 0 0 16px; color: #14532d; font-size: 18px; }
.buy-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14.5px;
}
.buy-legal, .buy-security {
  font-size: 14.5px;
  color: #6b7280;
  margin-top: 16px;
  text-align: center;
}

/* Exam start page */
.exam-hero { text-align: center; padding: 40px 24px 20px; }
.exam-hero h1 { color: #14532d; margin: 0 0 8px; font-size: 30px; }
.exam-tagline { color: #6b7280; font-size: 15px; }
.exam-loader {
  padding: 60px 24px;
  text-align: center;
  color: #6b7280;
}
.exam-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px auto;
  max-width: 560px;
}
.exam-error h2 { margin: 0 0 8px; color: #991b1b; }
.exam-brief {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.exam-brief h2 { margin: 0 0 16px; color: #14532d; text-align: center; }
.exam-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.exam-brief-label { font-size: 14.5px; color: #6b7280; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.exam-brief-value { font-family: var(--display); font-size: 21px; color: var(--hr-brand); }
.exam-rules {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.exam-rules h3 { margin: 0 0 12px; color: #14532d; }
.exam-rules ul { margin: 0; padding-left: 20px; }
.exam-rules li { margin-bottom: 8px; color: #374151; }
.exam-resume-notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 6px;
  color: #78350f;
  margin-bottom: 20px;
}

/* Exam runner (take page) */
.exam-runner-shell { max-width: 900px; margin: 0 auto; padding: 20px; }
.exam-runner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14532d;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.exam-runner-title { font-weight: 700; font-size: 16px; }
.exam-runner-code { background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 4px; font-size: 14.5px; margin-right: 8px; }
.exam-runner-timer { display: flex; align-items: center; gap: 8px; }
.exam-runner-timer-label { font-size: 14.5px; opacity: 0.85; }
.exam-runner-timer-value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}
.exam-timer-low { color: #fca5a5; animation: pulse-time 1s infinite; }
@keyframes pulse-time { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.exam-progress-strip {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.progress-tick {
  width: 16px;
  height: 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.progress-tick:hover { border-color: #6b7280; }
.progress-tick-answered { background: var(--hr-accent); border-color: var(--hr-accent); }
.progress-tick-current { border: 2px solid var(--hr-brand); background: #fef3c7; }
.progress-tick-current.progress-tick-answered { background: var(--hr-accent); border-color: var(--hr-brand); }

.exam-question-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
}
.exam-question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14.5px;
  color: #6b7280;
}
.exam-q-topic {
  background: #ede9fe;
  color: var(--hr-brand);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.exam-q-text {
  font-size: 20px;
  line-height: 1.4;
  color: #111827;
  margin: 8px 0 24px;
}
.exam-q-options { display: flex; flex-direction: column; gap: 10px; }
.exam-q-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.exam-q-option:hover { border-color: #9ca3af; }
.exam-q-option-selected { border-color: var(--hr-brand); background: #f5f3ff; }
.exam-q-option input { margin: 4px 0 0; }
.exam-q-option-letter {
  font-family: var(--display);
  font-size: 15px;
  color: var(--hr-brand);
  min-width: 24px;
}
.exam-q-option-text { flex: 1; color: #374151; line-height: 1.5; }

.exam-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.exam-nav .btn-secondary,
.modal-buttons .btn-secondary {
  padding: 12px 20px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.exam-nav .btn-secondary:hover:not(:disabled),
.modal-buttons .btn-secondary:hover:not(:disabled) { border-color: #6b7280; background: #f9fafb; }
.exam-nav .btn-secondary:disabled,
.modal-buttons .btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-finish {
  padding: 12px 24px;
  background: var(--hr-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  margin-left: auto;
}

/* Finish confirm modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-card h2 { margin: 0 0 12px; color: #14532d; }
.modal-buttons { display: flex; gap: 12px; margin-top: 24px; }
.modal-buttons button { flex: 1; }

/* Result page */
.result-container { max-width: 720px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.result-passed { }
.result-failed { }
.result-badge-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--hr-accent);
  color: #fff;
  font-size: 60px;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(58,171,34,0.35);
}
.result-badge-fail {
  background: #dc2626;
  box-shadow: 0 8px 24px rgba(220,38,38,0.35);
}
.result-container h1 { font-size: 40px; color: #14532d; margin: 0 0 8px; }
.result-failed h1 { color: #991b1b; }
.result-score { font-size: 18px; color: #374151; margin: 0 0 32px; }
.result-cert-cta {
  background: linear-gradient(135deg, #1d3a45 0%, #6b21a8 100%);
  color: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  margin: 24px 0;
}
.result-cert-cta h3 { color: #fff; margin: 0 0 12px; font-size: 20px; }
.result-cert-id {
  font-family: var(--mono);
  font-size: 14.5px;
  opacity: 0.9;
  margin-bottom: 16px;
}
.result-cert-cta .btn-primary { background: #fff; color: var(--hr-brand); }
.result-retake-notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  border-radius: 8px;
  text-align: left;
  margin: 24px 0;
}
.result-retake-notice h3 { margin: 0 0 8px; color: #78350f; }
.result-topic-breakdown {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  text-align: left;
}
.result-topic-breakdown h3 { margin: 0 0 16px; color: #14532d; }
.topic-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.topic-name { font-size: 14.5px; color: #374151; }
.topic-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.topic-bar-fill { height: 100%; transition: width 0.6s; }
.topic-bar-good { background: var(--hr-accent); }
.topic-bar-mid { background: #f59e0b; }
.topic-bar-low { background: #dc2626; }
.topic-score { font-size: 14.5px; color: #6b7280; font-family: var(--mono); text-align: right; }

/* Certificate page */
.certificate-page { max-width: 900px; margin: 0 auto; padding: 24px; }
.certificate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.certificate-card {
  background: #fff;
  border: 3px solid var(--hr-brand);
  padding: 60px 48px;
  aspect-ratio: 1.414;   /* approximate letter landscape */
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  text-align: center;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #1d3a45, #C75B12, #1d3a45);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.certificate-header { border-bottom: 2px solid var(--hr-brand); padding-bottom: 16px; margin-bottom: 32px; }
.certificate-brand {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 1.2px;
  color: var(--hr-brand);
}
.certificate-brand-sub {
  font-size: 14.5px;
  letter-spacing: 3px;
  color: #6b7280;
  margin-top: 4px;
  text-transform: uppercase;
}
.certificate-awarded {
  font-size: 14.5px;
  color: #6b7280;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 8px 0;
}
.certificate-specialty-badge {
  display: block;
  margin: 0 auto 20px;
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(74,29,95,0.35));
}
@media print {
  .certificate-specialty-badge { width: 150px; height: 150px; }
}
.certificate-name {
  font-family: var(--display);
  font-size: 37px;
  color: #14532d;
  margin: 4px 0 16px;
  letter-spacing: 0.3px;
}
.certificate-track {
  font-size: 22px;
  color: var(--hr-brand);
  margin: 4px 0 24px;
}
.certificate-rank-badge {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(135deg, #1d3a45 0%, #6b21a8 100%);
  color: #fff;
  border-radius: 12px;
  margin: 16px 0 24px;
}
.certificate-rank-badge[data-tier="apprentice"] { background: linear-gradient(135deg, #d6dde4 0%, #8a95a3 100%); color: #2a2f36; }
.certificate-rank-badge[data-tier="grade_c"]    { background: linear-gradient(135deg, #e3b891 0%, #a3714a 100%); color: #ffffff; }
.certificate-rank-badge[data-tier="grade_b"]    { background: linear-gradient(135deg, #7dd484 0%, #16a34a 100%); color: #ffffff; }
.certificate-rank-badge[data-tier="grade_a"]    { background: linear-gradient(135deg, #16a34a 0%, #0d7d3a 100%); color: #ffffff; }
.certificate-rank-badge[data-tier="master"]     { background: linear-gradient(135deg, #6f9aa8 0%, #1d3a45 100%); color: #ffffff; }
.certificate-rank-tier {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.9px;
}
.certificate-rank-numeral {
  font-size: 14.5px;
  letter-spacing: 2px;
  opacity: 0.9;
}
.certificate-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  font-size: 14.5px;
}
.certificate-footer-label {
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.certificate-footer-value {
  color: #14532d;
  font-family: var(--mono);
  font-weight: 600;
}
.certificate-verify-note { font-size: 14.5px; color: #6b7280; }

/* Verify lookup page */
.verify-page { max-width: 640px; margin: 0 auto; padding: 24px; }
.verify-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.verify-status-valid { background: #dcfce7; }
.verify-status-expired { background: #fef3c7; }
.verify-status-revoked { background: #fee2e2; }
.verify-status-icon {
  font-size: 40px;
  font-weight: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.verify-status-valid .verify-status-icon { background: var(--hr-accent); }
.verify-status-expired .verify-status-icon { background: #f59e0b; }
.verify-status-revoked .verify-status-icon { background: #dc2626; }
.verify-status-title {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.9px;
}
.verify-status-valid .verify-status-title { color: #14532d; }
.verify-status-expired .verify-status-title { color: #78350f; }
.verify-status-revoked .verify-status-title { color: #991b1b; }
.verify-status-sub { color: #374151; font-size: 14.5px; margin-top: 2px; }
.verify-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
}
.verify-card h1 { margin: 0 0 8px; color: #14532d; font-size: 28px; }
.verify-track { color: var(--hr-brand); font-size: 18px; font-weight: 600; margin: 0 0 20px; }
.verify-rank-line { padding: 12px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; margin: 16px 0; }
.verify-rank-label { color: #6b7280; font-size: 14.5px; }
.verify-rank-value { color: var(--hr-brand); font-weight: 700; margin-left: 8px; }
.verify-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.verify-detail-label {
  color: #6b7280;
  text-transform: uppercase;
  font-size: 14.5px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.verify-detail-value {
  color: #14532d;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14.5px;
}

/* Print styles for certificate page */
@media print {
  body { background: #fff; }
  .no-print, nav, header nav, footer, .site-footer, .certificate-actions, .certificate-verify-note { display: none !important; }
  .certificate-page { padding: 0; max-width: 100%; }
  .certificate-card { border: 3px solid var(--hr-brand); box-shadow: none; page-break-inside: avoid; }
}

/* Mobile */
@media (max-width: 700px) {
  .exam-brief-grid { grid-template-columns: 1fr; }
  .buy-form-inline { flex-direction: column; }
  .certificate-card { padding: 32px 20px; }
  .certificate-name { font-size: 32px; }
  .certificate-track { font-size: 16px; }
  .certificate-footer { grid-template-columns: repeat(2, 1fr); }
  .verify-details { grid-template-columns: 1fr; }
  .topic-row { grid-template-columns: 100px 1fr 50px; }
  .exam-runner-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .exam-q-text { font-size: 17px; }
  .exam-nav { flex-direction: column; }
  .exam-nav .btn-primary, .exam-nav .btn-secondary, .exam-nav .btn-finish { width: 100%; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   FREE LEARN TRACKS — hub, per-module study guides, Study Mode flashcards
   ═════════════════════════════════════════════════════════════════════════════ */

/* Nav pill */
/* Learn Free / Shop Tools use the default nav link style for a cleaner bar */

/* Pairing banner on paid track pages */
.learn-pair-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto 8px;
  padding: 16px 24px;
  background: linear-gradient(100deg, rgba(58,171,34,0.14), rgba(77,33,127,0.14));
  border: 1px solid rgba(58,171,34,0.4);
  border-radius: 8px;
  text-decoration: none;
  color: var(--on-dark);
  transition: border-color 0.2s, transform 0.2s;
}
.learn-pair-banner:hover { border-color: var(--hr-accent); transform: translateY(-1px); }
.learn-pair-icon { font-size: 26px; line-height: 1; }
/* The banner sits on a LIGHT page background — text must be dark */
.learn-pair-text { flex: 1; font-size: 15px; color: #4a4a4a; line-height: 1.45; }
.learn-pair-text strong { color: #1d3a45; display: block; font-size: 16px; }
.learn-pair-cta { color: var(--hr-accent-dim); font-family: var(--mono); font-size: 14.5px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }

/* ── Learn hub index ──────────────────────────────────────────────────────── */
.learn-index-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 12% 8%, rgba(58,171,34,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 92%, rgba(77,33,127,0.55) 0%, transparent 55%),
    var(--bg);
  color: var(--on-dark);
  padding: 96px 40px 72px;
  overflow: hidden;
}
.learn-index-hero-inner { max-width: 1000px; margin: 0 auto; }
.learn-index-eyebrow {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 4px;
  color: var(--hr-accent); font-weight: 600; margin-bottom: 20px;
}
.learn-index-hero h1 {
  font-family: var(--display); font-size: clamp(34px, 5.28vw, 69px);
  line-height: 1.07; margin-bottom: 24px;
}
.learn-index-accent { color: var(--hr-accent); font-style: italic; }
.learn-index-sub { font-size: 20px; color: var(--on-dark-dim); max-width: 720px; line-height: 1.55; margin-bottom: 40px; }
.learn-index-stats { display: flex; gap: 56px; flex-wrap: wrap; }
.learn-index-stats > div { display: flex; flex-direction: column; }
.learn-index-stats strong { font-family: var(--display); font-size: 32px; line-height: 1.12; color: var(--hr-accent); }
.learn-index-stats span { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-dim); margin-top: 4px; }

.learn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; margin-top: 40px;
}
.learn-card {
  display: flex; gap: 16px; padding: 24px;
  background: var(--surface); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.learn-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,6,24,0.14); border-color: var(--hr-accent); }
.learn-card-icon { font-size: 30px; line-height: 1; }
.learn-card-body { flex: 1; }
.learn-card-code { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; color: var(--hr-accent-dim); font-weight: 700; }
.learn-card h3 { font-family: var(--display); font-size: 17px; line-height: 1.05;; margin: 4px 0 6px; }
.learn-card-tagline { font-size: 14.5px; color: #555; margin-bottom: 12px; line-height: 1.4; }
.learn-card-meta { font-family: var(--mono); font-size: 14.5px; color: #666; margin-bottom: 14px; }
.learn-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.learn-card-study { color: var(--hr-accent-dim); font-weight: 800; font-size: 14.5px; }
.learn-card-tag { font-family: var(--mono); font-size: 14.5px; letter-spacing: 1px; text-transform: uppercase; color: #666; border: 1px solid #ddd; border-radius: 20px; padding: 3px 10px; }
.learn-card-tag-live { color: var(--hr-accent-dim); border-color: rgba(58,171,34,0.5); background: rgba(58,171,34,0.08); }

/* ── Per-module study guide ───────────────────────────────────────────────── */
.learn-hero {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  max-width: 1320px; margin: 0 auto; padding: 56px 40px 32px;
}
.learn-hero-badge { flex-shrink: 0; }
.learn-hero-body { flex: 1; min-width: 280px; }
.learn-hero-eyebrow { font-family: var(--mono); font-size: 14.5px; letter-spacing: 3px; color: var(--hr-accent-dim); font-weight: 700; margin-bottom: 10px; }
.learn-hero h1 { font-family: var(--display); font-size: clamp(26px, 3.96vw, 48px); line-height: 1.1; margin-bottom: 8px; }
.learn-hero-tagline { font-size: 18px; color: #555; margin-bottom: 18px; }
.learn-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.learn-hero-stats span { font-size: 14.5px; color: #666; }
.learn-hero-stats strong { font-family: var(--display); font-size: 15px; color: var(--hr-accent-dim); margin-right: 4px; }

.learn-intro { font-size: 18px; line-height: 1.6; color: #444; max-width: 820px; }
.learn-sub { color: #666; margin-bottom: 18px; }
.learn-outcomes { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .learn-outcomes { columns: 1; } }

.learn-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.learn-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 24px; text-decoration: none;
  background: #f3f0f8; color: var(--hr-brand); font-weight: 700; font-size: 14.5px;
  border: 1px solid rgba(77,33,127,0.15); transition: background 0.15s, border-color 0.15s;
}
.learn-chip:hover { background: #ece5f5; border-color: var(--hr-brand); }
.learn-chip-n { font-family: var(--mono); font-size: 14.5px; background: var(--hr-brand); color: #fff; border-radius: 20px; padding: 1px 7px; }

.learn-skill { max-width: 1320px; margin: 0 auto; padding: 28px 40px; border-top: 1px solid #eee; scroll-margin-top: 90px; }
.learn-skill-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.learn-skill-head h3 { font-family: var(--display); font-size: 20px; margin: 0; }
.learn-skill-count { font-family: var(--mono); font-size: 14.5px; color: var(--hr-accent-dim); letter-spacing: 1px; }
.learn-concepts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.learn-concepts li {
  position: relative; padding: 14px 16px 14px 44px; background: #faf9fc;
  border-left: 3px solid var(--hr-accent); border-radius: 6px; line-height: 1.55; color: #333;
}
.learn-concepts li::before {
  content: '✓'; position: absolute; left: 16px; top: 14px;
  color: var(--hr-accent); font-weight: 900;
}

/* Authored lesson prose inside each skill area */
.learn-lesson { max-width: 880px; }
.learn-lesson-intro { font-size: 18px; line-height: 1.65; color: #1d3a45; font-weight: 500; margin: 0 0 16px; }
.learn-lesson h4 { font-family: var(--display); font-size: 14.5px; margin: 26px 0 10px; color: #1a1a1a; }
.learn-lesson p { line-height: 1.7; color: #333; margin: 0 0 14px; }
.learn-lesson ul { margin: 0 0 16px; padding-left: 22px; }
.learn-lesson ul li { line-height: 1.65; color: #333; margin-bottom: 7px; }
.learn-protip {
  background: #f1f8ee; border-left: 3px solid var(--hr-accent); border-radius: 6px;
  padding: 14px 18px; margin: 18px 0 4px; line-height: 1.6; color: #2b3d26; max-width: 880px;
}
.learn-protip-label { font-weight: 800; color: var(--hr-accent-dim); margin-right: 6px; white-space: nowrap; }
.learn-specs { margin: 20px 0; max-width: 880px; }
.learn-specs-title, .learn-procedure-title, .learn-mistakes-title, .learn-check-title {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--hr-brand); font-weight: 700; margin-bottom: 10px;
}
.learn-specs-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.learn-specs table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.learn-specs th {
  text-align: left; font-family: var(--mono); font-size: 14.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #fff; background: var(--hr-brand); padding: 9px 14px;
}
.learn-specs td { padding: 9px 14px; border-bottom: 1px solid #f2eef8; line-height: 1.5; color: #333; }
.learn-specs tr:last-child td { border-bottom: 0; }
.learn-specs tr:nth-child(even) td { background: #faf9fc; }
.learn-specs td:first-child { font-weight: 600; color: #222; }
.learn-specs-note { font-size: 14.5px; color: #666; margin: 8px 0 0; }
.learn-procedure {
  background: #f8f6fb; border: 1px solid #e8e2f2; border-radius: 10px;
  padding: 16px 20px; margin: 20px 0; max-width: 880px;
}
.learn-procedure ol { margin: 0; padding-left: 22px; }
.learn-procedure ol li { line-height: 1.65; color: #333; margin-bottom: 9px; padding-left: 4px; }
.learn-procedure ol li::marker { font-weight: 800; color: var(--hr-brand); }
.learn-mistakes {
  background: #fdf6f0; border-left: 3px solid #d97b29; border-radius: 6px;
  padding: 14px 18px; margin: 20px 0; max-width: 880px;
}
.learn-mistakes-title { color: #b3591a; }
.learn-mistakes ul { margin: 0; padding-left: 20px; }
.learn-mistakes ul li { line-height: 1.6; color: #4a3423; margin-bottom: 7px; }
.learn-check { margin: 22px 0 4px; max-width: 880px; }
.learn-check-q {
  border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 8px;
  background: #fff;
}
.learn-check-q summary {
  cursor: pointer; font-weight: 700; padding: 12px 16px; color: #2a2a2a;
  line-height: 1.5; list-style-position: inside;
}
.learn-check-q summary:hover { color: var(--hr-brand); }
.learn-check-q[open] summary { border-bottom: 1px solid var(--line-soft); }
.learn-check-q p { padding: 12px 16px; margin: 0; line-height: 1.65; color: #333; }
.learn-takeaways { margin-top: 26px; }
.learn-takeaways-head {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--hr-accent-dim); font-weight: 700; margin-bottom: 12px;
}

.learn-study-launch { padding-top: 28px; padding-bottom: 28px; }
.learn-study-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--hr-brand-dark), var(--bg));
  border: 1px solid var(--line-bright); border-radius: 12px; padding: 28px 32px; color: var(--on-dark);
}
.learn-study-card h2 { font-family: var(--display); font-size: 21px; margin: 0 0 6px; color: #fff; }
.learn-study-card p { color: var(--on-dark-dim); margin: 0; max-width: 560px; }

/* Closing CTA */
.learn-cta {
  max-width: 1320px; margin: 40px auto; padding: 0 40px;
}
.learn-cta-body {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(58,171,34,0.2), transparent 60%),
    var(--hr-brand-dark);
  border-radius: 14px; padding: 48px 44px; color: var(--on-dark);
}
.learn-cta-eyebrow { font-family: var(--mono); font-size: 14.5px; letter-spacing: 3px; color: var(--hr-accent); font-weight: 700; margin-bottom: 12px; }
.learn-cta-body h2 { font-family: var(--display); font-size: clamp(20px, 2.64vw, 30px); color: #fff; margin: 0 0 12px; }
.learn-cta-body p { color: var(--on-dark-dim); max-width: 640px; line-height: 1.55; margin-bottom: 24px; }
.learn-cta-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.learn-cta-secondary { color: var(--hr-accent); font-weight: 700; text-decoration: none; }
.learn-cta-secondary:hover { text-decoration: underline; }
.learn-cta-note { font-size: 14.5px; color: var(--on-dark-dim); margin-top: 16px !important; margin-bottom: 0 !important; }

/* ── Study Mode overlay + flashcards ──────────────────────────────────────── */
.learn-study-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(9, 4, 18, 0.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.learn-study-overlay[hidden] { display: none; }
.learn-study-inner {
  width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 18px;
}
.learn-study-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.learn-study-title { font-family: var(--display); font-size: 15px; color: #fff; letter-spacing: 0.3px; }
.learn-study-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.learn-study-btn {
  background: rgba(255,255,255,0.08); color: var(--on-dark); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; padding: 8px 14px; font-family: var(--body); font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: background 0.15s;
}
.learn-study-btn:hover { background: rgba(255,255,255,0.16); }
#learn-topic-filter {
  background: rgba(255,255,255,0.08); color: var(--on-dark); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; padding: 8px 12px; font-family: var(--body); font-size: 14.5px; max-width: 220px;
}
#learn-topic-filter option { color: #111; }

.learn-study-progress { display: flex; align-items: center; gap: 14px; }
.learn-study-progress-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.12); border-radius: 20px; overflow: hidden; }
#learn-progress-fill { display: block; height: 100%; width: 0%; background: var(--hr-accent); transition: width 0.3s; }
.learn-study-progress-text { font-family: var(--mono); font-size: 14.5px; color: var(--on-dark-dim); white-space: nowrap; }

.learn-flashcard {
  position: relative; min-height: 300px; cursor: pointer; perspective: 1400px; outline: none;
}
.learn-flashcard-face {
  position: absolute; inset: 0; border-radius: 14px; padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.5s; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.learn-flashcard-front {
  background: linear-gradient(150deg, #ffffff, #f0fdf4); color: #222; transform: rotateY(0deg);
}
.learn-flashcard-back {
  background: linear-gradient(150deg, var(--hr-brand), var(--hr-brand-dark)); color: #fff; transform: rotateY(180deg);
}
.learn-flashcard.is-flipped .learn-flashcard-front { transform: rotateY(-180deg); }
.learn-flashcard.is-flipped .learn-flashcard-back { transform: rotateY(0deg); }
.learn-flashcard-topic { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--hr-accent-dim); margin-bottom: 18px; }
.learn-flashcard-back .learn-flashcard-topic { color: var(--hr-accent-light); }
.learn-flashcard-prompt { font-family: var(--display); font-size: 20px; color: #333; margin-bottom: 16px; }
.learn-flashcard-hint { font-size: 14.5px; color: #666; }
.learn-flashcard-text { font-size: 20px; line-height: 1.55; max-width: 560px; }

.learn-study-nav { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.learn-study-counter { text-align: center; font-family: var(--mono); font-size: 14.5px; color: var(--on-dark-dim); }

@media (max-width: 768px) {
  .learn-index-hero { padding: 64px 20px 48px; }
  .learn-index-stats { gap: 32px; }
  .learn-hero { padding: 40px 20px 24px; }
  .learn-skill { padding: 24px 20px; }
  .learn-cta { padding: 0 20px; }
  .learn-cta-body { padding: 36px 24px; }
  .learn-pair-banner { margin: 0 20px 8px; flex-wrap: wrap; }
  .learn-flashcard-prompt { font-size: 24px; }
  .learn-flashcard-text { font-size: 18px; }
  .learn-study-card { padding: 24px; }
}

/* ── Readiness tracker (module page) ──────────────────────────────────────── */
.learn-readiness-wrap { padding-top: 24px; padding-bottom: 24px; }
.learn-readiness {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--hr-brand-dark), var(--bg));
  border: 1px solid var(--line-bright); border-radius: 14px; padding: 28px 32px; color: var(--on-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.learn-readiness.is-ready {
  border-color: var(--hr-accent);
  box-shadow: 0 0 0 1px var(--hr-accent), 0 18px 46px rgba(58,171,34,0.28);
  background: linear-gradient(120deg, #143a10, var(--bg));
}
.learn-readiness-ring {
  --pct: 0;
  flex-shrink: 0; width: 128px; height: 128px; border-radius: 50%;
  background: conic-gradient(var(--hr-accent) calc(var(--pct) * 1%), rgba(255,255,255,0.10) 0);
  display: grid; place-items: center; transition: background 0.5s ease;
}
.learn-readiness-ring-inner {
  width: 100px; height: 100px; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; text-align: center;
}
.is-ready .learn-readiness-ring-inner { background: #0c2408; }
.learn-readiness-pct { font-family: var(--display); font-size: 26px; line-height: 1.12; color: #fff; }
.learn-readiness-pct small { font-size: 18px; color: var(--hr-accent-light); margin-left: 1px; }
.learn-readiness-ring-label { font-family: var(--mono); font-size: 14.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-dim); margin-top: 2px; }
.learn-readiness-body { flex: 1; min-width: 280px; }
.learn-readiness-status {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 3px; font-weight: 700;
  color: var(--hr-accent); margin-bottom: 6px;
}
.is-ready .learn-readiness-status { color: var(--hr-accent-light); }
.learn-readiness-body h2 { font-family: var(--display); font-size: 20px; color: #fff; margin: 0 0 8px; }
.learn-readiness-body p { color: var(--on-dark-dim); margin: 0 0 16px; line-height: 1.5; max-width: 620px; }
.learn-readiness-body p strong { color: var(--on-dark); }
.learn-readiness-metrics { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; }
.learn-sync-note { font-size: 14.5px; color: #666; margin: -8px 0 18px; }
.learn-sync-note a { color: var(--hr-brand); font-weight: 700; }
.learn-sync-on { color: var(--hr-accent-dim); font-weight: 700; }

/* Course photos — half-column split inside a skill area, alternating sides */
.learn-skill-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.learn-skill.media-left .learn-skill-photo { order: -1; }
.learn-skill-photo {
  margin: 0;
  position: sticky;
  top: 100px;
}
.learn-skill-photo picture, .learn-skill-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(23, 10, 38, 0.18);
}
.learn-skill-photo figcaption {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.5px;
  color: #666;
  margin-top: 10px;
}
.learn-skill.has-media .learn-lesson { max-width: none; }
@media (max-width: 860px) {
  .learn-skill-split { grid-template-columns: 1fr; gap: 20px; }
  .learn-skill.media-left .learn-skill-photo { order: 0; }
  .learn-skill-photo { position: static; }
}
.lr-metric { font-size: 14.5px; color: var(--on-dark-dim); display: inline-flex; align-items: baseline; gap: 6px; }
.lr-metric strong { font-family: var(--display); font-size: 16px; }
.lr-got strong { color: var(--hr-accent); }
.lr-review strong { color: #f0b429; }
.lr-left strong { color: var(--on-dark-dim); }
.learn-readiness-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.learn-ready-cta { background: var(--hr-accent) !important; }
.learn-ready-cta:hover { background: var(--hr-accent-light) !important; }
#learn-study-start.is-secondary {
  background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,0.28);
}
#learn-study-start.is-secondary:hover { background: rgba(255,255,255,0.10); }
.learn-reset-btn {
  background: none; border: 0; color: var(--on-dark-dim); font-size: 14.5px; text-decoration: underline;
  cursor: pointer; padding: 6px;
}
.learn-reset-btn:hover { color: var(--on-dark); }

/* Study Mode: got/review button variants + card state */
.learn-got-btn { background: var(--hr-accent) !important; }
.learn-got-btn:hover { background: var(--hr-accent-light) !important; }
.learn-review-btn { border-color: rgba(240,180,41,0.6) !important; color: #f0b429 !important; }
.learn-review-btn:hover { background: rgba(240,180,41,0.14) !important; }
.learn-flashcard.card-got .learn-flashcard-front { box-shadow: 0 0 0 2px var(--hr-accent), 0 20px 50px rgba(0,0,0,0.4); }
.learn-flashcard.card-flagged .learn-flashcard-front { box-shadow: 0 0 0 2px #f0b429, 0 20px 50px rgba(0,0,0,0.4); }

/* Closing CTA "ready" glow */
.is-ready-glow {
  box-shadow: 0 0 0 2px var(--hr-accent), 0 14px 34px rgba(58,171,34,0.4) !important;
  animation: learnReadyPulse 2s ease-in-out infinite;
}
@keyframes learnReadyPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--hr-accent), 0 14px 34px rgba(58,171,34,0.30); }
  50%      { box-shadow: 0 0 0 2px var(--hr-accent), 0 14px 40px rgba(58,171,34,0.55); }
}

/* ── Hub: per-card progress + overall banner ──────────────────────────────── */
.learn-card.is-ready { border-color: var(--hr-accent); box-shadow: 0 0 0 1px var(--hr-accent), 0 14px 30px rgba(58,171,34,0.18); }
.learn-card-ready {
  display: inline-block; font-family: var(--body); font-size: 14.5px; font-weight: 800;
  color: #fff; background: var(--hr-accent); border-radius: 20px; padding: 1px 9px; letter-spacing: 0.3px; margin-left: 6px;
  vertical-align: middle;
}
.learn-card-progress { margin: 0 0 14px; }
.learn-card-progress-bar { height: 6px; background: #eee; border-radius: 20px; overflow: hidden; margin-bottom: 5px; }
.learn-card-progress-bar span { display: block; height: 100%; width: 0%; background: var(--hr-accent); border-radius: 20px; transition: width 0.4s; }
.learn-card-progress-text { font-family: var(--mono); font-size: 14.5px; color: var(--hr-accent-dim); }
.learn-overall {
  display: flex; align-items: center; gap: 12px; margin: 0 0 28px;
  background: linear-gradient(100deg, rgba(58,171,34,0.12), rgba(77,33,127,0.10));
  border: 1px solid rgba(58,171,34,0.4); border-radius: 10px; padding: 14px 20px;
}
.learn-overall-icon { font-size: 22px; }
.learn-overall-text { font-size: 15px; color: #333; line-height: 1.45; }
.learn-overall-text strong { color: var(--hr-accent-dim); }

@media (max-width: 640px) {
  .learn-readiness { padding: 22px; gap: 20px; }
  .learn-readiness-ring { width: 108px; height: 108px; }
  .learn-readiness-ring-inner { width: 84px; height: 84px; }
  .learn-readiness-pct { font-size: 32px; }
  .learn-readiness-actions { width: 100%; }
  .learn-readiness-actions .btn-large { width: 100%; text-align: center; }
}

.pro-pricing { margin: 8px 0 40px; }
.pro-pricing-lead { font-size: 17px; max-width: 62ch; }
.pro-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.pro-price { border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px; background: #fff; }
.pro-price-label { font-family: var(--mono); font-size: 14.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #3d3d3d; }
.pro-price-amount { font-family: var(--display); font-size: 34px; margin: 6px 0 8px; color: #141414; }
.pro-price-amount span { font-size: 16px; }
.pro-price p { font-size: 16px; line-height: 1.55; color: #333; margin: 0; }
.site-nav a[href^="tel:"] { white-space: nowrap; }
.nav-cta-short { display: none; }
@media (max-width: 420px) {
  .site-nav .brand-text em { display: none; }
  .site-nav .nav-cta-num { display: none; }
  .site-nav .nav-cta-short { display: inline; }
  .hero-search button { padding: 14px 16px; white-space: nowrap; }
  .hero-search input { min-width: 0; }
}
/* Contrast on dark bands and tinted badges. */
.hero-eyebrow, .hero-accent, .hero strong { color: var(--hr-accent-light); }
.repair-meta-label { color: #5f5f5f; }
.badge-type-painting { color: #a33a00; }
.badge-type-electrical { color: #8a4b00; }
.track-card-code { color: #15803d; }
/* No sideways scroll. Wide tables wrap their cells instead. */
.repair-table-wrap, .learn-specs-scroll, .admin-panel-wide, .exam-progress-strip { overflow-x: visible; }
.repair-table-wrap table, .learn-specs-scroll table { width: 100%; table-layout: fixed; }
.repair-table-wrap th, .repair-table-wrap td, .learn-specs-scroll th, .learn-specs-scroll td { overflow-wrap: anywhere; white-space: normal; }
.news-code { overflow-x: visible; white-space: pre-wrap; overflow-wrap: anywhere; }
html, body { overflow-x: clip; }

/* cf-a11y:start */
/* ============================================================
   Clickflame accessibility layer
   Managed block. Edit _shared/a11y/a11y.css and re-run
   _shared/a11y/apply_a11y.py. Do not hand edit the copies.

   Design rule: nothing in here is visible to a mouse user who
   has not asked for it. No overlay, no toolbar, no JavaScript.
   ============================================================ */

/* --- Skip link: off screen until a keyboard user focuses it --- */
.cf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2147483000;
  display: inline-block;
  padding: .75rem 1.15rem;
  background: #10131a;
  color: #fff;
  font: 600 1rem/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: underline;
  border-radius: 0 0 .4rem 0;
}
.cf-skip:focus {
  left: 0;
}

/* --- Text for screen readers only --- */
.cf-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Focus ring.
   :focus-visible means mouse and touch users never see this.
   Set --cf-focus in your own stylesheet to match the brand.
   The default #1a73e8 clears 3:1 against both white and black. --- */
:focus-visible {
  outline: 3px solid var(--cf-focus, #1a73e8) !important;
  outline-offset: 2px !important;
}
@supports not selector(:focus-visible) {
  :focus {
    outline: 3px solid var(--cf-focus, #1a73e8) !important;
    outline-offset: 2px !important;
  }
}

/* A programmatic focus target should not draw a ring. */
[tabindex="-1"]:focus {
  outline: none !important;
}

/* Focus must not be swallowed by a sticky header. */
:target,
[tabindex="-1"] {
  scroll-margin-top: 6rem;
}

/* --- Respect a stated preference for less motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Windows High Contrast / forced colours --- */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight !important;
  }
  .cf-skip {
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
  }
}

/* --- Stronger ring for people who asked for more contrast --- */
@media (prefers-contrast: more) {
  :focus-visible {
    outline-width: 4px !important;
  }
}
/* cf-a11y:end */
