/*
Theme Name: DS Corp
Theme URI: https://dscorp.in
Author: 24HundredCode
Author URI: https://24hundredcode.com
Description: Trust-first India to international sourcing desk. Custom hybrid theme (theme.json tokens + classic PHP templates) for DS Corp — a buying-desk service, not a store. Built to the DS Corp Brand Spec and WordPress Build Brief.
Version: 1.12.3
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dscorp
*/

/* ==========================================================================
   1. DESIGN TOKENS  (locked — Brand Spec §1. Do not substitute values.)
   ========================================================================== */
:root {
  /* Brand — peacock green is ACCENT ONLY */
  --ds-green:        #9CB800;
  --ds-green-dark:   #7E9A00;
  --ds-green-pale:   #EAF0CE;

  /* Action — terracotta is CTA ONLY */
  --ds-terracotta:      #C9622B;
  --ds-terracotta-dark: #A94E20;

  /* Foundation */
  --ds-forest:     #15362A;
  --ds-forest-mid: #1E4536;
  --ds-ink:        #14201A;
  --ds-stone:      #6B6F62;
  --ds-ivory:      #F8F0E4;
  --ds-sage:       #EEF0E0;
  --ds-white:      #FFFFFF;
  --ds-hairline:   #E5DECB;

  /* Signal */
  --ds-success: #9CB800;
  --ds-amber:   #E0A100;
  --ds-error:   #B23A2E;

  /* Shadows (warm, ink-based) */
  --ds-shadow-sm: 0 1px 3px rgba(20,32,26,.06);
  --ds-shadow:    0 6px 20px rgba(20,32,26,.10);
  --ds-shadow-lg: 0 12px 36px rgba(20,32,26,.12);

  /* Type */
  --ds-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ds-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ds-font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --ds-maxw: 1140px;
  --ds-radius: 14px;
  --ds-radius-sm: 9px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ds-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ds-ink);
  background: var(--ds-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.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; }
a { color: var(--ds-terracotta); text-decoration: none; }
a:hover { color: var(--ds-green-dark); box-shadow: inset 0 -2px 0 var(--ds-green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ds-green-dark); outline-offset: 2px; box-shadow: none;
}
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--ds-hairline); margin: 2rem 0; }

/* ==========================================================================
   3. TYPOGRAPHY  (Brand Spec §2)
   ========================================================================== */
h1, h2 { font-family: var(--ds-font-display); font-weight: 600; color: var(--ds-forest); margin: 0 0 .5em; }
h1 { font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-family: var(--ds-font-body); font-weight: 600; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ds-forest); margin: 0 0 .5em; }
h4 { font-family: var(--ds-font-body); font-weight: 600; font-size: 1.0625rem; color: var(--ds-forest); margin: 0 0 .4em; }
p { margin: 0 0 1rem; max-width: 70ch; }
strong, b { font-weight: 600; }
.eyebrow, .label {
  font-family: var(--ds-font-body); font-weight: 500; font-size: .8125rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ds-forest);
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 3px; border-radius: 2px;
  background: var(--ds-green); display: inline-block;
}
.price, .quote-figure, .tracking, .fee, .mono { font-variant-numeric: tabular-nums; font-family: var(--ds-font-mono); }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ds-ink); max-width: 64ch; }
.muted { color: var(--ds-stone); }
.text-center { text-align: center; }

/* ==========================================================================
   4. LAYOUT  (8px grid; section padding 96–128 desktop / 56–72 mobile)
   ========================================================================== */
