/* app/globals.css */
/* Livdar design system.
   Light, quiet, a lot of air, one warm accent borrowed from airport wayfinding.
   Sans for the interface, serif for anything that is actually read. */

:root {
  --ground: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #14161a;
  --muted: #5a6068;
  --faint: #8c9199;
  --line: #e4e2dd;
  --line-strong: #cfccc4;
  --accent: #c2491a;
  --accent-ink: #ffffff;
  --accent-soft: #fbeee7;
  --ok: #17614f;
  --warn: #8a5a06;
  --warn-soft: #fdf4e3;

  --ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --read: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 10px;
  --radius-sm: 6px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1113;
    --surface: #17191c;
    --surface-2: #1f2226;
    --ink: #eceae5;
    --muted: #a3a8ae;
    --faint: #7c828a;
    --line: #2a2e33;
    --line-strong: #3a3f46;
    --accent: #f0764a;
    --accent-ink: #1a0d06;
    --accent-soft: #2a1811;
    --ok: #63c0a8;
    --warn: #dda94f;
    --warn-soft: #2e2313;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0f1113;
  --surface: #17191c;
  --surface-2: #1f2226;
  --ink: #eceae5;
  --muted: #a3a8ae;
  --faint: #7c828a;
  --line: #2a2e33;
  --line-strong: #3a3f46;
  --accent: #f0764a;
  --accent-ink: #1a0d06;
  --accent-soft: #2a1811;
  --ok: #63c0a8;
  --warn: #dda94f;
  --warn-soft: #2e2313;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(248, 250, 253, 0.92);
  backdrop-filter: saturate(150%) blur(24px);
  border-bottom: 1px solid rgba(224, 228, 235, 0.9);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.045em;
  flex: none;
}
.brand-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}
.brand-sub {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.main-nav {
  display: none;
  margin-left: auto;
  gap: 22px;
  font-size: 14px;
  font-weight: 850;
}
.main-nav a {
  position: relative;
  color: #777b81;
}
.main-nav a:hover { color: var(--ink); }
/* The active item is marked by a rule under it rather than by colour alone, so
 * it survives a reader who cannot separate those two greys. */
.main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -19px;
  left: 0;
  height: 2px;
  background: var(--ink);
}
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-tools { margin-left: 18px; }
}

/* Navigation below 900px.
 *
 * This used to be display none with nothing to replace it, and no hamburger
 * anywhere in the markup, which meant that on every phone and every small
 * tablet the header carried a logo and a language selector and nothing else.
 * The whole site was unreachable from the top of the page. On a shop, where
 * most of the traffic is a phone, that is not a styling detail.
 *
 * The replacement is a scrolling category strip rather than a hidden menu
 * behind a button, for two reasons: it needs no JavaScript, so it cannot fail
 * to hydrate, and a shop should show its departments rather than filing them
 * behind an icon. The strip is horizontally scrollable so it survives any
 * number of entries and any language, including the German and Romanian labels
 * that are considerably longer than the English ones. */
