:root {
    --navy: #0F213F;
    --navy-deep: #081326;
    --navy-mid: #16305B;
    --cyan: #29ABE2;
    --cyan-bright: #5DC6EF;
    --paper: #FFFFFF;
    --page: #F3F7FB;
    --paper-line: #E1E8F1;
    --green: #2FAE73;
    --red: #E0523A;
    --ink-text: #0F213F;
    --ink-muted: #64708A;
}

html {
    font-size: 100%;
}
    /* 16px base */
    html.font-size-sm {
        font-size: 87.5%;
    }
    /* ~14px base */
    html.font-size-md {
        font-size: 100%;
    }
    /* ~16px base - default */
    html.font-size-lg {
        font-size: 112.5%;
    }
    /* ~18px base */
    html.font-size-xl {
        font-size: 125%;
    }
/* ~20px base */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink-text);
    font-family: 'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Inter ships these off by default:
     cv11 - single-storey 'a'/'g' variants that read more clearly at small sizes
     ss01 - disambiguated shapes, notably a slashed zero, so 0 and O don't blur
            together in figures like "0.00x" or "GMP 100" */
    font-feature-settings: 'cv11' 1, 'ss01' 1;
}

/* Tabular figures everywhere numbers appear.
   Inter's default figures are PROPORTIONAL - a '1' is narrower than a '4' - so columns
   of numbers in the subscription and GMP tables visibly jitter as values refresh, and
   decimal points don't line up down a column. tabular-nums fixes the width. */
table, .stat .num, .gmp-big, .sub-total, .metric .v, .sub-x, .data-table td, .ipo-table td {
    font-variant-numeric: tabular-nums;
}

.mono {
    font-family: 'IBM Plex Mono',monospace;
}

.display {
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

/* Large bold text wants slightly NEGATIVE tracking - the opposite of the positive
   tracking these headings previously carried, which was pushing letters apart and
   slowing reading. */
h1, h2, h3 {
    letter-spacing: -0.015em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- GMP ticker marquee ----------
   The track holds two identical copies of the item list. Animating to -50%
   lands copy 2 exactly where copy 1 started, so the loop point is invisible.

   The previous version used padding-left:100% with translateX(-100%), which is
   a SINGLE-copy marquee - content scrolls fully off, then jumps back. With the
   list rendered twice that produced a broken loop. Do not reintroduce it. */
.ticker {
    background: var(--navy-deep);
    overflow: hidden;
    position: relative;
}

/* width:max-content stops the flex children shrinking to the viewport width -
   without it there is nothing for the animation to travel across. */
.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 150s linear infinite;
    will-change: transform;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause so anyone who spots an IPO can actually read it. */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
    animation-play-state: paused;
}

.tick-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.tick {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 7px;
    padding: 10px 16px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.12);
    font-size: 0.8125rem;
    color: #9FB3CC;
    font-family: 'IBM Plex Mono',monospace;
}

.tick__name {
    font-weight: 600;
    color: #DCE6F2;
    letter-spacing: .02em;
}

.tick__gmp {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.tick__arrow {
    font-size: .75em;
}

.tick__pct {
    font-variant-numeric: tabular-nums;
    opacity: .85;
}

/* Only the figures are tinted; the company name stays neutral so the tape
   stays scannable rather than becoming a wall of colour. */
.tick--up .tick__gmp,
.tick--up .tick__arrow,
.tick--up .tick__pct {
    color: var(--cyan-bright);
}

.tick--down .tick__gmp,
.tick--down .tick__arrow,
.tick--down .tick__pct {
    color: #F0846D;
}

.tick--flat .tick__gmp,
.tick--flat .tick__arrow {
    opacity: .6;
}

/* Plain-text fallback items, shown when there is no GMP data yet. */
.ticker__track > span:not(.tick-group) {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 0.7812rem;
    letter-spacing: .03em;
    color: #9FB3CC;
    white-space: nowrap;
}

@media (max-width:640px) {
    .tick {
        padding: 9px 12px;
        gap: 5px;
        font-size: 0.75rem;
    }
}

/* Show the list, don't animate it. */
@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
        width: auto;
        overflow-x: auto;
    }
}