.wrap { max-width: var(--ds-maxw); margin-inline: auto; padding-inline: 32px; }
.wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: 32px; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.band-alt  { background: var(--ds-sage); }
.band-white { background: var(--ds-white); }
.band-dark { background: var(--ds-forest); color: rgba(248,240,228,.85); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--ds-ivory); }
.band-dark a { color: var(--ds-ivory); }
.band-dark a:hover { box-shadow: inset 0 -2px 0 var(--ds-green); }
.band-dark .eyebrow { color: var(--ds-green); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Category capability grid: 4 cols → 3 → 2 → 1 */
.grid-cats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .grid-cats { grid-template-columns: 1fr; } }
/* inline keyword highlight — green accent, inherits weight/size */
.hl { color: var(--ds-green); }
/* 5-card layout: 3 on top row, 2 centered on bottom row */
.grid-3-2 { grid-template-columns: repeat(6, 1fr); }
.grid-3-2 > * { grid-column: span 2; }
.grid-3-2 > :nth-child(4) { grid-column: 2 / span 2; }
.grid-3-2 > :nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 900px) { .grid-3-2 { grid-template-columns: repeat(2, 1fr); } .grid-3-2 > * { grid-column: span 1; } .grid-3-2 > :nth-child(4), .grid-3-2 > :nth-child(5) { grid-column: span 1; } }
@media (max-width: 600px) { .grid-3-2 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1rem; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   5. BUTTONS  (terracotta = CTA only; green never a fill)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ds-font-body); font-weight: 600; font-size: 1rem; line-height: 1; border-radius: var(--ds-radius-sm); cursor: pointer; transition: background .18s, box-shadow .18s, border-color .18s; text-decoration: none; }
.btn:hover { box-shadow: none; }
.btn-primary { background: var(--ds-terracotta); color: var(--ds-ivory); padding: .85rem 1.5rem; border: none; }
.btn-primary:hover { background: var(--ds-terracotta-dark); color: var(--ds-ivory); }
.btn-secondary { background: transparent; color: var(--ds-forest); border: 1.5px solid var(--ds-forest); padding: calc(.85rem - 1.5px) calc(1.5rem - 1.5px); }
.btn-secondary:hover { background: var(--ds-forest); color: var(--ds-ivory); }
.band-dark .btn-secondary { color: var(--ds-ivory); border-color: rgba(248,240,228,.5); }
.band-dark .btn-secondary:hover { background: var(--ds-ivory); color: var(--ds-forest); }
.btn-tertiary { background: none; border: none; color: var(--ds-forest); font-weight: 600; padding: .5rem 0; }
.btn-tertiary:hover { box-shadow: inset 0 -2px 0 var(--ds-green); }
.btn-lg { font-size: 1.0625rem; padding: 1rem 1.75rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* WhatsApp keeps its own recognisable green, contained */
.btn-whatsapp { background: var(--ds-green); color: var(--ds-forest); }
.btn-whatsapp:hover { background: var(--ds-green-dark); color: var(--ds-ivory); }

/* ==========================================================================
   6. CARDS
   ========================================================================== */
.card { background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm); padding: 24px 28px; transition: box-shadow .18s, border-color .18s, transform .18s; }
.card:hover { box-shadow: var(--ds-shadow); border-color: var(--ds-green); }
.card-link { display: block; color: inherit; }
.card-link:hover { box-shadow: var(--ds-shadow); border-color: var(--ds-green); transform: translateY(-2px); }
.card-accent-top { border-top: 3px solid var(--ds-green); }
.card-featured { background: var(--ds-green-pale); border-color: transparent; box-shadow: none; }
.card-featured h3 { color: var(--ds-green-dark); }
.card-featured.card-link:hover { background: var(--ds-green-pale); border-color: var(--ds-green); }
.cats-featured { margin-top: 8px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ds-stone); margin-bottom: 0; }
.card-thumb { margin: -24px -28px 16px; border-radius: var(--ds-radius) var(--ds-radius) 0 0; overflow: hidden; }
.card-thumb img { display: block; width: 100%; height: 180px; object-fit: cover; }

/* Green icon chip (sage/ivory rounded chip, monoline icon inside) */
.icon-chip { width: 44px; height: 44px; border-radius: 11px; background: var(--ds-sage); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--ds-green-dark); }
.icon-chip svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Flag chip on country cards */
.flag-chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-stone); }
.flag-chip .flag { width: 22px; height: 16px; border-radius: 3px; border: 1px solid var(--ds-hairline); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }

/* ==========================================================================
   7. HEADER  (seamless — transparent on hero, solid on scroll)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .2s, box-shadow .2s, border-color .2s; }
.site-header.is-stuck { background: var(--ds-ivory); border-bottom-color: var(--ds-hairline); box-shadow: var(--ds-shadow); }
/* Offset the sticky header below the WP admin bar when logged in (admin-bar is
   32px wide screens / 46px ≤782px), so the nav never slides under it. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 20px; height: 58px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; }
.site-brand:hover { box-shadow: none; }
.site-brand .logo-mark { height: 28px; width: auto; flex-shrink: 0; display: block; }
.site-brand .brand-word { font-family: var(--ds-font-display); font-size: 1rem; font-weight: 600; color: var(--ds-forest); line-height: 1; }
.site-brand .brand-tag { display: block; font-family: var(--ds-font-body); font-size: .45375rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--ds-stone); margin-top: 2px; }

/* Small phones: the full logo + wordmark + tagline lockup reads heavy in a
   58px bar. Drop the tagline (it already lives in the mobile nav's own
   header) and tighten the mark so the bar stays light. */
