/* ─── HG Stage 1 Component Styles ───────────────────────────
   Loaded after the main theme stylesheet.
   Populated in Batch 3 with trust strip, card, and
   section component styles.
   ──────────────────────────────────────────────────────────── */

/* ─── Trust Strip v2 — Batch 2 ──────────────────────────────
   Replaces the hardcoded .hg-trust-bar with an editable,
   editorial version. Old .hg-trust-bar styles in style.css
   are preserved for safety — v2 modifier overrides them.
   ──────────────────────────────────────────────────────────── */

.hg-trust-bar--v2 {
  background-color: var(--hg-color-surface);
  border-top: 1px solid var(--hg-color-border);
  border-bottom: 1px solid var(--hg-color-border);
  padding: 1.5rem 0 1.75rem;
  /* Push next section away cleanly */
  margin-bottom: 2.5rem;
}

/* Horizontal scroll rail — scrolls on mobile, distributes on desktop */
.hg-trust-rail {
  display: flex;
  align-items: flex-start;
  gap: 1rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Bottom padding creates breathing room before support line */
  padding-bottom: 1.25rem;
  margin-bottom: 0;
}
.hg-trust-rail::-webkit-scrollbar { display: none; }

.hg-trust-item-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 170px;
}

.hg-trust-icon-v2 {
  flex-shrink: 0;
  color: var(--hg-color-primary);
  margin-top: 2px;
}

.hg-trust-icon-v2 svg {
  display: block;
}

.hg-trust-text-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hg-trust-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--hg-color-text);
  line-height: 1.3;
}

.hg-trust-explanation {
  font-size: 0.76rem;
  color: var(--hg-color-text-muted);
  line-height: 1.5;
}

/* Support line — full width, separated by border from items above */
.hg-trust-support {
  display: block;
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--hg-color-text-muted);
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 1px solid var(--hg-color-border);
}

