/* Country pages (/locations/usa|uk|australia|uae|canada/): the working-hours overlap chart, live time
   differences, a still hero photo, a hero clock card, mock browser windows and two small timelines.
   Uses the tokens from demo.css; motion stays in pages.js (cards rise with data-reveal, nothing else moves). */

/* ---------- hero: country headings run longer than service ones */
.phero--ctry .phero-title { font-size: clamp(2.4rem, 4.7vw, 4.25rem); line-height: 1.02; }
.phero--ctry .phero-facts li { align-items: flex-start; }
.phero--ctry .phero-facts svg { margin-top: 4px; }
.tile-v.is-word { font-size: clamp(1.35rem, 1.9vw, 1.6rem); }
.phero--ctry .tiles > li { display: flex; }
.phero--ctry .tiles .tile { flex: 1; }
.pillar-price strong small.after { margin: 0 0 0 10px; }

/* the hero photo without the 3D turn (pages with another signature moment) */
.still { position: relative; }
.still::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 78%; border-radius: 48% 48% 36px 36px; background: radial-gradient(70% 80% at 50% 100%, #ffd27a, #ffe9bf 55%, #fff6e2 80%); }
.still .phero-tag { transform: none; }

/* the hero photo set on a warm card instead of the arch (photos cropped flat at the bottom and side) */
.phero-media-in.is-card::before { display: none; }
.phero-media-in.is-card img { border-radius: 32px; background: linear-gradient(180deg, #fff 6%, #ffe6b5 100%); border: 1px solid #f1e3c4; filter: none; box-shadow: var(--shadow-lg); }

/* ---------- hero clock card: live clocks stacked in one card (a .tz list) */
.tz.hclock { justify-self: center; width: min(440px, 100%); gap: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow-lg); }
.hclock .tz-card { min-height: 0; padding: 22px 24px; background: var(--surface); border: 0; border-radius: 22px; }
.hclock .tz-card.is-home { background: #151514 radial-gradient(80% 120% at 100% 0%, rgba(245, 165, 36, .24), rgba(245, 165, 36, 0) 70%); }
.hclock .tz-city { display: flex; justify-content: space-between; gap: 12px; }
.hclock .tz-city span { font-weight: 400; color: var(--muted); }
.hclock .is-home .tz-city span { color: rgba(255, 255, 255, .6); }
.hclock .tz-time { margin-top: 16px; font-size: clamp(3rem, 5.4vw, 4.4rem); }
.hclock-gap { display: flex; align-items: center; gap: 12px; padding: 12px 24px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.hclock-gap::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px rgba(245, 165, 36, .2); }
.hclock-gap b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- live time difference under a clock (filled by x-countries.js) */
.tz-off { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--marigold-deep); }
.tz-off:empty { display: none; }
.tz-card.is-home .tz-off { color: var(--marigold); }
.tz-wrap { margin-top: 14px; }

/* ---------- working-hours overlap chart: 24 hours on Nepal time, one row per city and season */
.ov { --lab: 250px; --out: 160px; position: relative; padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.ov-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.ov-head h3 { font: 600 21px/1.2 var(--sans); letter-spacing: -.02em; }
.ov-head p { font-size: 14px; color: var(--muted); }
.ov-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.ov-legend li { display: inline-flex; align-items: center; gap: 7px; }
.ov-legend i { width: 20px; height: 9px; border-radius: 99px; }
.ov-row, .ov-axis { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--out); align-items: center; gap: 6px 18px; }
.ov-axis { margin-top: 22px; }
.ov-ticks { position: relative; height: 18px; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.ov-ticks span { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); }
.ov-ticks span:first-child { transform: none; }
.ov-ticks span:last-child { transform: translateX(-100%); }
.ov-axis > p { font-size: 12.5px; color: var(--soft); }
.ov-rows { display: grid; gap: 12px; margin-top: 8px; }
.ov-row { padding-top: 12px; border-top: 1px solid var(--line); transition: opacity .3s var(--ease); }
.ov-lab { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ov-lab small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.ov-badge { display: none; margin-bottom: 5px; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ov-row.is-now .ov-badge { display: inline-block; }
.ov-row.is-later { opacity: .55; }
.ov-track { position: relative; height: 30px; border-radius: 9px; background: var(--surface) repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(18, 18, 18, .06) calc(100% / 24 - 1px) calc(100% / 24)); }
.ov-track b { position: absolute; top: 5px; bottom: 5px; left: calc(var(--s) * 100% / 24); width: calc((var(--e) - var(--s)) * 100% / 24); border-radius: 6px; }
.ov-track::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: var(--now, 0); width: 2px; margin-left: -1px; border-radius: 2px; background: #d93a26; opacity: 0; }
.ov.has-now .ov-track::after { opacity: 1; }
.b-core { background: #151514; }
.b-call, .b-ext { background: repeating-linear-gradient(135deg, rgba(245, 165, 36, .9) 0 5px, rgba(245, 165, 36, .38) 5px 10px); }
.b-biz { background: #d9d8d2; }
.b-live { background: var(--marigold); }
.ov-out { display: flex; flex-direction: column; align-items: flex-start; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.ov-out small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.ov-now-key { display: none; }
.ov.has-now .ov-now-key { display: inline-flex; }
.ov-now-key i { width: 2px !important; height: 14px !important; border-radius: 2px; background: #d93a26; }
.ov-cap { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- time-zone notes beside the chart */
.tz-notes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tz-notes li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.tz-notes strong { font-weight: 600; color: var(--ink); }
.sec--surface .tz-notes, .sec--surface .tz-notes li { border-color: #e2e1dc; }
.hours-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 64px; align-items: start; margin-top: clamp(36px, 4vw, 52px); }
.hours-grid .lead + .lead { margin-top: 16px; }

/* ---------- a day passed between two time zones (overnight turnaround) */
.cycle { padding: clamp(22px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.cycle-head { padding-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--marigold-deep); }
.cycle li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; }
.cycle li + li { border-top: 1px dashed #dcdbd6; }
.cycle-t { font: 600 22px/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cycle-t small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--marigold-deep); }
.cycle li > p:last-child { font-size: 16px; line-height: 1.55; color: var(--muted); }
.cycle li strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }

/* ---------- mock browser window for designed examples (cookie banner, RTL page, bilingual page) */
.mock { overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdbd6; }
.mock-url { flex: 1; margin-left: 10px; padding: 6px 12px; overflow: hidden; border-radius: 999px; background: #fff; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.mock-body { position: relative; padding: 22px; }
.mock-nav { display: flex; align-items: center; gap: 10px 14px; font-size: 13px; color: var(--muted); }
.mock-nav strong { margin-inline-end: auto; font-size: 15px; color: var(--ink); white-space: nowrap; }
.mock-h { margin-top: 26px; font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; }
.mock-p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mock-btn { display: inline-flex; align-items: center; height: 36px; margin-top: 16px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; }
.mock-btn--line { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.mock-sheet { margin-top: 22px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 36px -20px rgba(18, 18, 18, .35); }
.mock-sheet p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mock-sheet .mock-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mock-sheet .mock-btn { margin-top: 0; }
.mock-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.mock-toggle span { padding: 3px 8px; border-radius: 999px; color: var(--muted); }
.mock-toggle .on { background: var(--ink); color: #fff; }
.mock-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.mock-pair .mock-h { font-size: 22px; }
.mock[dir="rtl"] .mock-body, .mock-body[dir="rtl"] { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", sans-serif; }
.mock-body[dir="rtl"] .mock-h { letter-spacing: 0; }
.mock-cap { margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mock-serp { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mock-serp:last-child { border-bottom: 0; }
.mock-serp span { font-size: 13px; color: var(--muted); }
.mock-serp strong { font-size: 17px; font-weight: 600; color: #1a0dab; }
.mock-serp p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mock-q { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.mock-q svg { width: 16px; height: 16px; color: var(--muted); }

.mock-list { margin-top: 16px; border-top: 1px solid var(--line); }
.mock-list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mock-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mock-list b { font-weight: 600; color: var(--marigold-deep); }

/* ---------- a quote as a document */
.doc { position: relative; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.doc-k { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--marigold-deep); }
.doc-t { margin-top: 8px; font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; }
.doc dl { margin-top: 20px; border-top: 1px solid var(--line); }
.doc dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; font-weight: 500; }
.doc-sign { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.doc-sign span { flex: 1; padding-top: 10px; border-top: 1px solid var(--ink); }

/* ---------- small helpers */
.ptable.terms tbody th { width: 30%; }
.ptable.terms td { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.live-chips { margin-top: 24px; }
.terms-tiles { margin-top: 0; }
.terms-tiles > li { display: flex; }
.terms-tiles .tile { flex: 1; }
.split .review { margin-top: 24px; box-shadow: none; }
.sec--dark .lead { color: rgba(255, 255, 255, .74); }
.sec--dark .lead a { color: #fff; }
.split .h2 + .lead { margin-top: 22px; }
.split .lead + .results-list { margin-top: 26px; }
.split .lead + .checks { margin-top: 22px; }
.law-note { margin-top: 26px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.sec:not(.sec--dark) .law-note { color: var(--ink-2); }
.ctry-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.ctry-split--top { align-items: start; }
.ctry-split > div > .lead + .lead, .ctry-split > div > .lead + .checks, .ctry-split > div > .checks + .fine { margin-top: 18px; }
.ctry-split .checks { margin-top: 22px; }
.ctry-split .h2 + .lead { margin-top: 22px; }
.mt { margin-top: clamp(40px, 5vw, 64px); }
.cs-grid .cs-card .cs-more svg { width: 15px; height: 15px; }
.cs-live { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14.5px; font-weight: 500; }
.cs-live a { border-bottom: 1px solid var(--ink); }

@media (max-width: 1100px) {
  .ov { --lab: 190px; --out: 136px; }
  .hours-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ctry-split { grid-template-columns: minmax(0, 1fr); }
  .doc { transform: none; }
  .tz-notes li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .ov-row, .ov-axis { grid-template-columns: minmax(0, 1fr) auto; }
  .ov-row .ov-track { grid-column: 1 / -1; grid-row: 2; }
  .ov-axis > p { display: none; }
  .ov-axis .ov-ticks { grid-column: 1 / -1; }
  .ov-axis > :first-child { display: none; }
  .ov-out { align-items: flex-end; text-align: right; }
  .mock-pair { grid-template-columns: minmax(0, 1fr); }
  .cycle li { grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; }
  .cycle-t { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-row { transition: none; }
}