@media (max-width: 480px) {
  .header-inner { height: 52px; gap: 12px; }
  .site-brand { gap: 7px; }
  .site-brand .logo-mark { height: 23px; }
  .site-brand .brand-tag { display: none; }
}

.primary-nav { margin-left: 18px; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: .9375rem; font-weight: 500; color: var(--ds-forest); padding: .5rem .75rem; border-radius: 6px; white-space: nowrap; }
.primary-nav a:hover { box-shadow: none; background: var(--ds-sage); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }

/* Dropdowns */
.primary-nav li { position: relative; }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: 12px; box-shadow: var(--ds-shadow-lg); padding: 10px; list-style: none; margin: 8px 0 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: .55rem .75rem; border-radius: 8px; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--ds-sage); }
/* Products mega-dropdown */
.mega .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); min-width: 480px; gap: 2px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* Compact header CTA — the base .btn-primary height is too tall for a 58px bar. */
.header-cta-desktop { padding: .5rem 1.2rem; font-size: .9375rem; white-space: nowrap; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ds-forest); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ==========================================================================
   8. TRUST RIBBON
   ========================================================================== */
.trust-ribbon { background: var(--ds-sage); color: var(--ds-forest); font-size: .8125rem; border-bottom: 1px solid var(--ds-hairline); }
.trust-ribbon .wrap { display: flex; justify-content: center; padding-block: 11px; }
.trust-ribbon .tr-track { display: inline-flex; }
.trust-ribbon .tr-group { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px 40px; }
.trust-ribbon .tr-group[aria-hidden="true"] { display: none; }   /* duplicate copy: mobile marquee only */
.trust-ribbon .tr-item { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.trust-ribbon .tr-item svg { width: 18px; height: 18px; color: var(--ds-green-dark); flex-shrink: 0; }

/* ==========================================================================
   9. HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: .35em; }
.hero .hero-sub { font-size: 1.2rem; color: var(--ds-ink); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
/* dome motif backdrop */
.dome-motif { position: absolute; pointer-events: none; opacity: .5; z-index: -1; }

/* paste-a-link field */
.paste-field { display: flex; gap: 10px; align-items: center; background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 8px; box-shadow: var(--ds-shadow-sm); max-width: 420px; width: 100%; margin-bottom: 16px; }
.paste-field input[type="text"] { flex: 1; min-width: 0; border: none; background: none; font-family: var(--ds-font-body); font-size: 1rem; padding: .65rem .75rem; color: var(--ds-ink); }
.paste-field input[type="text"]:focus { outline: none; }
.paste-field .btn { font-size: .875rem; padding: .6rem 1rem; white-space: nowrap; flex-shrink: 0; }
.paste-file-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ds-hairline); color: var(--ds-forest); cursor: pointer; transition: background .15s, border-color .15s; }
.paste-file-btn:hover { background: var(--ds-sage); border-color: var(--ds-forest); }
.paste-file-name { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ds-forest); margin: -8px 0 16px; max-width: 520px; }
.pfn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfn-clear { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--ds-stone); line-height: 1; padding: 2px 4px; }
.pfn-clear:hover { color: var(--ds-ink); }
.paste-error { font-size: .875rem; color: #92400E; margin-top: 8px; max-width: 520px; }
/* Quote page — attachment chip (pre-filled from hero form) */
.attach-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ds-ivory); border: 1px solid var(--ds-hairline); border-radius: 8px; margin-bottom: 12px; font-size: .875rem; color: var(--ds-forest); }
.attach-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================================
   10. SOURCING SLIP  (signature device)
   ========================================================================== */