/* Desktop — distribute items evenly, no scroll needed */
@media (min-width: 900px) {
  .hg-trust-rail {
    justify-content: space-between;
    overflow-x: visible;
    flex-wrap: nowrap;
    /* Remove bottom padding — support line border provides separation */
    padding-bottom: 1.25rem;
  }
  .hg-trust-item-v2 {
    flex-shrink: 1;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   BATCH 3 — Component System
   Works alongside existing style.css rules.
   Uses both existing --hg-purple/surface/border variables
   and new --hg-color-* Stage 1 variables.
   Overrides are surgical — only what needs improving.
   ═══════════════════════════════════════════════════════════ */


/* ─── Section rhythm ─────────────────────────────────────────
   Existing .hg-section uses padding:72px 0.
   We increase this slightly and ensure consistent
   separation between all homepage sections.
   ──────────────────────────────────────────────────────────── */

.hg-section {
  padding: 80px 0;
}

.hg-section + .hg-section,
.hg-section + .hg-section-alt,
.hg-section-alt + .hg-section,
.hg-section-alt + .hg-section-alt {
  /* Sections already have their own padding — no extra margin needed.
     This rule exists as a hook for future spacing adjustments. */
}

/* Section headings — tighten letter-spacing on smaller screens */
.hg-section-head h2 {
  letter-spacing: -0.025em;
}

@media (max-width: 767px) {
  .hg-section {
    padding: 52px 0;
  }
  .hg-section-head {
    margin-bottom: 28px;
  }
  .hg-section-head h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
}


/* ─── Quick actions strip ─────────────────────────────────────
   Currently sits with margin-top:-32px pulling it up into
   the hero. Keep that behaviour but improve item spacing
   and mobile collapse.
   ──────────────────────────────────────────────────────────── */

.hg-quick-strip {
  /* Add bottom border to separate from next section */
  border-bottom: 1px solid var(--hg-border);
  margin-bottom: 0;
}

.hg-quick-item {
  padding: 20px 10px;
  gap: 6px;
}

.hg-quick-item strong {
  font-size: 13px;
  line-height: 1.3;
}

.hg-quick-item span {
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .hg-quick-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .hg-quick-item {
    padding: 16px 8px;
    border-right: 1px solid var(--hg-border);
    border-bottom: 1px solid var(--hg-border);
  }
  .hg-quick-item:nth-child(3n) {
    border-right: 0;
  }
  .hg-quick-item:nth-last-child(-n+3) {
    border-bottom: 0;
  }
}


/* ─── Card grid improvements ─────────────────────────────────
   Existing cards use border-radius:16px (--hg-radius).
   We keep that but refine padding, heading size, and
   the card-link to feel less promotional.
   ──────────────────────────────────────────────────────────── */

.hg-card {
  /* Slightly more generous padding */
  padding: 28px 28px 24px;
  /* Softer shadow */
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow var(--hg-transition-base), transform var(--hg-transition-base);
}

.hg-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.hg-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hg-card p {
  font-size: 15px;
  line-height: 1.65;
}

/* Card link — text link style, not button style */
.hg-card-link {
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
  color: var(--hg-color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--hg-transition-base), color var(--hg-transition-base);
}

.hg-card-link:hover {
  color: var(--hg-color-primary-hover);
  border-bottom-color: var(--hg-color-primary-hover);
  text-decoration: none;
}

/* Remove the ::after arrow added by style.css — we add our own */
.hg-card-link::after {
  content: ' →';
  transition: transform var(--hg-transition-base);
  display: inline-block;
}

.hg-card-link:hover::after {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .hg-card {
    padding: 22px 20px 20px;
  }
}


/* ─── Funnel cards ────────────────────────────────────────────
   Refine border radius and internal spacing.
   ──────────────────────────────────────────────────────────── */

.hg-funnel-card {
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow var(--hg-transition-base);
}

.hg-funnel-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.hg-funnel-top {
  padding: 24px 24px 0;
}

.hg-funnel-embed {
  padding: 0 24px 24px;
}

.hg-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}


/* ─── Value strip ─────────────────────────────────────────────
   Deep purple band. Improve item readability and
   mobile column collapse.
   ──────────────────────────────────────────────────────────── */

.hg-value-strip {
  padding: 56px 0;
}

.hg-value-item strong {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.hg-value-item span {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
  .hg-value-strip {
    padding: 40px 0;
  }
  .hg-value-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hg-value-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}


/* ─── Popular questions ──────────────────────────────────────
   Cards that trigger Thomas queries. Improve focus state
   and mobile sizing.
   ──────────────────────────────────────────────────────────── */

.hg-popular-card {
  padding: 18px 20px;
  border-radius: 12px;
  gap: 12px;
}

.hg-popular-card strong {
  font-size: 14px;
  line-height: 1.45;
}

.hg-popular-card span {
  font-size: 12px;
  white-space: normal;
  text-align: right;
  min-width: 100px;
}

@media (max-width: 767px) {
  .hg-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .hg-popular-card span {
    display: none; /* Hide subtext on mobile — question label is enough */
  }
}


/* ─── Step cards (How It Works) ──────────────────────────────
   Three-step grid. Refine number badge and card padding.
   ──────────────────────────────────────────────────────────── */

.hg-step-card {
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.hg-step-num {
  width: 44px;
  height: 44px;
  font-size: 18px;
  border-radius: 12px;
  margin-bottom: 14px;
  /* Use primary color instead of purple for Stage 1 system alignment */
  background: var(--hg-color-primary);
}

.hg-step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hg-step-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hg-muted);
}

@media (max-width: 767px) {
  .hg-step-card {
    padding: 22px 20px;
    /* On mobile: horizontal layout with number left, content right */
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .hg-step-num {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-top: 2px;
  }
}


/* ─── Email capture section ──────────────────────────────────
   Currently full-bleed purple with gold button.
   Reduce visual weight — it should support, not dominate.
   ──────────────────────────────────────────────────────────── */

.hg-section-purple {
  padding: 64px 0;
}

.hg-email-capture {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hg-email-heading {
  font-size: 20px !important;
  font-weight: 700;
  margin-bottom: 8px !important;
}

@media (max-width: 767px) {
  .hg-section-purple {
    padding: 48px 0;
  }
  .hg-email-row {
    flex-direction: column;
    gap: 10px;
  }
  .hg-email-input,
  .hg-email-btn {
    width: 100%;
  }
}


/* ─── Section head improvements ─────────────────────────────
   Tighten the section subtitle and add more breathing
   room below section heads.
   ──────────────────────────────────────────────────────────── */

.hg-section-sub {
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
}

.hg-section-head {
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .hg-section-sub {
    font-size: 15px;
  }
}


/* ─── Grid gap improvements ──────────────────────────────────
   Existing grids use gap:20px. Increase to give cards
   more breathing room.
   ──────────────────────────────────────────────────────────── */

.hg-grid-3 {
  gap: 24px;
}

.hg-grid-2 {
  gap: 16px;
}

@media (max-width: 1024px) {
  .hg-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .hg-grid-3,
  .hg-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}


/* ─── Container padding on mobile ────────────────────────────
   The existing .hg-container has max-width:1240px but
   may lack sufficient side padding on small screens.
   ──────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .hg-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* ─── Typography refinements ─────────────────────────────────
   Applied globally to improve readability across all
   homepage sections without touching per-component rules.
   ──────────────────────────────────────────────────────────── */

/* Slightly looser body text tracking */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure strong/b elements inside muted contexts are readable */
.hg-muted strong,
[style*="color:var(--hg-muted)"] strong {
  color: var(--hg-text);
}



/* ─── Footer trust section — Batch 4 ────────────────────────
   Sits between the main footer grid and the copyright bar.
   Trust links | Editorial note | Thomas prompt
   ──────────────────────────────────────────────────────────── */

.hg-footer-trust {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

/* Trust links — horizontal inline list */
.hg-footer-trust__links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
}

.hg-footer-trust__links li {
  margin: 0;
  padding: 0;
}

.hg-footer-trust__links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--hg-transition-base);
  white-space: nowrap;
}

.hg-footer-trust__links a:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

/* Editorial note */
.hg-footer-trust__note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 1rem;
}

