/* BTR International
   One memorable thing: the Market Ladder staircase. Everything else is quiet.
   Stage colours encode stage and are used nowhere else. Yellow marks
   evidence that runs ahead of a market's current stage. */

:root {
  --ground: #F2F4F2;      /* cool plaster */
  --paper: #FBFCFB;
  --ink: #1D2A33;         /* slate */
  --ink-2: #4A5961;
  --rule: #C8D0CE;
  --ahead: #E3B23C;       /* site-hoarding yellow */
  --s1: #DCE6E0; --s2: #BCD3C7; --s3: #93B9A8; --s4: #62987F; --s5: #367760; --s6: #1A5446;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 66ch;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-optical-sizing: auto;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--s4); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ahead); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- masthead & footer ---- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--ground); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 1.15rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 1.35rem; height: 1.35rem; fill: var(--s5); }
.nav { display: flex; gap: 1.4rem; font: 500 0.95rem/1 var(--sans); }
.nav a { text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.footer { border-top: 1px solid var(--rule); margin-top: 5rem; font: 400 0.9rem/1.5 var(--sans); color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---- shared type ---- */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); letter-spacing: -0.015em; }
.kicker { font: 500 0.95rem/1.4 var(--sans); color: var(--ink-2); margin: 0 0 0.75rem; }
.lede { font-size: 1.3rem; line-height: 1.5; max-width: 40ch; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.45rem; margin: 2.6rem 0 0.6rem; }
.prose h3 { font-size: 1.1rem; margin: 1.8rem 0 0.4rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose table { border-collapse: collapse; width: 100%; font: 400 0.95rem/1.45 var(--sans); margin: 1.2rem 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

/* ---- home ---- */
.home-head { padding: 3.5rem 0 1.5rem; }
.home-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; margin: 0 0 1rem; max-width: 18ch; font-weight: 700; }
.home-head .lede { color: var(--ink-2); }

/* ---- the ladder (signature) ---- */
.ladder { margin: 1rem 0 0; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 0;
}
.step { display: flex; flex-direction: column; justify-content: flex-end; }
.step-markets { list-style: none; margin: 0 0 0.6rem; padding: 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-content: flex-end; min-height: 1.8rem; }
.chip {
  font: 500 0.85rem/1 var(--sans); padding: 0.4rem 0.55rem; border-radius: 2px;
  background: var(--paper); border: 1px solid var(--rule); white-space: nowrap; cursor: help;
}
.chip-apac { border: 1.5px solid var(--ink); }
.step-bar {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.25rem;
  padding: 0.75rem 0.7rem; font-family: var(--sans); color: var(--ink);
  border-top: 3px solid var(--ink);
}
.step-n { font: 700 1.7rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.step-name { font: 500 0.9rem/1.25 var(--sans); }
.step-1 .step-bar { height: 4.5rem;  background: var(--s1); }
.step-2 .step-bar { height: 7rem;    background: var(--s2); }
.step-3 .step-bar { height: 9.5rem;  background: var(--s3); }
.step-4 .step-bar { height: 12rem;   background: var(--s4); color: #fff; }
.step-5 .step-bar { height: 14.5rem; background: var(--s5); color: #fff; }
.step-6 .step-bar { height: 17rem;   background: var(--s6); color: #fff; }
.ladder figcaption { font: 400 0.9rem/1.5 var(--sans); color: var(--ink-2); margin-top: 0.9rem; max-width: 70ch; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; align-items: stretch; }
  .step { flex-direction: row-reverse; justify-content: flex-end; align-items: center; border-top: 1px solid var(--rule); }
  .step-bar { height: auto !important; width: 9.5rem; flex: none; border-top: 0; border-left: 3px solid var(--ink); padding: 0.6rem; }
  .step-1 .step-bar { width: 6rem; } .step-2 .step-bar { width: 7rem; } .step-3 .step-bar { width: 8rem; }
  .step-4 .step-bar { width: 9rem; } .step-5 .step-bar { width: 10rem; } .step-6 .step-bar { width: 11rem; }
  .step-n { font-size: 1.2rem; }
  .step-markets { margin: 0; padding: 0.5rem 0.6rem; min-height: 0; }
  .steps { display: flex; flex-direction: column-reverse; }
}

/* ---- current issue + lists ---- */
.home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; margin-top: 3.5rem; align-items: start; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }
.current { display: block; text-decoration: none; padding: 1.6rem 1.6rem 1.7rem; background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--s5); }
.current:hover .current-title { text-decoration: underline; text-decoration-thickness: 2px; }
.current .kicker { display: block; }
.current-title { display: block; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--sans); letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.current-dek { display: block; color: var(--ink-2); margin-bottom: 1.1rem; }
.current-cta { display: inline-block; font: 500 0.95rem/1 var(--sans); border-bottom: 2px solid var(--ink); padding-bottom: 0.2rem; }
.section-title { font-size: 1.15rem; margin: 0 0 0.9rem; }
.archive { list-style: none; margin: 0; padding: 0; }
.archive-row { display: grid; grid-template-columns: 2.5rem 11rem minmax(0, 1fr); gap: 0 1rem; padding: 0.95rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.archive-no { font: 700 1.1rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.archive-row time { font: 400 0.9rem/1.3 var(--sans); color: var(--ink-2); }
.archive-row a { text-decoration: none; }
.archive-row a strong { display: block; font: 700 1.05rem/1.3 var(--sans); }
.archive-row a span { display: block; color: var(--ink-2); font-size: 1rem; }
.archive-row a:hover strong { text-decoration: underline; }
.compact .archive-row { grid-template-columns: 2.2rem minmax(0, 1fr); }
.compact .archive-row time { display: none; }
@media (max-width: 640px) { .archive-row { grid-template-columns: 2.2rem minmax(0, 1fr); } .archive-row time { grid-column: 2; } .archive-row a { grid-column: 2; } }

.method { margin-top: 4rem; padding-top: 2rem; border-top: 3px solid var(--ink); }
.method-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .method-cols { grid-template-columns: 1fr; } }
.method h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.method p { margin: 0; font-size: 1.02rem; color: var(--ink-2); }
.tier-key { display: grid; grid-template-columns: 2rem 1fr; gap: 0.35rem 0.6rem; margin: 0; font-size: 1rem; }
.tier-key dt { font: 700 1rem/1.5 var(--sans); }
.tier-key dd { margin: 0; color: var(--ink-2); }

/* ---- page heads ---- */
.page-head { padding: 3rem 0 1rem; max-width: var(--measure); }
.page-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.08; margin: 0 0 0.8rem; }

/* ---- issue ---- */
.issue-wrap { max-width: calc(var(--measure) + 3rem); }
.issue-head { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.issue-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.08; margin: 0 0 0.8rem; font-weight: 700; }
.dek { font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); margin: 0 0 1rem; }
.byline { font: 400 0.95rem/1.5 var(--sans); color: var(--ink-2); margin: 0; }
.issue-body h2 { font-size: 1.35rem; margin: 2.8rem 0 0.8rem; padding-top: 0.9rem; border-top: 3px solid var(--ink); }
.issue-body h2:first-child { margin-top: 1rem; }
.issue-body ul { padding-left: 1.2rem; }
.issue-body li { margin: 0.45rem 0; }
.issue-body blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--ink-2); }
.ruling {
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.4;
  margin: 1.8rem 0 0.5rem; padding: 0.55rem 0.8rem; background: var(--paper);
  border-left: 8px solid var(--rule);
}
.ruling strong { font-weight: 700; }
.ruling.stage-1 { border-left-color: var(--s1); } .ruling.stage-2 { border-left-color: var(--s2); }
.ruling.stage-3 { border-left-color: var(--s3); } .ruling.stage-4 { border-left-color: var(--s4); }
.ruling.stage-5 { border-left-color: var(--s5); } .ruling.stage-6 { border-left-color: var(--s6); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font: 500 0.95rem/1.4 var(--sans); }
.pager-next { text-align: right; }

.ahead { background: linear-gradient(transparent 62%, var(--ahead) 62%); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .masthead nav, .footer nav, .pager { display: none; } body { background: #fff; } }
.sources { display:block; font: 400 0.85rem/1.4 var(--sans); color: var(--ink-2); margin-top: 0.3rem; }
.issue-body > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0.5rem; }
.home-grid > section:has(.archive.compact):not(:has(li)) { display: none; }
.home-grid:not(:has(.archive.compact li)) { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