.sourcing-slip { background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow); padding: 22px 24px; max-width: 380px; }
.slip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.slip-head .lbl { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-stone); }
.slip-head .id { font-family: var(--ds-font-mono); font-size: .8125rem; color: var(--ds-forest); }
.slip-step { display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--ds-ink); padding: 9px 0; border-bottom: 1px solid var(--ds-hairline); }
.slip-step:last-child { border-bottom: none; }
.slip-step .meta { margin-left: auto; font-family: var(--ds-font-mono); font-size: .75rem; color: var(--ds-stone); }
.slip-check { width: 22px; height: 22px; border-radius: 50%; background: var(--ds-green); color: var(--ds-white); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slip-check svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.slip-check.pending { background: var(--ds-sage); color: var(--ds-stone); border: 1px solid var(--ds-hairline); }

/* ── Live "process" animation (armed by JS only when motion is welcome) ──────
   Default (unarmed / no-JS / reduced-motion) = completed slip, no motion. */
html.slip-armed .sourcing-slip[data-animate-slip] .slip-check {
  background: var(--ds-sage); color: var(--ds-stone); border: 1px solid var(--ds-hairline);
}
html.slip-armed .sourcing-slip[data-animate-slip] .slip-check svg path { stroke-dasharray: 22; stroke-dashoffset: 22; opacity: 0; }
html.slip-armed .sourcing-slip[data-animate-slip] .slip-step > span:not(.slip-check):not(.meta) { color: var(--ds-stone); }
html.slip-armed .sourcing-slip[data-animate-slip] .slip-step .meta { opacity: 0; }

/* Play: cascade top→bottom, ~0.6s apart, then hold the completed state. */
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step { animation: slipPulse .9s ease both; }
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-check { animation: slipFill .45s ease both; }
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-check svg path { animation: slipDraw .4s ease both; }
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step > span:not(.slip-check):not(.meta) { animation: slipLabel .45s ease both; }

/* NB: .slip-head is the first <div> in the slip, so the four .slip-step rows
   are the 2nd–5th of their type. nth-of-type must start at 2, else the last
   step (Shipped) is left with no delay rule and fills instantly first. */
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(2) .slip-check,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(2) .slip-check svg path,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(2) > span,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(2) { animation-delay: .15s; }
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(3) .slip-check,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(3) .slip-check svg path,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(3) > span,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(3) { animation-delay: .75s; }
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(4) .slip-check,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(4) .slip-check svg path,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(4) > span,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(4) { animation-delay: 1.35s; }
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(5) .slip-check,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(5) .slip-check svg path,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(5) > span,
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:nth-of-type(5) { animation-delay: 1.95s; }
/* Payoff: shipping meta fades in after the last step completes. */
html.slip-armed .sourcing-slip[data-animate-slip].is-playing .slip-step:last-child .meta { animation: slipMeta .5s ease 2.45s both; }

@keyframes slipFill {
  0%   { background: var(--ds-sage); border-color: var(--ds-hairline); color: var(--ds-stone); transform: scale(1); }
  55%  { transform: scale(1.14); }
  100% { background: var(--ds-green); border-color: var(--ds-green); color: var(--ds-white); transform: scale(1); }
}
@keyframes slipDraw { 0% { stroke-dashoffset: 22; opacity: 0; } 35% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes slipLabel { from { color: var(--ds-stone); } to { color: var(--ds-ink); } }
@keyframes slipPulse { 0%, 100% { background: transparent; } 22% { background: var(--ds-green-pale); } }
@keyframes slipMeta { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-check { background: var(--ds-green); color: var(--ds-white); border: none; }
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-check svg path { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-step > span,
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-step .meta { color: inherit; opacity: 1; }
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-step,
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-check,
  html.slip-armed .sourcing-slip[data-animate-slip] .slip-check svg path { animation: none !important; }
}

/* ==========================================================================
   11. STEPS / PROCESS STRIP
   ========================================================================== */
.steps { display: grid; gap: 24px; counter-reset: step; }
.step { position: relative; }
.step .step-num { font-family: var(--ds-font-mono); font-size: .8125rem; color: var(--ds-green-dark); font-weight: 500; margin-bottom: 10px; }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--ds-stone); margin-bottom: 0; }

/* ==========================================================================
   12. MARKETPLACE STRIP (monochrome)
   ========================================================================== */
.marketplace-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.marketplace-strip .ms-label { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-stone); flex-shrink: 0; }
.marketplace-strip .ms-viewport { display: inline-flex; }
.marketplace-strip .ms-track { display: inline-flex; align-items: center; }
.marketplace-strip .ms-group { display: inline-flex; align-items: center; gap: 16px; }
.marketplace-strip .ms-group[aria-hidden="true"] { display: none; }   /* duplicate copy: mobile marquee only */
.marketplace-strip .ms-group > .dot:last-child { display: none; }      /* trailing dot: mobile marquee only */
.marketplace-strip .ms-name { font-weight: 500; color: var(--ds-stone); filter: grayscale(1); opacity: .75; white-space: nowrap; }
.marketplace-strip .dot { color: var(--ds-stone); opacity: .55; }

/* ── Mobile marquees: marketplace strip + trust ribbon scroll horizontally ──
   The duplicated (aria-hidden) group is revealed and the track slides -50%,
   which equals exactly one group's width → a seamless, gap-free loop. */