/* ---------- Header ---------- */
header.site {
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    padding: 16px 24px;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.site img.logo {
    height: 40px;
    display: block;
}

nav.main {
    display: flex;
    gap: 28px;
}

    nav.main a {
        font-size: 0.875rem;
        color: var(--navy);
        font-weight: 600;
        padding-bottom: 4px;
        border-bottom: 2px solid transparent;
        transition: color .15s ease, border-color .15s ease;
    }

        nav.main a:hover {
            color: var(--cyan);
            border-color: var(--cyan);
        }

@media (max-width:860px) {
    nav.main {
        display: none;
    }
}

/* ---------- Utility bar: font size control + language switcher ---------- */
.utility-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--paper-line);
    border-radius: 5px;
    padding: 2px;
}

    .font-size-control button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px 9px;
        border-radius: 3px;
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        color: var(--ink-muted);
        line-height: 1;
        transition: all .15s ease;
    }

        .font-size-control button:hover {
            color: var(--navy);
        }

        .font-size-control button.active {
            background: var(--navy);
            color: #fff;
        }

        .font-size-control button[data-size="sm"] {
            font-size: 0.75rem;
        }

        .font-size-control button[data-size="md"] {
            font-size: 0.8125rem;
        }

        .font-size-control button[data-size="lg"] {
            font-size: 0.9375rem;
        }

        .font-size-control button[data-size="xl"] {
            font-size: 1.0625rem;
        }

.lang-select {
    font-family: 'Inter',sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    border: 1px solid var(--paper-line);
    border-radius: 5px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
}

    .lang-select:hover {
        border-color: var(--cyan);
    }

@media (max-width:1080px) {
    .utility-bar .lang-label {
        display: none;
    }
}

@media (max-width:640px) {
    .utility-bar {
        gap: 8px;
    }
}

/* ---------- Hero ---------- */
.hero-wrap {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 65%, #071022 100%);
    position: relative;
    overflow: hidden;
}

    .hero-wrap::after {
        content: "";
        position: absolute;
        right: -120px;
        top: -120px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(93,198,239,0.22) 0%, rgba(93,198,239,0) 70%);
    }

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 24px 60px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width:960px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }
}

.hero .eyebrow {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan-bright);
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(2.375rem,5.6vw,3.625rem);
    line-height: 1.02;
    margin: 0 0 20px;
    color: #fff;
}

    .hero h1 .accent {
        color: var(--cyan-bright);
    }

.hero p.lede {
    font-size: 1.0312rem;
    color: #B7C4DA;
    max-width: 440px;
    line-height: 1.6;
    margin: 0 0 30px;
}

/* Summary sentence under the detail-page H1. */
.detail-lede {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #B7C4DA;
    margin: 6px 0 12px;
    max-width: 68ch;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--cyan);
    color: #04202E;
}

    .btn-primary:hover {
        background: var(--cyan-bright);
    }

.btn-ghost {
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
}

    .btn-ghost:hover {
        border-color: var(--cyan-bright);
        color: var(--cyan-bright);
    }

/* ---------- Ticket stub (signature element) ---------- */
.stub-stack {
    position: relative;
    height: 330px;
}

.stub {
    position: absolute;
    width: 240px;
    background: var(--paper);
    color: var(--ink-text);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(4,12,28,0.38);
    padding: 16px 18px 14px;
    font-family: 'IBM Plex Mono',monospace;
}

    .stub::before, .stub::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        background: var(--navy-deep);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

    .stub::before {
        left: -8px;
    }

    .stub::after {
        right: -8px;
    }

    .stub .perf {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 50%;
        border-top: 1.5px dashed var(--paper-line);
    }

.stub-1 {
    top: 0;
    left: 0;
    transform: rotate(-6deg);
    z-index: 3;
}

.stub-2 {
    top: 36px;
    left: 120px;
    transform: rotate(4deg);
    z-index: 2;
}

.stub-3 {
    top: 96px;
    left: 20px;
    transform: rotate(-2deg);
    z-index: 1;
    opacity: 0.96;
}

@media (max-width:960px) {
    .stub-stack {
        height: 300px;
    }

    .stub {
        width: 200px;
    }

    .stub-2 {
        left: 90px;
    }
}

@media (max-width:520px) {
    .stub-stack {
        display: none;
    }
}

.stub .status {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 2px;
    display: inline-block;
}

