/* GiftCardVibe public design system v3.0 */
:root {
  --gcv3-ink: #172033;
  --gcv3-body: #526078;
  --gcv3-muted: #748198;
  --gcv3-line: #dfe6ef;
  --gcv3-surface: #ffffff;
  --gcv3-soft: #f4f7fb;
  --gcv3-blue: #1768e5;
  --gcv3-blue-dark: #0f4fb9;
  --gcv3-teal: #079a83;
  --gcv3-warn: #a85b00;
  --gcv3-radius: 8px;
  --gcv3-shadow: 0 18px 48px rgba(31, 49, 78, .09);
  --gcv3-container: 1240px;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  overflow-x: clip;
  background: #f5f7fa;
  color: var(--gcv3-body);
  letter-spacing: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.site-main,
.gcv-home-v3,
.content-shell,
.entry-content,
.gcv2-page,
.gcv2-shell,
.gcv-inner {
  min-width: 0;
}

.gcv-v3-container,
.gcvx-shell,
.gcvx-nav-shell {
  width: min(calc(100% - 40px), var(--gcv3-container));
  max-width: var(--gcv3-container);
  margin-inline: auto;
}

/* Header */
.site-header.gcvx-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  border-bottom: 1px solid rgba(223, 230, 239, .94);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.gcvx-nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0;
}

.gcvx-brand {
  color: var(--gcv3-ink);
  font-size: 20px;
}

.gcvx-brand-mark {
  background: var(--gcv3-blue);
  color: #fff;
  border-radius: 8px;
}

.gcvx-primary-nav {
  justify-self: center;
  gap: 26px;
}

.gcvx-primary-nav > a,
.gcvx-nav-mega > a {
  color: #3f4b60;
  font-size: 14px;
  font-weight: 750;
}

.gcvx-primary-nav > a:hover,
.gcvx-nav-mega > a:hover {
  color: var(--gcv3-blue);
}

.gcvx-nav-cta,
.gcv-v3-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--gcv3-blue);
  border-radius: 7px;
  background: var(--gcv3-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 104, 229, .16);
}

.gcv-v3-button:hover,
.gcvx-nav-cta:hover {
  background: var(--gcv3-blue-dark);
  border-color: var(--gcv3-blue-dark);
}

.gcv-v3-button.is-secondary {
  background: #fff;
  color: var(--gcv3-blue);
  box-shadow: none;
}

/* Homepage */
.gcv-home-v3 {
  background: var(--gcv3-surface);
}

.gcv-v3-hero {
  padding: 72px 0 64px;
  background:
    linear-gradient(90deg, rgba(246, 250, 255, .98) 0%, rgba(246, 250, 255, .9) 52%, rgba(238, 246, 255, .72) 100%),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=78") center / cover;
  border-bottom: 1px solid var(--gcv3-line);
}

.gcv-v3-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: center;
}

.gcv-v3-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--gcv3-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gcv-v3-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--gcv3-ink);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.gcv-v3-hero-copy > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--gcv3-body);
  font-size: 18px;
  line-height: 1.72;
}

.gcv-v3-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.gcv-v3-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: #4d5a70;
  font-size: 13px;
  font-weight: 700;
}

.gcv-v3-trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--gcv3-teal);
  font-weight: 900;
}

.gcv-v3-market-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--gcv3-radius);
  background:
    linear-gradient(145deg, rgba(13, 49, 104, .94), rgba(13, 107, 119, .88)),
    url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=1200&q=76") center / cover;
  color: #fff;
  box-shadow: 0 28px 70px rgba(19, 64, 124, .2);
}