@keyframes dsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 600px) {
  /* Marketplace: "Sourced from" stays put on top; the names scroll beneath it. */
  .marketplace-strip { flex-direction: column; gap: 10px; }
  .marketplace-strip .ms-label { text-align: center; }
  .marketplace-strip .ms-viewport { display: block; width: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
  .marketplace-strip .ms-track { width: max-content; flex-wrap: nowrap; will-change: transform; animation: dsMarquee 22s linear infinite; }
  .marketplace-strip .ms-group { padding-right: 16px; }                     /* seam spacing == inner gap */
  .marketplace-strip .ms-group[aria-hidden="true"] { display: inline-flex; }
  .marketplace-strip .ms-group > .dot:last-child { display: inline; }

  /* Trust ribbon: the three promises scroll as one row. */
  .trust-ribbon .wrap { display: block; overflow: hidden; padding-block: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
  .trust-ribbon .tr-track { display: flex; width: max-content; flex-wrap: nowrap; will-change: transform; animation: dsMarquee 18s linear infinite; }
  .trust-ribbon .tr-group { display: flex; flex-wrap: nowrap; gap: 28px; padding-right: 28px; }
  .trust-ribbon .tr-group[aria-hidden="true"] { display: flex; }
  .trust-ribbon .tr-item { white-space: nowrap; }
}

/* Reduced-motion: no auto-scroll. Drop the duplicate and let the row be swiped. */
@media (prefers-reduced-motion: reduce) {
  .marketplace-strip .ms-track, .trust-ribbon .tr-track { animation: none; }
  .marketplace-strip .ms-viewport, .trust-ribbon .wrap { overflow-x: auto; }
  .marketplace-strip .ms-group[aria-hidden="true"], .trust-ribbon .tr-group[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   13. TABLES (fees, duties, timelines)
   ========================================================================== */
.ds-table-wrap { border: 1px solid var(--ds-hairline); border-radius: 12px; overflow: hidden; background: var(--ds-white); overflow-x: auto; }
.ds-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ds-table thead tr { background: var(--ds-forest); }
.ds-table th { font-family: var(--ds-font-body); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(248,240,228,.85); padding: 13px 18px; text-align: left; }
.ds-table td { padding: 14px 18px; color: var(--ds-ink); border-bottom: 1px solid var(--ds-hairline); vertical-align: top; line-height: 1.5; }
.ds-table tbody tr:last-child td { border-bottom: none; }
.ds-table tbody tr:hover { background: var(--ds-sage); }
.ds-table .num { font-variant-numeric: tabular-nums; font-family: var(--ds-font-mono); white-space: nowrap; }

/* ==========================================================================
   14. FAQ ACCORDION
   ========================================================================== */
.faq-list { border: 1px solid var(--ds-hairline); border-radius: 12px; overflow: hidden; background: var(--ds-white); }
.faq-item { border-bottom: 1px solid var(--ds-hairline); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--ds-font-body); font-size: 1.0625rem; font-weight: 600; color: var(--ds-forest); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .faq-icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .faq-icon::before, .faq-q .faq-icon::after { content: ""; position: absolute; background: var(--ds-green-dark); border-radius: 2px; transition: transform .2s; }
.faq-q .faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item[open] .faq-q .faq-icon::after, .faq-item.is-open .faq-q .faq-icon::after { transform: scaleY(0); }
.faq-a { padding: 0 24px 22px; color: var(--ds-ink); }
.faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   15. CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { margin-inline: auto; margin-bottom: 28px; color: rgba(248,240,228,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   16. NOTES / CALLOUTS
   ========================================================================== */
.note { background: var(--ds-sage); border: 1px solid var(--ds-hairline); border-left: 3px solid var(--ds-green); border-radius: 8px; padding: 16px 20px; }
.note p:last-child { margin-bottom: 0; }
.note-amber { border-left-color: var(--ds-amber); background: #fbf3df; }
.note-verify { border-left-color: var(--ds-amber); background: #fdf6e3; font-size: .9375rem; }
.note-verify code { font-family: var(--ds-font-mono); font-size: .85em; color: var(--ds-terracotta-dark); }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; aspect-ratio: 3 / 2; border: 1.5px dashed var(--ds-amber); border-radius: 14px; background: #fdf6e3; padding: 24px; }
.img-placeholder .icon-chip { margin-bottom: 4px; }
.img-placeholder-label { font-weight: 600; margin: 0; }
.img-placeholder-label code { font-family: var(--ds-font-mono); font-size: .85em; color: var(--ds-terracotta-dark); }
.img-placeholder-alt { font-size: .875rem; color: var(--ds-stone); max-width: 46ch; margin: 0; }
.img-placeholder-file { font-size: .8125rem; margin: 0; }
.img-placeholder-file code { font-family: var(--ds-font-mono); color: var(--ds-forest); }
.img-real { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }

.audio-summary { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.audio-summary .icon-chip { flex-shrink: 0; margin-bottom: 0; }
.audio-summary h3 { margin-bottom: 4px; }
.audio-summary audio { width: 100%; max-width: 420px; margin-top: 8px; }

/* ==========================================================================
   17. BREADCRUMBS
   ========================================================================== */
.breadcrumbs { font-size: .8125rem; color: var(--ds-stone); padding-block: 16px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--ds-hairline); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--ds-stone); }
.breadcrumbs [aria-current="page"] { color: var(--ds-ink); }

/* ==========================================================================
   18. FORMS
   ========================================================================== */
.ds-form { display: grid; gap: 18px; }
.ds-field { display: grid; gap: 6px; min-width: 0; }
.ds-field label { font-size: .875rem; font-weight: 600; color: var(--ds-forest); }
.ds-field .hint { font-size: .8125rem; color: var(--ds-stone); }
.ds-field input, .ds-field textarea, .ds-field select {
  width: 100%; min-width: 0; font-family: var(--ds-font-body); font-size: 1rem; color: var(--ds-ink);
  background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: 9px; padding: .8rem 1rem;
}
.ds-field input:focus, .ds-field textarea:focus, .ds-field select:focus { outline: none; border-color: var(--ds-green); box-shadow: 0 0 0 3px var(--ds-green-pale); }
.ds-field textarea { min-height: 120px; resize: vertical; }
.ds-form .reveal { display: none; }
.ds-form.is-expanded .reveal { display: grid; }

/* Multi-product rows + fetch preview (Get a Quote) */
.ds-products { display: grid; gap: 14px; }
.ds-product-row { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius-sm); background: var(--ds-white); }
.ds-product-row:only-child { padding: 0; border: none; background: none; }
.product-preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ds-ivory); border: 1px solid var(--ds-hairline); border-radius: 8px; }
.product-preview img { width: 56px; height: 56px; object-fit: contain; background: var(--ds-white); border-radius: 6px; flex-shrink: 0; }
.product-preview .pp-body { display: grid; gap: 2px; min-width: 0; }
.product-preview .pp-title { font-size: .875rem; font-weight: 600; color: var(--ds-forest); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-preview .pp-price, .product-preview .pp-status { font-size: .8125rem; color: var(--ds-stone); }
.ds-row-remove { justify-self: start; background: none; border: none; color: var(--ds-error); font-size: .8125rem; cursor: pointer; padding: 0; }
.ds-row-remove:hover { text-decoration: underline; }
.ds-add-product { display: block; width: 100%; padding: .8rem 1rem; background: var(--ds-sage); border: 1.5px dashed var(--ds-stone); border-radius: var(--ds-radius-sm); color: var(--ds-forest); font-family: inherit; font-size: .9375rem; font-weight: 600; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ds-add-product:hover, .ds-add-product:focus-visible { border-color: var(--ds-green-dark); background: var(--ds-green-pale); }
.ds-add-product .ds-add-product-hint { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--ds-stone); }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.photo-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--ds-hairline); background: var(--ds-white); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%; background: rgba(20,32,26,.65); color: var(--ds-white); font-size: 12px; line-height: 16px; cursor: pointer; }
.photo-thumb-remove:hover { background: var(--ds-error); }
.photo-thumbs-note { font-size: .8125rem; color: var(--ds-amber); }
.form-reassure { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--ds-stone); }
.form-reassure span { display: inline-flex; align-items: center; gap: 6px; }
.form-reassure span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ds-green-pale); flex-shrink: 0; }