.status.open {
    background: rgba(47,174,115,.14);
    color: #22824F;
}

.status.soon {
    background: rgba(41,171,226,.14);
    color: #1A7FAE;
}

.status.listed-up {
    background: rgba(47,174,115,.14);
    color: #22824F;
}

.status.listed-down {
    background: rgba(224,82,58,.14);
    color: #B8442D;
}

.stub .co {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 10px 0 2px;
    font-family: 'Inter',sans-serif;
    color: var(--navy);
}

.stub .ex {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.stub .row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 16px;
}

    .stub .row .k {
        color: var(--ink-muted);
    }

    .stub .row .v {
        font-weight: 600;
    }

        /* Retail / HNI gain figures on the hero stubs. */
        .stub .row .v.up {
            color: var(--green);
            font-weight: 700;
        }

        .stub .row .v.down {
            color: var(--red);
            font-weight: 700;
        }

/* ---------- Stat strip ---------- */
.stats {
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
}

.stats-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 160px;
    padding: 0 24px;
    border-left: 1px solid var(--paper-line);
}

    .stat:first-child {
        border-left: none;
        padding-left: 0;
    }

    .stat .num {
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        font-size: 1.875rem;
        color: var(--cyan);
    }

    .stat .lbl {
        font-size: 0.7812rem;
        color: var(--ink-muted);
        margin-top: 2px;
    }

/* ---------- Board sections ---------- */
.board-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px;
}

.board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--paper-line);
    padding-bottom: 14px;
}

    .board-head h2 {
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        font-size: 1.625rem;
        letter-spacing: 0.02em;
        margin: 0;
        color: var(--navy);
    }

        .board-head h2 .dot {
            color: var(--cyan);
        }

    .board-head a {
        font-size: 0.8125rem;
        color: var(--ink-muted);
    }

        .board-head a:hover {
            color: var(--cyan);
        }

.card-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

@media (max-width:960px) {
    .card-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--paper);
    border: 1px solid var(--paper-line);
    color: var(--ink-text);
    border-radius: 8px;
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--cyan);
    transition: transform .18s ease, box-shadow .18s ease;
    display: block;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(15,33,63,.14);
    }

    .card.status-open {
        border-top-color: var(--green);
    }

    .card.status-soon {
        border-top-color: var(--cyan);
    }

    .card.status-listed {
        border-top-color: #9AA6BC;
    }

    .card .badge {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 0.75rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        font-weight: 600;
        padding: 2px 7px;
        border-radius: 2px;
    }

.badge.open {
    background: rgba(47,174,115,.12);
    color: #22824F;
}

.badge.soon {
    background: rgba(41,171,226,.12);
    color: #1A7FAE;
}

.badge.closed {
    background: rgba(100,112,138,.14);
    color: var(--ink-muted);
}

.badge.up {
    background: rgba(47,174,115,.12);
    color: #22824F;
}

.badge.down {
    background: rgba(224,82,58,.12);
    color: #B8442D;
}

.card h3 {
    font-size: 1.0312rem;
    margin: 10px 0 2px;
    color: var(--navy);
}

.card .exch {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 6px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
}

.card dt {
    color: var(--ink-muted);
    grid-column: 1;
}

.card dd {
    margin: 0;
    grid-column: 1;
    font-weight: 600;
    margin-top: -6px;
}

    /* Retail gain column on the board cards. */
    .card dd.up {
        color: var(--green);
        font-weight: 700;
    }

    .card dd.down {
        color: var(--red);
        font-weight: 700;
    }

.card .meter {
    height: 5px;
    background: var(--paper-line);
    border-radius: 3px;
    margin-top: 14px;
    overflow: hidden;
}

    .card .meter i {
        display: block;
        height: 100%;
        background: var(--green);
    }

.empty-note {
    color: var(--ink-muted);
    font-size: 0.875rem;
    padding: 8px 0;
}

