/* Home — hybrid A + C (Nov 2026, revised beta).
 * Editorial premium design language: white paper, thin VI-red rules, mono numerals.
 * Every rule is scoped under .page-home and/or the .hac- prefix. */

/* 2026-11-04 (unify WP0): the --hac-* values now live in css/fc-ui.css as the site-wide --fc-* tokens.
 * These are aliases with the approved values as fallbacks, so the home renders the same with or without
 * fc-ui.css. They read --fc-red, never --fc-accent: the home never takes a partner theme. */
.page-home {
  --hac-red: var(--fc-red, #C7000B); --hac-deep: var(--fc-red-deep, #A5000A); --hac-hot: var(--fc-red-hot, #E9002F); --hac-grey: var(--fc-grey, #595757);
  --hac-ink: var(--fc-ink, #000); --hac-ink2: var(--fc-ink2, #2E2E2C); --hac-ink3: var(--fc-ink3, #5F5F5D); --hac-ink4: var(--fc-ink4, #666664);
  --hac-paper: var(--fc-paper, #FFFFFF); --hac-mist: var(--fc-mist, #F6F6F4); --hac-rule: var(--fc-rule, #DCDCD8); --hac-rule-soft: var(--fc-rule-soft, #ECECE9);
  --hac-bar: var(--fc-bar, #CFCFCB); --hac-tint: var(--fc-tint, #FBE9EA);
  --hac-mono: var(--fc-mono, 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace);
  --hac-sans: var(--fc-sans, 'Hanken Grotesk', 'Noto Sans Thai', Arial, system-ui, sans-serif);
}
/* 2026-11-04 (unify WP1, judge r1): the site-wide --ink-4 went #8A8A88 -> #666664 for contrast. The approved
 * home's only use of it is the 7 px feed-stamp dot; pin the approved value here so the home stays identical. */
.page-home { --ink-4: #8A8A88; }
html[data-lang="th"] .page-home { --hac-sans: var(--fc-sans, 'Noto Sans Thai', 'Hanken Grotesk', Arial, system-ui, sans-serif); }

.page-home > * + * { margin-top: 0; }
.page-home > .hac-explore { margin-top: 18px; }
.page-home > .hac-sec { margin-top: 32px; }
.page-home > .hac-close { margin-top: 30px; }
.page-home > .lead-blk { margin-top: 40px; }
.page-home .lead-blk.hac-flash { box-shadow: 0 0 0 3px var(--hac-red); transition: box-shadow .3s; }

.page-home a.hac-btn, .page-home button.hac-btn, .page-home .hac-ex, .page-home .hac-pc,
.page-home .hac-ch, .page-home .hac-go, .page-home .hac-simbtn { text-decoration: none; }
.page-home .hac-bc:focus-visible, .page-home .hac-seg-b:focus-visible, .page-home .hac-ctl:focus-visible,
.page-home .hac-tab:focus-visible { outline: 2px solid var(--hac-red); outline-offset: 2px; }

/* ------------------------------------------------------------- HERO CARD */
.hac-hero { background: var(--hac-paper); border-top: 3px solid var(--hac-red); padding: 0 32px 28px; }
.hac-mast {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  padding: 16px 0 14px; border-bottom: 1px solid var(--hac-rule);
}
.hac-mast-mark { height: 21px; width: auto; display: block; }
.hac-mast-issue { font-size: 13px; color: var(--hac-ink3); }

.hac-hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 32px; padding-top: 22px; align-items: stretch; }
.hac-hero-l { min-width: 0; }
.hac-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--hac-red); }
.hac-h1 {
  margin: 0; font-family: var(--hac-sans); font-weight: 700; color: var(--hac-ink);
  font-size: clamp(30px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.hac-h1 em { font-style: normal; color: var(--hac-red); }
html[data-lang="th"] .hac-h1 { line-height: 1.3; letter-spacing: 0; font-size: clamp(28px, 3vw, 36px); }
.hac-deck { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--hac-ink2); max-width: 36em; }
html[data-lang="th"] .hac-deck { font-size: 15.5px; line-height: 1.7; }

/* proof board, set as the editorial ticker */
.hac-proof { margin-top: 20px; border-top: 1px solid var(--hac-ink); }
.hac-proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 9px 0 4px; }
.hac-proof-t { font-weight: 700; font-size: 14px; color: var(--hac-ink); }
.hac-proof-stamp { font-size: 12.5px; color: var(--hac-ink3); }
.hac-proof-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hac-pf { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 6px; border-left: 1px solid var(--hac-rule); min-width: 0; }
.hac-pf:first-child { border-left: 0; padding-left: 0; }
.hac-pf-v { font: 500 28px/1 var(--hac-mono); color: var(--hac-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hac-pf-v small { font-size: 13px; margin-left: 3px; color: var(--hac-ink3); letter-spacing: 0; }
.hac-pf-k { margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--hac-ink2); }
.hac-pf-s { font-size: 12px; line-height: 1.3; color: var(--hac-ink3); }

/* VI line-art strip, ruled like an editorial aside */
.hac-vi { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 8px 0; border-top: 1px solid var(--hac-rule-soft); border-bottom: 1px solid var(--hac-rule-soft); }
.hac-vi-art { height: 38px; width: auto; max-width: 92px; flex: none; display: block; }
.hac-vi-cap { margin: 0; font-size: 13px; line-height: 1.45; color: var(--hac-ink3); min-width: 0; }
.hac-vi-cap b { color: var(--hac-ink); font-weight: 600; }

.hac-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.hac-ctas .hac-btn { padding: 0 16px; font-size: 15px; }
.page-home .hac-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  font: 600 15.5px/1.2 var(--hac-sans); border-radius: 3px; cursor: pointer; border: 1.5px solid transparent;
  transition: background var(--dur-fast, 120ms), color var(--dur-fast, 120ms);
}
.page-home .hac-btn-red { background: var(--hac-red); color: #fff; }
.page-home .hac-btn-red:hover { background: var(--hac-deep); color: #fff; }
.page-home .hac-btn-ghost { background: transparent; color: var(--hac-ink); border-color: var(--hac-ink); }
.page-home .hac-btn-ghost:hover { background: var(--hac-ink); color: #fff; }
.page-home .hac-simbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; color: var(--hac-ink2); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.page-home .hac-simbtn:hover { color: var(--hac-red); }
.hac-simbtn-ic { flex: none; width: 34px; height: 34px; border: 1px solid var(--hac-red); border-radius: 50%; display: grid; place-items: center; color: var(--hac-red); }

/* ---------- story deck ---------- */
.hac-deckbox {
  min-width: 0; background: var(--hac-mist); border-top: 3px solid var(--hac-red);
  padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 8px;
}
.hac-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.page-home .hac-tab {
  appearance: none; border: 0; background: transparent; padding: 6px 0 2px; min-height: 40px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: left; color: var(--hac-ink3);
  font: inherit;
}
.page-home .hac-tab.active { color: var(--hac-ink); }
.hac-tab-track { display: block; width: 100%; height: 2px; background: var(--hac-rule); overflow: hidden; }
.hac-tab-fill { display: block; height: 100%; width: 0; background: var(--hac-red); }
.hac-tab.done .hac-tab-fill { width: 100%; background: var(--hac-grey); }
.hac-tab.active .hac-tab-fill { width: 100%; animation: hac-progress 6s linear forwards; }
.hac-deckbox.paused .hac-tab.active .hac-tab-fill { animation-play-state: paused; }
@keyframes hac-progress { from { width: 0; } to { width: 100%; } }
.hac-tab-l { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hac-deck-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--hac-rule); }
.hac-authors { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; min-width: 0; }
.hac-author { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hac-author.off, .hac-sl.off { visibility: hidden; pointer-events: none; }
.hac-avatar { flex: none; width: 32px; height: 32px; border: 1px solid var(--hac-red); border-radius: 50%; display: grid; place-items: center; color: var(--hac-red); background: var(--hac-paper); }
.hac-author-n { display: block; font-size: 13.5px; line-height: 1.25; color: var(--hac-ink); }
.hac-author-s { display: block; font-size: 12px; line-height: 1.3; color: var(--hac-ink3); }
.hac-ctls { display: flex; gap: 4px; flex: none; }
.page-home .hac-ctl {
  appearance: none; width: 40px; height: 40px; border: 1px solid var(--hac-rule); border-radius: 3px; background: var(--hac-paper);
  color: var(--hac-ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.page-home .hac-ctl:hover { border-color: var(--hac-red); color: var(--hac-red); }

.hac-stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; }
.hac-sl {
  grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  background: var(--hac-paper); border: 1px solid var(--hac-rule-soft); border-radius: 4px; padding: 14px 16px 6px;
}
.hac-sl > div:first-child { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hac-sl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hac-sl-t { margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; color: var(--hac-ink); }
html[data-lang="th"] .hac-sl-t { letter-spacing: 0; }
.hac-badge { font: 500 12px var(--hac-mono); padding: 2px 9px; border: 1px solid var(--hac-red); color: var(--hac-deep); border-radius: 999px; white-space: nowrap; }
.hac-sl-stamp { margin: 0; font-size: 12px; line-height: 1.4; color: var(--hac-ink3); }
.hac-sl-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--hac-rule-soft); }
.page-home .hac-sl-foot .feed-stamp { font-size: 11px; padding: 2px 8px; margin: 0; }
.page-home .hac-go { display: inline-block; padding: 11px 0; line-height: 18px; font-size: 13.5px; font-weight: 600; color: var(--hac-red); white-space: nowrap; }
.hac-arr { display: inline-block; margin-left: 5px; }
.page-home .hac-go:hover { color: var(--hac-deep); text-decoration: underline; text-underline-offset: 3px; }

/* slide 1: CPOs */
.hac-cpo { flex: 1; display: grid; gap: 7px; align-content: space-evenly; }
.hac-cpo-row { display: grid; grid-template-columns: 112px minmax(30px, 1fr) 122px; align-items: center; gap: 8px; font-size: 13px; }
.hac-cpo-n { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--hac-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hac-cpo-n i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.hac-cpo-n i.none { border: 1px solid var(--hac-bar); }
.hac-cpo-bar { height: 6px; background: var(--hac-mist); overflow: hidden; border-radius: 0 3px 3px 0; }
.hac-cpo-bar i { display: block; height: 100%; background: var(--hac-red); border-radius: 0 3px 3px 0; }
.hac-cpo-v { font: 12px var(--hac-mono); color: var(--hac-ink2); text-align: right; white-space: nowrap; }

/* slide 2: 24 h */
.hac-pulse { display: flex; align-items: center; gap: 14px; padding: 2px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--hac-rule-soft); }
.hac-pulse-v { flex: none; font: 500 40px/1 var(--hac-mono); color: var(--hac-red); letter-spacing: -0.03em; }
.hac-pulse-v small { font-size: 18px; color: var(--hac-ink3); margin-left: 2px; letter-spacing: 0; }
.hac-pulse-t { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--hac-ink2); }
.hac-t10 { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; align-content: space-evenly; }
.hac-t10 li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; padding: 4px 8px; border-radius: 3px; color: var(--hac-ink2); }
.hac-t10 li.hw { background: var(--hac-tint); }
.hac-t10-rk { font: 500 12.5px var(--hac-mono); color: var(--hac-ink3); }
.hac-t10 li.hw .hac-t10-rk { color: var(--hac-red); font-weight: 600; }
.hac-t10-l { line-height: 1.3; min-width: 0; }
.hac-t10-l b { color: var(--hac-ink); font-weight: 600; }
.hac-t10-pre { color: var(--hac-ink3); }
.hac-t10-s { font: 12.5px var(--hac-mono); color: var(--hac-ink); text-align: right; white-space: nowrap; }

/* slide 3: largest site */
.hac-flag { flex: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; align-content: center; }
.hac-loc { display: block; height: auto; overflow: visible; }
.hac-loc-deck { width: 112px; }
.hac-land-edge { fill: none; stroke: var(--hac-red); stroke-width: 3; stroke-linejoin: round; }
.hac-land-fill { fill: #fff; stroke: #E6E6E3; stroke-width: .5; stroke-linejoin: round; }
.hac-loc-dots circle { fill: #BDBDBA; }
.hac-loc-ring { fill: none; stroke: var(--hac-red); stroke-width: 2.5; }
.hac-loc-hit { fill: var(--hac-red); stroke: #fff; stroke-width: 2.5; }
.hac-flag-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hac-rule); }
.hac-flag-k > span { display: flex; flex-wrap: wrap; align-items: baseline; padding: 8px 10px 8px 0; font-size: 13px; color: var(--hac-ink3); }
.hac-flag-k > span + span { padding-left: 12px; border-left: 1px solid var(--hac-rule); }
.hac-flag-k b { font: 500 26px/1 var(--hac-mono); color: var(--hac-ink); letter-spacing: -0.02em; margin-right: 4px; }
.hac-flag-k small { flex-basis: 100%; margin-top: 4px; font-size: 12px; color: var(--hac-ink3); }
.hac-flag-b { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--hac-ink2); }
html[data-lang="th"] .hac-flag-b { line-height: 1.65; }

/* slide 4: hardware */
.hac-hws { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.hac-hw { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border: 1px solid var(--hac-rule-soft); border-radius: 4px; min-width: 0; }
.hac-hw img { flex: none; width: 64px; height: 88px; object-fit: contain; }
.hac-hw > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hac-hw-sku { font: 500 11px var(--hac-mono); color: var(--hac-red); }
.hac-hw-n { font-size: 15px; line-height: 1.25; color: var(--hac-ink); }
.hac-hw-s { font-size: 13px; line-height: 1.4; color: var(--hac-ink3); }

/* --------------------------------------------------------------- EXPLORE */
.hac-explore { display: flex; align-items: stretch; background: var(--hac-paper); border: 1px solid var(--hac-rule-soft); }
.hac-explore-h {
  margin: 0; flex: none; width: 92px; display: flex; align-items: center; padding: 0 16px;
  font-size: 14px; font-weight: 700; color: var(--hac-ink); border-right: 1px solid var(--hac-rule-soft);
}
.hac-explore-list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.hac-explore-list li { min-width: 0; }
.page-home .hac-ex {
  height: 100%; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 4px; text-align: center; color: var(--hac-ink2); font-size: 12.5px; line-height: 1.25; font-weight: 500;
  border-left: 1px solid var(--hac-rule-soft);
}
.hac-explore-list li:first-child .hac-ex { border-left: 0; }
.hac-ex-ic { color: var(--hac-red); display: grid; place-items: center; }
.page-home .hac-ex:hover { background: var(--hac-tint); color: var(--hac-ink); }

/* ------------------------------------------------------- SECTION HEADING */
.hac-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--hac-ink); margin-bottom: 18px; }
.hac-h2 { margin: 0; font-family: var(--hac-sans); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--hac-ink); }
html[data-lang="th"] .hac-h2 { letter-spacing: 0; line-height: 1.3; }
.hac-nw { white-space: nowrap; }
.hac-sec-stamp { margin: 0; font-size: 12.5px; color: var(--hac-ink3); max-width: 64ch; }
.hac-h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--hac-ink); }
.hac-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--hac-ink3); }