@media (max-width: 899.98px) {
  .header-row {
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    row-gap: 0;
  }
  .brand { order: 1; }
  .header-tools { order: 2; margin-left: auto; }
  .main-nav {
    order: 3;
    display: flex;
    /* Not 100%. A percentage basis resolves against the row's content box,
     * which is already inset by the gutter on both sides, so a 100% basis plus
     * a negative gutter margin bleeds off the left edge and then stops a full
     * gutter short of the right one, leaving the top border hanging in mid air.
     * The basis has to buy back both gutters for the strip to span the screen. */
    flex-basis: calc(100% + var(--gutter) * 2);
    margin-left: 0;
    gap: 0;
    font-size: 15px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
    /* Full bleed, so the strip reads as a bar rather than a stranded row and
     * the last item scrolls off the edge instead of stopping short of it. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .main-nav a:first-child { padding-inline-start: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
}

/* Language globe */

.globe {
  position: relative;
  flex: none;
}
.globe-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.globe-button:hover { border-color: var(--ink); }
.globe-code { text-transform: uppercase; letter-spacing: 0.04em; }
.globe-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 194px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(10, 12, 16, 0.14);
  padding: 6px;
  z-index: 50;
}
.globe-menu li { list-style: none; }
.globe-menu ul { margin: 0; padding: 0; }
.globe-menu a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.globe-menu a:hover { background: var(--surface-2); }
.globe-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.globe-menu .endonym { color: var(--muted); font-size: 12.5px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Hero */

.hero { padding-block: 46px 30px; }
.kicker {
  /* Was 11.5px. Below twelve, a 0.16em tracked uppercase line stops being
   * comfortably readable on a phone, and this one is the first text on the
   * page. */
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(32px, 7.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 16px;
  text-wrap: balance;
  max-width: 17ch;
}
.hero-lead {
  font-family: var(--read);
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Search */

.search { position: relative; margin: 26px 0 8px; max-width: 620px; }
.search-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 4px 6px 4px 14px;
}
.search-field:focus-within { border-color: var(--accent); }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  height: 50px;
  outline: none;
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(10, 12, 16, 0.16);
  max-height: 340px;
  overflow-y: auto;
  z-index: 30;
  padding: 6px;
}
.search-results ul, .search-results li { margin: 0; padding: 0; list-style: none; }
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
}
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); }
.search-results .meta { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.search-empty { padding: 14px 12px; color: var(--muted); font-size: 14.5px; }

/* Sections */

section { padding-block: 34px; }
.section-head { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(21px, 3.4vw, 27px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  min-width: 0;
}
a.tile:hover { border-color: var(--line-strong); }
.tile h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile .meta { color: var(--faint); font-size: 12.5px; margin-top: 8px; display: block; }

.dest-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
}
.dest-tile strong { font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; }
.dest-tile .code { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

.steps { counter-reset: step; }
.steps .tile { position: relative; padding-top: 38px; }
.steps .tile::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* Editorial */

.article { max-width: 720px; }
.article h1 {
  font-size: clamp(28px, 5.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 14px;
  text-wrap: balance;
}
.article h2 {
  font-size: clamp(19px, 3vw, 24px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 34px 0 10px;
  text-wrap: balance;
}
.article h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.article p {
  font-family: var(--read);
  font-size: 17.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.article .lead { font-size: 19px; color: var(--muted); }
.article ul { padding-left: 20px; }
.article li { font-family: var(--read); font-size: 17px; margin-bottom: 6px; }

.factbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 24px;
}
.factbar div { min-width: 0; }
.factbar dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 2px;
}
.factbar dd { margin: 0; font-size: 14.5px; font-weight: 600; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 22px 0;
}
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout p { font-family: var(--ui); font-size: 15px; margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-weight: 700; }

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin: 26px 0;
}
.inline-cta p { font-family: var(--ui); font-size: 15px; margin: 0; flex: 1 1 220px; min-width: 0; }

/* Plans */

.plan-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}
.plan-state h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.plan-state p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.plan-skeleton { display: grid; gap: 10px; margin-bottom: 16px; }
.plan-skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--faint);
  font-size: 14px;
}
.plan-skeleton-row span:first-child { font-weight: 600; color: var(--muted); }

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 28px 13px 0;
  font-weight: 650;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { font-family: var(--read); font-size: 16.5px; margin: 0 0 14px; color: var(--muted); }

/* Breadcrumb */

.crumbs { font-size: 13px; color: var(--faint); padding-block: 14px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; }

/* Footer */

/* V41 keeps the supplied marketplace intact. These sections carry forward the
   authored SEO copy and crawlable internal links that existed before V41. */