/* ---------- Filter bar (Type / Status pills + Grid/List toggle) ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--paper-line);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-right: 2px;
}

.pill {
    font-family: 'Inter',sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all .15s ease;
}

    .pill:hover {
        border-color: var(--cyan);
        color: var(--navy);
    }

    .pill.active {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
    }

.view-toggle {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.view-btn {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all .15s ease;
}

    .view-btn:hover {
        border-color: var(--cyan);
        color: var(--navy);
    }

    .view-btn.active {
        background: var(--cyan);
        border-color: var(--cyan);
        color: #04202E;
    }

/* List view: same .card markup, reflowed horizontally via CSS + flex order (no separate template) */
.card-grid.view-list {
    grid-template-columns: 1fr;
    gap: 8px;
}

    .card-grid.view-list .card {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 14px 20px;
        border-top: none;
        border-left: 4px solid var(--cyan);
    }

        .card-grid.view-list .card.status-open {
            border-left-color: var(--green);
        }

        .card-grid.view-list .card.status-soon {
            border-left-color: var(--cyan);
        }

        .card-grid.view-list .card.status-listed {
            border-left-color: #9AA6BC;
        }

        .card-grid.view-list .card:hover {
            transform: none;
            box-shadow: 0 6px 16px rgba(15,33,63,.10);
        }

        .card-grid.view-list .card .badge {
            order: 4;
            margin-left: auto;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .card-grid.view-list .card h3 {
            order: 1;
            margin: 0;
            font-size: 0.9375rem;
            min-width: 170px;
            flex-shrink: 0;
        }

        .card-grid.view-list .card .exch {
            order: 2;
            margin: 0;
            min-width: 120px;
            flex-shrink: 0;
        }

        .card-grid.view-list .card dl {
            order: 3;
            display: flex;
            gap: 22px;
            margin: 0;
            flex: 1;
            flex-wrap: wrap;
        }

            .card-grid.view-list .card dl dt {
                display: none;
            }

            .card-grid.view-list .card dl dd {
                margin: 0;
                white-space: nowrap;
            }

        .card-grid.view-list .card .meter {
            display: none;
        }

@media (max-width:760px) {
    .card-grid.view-list .card {
        flex-wrap: wrap;
    }

        .card-grid.view-list .card dl {
            order: 4;
            width: 100%;
        }

        .card-grid.view-list .card .badge {
            order: 3;
            margin-left: 0;
        }
}

/* ---------- Live GMP strip ---------- */
.gmp-strip {
    background: linear-gradient(180deg, #EAF4FA 0%, #F3F7FB 100%);
    border-top: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
}

.gmp-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px;
}

table.gmp {
    width: 100%;
    border-collapse: collapse;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.8125rem;
}

    table.gmp th {
        text-align: left;
        font-size: 0.75rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--ink-muted);
        font-weight: 500;
        padding: 8px 12px;
        border-bottom: 1px solid var(--paper-line);
    }

    table.gmp td {
        padding: 12px;
        border-bottom: 1px solid var(--paper-line);
        color: var(--ink-text);
    }

    table.gmp tr:last-child td {
        border-bottom: none;
    }

    table.gmp td.up {
        color: var(--green);
        font-weight: 600;
    }

    table.gmp td.down {
        color: var(--red);
        font-weight: 600;
    }

    table.gmp a {
        color: var(--navy);
        font-weight: 600;
    }

        table.gmp a:hover {
            color: var(--cyan);
        }

/* ---------- Footer ---------- */
footer.site {
    background: var(--paper);
    border-top: 2px solid var(--cyan);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 46px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer.site .f-name {
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
}

    footer.site .f-name span {
        color: var(--cyan);
    }

footer.site .f-links {
    display: flex;
    gap: 22px;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

    footer.site .f-links a:hover {
        color: var(--cyan);
    }

footer.site .f-copy {
    font-size: 0.75rem;
    color: #94A0B8;
    width: 100%;
    margin-top: 14px;
}

/* ---------- Generic inner pages (category/details/etc.) ---------- */
.page-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px;
}

.ipo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

    .ipo-table th {
        text-align: left;
        font-size: 0.75rem;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--ink-muted);
        font-weight: 600;
        padding: 10px 12px;
        border-bottom: 1px solid var(--paper-line);
    }

    .ipo-table td {
        padding: 12px;
        border-bottom: 1px solid var(--paper-line);
    }

    .ipo-table a {
        color: var(--navy);
        font-weight: 600;
    }

        .ipo-table a:hover {
            color: var(--cyan);
        }

