/* Big Mac Index by Country (generated by scripts/build-big-mac-index.mjs). Loaded after site.css and cost-of-living.css and
   reuses their tokens and components (.hero, .col-banner, .col-crumbs, .col-note, .col-link, .col-cta, .col-disclaimer).
   No inline styles anywhere (CSP). */

.bm-hero { padding-bottom: 0; }
.bm-hero .eyebrow { margin-top: 22px; }
.bm-hero .lead { max-width: 760px; margin-bottom: 0; }

/* ---------- Intro ---------- */
.bm-prose { max-width: 760px; padding-top: 14px; }
.bm-prose h2, .bm-section > h2 { margin: 40px 0 12px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; letter-spacing: -.4px; line-height: 1.2; }
.bm-prose h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 800; color: var(--lime); }
.bm-prose p { margin: 0 0 14px; color: var(--ink); font-size: 16.5px; line-height: 1.65; }
.bm-section { padding-top: 8px; }
/* Intro text with the square photo beside it (stacked above the text on narrow screens). */
.bm-intro { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 56px; }
.bm-intro .bm-prose { padding-top: 0; }
.bm-intro .bm-prose > h2:first-child { margin-top: 0; }
.bm-photo { margin: 0; }
.bm-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }

/* ---------- Quick highlights ---------- */
.bm-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bm-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.bm-stats dt { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.bm-stats dd { margin: 8px 0 0; }
.bm-stats b { display: block; color: var(--lime); font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bm-stats span { display: block; margin-top: 2px; color: var(--ink); font-size: 14.5px; font-weight: 600; }

/* ---------- Ranking table ---------- */
.bm-hint { margin: 0 0 14px; }
.bm-hint__scroll { display: none; }
.bm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.bm-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.bm-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bm-table th, .bm-table td { padding: 12px 18px; text-align: start; white-space: nowrap; }
.bm-table thead th { padding: 0; border-bottom: 1px solid var(--line); }
.bm-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.bm-table tbody tr:hover > * { background: rgba(198, 239, 60, 0.06); }
.bm-table tbody th { font-weight: 700; font-size: 16px; }
.bm-table .bm-num { text-align: end; }
.bm-table td.bm-num { font-size: 16px; font-weight: 700; }
.bm-table .bm-rank { width: 76px; color: var(--muted); font-weight: 700; }
.bm-th {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 18px; font: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; text-align: start;
}
.bm-num .bm-th { justify-content: flex-end; }
.bm-th:disabled { cursor: default; }
.bm-th:not(:disabled):hover, th[aria-sort] .bm-th { color: var(--ink); }
.bm-th:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; border-radius: 10px; }
.bm-sort { flex: none; fill: currentColor; opacity: .45; }
.bm-th:disabled .bm-sort { display: none; }
th[aria-sort] .bm-sort { opacity: 1; }
th[aria-sort="ascending"] .bm-sort__up, th[aria-sort="descending"] .bm-sort__down { fill: var(--lime); }
th[aria-sort="ascending"] .bm-sort__down, th[aria-sort="descending"] .bm-sort__up { opacity: .3; }
.bm-country { display: flex; align-items: center; gap: 12px; }
.bm-flag { flex: none; width: 32px; height: 24px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(234, 242, 230, 0.16); }
.bm-diff { display: inline-block; min-width: 76px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; text-align: center; }
.bm-diff--up { background: rgba(221, 164, 60, 0.18); color: var(--amber); }
.bm-diff--down { background: rgba(198, 239, 60, 0.16); color: var(--lime); }
.bm-diff--base { background: var(--lime); color: var(--on-lime); }
.bm-us > * { background: rgba(198, 239, 60, 0.09); }
.bm-source { max-width: 760px; }

/* ---------- FAQ and sources ---------- */
.bm-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bm-faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.bm-faq__item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.bm-faq__item p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.bm-sources { margin: 0; padding-inline-start: 20px; max-width: 760px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.bm-sources li + li { margin-top: 8px; }

@media (max-width: 900px) {
  .bm-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  .bm-photo { order: -1; max-width: 420px; }
  .bm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bm-hint__scroll { display: inline; }
  .bm-table th, .bm-table td { padding: 11px 14px; }
  .bm-th { padding: 13px 14px; }
  .bm-stats > div { padding: 14px 16px; }
}