.v41-seo-content { background: #fff; color: #111; }
.v41-seo-content .section { padding-block: 20px; }
.seo-copy-grid,
.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.seo-copy-card,
.seo-link-card {
  border: 1px solid #e6e8ec;
  background: linear-gradient(180deg, #fff, #f8f9fa);
  border-radius: 16px;
}
.seo-copy-card { min-height: 150px; padding: 18px; }
.seo-copy-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.025em; }
.seo-copy-card p { margin: 0; color: #72767e; font-size: 13px; line-height: 1.55; }
.seo-steps { counter-reset: none; }
.seo-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.seo-link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seo-link-card {
  min-height: 72px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.seo-link-card:hover { border-color: #bcc1c9; }
.seo-link-card > span:nth-child(2) { min-width: 0; flex: 1; }
.seo-link-card strong { display: block; font-size: 13px; line-height: 1.2; }
.seo-link-card small { display: block; margin-top: 4px; color: #858991; font-size: 10px; line-height: 1.3; }
.seo-link-flag { font-size: 24px; flex: 0 0 auto; }
.seo-link-arrow { color: #9da1a8; font-size: 22px; }
.seo-directory-group + .seo-directory-group { margin-top: 14px; }
.seo-directory-group h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.015em; }
.seo-directory-group h3 a { color: inherit; }
.seo-directory-group .seo-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-directory-group .seo-link-card small { font-size: 11.5px; line-height: 1.4; }
.v41-faq .faq { padding: 0; }
.v41-faq .faq summary { font-size: 14px; }
.v41-faq .faq p { font-family: inherit; font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .seo-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .seo-copy-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .seo-copy-grid::-webkit-scrollbar { display: none; }
  .seo-copy-card { flex: 0 0 78vw; min-width: 270px; scroll-snap-align: start; }
  .seo-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .seo-link-card { min-height: 68px; padding: 10px; }
  .seo-directory-group .seo-link-grid { grid-template-columns: 1fr; }
}


.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding-block: 32px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14.5px;
}
.footer-cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-cols h4 {
  /* Was 11px, which is under the floor we hold every other page to. */
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { margin-bottom: 7px; }
.footer-cols a:hover { color: var(--ink); }
/* On a phone the footer is the second navigation, so its links have to be
 * tappable rather than merely present. An eighteen pixel inline link is below
 * the twenty four pixel minimum and sits seven pixels from its neighbour, which
 * is how you mis-tap Privacy when you wanted Cookies. */
@media (max-width: 899.98px) {
  .footer-cols li { margin-bottom: 0; }
  .footer-cols li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}
.footer-note { margin-top: 26px; font-size: 13px; color: var(--faint); max-width: 70ch; }

/* Consent */

.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(10, 12, 16, 0.2);
  padding: 16px 18px;
  max-width: 460px;
}
.consent h2 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.consent p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { min-height: 42px; font-size: 14px; flex: 1 1 auto; }
.consent-prefs { margin: 0 0 12px; display: grid; gap: 8px; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.consent-row input { margin-top: 3px; }
.consent-row span { color: var(--muted); font-size: 12.5px; display: block; }

/* Utility */

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.muted { color: var(--muted); }
.stack > * + * { margin-top: 10px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 34px 0; }

/* Shop surface. The plan card is deliberately the same shape whether a supplier
   is connected or not, so the unavailable state reads as an empty shelf rather
   than as a broken page. */
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plan-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.plan-card .plan-skeleton {
  margin: 0;
  flex: 1 1 auto;
}
.plan-card .btn {
  margin-top: auto;
}
.plan-state[data-stage] {
  scroll-margin-top: 24px;
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* app/shop.css */
/* Shop surface.
 *
 * Written from the measured design rather than copied from it. The prototype
 * arrived as forty one generations of patches: 2,938 rules, 2,806 of them
 * carrying !important, and single selectors redefined up to nineteen times.
 * Copying that would have made every later change a fight, so the prototype was
 * rendered headless and its computed styles were read off the elements. What is
 * below is what the design actually resolves to, expressed once.
 *
 * Mobile first. Every value here came off the real design; where the prototype
 * disagreed with itself between breakpoints, the wider layout won and the
 * narrow one was derived from it.
 */

.shop {
  --shop-gap: 3px;
  --shop-radius: 22px;
  --shop-ink: #11151d;
  --shop-dim: #73777f;
  --shop-hair: #e3e7ee;
  --shop-veil: rgba(255, 255, 255, 0.96);
}

/* The page sits on a cool wash that fades out just below the fold. It is what
 * separates the sticky header from the content behind it without a hard line. */
.shop-page {
  background-image: linear-gradient(#f6f8fc 0, #ffffff 280px, #ffffff 100%);
}

/* Search ------------------------------------------------------------------ */

.shop-search {
  padding: 12px 0 0;
}

.shop-searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 7px 0 12px;
  border: 1px solid var(--shop-hair);
  border-radius: var(--shop-radius);
  background: var(--shop-veil);
  box-shadow: 0 4px 12px rgba(27, 39, 58, 0.035);
}

.shop-searchbox svg {
  flex: 0 0 auto;
  color: #8a8f98;
}

.shop-searchbox input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px; /* 16px so iOS does not zoom the page on focus */
  letter-spacing: -0.01em;
}

@media (min-width: 600px) {
  .shop-searchbox input { font-size: 14px; }
}

.shop-search-action {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #2a2f38;
  cursor: pointer;
}

/* Supplier rail ----------------------------------------------------------- */

.shop-rings {
  display: flex;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Bleed to the viewport edge so the row reads as scrollable on a phone. */
  margin-inline: calc(var(--gutter, 14px) * -1);
  padding-inline: var(--gutter, 14px);
}

.shop-rings::-webkit-scrollbar { display: none; }

.shop-ring {
  flex: 0 0 auto;
  width: 76px;
  padding: 2px 0 6px;
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
}

.shop-ring-halo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 2px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c1, #cfd4dc), var(--c2, #eef1f5));
}

.shop-ring-core {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c1, #9aa1ad), var(--c2, #cfd4dc));
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.shop-ring[aria-pressed='true'] .shop-ring-halo {
  box-shadow: 0 0 0 2px #11151c;
}

.shop-ring-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--shop-dim);
}

/* Filter chips ------------------------------------------------------------ */

.shop-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 9px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter, 14px) * -1);
  padding-inline: var(--gutter, 14px);
}