.gcv-v3-icon-row {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.gcv-v3-brand-icon {
  width: 56px;
  height: 56px;
  padding: 8px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
}

.gcv-v3-card-label {
  color: #aee8ff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gcv-v3-market-card h2 {
  margin: 8px 0 24px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.gcv-v3-top-rate {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.gcv-v3-top-rate span,
.gcv-v3-top-rate strong {
  display: block;
}

.gcv-v3-top-rate span {
  color: #d9e8f7;
  font-size: 13px;
}

.gcv-v3-top-rate strong {
  margin-top: 5px;
  color: #fff;
  font-size: 28px;
}

.gcv-v3-top-rate a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gcv-v3-market-note {
  margin: 18px 0 0;
  color: #d6e3ee;
  font-size: 13px;
  line-height: 1.65;
}

.gcv-v3-section {
  padding: 72px 0;
  background: #fff;
}

.gcv-v3-section.is-tinted {
  background: var(--gcv3-soft);
  border-top: 1px solid var(--gcv3-line);
  border-bottom: 1px solid var(--gcv3-line);
}

.gcv-v3-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.gcv-v3-section-head.is-compact {
  margin-bottom: 24px;
}

.gcv-v3-section-head h2,
.gcv-v3-tool-copy h2 {
  margin: 0;
  color: var(--gcv3-ink);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.12;
}

.gcv-v3-section-head p,
.gcv-v3-tool-copy > p {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.gcv-v3-text-link,
.gcv-v3-rate-card > a,
.gcv-v3-step-grid a,
.gcv-v3-guide-grid article > a,
.gcv-v3-disclosure a {
  color: var(--gcv3-blue);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.gcv-v3-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gcv-v3-rate-card,
.gcv-v3-step-grid article,
.gcv-v3-guide-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 49, 78, .05);
}

.gcv-v3-rate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gcv-v3-rate-card-head > span {
  max-width: 130px;
  overflow: hidden;
  color: var(--gcv3-blue);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcv-v3-rate-icon {
  width: 42px;
  height: 42px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #f8fafc;
}

.gcv-v3-rate-card h3 {
  min-height: 48px;
  margin: 18px 0 14px;
  color: var(--gcv3-ink);
  font-size: 19px;
  line-height: 1.28;
}

.gcv-v3-rate-card dl {
  margin: 0 0 18px;
}

.gcv-v3-rate-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #edf1f6;
}

.gcv-v3-rate-card dt,
.gcv-v3-rate-card dd {
  margin: 0;
  font-size: 13px;
}

.gcv-v3-rate-card dd {
  color: var(--gcv3-ink);
  font-weight: 850;
}

.gcv-v3-tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
}

.gcv-v3-safety-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--gcv3-teal);
  background: #eaf8f5;
  color: #365a55;
  font-size: 14px;
  line-height: 1.65;
}

.gcv-v3-tool-card {
  padding: 28px;
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: #fff;
  box-shadow: var(--gcv3-shadow);
}