/* Thomas prompt link */
.hg-footer-trust__thomas {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hg-gold);
  text-decoration: none;
  transition: opacity var(--hg-transition-base);
}

.hg-footer-trust__thomas:hover {
  opacity: 0.8;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hg-footer-trust {
    padding: 1.5rem 0 1rem;
  }
  .hg-footer-trust__links {
    gap: 0.5rem 1rem;
  }
  .hg-footer-trust__links a {
    font-size: 0.78rem;
  }
}


/* ─── Brand Frame — v5.12 ────────────────────────────────────
   Three-column proof-point block immediately below the hero.
   Light background, calm, scannable in one pass.
   ──────────────────────────────────────────────────────────── */

.hg-brand-frame {
  background-color: var(--hg-color-white);
  border-bottom: 1px solid var(--hg-color-border);
  padding: 56px 0 52px;
}

/* Heading + intro paragraph */
.hg-brand-frame__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.hg-brand-frame__heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hg-text);
  margin: 0 0 14px;
}

.hg-brand-frame__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hg-muted);
  margin: 0;
}

/* Three-column card grid */
.hg-brand-frame__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Individual card */
.hg-brand-frame__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--hg-color-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 12px;
}

/* Icon */
.hg-brand-frame__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--hg-color-primary);
  margin-bottom: 2px;
}

.hg-brand-frame__icon svg {
  display: block;
  flex-shrink: 0;
}

/* Card heading */
.hg-brand-frame__card-heading {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hg-text);
  margin: 0;
}

/* Card body */
.hg-brand-frame__card-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hg-muted);
  margin: 0;
}

/* Tablet — 2 columns */
@media (max-width: 900px) {
  .hg-brand-frame__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile — single column, reduced padding */
@media (max-width: 600px) {
  .hg-brand-frame {
    padding: 40px 0 36px;
  }
  .hg-brand-frame__head {
    margin-bottom: 28px;
  }
  .hg-brand-frame__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hg-brand-frame__card {
    padding: 20px 18px;
    /* Horizontal layout on mobile: icon + text side by side */
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }
  .hg-brand-frame__icon {
    flex-shrink: 0;
    margin-top: 2px;
    margin-bottom: 0;
  }
  .hg-brand-frame__card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}


/* ═══════════════════════════════════════════════════════════
   STAGE 2 COMPONENTS — v5.13
   Thomas Feature Section, Starting Points Grid, Editorial Picks
   ═══════════════════════════════════════════════════════════ */


/* ─── Thomas Feature Section ─────────────────────────────────
   Two-column: left = context + prompts, right = input + sample
   ──────────────────────────────────────────────────────────── */

.hg-thomas-feature {
  background-color: var(--hg-color-surface);
  border-top: 1px solid var(--hg-color-border);
  border-bottom: 1px solid var(--hg-color-border);
}

.hg-thomas-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Left column */
.hg-thomas-feature__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-color-primary);
  margin-bottom: 12px;
}

.hg-thomas-feature__heading {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hg-text);
  margin: 0 0 14px;
}

.hg-thomas-feature__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--hg-muted);
  margin: 0 0 28px;
}

/* Prompt buttons */
.hg-thomas-feature__prompts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hg-thomas-feature__prompt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--hg-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--hg-font);
  transition: border-color var(--hg-transition-base), background var(--hg-transition-base);
  width: 100%;
}

.hg-thomas-feature__prompt-btn:hover {
  border-color: var(--hg-color-primary);
  background: var(--hg-color-white);
}

.hg-thomas-feature__prompt-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--hg-text);
  line-height: 1.4;
}