/* segmented control (chart metric, DLT series, market filter) */
.hac-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--hac-rule); border-radius: 3px; background: var(--hac-paper); }
.page-home .hac-seg-b {
  appearance: none; border: 0; border-left: 1px solid var(--hac-rule); background: transparent; color: var(--hac-ink3);
  font: 600 12.5px/1.2 var(--hac-sans); min-height: 40px; padding: 0 14px; cursor: pointer;
}
.page-home .hac-seg-b:first-child { border-left: 0; }
.page-home .hac-seg-b:hover { color: var(--hac-ink); background: var(--hac-mist); }
.page-home .hac-seg-b.on { background: var(--hac-ink); color: #fff; }

/* bar chart: flex columns, labels centred under their bars */
.hac-bc { outline-offset: 4px; padding: 0 12px; }
.hac-bc-plot { display: flex; align-items: stretch; gap: 3px; padding-top: 18px; border-bottom: 1px solid var(--hac-rule); box-sizing: content-box; }
.hac-bc-col { flex: 1; position: relative; display: flex; align-items: flex-end; cursor: crosshair; min-width: 0; }
.hac-bc-col i { display: block; width: 100%; background: var(--hac-bar); border-radius: 2px 2px 0 0; transition: background .12s; }
.hac-bc-col.peak i { background: var(--hac-grey); }
.hac-bc-col.last i { background: var(--hac-red); }
.hac-bc-col.part i { background: repeating-linear-gradient(135deg, var(--hac-bar) 0 2px, transparent 2px 4px); outline: 1px solid var(--hac-bar); }
.hac-bc-col.on i { background: var(--hac-red); outline-color: var(--hac-red); }
.hac-bc-col.part.on i { background: repeating-linear-gradient(135deg, var(--hac-red) 0 2px, transparent 2px 4px); }
.hac-bc-val { position: absolute; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--hac-mono); color: var(--hac-ink); white-space: nowrap; pointer-events: none; }
.hac-bc-col.last .hac-bc-val { color: var(--hac-red); }
.hac-bc-axis { display: flex; gap: 3px; margin-top: 5px; }
.hac-bc-axis > span { flex: 1; min-width: 0; display: flex; justify-content: center; }
.hac-bc-axis b { font: 400 10.5px var(--hac-mono); color: var(--hac-ink4); white-space: nowrap; }

