/* "Where We Ship" globe page — scoped under .wws-root so nothing here can
   collide with the shared site styles in css/style.css (which every other
   page also loads). Ported from docs/globe/where-we-ship.html: fonts and
   colors are remapped to ALTY's own tokens (see :root in css/style.css)
   instead of the prototype's Google Fonts / blue-red map palette, and there
   is no dark theme here since ver4 has none anywhere else. */
.wws-root {
  --wws-bg: var(--color-bg);
  --wws-surface: var(--color-white);
  --wws-ink: #74685a;
  --wws-muted: #8f8370;
  --wws-line: var(--color-line);
  --wws-ocean-hi: #DCE8F2; /* kept as the prototype's blue, by request -- everything else here is ALTY-mapped */
  --wws-ocean-lo: #A9C0D6;
  --wws-land: var(--color-bg-alt);
  --wws-border: #c9a374;
  --wws-land-no: #f3ece0;
  --wws-hatch: #d6c9b4;
  --wws-land-other: #efe6d8;
  --wws-accent: #a48d5b;
  --wws-accent-soft: #c3b493;
  --wws-accent-ink: var(--color-white);
  --wws-red: #f1429d;
  --wws-shadow: rgba(138, 109, 75, .25);
  --wws-glow: rgba(201, 163, 116, .35);

  position: relative;
  background: var(--wws-bg);
  color: var(--wws-ink);
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-inline: 16px;
  padding-block: 140px 56px;
}
/* Type system for this page: Figtree only, at four weights, doing the job
   the prototype split across three different typefaces (Bricolage Grotesque
   for headlines, Figtree for body, Barlow Condensed for small-caps labels).
   - 700 (Bold): headlines -- h1, the status panel's big number/region name,
     the dialog title, the full-list section headings.
   - 600 (SemiBold): small-caps labels (eyebrow, status kicker, region-grid
     headers) and the primary button.
   - 500 (Medium): chips and other small emphasis text.
   - 400 (Regular): everything else -- paragraphs, list items, fine print. */
.wws-wrap { max-width: 1040px; margin: 0 auto; }
.wws-airmail {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--wws-red) 0 14px, transparent 14px 21px, var(--wws-accent) 21px 35px, transparent 35px 42px);
  margin-inline: -16px;
}
/* Top airmail bar only (not the one inside the dialog header): a plane
   flies right-to-left, leaving a two-tone trail behind it instead of the
   static diagonal stripe. */
.wws-airmail-fly {
  position: absolute;
  top: 105px;
  left: 0;
  right: 0;
  margin-inline: 0;
  background: none;
}
.wws-airmail-trail {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--wws-red) 0 14px, var(--wws-surface) 14px 21px, var(--wws-accent) 21px 35px, var(--wws-surface) 35px 42px);
  clip-path: inset(0 0 0 100%);
  animation: wws-airmail-trail 6s linear forwards;
}
.wws-airmail-plane-track {
  position: absolute;
  inset: 0;
  animation: wws-airmail-plane 6s linear forwards;
}
.wws-airmail-plane {
  position: absolute;
  top: 50%;
  right: 0;
  width: 48px;
  height: 48px;
  transform: translate(50%, -50%) rotate(-90deg);
}
.wws-airmail-plane svg { display: block; width: 100%; height: 100%; }
@keyframes wws-airmail-plane {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 40px)); }
}
@keyframes wws-airmail-trail {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0%); }
}
.wws-header { padding-block: 0 8px; display: grid; gap: 10px; max-width: 640px; }
.wws-eyebrow {
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--wws-red);
}
.wws-root h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0;
  color: #a48d5b;
  text-wrap: balance;
}
.wws-lede { font-weight: 400; margin: 0; color: var(--wws-ink); max-width: 62ch; }

.wws-stage { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 32px; align-items: center; padding-block: 24px 8px; }
@media (max-width: 820px) { .wws-stage { grid-template-columns: 1fr; gap: 12px; } }
.wws-globe-box { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; touch-action: none; }
.wws-floater { position: absolute; inset: 0; animation: wws-float 7s ease-in-out infinite; }
.wws-globe-shadow { position: absolute; left: 18%; right: 18%; bottom: -6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, var(--wws-shadow), transparent); animation: wws-shadow-pulse 7s ease-in-out infinite; }
@keyframes wws-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wws-shadow-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }
.wws-root canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.wws-root canvas.wws-grabbing { cursor: grabbing; }
.wws-root canvas.wws-pointing { cursor: pointer; }
.wws-tip { position: absolute; pointer-events: none; background: var(--wws-ink); color: var(--wws-bg); font-size: 13px; font-weight: 500; padding: 5px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); z-index: 2; }
.wws-tip small { opacity: .75; font-weight: 400; }
.wws-hint-toast { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); background: var(--wws-surface); color: var(--wws-ink); border: 1px solid var(--wws-line); box-shadow: 0 6px 20px var(--wws-shadow); padding: 8px 14px; border-radius: 999px; font-size: 14px; width: max-content; max-width: 90%; text-align: center; z-index: 2; }

.wws-panel { display: grid; gap: 18px; }
.wws-jp-notice {
  background: var(--wws-surface);
  border: 1px solid var(--wws-line);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}