.hg-thomas-feature__prompt-arrow {
  font-size: 16px;
  color: var(--hg-color-primary);
  flex-shrink: 0;
  transition: transform var(--hg-transition-base);
}

.hg-thomas-feature__prompt-btn:hover .hg-thomas-feature__prompt-arrow {
  transform: translateX(3px);
}

/* Right column */
.hg-thomas-feature__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hg-thomas-feature__input-wrap {
  background: var(--hg-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 14px;
  padding: 20px;
}

/* Sample answer card */
.hg-thomas-feature__sample {
  background: var(--hg-color-white);
  border: 1px solid var(--hg-color-border);
  border-left: 3px solid var(--hg-color-primary);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hg-thomas-feature__sample-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-color-primary);
}

.hg-thomas-feature__sample-q {
  font-size: 13px;
  color: var(--hg-text);
  margin: 0;
}

.hg-thomas-feature__sample-a {
  font-size: 13px;
  line-height: 1.7;
  color: var(--hg-muted);
}

.hg-thomas-feature__sample-a p {
  margin: 0;
}

.hg-thomas-feature__disclosure {
  font-size: 0.75rem;
  color: var(--hg-muted);
  margin: 0;
  text-align: center;
  opacity: 0.75;
}

/* Mobile — single column */
@media (max-width: 900px) {
  .hg-thomas-feature__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hg-thomas-feature__input-wrap {
    padding: 14px;
  }
}


/* ─── Starting Points Grid ───────────────────────────────────
   Four cards: 4-col desktop, 2-col tablet, 1-col mobile
   ──────────────────────────────────────────────────────────── */

.hg-starting-points__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hg-starting-points__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--hg-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 12px;
  transition: box-shadow var(--hg-transition-base);
}

.hg-starting-points__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hg-starting-points__icon {
  color: var(--hg-color-primary);
  display: block;
  margin-bottom: 4px;
}

.hg-starting-points__icon svg {
  display: block;
}

.hg-starting-points__heading {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hg-text);
  margin: 0;
}

.hg-starting-points__body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hg-muted);
  margin: 0;
  flex-grow: 1;
}

.hg-starting-points__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--hg-color-primary);
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
  transition: color var(--hg-transition-base);
}

.hg-starting-points__link:hover {
  color: var(--hg-color-primary-hover);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hg-starting-points__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hg-starting-points__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hg-starting-points__card {
    /* Horizontal layout on small mobile */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .hg-starting-points__icon {
    margin-top: 2px;
    margin-bottom: 0;
  }
}


/* ─── Editorial Picks ────────────────────────────────────────
   Curated cards with best-for tag, rationale, text link CTA
   ──────────────────────────────────────────────────────────── */

.hg-editorial-picks {
  background-color: var(--hg-color-white);
}

.hg-editorial-picks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 4 picks: use auto-fill so 4th card aligns naturally */
.hg-editorial-picks__grid:has(> :nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}

.hg-editorial-picks__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border: 1px solid var(--hg-color-border);
  border-radius: 12px;
  background: var(--hg-color-surface);
  transition: box-shadow var(--hg-transition-base);
}

.hg-editorial-picks__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* Best for tag */
.hg-editorial-picks__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hg-color-accent);
  margin-bottom: 2px;
}

.hg-editorial-picks__heading {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hg-text);
  margin: 0;
}

.hg-editorial-picks__rationale {
  font-size: 13px;
  line-height: 1.65;
  color: var(--hg-muted);
  margin: 0;
  flex-grow: 1;
}

.hg-editorial-picks__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--hg-color-primary);
  text-decoration: none;
  margin-top: 4px;
  transition: color var(--hg-transition-base);
}