.hac-read { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 4px; min-height: 22px; font-size: 13px; color: var(--hac-ink2); }
.hac-read b { color: var(--hac-ink); }
.hac-read span { font-family: var(--hac-mono); font-size: 12.5px; }
.hac-read2 { margin: 8px 0 0; font: 12px var(--hac-mono); color: var(--hac-ink3); }

/* ---------------------------------------------------------------- SOCIAL */
.hac-soc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; }
.hac-big { display: flex; flex-direction: column; gap: 4px; }
.hac-big-v { font: 400 clamp(46px, 5.4vw, 68px)/0.95 var(--hac-mono); letter-spacing: -0.04em; color: var(--hac-ink); }
.hac-big-l { font-size: 14px; color: var(--hac-ink2); }
.hac-tots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--hac-rule); }
.hac-tot { padding: 10px 10px 8px 0; display: flex; flex-direction: column; gap: 1px; }
.hac-tot + .hac-tot { padding-left: 12px; border-left: 1px solid var(--hac-rule); }
.hac-tot-v { font: 500 22px/1.1 var(--hac-mono); color: var(--hac-ink); }
.hac-tot-l { font-size: 12.5px; color: var(--hac-ink3); }
.hac-tot-d { font: 600 12.5px var(--hac-mono); color: var(--hac-red); }
.hac-delta { margin: 6px 0 0; font-size: 12px; color: var(--hac-ink3); }
.hac-plat { margin-top: 14px; }
.hac-plat-rows { display: grid; gap: 5px; }
.hac-plat-row { display: grid; grid-template-columns: 80px minmax(40px, 1fr) 76px 112px; align-items: center; gap: 10px; font-size: 13px; }
.hac-plat-n { font-weight: 600; color: var(--hac-ink); }
.hac-plat-bar { height: 8px; background: var(--hac-mist); border-radius: 0 4px 4px 0; overflow: hidden; }
.hac-plat-bar i { display: block; height: 100%; background: var(--hac-red); border-radius: 0 4px 4px 0; }
.hac-plat-i { font-family: var(--hac-mono); font-size: 12.5px; color: var(--hac-ink2); text-align: right; }
.hac-plat-v { font-size: 12.5px; color: var(--hac-ink3); }