.gcv-v3-tool-card .gcv-exact-calc {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gcv-v3-step-grid,
.gcv-v3-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gcv-v3-step-grid article > span,
.gcv-v3-guide-grid article > span {
  color: var(--gcv3-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gcv-v3-step-grid h3,
.gcv-v3-guide-grid h3 {
  margin: 12px 0 10px;
  color: var(--gcv3-ink);
  font-size: 22px;
}

.gcv-v3-guide-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.gcv-v3-step-grid p,
.gcv-v3-guide-grid p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
}

.gcv-v3-disclosure {
  padding: 22px 0;
  border-top: 1px solid #d6deea;
  background: #eef2f7;
}

.gcv-v3-disclosure .gcv-v3-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.gcv-v3-disclosure strong {
  color: var(--gcv3-ink);
  font-size: 14px;
}

.gcv-v3-disclosure p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* Public article, page and archive shell */
.content-shell,
.page:not(.home) .content-shell.gcv-rate-guide-shell {
  width: min(calc(100% - 40px), var(--gcv3-container));
  max-width: var(--gcv3-container);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.archive-header {
  margin: 0 0 24px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: linear-gradient(135deg, #fff, #f2f7ff);
  box-shadow: 0 14px 44px rgba(31, 49, 78, .07);
}

.archive-header h1,
.archive-header .entry-title {
  max-width: 920px;
  margin: 10px 0 0;
  color: var(--gcv3-ink);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.archive-header p,
.entry-excerpt {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--gcv3-body);
  font-size: 17px;
  line-height: 1.7;
}

.entry-content {
  min-width: 0;
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: #fff;
  color: var(--gcv3-body);
  box-shadow: var(--gcv3-shadow);
  font-size: 17px;
  line-height: 1.78;
}

.entry-content > * {
  max-width: 1040px;
  margin-inline: auto;
}

.entry-content > .gcv-country-rates,
.entry-content > .gcv-country-banner,
.entry-content > .gcv-table-scroll,
.entry-content > table,
.entry-content > .gcv2-page,
.entry-content > .gcvx-page {
  max-width: none;
}

.entry-content h2,
.entry-content h3 {
  color: var(--gcv3-ink);
  letter-spacing: 0;
}

.entry-content h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  padding-top: 30px;
  border-top: 1px solid var(--gcv3-line);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.18;
}

.entry-content h3 {
  margin-top: 28px;
  font-size: 21px;
}

.entry-content p,
.entry-content li {
  color: var(--gcv3-body);
}

.entry-content ul,
.entry-content ol {
  padding: 20px 24px 20px 46px;
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: #f8fafc;
}

.entry-content a {
  color: var(--gcv3-blue);
  font-weight: 750;
  text-underline-offset: 3px;
}

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

.post-card {
  min-width: 0;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 49, 78, .05);
}

.post-card h2 {
  color: var(--gcv3-ink);
  font-size: 21px;
}

.post-card p {
  color: var(--gcv3-body);
}

.post-card-meta {
  color: var(--gcv3-blue);
}

.navigation.pagination {
  margin: 30px 0 0;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation.pagination a,
.navigation.pagination .current {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--gcv3-line);
  border-radius: 7px;
  background: #fff;
  color: var(--gcv3-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.navigation.pagination .current {
  border-color: var(--gcv3-blue);
  background: var(--gcv3-blue);
  color: #fff;
}

.gcv-archive-about {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--gcv3-line);
  border-radius: var(--gcv3-radius);
  background: #fff;
}

.gcv-archive-about h2 {
  margin: 0 0 14px;
  color: var(--gcv3-ink);
  font-size: 28px;
}

.gcv-archive-about p {
  margin: 0;
  color: var(--gcv3-body);
  line-height: 1.75;
}

/* Rate tables */
.gcv-rate-template-intro {
  width: min(calc(100% - 40px), var(--gcv3-container));
  max-width: var(--gcv3-container);
  margin: 42px auto 0;
}

.gcv-rate-template-intro .gcv-country-banner {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #bdd6fb;
  background: #eef6ff;
  color: #34506f;
  line-height: 1.6;
}

.gcv-country-rates {
  max-width: none;
  margin: 0 0 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gcv-rate-board-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  border-radius: var(--gcv3-radius);
}

.gcv-rate-stat-grid > div,
.gcv-rate-table-card,
.gcv-country-banner {
  border-radius: var(--gcv3-radius);
}

.gcv-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.gcv-country-table {
  width: 100%;
  min-width: 980px;
}

.gcv-country-table th,
.gcv-country-table td {
  padding: 14px 12px;
}

/* Footer */
.gcvx-footer {
  border-top: 1px solid #dce3ed;
  background: #101827;
}

.gcvx-footer h3,
.gcvx-footer .gcvx-brand {
  color: #fff;
}

.gcvx-footer p,
.gcvx-footer a {
  color: #b8c3d5;
}

.gcvx-footer-bottom {
  border-color: #263248;
}

@media (max-width: 1050px) {
  .gcv-v3-rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gcv-v3-hero-grid,
  .gcv-v3-tool-layout {
    grid-template-columns: 1fr;
  }

  .gcv-v3-market-card {
    max-width: 760px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gcvx-nav-shell {
    grid-template-columns: auto auto;
    min-height: 68px;
  }

  .gcvx-nav-button {
    justify-self: end;
  }

  .gcvx-nav-toggle:checked ~ .gcvx-primary-nav,
  .gcvx-nav-toggle:checked ~ .gcvx-nav-actions {
    max-height: min(72vh, 620px);
    overflow-y: auto;
    padding-bottom: 16px;
  }

  .gcvx-mega-panel {
    grid-template-columns: 1fr;
  }

  .gcv-v3-step-grid,
  .gcv-v3-guide-grid,
  .gcv-v3-disclosure .gcv-v3-container,
  .gcvx-footer-grid {
    grid-template-columns: 1fr;
  }

  .gcv-v3-disclosure .gcv-v3-container {
    gap: 8px;
  }

  .gcv-rate-board-hero,
  .gcv-rate-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gcv-v3-container,
  .gcvx-shell,
  .gcvx-nav-shell,
  .content-shell,
  .page:not(.home) .content-shell.gcv-rate-guide-shell,
  .gcv-rate-template-intro {
    width: calc(100% - 28px);
  }

  .gcv-v3-hero {
    padding: 44px 0 40px;
  }

  .gcv-v3-hero h1 {
    font-size: 40px;
  }

  .gcv-v3-hero-copy > p {
    font-size: 16px;
  }

  .gcv-v3-actions,
  .gcv-v3-section-head,
  .gcv-v3-top-rate {
    align-items: stretch;
    flex-direction: column;
  }

  .gcv-v3-button {
    width: 100%;
  }

  .gcv-v3-market-card,
  .gcv-v3-tool-card,
  .gcv-v3-rate-card,
  .gcv-v3-step-grid article,
  .gcv-v3-guide-grid article {
    padding: 20px;
  }

  .gcv-v3-brand-icon {
    width: 50px;
    height: 50px;
  }

  .gcv-v3-section {
    padding: 52px 0;
  }

  .gcv-v3-rate-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .gcv-v3-rate-card h3 {
    min-height: 0;
  }

  .content-shell,
  .page:not(.home) .content-shell.gcv-rate-guide-shell {
    padding: 28px 0 54px;
  }

  .archive-header,
  .entry-content {
    padding: 22px;
  }

  .archive-header h1,
  .archive-header .entry-title {
    font-size: 34px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.72;
  }

  .entry-content h2 {
    margin-top: 36px;
    padding-top: 24px;
    font-size: 27px;
  }

  .entry-content ul,
  .entry-content ol {
    padding: 17px 18px 17px 36px;
  }

  .gcv-country-rates {
    margin-inline: 0;
  }

  .gcv-rate-board-hero {
    padding: 20px;
  }

  .gcv-rate-board-title {
    display: grid;
  }

  .gcv-rate-stat-grid {
    gap: 10px;
  }

  .gcv-country-table {
    min-width: 880px;
  }

  .gcvx-footer-grid,
  .gcvx-footer-bottom {
    padding-inline: 0;
  }
}