.hg-editorial-picks__link:hover {
  color: var(--hg-color-primary-hover);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hg-editorial-picks__grid,
  .hg-editorial-picks__grid:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .hg-editorial-picks__grid,
  .hg-editorial-picks__grid:has(> :nth-child(4)) {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════
   ROUTE TRANSFER PAGE TEMPLATE — v5.14
   Used by template-route-transfer.php
   ═══════════════════════════════════════════════════════════ */

/* ─── Route hero bar ─────────────────────────────────────────
   Shows From → To, journey time, price from, last reviewed
   ──────────────────────────────────────────────────────────── */

.hg-route-hero {
  background: var(--hg-purple-deep);
  color: #fff;
  padding: 28px 0;
  border-bottom: 3px solid var(--hg-gold);
}

.hg-route-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.hg-route-hero__route {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hg-route-hero__from,
.hg-route-hero__to {
  color: #fff;
}

.hg-route-hero__arrow {
  color: var(--hg-gold);
  font-size: 1.4rem;
}

.hg-route-hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hg-route-hero__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.hg-route-hero__stat--muted {
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.hg-route-hero__stat-icon svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .hg-route-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hg-route-hero__route {
    font-size: 1.05rem;
  }
  .hg-route-hero__meta {
    gap: 16px;
  }
}


/* ─── Route layout: content + sidebar ───────────────────────
   2-column on desktop, single column on mobile
   ──────────────────────────────────────────────────────────── */

.hg-route-shell {
  background: var(--hg-bg);
}

.hg-route-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Main content column */
.hg-route-article {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 36px 40px;
}

.hg-route-article__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--hg-text);
}

/* Entry content typography improvements */
.hg-route-article__body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
  color: var(--hg-text);
  border-bottom: 2px solid var(--hg-color-border);
  padding-bottom: 0.5rem;
}

.hg-route-article__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--hg-text);
}

.hg-route-article__body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--hg-text);
  margin: 0 0 1rem;
}

.hg-route-article__body ul,
.hg-route-article__body ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.hg-route-article__body li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0.4rem;
  color: var(--hg-text);
}

.hg-route-article__body strong {
  font-weight: 700;
  color: var(--hg-text);
}

/* Comparison table */
.hg-route-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}

.hg-route-article__body table th {
  background: var(--hg-purple-deep);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}

.hg-route-article__body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hg-border);
  vertical-align: top;
}

.hg-route-article__body table tr:nth-child(even) td {
  background: var(--hg-color-surface);
}

.hg-route-article__body table tr:last-child td {
  border-bottom: 0;
}


/* ─── Sidebar ────────────────────────────────────────────────
   Sticky on desktop, stacks below content on mobile
   ──────────────────────────────────────────────────────────── */

.hg-route-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hg-route-sidebar__thomas {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 20px;
  box-shadow: var(--hg-shadow);
}

.hg-route-sidebar__thomas-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hg-color-primary);
  margin: 0 0 12px;
}

.hg-route-sidebar__disclosure {
  background: var(--hg-color-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.hg-route-sidebar__disclosure p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--hg-muted);
  margin: 0 0 6px;
}

.hg-route-sidebar__disclosure a {
  font-size: 12px;
  font-weight: 600;
  color: var(--hg-color-primary);
  text-decoration: none;
}

.hg-route-sidebar__disclosure a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hg-route-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hg-route-sidebar {
    position: static;
  }
  .hg-route-article {
    padding: 24px 20px;
  }
}


/* ═══════════════════════════════════════════════════════════
   ROUTE CARDS — v5.15
   Used on /transfers/ page to link to the five route pages.
   Five clickable cards in a grid — each showing From → To,
   journey time, price, description, and CTA.
   ═══════════════════════════════════════════════════════════ */

.hg-route-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2 columns — fits inside hg-page-card */
  gap: 16px;
  margin: 28px 0 36px;
}

.hg-route-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  background: var(--hg-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--hg-transition-base), border-color var(--hg-transition-base), transform var(--hg-transition-base);
}

.hg-route-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  border-color: var(--hg-color-primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

/* From → To route display */
.hg-route-card__route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hg-text);
  line-height: 1.2;
}

.hg-route-card__arrow {
  color: var(--hg-color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hg-route-card__from,
.hg-route-card__to {
  color: var(--hg-text);
}

/* Journey time + price stats */
.hg-route-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hg-route-card__time,
.hg-route-card__price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hg-muted);
  background: var(--hg-color-surface);
  border: 1px solid var(--hg-color-border);
  border-radius: 100px;
  padding: 3px 10px;
}

.hg-route-card__price {
  color: var(--hg-color-primary);
  border-color: var(--hg-color-primary);
  background: transparent;
}

/* Description */
.hg-route-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--hg-muted);
  margin: 0;
  flex-grow: 1;
}

/* CTA text link */
.hg-route-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--hg-color-primary);
  margin-top: auto;
  transition: color var(--hg-transition-base);
}

.hg-route-card:hover .hg-route-card__cta {
  color: var(--hg-color-primary-hover);
}

/* Mobile: single column */
@media (max-width: 600px) {
  .hg-route-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hg-route-card {
    /* Horizontal layout on mobile */
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    padding: 16px 14px;
  }
  .hg-route-card__route {
    grid-column: 1;
    font-size: 0.95rem;
  }
  .hg-route-card__meta {
    grid-column: 1;
    gap: 8px;
  }
  .hg-route-card__desc {
    grid-column: 1 / -1;
    display: none; /* Hide description on mobile — route + meta is enough */
  }
  .hg-route-card__cta {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    white-space: nowrap;
    font-size: 12px;
  }
}