.hac-mom { min-width: 0; }
.hac-mom-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.hac-mom-head .hac-h3 { margin: 0; }
.hac-mom-win { margin: 2px 0 0; font-size: 12px; color: var(--hac-ink3); }
.hac-mom-plot { margin-top: 4px; }
.hac-method { margin-top: 2px; font-size: 12px; color: var(--hac-ink3); }
.hac-method summary { cursor: pointer; min-height: 40px; min-width: 120px; padding: 10px 0; display: inline-flex; align-items: center; color: var(--hac-ink2); font-weight: 600; }
.hac-method p { margin: 0 0 6px; line-height: 1.55; max-width: 70ch; }

.hac-mosaic-h { margin-top: 22px; }
.hac-media { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 112px 112px 140px; gap: 8px; grid-auto-flow: row dense; }
.hac-mosaic { display: contents; }
.page-home .hac-pc { position: relative; overflow: hidden; border-radius: 4px; background: var(--hac-ink); color: #fff; display: block; isolation: isolate; }
.hac-pc-big { grid-column: span 2; grid-row: span 2; }
.hac-pc-media { position: absolute; inset: 0; z-index: -1; }
.hac-pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out, ease-out); }
.page-home .hac-pc:hover .hac-pc-media img { transform: scale(1.03); }
.hac-pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 15%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.94) 68%, rgba(0,0,0,.96) 100%); }
.hac-pc-brand {
  background-color: #000;
  background-image: repeating-radial-gradient(circle at 105% 115%, transparent 0 15px, rgba(199,0,11,.6) 15px 16px);
  padding: 12px 14px;
}
.hac-pc-brand::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%); }
.hac-pc-brand-v { display: block; font: 500 30px/1 var(--hac-mono); letter-spacing: -0.03em; margin-top: 2px; }
.hac-pc-big .hac-pc-brand-v { font-size: 64px; margin-top: 14px; }
.hac-pc-brand-u { display: block; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.page-home .hac-pc:not(.hac-pc-big) .hac-pc-brand-u { display: none; }
.page-home .hac-pc:not(.hac-pc-big) .hac-pc-brand-v { font-size: 26px; }
.hac-pc-play { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5); color: #fff; z-index: 1; }
.hac-pc-big .hac-pc-play { width: 44px; height: 44px; }
.hac-pc-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 11px; display: flex; flex-direction: column; gap: 1px; }
.hac-pc-top { display: flex; gap: 8px; font-size: 11px; color: rgba(255,255,255,.75); }
.hac-pc-plat { font-weight: 700; color: #fff; }
.hac-pc-plat::after { content: ''; display: inline-block; width: 1px; height: 9px; background: rgba(255,255,255,.5); margin-left: 8px; vertical-align: -1px; }
.hac-pc-who { font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac-pc-m { font: 12px var(--hac-mono); color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac-pc-big .hac-pc-meta { padding: 16px 18px; gap: 3px; }
.hac-pc-big .hac-pc-who { font-size: 20px; }
.hac-pc-big .hac-pc-m { font-size: 13px; white-space: normal; }
.hac-pc-kind { align-self: flex-start; margin-top: 4px; font-size: 11.5px; padding: 1px 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.page-home .hac-pc:focus-visible { box-shadow: 0 0 0 3px var(--hac-red); }

.hac-follow {
  grid-column: 4 / span 3; grid-row: 3; min-width: 0;
  background: var(--hac-ink); color: #fff; border-radius: 4px; padding: 14px 16px; border-top: 3px solid var(--hac-red);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.hac-follow-id { display: flex; align-items: center; gap: 8px 16px; min-width: 0; }
.hac-follow-id img { height: 22px; width: auto; flex: none; }
.hac-follow-t { margin: 0; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.75); min-width: 0; }
.hac-follow-t b { display: block; color: #fff; font-size: 13px; }
.hac-follow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.page-home .hac-ch {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 42px; padding: 2px 10px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 3px; color: #fff; line-height: 1.15;
}
.hac-ch b { font-size: 12px; }
.hac-ch span { font-size: 10.5px; color: rgba(255,255,255,.65); }
.page-home .hac-ch:hover { border-color: var(--hac-red); background: rgba(199,0,11,.18); }

/* ---------------------------------------------------------------- MARKET */
.hac-mk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin: -6px 0 14px; }
.hac-mk-sub { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--hac-ink3); flex: 1 1 320px; min-width: 0; }
.hac-mk-vi { flex: none; height: 38px; width: auto; display: block; }

.hac-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.hac-nc { background: var(--hac-paper); border: 1px solid var(--hac-rule-soft); border-radius: 4px; padding: 14px 18px 4px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hac-nc-reg { grid-column: span 2; border-top: 3px solid var(--hac-red); padding: 16px 22px 4px; }
.hac-nc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--hac-ink3); padding-bottom: 8px; border-bottom: 1px solid var(--hac-rule-soft); }
.hac-nc-kind { font-weight: 700; color: var(--hac-red); }
.hac-nc-meta time { font-family: var(--hac-mono); font-size: 11.5px; white-space: nowrap; }
.hac-nc-t { margin: 2px 0 0; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; color: var(--hac-ink); }
.hac-nc-reg .hac-nc-t { font-size: 18px; }
html[data-lang="th"] .hac-nc-t { letter-spacing: 0; }
.hac-nc-b { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--hac-ink2); }
html[data-lang="th"] .hac-nc-b { line-height: 1.65; }
.hac-nc-foot { display: flex; justify-content: space-between; align-items: center; gap: 0 12px; flex-wrap: wrap; margin-top: auto; border-top: 1px solid var(--hac-rule-soft); }
.page-home .hac-src { display: inline-block; padding: 11px 0; font-size: 12px; line-height: 18px; color: var(--hac-ink2); text-decoration: underline; text-decoration-color: var(--hac-rule); text-underline-offset: 3px; }
.page-home .hac-src:hover { color: var(--hac-red); }
.hac-ext { display: inline-block; margin-left: 4px; color: var(--hac-red); }
.hac-ext svg { display: inline; }

.hac-fig { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.hac-fig-v { font: 400 34px/1 var(--hac-mono); letter-spacing: -0.03em; color: var(--hac-ink); }
.hac-fig.red .hac-fig-v { color: var(--hac-red); }
.hac-fig-v small { font-size: 20px; margin-left: 1px; }
.hac-fig-u { font-size: 12.5px; color: var(--hac-ink3); }

.hac-dlt { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px; align-items: start; margin-top: 2px; }
.hac-dlt-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hac-dlt-figs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; }
.hac-dlt-figs .hac-fig { flex-direction: column; align-items: flex-start; gap: 4px; }
.hac-dlt-figs .hac-fig:first-child .hac-fig-v { font-size: 46px; }
.hac-dlt-figs .hac-fig.red .hac-fig-v { font-size: 30px; }
.hac-dlt-chart { min-width: 0; }
.hac-dlt-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 2px; }
.hac-dlt-src { font-size: 12px; color: var(--hac-ink3); }
.hac-read-sm { margin: 8px 0 0; }