.wws-jp-notice p {
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--wws-muted);
  margin: 0;
}
.wws-jp-notice-ja {
  font-size: 0.70rem;
}
.wws-status { background: var(--color-bg-alt); border: 1px solid var(--wws-line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; min-height: 170px; align-content: start; }
.wws-status .wws-k { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 0.8rem; color: var(--wws-muted); }
.wws-status h2 { font-family: inherit; font-weight: 700; font-size: 1.7rem; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--wws-ink); }
.wws-btn {
  appearance: none;
  border: 0;
  background: var(--wws-accent);
  color: var(--wws-accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  justify-self: start;
  position: relative;
  top: 0;
  box-shadow: 0 3px 0 var(--color-wood-dark), 0 5px 8px rgba(0, 0, 0, .18);
  transition: top .1s ease, box-shadow .1s ease, filter .25s ease;
}
.wws-btn:hover { filter: brightness(1.08); }
.wws-btn:active {
  top: 3px;
  box-shadow: 0 0 0 var(--color-wood-dark), 0 2px 3px rgba(0, 0, 0, .18);
}
.wws-btn:focus-visible, .wws-chip:focus-visible, .wws-close:focus-visible { outline: 3px solid var(--wws-accent-soft); outline-offset: 2px; }

.wws-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wws-chip { appearance: none; border: 1px solid var(--wws-line); background: var(--color-bg-alt); color: var(--wws-ink); font-weight: 500; font-size: 0.9rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.wws-chip span { font-variant-numeric: tabular-nums; color: var(--wws-muted); font-size: 0.85rem; }
.wws-chip:hover { border-color: var(--wws-accent); }
.wws-chip[aria-pressed="true"] { background: var(--wws-accent); border-color: var(--wws-accent); color: var(--wws-accent-ink); }
.wws-chip[aria-pressed="true"] span { color: inherit; opacity: .8; }

/* dialog */
.wws-dialog { border: 0; padding: 0; margin: auto; border-radius: 16px; background: var(--wws-surface); color: var(--wws-ink); width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 760px); box-shadow: 0 24px 60px var(--wws-shadow); overflow: hidden; }
.wws-dialog::backdrop { background: rgba(59, 51, 43, .45); }
.wws-dialog[open] { display: flex; flex-direction: column; animation: wws-pop .22s ease-out; }
@keyframes wws-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 600px) {
  .wws-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 85vh; }
  .wws-dialog[open] { animation: wws-sheet .25s ease-out; }
  @keyframes wws-sheet { from { transform: translateY(40px); opacity: .4; } }
}
.wws-dlg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 20px 20px 12px; cursor: grab; touch-action: none; }
.wws-dlg-head.wws-dragging { cursor: grabbing; }
.wws-dlg-head h2 { font-family: inherit; font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin: 4px 0 0; color: #a48d5b; }
.wws-close { appearance: none; border: 1px solid var(--wws-line); background: transparent; color: var(--wws-ink); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.wws-dlg-body { overflow: auto; padding: 0 20px 22px; display: grid; gap: 16px; }
.wws-cols { columns: 2 200px; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.wws-cols li { font-weight: 400; break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--wws-line); font-size: 0.95rem; }
.wws-note { font-weight: 400; font-size: 0.85rem; color: var(--wws-muted); margin: 0; }
details.wws-no { border-top: 1px solid var(--wws-line); padding-top: 12px; }
details.wws-no summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: #c2899a; }
details.wws-no ul { margin-top: 10px; }
details.wws-no li { font-weight: 400; color: var(--wws-muted); }

/* full list */
.wws-full { padding-block: 48px 0; display: grid; gap: 28px; }
.wws-full h2 { font-family: inherit; font-weight: 700; font-size: 1.7rem; margin: 0; letter-spacing: -.01em; color: #a48d5b; }
.wws-full p { font-weight: 400; margin: 0; color: var(--wws-muted); max-width: 65ch; }
.wws-region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 28px 36px; }
.wws-region-grid h3 { font-family: inherit; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 0.85rem; margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--wws-ink); padding-bottom: 4px; }
.wws-region-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wws-status-icon { display: inline-flex; flex: none; }
.wws-count { font-variant-numeric: tabular-nums; color: var(--wws-muted); flex: none; }
.wws-region-grid p { font-weight: 400; color: var(--wws-ink); font-size: 0.9rem; line-height: 1.6; }

/* Shippable groups: gold check, gold-tinted underline. */
#shipGrid h3 { border-bottom-color: #a48d5b; }
.wws-status-icon-yes { color: #a48d5b; }

/* Not-yet-shippable groups: a plane-with-slash (not an X) so the mark reads
   as "no mail route here yet" rather than a judgment on the country, plus a
   muted-pink underline and a soft background zone to set the whole group
   visually apart from the shippable list above it. */
#noGrid h3 { border-bottom-color: #c2899a; }
.wws-status-icon-no { color: #c2899a; }
.wws-no-grid p { color: var(--wws-muted); }
.wws-no-zone {
  background: color-mix(in srgb, #a8617a 5%, var(--wws-surface));
  border: 1px solid color-mix(in srgb, #a8617a 15%, var(--wws-line));
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 24px;
}
.wws-full > div:first-child h2 { color: #a48d5b; }
.wws-no-zone h2 { color: #c2899a; }
.wws-fine { font-weight: 400; font-size: 0.8rem; color: var(--wws-muted); border-top: 1px solid var(--wws-line); padding-top: 16px; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  .wws-floater, .wws-globe-shadow { animation: none; }
  .wws-dialog[open] { animation: none; }
  .wws-airmail-trail, .wws-airmail-plane-track { animation: none; }
  .wws-airmail-trail { clip-path: inset(0); }
  .wws-airmail-plane-track { display: none; }
}

@media (min-width: 768px) {
  .wws-root { padding-inline: 24px; }
  .wws-root h1 { font-size: clamp(2.4rem, 4vw, 3rem); }
  .wws-status h2 { font-size: 2rem; }
}