/* ==========================================
   HOMEPAGE POPULAR TOOLS
   ========================================== */

.hg-home-tools {
  padding-top: 18px;
}

.hg-home-tools__head {
  margin-bottom: 18px;
}

.hg-home-tools__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hg-primary, #173c73);
}

.hg-home-tools__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hg-home-tools__chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d9e4f8;
  background: #f5f8fe;
  color: #173c73;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.hg-home-tools__chip:hover,
.hg-home-tools__chip.is-active {
  background: #ebf3ff;
  border-color: #c9daf8;
}

.hg-home-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hg-home-tools__card {
  background: #fff;
  border: 1px solid rgba(23,35,56,.10);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(21,33,56,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hg-home-tools__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(21,33,56,.08);
  border-color: rgba(43,99,184,.18);
}

.hg-home-tools__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hg-home-tools__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  color: #173c73;
  font-size: 12px;
  font-weight: 800;
}

.hg-home-tools__time {
  font-size: 13px;
  font-weight: 700;
  color: #60708d;
}

.hg-home-tools__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hg-home-tools__title a {
  color: #182338;
  text-decoration: none;
}

.hg-home-tools__title a:hover {
  color: #2b63b8;
}

.hg-home-tools__desc {
  margin: 0 0 14px;
  color: #5e6f89;
  line-height: 1.7;
}

.hg-home-tools__link,
.hg-home-tools__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #173c73;
  font-weight: 800;
  text-decoration: none;
}

.hg-home-tools__link:hover,
.hg-home-tools__all:hover {
  color: #2b63b8;
}

.hg-home-tools__footer {
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .hg-home-tools__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hg-home-tools__grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   HOMEPAGE STRATEGIC SECTIONS
   ========================================== */
.hg-intent-lanes__grid,
.hg-first-time__grid,
.hg-money-saving__grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.hg-intent-lanes__card,
.hg-money-saving__card {
  background:#fff;
  border:1px solid rgba(23,35,56,.10);
  border-radius:22px;
  padding:20px;
  box-shadow:0 10px 25px rgba(21,33,56,.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hg-intent-lanes__card:hover,
.hg-money-saving__card:hover,
.hg-first-time__card:hover {
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(21,33,56,.08);
  border-color:rgba(43,99,184,.18);
}

.hg-intent-lanes__card h3,
.hg-first-time__card h3,
.hg-money-saving__card h3 {
  margin:0 0 10px;
  font-size:20px;
  line-height:1.25;
}

.hg-intent-lanes__card p,
.hg-first-time__card p,
.hg-money-saving__card p {
  margin:0 0 14px;
  color:#5e6f89;
  line-height:1.7;
}

.hg-intent-lanes__card a,
.hg-first-time__card a,
.hg-money-saving__card a,
.hg-useful-info__item {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#173c73;
  font-weight:800;
  text-decoration:none;
}
.hg-intent-lanes__card a:hover,
.hg-first-time__card a:hover,
.hg-money-saving__card a:hover,
.hg-useful-info__item:hover {
  color:#2b63b8;
}

.hg-first-time__grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hg-first-time__card {
  position:relative;
  background:#fff;
  border:1px solid rgba(23,35,56,.10);
  border-radius:22px;
  padding:22px 20px 20px;
  box-shadow:0 10px 25px rgba(21,33,56,.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hg-first-time__num {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  margin-bottom:12px;
  background:linear-gradient(135deg, var(--hg-color-primary,#173c73), #2b63b8);
  color:#fff;
  font-size:14px;
  font-weight:800;
}

.hg-useful-info__rail {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.hg-useful-info__item {
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid #d9e4f8;
  background:#f5f8fe;
  font-size:14px;
}
.hg-useful-info__item:hover { background:#ebf3ff; }

@media (max-width: 1024px) {
  .hg-intent-lanes__grid,
  .hg-money-saving__grid,
  .hg-first-time__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .hg-intent-lanes__grid,
  .hg-money-saving__grid,
  .hg-first-time__grid { grid-template-columns:1fr; }
}


/* =====================================================================
   HOMEPAGE v6 — Premium redesign
   New hero, transfer engine section, chip bar, route cards
   Added below existing rules to override without breaking anything.
   ===================================================================== */

/* ── Live dot pulse ─────────────────────────────────────── */
@keyframes hg-v6-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hg-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: hg-v6-pulse 2.4s infinite;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Hero v6 ─────────────────────────────────────────────── */
.hg-hero--v6 {
  position: relative;
  background: linear-gradient(155deg, #06080f 0%, #0c1423 45%, #111f38 100%);
  color: #fff;
  overflow: hidden;
  padding: 0 0 0;
}
.hg-hero--v6 .hg-hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
  opacity: .65;
}
.hg-hero--v6 .hg-hero-skyline svg {
  width: 100%;
  display: block;
}
.hg-hero-v6-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 52px;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}
.hg-hero-v6-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.28);
  font-size: 13px;
  font-weight: 700;
  color: #e2cc9e;
  letter-spacing: .02em;
}
.hg-hero-v6-sep { opacity: .4; }
.hg-hero-v6-h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.06em;
  color: #fff;
}
.hg-hero-v6-accent {
  background: linear-gradient(135deg, #e2cc9e 0%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hg-hero-v6-subhead {
  margin: 0 0 30px;
  max-width: 48ch;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,.68);
}
.hg-hero-v6-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hg-hero-v6-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hg-hero-v6-stat strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: #e2cc9e;
}
.hg-hero-v6-stat span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}
.hg-hero-v6-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.12);
}

/* ── Hero board (quick transfer widget) ─────────────────── */
.hg-hero-v6-board {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 32px 72px rgba(0,0,0,.36);
  position: relative;
  overflow: hidden;
}
.hg-hero-v6-board::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #e2cc9e 52%, transparent 100%);
  border-radius: 28px 28px 0 0;
}
.hg-hero-v6-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hg-hero-v6-board-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hg-hero-v6-board-expand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .18s ease, gap .18s ease;
}
.hg-hero-v6-board-expand:hover { color: #e2cc9e; gap: 8px; text-decoration: none; }

/* 3-field form */
.hg-hero-v6-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hg-hero-v6-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hg-hero-v6-field-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.hg-hero-v6-select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  appearance: auto;
}
.hg-hero-v6-select:focus {
  outline: 2px solid rgba(201,168,76,.5);
  outline-offset: 2px;
  border-color: rgba(201,168,76,.5);
}
.hg-hero-v6-select option {
  background: #0f1b2d;
  color: #fff;
}

