/*
 * Destination pages: /esim/{country}/
 *
 * These 228 pages are the site's search surface, so they carry the same design
 * as the homepage rather than the host theme's defaults. The template renders a
 * whole document and the theme's stylesheets are dequeued for these requests,
 * so everything the page needs is here — tokens included.
 *
 * Token values are kept identical to the built homepage on purpose: a visitor
 * arriving from search and then clicking through to the hub should not feel a
 * seam.
 */

:root {
  --bg:         #F7F7F4;
  --card:       #FFFFFF;
  --card-2:     #F3F3EF;
  --line:       #E4E4DD;
  --line-2:     #EFEFE9;
  --ink:        #14171A;
  --ink-2:      #444B52;
  --muted:      #767D84;

  --brand:      #07684C;
  --brand-2:    #0A8A63;
  --brand-ink:  #FFFFFF;
  --brand-soft: #E3F1EB;
  --brand-edge: #B6D8C9;

  --gold:       #8A5F07;
  --gold-soft:  #FBEFD4;
  --save:       #0E8A45;

  --wash: radial-gradient(1100px 420px at 18% -18%, rgba(10,138,99,.13), transparent 62%),
          radial-gradient(900px 380px at 92% -12%, rgba(10,138,99,.07), transparent 60%);

  --sh-1: 0 1px 2px rgba(20,23,26,.05);
  --sh-2: 0 2px 5px rgba(20,23,26,.05), 0 10px 22px rgba(20,23,26,.06);
  --sh-3: 0 8px 20px rgba(20,23,26,.08), 0 26px 60px rgba(20,23,26,.12);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;

  --r:    18px;
  --r-sm: 11px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0F1315;
    --card:       #171C1F;
    --card-2:     #1D2427;
    --line:       #283034;
    --line-2:     #222A2D;
    --ink:        #EAEEF0;
    --ink-2:      #B4BDC3;
    --muted:      #848D94;
    --brand:      #45CE9C;
    --brand-2:    #35B98A;
    --brand-ink:  #05231A;
    --brand-soft: #123024;
    --brand-edge: #1F4E3C;
    --gold:       #DFAF57;
    --gold-soft:  #2C2413;
    --save:       #33C46F;
    --wash: radial-gradient(1100px 420px at 18% -18%, rgba(69,206,156,.13), transparent 62%),
            radial-gradient(900px 380px at 92% -12%, rgba(69,206,156,.07), transparent 60%);
    --sh-1: 0 1px 2px rgba(0,0,0,.45);
    --sh-2: 0 2px 6px rgba(0,0,0,.5), 0 10px 24px rgba(0,0,0,.4);
    --sh-3: 0 8px 22px rgba(0,0,0,.55), 0 26px 62px rgba(0,0,0,.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: min(1120px, 100% - 28px); } }

/* ================================ header ================================ */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.mark-icon { display: block; width: 26px; height: 32px; object-fit: contain; }
.mark-text { font-size: 16.5px; font-weight: 800; letter-spacing: -0.035em; }
.mark-text i { font-style: normal; color: var(--brand-2); }
.bar-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar-link {
  text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px;
  background: var(--card); transition: border-color .14s, color .14s;
}
.bar-link:hover { border-color: var(--brand-2); color: var(--brand); }
.bar-link.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bar-link.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--brand-ink); }
@media (max-width: 620px) { .bar-link.secondary { display: none; } }

/* ================================= hero ================================= */
.hero { background: var(--wash); padding: 26px 0 96px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }
.crumbs .sep { opacity: .5; }

.hero h1 {
  margin: 0; font-size: clamp(32px, 6vw, 54px); line-height: 1.03;
  font-weight: 800; letter-spacing: -0.045em;
}
.hero .sub { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust div {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 13px; font-size: 12.5px; color: var(--muted); box-shadow: var(--sh-1);
}
.trust b {
  font-family: var(--mono); font-weight: 500; font-size: 14px;
  color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.trust .live b { color: var(--brand); }
.trust .live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
  align-self: center; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-2) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(10,138,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(10,138,99,0); }
}