/* ---------- Static content pages (About/Contact/Terms/Privacy/FAQ) ---------- */
.content-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

    .content-page h1 {
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        font-size: 2.125rem;
        letter-spacing: .02em;
        color: var(--navy);
        margin: 0 0 8px;
    }

    .content-page .subtitle {
        color: var(--ink-muted);
        font-size: 0.9062rem;
        margin-bottom: 36px;
    }

    .content-page h2 {
        font-size: 1.1875rem;
        color: var(--navy);
        margin: 32px 0 12px;
        font-weight: 700;
    }

    .content-page p {
        font-size: 0.9375rem;
        line-height: 1.7;
        color: #2A3346;
        margin: 0 0 14px;
    }

    .content-page ul {
        font-size: 0.9375rem;
        line-height: 1.7;
        color: #2A3346;
        margin: 0 0 14px;
        padding-left: 22px;
    }

    .content-page li {
        margin-bottom: 6px;
    }

    .content-page .updated {
        font-size: 0.7812rem;
        color: var(--ink-muted);
        margin-bottom: 28px;
        font-family: 'IBM Plex Mono',monospace;
    }

    .content-page a.inline-link {
        color: var(--cyan);
        font-weight: 600;
    }

        .content-page a.inline-link:hover {
            text-decoration: underline;
        }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

@media (max-width:680px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-top: 4px solid var(--cyan);
    border-radius: 8px;
    padding: 22px;
}

    .contact-card h3 {
        margin: 0 0 6px;
        font-size: 0.9375rem;
        color: var(--navy);
    }

    .contact-card p {
        margin: 0;
        font-size: 0.875rem;
        color: var(--ink-muted);
    }

    .contact-card a {
        color: var(--navy);
        font-weight: 600;
    }

        .contact-card a:hover {
            color: var(--cyan);
        }

/* FAQ accordion - native <details>/<summary>, no JS needed.
   Used on the static /faq page. The IPO detail page FAQ is a separate
   button-based accordion whose styles ship inline with its partial. */
.faq-list {
    margin-top: 8px;
}

.faq-item {
    border-bottom: 1px solid var(--paper-line);
}

    .faq-item summary {
        list-style: none;
        cursor: pointer;
        padding: 18px 4px;
        font-weight: 600;
        color: var(--navy);
        font-size: 0.9688rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: "+";
            font-family: 'Inter',sans-serif;
            font-size: 1.375rem;
            color: var(--cyan);
            margin-left: 12px;
        }

    .faq-item[open] summary::after {
        content: "\2212";
    }

    .faq-item .faq-answer {
        padding: 0 4px 18px;
        font-size: 0.9062rem;
        line-height: 1.7;
        color: #2A3346;
    }

.faq-category {
    font-family: 'Inter',sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
    margin: 36px 0 4px;
}

    .faq-category:first-of-type {
        margin-top: 8px;
    }

/* ================= IPO Detail Page ================= */
.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 18px 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

    .breadcrumb a {
        color: var(--ink-muted);
    }

        .breadcrumb a:hover {
            color: var(--cyan);
        }

    .breadcrumb .sep {
        color: var(--paper-line);
    }

    .breadcrumb .current {
        color: var(--navy);
        font-weight: 600;
    }

/* Detail header */
.detail-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-radius: 10px;
    padding: 26px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.detail-logo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .detail-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }

    .detail-logo .initials {
        font-family: 'Inter',sans-serif;
        font-weight: 800;
        font-size: 1.75rem;
        color: var(--navy);
    }

.detail-header-main {
    flex: 1;
    min-width: 220px;
}

.detail-header h1 {
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin: 0 0 8px;
    letter-spacing: .01em;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 3px;
    background: rgba(255,255,255,.14);
    color: #fff;
}

    .tag.open {
        background: rgba(47,174,115,.9);
    }

    .tag.soon {
        background: rgba(41,171,226,.9);
        color: #04202E;
    }

    .tag.closed {
        background: rgba(255,255,255,.2);
    }

.detail-invest {
    text-align: right;
    flex-shrink: 0;
}

    .detail-invest .lbl {
        font-size: 0.75rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #8FA3BF;
        font-family: 'IBM Plex Mono',monospace;
    }

    .detail-invest .amt {
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        font-size: 1.75rem;
        color: var(--cyan-bright);
        line-height: 1.1;
    }

    .detail-invest .sub {
        font-size: 0.75rem;
        color: #B7C4DA;
    }