.hg-hero-v6-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(160deg, #e2cc9e 0%, #c9a84c 100%);
  color: #2a1d00;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 28px rgba(201,168,76,.28);
}
.hg-hero-v6-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(201,168,76,.36);
}

/* Preset chips */
.hg-hero-v6-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.hg-hero-v6-preset {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s ease;
}
.hg-hero-v6-preset:hover {
  background: rgba(201,168,76,.15);
  border-color: rgba(201,168,76,.35);
  color: #e2cc9e;
  text-decoration: none;
}
.hg-hero-v6-note {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.28);
  text-align: center;
}

/* ── Hero chips bar (below fold strip) ──────────────────── */
.hg-hero-v6-chips-bar {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
  position: relative;
  z-index: 1;
}
.hg-hero-v6-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hg-hero-v6-chips::-webkit-scrollbar { display: none; }
.hg-chip--light {
  border-color: rgba(255,255,255,.15) !important;
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.68) !important;
  white-space: nowrap;
}
.hg-chip--light:hover {
  background: rgba(201,168,76,.15) !important;
  border-color: rgba(201,168,76,.35) !important;
  color: #e2cc9e !important;
}

/* ── Transfer engine section ─────────────────────────────── */
.hg-transfer-engine {
  background: #fff;
}
.hg-transfer-engine__head {
  margin-bottom: 28px;
}
/* Route card fallback grid */
.hg-transfer-engine__fallback-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.hg-transfer-engine__route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid rgba(23,35,56,.10);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hg-transfer-engine__route-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(21,33,56,.08);
  border-color: rgba(201,168,76,.4);
  text-decoration: none;
}
.hg-transfer-engine__route-card strong {
  font-size: 16px;
  font-weight: 800;
  color: #0f1b2d;
  line-height: 1.25;
}
.hg-transfer-engine__route-card span {
  font-size: 13px;
  color: #5e6f89;
  line-height: 1.5;
}
.hg-transfer-engine__route-cta {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #173c73 !important;
  margin-top: 6px;
}

