/* ==========================================================================
   CalculaValorHoy — Homepage redesign v1.3.0
   Design system: navy #0B2545 / deep navy #07162D / mint #7BE0B4
   Fonts: Sora (logo, headings, big numbers), Manrope (body)
   ========================================================================== */

:root {
  --cvh-navy: #0B2545;
  --cvh-deep-navy: #07162D;
  --cvh-mint: #7BE0B4;
  --cvh-mint-soft: #E4F7EC;
  --cvh-ink: #0B1B33;
  --cvh-muted: #51627A;
  --cvh-border: #DCE4EE;
  --cvh-page: #F3F6FA;
  --cvh-card: #FFFFFF;
  --cvh-hero-text-dim: #B8CBE3;
  --cvh-radius-card: 20px;
  --cvh-radius-btn: 14px;
  --cvh-radius-pill: 999px;
  --cvh-shadow-card: 0 12px 32px rgba(11, 37, 69, .10);
  --cvh-shadow-pop: 0 24px 64px rgba(11, 37, 69, .22);
  --cvh-font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cvh-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Screen-reader only */
.cvh-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible focus states (accessible) */
.cvh-site-header a:focus-visible,
.cvh-site-header button:focus-visible,
.cvh-hero a:focus-visible,
.cvh-hero button:focus-visible,
.cvh-hero input:focus-visible,
.cvh-popular a:focus-visible,
.cvh-countries a:focus-visible,
.cvh-search-overlay a:focus-visible,
.cvh-search-overlay input:focus-visible {
  outline: 3px solid var(--cvh-mint);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ==========================================================================
   1. HEADER — sticky, blurred navy
   ========================================================================== */
.cvh-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 22, 45, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--cvh-font-body);
}
.cvh-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Logo */
.cvh-logo {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.cvh-logo-white { color: #fff; }
.cvh-logo-mint { color: var(--cvh-mint); }

/* Center nav */
.cvh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}
.cvh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #C9D8EC;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.cvh-nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cvh-nav-link svg { width: 16px; height: 16px; }

/* Mega menu */
.cvh-mega-wrap { position: relative; }
.cvh-mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90vw);
  background: #fff;
  border-radius: var(--cvh-radius-card);
  box-shadow: var(--cvh-shadow-pop);
  padding: 28px;
  display: flex;
  gap: 32px;
  z-index: 210;
}
.cvh-mega[hidden] { display: none; }
.cvh-mega-left { flex: 0 0 170px; }
.cvh-mega-title {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--cvh-ink);
  margin: 0 0 8px;
}
.cvh-mega-sub { font-size: 14px; color: var(--cvh-muted); margin: 0; line-height: 1.55; }
.cvh-mega-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cvh-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s ease;
}
.cvh-mega-item:hover { background: var(--cvh-page); }
.cvh-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--cvh-navy);
  color: #fff;
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
}
.cvh-badge-sm { min-width: 30px; height: 30px; font-size: 11px; }
.cvh-mega-item-text { display: flex; flex-direction: column; gap: 2px; }
.cvh-mega-item-name { font-weight: 700; font-size: 14px; color: var(--cvh-ink); }
.cvh-mega-item-tools { font-size: 12px; color: var(--cvh-muted); line-height: 1.4; }

/* Right actions */
.cvh-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cvh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.cvh-icon-btn:hover { background: rgba(255, 255, 255, .10); }
.cvh-icon-btn svg { width: 20px; height: 20px; }
.cvh-lang {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--cvh-radius-pill);
  padding: 3px;
  gap: 2px;
}
.cvh-lang-btn {
  border: 0;
  background: transparent;
  color: #C9D8EC;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--cvh-radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.cvh-lang-btn.is-active { background: var(--cvh-mint); color: var(--cvh-deep-navy); }
.cvh-lang-btn[aria-disabled="true"] { cursor: default; opacity: .55; }
.cvh-hamburger { display: none; }

/* Mobile panel */
.cvh-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--cvh-deep-navy);
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  animation: cvhSlideIn .22s ease;
}
.cvh-mobile-panel[hidden] { display: none; }
@keyframes cvhSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cvh-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cvh-mobile-nav { display: flex; flex-direction: column; }
.cvh-mobile-nav a {
  font-family: var(--cvh-font-head);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.cvh-mobile-nav a:hover { color: var(--cvh-mint); }
.cvh-mobile-lang { margin-top: auto; display: flex; justify-content: center; }

/* Search overlay */
.cvh-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 22, 45, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 80px 20px 20px;
}
.cvh-search-overlay[hidden] { display: none; }
.cvh-search-overlay-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--cvh-radius-card);
  box-shadow: var(--cvh-shadow-pop);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.cvh-search-overlay-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--cvh-border);
}
.cvh-search-overlay-head input {
  flex: 1;
  border: 2px solid var(--cvh-border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--cvh-font-body);
  color: var(--cvh-ink);
}
.cvh-search-overlay-head .cvh-icon-btn { border-color: var(--cvh-border); color: var(--cvh-ink); }
.cvh-search-overlay-head .cvh-icon-btn:hover { background: var(--cvh-page); }
.cvh-search-overlay-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
}
.cvh-search-overlay-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--cvh-ink);
  font-weight: 600;
  font-size: 15px;
}
.cvh-search-overlay-list li a:hover { background: var(--cvh-page); }
.cvh-search-overlay-list li[hidden] { display: none; }