/* star rating */
.stars { color: var(--ds-amber); letter-spacing: 2px; font-size: 1rem; }

/* Blog post comments (appended at end of every single post) */
.comments-area .section-head { margin-bottom: 32px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 20px; }
.comment-list .children { list-style: none; margin: 20px 0 0; padding: 0 0 0 28px; display: grid; gap: 20px; border-left: 2px solid var(--ds-hairline); }
.comment-list > li, .comment-list .comment { list-style: none; }
.comment-body { background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius); padding: 20px 24px; }
.comment-author.vcard { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author .avatar { border-radius: 50%; display: block; }
.comment-author .fn { font-style: normal; font-weight: 600; color: var(--ds-forest); }
.comment-metadata { font-size: .8125rem; color: var(--ds-stone); }
.comment-metadata a { color: inherit; }
.comment-content p:last-child { margin-bottom: 0; }
.comment .reply { margin-top: 10px; }
.comment-reply-link, .comment-edit-link { font-size: .8125rem; font-weight: 600; color: var(--ds-green-dark); }
.comment-awaiting-moderation { display: block; margin-top: 8px; font-size: .8125rem; color: var(--ds-amber); }
.comment-reply-title { margin-bottom: 4px; }
.comment-notes, #cancel-comment-reply-link { font-size: .8125rem; color: var(--ds-stone); }
.comment-form .form-submit { margin-top: 4px; }

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.site-footer { background: var(--ds-forest); color: rgba(248,240,228,.7); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px; }
.footer-brand .logo-mark { height: 42px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; color: rgba(248,240,228,.6); max-width: 30ch; }
.footer-col h4 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-ivory); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: .9375rem; color: rgba(248,240,228,.7); }
.footer-col a:hover { color: var(--ds-ivory); box-shadow: inset 0 -2px 0 var(--ds-green); }

