/* HwC Charts · website styles
   Typeface: Cormorant Garamond (SIL Open Font License), served from /fonts, no third-party font host.
   Design rules: quiet like Apple (space, few colours, no heavy boxes), precise like Bloomberg and Forbes
   (hairline rules, lining and tabular figures, clear hierarchy). */

@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --soft-2: #eceff3;
  --night: #0d1117;
  --ink: var(--night);
  --navy: #1b2a4a;
  --navy-2: #26396a;
  --text-soft: #394252;
  --text-faint: #566073;
  --orange: #f7931a;
  --orange-ink: #a85f00;
  --bull: #4caf50;
  --bear: #e24b4a;
  --bull-ink: #2e7d32;
  --bear-ink: #c62828;
  --hair: #e4e7ec;
  --hair-2: #cfd5de;
  --r: 20px;
  --r-sm: 12px;
  --font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.3rem/1.5 var(--font);
  font-variant-numeric: lining-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
b, strong, th, dt { font-weight: 600; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; font-variant-numeric: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
em, i { font-style: italic; }
.tnum { font-variant-numeric: lining-nums tabular-nums; }
.sym { font-family: Georgia, 'Times New Roman', serif; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 18px; border-radius: var(--r-sm); background: var(--navy); color: #fff; font-size: 1.05rem; font-weight: 600; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ---------- brand components (from the Shorts and the Daily Brief) ---------- */
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--orange-ink); line-height: 1.5; }
.our-read { max-width: 52rem; padding: 2px 0 2px 30px; border-left: 4px solid var(--orange); font-style: italic; }
.our-read p:not(.label) { font-size: clamp(1.45rem, 1.9vw, 1.75rem); line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.our-read .label { margin-bottom: 10px; font-style: normal; }
h1 { letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- logo (colours come from here, the shapes from the SVG) ---------- */
.logo .ink { fill: var(--navy); }
.logo .sub { fill: var(--navy); fill-opacity: .8; }
.logo .rule { stroke: var(--hair-2); fill: none; }
.logo .acc { stroke: var(--orange); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo .acc-fill { fill: var(--orange); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0.55em 1.5em 0.62em; border: 1px solid transparent; border-radius: 999px; font: 600 1.12rem/1.1 var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-sm { min-height: 40px; padding: 0.42em 1.15em 0.5em; font-size: 1.04rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hair-2); }
.btn-ghost:hover { border-color: var(--navy); }
.btn:disabled { opacity: .55; cursor: default; }
.text-link { font-size: 1.1rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair-2); }
.text-link:hover { text-decoration-color: var(--navy); }
.link-btn { padding: 0; border: 0; background: none; color: var(--text-soft); font: 600 1.05rem/1.4 var(--font); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); cursor: pointer; }
.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(13, 17, 23, .08); }
.topbar-inner { display: flex; align-items: center; gap: 40px; height: 68px; }
.brand { display: block; flex: none; }
.brand svg { height: 28px; width: auto; }
.topnav { display: flex; gap: 30px; margin-right: auto; }
.topnav a { padding: 6px 0; border-bottom: 1px solid transparent; color: var(--text-soft); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hair-2); border-radius: 999px; background: #fff; cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, top .2s ease; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- ticker ---------- */
.ticker { position: relative; height: 80px; background: var(--bg); border-bottom: 1px solid var(--hair); }