@media (max-width:640px) {
    .detail-invest {
        text-align: left;
        width: 100%;
    }
}

/* Timeline strip */
.timeline {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 14px;
}

    .timeline .tl-item {
        background: #fff;
        padding: 14px 12px;
        text-align: center;
    }

        .timeline .tl-item .k {
            font-family: 'IBM Plex Mono',monospace;
            font-size: 0.75rem;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--ink-muted);
            margin-bottom: 4px;
        }

        .timeline .tl-item .v {
            font-weight: 700;
            color: var(--navy);
            font-size: 0.9375rem;
        }

        .timeline .tl-item.is-next {
            background: #EAF6FC;
        }

            .timeline .tl-item.is-next .v {
                color: var(--cyan);
            }

@media (max-width:760px) {
    .timeline {
        grid-template-columns: repeat(2,1fr);
    }
}

/* Section blocks */
.detail-section {
    margin-top: 34px;
}

    .detail-section > h2 {
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        font-size: 1.375rem;
        letter-spacing: .02em;
        color: var(--navy);
        margin: 0 0 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--paper-line);
    }

        .detail-section > h2 .dot {
            color: var(--cyan);
        }

/* Two-up cards (GMP + subscription) */
.sentiment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width:760px) {
    .sentiment-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    padding: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

    .panel-head h3 {
        margin: 0;
        font-size: 0.9375rem;
        color: var(--navy);
    }

    .panel-head a {
        font-size: 0.75rem;
        color: var(--cyan);
        font-weight: 600;
    }

.gmp-big {
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
}

    .gmp-big.up {
        color: var(--green);
    }

    .gmp-big.down {
        color: var(--red);
    }

.gmp-pct {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 6px;
}

.gmp-meta {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin-top: 8px;
}

    .gmp-meta strong {
        color: var(--navy);
    }

.gmp-stamp {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 10px;
}

/* Live subscription bars */
.sub-total {
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--navy);
    line-height: 1;
}

.sub-total-lbl {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.sub-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sub-row {
    display: grid;
    grid-template-columns: 112px 1fr 54px;
    gap: 10px;
    align-items: center;
    font-size: 0.8125rem;
}

    .sub-row.sub-child {
        padding-left: 14px;
        font-size: 0.75rem;
        color: var(--ink-muted);
    }

    .sub-row .cat {
        font-weight: 600;
        color: var(--navy);
    }

    .sub-row.sub-child .cat {
        font-weight: 500;
        color: var(--ink-muted);
    }

    .sub-row .bar {
        height: 7px;
        background: var(--paper-line);
        border-radius: 4px;
        overflow: hidden;
    }

        .sub-row .bar i {
            display: block;
            height: 100%;
            background: var(--cyan);
            border-radius: 4px;
        }

            .sub-row .bar i.hot {
                background: var(--green);
            }

    .sub-row .x {
        font-family: 'IBM Plex Mono',monospace;
        font-weight: 600;
        text-align: right;
        color: var(--navy);
    }

@media (max-width:520px) {
    .sub-row {
        grid-template-columns: 92px 1fr 46px;
        font-size: 0.75rem;
    }
}

/* Data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    overflow: hidden;
}

    .data-table th {
        text-align: left;
        font-family: 'IBM Plex Mono',monospace;
        font-size: 0.75rem;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--ink-muted);
        font-weight: 600;
        padding: 11px 16px;
        background: #FAFCFE;
        border-bottom: 1px solid var(--paper-line);
    }

    .data-table td {
        padding: 11px 16px;
        border-bottom: 1px solid var(--paper-line);
        font-size: 0.875rem;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table td:first-child {
        color: var(--ink-muted);
        width: 38%;
    }

    .data-table td.val {
        color: var(--navy);
        font-weight: 600;
    }

    .data-table tr.total-row td {
        background: #FAFCFE;
        font-weight: 700;
        color: var(--navy);
    }

/* Metric tiles */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 12px;
}