.shop-chips::-webkit-scrollbar { display: none; }

.shop-chip {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 17px;
  border: 1px solid var(--shop-hair);
  border-radius: 999px;
  background: #fff;
  color: #2b313a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
}

.shop-chip[aria-pressed='true'] {
  border-color: transparent;
  background: linear-gradient(#3e4550, #11151c);
  color: #fff;
  box-shadow: 0 7px 15px rgba(31, 45, 67, 0.15);
}

/* Toolbar ----------------------------------------------------------------- */

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 12px;
}

.shop-count {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--shop-ink);
}

.shop-toolbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--shop-hair);
  border-radius: 999px;
  background: #fff;
  color: var(--shop-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

/* The demo notice. Part of the shop, not a decoration: the catalogue below is
 * illustrative, and the reader is told so before the first price, in the same
 * visual block as the prices rather than in a footnote nobody reaches. */
.shop-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: #fff8ef;
  color: #6b4a1d;
  font-size: 12px;
  line-height: 1.45;
}

.shop-notice strong { font-weight: 900; }

/* Plan grid --------------------------------------------------------------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--shop-gap);
}

@media (min-width: 700px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

.plan-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c1, #6c727c), var(--c2, #aeb4be));
  color: #fff;
}

/* The photograph, when there is one. It sits under the scrim, never over it,
 * and it is allowed to be absent: a destination with no licensed image of its
 * own falls back to the card's own gradient rather than borrowing a photo of
 * somewhere else, which is what the prototype did for a hundred and six of its
 * hundred and eighteen countries. */
