/* ==========================================================================
   Homepage: the market desk. Navy + Hong Kong red brand, data first.
   Sections: tokens, quote strip, hero + chart card, market board, technical
   table, analytics panels, data note, latest research, insights, about, store.
   Selectors are nested under .hp so they always outrank the Tailwind CDN
   preflight that the shared layout injects (e.g. [type=button] resets).
   ========================================================================== */
.hp {
    --hp-ink: #0e1b33;
    --hp-text: #3d4b63;
    --hp-dim: #5a6780;
    --hp-mist: #eef2f8;
    --hp-line: #dce2ec;
    --hp-link: #1f4fd8;
    --hp-red: #c8102e;
    --hp-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mk-gutter: 40px;
    /* Up / down. Western convention by default; zh-CN follows the mainland one (red up, green down). */
    --mk-up: #0a7a4a;
    --mk-down: #c8102e;
    --mk-flat: #5a6780;
    /* Sample-data labelling. */
    --mk-amber: #7a4b00;
    --mk-amber-bg: #fff2cc;
    --mk-amber-line: #e0a800;
    /* Sparklines and chart series. */
    --mk-spark: #2f4f8f;
    --mk-spark-fill: rgba(47, 79, 143, .09);
    --mk-c-line: #1f4fd8;
    --mk-c-area-top: rgba(31, 79, 216, 0.2);
    --mk-c-area-bottom: rgba(31, 79, 216, 0);
    --mk-c-sma50: #c26a00;
    --mk-c-sma200: #7b3fe4;
    --mk-c-text: #5a6780;
    --mk-c-grid: #edf0f6;
    --mk-c-cross: #0e1b33;
    color: var(--hp-ink);
}
.hp:lang(zh-CN) { --mk-up: #c8102e; --mk-down: #0a7a4a; }

/* Market colour key (report categories): --m fills, --m-on is text on the fill, --m-text is text on white. */
.hp [data-market] { --m: #1f4fd8; --m-on: #ffffff; --m-text: #1f4fd8; }
.hp [data-market=""] { --m: #0e1b33; --m-text: #0e1b33; }
.hp [data-market="stocks"] { --m: #c8102e; --m-text: #c8102e; }
.hp [data-market="crypto"] { --m: #c2410c; --m-text: #b23c0b; }
.hp [data-market="forex"] { --m: #0f7b5f; --m-text: #0f7b5f; }
.hp [data-market="commodities"] { --m: #7a4e12; --m-text: #7a4e12; }
.hp [data-market="gold"] { --m: #e8b100; --m-on: #0e1b33; --m-text: #86620a; }
.hp [data-market="silver"] { --m: #5b6b7f; --m-text: #4f5e71; }
.hp [data-market="etf"] { --m: #5b2db8; --m-text: #5b2db8; }

.hp h1, .hp h2, .hp h3, .hp h4 { margin: 0; color: inherit; }
.hp h1, .hp h2 { font-family: var(--hp-display); font-weight: 700; letter-spacing: -.01em; }
.hp h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.hp :is(h1, h2) { text-wrap: balance; }
.hp:lang(zh) :is(h1, h2), .hp:lang(ja) :is(h1, h2), .hp:lang(ko) :is(h1, h2) { letter-spacing: 0; }
.hp:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
.hp:lang(ko) { word-break: keep-all; }
.hp [hidden] { display: none !important; }

.hp a:focus-visible, .hp button:focus-visible, .hp input:focus-visible, .hp select:focus-visible, .hp [tabindex]:focus-visible { outline: 3px solid var(--hp-link); outline-offset: 2px; }
.hp .hp-hero :is(a, button, input):focus-visible { outline-color: #9db8ff; }
.hp .mk-chart :is(a, button, select):focus-visible { outline-color: var(--hp-link); }

.hp .mk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.hp-link {
    flex: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-link);
    text-decoration: underline;
    text-decoration-color: rgba(31, 79, 216, .35);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.hp-link:hover { text-decoration-color: currentColor; }

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    background: var(--hp-ink);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.hp-btn:hover { background: #22345a; }

/* --------------------------------------------------------------------------
   Shared market atoms: signed change, sample tag, sparkline, 52-week bar
   -------------------------------------------------------------------------- */
.hp .mk-chg { display: inline-flex; align-items: center; gap: .32em; color: var(--mk-flat); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp .mk-chg[data-dir="up"] { color: var(--mk-up); }
.hp .mk-chg[data-dir="down"] { color: var(--mk-down); }
.hp .mk-chg.has-arrow::before { content: ''; flex: none; width: .66em; height: .56em; background: currentColor; }
.hp .mk-chg.has-arrow[data-dir="up"]::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hp .mk-chg.has-arrow[data-dir="down"]::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hp .mk-chg.has-arrow[data-dir="flat"]::before, .hp .mk-chg.has-arrow[data-dir="na"]::before { display: none; }

.hp .mk-tag {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--mk-amber-line);
    border-radius: 3px;
    background: var(--mk-amber-bg);
    color: var(--mk-amber);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.hp .mk-spark { display: block; width: 100%; height: 36px; overflow: visible; }
.hp .mk-spark path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--mk-spark); }
.hp .mk-spark .mk-spark-area { fill: var(--mk-spark-fill); stroke: none; }
.hp .mk-spark .mk-spark-line { stroke-width: 1.6px; stroke-linejoin: round; stroke-linecap: round; }
.hp .mk-spark .mk-spark-dot { stroke-width: 6px; stroke-linecap: round; }

.hp .mk-rng { display: block; padding: 0 5px; }
.hp .mk-rng-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--hp-dim); }
.hp .mk-rng-head span:last-child { font-weight: 600; color: var(--hp-ink); font-variant-numeric: tabular-nums; }
.hp .mk-rng-bar { position: relative; display: block; height: 4px; margin: 9px 0 7px; border-radius: 2px; background: #d9e0ec; }
.hp .mk-rng-bar i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--hp-ink); box-shadow: 0 0 0 2px #ffffff; }
.hp .mk-rng-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--hp-dim); font-variant-numeric: tabular-nums; }

.hp .mk-sw { display: inline-block; flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--c, var(--hp-dim)); }
.hp .mk-sw-close { --c: var(--mk-c-line); }
.hp .mk-sw-sma50 { --c: var(--mk-c-sma50); }
.hp .mk-sw-sma200 { --c: var(--mk-c-sma200); }
.hp .mk-sw-line { width: 16px; height: 4px; }
.hp .mk-sw-line.is-dashed { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }

/* Hatched chip: marks sample instruments in the correlation matrix, and keys the hatched cells. */
.hp .mk-hatch {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    margin-left: 5px;
    border: 1px solid var(--mk-amber-line);
    border-radius: 2px;
    background: repeating-linear-gradient(135deg, var(--mk-amber-line) 0 1.5px, var(--mk-amber-bg) 1.5px 4px);
    vertical-align: -1px;
}

/* --------------------------------------------------------------------------
   Quote strip: a scroll region directly under the header, never a marquee
   -------------------------------------------------------------------------- */
.hp .mk-strip { border-bottom: 1px solid var(--hp-line); background: #ffffff; }
.hp .mk-strip-scroll {
    overflow-x: auto;
    padding-inline: max(var(--mk-gutter), calc((100% - 1280px) / 2));
    scrollbar-width: thin;
    scrollbar-color: #b9c4d8 transparent;
}
.hp .mk-strip-list { display: flex; width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.hp .mk-quote { flex: 1 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 9px 18px 10px; border-left: 1px solid var(--hp-line); }
.hp .mk-quote:first-child { padding-left: 0; border-left: 0; }
.hp .mk-quote-top { display: flex; align-items: center; gap: 6px; min-height: 19px; font-size: 12.5px; line-height: 1.3; }
.hp .mk-quote-ticker { font-weight: 700; letter-spacing: .01em; }
.hp .mk-quote-last { font-size: 15.5px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hp .mk-quote .mk-chg { font-size: 13px; }

/* --------------------------------------------------------------------------
   Hero: statement and report search beside the interactive chart
   -------------------------------------------------------------------------- */
.hp .hp-hero { padding: 52px 0 76px; background: var(--hp-ink); color: #ffffff; }

.hp .hp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "copy chart" "tools chart";
    column-gap: 56px;
    align-items: start;
}
.hp .hp-hero-grid.is-solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "tools"; padding-block: 24px; }
.hp .hp-hero-copy { grid-area: copy; }
.hp .hp-hero-tools { grid-area: tools; }
.hp .hp-hero-chart { grid-area: chart; min-width: 0; }

.hp .hp-hero h1 { max-width: 14ch; font-size: clamp(34px, 3.7vw, 52px); line-height: 1.06; }
.hp:lang(zh) .hp-hero h1, .hp:lang(ja) .hp-hero h1, .hp:lang(ko) .hp-hero h1 { max-width: 12em; font-size: clamp(32px, 3.3vw, 44px); line-height: 1.22; }

.hp .hp-lead { max-width: 34em; margin: 18px 0 30px; font-size: 17px; line-height: 1.62; color: #cdd7ea; }

.hp .hp-search { max-width: 540px; }
.hp .hp-search label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.hp .hp-search-row { display: flex; }

.hp .hp-search input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px 0 0 4px;
    background: #ffffff;
    color: var(--hp-ink);
    font: inherit;
    font-size: 16px;
}
.hp .hp-search input::placeholder { color: #6b778c; }

.hp .hp-search button {
    flex: none;
    padding: 0 26px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: var(--hp-red);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.hp .hp-search button:hover { background: #a50d25; }

.hp .hp-browse { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.hp .hp-browse > span { font-size: 13px; color: #c9d3e6; }
.hp .hp-browse ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.hp .hp-browse a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 13.5px;
    text-decoration: none;
}
.hp .hp-browse a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.hp .hp-browse a:hover { background: rgba(255, 255, 255, .22); }

/* --------------------------------------------------------------------------
   Chart card (TradingView Lightweight Charts mounts inside .mk-canvas)
   -------------------------------------------------------------------------- */
.hp .mk-chart {
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    color: var(--hp-ink);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}

.hp .mk-chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 16px 20px 0; }
.hp .mk-pick { flex: 1 1 240px; min-width: 0; max-width: 440px; }

.hp .mk-select {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--hp-line);
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230e1b33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
    color: var(--hp-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.hp .mk-select:hover { border-color: #9fb2d6; }

.hp .mk-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--mk-amber-line);
    border-radius: 4px;
    background: var(--mk-amber-bg);
    color: var(--mk-amber);
    font-size: 13px;
    font-weight: 700;
}

.hp .mk-chart-quote { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding: 16px 20px 0; }
.hp .mk-chart-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.hp .mk-chart-last { font-family: var(--hp-display); font-size: clamp(36px, 3.6vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hp .mk-chart-chg { font-size: 16px; }
.hp .mk-chart-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 13px; line-height: 1.45; color: var(--hp-dim); text-align: right; }

.hp .mk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-height: 40px; padding: 14px 20px 6px; font-size: 13px; color: var(--hp-text); font-variant-numeric: tabular-nums; }
.hp .mk-lg-date { min-width: 8.5em; font-weight: 600; color: var(--hp-ink); }
.hp .mk-lg-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hp .mk-lg-item b { font-weight: 600; color: var(--hp-ink); }

.hp .mk-plot { position: relative; height: 340px; margin-inline: 8px; }
.hp .mk-canvas { position: absolute; inset: 0; }

.hp .mk-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding-bottom: 24px;
    font-family: var(--hp-display);
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 700;
    color: rgba(224, 168, 0, .22);
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.hp .mk-state {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, .88);
    color: var(--hp-text);
    font-size: 14px;
    text-align: center;
}
.hp .mk-state[data-state="loading"], .hp .mk-state[data-state="error"] { display: flex; }
.hp .mk-state[data-state="loading"] > span::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto 10px;
    border: 3px solid #d3dcee;
    border-top-color: var(--hp-link);
    border-radius: 50%;
    animation: mk-spin .8s linear infinite;
}
.hp .mk-state button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--hp-link);
    border-radius: 6px;
    background: #ffffff;
    color: var(--hp-link);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.hp .mk-state button:hover { background: #eef3ff; }
.hp .mk-static { position: absolute; inset: 0; z-index: 4; padding: 12px 8px; background: #ffffff; }
.hp .mk-static .mk-spark { height: 100%; }
@keyframes mk-spin { to { transform: rotate(360deg); } }

.hp .mk-chart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 20px 16px; border-top: 1px solid var(--hp-line); }

.hp .mk-seg { display: inline-flex; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 6px; }
.hp .mk-seg button {
    min-width: 52px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-left: 1px solid var(--hp-line);
    background: #ffffff;
    color: var(--hp-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.hp .mk-seg button:first-child { border-left: 0; }
.hp .mk-seg button:hover { background: var(--hp-mist); color: var(--hp-ink); }
.hp .mk-seg button[aria-pressed="true"] { background: var(--hp-ink); color: #ffffff; }
.hp .mk-seg button:focus-visible { position: relative; z-index: 1; }

.hp .mk-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.hp .mk-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--hp-dim);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}
.hp .mk-toggle .mk-sw { width: 12px; height: 12px; border-radius: 50%; }
.hp .mk-toggle:hover { border-color: #9fb2d6; }
.hp .mk-toggle[aria-pressed="true"] { border-color: #b8c5de; background: var(--hp-mist); color: var(--hp-ink); }
.hp .mk-toggle[aria-pressed="false"] .mk-sw { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }

/* --------------------------------------------------------------------------
   Market sections
   -------------------------------------------------------------------------- */
.hp .mk-section { padding-top: 64px; }
.hp .mk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 24px; }
.hp .mk-head p { max-width: 46em; margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--hp-text); }
.hp .mk-head .mk-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: none; margin: 0; font-size: 13px; line-height: 1.5; color: var(--hp-dim); text-align: right; }
.hp .mk-head-sample { display: inline-flex; align-items: center; gap: 8px; }

/* Board: one row per group, a label on the left and cards beside it. */
.hp .mk-group { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 24px; padding: 20px 0 22px; border-top: 1px solid var(--hp-line); }
.hp .mk-group:last-child { padding-bottom: 0; }
.hp .mk-group h3 { padding-top: 6px; font-family: var(--hp-display); font-size: 20px; font-weight: 700; line-height: 1.2; }
.hp .mk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hp .mk-cards > li { display: flex; min-width: 0; container-type: inline-size; }

.hp .mk-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 14px 14px 13px;
    border: 1px solid var(--hp-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--hp-ink);
    font: inherit;
    text-align: left;
}
.hp button.mk-card { cursor: pointer; }
.hp button.mk-card:hover { border-color: #9fb2d6; box-shadow: 0 8px 18px -14px rgba(14, 27, 51, .5); }
.hp button.mk-card[aria-pressed="true"] { border-color: var(--hp-link); box-shadow: inset 0 0 0 1px var(--hp-link); }

.hp .mk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.hp .mk-card-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; font-size: 12.5px; color: var(--hp-dim); }
.hp .mk-card-sub b { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--hp-ink); white-space: nowrap; }
.hp .mk-card-name { font-size: 13.5px; font-weight: 500; line-height: 1.38; color: var(--hp-text); }
/* Price and change always stack; only cards wide enough for the widest pair (price + change) put them on one line. */
.hp .mk-card-quote { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: auto; padding-top: 4px; }
@container (min-width: 240px) {
    .hp .mk-card-quote { flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 0 10px; }
}
.hp .mk-card-last { font-family: var(--hp-display); font-size: 25px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp .mk-card-quote .mk-chg { font-size: 13.5px; }
.hp .mk-card-trend { display: block; margin-top: 2px; }

/* Technical table */
.hp .mk-table-wrap { overflow-x: auto; border: 1px solid var(--hp-line); border-radius: 6px; background: #ffffff; }
.hp .mk-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.hp .mk-table th, .hp .mk-table td { padding: 10px 12px; border-bottom: 1px solid #edf0f6; text-align: right; white-space: nowrap; }
.hp .mk-table thead th { padding: 12px; border-bottom: 1px solid var(--hp-line); background: var(--hp-mist); color: var(--hp-text); font-size: 12.5px; font-weight: 600; vertical-align: bottom; }
.hp .mk-table tbody:last-of-type tr:last-child > * { border-bottom: 0; }
.hp .mk-table .mk-col-name { position: sticky; left: 0; z-index: 2; min-width: 208px; background: #ffffff; text-align: left; box-shadow: 1px 0 0 var(--hp-line); }
.hp .mk-table thead .mk-col-name { background: var(--hp-mist); }
.hp .mk-table tbody tr:not(.mk-t-group):hover > * { background: #f4f7fd; }
.hp .mk-table .mk-col-range { min-width: 150px; }
.hp .mk-t-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.hp .mk-t-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; color: var(--hp-dim); }
.hp .mk-t-last { font-weight: 600; }
.hp .mk-t-range { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hp .mk-t-range .mk-rng { width: 84px; padding: 0; }
.hp .mk-t-range .mk-rng-bar { margin: 0; }
.hp .mk-t-range > span:last-child { min-width: 3.2em; font-weight: 600; }
.hp .mk-table .mk-t-group th { padding: 9px 12px; background: #f6f8fc; border-bottom: 1px solid #edf0f6; color: var(--hp-ink); font-family: var(--hp-display); font-size: 15px; font-weight: 700; text-align: left; }
.hp .mk-table .mk-t-group span { position: sticky; left: 12px; }

.hp .mk-notes { margin-top: 20px; padding: 18px 22px; border-left: 3px solid #c6d0df; background: #ffffff; }
.hp .mk-notes h3 { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.hp .mk-notes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin: 0; padding: 0; list-style: none; }
.hp .mk-notes li { font-size: 13.5px; line-height: 1.6; color: var(--hp-text); }
.hp .mk-notes .mk-notes-edu { grid-column: 1 / -1; font-weight: 600; color: var(--hp-ink); }

/* Analytics panels */
.hp .mk-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.hp .mk-panel { min-width: 0; padding: 22px 22px 20px; border: 1px solid var(--hp-line); border-radius: 6px; background: #ffffff; }
.hp .mk-panel h2 { font-size: 22px; line-height: 1.2; }
.hp .mk-panel > p { max-width: 40em; margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--hp-text); }

.hp .mk-rel-plot { position: relative; height: 300px; margin-top: 14px; }
.hp .mk-rel-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 14px 0 0; padding: 0; list-style: none; }
.hp .mk-rel-legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.hp .mk-rel-legend .mk-rel-name { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hp .mk-rel-legend .mk-chg { font-size: 13.5px; }
.hp .mk-panel-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--hp-dim); }
.hp .mk-panel-note .mk-hatch { margin-left: 0; }
.hp .mk-chart-fallback { display: grid; place-items: center; height: 100%; padding: 16px; font-size: 14px; color: var(--hp-dim); text-align: center; }

.hp .mk-corr-wrap { overflow-x: auto; margin-top: 14px; }
.hp .mk-corr { width: 100%; min-width: 440px; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-size: 13px; font-variant-numeric: tabular-nums; }
.hp .mk-corr thead th { padding: 4px 1px 6px; color: var(--hp-text); font-size: 12px; font-weight: 600; text-align: center; vertical-align: bottom; word-break: break-word; }
.hp .mk-corr thead td { width: 78px; }
.hp .mk-corr tbody th { padding: 0 8px 0 0; color: var(--hp-text); font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
.hp .mk-corr td { height: 38px; border-radius: 3px; color: var(--hp-ink); text-align: center; }
.hp .mk-corr thead .mk-hatch { display: block; margin: 4px auto 0; }
.hp .mk-corr td.is-diag { background-color: #eef2f8; color: var(--hp-dim); }
.hp .mk-corr td.is-na { background-color: #f4f6fa; color: var(--hp-dim); }
.hp .mk-corr td.is-sample { background-image: repeating-linear-gradient(135deg, rgba(122, 75, 0, .2) 0 1.5px, transparent 1.5px 6px); }
.hp .mk-scale { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--hp-dim); }
.hp .mk-scale-bar { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #e49d4c, #ffffff 50%, #6d8de6); box-shadow: inset 0 0 0 1px rgba(14, 27, 51, .12); }

/* Data note */
.hp .mk-note-wrap { margin-top: 48px; }
.hp .mk-note { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 40px; padding: 24px 28px; border-radius: 6px; background: var(--hp-mist); }
.hp .mk-note h2 { font-size: 17px; line-height: 1.3; letter-spacing: 0; }
.hp .mk-note h3 { margin-top: 14px; font-size: 13.5px; font-weight: 700; }
.hp .mk-note p { max-width: 46em; margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--hp-text); }
.hp .mk-note ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.hp .mk-note li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; line-height: 1.5; color: var(--hp-text); }
.hp .mk-note a { color: var(--hp-link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hp .mk-note-sample { align-self: start; padding: 16px 18px; border: 1px solid var(--mk-amber-line); border-left-width: 5px; border-radius: 4px; background: var(--mk-amber-bg); color: var(--mk-amber); }
.hp .mk-note-sample strong { font-size: 15px; }
.hp .mk-note-sample p { margin-top: 6px; color: #5c3900; }
.hp .mk-note .mk-note-disc { grid-column: 1 / -1; max-width: none; margin: 0; padding-top: 16px; border-top: 1px solid #d5ddeb; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   Latest research: compact rows, one market chip, title and date each
   -------------------------------------------------------------------------- */
.hp .hp-latest { margin-top: 72px; padding: 28px 32px 14px; border: 1px solid var(--hp-line); border-radius: 6px; background: #ffffff; }
.hp-latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.hp-latest-head p { max-width: 40em; margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--hp-text); }

.hp .hp-tabs { display: flex; gap: 2px; margin: 18px 0 8px; overflow-x: auto; border-bottom: 1px solid var(--hp-line); scrollbar-width: thin; }
.hp .hp-tabs button {
    flex: none;
    margin-bottom: -1px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--hp-dim);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.hp .hp-tabs button:hover { color: var(--hp-ink); }
.hp .hp-tabs button[aria-selected="true"] { border-bottom-color: var(--m); color: var(--hp-ink); }

.hp .hp-rows { margin: 0; padding: 0; list-style: none; }
.hp .hp-row { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 14px 0; border-top: 1px solid var(--hp-line); }
.hp .hp-row:first-child { border-top: 0; }
.hp .hp-row-chip { justify-self: start; max-width: 100%; padding: 3px 10px; border-radius: 3px; background: var(--m); color: var(--m-on); font-size: 12.5px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .hp-row h3 { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.hp .hp-row h3 a { color: inherit; text-decoration: none; }
.hp .hp-row h3 a::after { content: ''; position: absolute; inset: 0; }
.hp .hp-row:hover h3 a { color: var(--hp-link); text-decoration: underline; text-underline-offset: 4px; }
.hp .hp-row time { font-size: 13px; color: var(--hp-dim); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */
.hp-insights { padding: 88px 0; }
.hp-insights .hp-latest-head { margin-bottom: 32px; }

.hp-insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
}

.hp-insight-lead { padding-top: 22px; border-top: 4px solid var(--hp-red); }
.hp-insight-lead time, .hp-insight-list time, .hp-meta { font-size: 13px; color: var(--hp-dim); }
.hp-insight-lead h3 { margin: 10px 0 14px; font-family: var(--hp-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; }
.hp-insight-lead p { max-width: 38em; margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--hp-text); }

.hp-insight-list { margin: 0; padding: 0; list-style: none; border-top: 4px solid var(--hp-ink); }
.hp-insight-list li { padding: 18px 0; border-bottom: 1px solid var(--hp-line); }
.hp-insight-list h3 { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.4; }

.hp-insights h3 a { color: inherit; text-decoration: none; }
.hp-insights h3 a:hover { color: var(--hp-link); text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.hp-about { padding: 88px 0; background: #e6ecf5; }

.hp-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 64px;
}

.hp-about-photo { display: block; width: 100%; max-height: 520px; border-radius: 6px; object-fit: cover; }
.hp-about-copy h2 { margin-bottom: 20px; }
.hp-about-copy p { max-width: 36em; margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: var(--hp-text); }

.hp-about-links { margin: 28px 0 32px; padding: 0; list-style: none; border-top: 1px solid #c6d0df; max-width: 36em; }
.hp-about-links li { border-bottom: 1px solid #c6d0df; }

.hp-about-links a {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    color: var(--hp-ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.hp-about-links a::after { content: '›'; font-size: 22px; line-height: 1; color: var(--hp-dim); }
.hp-about-links a:hover { color: var(--hp-link); }

/* --------------------------------------------------------------------------
   Marketplace strip (colours from marketplace.css [data-product-type])
   -------------------------------------------------------------------------- */
.hp-store { padding: 26px 0; border-top: 1px solid var(--hp-line); background: #ffffff; }
.hp-store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hp-store-row p { margin: 0; font-size: 15px; color: var(--hp-text); }
.hp-store-row ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-store-row ul + .hp-link { margin-left: auto; }

.hp-store-row ul a {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid var(--mp-category-line, #b4c9fa);
    border-radius: 999px;
    background: var(--mp-category-tint, #e7eeff);
    color: var(--mp-category, #245bdb);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.hp-store-row ul a:hover { border-color: currentColor; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hp .hp-hero { padding: 40px 0 56px; }
    .hp .hp-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "chart" "tools"; row-gap: 28px; }
    .hp .hp-hero h1 { max-width: 20ch; }
    .hp .hp-lead { margin-bottom: 0; }
    .hp .mk-group { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hp .mk-group h3 { padding-top: 0; }
    .hp .mk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .hp .hp-latest { padding: 24px 20px 10px; }
    .hp .mk-head .mk-head-meta { align-items: flex-start; text-align: left; }
    .hp-insights-grid, .hp-about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .hp-about-photo { max-height: 340px; }
    .hp-insights, .hp-about { padding: 64px 0; }
    .hp-store-row ul + .hp-link { margin-left: 0; }
    .hp .mk-panels { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
    .hp .mk-note { grid-template-columns: minmax(0, 1fr); }
    .hp .mk-notes ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 850px) {
    .hp { --mk-gutter: 24px; }
}

@media (max-width: 700px) {
    .hp .mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hp .mk-section { padding-top: 48px; }
}

@media (max-width: 640px) {
    .hp { --mk-gutter: 18px; }
    .hp .hp-hero { padding: 28px 0 44px; }
    .hp .hp-hero h1 { font-size: 34px; }
    .hp .hp-lead { font-size: 16px; }
    .hp .hp-search button { padding: 0 18px; }
    .hp .mk-quote { min-width: 112px; padding: 8px 14px 9px; }
    .hp .mk-chart-top, .hp .mk-chart-quote { padding-inline: 14px; }
    .hp .mk-legend { padding-inline: 14px; }
    .hp .mk-chart-foot { padding-inline: 14px; }
    .hp .mk-chart-meta { align-items: flex-start; text-align: left; }
    .hp .mk-plot { height: 280px; margin-inline: 4px; }
    .hp .mk-lg-date { min-width: 0; flex-basis: 100%; }
    .hp .mk-table { min-width: 1040px; }
    .hp .mk-table .mk-col-name { min-width: 160px; }
    .hp .mk-t-name { white-space: normal; }
    .hp .mk-panel { padding: 18px 14px 16px; }
    .hp .mk-rel-plot { height: 260px; }
    .hp .mk-rel-legend { grid-template-columns: minmax(0, 1fr); }
    .hp .mk-note { padding: 20px 16px; }
    .hp-latest-head { flex-direction: column; align-items: flex-start; }
    .hp .hp-latest { padding: 20px 16px 8px; }
    .hp .hp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chip date" "title title"; gap: 8px 12px; padding: 14px 0; }
    .hp .hp-row-chip { grid-area: chip; }
    .hp .hp-row time { grid-area: date; }
    .hp .hp-row h3 { grid-area: title; font-size: 16px; }
}

@media (max-width: 400px) {
    .hp .mk-card { padding: 12px 10px 11px; }
    .hp .mk-card-last { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp * { animation: none !important; transition: none !important; }
    .hp .mk-state[data-state="loading"] > span::before { border-top-color: #d3dcee; border-right-color: var(--hp-link); }
}