@media (max-width:960px) {
    .metric-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:560px) {
    .metric-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

.metric {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

    .metric .k {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 0.75rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--ink-muted);
        margin-bottom: 5px;
    }

    .metric .v {
        font-family: 'Inter',sans-serif;
        font-weight: 700;
        font-size: 1.375rem;
        color: var(--navy);
    }

/* Quick profit calculator */
.profit-note {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin: 0 0 14px;
}

.profit-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 640px;
}

    .profit-table th {
        text-align: right;
        font-family: 'IBM Plex Mono',monospace;
        font-size: 0.75rem;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--ink-muted);
        font-weight: 600;
        padding: 11px 14px;
        background: #FAFCFE;
        white-space: nowrap;
    }

        .profit-table th:first-child,
        .profit-table td:first-child {
            text-align: left;
        }

    .profit-table td {
        padding: 11px 14px;
        text-align: right;
        border-bottom: 1px solid var(--paper-line);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .profit-table tbody tr:hover {
        background: #FAFCFE;
    }

    .profit-table .cat {
        font-weight: 600;
        color: var(--navy);
    }

.profit-gain {
    color: var(--green);
    font-weight: 700;
}

.profit-loss {
    color: var(--red);
    font-weight: 700;
}

.profit-flat {
    color: var(--ink-muted);
    font-weight: 600;
}

/* Strengths / risks */
.sr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width:760px) {
    .sr-grid {
        grid-template-columns: 1fr;
    }
}

.sr-panel {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    padding: 20px;
    border-top: 4px solid var(--green);
}

    .sr-panel.risks {
        border-top-color: var(--red);
    }

    .sr-panel h3 {
        margin: 0 0 12px;
        font-size: 0.9375rem;
        color: var(--navy);
    }

    .sr-panel ul {
        margin: 0;
        padding-left: 18px;
    }

    .sr-panel li {
        font-size: 0.875rem;
        line-height: 1.6;
        color: #2A3346;
        margin-bottom: 8px;
    }

/* Documents */
.doc-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    padding: 11px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    transition: all .15s ease;
}

    .doc-link:hover {
        border-color: var(--cyan);
        color: var(--cyan);
    }

/* Prose */
.detail-prose p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #2A3346;
    margin: 0 0 12px;
}

.detail-prose ul {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #2A3346;
    padding-left: 20px;
}

.disclaimer-note {
    font-size: 0.75rem;
    color: var(--ink-muted);
    background: #FAFCFE;
    border: 1px solid var(--paper-line);
    border-left: 3px solid var(--cyan);
    border-radius: 5px;
    padding: 12px 14px;
    margin-top: 14px;
    line-height: 1.6;
}

/* ---------- Error pages ---------- */
.error-code {
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    color: var(--cyan);
    letter-spacing: .02em;
    margin-bottom: 6px;
}

/* ================= Indic script support (hi / mr / gu) =================
   Inter and IBM Plex Mono contain no Devanagari or Gujarati glyphs, so without these
   rules the browser silently substitutes whatever the OS has - inconsistent across
   devices and mismatched against the surrounding type.

   <html lang="..."> is set from the active UI culture in _Layout, so these switch
   automatically with the language dropdown.

   Note: the uppercase/letter-spacing resets that used to live here are gone - the Latin
   headings no longer use either, so there's nothing left to undo. */

html[lang="hi"] body,
html[lang="mr"] body {
    font-family: 'Noto Sans Devanagari','Inter',sans-serif;
}

html[lang="gu"] body {
    font-family: 'Noto Sans Gujarati','Inter',sans-serif;
}

html[lang="hi"] .display, html[lang="mr"] .display,
html[lang="hi"] h1, html[lang="mr"] h1,
html[lang="hi"] h2, html[lang="mr"] h2,
html[lang="hi"] h3, html[lang="mr"] h3,
html[lang="hi"] .faq-category, html[lang="mr"] .faq-category {
    font-family: 'Noto Sans Devanagari',sans-serif;
    letter-spacing: 0; /* negative tracking breaks the shirorekha and conjunct clusters */
}

html[lang="gu"] .display,
html[lang="gu"] h1, html[lang="gu"] h2, html[lang="gu"] h3,
html[lang="gu"] .faq-category {
    font-family: 'Noto Sans Gujarati',sans-serif;
    letter-spacing: 0;
}

/* Devanagari and Gujarati have taller ascenders/descenders than Latin - tight display
   leading clips the matras (vowel marks). */
html[lang="hi"] .display, html[lang="mr"] .display, html[lang="gu"] .display {
    line-height: 1.3;
}