.plan-card img {
  /* next/image with fill already positions and sizes this. The rule stays as
   * the floor, so a card still looks right if the image ever renders before
   * the framework's own styles apply. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 10, 15, 0.01) 12%, rgba(7, 10, 15, 0.06) 44%, rgba(7, 10, 15, 0.88) 100%);
  pointer-events: none;
}

.plan-card-top {
  position: absolute;
  inset: 10px 10px auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #14181f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The demo marker rides on the card itself. It is rendered by the component
 * unconditionally, so there is no prop and no branch that can produce a priced
 * card without it. */
.plan-badge-demo {
  background: rgba(20, 24, 31, 0.82);
  color: #fff;
  letter-spacing: 0.14em;
}

.plan-save {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #14181f;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.plan-card-bottom {
  position: absolute;
  inset: auto 10px 9px;
  z-index: 2;
  display: grid;
  gap: 5px 8px;
  align-items: end;
}

.plan-title-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.plan-title-wrap { min-width: 0; }

.plan-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-flag {
  margin-right: 5px;
  font-size: 20px;
  line-height: 20px;
}

.plan-supplier {
  margin-top: 3px;
  font-size: 10px;
  line-height: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.plan-price-stack {
  display: grid;
  gap: 5px;
  justify-items: end;
  margin-left: auto;
  text-align: right;
}

.plan-price {
  font-size: 14px;
  font-weight: 900;
  line-height: 14px;
  white-space: nowrap;
}

.plan-view {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.plan-meta span {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.34);
  font-size: 8px;
  line-height: 8px;
  white-space: nowrap;
}

.shop-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--shop-dim);
}

.shop-more {
  display: flex;
  justify-content: center;
  padding: 22px 0 6px;
}

/* Section headings -------------------------------------------------------- */

.shop-section { margin-top: 34px; }

.shop-section-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.shop-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

@media (min-width: 700px) {
  .shop-section-head h2 { font-size: 28px; letter-spacing: -0.055em; }
}

.shop-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--shop-dim);
}

.shop-section-head .shop-pill { margin-left: auto; }

/* Buy in three steps ------------------------------------------------------ */

.buy-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .buy-steps { grid-template-columns: repeat(3, 1fr); }
}

.buy-step {
  padding: 18px;
  border: 1px solid #dfe6ed;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--tint, #fff7fa) 0%, #ffffff 78%);
  box-shadow: 0 9px 22px rgba(24, 39, 59, 0.035);
}

.buy-step-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint-strong, #ffd7e0);
  color: var(--tint-ink, #df456e);
  font-size: 15px;
  font-weight: 950;
}

.buy-step h3 {
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.buy-step p {
  margin: 0;
  font-size: 13px;
  color: var(--shop-dim);
}

/* Destination and region rails -------------------------------------------- */

.dest-rail {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .dest-rail { grid-template-columns: repeat(2, 1fr); }
}

.dest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid #edeff3;
  border-radius: 14px;
  background: #fff;
}

.dest-row-flag { font-size: 22px; line-height: 1; }

.dest-row strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.dest-row span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-dim);
}

.region-rail {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .region-rail { grid-template-columns: repeat(2, 1fr); }
}

.region-card {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--c1, #5b6270), var(--c2, #9aa2b0));
  color: #fff;
}

.region-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 10, 15, 0.02) 30%, rgba(7, 10, 15, 0.72) 100%);
}

.region-copy {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 2;
}

.region-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.region-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

/* Travel tools ------------------------------------------------------------ */

.tools-shell {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 22px 18px;
  border: 1px solid #e6eaf1;
  border-radius: 26px;
  background: #fbfcfe;
}

.tools-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.tools-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--shop-dim);
}

.tools-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 0;
}

@media (min-width: 760px) {
  .tools-tabs { grid-template-columns: repeat(4, 1fr); }
}

.tools-tab {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 10px;
  border: 1px solid #e6eaf1;
  border-radius: 18px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: var(--shop-ink);
  text-align: center;
  cursor: pointer;
}

.tools-tab[aria-selected='true'] {
  border-color: #b9d2ff;
  box-shadow: 0 0 0 2px rgba(120, 165, 255, 0.25);
}

.tools-tab-icon { font-size: 26px; line-height: 1; }