/* ── Funnels section tweak ───────────────────────────────── */
.hg-funnels-section { background: #f5f8fe; }

/* ── Intent lanes updated URLs (fix /transfers/ → /airport-transfer-options/) */
/* No PHP change needed — content comes from partial which uses home_url('/transfers/')
   We update the partial separately. */

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hg-hero-v6-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
  .hg-hero-v6-h1   { font-size: clamp(48px, 9vw, 68px); }
  .hg-transfer-engine__fallback-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .hg-hero-v6-fields { grid-template-columns: 1fr 1fr; }
  .hg-hero-v6-board  { border-radius: 22px; padding: 22px; }
}
@media (max-width: 600px) {
  .hg-hero--v6       { padding-bottom: 0; }
  .hg-hero-v6-grid   { padding-top: 36px; padding-bottom: 28px; gap: 28px; }
  .hg-hero-v6-h1     { font-size: clamp(42px, 12vw, 58px); }
  .hg-hero-v6-subhead { font-size: 16px; }
  .hg-hero-v6-fields { grid-template-columns: 1fr; }
  .hg-hero-v6-board  { border-radius: 20px; padding: 18px; }
  .hg-hero-v6-presets { display: none; }
  .hg-transfer-engine__fallback-grid { grid-template-columns: 1fr; }
  .hg-hero-v6-stats  { gap: 14px; }
  .hg-hero-v6-stat strong { font-size: 22px; }
}


/* =====================================================================
   HGTS TRANSFER SUITE — Responsive fix
   The hgts plugin's own CSS lacks responsive breakpoints for:
     - .hgts-grid (form panel + summary panel side-by-side)
     - .hgts-metrics (cost/time/stress/per-person row)
     - .hgts-quick-picks (preset chips)
   These rules override via the theme so the plugin CSS doesn't need editing.
   Also fixes .hg-page-card max-width crushing the tool on its own page.
   ===================================================================== */

/* ── Tool page shell — allow full width ─────────────────── */
.hg-page-shell .hg-page-card:has(.hgts-shell),
.hg-page-shell .hg-page-card:has([class*="hgts-"]) {
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Ensure hgts wraps to 1200px with container padding */
.hgts-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── hgts-grid: stacks at 900px ─────────────────────────── */
.hgts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .hgts-grid {
    grid-template-columns: 1fr !important;
  }
  /* Summary panel moves below form on mobile */
  .hgts-summary-panel {
    order: 2;
  }
  .hgts-form-panel {
    order: 1;
  }
}

/* ── hgts-metrics: 4-stat row stacks at 600px ───────────── */
.hgts-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 640px) {
  .hgts-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ── hgts-cards: result card grid ───────────────────────── */
/* HG Design Master already collapses [class$="-cards"] at 980px
   but we ensure minimum card width here */
.hgts-cards {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

/* On desktop the summary panel is only ~50% width, so 2 cols works */
@media (min-width: 901px) {
  .hgts-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Full width when stacked (single-column panel) */
@media (max-width: 900px) {
  .hgts-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .hgts-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ── hgts-quick-picks: preset chips wrap properly ───────── */
.hgts-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ── hgts-actions: button row stacks on mobile ──────────── */
.hgts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hgts-actions .hgts-btn,
.hgts-results-actions .hgts-btn {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
}

@media (max-width: 480px) {
  .hgts-actions,
  .hgts-results-actions {
    flex-direction: column;
  }
  .hgts-actions .hgts-btn,
  .hgts-results-actions .hgts-btn {
    width: 100%;
  }
}

/* ── hgts-form-grid: 8 fields, 2 cols → 1 col on mobile ── */
/* HG Design Master handles [class$="-field-grid"] at 980px
   but hgts uses .hgts-form-grid — add explicit rule */
.hgts-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .hgts-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── hgts on homepage: remove the extra shell padding ────── */
.hg-transfer-engine .hgts-shell {
  padding: 0;
  max-width: 100%;
}

/* ── Responsive container on the standalone tool page ────── */
@media (max-width: 768px) {
  .hgts-shell {
    padding: 0 16px;
  }
  .hg-tool-page-shell {
    padding: 32px 0;
  }
}

@media (max-width: 480px) {
  .hgts-shell {
    padding: 0 12px;
  }
}

/* ── Tool page full-width wrapper ───────────────────────────
   Applied when page.php detects a tool shortcode (hgts etc).
   Removes the .hg-page-card shell entirely — the plugin renders
   its own heading and container.
   ─────────────────────────────────────────────────────────── */
.hg-tool-page-fullwidth {
  padding: 40px 0 60px;
}
.hg-tool-page-fullwidth > p:empty,
.hg-tool-page-fullwidth > p:first-child:empty {
  display: none;
}
@media (max-width: 767px) {
  .hg-tool-page-fullwidth {
    padding: 24px 0 40px;
  }
}