html[lang="hi"] .hero h1, html[lang="mr"] .hero h1, html[lang="gu"] .hero h1 {
    font-size: clamp(1.75rem,4vw,2.75rem);
}

html[lang="hi"] .detail-header h1, html[lang="mr"] .detail-header h1, html[lang="gu"] .detail-header h1 {
    line-height: 1.35;
}

/* Indic nav labels run wider than English - tighten the gap so the bar doesn't wrap early. */
html[lang="hi"] nav.main, html[lang="mr"] nav.main, html[lang="gu"] nav.main {
    gap: 18px;
}

/* Digits, currency and the ticker stay Latin - these values are never translated, and
   IBM Plex Mono keeps figures column-aligned. */
html[lang="hi"] .mono, html[lang="mr"] .mono, html[lang="gu"] .mono,
html[lang="hi"] .ticker, html[lang="mr"] .ticker, html[lang="gu"] .ticker,
html[lang="hi"] .sub-x, html[lang="mr"] .sub-x, html[lang="gu"] .sub-x {
    font-family: 'IBM Plex Mono',monospace;
}

html[lang="hi"] .stat .num, html[lang="mr"] .stat .num, html[lang="gu"] .stat .num,
html[lang="hi"] .gmp-big, html[lang="mr"] .gmp-big, html[lang="gu"] .gmp-big,
html[lang="hi"] .sub-total, html[lang="mr"] .sub-total, html[lang="gu"] .sub-total,
html[lang="hi"] .metric .v, html[lang="mr"] .metric .v, html[lang="gu"] .metric .v,
html[lang="hi"] .error-code, html[lang="mr"] .error-code, html[lang="gu"] .error-code {
    font-family: 'Inter',sans-serif;
}

/* ---------- Live subscription page ---------- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    letter-spacing: .12em;
    font-weight: 600;
    color: var(--green);
    background: rgba(47,174,115,.12);
    padding: 4px 9px;
    border-radius: 3px;
}

    .live-badge i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
        animation: pulse 2s ease-in-out infinite;
    }

    .live-badge.stale {
        color: var(--ink-muted);
        background: rgba(100,112,138,.12);
    }

        .live-badge.stale i {
            background: var(--ink-muted);
            animation: none;
        }

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-badge i {
        animation: none;
    }
}

/* Ten columns won't fit a phone. Scroll horizontally rather than crushing the
   numbers to an unreadable size or hiding columns the user came for. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-table {
    min-width: 760px;
}

    .sub-table th.num, .sub-table td.num {
        text-align: right;
        white-space: nowrap;
    }

    .sub-table td:first-child {
        width: auto;
        color: var(--ink-text);
    }

    .sub-table td.col-ipo {
        min-width: 190px;
    }

    .sub-table th.col-ipo {
        min-width: 190px;
    }

    .sub-table td.col-ipo a {
        color: var(--navy);
        font-weight: 600;
    }

        .sub-table td.col-ipo a:hover {
            color: var(--cyan);
        }

.sub-exch {
    display: block;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.sub-unmatched {
    color: var(--navy);
    font-weight: 600;
}

.sub-x {
    font-family: 'IBM Plex Mono',monospace;
    font-weight: 600;
    color: var(--ink-text);
    transition: color .3s ease;
}

    .sub-x.hot {
        color: var(--green);
    }

    .sub-x.total {
        font-weight: 700;
        color: var(--navy);
    }

        .sub-x.total.hot {
            color: var(--green);
        }

.sub-na {
    color: #B9C2D0;
}

.sub-table .total-col {
    background: #FAFCFE;
    border-left: 1px solid var(--paper-line);
    border-right: 1px solid var(--paper-line);
}

.api-error {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-left: 4px solid var(--red);
    border-radius: 6px;
    padding: 16px 20px;
}

    .api-error strong {
        color: var(--navy);
    }

    .api-error p {
        margin: 6px 0 0;
        font-size: 0.875rem;
        color: var(--ink-muted);
    }



.tick--up .tick__gmp,
.tick--up .tick__arrow,
.tick--up .tick__pct {
    color: #4ADE80;
}


.tick--up .tick__gmp,
.tick--up .tick__arrow,
.tick--up .tick__pct {
    color: #4ADE80;
}