.tools-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e6eaf1;
  border-radius: 20px;
  background: #fff;
}

.tools-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tools-panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tools-panel-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--shop-dim);
}

.tools-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

.tool-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e9ecf1;
  border-radius: 16px;
  background: #fbfcfe;
}

.tool-field-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--shop-dim);
}

.tool-field-value {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tool-field input,
.tool-field select {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--shop-ink);
}

.tool-field select { cursor: pointer; }

.tool-switch { justify-content: space-between; }
.tool-switch small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--shop-dim);
}
.tool-switch input { width: 22px; height: 22px; flex: none; }

.tool-stepper {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.tool-stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e4e8ee;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tool-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e3ebff;
  border-radius: 18px;
  background: #f5f8ff;
}

.tool-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
}

.tool-result-total {
  padding-top: 8px;
  border-top: 1px solid #dbe5fb;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.tool-note {
  margin: 0;
  font-size: 11px;
  color: var(--shop-dim);
}

.tool-big-result {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.tool-advice-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tool-advice-list article {
  padding: 13px 14px;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  background: #fbfcfe;
}

.tool-advice-list p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--shop-dim);
}

.tool-card-layout { display: grid; gap: 14px; }
@media (min-width: 760px) {
  .tool-card-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); align-items: start; }
}

.tool-card-actions { display: grid; gap: 8px; }
.tool-secondary {
  min-height: 44px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #fff;
  color: var(--shop-ink);
  font-weight: 850;
  cursor: pointer;
}

.tool-card-preview {
  overflow: hidden;
  border-radius: 20px;
  background: #171b28;
  box-shadow: 0 14px 32px rgba(35, 28, 80, .16);
}

.tool-card-preview canvas { display: block; width: 100%; height: auto; }

.tool-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(100deg, #0d1117, #1d3a63);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
}

/* Detail sheet ------------------------------------------------------------ */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  background: rgba(10, 13, 20, 0.45);
}

@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; justify-items: center; }
}

.sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 18px;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

@media (min-width: 700px) {
  .sheet {
    max-width: 460px;
    border-radius: 24px;
  }
}

.sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #dfe3ea;
}

.sheet h2 {
  margin: 0 0 2px;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.sheet-supplier {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--shop-dim);
}

.sheet-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.sheet-fact {
  padding: 12px;
  border: 1px solid #edeff3;
  border-radius: 14px;
  text-align: center;
}

.sheet-fact strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sheet-fact span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-dim);
}

.sheet-actions { display: grid; gap: 8px; margin-top: 14px; }

/* Available to screen readers, absent from the screen. Used where a control is
 * obvious to look at and nameless to listen to, such as the sort menu whose
 * visible label is the current value rather than what the control does. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Respect a reader who has asked the system to stop moving things. */
@media (prefers-reduced-motion: reduce) {
  .shop-rings,
  .shop-chips {
    scroll-behavior: auto;
  }
}

/* A visible focus ring on every interactive thing in the shop. The design did
 * not have one; a keyboard user without it cannot tell where they are. */
.shop :is(button, a, input, select):focus-visible,
.tools-shell :is(button, a, input, select):focus-visible,
.dest-row:focus-visible,
.region-card:focus-visible {
  outline: 2px solid #1f4fd8;
  outline-offset: 2px;
}

/* app/atlas.css */
/* Livdar Atlas pages. Every rule is scoped to .atlas so nothing here can reach
 * an eSIM page. The new design replaces this file and AtlasPage.jsx. */