/* Countries column: 12 lanes is too long next to 6–7-item siblings. Show the
   core 7 (matches the original brief) and fold the rest behind a toggle so
   every column reads about the same length. */
.footer-col-countries ul li:nth-child(n+8):not(:last-child) { display: none; }
.footer-col-countries.is-expanded ul li:nth-child(n+8):not(:last-child) { display: list-item; }
.footer-more-toggle {
  display: block; margin-top: 11px; background: none; border: none; padding: 0;
  font-family: var(--ds-font-body); font-size: .8125rem; font-weight: 600; color: var(--ds-green); cursor: pointer;
}
.footer-more-toggle::after { content: "+"; margin-left: 5px; }
.footer-col-countries.is-expanded .footer-more-toggle::after { content: "–"; }
.footer-more-toggle:hover { color: var(--ds-ivory); }

.footer-bottom { border-top: 1px solid var(--ds-forest-mid); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: .8125rem; color: rgba(248,240,228,.55); }
.footer-bottom a { color: rgba(248,240,228,.7); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; }
.footer-social svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-block: 48px; }
  .footer-brand p { max-width: none; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col ul { gap: 11px; }
  .footer-col a { font-size: 1rem; }
}

/* ==========================================================================
   20. WHATSAPP STICKY PILL
   ========================================================================== */
/* Collapsed to an icon by default so it doesn't cover footer links; the label
   slides open on hover/focus. The text stays in the DOM (not display:none) so
   it remains the button's accessible name when collapsed. */
.wa-pill { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 0; background: var(--ds-green); color: var(--ds-forest); font-weight: 600; font-size: .9375rem; padding: .7rem; border-radius: 100px; box-shadow: var(--ds-shadow-lg); transition: padding .28s ease, background .18s, color .18s; }
.wa-pill:hover, .wa-pill:focus-visible { box-shadow: var(--ds-shadow-lg); background: var(--ds-green-dark); color: var(--ds-ivory); padding-right: 1.15rem; }
.wa-pill svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-pill .wa-text { white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; margin-left: 0; transition: max-width .28s ease, opacity .2s ease, margin-left .28s ease; }
.wa-pill:hover .wa-text, .wa-pill:focus-visible .wa-text { max-width: 180px; opacity: 1; margin-left: 9px; }
@media (max-width: 600px) { .wa-pill { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .wa-pill, .wa-pill .wa-text { transition: none; } }

/* ==========================================================================
   21. MOBILE NAV OVERLAY
   ========================================================================== */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: var(--ds-ivory); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; display: flex; flex-direction: column; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--ds-hairline); }
.mobile-nav-close { background: none; border: none; font-size: 1.75rem; line-height: 1; color: var(--ds-forest); cursor: pointer; }
.mobile-nav-body { padding: 12px 24px 32px; }
.m-acc { border-bottom: 1px solid var(--ds-hairline); }
.m-acc > button, .m-acc > a { width: 100%; text-align: left; background: none; border: none; font-family: var(--ds-font-body); font-size: 1.125rem; font-weight: 600; color: var(--ds-forest); padding: 16px 0; cursor: pointer; display: block; }
.m-acc-panel { display: none; padding-bottom: 12px; }
.m-acc.is-open .m-acc-panel { display: block; }
.m-acc-panel a { display: block; padding: 8px 0 8px 14px; font-weight: 500; color: var(--ds-ink); }
.mobile-nav-actions { margin-top: 24px; display: grid; gap: 18px; }
/* .btn-whatsapp carries no padding of its own — give it Get a Quote's height. */
.mobile-nav-actions .btn-whatsapp { padding-block: .85rem; }