/* =============================== top pick =============================== */
main { padding-bottom: 20px; }
.lift { margin-top: -66px; position: relative; z-index: 2; }
.pick-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: -1px; margin-left: 4px;
  background: var(--brand); color: var(--brand-ink);
  border-radius: 10px 10px 0 0; padding: 7px 15px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.pick-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pick {
  background: var(--card); border: 1px solid var(--brand-edge);
  border-radius: 0 var(--r) var(--r) var(--r); box-shadow: var(--sh-3);
  padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
}
@media (max-width: 620px) { .pick { grid-template-columns: 1fr; gap: 16px; padding: 18px; } }
.pick-id { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; box-shadow: var(--sh-1);
}
.pick-name { font-size: 21px; font-weight: 800; letter-spacing: -0.032em; }
.pick-plan { color: var(--muted); font-size: 13.5px; }
.pick-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.pill {
  border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2);
  border-radius: 100px; padding: 3px 10px; font-size: 11.5px; font-weight: 600;
}
.pill.good { border-color: var(--brand-edge); background: var(--brand-soft); color: var(--brand); }
.pill.warn { border-color: transparent; background: var(--gold-soft); color: var(--gold); }
.pick-buy { text-align: right; }
@media (max-width: 620px) { .pick-buy { text-align: left; } }
.pick-price {
  font-family: var(--mono); font-size: 38px; font-weight: 500;
  letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.pick-rate { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.cta {
  display: inline-block; margin-top: 14px; padding: 12px 26px; border-radius: 100px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 700; font-size: 14.5px; box-shadow: var(--sh-1);
  transition: background .14s, transform .14s;
}
.cta:hover { background: var(--brand-2); color: var(--brand-ink); transform: translateY(-1px); }

/* =============================== sections =============================== */
section { padding: 32px 0; }
h2.sec { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.032em; }
.lede { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; max-width: 66ch; }
.answer, .ces-answer, .ces-stats {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand-2);
  border-radius: var(--r-sm); padding: 16px 18px; color: var(--ink-2); font-size: 15px; max-width: 78ch;
}

/* ================================ tables ================================ */
.ces-table-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ces-title { margin: 0 0 .6rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.ces-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.ces-table th, .ces-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.ces-table thead th {
  background: var(--card-2); border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding-top: 10px; padding-bottom: 10px; white-space: nowrap;
}
.ces-table tbody tr:last-child td { border-bottom: 0; }
.ces-table tbody tr { transition: background .14s; }
.ces-table tbody tr:hover { background: var(--card-2); }

.ces-provider { font-weight: 700; font-size: 14.5px; letter-spacing: -0.015em; }
.ces-price { font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ces-unit  { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.ces-per   { font-weight: 400; color: var(--muted); font-size: .85em; }
.ces-net   { color: var(--ink-2); font-size: 13px; }
.ces-speed {
  display: inline-block; margin-left: .3rem; padding: 2px 7px; border-radius: 100px;
  background: var(--brand-soft); border: 1px solid var(--brand-edge);
  font-size: 10.5px; font-weight: 700; color: var(--brand);
}
.ces-cta {
  display: inline-block; padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 12.5px; white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.ces-cta:hover, .ces-cta:focus { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ces-meta { margin-top: .6rem; font-size: 12.5px; color: var(--muted); }
.ces-empty { padding: 30px 18px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }

/* The cheapest row is the answer most readers came for. */
.ces-table tbody tr:first-child .ces-unit { color: var(--save); font-weight: 500; }

/* ================================== faq ================================= */
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }
.qa-i { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.qa-i h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em; }
.qa-i p { margin: 0; color: var(--ink-2); font-size: 14px; }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 0; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.glossary > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.glossary dt { font-weight: 800; font-size: 13.5px; letter-spacing: -0.015em; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }

/* ================================ footer ================================ */
.foot { border-top: 1px solid var(--line); margin-top: 26px; padding: 30px 0 44px; background: var(--card-2); }
.foot h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; letter-spacing: -0.028em; }
.dests { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 12px 0 20px; }
.dests a { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.dests a:hover { color: var(--brand); text-decoration: underline; }
.fine { margin: 0; font-size: 12px; color: var(--muted); max-width: 88ch; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.foot-bar a { color: var(--ink-2); text-decoration: none; }
.foot-bar a:hover { color: var(--brand); }

/* Nothing on this page should ever push the body sideways. */
body { overflow-x: hidden; }