/* ==========================================================================
   2. HERO
   ========================================================================== */
.cvh-hero {
  background:
    radial-gradient(600px 400px at 88% 12%, rgba(123, 224, 180, .14), transparent 70%),
    radial-gradient(700px 500px at 8% 88%, rgba(64, 110, 200, .20), transparent 70%),
    var(--cvh-navy);
  position: relative;
  overflow: hidden;
  font-family: var(--cvh-font-body);
}
.cvh-hero::before {
  /* faint 56px grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.cvh-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 128px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.cvh-eyebrow {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cvh-mint);
  margin: 0 0 16px;
}
.cvh-hero-h1 {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 20px;
}
.cvh-hero-sub {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 14px;
}
.cvh-hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--cvh-hero-text-dim);
  margin: 0 0 28px;
  max-width: 34em;
}

/* Hero search */
.cvh-hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 8px 8px 8px 16px;
  margin: 0 0 20px;
  max-width: 560px;
  box-shadow: var(--cvh-shadow-card);
}
.cvh-hero-search-icon { color: var(--cvh-muted); display: inline-flex; }
.cvh-hero-search-icon svg { width: 20px; height: 20px; }
.cvh-hero-search input {
  flex: 1;
  border: 0;
  font-size: 16px;
  font-family: var(--cvh-font-body);
  color: var(--cvh-ink);
  background: transparent;
  min-width: 0;
}
.cvh-hero-search input:focus { outline: none; }
.cvh-btn-navy {
  border: 0;
  cursor: pointer;
  background: var(--cvh-navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--cvh-font-body);
  padding: 14px 26px;
  border-radius: var(--cvh-radius-btn);
  white-space: nowrap;
}
.cvh-btn-navy:hover { background: var(--cvh-deep-navy); }