@media (max-width: 1024px) {
  .primary-nav, .header-actions .header-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}

/* ==========================================================================
   21b. COUNTRIES HUB  (searchable flat directory — centre-aligned)
   ========================================================================== */
.countries-hub-hero { text-align: center; }
.countries-hub-hero .lede { margin-inline: auto; }

.country-search { position: relative; max-width: 480px; margin: 0 auto 28px; }
.country-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ds-stone); display: inline-flex; pointer-events: none; }
.country-search input { width: 100%; font-family: var(--ds-font-body); font-size: 1rem; color: var(--ds-ink); background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius-sm); padding: .85rem 1rem .85rem 2.85rem; box-shadow: var(--ds-shadow-sm); transition: border-color .18s, box-shadow .18s; }
.country-search input::placeholder { color: var(--ds-stone); }
.country-search input:focus { outline: none; border-color: var(--ds-green); box-shadow: 0 0 0 3px var(--ds-green-pale); }
.country-search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	height: 16px;
	width: 16px;
	margin-right: 2px;
	cursor: pointer;
	background-color: var(--ds-stone);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* Country card — one shared style; transit snippet when data exists, else minimal. */
.country-card .flag-chip { margin-bottom: 12px; }
.country-card .cc-name { font-size: 1.125rem; margin: 0 0 6px; }
.country-card.is-minimal .cc-name { margin-bottom: 12px; }
.cc-transit { margin: 0; font-size: .9375rem; color: var(--ds-stone); display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.cc-arrow { display: inline-block; margin-top: 12px; color: var(--ds-green-dark); font-size: 1.125rem; line-height: 1; transition: transform .18s; }
.card-link:hover .cc-arrow { transform: translateX(3px); }

/* Centre the shared country-card content on the hub only (homepage/related-lists unchanged). */
.country-directory .card-link { text-align: center; }
.country-directory .flag-chip { justify-content: center; }
.country-directory .cc-transit { align-items: center; }

/* Cards without air/sea transit text are shorter than their siblings — without
   this, CSS Grid's default row stretch forces them to match the tallest card
   in the row, leaving a large dead gap below the arrow. Size each card to its
   own content instead. */
.country-directory .grid { align-items: start; }

.country-noresults { font-size: 1.0625rem; color: var(--ds-ink); margin-top: 8px; text-align: center; }

.is-hidden { display: none !important; }

/* ==========================================================================
   21c. HOMEPAGE GLOBAL-REACH BAND  (canvas globe — real coastlines via d3-geo)
   ========================================================================== */
.world-band { align-items: center; }
.world-band-art { display: flex; justify-content: center; }
.globe { width: 100%; max-width: 400px; aspect-ratio: 1; }
.globe canvas { display: block; filter: drop-shadow(0 14px 34px rgba(20,32,26,.14)); }
@media (max-width: 980px) { .globe { max-width: 320px; } }

/* ==========================================================================
   21d. HOMEPAGE SHARE METHODS  (forest band — 3-col input-method strip)
   ========================================================================== */
.share-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.share-method { padding: 40px 36px; }
.share-method + .share-method { border-left: 1px solid rgba(248,240,228,.12); }
.share-method-num { font-family: var(--ds-font-display); font-size: 3rem; font-weight: 600; color: var(--ds-green); line-height: 1; margin-bottom: 24px; }
.share-method h3 { font-size: 1.25rem; color: var(--ds-ivory); margin-bottom: .5em; }
.share-method p { color: rgba(248,240,228,.7); margin-bottom: 0; max-width: 38ch; }
@media (max-width: 720px) {
  .share-methods { grid-template-columns: 1fr; }
  .share-method + .share-method { border-left: none; border-top: 1px solid rgba(248,240,228,.12); }
}

/* ==========================================================================
   22. UTILITIES
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ds-forest); color: var(--ds-ivory); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; box-shadow: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.toc { background: var(--ds-white); border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 20px 24px; }
.toc h4 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-stone); }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { font-weight: 500; }
.last-updated { font-size: .8125rem; color: var(--ds-stone); font-style: italic; }