.hac-ln { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
.hac-gauge { width: 150px; height: auto; display: block; }
.hac-g-track { fill: none; stroke: var(--hac-rule-soft); stroke-width: 10; }
.hac-g-val { fill: none; stroke: var(--hac-red); stroke-width: 10; }
.hac-g-tick { stroke: var(--hac-ink4); stroke-width: 1; }
.hac-g-lbl { font: 14px var(--hac-mono); fill: var(--hac-ink4); }
.hac-g-num { font: 500 30px var(--hac-mono); fill: var(--hac-ink); letter-spacing: -1px; }
.hac-g-unit { font: 13px var(--hac-mono); fill: var(--hac-ink3); }
/* the launch card beside the registrations card: a larger dial over its chips */
@media (min-width: 641px) {
  .hac-nc-reg + .hac-nc .hac-ln { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 4px 0 2px; }
  .hac-nc-reg + .hac-nc .hac-gauge { width: 210px; }
  .hac-nc-reg + .hac-nc .hac-chips { justify-content: center; }
}
.hac-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.hac-chips li { font: 500 11.5px var(--hac-mono); padding: 2px 8px; border: 1px solid var(--hac-red); color: var(--hac-deep); border-radius: 999px; white-space: nowrap; }

.hac-pills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hac-pills li { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--hac-ink); padding: 5px 10px; border: 1px dashed var(--hac-grey); border-left: 3px solid var(--hac-red); border-radius: 3px; min-width: 0; }