/* Hero CTAs */
.cvh-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.cvh-btn-mint, .cvh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--cvh-radius-btn);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease;
}
.cvh-btn-mint { background: var(--cvh-mint); color: var(--cvh-deep-navy); }
.cvh-btn-mint:hover { background: #93e9c2; transform: translateY(-1px); }
.cvh-btn-outline { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.cvh-btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* Trust pills */
.cvh-trust-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.cvh-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--cvh-radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #DCE7F5;
}
.cvh-trust-pills svg { width: 15px; height: 15px; color: var(--cvh-mint); }

/* UF mini card (hero right) */
.cvh-hero-right { display: flex; justify-content: center; }
.cvh-uf-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--cvh-radius-card);
  box-shadow: var(--cvh-shadow-pop);
  padding: 26px;
  color: var(--cvh-ink);
}
.cvh-uf-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cvh-uf-card-title {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--cvh-ink);
}
.cvh-pill {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #1E7A4F;
  background: var(--cvh-mint-soft);
  border-radius: var(--cvh-radius-pill);
  padding: 6px 12px;
}
.cvh-uf-card-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cvh-muted);
  margin-bottom: 8px;
}
.cvh-uf-card-inputwrap { position: relative; margin-bottom: 16px; }
.cvh-uf-card-inputwrap input {
  width: 100%;
  border: 2px solid var(--cvh-border);
  border-radius: 16px;
  padding: 16px 52px 16px 18px;
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--cvh-ink);
  box-sizing: border-box;
}
.cvh-uf-card-inputwrap input:focus { border-color: var(--cvh-navy); outline: none; }
.cvh-uf-card-suffix {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--cvh-muted);
  font-size: 15px;
}
.cvh-uf-card-result {
  background: var(--cvh-navy);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.cvh-uf-card-result-label {
  display: block;
  font-size: 13px;
  color: var(--cvh-hero-text-dim);
  margin-bottom: 4px;
}
.cvh-uf-card-result-value {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  letter-spacing: -.01em;
}
.cvh-uf-card-result-value strong { font-weight: 700; }
.cvh-uf-card-currency { font-size: 15px; font-weight: 700; color: var(--cvh-mint); margin-left: 6px; }
.cvh-uf-card-source {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cvh-muted);
  margin: 0 0 14px;
}
.cvh-uf-card-source svg { width: 16px; height: 16px; flex: 0 0 auto; color: #1E7A4F; margin-top: 1px; }
.cvh-uf-card-cta {
  font-weight: 700;
  font-size: 14px;
  color: var(--cvh-navy);
  text-decoration: none;
}
.cvh-uf-card-cta:hover { text-decoration: underline; }

/* ==========================================================================
   3. TRUST STRIP (overlaps hero)
   ========================================================================== */
.cvh-trust-strip {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: -72px auto 0;
  padding: 0 24px;
  font-family: var(--cvh-font-body);
}
.cvh-trust-strip-inner {
  background: #fff;
  border-radius: var(--cvh-radius-card);
  box-shadow: var(--cvh-shadow-card);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cvh-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.cvh-trust-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cvh-mint-soft);
  color: #14663F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cvh-trust-icon svg { width: 22px; height: 22px; }
.cvh-trust-title { font-weight: 700; font-size: 15px; color: var(--cvh-ink); margin: 0 0 4px; }
.cvh-trust-sub { font-size: 13.5px; color: var(--cvh-muted); margin: 0; line-height: 1.5; }

/* ==========================================================================
   4. POPULAR TOOLS
   ========================================================================== */
.cvh-popular {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 8px;
  font-family: var(--cvh-font-body);
  background: var(--cvh-page);
}
.cvh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.cvh-h2 {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.015em;
  color: var(--cvh-ink);
  margin: 0 0 8px;
}
.cvh-section-sub { color: var(--cvh-muted); font-size: 16px; margin: 0; }
.cvh-link-more {
  font-weight: 700;
  font-size: 15px;
  color: var(--cvh-navy);
  text-decoration: underline;
  text-decoration-color: var(--cvh-mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.cvh-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cvh-pop-card {
  background: var(--cvh-card);
  border: 1px solid var(--cvh-border);
  border-radius: var(--cvh-radius-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.cvh-pop-card:hover { box-shadow: var(--cvh-shadow-card); transform: translateY(-3px); }
.cvh-pop-card[hidden] { display: none; }
.cvh-pop-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cvh-pop-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cvh-mint-soft);
  color: var(--cvh-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cvh-pop-icon svg { width: 24px; height: 24px; }
.cvh-badge-navy { background: var(--cvh-navy); }
.cvh-pop-card-title {
  font-family: var(--cvh-font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--cvh-ink);
  margin: 0;
}
.cvh-pop-card-desc { font-size: 14.5px; line-height: 1.6; color: var(--cvh-muted); margin: 0; flex: 1; }
.cvh-pop-card-link {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--cvh-navy);
  text-decoration: none;
}
.cvh-pop-card-link:hover { text-decoration: underline; }

/* ==========================================================================
   5. COUNTRY PILLS
   ========================================================================== */
.cvh-countries {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 88px;
  font-family: var(--cvh-font-body);
  background: var(--cvh-page);
}
.cvh-countries .cvh-h2 { margin-bottom: 20px; }
.cvh-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.cvh-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--cvh-border);
  border-radius: var(--cvh-radius-pill);
  padding: 10px 20px 10px 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--cvh-ink);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cvh-pill-link:hover { box-shadow: var(--cvh-shadow-card); transform: translateY(-2px); }

/* Page background behind the new sections */
.home .site-content, .home .content-area { background: var(--cvh-page); }

/* ==========================================================================
   6. RESPONSIVE (< 960px)
   ========================================================================== */
@media (max-width: 960px) {
  .cvh-nav, .cvh-header-actions .cvh-lang { display: none; }
  .cvh-hamburger { display: inline-flex; }
  .cvh-header-inner { gap: 16px; }
  .cvh-hero-inner { grid-template-columns: 1fr; padding: 56px 20px 120px; gap: 40px; }
  .cvh-trust-strip-inner { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .cvh-popular-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cvh-popular-grid { grid-template-columns: 1fr; }
  .cvh-trust-strip-inner { grid-template-columns: 1fr; }
  .cvh-hero-ctas .cvh-btn-mint, .cvh-hero-ctas .cvh-btn-outline { width: 100%; justify-content: center; }
  .cvh-section-head { flex-direction: column; align-items: flex-start; }
  .cvh-mega { position: fixed; top: 76px; left: 12px; right: 12px; transform: none; width: auto; flex-direction: column; }
  .cvh-mega-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   v1.3.2: cascade hardening — beat theme link/button defaults.
   Some themes (and browser-translated DOM) override plain class selectors
   for `color` on <a>/<button>. These higher-specificity rules lock the
   intended colors for the header icon button and hero CTA buttons.
   ========================================================================== */
.cvh-site-header .cvh-header-actions .cvh-icon-btn,
.cvh-site-header .cvh-header-actions .cvh-icon-btn:visited,
.cvh-site-header .cvh-header-actions .cvh-icon-btn:hover,
.cvh-site-header .cvh-header-actions .cvh-icon-btn:active {
  color: #ffffff;
}
.cvh-site-header .cvh-header-actions .cvh-icon-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cvh-hero .cvh-hero-ctas a.cvh-btn-outline,
.cvh-hero .cvh-hero-ctas a.cvh-btn-outline:visited,
.cvh-hero .cvh-hero-ctas a.cvh-btn-outline:hover,
.cvh-hero .cvh-hero-ctas a.cvh-btn-outline:active,
.cvh-hero .cvh-hero-ctas a.cvh-btn-outline:focus {
  color: #ffffff;
}
.cvh-hero .cvh-hero-ctas a.cvh-btn-mint,
.cvh-hero .cvh-hero-ctas a.cvh-btn-mint:visited,
.cvh-hero .cvh-hero-ctas a.cvh-btn-mint:hover,
.cvh-hero .cvh-hero-ctas a.cvh-btn-mint:active {
  color: #07162D;
}

/* ==========================================================================
   v1.4.0: TOOL HERO — navy hero section on every tool page (like homepage).
   The [cvh_*] tool shortcode is wrapped in .cvh-tool-hero by the
   cvh_tool_hero content filter; the H1 lives inside the hero.
   ========================================================================== */
.cvh-tool-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 380px at 86% 12%, rgba(123, 224, 180, .13), transparent 70%),
    radial-gradient(720px 480px at 8% 88%, rgba(64, 110, 200, .20), transparent 70%),
    #0B2545;
  /* full-bleed across the theme content container */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px 24px 76px;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cvh-tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.cvh-tool-hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.cvh-tool-hero-title {
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  margin: 0 0 36px;
}
/* The tool card floats on the navy hero */
.cvh-tool-hero .cvh-tool {
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 24px 64px rgba(4, 12, 26, .35);
}
/* Prevent horizontal scroll from the full-bleed trick */
body { overflow-x: clip; }
@media (max-width: 640px) {
  .cvh-tool-hero { padding: 44px 20px 56px; }
  .cvh-tool-hero-title { margin-bottom: 28px; }
}

/* v1.4.1: simulator inside the navy hero — white card for readable contrast. */
.cvh-tool-hero .cvh-sim {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(4, 12, 26, .35);
  color: #0B1B33;
}

/* v1.4.3: country hub hero subtitle */
.cvh-hub-hero .cvh-tool-hero-inner { max-width: 760px; }
.cvh-hub-hero-sub {
  color: #B8CBE3;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
  margin: 0;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   v1.4.4: breathing room after the hero — equal on every page/tool.
   The element right after the navy hero gets consistent top spacing so the
   content never touches the hero. Applies to tool pages and country hubs.
   ========================================================================== */
.cvh-tool-hero + * {
  margin-top: 56px !important; /* v1.4.5: !important beats theme heading margins so spacing is equal everywhere */
}
@media (max-width: 640px) {
  .cvh-tool-hero + * {
    margin-top: 40px !important;
  }
}

/* ==========================================================================
   v1.4.10: visual polish from site audit
   ========================================================================== */
/* Tables: fixed 50/50 columns leave a dead gap — size to content instead. */
.entry-content table.has-fixed-layout {
  table-layout: auto;
}
/* v1.4.13: hero flush handled via inline padding-zero style in hero HTML. */

/* v1.4.11: breadcrumbs inside the navy hero */
.cvh-tool-hero .cvh-crumbs {
  margin: 0 0 20px;
  text-align: center;
}
.cvh-tool-hero .cvh-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.cvh-tool-hero .cvh-crumbs li {
  color: #8FA3BF;
}
.cvh-tool-hero .cvh-crumbs a {
  color: #B8CBE3;
  text-decoration: none;
}
.cvh-tool-hero .cvh-crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}
.cvh-tool-hero .cvh-crumbs [aria-current="page"] {
  color: #fff;
}
.cvh-tool-hero .cvh-crumbs li + li::before {
  content: "\203A";
  margin-right: 8px;
  color: #5A7396;
}
/* v1.4.12: tables — left-align so values sit next to labels.
   Beats .entry-content table td (0,1,2) from cvh-design.css. */
.entry-content table.has-fixed-layout td,
.entry-content table.has-fixed-layout th,
.entry-content .cvh-tool .cvh-result__detail td,
.entry-content .cvh-tool .cvh-result__detail th {
  text-align: left;
}