/* ---------- TradingView slots ---------- */
.tv-slot { position: absolute; inset: 0; }
.tv-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--text-soft); font-size: 1.1rem; line-height: 1.3; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f7931a' stop-opacity='.16'/%3E%3Cstop offset='1' stop-color='%23f7931a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,175 L110,150 L215,162 L340,105 L465,128 L590,55 L715,80 L840,25 L960,38 L960,220 L0,220Z' fill='url(%23g)'/%3E%3Cpolyline points='0,175 110,150 215,162 340,105 465,128 590,55 715,80 840,25 960,38' fill='none' stroke='%23f7931a' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E") bottom / 100% 55% no-repeat; }
.tv-ph strong { font-size: 1.2rem; color: var(--ink); }
.tv-ph p { max-width: 34ch; }
.tv-ph .btn { margin-top: 12px; }
.ticker .tv-ph { flex-direction: row; gap: 16px; background: var(--bg); color: var(--text-faint); font-size: 1.08rem; }
.ticker .tv-ph p { max-width: none; }
.ticker .tv-ph .btn { margin-top: 0; }
.tv-note { position: absolute; left: 0; right: 0; bottom: 30px; padding: 0 16px; text-align: center; color: var(--text-faint); font-size: 1rem; pointer-events: none; }
.tv-note a { color: var(--navy); pointer-events: auto; }
.tradingview-widget-container { width: 100%; height: 100%; }
.tradingview-widget-container__widget { width: 100%; height: calc(100% - 26px); }
.tradingview-widget-copyright { height: 26px; padding: 0 16px; font-size: 0.9rem; line-height: 26px; text-align: right; color: var(--text-faint); }
.tradingview-widget-copyright a { color: var(--text-faint); text-decoration: none; }
.tradingview-widget-copyright a:hover { color: var(--navy); text-decoration: underline; }
.h-quote .tv-ph { flex-direction: row; justify-content: space-between; gap: 16px; padding: 12px 24px; text-align: left; background-image: none; }
.h-quote .tv-ph p { max-width: none; font-size: 1.04rem; line-height: 1.2; }
.h-quote .tv-ph .btn { margin-top: 0; flex: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); align-items: center; padding: 72px 0 0; }
.hero-logo { min-width: 0; padding-right: 72px; }
.hero-logo svg { width: 100%; height: auto; }
.hero-text { padding: 12px 0 12px 72px; border-left: 1px solid var(--hair-2); }
.hero-text .label { margin-bottom: 22px; }
.hero h1 { font-size: clamp(3.4rem, 6.4vw, 5.9rem); text-wrap: balance; }
.hero-sub { max-width: 30em; margin-top: 24px; color: var(--text-soft); font-size: 1.6rem; line-height: 1.34; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- blocks ---------- */
.block { position: relative; margin-top: 104px; }
.block > .wrap { padding-top: 40px; position: relative; }
.block > .wrap::before { content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 1px; background: var(--hair-2); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
h2 { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.byline { margin: 16px 0 36px; color: var(--text-faint); font-size: 1.15rem; }
.block.report > .wrap > .label { margin-bottom: 14px; }
.block.report .section-head { margin-bottom: 0; }
.byline b { color: var(--ink); }
.block.report { margin-top: 136px; padding: 0 0 136px; background: var(--soft); }
.block.report > .wrap { padding-top: 96px; }
.block.report > .wrap::before { display: none; }
.block.report + .block { margin-top: 0; }
.block.report + .block > .wrap::before { display: none; }
.block.report + .block > .wrap { padding-top: 128px; }

/* ---------- grid and cards ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.col-8 { grid-column: span 8; min-width: 0; }
.col-4 { grid-column: span 4; min-width: 0; }
.col-6 { grid-column: span 6; min-width: 0; }
.col-12 { grid-column: span 12; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 26px 12px; }
.card-title { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.card-meta { color: var(--text-faint); font-size: 1.05rem; }
.card-body { position: relative; flex: 1 1 auto; min-height: 0; }
.h-chart { height: 620px; }
.h-quote { height: 108px; }
.h-gauge { flex: 1 1 auto; min-height: 340px; }
.h-tall { height: 660px; }
.h-mid { height: 560px; }
.h-short { height: 420px; }

/* ---------- latest updates (Shorts) ---------- */
.shorts-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 24px; }
.short { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hair); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.short-play { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; aspect-ratio: 9 / 11; padding: 18px; border: 0; background: var(--navy); color: #fff; text-align: left; cursor: pointer; transition: background .2s ease; }
.short-play:hover { background: var(--navy-2); }
.short.cycle .short-play { box-shadow: inset 0 -4px 0 var(--orange); }
.short-play .label { color: #ffd08a; }
.short-play::before { content: ""; position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.short-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.short-box { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.short-box .when { color: var(--text-faint); font-size: 1.02rem; }
.short-box .ttl { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }

/* ---------- alerts ---------- */
.alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.alert { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px 20px; border: 1px solid var(--hair); border-top: 3px solid var(--hair-2); border-radius: var(--r); background: var(--bg); }
.alert.up { border-top-color: var(--bull); }
.alert.down { border-top-color: var(--bear); }
.alert .who { color: var(--text-faint); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.alert .mv { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.alert .mv b { font-size: 2.6rem; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.alert.event .mv b { font-size: 2.1rem; line-height: 1.1; }
.alert.up .mv b { color: var(--bull-ink); }
.alert.down .mv b { color: var(--bear-ink); }
.alert .mk { font-size: 1.55rem; font-weight: 600; }
.alert .px { color: var(--text-soft); font-size: 1.12rem; }
.alert .why { margin-top: 4px; color: var(--text-soft); font-size: 1.12rem; line-height: 1.35; }
.alert .foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--text-faint); font-size: 1.02rem; }
.notice { margin-bottom: 20px; padding: 16px 22px; border-radius: var(--r-sm); background: var(--soft); color: var(--text-soft); font-size: 1.12rem; }

/* ---------- news ---------- */
.news-head { margin: 64px 0 14px; }
.news { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.news li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.news .hl { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.news .hl a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.news .hl a:hover { background-size: 100% 1px; }
.news .by { font-style: italic; font-weight: 500; color: var(--text-soft); }
.news .meta { grid-column: 1; color: var(--text-faint); font-size: 1.04rem; font-variant-numeric: lining-nums; }
.news .tagdots { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; padding: 1px 9px 3px; border: 1px solid var(--hair-2); border-radius: 999px; color: var(--text-faint); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.2; }

/* ---------- cycle report ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 64px; border-top: 2px solid var(--ink); }
.kpi { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 8px 0; border-right: 1px solid var(--hair-2); }
.kpi + .kpi { padding-left: 28px; }
.kpi:last-child { border-right: 0; padding-right: 0; }
.kpi-label { color: var(--text-faint); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; line-height: 1.4; text-transform: uppercase; }
.kpi-value { font-size: clamp(2.9rem, 4.2vw, 4.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.kpi-sub { color: var(--text-faint); font-size: 1.1rem; line-height: 1.3; }
.kpi.accent .kpi-label { color: var(--orange-ink); }
@supports (grid-template-rows: subgrid) {
  .kpis { grid-template-rows: auto auto 1fr; row-gap: 14px; }
  .kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}

.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 44px; padding: 4px; border-radius: 999px; background: var(--soft-2); }
.tab { white-space: nowrap; padding: 0.5em 1.35em 0.56em; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font: 600 1.1rem/1.1 var(--font); cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13, 17, 23, .14), 0 0 0 .5px rgba(13, 17, 23, .06); }
.panel + .panel { margin-top: 28px; }
.panel-title { font-size: 2.3rem; line-height: 1.1; letter-spacing: -0.012em; }
.panel-sub { max-width: 68ch; margin-top: 14px; color: var(--text-soft); font-size: 1.25rem; text-wrap: pretty; }
.fineprint { max-width: 74ch; margin-top: 24px; color: var(--text-faint); font-size: 1.05rem; }

.mt { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 40px; margin-top: 40px; }
.mt-row { display: contents; }
.mt-label { padding: 18px 0; border-top: 1px solid var(--hair-2); }
.mt-label b { display: block; font-size: 1.35rem; line-height: 1.15; }
.mt-label span { display: block; max-width: 34ch; margin-top: 5px; color: var(--text-faint); font-size: 1.04rem; font-weight: 500; line-height: 1.3; }
.mt-label a { color: var(--navy); }
.mt-plot { position: relative; min-height: 92px; border-top: 1px solid var(--hair-2); }
.mt-win { position: absolute; top: 0; bottom: 0; background: rgba(247, 147, 26, .13); }
.mt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: translateX(-1px); z-index: 2; }
.mt-range { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 999px; background: rgba(27, 42, 74, .16); z-index: 1; }
.mt-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy); z-index: 3; }
.mt-val { position: absolute; top: 50%; margin-top: -30px; font-size: 1.12rem; font-weight: 600; line-height: 1; white-space: nowrap; z-index: 3; transform: translateX(-50%); font-variant-numeric: lining-nums tabular-nums; }
.mt-axis { position: relative; height: 76px; border-top: 1px solid var(--hair-2); }
.mt-axis span { position: absolute; top: 12px; transform: translateX(-50%); color: var(--text-faint); font-size: 1.04rem; white-space: nowrap; }
.mt-axis .mt-tag { top: 42px; padding: 2px 12px 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
.mt-gridlines { position: absolute; inset: 0; pointer-events: none; }
.mt-gridlines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.mt-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; color: var(--text-faint); font-size: 1.04rem; }
.mt-legend i { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.lg-win { width: 22px; height: 12px; background: rgba(247, 147, 26, .3); }
.lg-range { width: 22px; height: 10px; border-radius: 999px; background: rgba(27, 42, 74, .22); }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }

.table-wrap { margin-top: 32px; overflow-x: auto; }
table.hist { width: 100%; border-collapse: collapse; font-size: 1.3rem; font-variant-numeric: lining-nums tabular-nums; }
.hist th { padding: 0 16px 14px 0; border-bottom: 2px solid var(--ink); color: var(--text-faint); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-align: left; text-transform: uppercase; vertical-align: bottom; }
.hist td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--hair-2); vertical-align: top; }
.hist td small { display: block; margin-top: 3px; color: var(--text-faint); font-size: 1.04rem; }
.hist tr.now td { background: transparent; }
.hist tr.now td:first-child { box-shadow: inset 4px 0 0 var(--orange); padding-left: 16px; }
.hist td.cyc { font-weight: 600; }
.neg { color: var(--bear-ink); }
.dd { display: block; max-width: 130px; height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--soft-2); }
.dd i { display: block; height: 100%; border-radius: 999px; background: var(--bear); }

.views { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; margin-top: 28px; }
.view { padding: 30px 32px; border-radius: var(--r); background: var(--bg); }
.block:not(.report) .view { background: var(--soft); }
.view .who { color: var(--ink); font-size: 1.65rem; font-weight: 600; line-height: 1.15; }
.view.market .who { font-size: 1.45rem; }
.view .src { margin: 4px 0 14px; color: var(--text-faint); font-size: 1.04rem; }
.view p { color: var(--text-soft); font-size: 1.2rem; line-height: 1.38; }
.view p + p { margin-top: 12px; }
.pbar { height: 6px; margin: 16px 0 8px; overflow: hidden; border-radius: 999px; background: var(--soft-2); }
.pbar i { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.pbar-cap { display: flex; justify-content: space-between; color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.empty { padding: 24px 28px; border: 1px dashed var(--hair-2); border-radius: var(--r); color: var(--text-faint); font-size: 1.2rem; }
.sub-title { margin: 36px 0 0; font-size: 1.6rem; font-weight: 600; }
.sub-title:first-of-type { margin-top: 32px; }
.method-note { margin-top: 36px; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.method-note summary { padding: 20px 0; font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.method-note-body { padding: 0 0 24px; max-width: 74ch; color: var(--text-soft); font-size: 1.2rem; }
.method-note-body p + p { margin-top: 12px; }

/* ---------- learn ---------- */
.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; margin-top: 6px; border-top: 2px solid var(--ink); }
.glossary > div { padding: 26px 0 26px; border-bottom: 1px solid var(--hair-2); }
.glossary dt { margin-bottom: 8px; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.glossary dd { color: var(--text-soft); font-size: 1.2rem; line-height: 1.38; }
.learn-shorts { margin-top: 56px; }

/* ---------- footer ---------- */
.footer { margin-top: 160px; padding: 72px 0 72px; background: var(--soft); border-top: 1px solid var(--hair); }
.block.report + .block ~ .footer, .footer { margin-top: 160px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-logo svg { height: 30px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--text-soft); font-size: 1.15rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 30px; padding-top: 4px; }
.footer-nav a { color: var(--text-soft); font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 30px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--hair-2); }
.footer-legal a { color: var(--text-soft); font-size: 1.06rem; font-weight: 600; text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-note, .disclaimer, .copyright { max-width: 96ch; margin-top: 18px; color: var(--text-faint); font-size: 1.04rem; line-height: 1.4; }
.disclaimer b { color: var(--text-soft); }
.noscript { padding: 24px; text-align: center; color: var(--text-soft); }

/* ---------- consent and player ---------- */
.consent { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 60; display: flex; align-items: center; gap: 28px; width: min(820px, calc(100vw - 32px)); padding: 18px 20px 18px 28px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--hair-2); border-radius: 24px; box-shadow: 0 16px 48px rgba(13, 17, 23, .16); transform: translateX(-50%); }
.consent-text { flex: 1 1 auto; color: var(--text-soft); font-size: 1.06rem; line-height: 1.34; }
.consent-text strong { color: var(--ink); }
.consent-actions { display: flex; flex: none; gap: 8px; }
.player { width: min(460px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(13, 17, 23, .35); }
.player::backdrop { background: rgba(13, 17, 23, .6); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 10px; }
.player-head h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.player-x { padding: 2px 10px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-soft); font-size: 2rem; line-height: 1; cursor: pointer; }
.player-x:hover { background: var(--soft); }
.player-body { padding: 4px 22px 24px; }
.player-note { padding: 22px; border-radius: var(--r-sm); background: var(--soft); color: var(--text-soft); font-size: 1.12rem; line-height: 1.36; }
.player-note .btn { margin-top: 16px; }
.player-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 72vh; margin: 0 auto; background: #000; border-radius: var(--r-sm); overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- legal pages ---------- */
.page { padding: 88px 0 0; }
.page .narrow { max-width: 780px; }
.page h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); margin: 14px 0 10px; }
.page h2 { margin-top: 52px; font-size: 2.1rem; letter-spacing: -0.01em; }
.page h3 { margin-top: 28px; font-size: 1.5rem; font-weight: 600; }
.page p, .page li { margin-top: 14px; color: var(--text-soft); font-size: 1.22rem; line-height: 1.46; }
.page ul { padding-left: 1.2em; }
.page a { color: var(--navy); }
.page .lead { color: var(--text-faint); font-size: 1.15rem; }
.todo { padding: 0 6px 2px; border-radius: 4px; background: #fff3c4; color: #6a4a00; font-style: normal; }
.draft-banner { margin: 26px 0 8px; padding: 18px 22px; border: 1px solid #e8c25a; border-radius: var(--r-sm); background: #fff8dc; color: #6a4a00; font-size: 1.12rem; line-height: 1.36; }
.form { display: grid; gap: 18px; margin-top: 30px; }
.form label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 1.08rem; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--hair-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 500 1.2rem/1.4 var(--font); }
.form textarea { min-height: 160px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: 1.04rem; font-weight: 500; line-height: 1.36; }
.form .check input { margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- responsive (desktop first) ---------- */
@media (min-width: 961px) {
  .col-4 .card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 1100px) {
  .wrap { padding: 0 28px; }
  .block > .wrap::before { left: 28px; right: 28px; }
  .hero { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); padding-top: 72px; }
  .hero-logo { padding-right: 44px; }
  .hero-text { padding-left: 44px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: 0; padding-right: 0; }
  .kpi:nth-child(3) { padding-left: 0; }
  .kpi:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--hair-2); }
  .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { gap: 22px; }
  .topbar-inner { gap: 28px; }
}
@media (max-width: 960px) {
  .col-8, .col-4, .col-6 { grid-column: span 12; }
  .h-chart { height: 500px; }
  .stack { flex-direction: row; flex-wrap: wrap; }
  .stack > .card { flex: 1 1 280px; }
  .h-gauge { min-height: 340px; }
  .mt { grid-template-columns: minmax(0, 1fr); }
  .mt-row { display: block; margin-bottom: 4px; }
  .mt-label { padding-bottom: 8px; }
  .mt-plot { min-height: 0; height: 76px; }
  .mt-axis { margin-top: 8px; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px 28px 16px; background: #fff; border-bottom: 1px solid var(--hair); box-shadow: 0 22px 34px rgba(13, 17, 23, .10); }
  .topnav.open { display: flex; }
  .topnav a { padding: 16px 0; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 1.35rem; }
  .topnav a[aria-current="true"] { border-bottom-color: var(--hair); color: var(--orange-ink); }
  .topnav a:last-child { border-bottom: 0; }
  .menu-btn { display: block; }
  .brand { margin-right: auto; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 1.2rem; }
  .wrap { padding: 0 20px; }
  .block > .wrap::before { left: 20px; right: 20px; }
  .topbar-inner { height: 62px; }
  .brand svg { height: 24px; }
  .topbar-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 0 0; text-align: center; }
  .hero-logo { max-width: 340px; margin: 0 auto; padding-right: 0; }
  .hero-text { padding: 0; border-left: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; font-size: 1.4rem; }
  .hero-actions { justify-content: center; }
  .block { margin-top: 92px; }
  .block > .wrap { padding-top: 32px; }
  .block.report { margin-top: 96px; padding-bottom: 96px; }
  .block.report > .wrap { padding-top: 64px; }
  .block.report + .block > .wrap { padding-top: 92px; }
  .section-head { margin-bottom: 32px; }
  .card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kpis { margin: 40px 0; }
  .kpi { padding: 20px 18px 4px 0; }
  .kpi + .kpi { padding-left: 18px; }
  .kpi:nth-child(3) { padding-left: 0; }
  .panel-title { font-size: 1.9rem; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .news li { grid-template-columns: minmax(0, 1fr); }
  .news .hl { font-size: 1.38rem; }
  .views { grid-template-columns: minmax(0, 1fr); }
  .view { padding: 24px 22px; }
  .footer { margin-top: 112px; padding: 56px 0; }
  .consent { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .consent-actions .btn { flex: 1 1 0; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 0; padding-left: 0.4em; padding-right: 0.4em; font-size: 1.02rem; }
  .hist, .hist tbody { display: block; }
  .hist thead { display: none; }
  .hist tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 18px 0; border-bottom: 1px solid var(--hair-2); }
  .hist td { display: block; padding: 0; border: 0; }
  .hist td.cyc { grid-column: 1 / -1; font-size: 1.5rem; }
  .hist td[data-l]::before { content: attr(data-l); display: block; color: var(--text-faint); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .hist tr.now { padding-left: 16px; box-shadow: inset 4px 0 0 var(--orange); }
  .hist tr.now td:first-child { padding-left: 0; box-shadow: none; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi, .kpi + .kpi, .kpi:nth-child(3) { padding: 20px 0 4px; border-right: 0; }
  .kpi:nth-child(n+2) { margin-top: 20px; border-top: 1px solid var(--hair-2); }
  .shorts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tab, .topnav a, .news .hl a, .menu-btn span, .short-play { transition: none; }
}