.hac-stn { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; align-items: center; }
.hac-loc-card { width: 70px; }
.hac-stn-figs { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--hac-ink3); min-width: 0; }
.hac-stn-figs b { font: 500 24px var(--hac-mono); color: var(--hac-ink); letter-spacing: -0.02em; }
.hac-stn-cpo { font: 11.5px var(--hac-mono); color: var(--hac-ink3); margin-top: 2px; }

.hac-nbar { display: flex; gap: 2px; height: 5px; }
.hac-nbar i { display: block; height: 100%; }
.hac-nbar .op { background: var(--hac-red); }
.hac-nbar .bd { background: repeating-linear-gradient(135deg, var(--hac-grey) 0 2px, transparent 2px 4px); }
.hac-nbar-l { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--hac-ink3); margin-top: -4px; }
.hac-nbar-l .op { color: var(--hac-deep); font-weight: 600; }

/* ----------------------------------------------------------- KV BACK COVER */
.hac-kv { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: #050812; aspect-ratio: 8 / 3; max-height: 520px; }
.hac-kv picture, .hac-kv picture img { display: block; width: 100%; height: 100%; }
.hac-kv picture img { object-fit: cover; object-position: 50% 80%; }
.hac-kv-cap { position: absolute; left: 0; top: 0; padding: 24px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: #fff; max-width: 70%; }
.hac-kv-mark { height: 22px; width: auto; }
.hac-kv-slogan { font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1180px) {
  .hac-explore-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hac-explore-list li:nth-child(6) .hac-ex { border-left: 0; }
  .hac-explore-list li:nth-child(n+6) .hac-ex { border-top: 1px solid var(--hac-rule-soft); }
  .hac-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hac-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hac-hero { padding: 0 18px 20px; }
  .hac-soc-grid { grid-template-columns: 1fr; gap: 28px; }
  .hac-explore { flex-direction: column; }
  .hac-explore-h { width: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--hac-rule-soft); }
  .hac-explore-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hac-explore-list li .hac-ex { border-left: 1px solid var(--hac-rule-soft); border-top: 1px solid var(--hac-rule-soft); }
  .hac-explore-list li:nth-child(3n+1) .hac-ex { border-left: 0; }
  .hac-explore-list li:nth-child(-n+3) .hac-ex { border-top: 0; }
  .hac-explore-list li:nth-child(6) .hac-ex { border-left: 1px solid var(--hac-rule-soft); }
  /* posts become a swipeable strip */
  .hac-media { display: block; }
  .hac-mosaic { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; grid-template-rows: 180px; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; overscroll-behavior-x: contain; }
  .hac-follow { margin-top: 12px; gap: 12px; }
  .hac-follow-id { flex-wrap: wrap; }
  .page-home .hac-pc { scroll-snap-align: start; }
  .hac-pc-big { grid-column: auto; grid-row: auto; }
  .hac-pc-big .hac-pc-brand-v { font-size: 40px; margin-top: 4px; }
  .hac-pc-big .hac-pc-who { font-size: 15px; }
  .hac-pc-kind { display: none; }
}
@media (max-width: 640px) {
  .hac-bento { grid-template-columns: minmax(0, 1fr); }
  .hac-nc-reg { grid-column: auto; padding: 14px 16px 4px; }
  .hac-nc { padding: 12px 16px 4px; }
  .hac-dlt { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hac-dlt-figs .hac-fig:first-child .hac-fig-v { font-size: 40px; }
  .hac-bc-axis .hac-dk { visibility: hidden; }
  .hac-proof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hac-pf { padding: 10px 12px 8px 0; border-left: 0; border-top: 1px solid var(--hac-rule-soft); }
  .hac-pf:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--hac-rule-soft); }
  .hac-pf:nth-child(-n+2) { border-top: 0; }
  .hac-mk-sub { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .hac-mast-mark { height: 18px; }
  .hac-mast-issue { font-size: 12px; }
  .hac-hero { padding: 0 16px 18px; }
  .hac-ctas .hac-btn { flex: 1 1 auto; }
  .hac-deckbox { padding: 6px 12px 12px; margin: 0 -4px; }
  .hac-sl { padding: 12px 12px 4px; }
  .hac-cpo-row { grid-template-columns: 92px minmax(24px, 1fr) 108px; gap: 6px; font-size: 12.5px; }
  .hac-cpo-v { font-size: 11px; }
  .hac-t10-pre { display: none; }
  .hac-flag { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .hac-loc-deck { width: 72px; }
  .hac-flag-k > span { padding-right: 6px; white-space: nowrap; }
  .hac-flag-k > span + span { padding-left: 10px; }
  .hac-flag-k b { font-size: 20px; margin-right: 3px; }
  .hac-hw img { width: 48px; height: 66px; }
  .hac-plat-row { grid-template-columns: 76px auto minmax(0, 1fr); gap: 2px 10px; }
  .hac-plat-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; margin-bottom: 6px; }
  .hac-plat-i { text-align: left; }
  .hac-ln { grid-template-columns: 124px minmax(0, 1fr); }
  .hac-gauge { width: 124px; }
  .page-home .hac-ex { min-height: 62px; padding: 8px 4px; }
  .hac-kv { aspect-ratio: 4 / 3; }
  .hac-kv picture img { object-position: 52% 82%; }
  .hac-kv-cap { padding: 16px 18px; max-width: 100%; }
  .hac-follow { padding: 14px; }
  .page-home .hac-seg-b { padding: 0 11px; }
}

/* Very narrow phones (under 360 px, e.g. 280/320; unify WP1, 4 Nov 2026): the deck's CPO rows used fixed
 * 92 px / 108 px columns that pushed a 280 px page sideways. Below 360 px each row becomes
 * the name on its own line, then the bar and the value. 360 px and wider are unchanged. */
@media (max-width: 359px) {
  .hac-cpo-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
  .hac-cpo-row .hac-cpo-n { grid-area: 1 / 1 / 2 / 3; }
  .hac-cpo-row .hac-cpo-bar { grid-area: 2 / 1; }
  .hac-cpo-row .hac-cpo-v { grid-area: 2 / 2; }
}

/* Thai in a mono face spaces every mark; Thai dates and readouts use the sans face */
html[data-lang="th"] .page-home .hac-bc-axis b, html[data-lang="th"] .page-home .hac-nc-meta time,
html[data-lang="th"] .page-home .hac-read span, html[data-lang="th"] .page-home .hac-read2,
html[data-lang="th"] .page-home .hac-cpo-v, html[data-lang="th"] .page-home .hac-t10-s { font-family: var(--hac-sans); }

@media (prefers-reduced-motion: reduce) {
  .page-home *, .page-home *::before, .page-home *::after { animation: none !important; transition: none !important; }
  .hac-tab.active .hac-tab-fill { width: 100%; }
}