.atlas .atlas-wrap { max-width: 780px; padding-top: 18px; padding-bottom: 48px; }
.atlas .atlas-crumbs { font-size: 14px; color: var(--muted, #5d636d); margin: 6px 0 8px; }
.atlas .atlas-crumbs a { color: inherit; }
.atlas h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.15; margin: 6px 0 18px; }
.atlas h2 { font-size: 22px; margin: 30px 0 8px; }
.atlas p { line-height: 1.65; }
.atlas .atlas-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; background: #fff; border: 1px solid var(--line, #e4e6ea); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.atlas .atlas-facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5d636d); }
.atlas .atlas-facts dd { margin: 0; font-weight: 600; }
.atlas .atlas-table { overflow-x: auto; }
.atlas table { border-collapse: collapse; width: 100%; font-size: 15px; }
.atlas th, .atlas td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line, #e4e6ea); white-space: nowrap; }
.atlas tr.current td { font-weight: 700; }
.atlas .atlas-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.atlas .atlas-links a { display: block; background: #fff; border: 1px solid var(--line, #e4e6ea); border-radius: 10px; padding: 10px 14px; color: inherit; text-decoration: none; font-weight: 600; }
.atlas details { border-bottom: 1px solid var(--line, #e4e6ea); padding: 10px 0; }
.atlas summary { font-weight: 700; cursor: pointer; }
.atlas .atlas-sources { font-size: 14px; color: var(--muted, #5d636d); }

/* Calls to action, and the tool.
 *
 * The brief for these was mostly a list of things not to build: no giant
 * marketing box, nothing that interrupts the prose, nothing that looks bolted
 * on. So they are the width of the text they sit in, they use the same pill the
 * rest of Livdar uses, and the supporting line is one line at the size of the
 * small print rather than a paragraph of persuasion.
 *
 * Mobile first, and mobile is where this matters: the two calls to action stack,
 * the pill is full width and taller than the forty four pixel tap target, and
 * the secondary one reads as a second option rather than a second shout. From
 * the width where two pills fit side by side they sit side by side, with the
 * supporting line under each. */
.atlas .atlas-cta-pair { display: grid; gap: 14px; margin: 22px 0 26px; }
.atlas .atlas-cta-pair[data-position="bottom"] { margin: 30px 0 6px; padding-top: 22px; border-top: 1px solid var(--line, #e4e6ea); }
.atlas .atlas-cta .btn { width: 100%; text-decoration: none; }
.atlas .atlas-cta-note { margin: 7px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--muted, #5d636d); }
.atlas .atlas-cta-secondary .btn { font-weight: 600; }

@media (min-width: 620px) {
  .atlas .atlas-cta-pair { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px 16px; }
  .atlas .atlas-cta-pair > :only-child { grid-column: 1 / -1; max-width: 420px; }
}

/* The tool. A form, not a widget: the same card as the facts above it, inputs
 * that a thumb can hit, and the result in the place the eye already is rather
 * than below a button that has to be pressed. Everything recalculates as you
 * type, so there is no submit. */
.atlas .atlas-tool { background: #fff; border: 1px solid var(--line, #e4e6ea); border-radius: 12px; padding: 16px; margin: 0 0 20px; }
.atlas .atlas-tool-inputs { display: grid; gap: 12px; }
.atlas .atlas-tool-inputs label { display: grid; gap: 5px; }
.atlas .atlas-tool-inputs label > span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5d636d); }
.atlas .atlas-tool-inputs input,
.atlas .atlas-tool-inputs select {
  font: inherit;
  font-size: 16px; /* anything smaller makes iOS zoom the page on focus */
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong, #c8ccd3);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  width: 100%;
}
.atlas .atlas-tool-inputs input:focus-visible,
.atlas .atlas-tool-inputs select:focus-visible { outline: 2px solid var(--accent, #1f6feb); outline-offset: 1px; }
.atlas .atlas-tool-out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e4e6ea); }
.atlas .atlas-tool-out p { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.atlas .atlas-tool-out p:last-child { margin-bottom: 0; }
.atlas .atlas-tool-out .muted { color: var(--muted, #5d636d); font-size: 14px; font-weight: 400; }
.atlas .atlas-tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.atlas .atlas-tool-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line, #e4e6ea); font-size: 15px; }
.atlas .atlas-tool-list li:last-child { border-bottom: 0; }

@media (min-width: 620px) {
  .atlas .atlas-tool-inputs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
}

/* The verdict card, adapted from the affordability card in the V164 reference.
 *
 * Three departures from the reference, all deliberate. There is no white footer:
 * the card is one coloured block, so the figure the reference put in a white strip
 * lives inside it. The controls are not behind an `Adjust budget` button, so
 * nothing here hides anything. And the background carries the state while every
 * digit stays white, because the answer should arrive before the reader has read a
 * number.
 *
 * The transition is on background only, over a third of a second on an ease that
 * settles rather than snaps. Nothing about the layout moves between states: the
 * card is the same size whatever it says, so a reader typing into the controls
 * below never has the page shift under their thumb. */
.atlas .atlas-score-shell {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(24, 38, 30, .16);
  margin: 0 0 14px;
}
.atlas .atlas-score-card {
  padding: 22px 20px 20px;
  /* One height in every state. Without it the card grows by a line when the verdict
   * appears and shrinks by one when the note goes, and the controls under it move
   * while a thumb is on them. The reference set the same floor for the same reason. */
  min-height: 360px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(135deg, #1eab62, #4dcc70 58%, #8ce676);
  transition: background .34s cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .atlas .atlas-score-card { transition: none; }
}
.atlas .atlas-score-card[data-state="resting"] { background: linear-gradient(135deg, #4b4f63, #7c8199); }

.atlas .atlas-score-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.atlas .atlas-score-eyebrow { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; opacity: .78; }
.atlas .atlas-score-card h3 { margin: 6px 0 0; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.12; letter-spacing: -.035em; color: #fff; }

.atlas .atlas-score-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.atlas .atlas-score-number { font-size: clamp(34px, 11vw, 46px); line-height: .92; font-weight: 900; letter-spacing: -.055em; }
.atlas .atlas-score-verdict { font-size: 12px; font-weight: 800; opacity: .9; margin-top: 6px; }

/* The orb. A circle that fills from the bottom, which is the reference's own
 * device and the clearest possible picture of a proportion: a reader does not
 * have to read the percentage to see that it is most of the circle. */
.atlas .atlas-score-orb {
  margin-left: auto;
  width: 92px; height: 92px;
  flex: 0 0 auto;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
}
.atlas .atlas-score-orb::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .17); }
.atlas .atlas-score-orb-fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .32); transition: height .34s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .atlas .atlas-score-orb-fill { transition: none; }
}
.atlas .atlas-score-orb b { position: relative; z-index: 2; font-size: 14px; font-weight: 800; }

.atlas .atlas-score-headline { margin-top: 16px; }
.atlas .atlas-score-headline small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; opacity: .78; }
.atlas .atlas-score-headline strong { display: block; margin-top: 3px; font-size: clamp(22px, 7vw, 28px); letter-spacing: -.045em; font-weight: 900; }

 /* The tiles sit at the bottom of the block whatever is above them, which is what
  * keeps the floor above from leaving a gap in the short states. */
.atlas .atlas-score-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: auto; padding-top: 14px; }
.atlas .atlas-score-kpi { padding: 9px 8px; border-radius: 13px; background: rgba(255, 255, 255, .14); text-align: center; }
.atlas .atlas-score-kpi b { display: block; font-size: 14px; font-weight: 850; }
.atlas .atlas-score-kpi span { font-size: 9px; opacity: .82; line-height: 1.25; display: block; margin-top: 2px; }

.atlas .atlas-score-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; opacity: .85; color: #fff; }

/* The controls, directly under the card and never behind a button. On a phone they
 * stack; from the width where two fit side by side they sit side by side. */
.atlas .atlas-tool-controls { margin: 0 0 20px; }
.atlas .atlas-tool-controls .atlas-tool-inputs { gap: 12px; }

@media (min-width: 620px) {
  .atlas .atlas-score-card { padding: 26px 24px 24px; }
  .atlas .atlas-score-orb { width: 106px; height: 106px; }
  .atlas .atlas-score-kpi span { font-size: 10px; }
}

/* cloudflare/build.mjs */
atlas-island{display:contents}
