/* IPOWale — public site styles */
:root {
  --brand: #1F4E9E;
  --navy: #0B2447;
  --navy-2: #133A6B;
  --ink: #111C33;
  --body: #36425A;
  --muted: #5E6A82;
  --line: #D8DFEB;
  --bg: #F3F5FA;
  --card: #ffffff;
  --up: #127A3E;
  --down: #B42318;
  --radius: 8px;
  --shadow: none;
  --font-head: "Schibsted Grotesk", system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--body); background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--navy); }
.num, .metric-value, .summary-num, .hero-stats strong, .kv-grid strong { font-variant-numeric: tabular-nums; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.muted { color: var(--muted); }
.min-w-0 { min-width: 0; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-outline-brand { color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: #fff; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-icon { font-size: 1.5rem; line-height: 1; padding: .25rem .5rem; color: var(--ink); }

/* Announcement */
.announce { background: var(--navy); color: #DCE6F7; font-size: .85rem; padding: .45rem 0; text-align: center; }
.announce a { color: #fff; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header > .container { min-height: 66px; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(17, 28, 51, .06); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); flex-shrink: 0; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--navy); }
.brand-logo { max-height: 40px; max-width: 180px; }
.main-nav { gap: .15rem; align-items: center; }
.main-nav > a, .main-nav .dropdown > a { color: var(--body); font-weight: 500; font-size: .9rem; padding: .45rem .6rem; border-radius: 8px; white-space: nowrap; }
.main-nav > a:hover, .main-nav .dropdown > a:hover { background: #EBF0F8; color: var(--ink); }
.main-nav a.active { color: var(--brand); background: #E6EDF9; }
.header-search { position: relative; width: 240px; }
.header-search > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-search input { width: 100%; border: 1px solid var(--line); background: #F6F8FC; border-radius: 10px; padding: .5rem .75rem .5rem 2.2rem; font-size: .9rem; }
.header-search input:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
@media (max-width: 575px) { .header-search { width: auto; flex: 1; } }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 28, 51, .12); z-index: 50; overflow: hidden; }
.search-suggest a { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .85rem; color: var(--ink); font-size: .9rem; border-bottom: 1px solid #EBEFF6; }
.search-suggest a:hover, .search-suggest a.focus { background: #EEF3FB; }
.search-suggest small { color: var(--muted); white-space: nowrap; }
.mobile-nav a { display: block; padding: .65rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mobile-nav a.active { color: var(--brand); }

/* Hero */
.hero { background: radial-gradient(1100px 380px at 85% -10%, rgba(59, 130, 246, .18), transparent 60%), linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); padding: 3.25rem 0 2.5rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.12; margin: .75rem 0 .9rem; color: var(--navy); }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; font-size: .8rem; font-weight: 600; color: var(--brand); background: #E6EDF9; padding: .3rem .7rem; border-radius: 999px; }
.hero-search { position: relative; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .4rem .4rem .4rem 2.6rem; box-shadow: var(--shadow); max-width: 560px; margin-top: 1.4rem; }
.hero-search > i { position: absolute; left: 1rem; color: var(--muted); }
.hero-search input { border: 0; flex: 1; outline: 0; font-size: 1rem; min-width: 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.hero-links a { font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); }
.hero-links a:hover { border-color: var(--brand); color: var(--brand); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.summary-card { position: relative; display: flex; flex-direction: column; padding: 1.2rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.summary-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17, 28, 51, .09); color: var(--ink); }
.summary-num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.summary-label { color: var(--muted); font-size: .88rem; margin-top: .35rem; }
.summary-card i { position: absolute; right: 1rem; top: 1rem; font-size: 1.3rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.s-open i { background: #dcfce7; color: #15803d; }
.s-upcoming i { background: #D6E2F6; color: #4338ca; }
.s-closed i { background: #fef3c7; color: #b45309; }
.s-listed i { background: #e0f2fe; color: #0369a1; }

/* Sections */
.section { padding: 2.75rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.section-head p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.link-arrow { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1A417F 100%); color: #B8C3D6; padding: 2rem 0 2.2rem; }
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .25rem 0 .4rem; }
.page-hero p { margin: 0; max-width: 720px; }
.page-hero .breadcrumb { margin: 0; font-size: .82rem; }
.page-hero .breadcrumb a { color: #A9C4F0; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #8592A8; }
.page-hero .hero-search { margin-top: 1rem; }

/* Cards */
.card-like, .panel, .table-card, .list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 1.35rem 1.4rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.panel h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.1rem; }
.ipo-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem; display: flex; flex-direction: column; gap: .9rem; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ipo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(17, 28, 51, .09); border-color: #C3CEE0; }
.ipo-card-head { display: flex; gap: .8rem; align-items: center; }
.ipo-card-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 .35rem; line-height: 1.3; }
.ipo-card-title a { color: var(--ink); }
.ipo-card-title a:hover { color: var(--brand); }
.ipo-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ipo-logo { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #D6E2F6, #EEF3FB); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem; }
.ipo-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.ipo-logo.sm { width: 34px; height: 34px; border-radius: 9px; font-size: .75rem; }
.ipo-logo.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 1.4rem; background: #fff; }
.ipo-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem .75rem; margin: 0; padding: .85rem; background: #F6F8FC; border-radius: 10px; }
.ipo-facts dt { font-size: .72rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ipo-facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .88rem; }
.ipo-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.metric { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; display: flex; flex-direction: column; }
.metric-label { font-size: .75rem; color: var(--muted); }
.metric-value { font-weight: 700; color: var(--ink); font-size: 1rem; }
.metric-value small { font-weight: 600; font-size: .78rem; }
.ipo-card-actions { display: flex; gap: .5rem; margin-top: auto; }
.ipo-card-actions .btn { flex: 1; position: relative; z-index: 2; }
.tentative-note { font-size: .78rem; color: #b45309; margin: 0; }

/* Status + tags */
.status-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { background: #dcfce7; color: #15803d; }
.status-upcoming { background: #D6E2F6; color: #4338ca; }
.status-closed { background: #fef3c7; color: #b45309; }
.status-allotment { background: #fae8ff; color: #a21caf; }
.status-listed { background: #e0f2fe; color: #0369a1; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 6px; background: #E6EDF9; color: #1A3F7A; }
.tag-ghost { background: #EBEFF6; color: #4A5568; }

/* Tables */
.table-card { overflow: hidden; }
.ipo-table { font-size: .88rem; }
.ipo-table thead th { background: #F6F8FC; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); white-space: nowrap; padding: .75rem .7rem; }
.ipo-table thead th a { color: inherit; }
.ipo-table td { padding: .7rem; border-color: #E8EDF5; }
.ipo-table tbody tr:hover { background: #F6F8FC; }
.company-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; }
.company-link:hover { color: var(--brand); }
.company-cell { min-width: 220px; }
.ipo-table td.num, .ipo-table td.text-end { white-space: nowrap; }
.table-tools { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.table-tools input { max-width: 280px; }
.fine-print { font-size: .78rem; color: var(--muted); }
.empty-state { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2rem; display: block; margin-bottom: .5rem; color: #B8C3D6; }
.empty-state p { margin: 0; }

/* Lists & timeline */
.list-card { overflow: hidden; }
.list-row { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid #EBEFF6; color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #F6F8FC; color: var(--ink); }
.list-row.compact { padding: .6rem 0; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-main strong { font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { color: var(--muted); font-size: .8rem; }
.list-date { text-align: right; display: flex; flex-direction: column; }
.list-date strong { font-size: .95rem; }
.list-date small { color: var(--muted); font-size: .75rem; }
.timeline { padding: .5rem 1rem 1rem; }
.tl-date { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; margin: .9rem 0 .35rem; }
.tl-item { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; color: var(--ink); font-size: .9rem; }
.tl-item:hover .tl-name { color: var(--brand); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.tl-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .1rem .4rem; border-radius: 5px; min-width: 74px; text-align: center; }
.tl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-open { --ev: #16a34a; } .ev-close { --ev: #d97706; } .ev-allotment { --ev: #a21caf; } .ev-refund { --ev: #64748b; } .ev-listing { --ev: #0284c7; } .ev-demat_credit { --ev: #0d9488; }
.tl-dot { background: var(--ev); }
.tl-label { color: var(--ev); background: color-mix(in srgb, var(--ev) 12%, white); }

/* Calendar */
.cal-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.cal-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: #F6F8FC; padding: .5rem; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cal-cell { background: #fff; min-height: 112px; padding: .4rem; display: flex; flex-direction: column; gap: 3px; }
.cal-cell.empty { background: #F6F8FC; }
.cal-cell.today { background: #F1F5FC; box-shadow: inset 0 0 0 2px var(--brand); }
.cal-day { font-size: .8rem; font-weight: 700; color: var(--muted); }
.cal-ev { display: block; font-size: .72rem; font-weight: 600; padding: .15rem .35rem; border-radius: 5px; color: var(--ev); background: color-mix(in srgb, var(--ev) 12%, white); border-left: 3px solid var(--ev); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Filters */
.pill-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill-tabs a { padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); font-weight: 500; font-size: .88rem; }
.pill-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.filter-bar .form-label { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; }
.form-control, .form-select { border-radius: 10px; border-color: #CBD3E2; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }

/* IPO detail */
.preview-bar { background: #fef3c7; color: #92400e; font-size: .88rem; padding: .5rem 0; }
.ipo-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.75rem; }
.ipo-hero .breadcrumb { font-size: .82rem; }
.ipo-hero-main { display: flex; gap: 1rem; align-items: center; margin: .5rem 0 1.25rem; }
.ipo-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 .45rem; }
.hero-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
@media (max-width: 991px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; display: flex; flex-direction: column; }
.hero-stats span { font-size: .75rem; color: var(--muted); }
.hero-stats strong { color: var(--ink); font-size: 1rem; }
.anchor-nav { position: sticky; top: 66px; z-index: 5; display: flex; gap: .25rem; overflow-x: auto; background: rgba(245, 247, 251, .95); backdrop-filter: blur(6px); padding: .5rem 0; margin-bottom: .75rem; scrollbar-width: none; }
.anchor-nav a { padding: .35rem .8rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--body); white-space: nowrap; }
.anchor-nav a:hover { background: #fff; color: var(--brand); }
section[id] { scroll-margin-top: 130px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .1rem 1.25rem; }
.kv-grid > div { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.kv-grid span { font-size: .78rem; color: var(--muted); }
.kv-grid strong { color: var(--ink); font-weight: 600; }
.kv-wide { grid-column: 1 / -1; }
.source-line { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }
.ipo-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.ipo-timeline li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0 .6rem 1.75rem; border-bottom: 1px solid #EBEFF6; }
.ipo-timeline li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid #B8C3D6; background: #fff; }
.ipo-timeline li.done::before { background: var(--up); border-color: var(--up); }
.ipo-timeline li.today::before { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.t-label { color: var(--ink); font-weight: 500; }
.t-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .65rem; }
.sub-box { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; display: flex; flex-direction: column; }
.sub-box span { font-size: .78rem; color: var(--muted); }
.sub-box strong { font-size: 1.2rem; color: var(--ink); }
.sub-total { background: var(--navy); border-color: var(--navy); }
.sub-total span { color: #A9C4F0; }
.sub-total strong { color: #fff; }
.chart-box { position: relative; height: 240px; margin-top: 1rem; }
.prose { line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.page-prose h2, .page-prose h3 { margin-top: 1.25rem; }
.risk-list { padding-left: 1.1rem; }
.risk-list li { margin-bottom: .5rem; }
.risk-list span { display: block; color: var(--muted); font-size: .9rem; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { padding: .5rem 0; border-bottom: 1px solid #EBEFF6; }
.sticky-aside { position: sticky; top: 84px; }
.apply-panel { border-top: 4px solid var(--brand); }
.broker-btn { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); margin-bottom: .55rem; transition: border-color .15s, background .15s; }
.broker-btn:hover { border-color: var(--brand); background: #F1F5FC; color: var(--ink); }
.broker-btn small { display: block; color: var(--muted); font-size: .74rem; }
.broker-logo { width: 38px; height: 38px; border-radius: 10px; background: #EBEFF6; display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--navy); font-size: .8rem; flex-shrink: 0; }
.broker-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.broker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.broker-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow); }
.broker-card p { color: var(--muted); font-size: .88rem; flex: 1; margin: 0; }
.broker-head { display: flex; align-items: center; gap: .6rem; }
.error-code { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: #B8C3D6; line-height: 1; }

/* Footer */
.site-footer { background: var(--navy); color: #8592A8; padding: 3rem 0 1.5rem; margin-top: 2rem; font-size: .9rem; }
.site-footer h6 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #B8C3D6; }
.site-footer a:hover { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.footer-about { max-width: 360px; }
.social { display: flex; gap: .5rem; }
.social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 1rem; }
.social a:hover { background: var(--brand); }
.contact-list li { display: flex; gap: .5rem; align-items: flex-start; }
.contact-list i { margin-top: .15rem; }
.contact-list.dark li { margin-bottom: .6rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .78rem; line-height: 1.6; }
.footer-legal strong { color: #B8C3D6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1rem; margin-top: .5rem; }

@media (max-width: 767px) {
  .section { padding: 2rem 0; }
  .hero { padding: 2rem 0 1.5rem; }
  .ipo-facts { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Mega menu ---------- */
.site-header > .container { position: relative; }
.main-nav .mega-dropdown { position: static; }
.main-nav .dropdown > a.active { color: var(--brand); background: #E6EDF9; }
.mega-menu { left: 0 !important; right: 0; top: calc(100% - 6px) !important; margin-top: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px rgba(17, 28, 51, .14); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem 1rem; }
.mega-head { display: flex; align-items: center; gap: .5rem; background: #E6EDF9; border: 1px solid #CFDAF0; border-radius: 10px; padding: .55rem .8rem; font-weight: 700; color: var(--navy); font-size: .9rem; margin-bottom: .35rem; }
.mega-head i { color: var(--brand); }
.mega-item { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .6rem; border-radius: 10px; color: var(--ink); }
.mega-item:hover, .mega-item.active { background: #F1F5FC; color: var(--ink); }
.mega-item strong { display: block; font-weight: 600; font-size: .9rem; }
.mega-item small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.mega-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); background: #fff; }
.mega-item:hover .mega-ic { border-color: var(--brand); color: var(--brand); }
.mega-badge { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--brand); background: #E6EDF9; border-radius: 6px; padding: .1rem .35rem; margin-left: .25rem; white-space: nowrap; vertical-align: 1px; }
.small-mega { min-width: 270px; padding: .5rem; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(17, 28, 51, .12); margin-top: 4px !important; }
.mobile-group { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .25rem; }
.mobile-nav a i { color: var(--brand); width: 1.25rem; display: inline-block; }
.btn-login { background: var(--brand); color: #fff; border-radius: 10px; padding: .45rem 1rem; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.btn-login:hover { background: var(--navy); color: #fff; }
.member-btn { padding: 0; border: 2px solid #D6E2F6; border-radius: 50%; width: 38px; height: 38px; overflow: hidden; display: grid; place-items: center; background: #E6EDF9; font-weight: 700; color: var(--navy); font-size: .8rem; }
.member-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Listing pages (ipoji style) ---------- */
.listing-wrap { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.crumbs .breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.crumbs .breadcrumb a { color: var(--brand); }
.crumbs .breadcrumb-item + .breadcrumb-item::before { content: "›"; }
.status-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .5rem; box-shadow: var(--shadow); }
.status-tabs a { display: flex; justify-content: center; align-items: center; gap: .45rem; padding: .7rem .5rem; border-radius: 10px; color: var(--brand); font-weight: 600; font-size: 1rem; border: 1px solid transparent; }
.status-tabs a:hover { background: #F1F5FC; }
.status-tabs a.active { border-color: #A9BFE6; background: #F1F5FC; color: var(--navy); box-shadow: inset 0 0 0 1px #A9BFE6; }
.status-tabs small { color: var(--muted); font-weight: 500; }
@media (max-width: 575px) { .status-tabs { grid-template-columns: repeat(3, 1fr); } .status-tabs a { font-size: .9rem; } }
.listing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin: 1.5rem 0 .4rem; }
.listing-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0; }
.listing-head .year { color: var(--brand); }
.listing-sub { color: var(--muted); margin-bottom: 1.1rem; }
.listing-sub a { font-weight: 600; text-decoration: underline; }
.type-toggle { display: inline-flex; gap: .25rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem; box-shadow: var(--shadow); }
.type-toggle a { padding: .4rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--body); }
.type-toggle a:hover { color: var(--brand); }
.type-toggle a.active { background: var(--brand); color: #fff; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.year-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.year-pills a { padding: .3rem .8rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--body); }
.year-pills a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .tile-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .tile-grid, .tile-grid-3 { grid-template-columns: 1fr; } }
.ipo-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.1rem .9rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.ipo-tile:hover { border-color: #C3CEE0; box-shadow: 0 12px 30px rgba(17, 28, 51, .08); }
.tile-head { display: flex; gap: .8rem; align-items: flex-start; }
.tile-head .ipo-logo { width: 52px; height: 52px; background: #fff; }
.tile-head h3 { font-size: 1.05rem; font-weight: 700; margin: .1rem 0 .2rem; line-height: 1.3; }
.tile-head h3 a { color: var(--ink); }
.tile-head h3 a:hover { color: var(--brand); }
.tile-dates { color: var(--muted); font-size: .85rem; }
.approx { color: #b45309; font-weight: 600; font-size: .72rem; }
.tile-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.ex-badge { font-size: .7rem; font-weight: 700; background: #EBEFF6; color: #334155; padding: .25rem .55rem; border-radius: 8px; white-space: nowrap; }
.watch-btn { border: 0; background: none; color: #8592A8; font-size: 1.05rem; padding: 0 .1rem; line-height: 1; }
.watch-btn:hover, .watch-btn.on { color: #f59e0b; }
.tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.tile-stats dt { font-size: .76rem; color: var(--muted); font-weight: 500; }
.tile-stats dd { margin: 0; font-weight: 700; color: var(--ink); font-size: .98rem; font-variant-numeric: tabular-nums; }
.tile-stats dd small { font-weight: 600; font-size: .75rem; }
.tile-stats-2 { padding-top: .75rem; border-top: 1px dashed var(--line); }
.tile-foot { display: flex; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.btn-view { background: #E6EDF9; color: var(--brand); border: 0; padding: .4rem 1.4rem; border-radius: 10px; }
.btn-view:hover { background: var(--brand); color: #fff; }
.broker-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1rem; }
.promo-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.promo-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.promo-banner { width: 100%; border-radius: 10px; display: block; margin-bottom: .75rem; }
.promo-body { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; }
.promo-body p { margin: 0; color: var(--muted); font-size: .85rem; }
.btn-promo { background: var(--brand); color: #fff; border-radius: 10px; padding: .45rem 1.1rem; }
.btn-promo:hover { background: var(--navy); color: #fff; }

/* ---------- Login / account ---------- */
.login-card { max-width: 420px; margin: 1rem auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: 0 18px 40px rgba(17, 28, 51, .08); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; padding: .75rem 1rem; border: 1px solid #dadce0; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 1rem; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); }
.account-head { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow); }
.account-head img, .avatar-fallback { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: #E6EDF9; font-weight: 800; color: var(--navy); font-size: 1.3rem; }
.account-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }

/* ---------- Glossary ---------- */
.glossary dt { font-family: var(--font-head); color: var(--ink); font-size: 1.02rem; margin-top: 1.1rem; }
.glossary dd { margin: .2rem 0 0; color: var(--body); }
.main-nav a:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
.main-nav .dropdown-toggle.show { background: #E6EDF9; color: var(--brand); }

.app-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.app-badges a { display: inline-flex; align-items: center; gap: .4rem; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: .45rem .8rem; font-size: .82rem; font-weight: 600; }
.app-badges a:hover { background: #111827; color: #fff; }

/* =====================================================================
   IPOWale look: stamp-paper green, engraved guilloche, plain type.
   Images live in assets/img/art (generated, original artwork).
   ===================================================================== */
:root {
  --sheet: #ffffff;
  --rule: #CAD4E5;
  --tint: #E1E9F7;
  --marigold: #F2711C;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font-size: 15.5px; line-height: 1.55; font-feature-settings: "tnum" 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.015em; }
table, .num, dd, .metric-value, .t-date, .board-row { font-variant-numeric: tabular-nums; }
::selection { background: var(--tint); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* type: no all-caps labels anywhere */
.status-pill, .ipo-table thead th, .tl-label, .tl-date, .cal-dow, .mobile-group, .site-footer h6, .ipo-facts dt { text-transform: none; letter-spacing: 0; }

/* buttons */
.btn { border-radius: 6px; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--navy); border-color: var(--navy); }
.btn-view { border-radius: 6px; background: var(--tint); }

/* calm surfaces: one border, no lift, no floating shadows */
.ipo-card:hover, .summary-card:hover, .ipo-tile:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.ipo-card, .ipo-tile, .panel, .table-card, .list-card, .card-like, .broker-card, .promo-card, .filter-bar, .status-tabs, .type-toggle { box-shadow: none; }
.ipo-logo { background: var(--sheet); border-radius: 8px; color: var(--brand); }

/* status: small coloured square + sentence-case word */
.status-pill { background: none !important; padding: 0; border-radius: 0; font-size: .8rem; font-weight: 600; gap: .4rem; }
.status-pill::before { width: 8px; height: 8px; border-radius: 2px; }
.status-open { color: #127A3E; } .status-upcoming { color: #3F5BA8; } .status-closed { color: #C2410C; }
.status-allotment { color: #7A3E9D; } .status-listed { color: #1F4E9E; } .status-cancelled { color: #B42318; }
.tag { background: var(--tint); color: var(--navy); border-radius: 4px; font-weight: 600; }
.tag-ghost { background: transparent; border: 1px solid var(--rule); color: var(--body); }

/* header & announcement */
.site-header { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.site-header.scrolled { box-shadow: none; }
.brand-text { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand-mark svg, .brand-mark img { display: block; border-radius: 7px; }
.main-nav > a, .main-nav .dropdown > a { border-radius: 6px; }
.main-nav a.active, .main-nav .dropdown > a.active { background: none; color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.header-search input { border-radius: 6px; background: var(--bg); }
.btn-login { border-radius: 6px; }
.announce { background: var(--navy); color: #DCE6F7; }
.mega-menu, .small-mega { border-radius: 10px; }
.mega-head { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .4rem .2rem .55rem; }
.mega-ic { border-radius: 8px; }

/* engraved band, used as a rule under headers and above the footer */
.band { height: 28px; background: url(../img/art/band.svg) repeat-x center / auto 28px; }
.band-thin { height: 14px; background-size: auto 14px; opacity: .8; }

/* ---------- home hero ---------- */
.hero2 { position: relative; padding: 3rem 0 0; background: var(--bg); overflow: hidden; }
.hero2::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -300px; background: url(../img/art/rosette-faint.svg) center / contain no-repeat; opacity: .7; pointer-events: none; }
.hero2 .container { position: relative; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 3rem; align-items: start; }
.hero2-date { display: block; color: var(--brand); font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.hero2 h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); margin: 0 0 1.1rem; max-width: 12ch; }
.hero2 .lead { font-size: 1.1rem; color: var(--body); max-width: 46ch; margin-bottom: 1.6rem; }
.hero2 .hero-search { box-shadow: none; border-radius: 8px; border-color: var(--rule); margin-top: 0; }
.hero2 .hero-search .btn { border-radius: 6px; }
.hero2-links { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin-top: 1.1rem; font-weight: 600; font-size: .95rem; }
.hero2-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hero2-links a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.hero2 > .band { margin-top: 3rem; }

/* the issue board: one certificate-like sheet */
.board { position: relative; background: var(--sheet); border: 1px solid #B9C8E0; border-radius: 10px; }
.board-head { position: relative; padding: 1.15rem 1.3rem 1rem; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, #fff) padding-box; }
.board-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px; background: url(../img/art/band.svg) repeat-x center / auto 10px; opacity: .55; }
.board-head h2 { font-size: 1.15rem; margin: 0; padding-right: 92px; }
.board-head p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; padding-right: 92px; }
.board-seal { position: absolute; right: -30px; top: -34px; width: 128px; height: 128px; background: url(../img/art/rosette.svg) center / contain no-repeat; transform: rotate(-8deg); }
.board-seal span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; line-height: 1; color: var(--brand); }
.board-seal small { font-size: .62rem; font-weight: 700; color: var(--brand); margin-top: 2px; }
.board-rows { list-style: none; margin: 0; padding: .35rem 0; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .25rem 1.25rem; align-items: baseline; padding: .8rem 1.3rem; color: var(--ink); border-bottom: 1px dashed var(--line); }
.board-rows li:last-child .board-row { border-bottom: 0; }
.board-row:hover { background: #F7F9FD; color: var(--ink); }
.board-row strong { font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .b-sub { grid-column: 1; color: var(--muted); font-size: .82rem; }
.board-row .b-price { text-align: right; font-weight: 600; }
.board-row .b-close { text-align: right; font-weight: 700; min-width: 7.5rem; }
.board-row .b-close.soon { color: #C2410C; }
.board-row .b-gmp { grid-column: 2 / 4; text-align: right; font-size: .82rem; color: var(--muted); }
.board-empty { padding: 1.4rem 1.3rem; color: var(--body); }
.board-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.board-foot a { padding: .75rem .9rem; color: var(--muted); font-size: .8rem; line-height: 1.25; border-left: 1px solid var(--line); }
.board-foot a:first-child { border-left: 0; }
.board-foot a strong { display: block; color: var(--ink); font-size: 1.35rem; font-weight: 800; }
.board-foot a:hover { background: #F7F9FD; }
.board-foot a:hover strong { color: var(--brand); }
@media (max-width: 991px) {
  .hero2-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero2 h1 { max-width: 16ch; }
  .board-seal { right: -10px; top: -26px; width: 92px; height: 92px; }
}
@media (max-width: 575px) {
  .hero2 { padding-top: 2rem; }
  .board-row { grid-template-columns: minmax(0, 1fr) auto; }
  .board-row .b-price { display: none; }
  .board-row .b-gmp { grid-column: 1 / 3; text-align: left; }
  .board-foot { grid-template-columns: repeat(2, 1fr); }
  .board-foot a:nth-child(3) { border-left: 0; }
  .board-foot a:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* sections */
.section { padding: 3rem 0; }
.section-alt { background: #fff; }
.section-head h2 { font-size: 1.55rem; }
.link-arrow { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-arrow i { display: none; }

/* how an application works (a real sequence, so it is numbered) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 1.25rem 1.25rem 0 0; counter-increment: step; }
.steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.steps img { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 0 .75rem -6px; }
.steps h3 { font-size: 1.05rem; margin: 0 0 .35rem; display: flex; gap: .5rem; align-items: baseline; }
.steps h3::before { content: counter(step); flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font-size: .8rem; display: inline-grid; place-items: center; transform: translateY(-1px); }
.steps p { color: var(--body); font-size: .93rem; margin: 0; max-width: 34ch; }
@media (max-width: 991px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.25rem; } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding-left: 0; border-left: 0; } .steps li + li { border-top: 1px solid var(--line); margin-top: 1.25rem; } .steps img { max-width: 180px; } }

/* inner page header: paper, not a navy gradient */
.page-hero { position: relative; background: var(--bg); color: var(--body); padding: 2rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url(../img/art/band.svg) repeat-x center / auto 14px; opacity: .7; }
.page-hero h1 { color: var(--ink); }
.page-hero .breadcrumb a { color: var(--brand); }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.ipo-hero { background: var(--bg); position: relative; }
.ipo-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url(../img/art/band.svg) repeat-x center / auto 14px; opacity: .6; }
.hero-stats > div { border-radius: 6px; }
.sub-total { background: var(--brand); border-color: var(--brand); }
.sub-total span { color: #CFDDF5; }
.apply-panel { border-top: 3px solid var(--brand); }
.anchor-nav { background: rgba(238, 242, 239, .96); }
.anchor-nav a { border-radius: 6px; }

/* tables and lists */
.ipo-table thead th { background: #F6F8FC; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ipo-table tbody tr:hover { background: #F7F9FD; }
.ipo-tile { border-radius: 10px; }
.tile-head .ipo-logo { border-radius: 8px; }
.ex-badge { background: transparent; border: 1px solid var(--rule); border-radius: 4px; font-weight: 600; }
.status-tabs { border-radius: 10px; }
.status-tabs a { border-radius: 6px; }
.status-tabs a.active { background: var(--tint); box-shadow: none; border-color: transparent; color: var(--navy); }
.type-toggle { border-radius: 8px; }
.type-toggle a { border-radius: 6px; }
.pill-tabs a, .year-pills a { border-radius: 6px; }
.tl-label { border-radius: 4px; font-weight: 600; font-size: .74rem; }
.tl-date { font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.ev-open { --ev: #127A3E; } .ev-close { --ev: #C2410C; } .ev-allotment { --ev: #7A3E9D; } .ev-listing { --ev: #1F4E9E; } .ev-refund { --ev: #5E6A82; } .ev-demat_credit { --ev: #2F6F8F; }
.cal-cell.today { background: #FFF1E6; box-shadow: inset 0 0 0 2px var(--marigold); }
.empty-state { padding: 2.4rem 1rem 2rem; }
.empty-state i { display: none; }
.empty-state::before { content: ""; display: block; width: 84px; height: 84px; margin: 0 auto .9rem; background: url(../img/art/rosette.svg) center / contain no-repeat; opacity: .55; }

/* brokers */
.broker-card { border-radius: 10px; }
.broker-logo { border-radius: 8px; background: var(--tint); color: var(--brand); }

/* footer */
.site-footer { position: relative; background: var(--navy); color: #AEBEDA; margin-top: 0; padding-top: 3.4rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: url(../img/art/band-light.svg) repeat-x center / auto 22px; }
.site-footer h6 { color: #fff; font-size: .95rem; font-weight: 700; }
.site-footer a { color: #DCE6F7; }
.footer-legal strong { color: #DCE6F7; }
.social a { border-radius: 6px; }
.social a:hover { background: var(--brand); }
.app-badges a { border-radius: 6px; }

/* login & account */
.login-card { border-radius: 10px; box-shadow: 7px 7px 0 var(--tint); border-color: #B9C8E0; }
.account-head { border-radius: 10px; box-shadow: none; }
.avatar-fallback, .member-btn { background: var(--tint); color: var(--brand); border-color: var(--tint); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* current IPO cards: ruled facts instead of boxes inside boxes */
.ipo-card { border-radius: 10px; gap: .8rem; }
.ipo-facts { background: none; padding: .7rem 0; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ipo-metrics { gap: 0; }
.metric { border: 0; border-radius: 0; padding: 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: .9rem; }
.metric-value { font-size: 1.15rem; }

.timeline .tl-dot { display: none; }
.timeline { padding: .25rem 1.1rem 1rem; }
@media (max-width: 991px) {
  .hero2::before { width: 420px; height: 420px; right: -250px; top: -230px; opacity: .45; }
  .board-seal { right: 6px; top: -30px; width: 96px; height: 96px; }
  .board-seal span { font-size: 1rem; }
}

.board-row .b-close.done { color: var(--muted); font-weight: 600; }

/* =====================================================================
   Motion. One opening sequence on the home page, slow ambient drift,
   ink-drawn illustrations on scroll, and feedback on hover and open.
   Everything is switched off for prefers-reduced-motion.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-stamp: cubic-bezier(.3, 1.6, .5, 1); }

/* ticker */
.ticker { background: var(--navy); color: #CFDDF3; font-size: .84rem; overflow: hidden; position: relative; border-bottom: 1px solid #081B38; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--navy), transparent); }
.ticker-track { display: flex; width: max-content; animation: tick calc(var(--n) * 7s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list a { display: flex; align-items: center; gap: .55rem; padding: .5rem 1.6rem .5rem 0; margin-left: 1.6rem; color: #CFDDF3; white-space: nowrap; border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 1.6rem; margin-left: 0; }
.ticker-list a:hover { color: #fff; }
.ticker-list strong { color: #fff; font-weight: 700; }
.tk-state { font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; }
.tk-open { background: #1F8A55; color: #fff; }
.tk-wait { background: rgba(255, 255, 255, .12); color: #FFC58F; }
.tk-listed { background: rgba(255, 255, 255, .12); color: #CFDDF3; }
.tk-fact b { font-weight: 700; color: #fff; }
.tk-fact b.up { color: #7EE0A8 !important; }
.tk-fact b.down { color: #FF9C8F !important; }
@keyframes tick { to { transform: translateX(-50%); } }

/* home: stacked certificate sheets */
.board-wrap { position: relative; }
.board-sheet { position: absolute; inset: 0; background: #fff; border: 1px solid #C8D3E6; border-radius: 10px; transform: rotate(2.2deg) translate(8px, 10px); }
.board { box-shadow: 0 1px 0 rgba(17, 28, 51, .04), 0 18px 40px -18px rgba(17, 28, 51, .25); }

/* ambient drift */
.hero2::before { animation: spin 240s linear infinite; }
.hero2 > .band { animation: drift 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { background-position: 240px center; } }

/* opening sequence (only when JS has marked the page) */
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes boardIn { from { opacity: 0; transform: translateY(28px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: rotate(0) translate(0, 0); } to { opacity: 1; transform: rotate(2.2deg) translate(8px, 10px); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.1) rotate(-40deg); } 55% { opacity: 1; transform: scale(.9) rotate(-5deg); } 75% { transform: scale(1.04) rotate(-9deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes thud { 0%, 100% { transform: none; } 40% { transform: translateY(2px); } }
.js .hero2 [data-split] .w { display: inline-block; white-space: pre; animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--w) * 70ms + 80ms); }
.js .hero2-date, .js .hero2 .lead, .js .hero2 .hero-search, .js .hero2-links { animation: fadeUp .7s var(--ease-out) both; }
.js .hero2-date { animation-delay: 0s; }
.js .hero2 .lead { animation-delay: .38s; }
.js .hero2 .hero-search { animation-delay: .5s; }
.js .hero2-links { animation-delay: .6s; }
.js .board { animation: boardIn .9s var(--ease-out) .3s both, thud .25s ease-out 1.48s; }
.js .board-sheet { animation: sheetIn 1s var(--ease-out) .55s both; }
.js .board-rows li { animation: fadeUp .55s var(--ease-out) both; animation-delay: calc(.75s + var(--i, 0) * 90ms); }
.js .board-seal { animation: stamp .55s var(--ease-stamp) 1.3s both; }
.js .page-hero h1, .js .listing-head h1, .js .ipo-hero h1 { animation: fadeUp .6s var(--ease-out) both; }

/* status: open issues breathe */
.status-open::before, .tk-open::before { animation: pulse 2s ease-out infinite; }
.tk-open::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 122, 62, .55); } 70% { box-shadow: 0 0 0 7px rgba(18, 122, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 122, 62, 0); } }

/* illustrations draw in when scrolled to */
.step-art { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 0 .75rem -6px; overflow: visible; }
.js [data-reveal] .step-art .ink * { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.5s var(--ease-out), fill-opacity .6s ease .9s; }
.js [data-reveal] .step-art .ink text { opacity: 0; transition: opacity .5s ease 1.1s; }
.js [data-reveal] .step-art .ring { opacity: 0; transform-origin: 50% 52%; transform: rotate(-40deg) scale(.9); transition: opacity 1s ease, transform 1.6s var(--ease-out); }
.js [data-reveal] li:nth-child(2) .step-art * { transition-delay: .15s; }
.js [data-reveal] li:nth-child(3) .step-art * { transition-delay: .3s; }
.js [data-reveal] li:nth-child(4) .step-art * { transition-delay: .45s; }
.js [data-reveal].in .step-art .ink * { stroke-dashoffset: 0; fill-opacity: 1; }
.js [data-reveal].in .step-art .ink text { opacity: 1; }
.js [data-reveal].in .step-art .ring { opacity: 1; transform: none; }
.js [data-reveal] h3, .js [data-reveal] p { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease-out); }
.js [data-reveal].in h3, .js [data-reveal].in p { opacity: 1; transform: none; transition-delay: .5s; }

/* feedback on hover and open */
.ipo-card, .ipo-tile, .broker-card, .board-row, .board-foot a, .list-row, .mega-item, .status-tabs a, .btn, .hero2-links a, .link-arrow { transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out), background-color .2s, color .2s, text-decoration-color .2s; }
.ipo-card:hover, .ipo-tile:hover, .broker-card:hover { transform: translateY(-3px); border-color: #A6BCE0; box-shadow: 0 14px 30px -16px rgba(17, 28, 51, .35); }
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(31, 78, 158, .6); }
.btn-brand:active { transform: translateY(0); box-shadow: none; }
.board-row { position: relative; }
.board-row::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 3px; border-radius: 2px; background: var(--brand); transform: scaleY(0); transition: transform .25s var(--ease-out); }
.board-row:hover::before { transform: scaleY(1); }
.dropdown-menu.show { animation: menuIn .18s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(17, 28, 51, .35); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; width: auto; }
  .ticker-list[aria-hidden] { display: none; }
  .hero2::before, .hero2 > .band, .status-open::before, .tk-open::before { animation: none !important; }
  .js .hero2 [data-split] .w, .js .hero2-date, .js .hero2 .lead, .js .hero2 .hero-search, .js .hero2-links, .js .board, .js .board-sheet, .js .board-rows li, .js .board-seal, .js .page-hero h1, .js .listing-head h1, .js .ipo-hero h1 { animation: none !important; }
  .js .board-seal { transform: rotate(-8deg); }
  .js [data-reveal] *, .js [data-reveal] .step-art * { transition: none !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; opacity: 1 !important; transform: none !important; }
  .ipo-card:hover, .ipo-tile:hover, .broker-card:hover, .btn-brand:hover { transform: none; }
}

/* ---------- IPO application form builder ---------- */
.pf-builder-wrap { padding-top: 2rem; }
.pf-issue { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.pf-issue-label { color: var(--muted); font-size: .85rem; }
.pf-issue h2 { font-size: 1.35rem; margin: .1rem 0 .25rem; }
.pf-issue p { margin: 0; color: var(--body); }
.pf-warn-inline { color: #C2410C !important; font-size: .88rem; margin-top: .35rem !important; }
.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.pf-side { position: sticky; top: 84px; }
@media (max-width: 991px) { .pf-layout { grid-template-columns: 1fr; } .pf-side { position: static; } }
.pf-card { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.25rem 1.2rem; margin: 0 0 1rem; transition: border-color .2s; }
.pf-card.has-errors { border-color: #E3B4AE; }
.pf-card legend { float: none; width: auto; font-size: 1.1rem; font-weight: 800; color: var(--ink); margin: 0 0 .6rem; padding: 0; display: flex; align-items: center; gap: .55rem; }
.pf-num { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; display: inline-grid; place-items: center; }
.pf-remove { position: absolute; right: .75rem; top: .75rem; border: 0; background: none; color: var(--muted); padding: .25rem .4rem; border-radius: 6px; }
.pf-remove:hover { background: #FBEAE7; color: var(--down); }
.pf-card h3 { font-size: .95rem; font-weight: 700; margin: 1.1rem 0 .5rem; color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .9rem; }
.pf-span2 { grid-column: span 2; }
@media (max-width: 575px) { .pf-grid { grid-template-columns: 1fr; } .pf-span2 { grid-column: auto; } }
.pf-f { display: flex; flex-direction: column; gap: .25rem; }
.pf-f[hidden] { display: none; }
.pf-f span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.pf-f small { font-weight: 400; }
.pf-f input { border: 1px solid #CBD3E2; border-radius: 6px; padding: .5rem .65rem; font-size: .98rem; color: var(--ink); background: #fff; }
.pf-f input:focus, .pf-bids input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 78, 158, .15); }
.pf-caps { text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.pf-seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: .65rem; }
.pf-seg label { padding: .35rem .85rem; border-radius: 6px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--body); }
.pf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pf-seg label:has(input:checked) { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(17, 28, 51, .12); }
.pf-seg label:has(input:focus-visible) { outline: 2px solid var(--brand); }
.pf-cat { max-width: 420px; }
.pf-cat-note { color: var(--muted); font-size: .86rem; margin: .35rem 0 0; }
.pf-bids { width: 100%; font-size: .92rem; }
.pf-bids th { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 .4rem .35rem 0; }
.pf-bids td { padding: .3rem .4rem .3rem 0; vertical-align: middle; }
.pf-bids td:first-child { width: 3.5rem; color: var(--muted); }
.pf-bids input[name="lots"] { width: 5.5rem; }
.pf-price { display: flex; align-items: center; gap: .6rem; }
.pf-price input[type="number"] { width: 7rem; }
.pf-price input[type="number"]:disabled { background: var(--bg); color: var(--muted); }
.pf-cut { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; white-space: nowrap; }
.pf-cut:has(input:disabled) { opacity: .45; }
.pf-amt { font-weight: 700; color: var(--ink); }
.pf-link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; margin-top: .4rem; }
.pf-link[hidden] { display: none; }
.pf-msgs { list-style: none; padding: 0; margin: .9rem 0 0; }
.pf-msgs li { color: var(--down); font-size: .87rem; padding-left: 1.2rem; position: relative; margin-top: .2rem; }
.pf-msgs li::before { content: "!"; position: absolute; left: 0; top: .1rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--down); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
.pf-summary { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: .75rem; }
.pf-summary h3 { font-size: 1rem; margin: 0 0 .5rem; }
.pf-summary ul { list-style: none; padding: 0; margin: 0; }
.pf-summary li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.pf-summary li small { display: block; color: var(--muted); font-size: .78rem; }
.pf-total { display: flex; justify-content: space-between; padding-top: .6rem; font-weight: 700; }
.pf-total strong { font-size: 1.2rem; color: var(--brand); }
.pf-state { margin: .6rem 0 0; font-size: .86rem; font-weight: 600; }
.pf-state.ok { color: var(--up); }
.pf-state.bad { color: var(--down); }
.pf-current td { background: #FFF4EC !important; }
.pf-howto { padding-left: 1.2rem; }
.pf-howto li { margin-bottom: .6rem; }
.pf-faq details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.pf-faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pf-faq summary::-webkit-details-marker { display: none; }
.pf-faq summary::after { content: "+"; color: var(--brand); font-weight: 800; transition: transform .2s; }
.pf-faq details[open] summary::after { transform: rotate(45deg); }
.pf-faq p { margin: .5rem 0 0; color: var(--body); max-width: 75ch; }
.pf-print { display: none; }

/* printed form: plain black on white, one applicant per A4 page */
@media print {
  @page { size: A4; margin: 12mm; }
  body.pf-printing > *:not(main) { display: none !important; }
  body.pf-printing main > *:not(#pfPrintArea) { display: none !important; }
  body.pf-printing .pf-print { display: block; }
  body.pf-printing { background: #fff; }
}
.pf-page { color: #000; font-family: "Schibsted Grotesk", Arial, sans-serif; font-size: 10.5pt; line-height: 1.35; page-break-after: always; break-after: page; border: 1.5pt solid #000; padding: 8mm; }
.pf-page:last-child { page-break-after: auto; break-after: auto; }
.pf-page .ph { display: grid; grid-template-columns: 1fr auto; gap: 2mm 6mm; border-bottom: 1.5pt solid #000; padding-bottom: 3mm; margin-bottom: 3mm; }
.pf-page h1 { font-size: 15pt; margin: 0; color: #000; }
.pf-page .ph p { margin: 1mm 0 0; }
.pf-page .pmeta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 1mm 5mm; font-size: 9.5pt; }
.pf-page .pno { grid-row: 1 / 3; grid-column: 2; border: 1pt solid #000; padding: 2mm 3mm; font-size: 9pt; min-width: 48mm; }
.pf-page .pno span { display: block; height: 7mm; border-bottom: .75pt dotted #000; }
.pf-page .pno small { font-size: 7.5pt; }
.pf-page section { border-bottom: .75pt solid #000; padding: 2.5mm 0; }
.pf-page h2 { font-size: 10.5pt; margin: 0 0 1.8mm; color: #000; }
.pf-page .pr { display: flex; align-items: center; flex-wrap: wrap; gap: 2mm; margin: 1.5mm 0; }
.pf-page .pr b { min-width: 22mm; }
.pf-page .pr b.ml { min-width: 0; margin-left: 6mm; }
.pf-page .pl { flex: 1; border-bottom: .75pt solid #000; min-height: 5.5mm; padding: 0 1mm; font-weight: 600; }
.pf-page .pb { display: inline-flex; }
.pf-page .pb span { width: 5.2mm; height: 6.2mm; border: .75pt solid #000; margin-left: -.75pt; display: inline-grid; place-items: center; font-weight: 700; font-size: 10pt; }
.pf-page .pt { width: 4.2mm; height: 4.2mm; border: .75pt solid #000; display: inline-grid; place-items: center; margin-right: 1.5mm; font-size: 9pt; line-height: 1; vertical-align: -1mm; }
.pf-page .pcs { display: flex; flex-wrap: wrap; gap: 2mm 6mm; }
.pf-page .pbt { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.pf-page .pbt th, .pf-page .pbt td { border: .75pt solid #000; padding: 1.4mm 2mm; text-align: left; }
.pf-page .pbt td.c { text-align: center; }
.pf-page .pbt td { height: 6mm; }
.pf-page .pamt { margin: 2mm 0 0; }
.pf-page .psign p { font-size: 8.5pt; margin: 0 0 3mm; }
.pf-page .psg { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 5mm; font-size: 8.5pt; }
.pf-page .psg span { display: block; height: 11mm; border-bottom: .75pt solid #000; }
.pf-page .pcut { text-align: center; font-size: 8pt; margin: 4mm 0 2mm; border-top: 1pt dashed #000; padding-top: 1mm; }
.pf-page .pack { display: flex; flex-wrap: wrap; gap: 1.5mm 6mm; font-size: 9pt; border: .75pt solid #000; padding: 2.5mm; }
.pf-page .pack span:last-child { margin-left: auto; min-width: 50mm; border-top: .75pt solid #000; padding-top: 6mm; text-align: center; font-size: 8pt; }
.pf-page .pf { font-size: 7.5pt; margin-top: 3mm; color: #333; }

/* ---------- Allotment checker ---------- */
.al-wrap { padding-top: 2rem; }
.al-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 991px) { .al-layout { grid-template-columns: 1fr; } }
.al-pick { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: .6rem .7rem; margin-bottom: 1rem; }
.al-pick label { font-weight: 700; color: var(--ink); padding-left: .3rem; }
.al-pick select { flex: 1; min-width: 0; }
.al-issue { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.al-issue-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.al-issue h2 { font-size: 1.3rem; margin: 0; }
.al-issue h2 a { color: var(--ink); }
.al-issue-head p { margin: .15rem 0 0; color: var(--muted); }
.al-flag { font-weight: 700; font-size: .88rem; padding: .35rem .7rem; border-radius: 6px; white-space: nowrap; }
.al-flag.out { background: #E2F3E9; color: var(--up); }
.al-flag.wait { background: #FFEBDB; color: #9A3412; }
.al-dates { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.al-dates::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--line); }
.al-dates li { position: relative; padding-top: 1.2rem; font-size: .85rem; }
.al-dates li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #B8C3D6; }
.al-dates li.done::before { background: var(--brand); border-color: var(--brand); }
.al-dates li.now::before { background: var(--marigold); border-color: var(--marigold); box-shadow: 0 0 0 4px rgba(242, 113, 28, .2); }
.al-dates span { display: block; color: var(--muted); }
.al-dates strong { color: var(--ink); font-weight: 700; }
@media (max-width: 575px) { .al-dates { grid-template-columns: 1fr; gap: .6rem; } .al-dates::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; } .al-dates li { padding: 0 0 0 1.6rem; } }
.al-lock { display: flex; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid #B9C8E0; border-radius: 10px; padding: 1.4rem; box-shadow: 0 18px 40px -24px rgba(17, 28, 51, .35); }
.al-lock img { flex-shrink: 0; }
.al-lock h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.al-lock p { color: var(--body); margin: 0 0 .9rem; max-width: 60ch; }
@media (max-width: 575px) { .al-lock { flex-direction: column; align-items: flex-start; } }
.al-people { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.25rem; }
.al-people h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.al-people-head { display: flex; justify-content: space-between; align-items: baseline; }
.al-people-head a { font-weight: 600; font-size: .9rem; }
.al-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; padding: .9rem 0; border-top: 1px dashed var(--line); }
.al-id strong { display: block; color: var(--ink); }
.al-id span { color: var(--muted); font-size: .88rem; }
.al-acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.al-rec { grid-column: 1 / -1; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.al-rec select { width: auto; }
.al-shares { width: 7rem; }
@media (max-width: 575px) { .al-person { grid-template-columns: 1fr; } .al-acts { justify-content: flex-start; } }
.al-res { display: inline-block; font-style: normal; font-weight: 700; font-size: .82rem; margin-top: .3rem; padding: .15rem .5rem; border-radius: 4px; }
.al-res.allotted { background: #E2F3E9; color: var(--up); }
.al-res.not_allotted { background: #FBEAE7; color: var(--down); }
.al-res.applied { background: var(--bg); color: var(--muted); }
.al-add { margin-top: .9rem; border-top: 1px dashed var(--line); padding-top: .8rem; }
.al-add summary { font-weight: 700; color: var(--brand); cursor: pointer; }
.al-add[open] summary { margin-bottom: .8rem; }
.al-quick { display: flex; gap: .5rem; flex-wrap: wrap; }
.al-quick input { max-width: 200px; }
.al-side h3 { font-size: 1rem; margin: 0 0 .6rem; }
.al-way { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: .8rem .95rem; margin-bottom: .6rem; color: var(--body); transition: border-color .2s, transform .25s var(--ease-out); }
.al-way:hover { border-color: var(--brand); color: var(--body); transform: translateY(-2px); }
.al-way strong { display: block; color: var(--ink); }
.al-way span { font-size: .86rem; }
.al-steps { padding-left: 1.2rem; }
.al-steps li { margin-bottom: .6rem; }
.al-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.al-two h3 { font-size: 1rem; }
.al-two p { color: var(--body); font-size: .93rem; }
@media (max-width: 575px) { .al-two { grid-template-columns: 1fr; } }
.btn.copied { background: var(--up); border-color: var(--up); color: #fff; }
.pf-from { display: flex; align-items: center; gap: .5rem; margin: -.2rem 0 .7rem; max-width: 420px; }
.pf-from[hidden] { display: none; }
.pf-from span { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.inv-form .form-select { border-radius: 6px; }
.h4, .h5 { font-weight: 800; }

/* ---------- Login and profile dialogs ---------- */
.auth-modal .modal-dialog { max-width: 760px; }
.auth-modal .modal-content { display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(8, 27, 56, .45); position: relative; }
.auth-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.auth-art { position: relative; background: var(--navy); color: #fff; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 100%; }
.auth-art::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; bottom: -170px; background: url(../img/art/rosette-faint.svg) center / contain no-repeat; filter: invert(1) brightness(2); opacity: .35; animation: spin 240s linear infinite; }
.auth-art::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: url(../img/art/band-light.svg) repeat-x center / auto 18px; }
.auth-art > * { position: relative; }
.auth-art img { border-radius: 10px; margin-top: .6rem; }
.auth-art-title { font-size: 1.45rem; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 2rem 0 0; }
.auth-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .25); display: grid; place-items: center; background: #1F4E9E; font-weight: 800; font-size: 1.3rem; margin-top: .6rem; }
.auth-body { padding: 2rem 2rem 1.6rem; }
.auth-body h2 { font-size: 1.5rem; margin: 0 0 .3rem; padding-right: 2rem; }
.auth-lead { color: var(--muted); margin-bottom: 1rem; }
.auth-perks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.auth-perks li { display: flex; gap: .65rem; align-items: center; padding: .45rem 0; color: var(--body); border-bottom: 1px dashed var(--line); }
.auth-perks i { color: var(--brand); font-size: 1.05rem; }
.auth-body .btn-google { border-radius: 8px; padding: .8rem 1rem; transition: box-shadow .2s, transform .2s var(--ease-out); }
.auth-body .btn-google:hover { transform: translateY(-1px); }
.btn-google.busy { opacity: .6; pointer-events: none; }
.auth-wait { margin: .8rem 0 0; font-size: .88rem; color: var(--body); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.auth-wait[hidden], .auth-error[hidden] { display: none; }
.auth-error { margin: .8rem 0 0; color: var(--down); font-size: .9rem; font-weight: 600; }
.auth-legal { font-size: .78rem; color: var(--muted); margin: 1.1rem 0 0; }
.auth-phone { display: flex; align-items: stretch; border: 1px solid #CBD3E2; border-radius: 6px; overflow: hidden; }
.auth-phone b { background: var(--bg); padding: .5rem .65rem; font-weight: 700; color: var(--ink); border-right: 1px solid #CBD3E2; }
.auth-phone input { border: 0 !important; flex: 1; min-width: 0; }
.auth-body input[readonly] { background: var(--bg); color: var(--muted); }
.auth-actions { display: flex; align-items: center; gap: .5rem; margin-top: 1.2rem; }
.auth-actions .btn-brand { padding: .55rem 1.6rem; }
.auth-actions .btn-link { color: var(--muted); text-decoration: none; }
.modal.auth-modal.fade .modal-dialog { transform: translateY(18px) scale(.98); transition: transform .35s var(--ease-out); }
.modal.auth-modal.show .modal-dialog { transform: none; }
@media (max-width: 767px) {
  .auth-modal .modal-content { grid-template-columns: 1fr; }
  .auth-art { min-height: 0; padding: 1.2rem 1.4rem 1rem; flex-direction: row; align-items: center; gap: .9rem; justify-content: flex-start; }
  .auth-art-title { margin: .6rem 0 0; font-size: 1.1rem; }
  .auth-art::before { width: 260px; height: 260px; left: auto; right: -110px; bottom: -150px; }
  .auth-body { padding: 1.4rem 1.3rem 1.3rem; }
  .auth-close { filter: invert(1); }
}
@media (prefers-reduced-motion: reduce) { .auth-art::before { animation: none; } .modal.auth-modal.fade .modal-dialog { transition: none; } }

/* ---------- Blog ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.blog-cats a { padding: .38rem .85rem; border-radius: 6px; border: 1px solid var(--rule); background: #fff; color: var(--body); font-weight: 600; font-size: .9rem; }
.blog-cats a small { color: var(--muted); font-weight: 500; margin-left: .2rem; }
.blog-cats a.active, .blog-cats a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-cats a.active small, .blog-cats a:hover small { color: #AEBEDA; }
.blog-live { padding-bottom: 1.5rem; }
.post-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.post-row > * { scroll-snap-align: start; }
.post-featured { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.1rem; }
.post-featured .post-lg { grid-row: span 2; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1.1rem; }
.post-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .post-grid, .post-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-featured { grid-template-columns: 1fr; } .post-featured .post-lg { grid-row: auto; } }
@media (max-width: 575px) { .post-grid, .post-grid-4 { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: #A6BCE0; box-shadow: 0 14px 30px -18px rgba(17, 28, 51, .4); }
.post-md .post-body, .post-sm .post-body { flex: 1; }
.post-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; overflow: hidden; color: #fff; isolation: isolate; }
.post-lg .post-cover { aspect-ratio: 16 / 8; }
.post-sm .post-cover { aspect-ratio: 16 / 6; }
.post-cover::before { content: ""; position: absolute; inset: -30%; background: url(../img/art/rosette-faint.svg) center / 70% no-repeat; filter: invert(1) brightness(2); opacity: .28; z-index: -1; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-cover::before { transform: rotate(25deg) scale(1.05); }
.post-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: url(../img/art/band-light.svg) repeat-x center / auto 12px; opacity: .8; }
.post-cover span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .15); padding: 0 1rem; text-align: center; line-height: 1; }
.post-lg .post-cover span { font-size: clamp(2rem, 5vw, 3.4rem); }
.post-cover img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; }
.cover-ipo-review { background: linear-gradient(160deg, #0B2447, #1F4E9E); }
.cover-ipo-guide { background: linear-gradient(160deg, #1A3F7A, #2A5FB8); }
.cover-ipo-guide span { color: #FFC58F; }
.cover-market-news { background: linear-gradient(160deg, #22313F, #3A5063); }
.cover-none { background: #36425A; }
.cover-flag { position: absolute; left: .7rem; top: .7rem; font-style: normal; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.cover-flag.open { background: #1F8A55; color: #fff; }
.post-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.post-cat { font-size: .78rem; font-weight: 700; color: var(--brand); }
.post-body h3 { font-size: 1.06rem; line-height: 1.3; margin: 0; }
.post-lg .post-body h3 { font-size: 1.45rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { color: var(--body); font-size: .92rem; margin: 0; }
.post-meta { color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: .3rem; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2rem; font-weight: 600; }
.blog-pager span { color: var(--muted); font-weight: 500; }

/* article */
.article-head { position: relative; background: var(--bg); padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.article-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url(../img/art/band.svg) repeat-x center / auto 14px; opacity: .7; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -.025em; max-width: 26ch; margin: .2rem 0 .8rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--muted); margin: 0; font-size: .92rem; }
.article-meta span:first-child { color: var(--ink); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 3rem; padding-top: 2.2rem; padding-bottom: 3rem; }
@media (max-width: 991px) { .article-layout { grid-template-columns: 1fr; gap: 1.5rem; } .article-side { order: 2; } }
.article-side { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.toc { border-left: 2px solid var(--line); padding-left: 1rem; }
.toc strong { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: .3rem 0; }
.toc a { color: var(--body); font-size: .9rem; line-height: 1.35; display: block; }
.toc a:hover { color: var(--brand); }
.article-ipo { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.article-ipo > a strong { color: var(--ink); font-size: 1rem; }
.article-ipo dl { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin: .2rem 0 .4rem; }
.article-ipo dt { font-size: .75rem; color: var(--muted); font-weight: 500; }
.article-ipo dd { margin: 0; font-weight: 700; color: var(--ink); }
.article-ipo small { color: var(--muted); font-size: .72rem; }
.article-body { font-size: 1.05rem; line-height: 1.72; color: var(--body); }
.article-body .lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.article-body h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { text-decoration: underline; text-decoration-color: rgba(31, 78, 158, .35); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--brand); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.article-body .table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--rule); border-radius: 8px; }
.article-body .table-wrap table { margin: 0; }
.article-body th { background: #F6F8FC; text-align: left; font-weight: 600; color: var(--muted); font-size: .85rem; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.article-body td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.article-body td.n { text-align: right; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body > table { border: 1px solid var(--rule); }
.article-body .note { font-size: .88rem; color: var(--muted); background: #F6F8FC; border-left: 3px solid var(--rule); padding: .6rem .9rem; border-radius: 0 6px 6px 0; }
.article-body .quick-links { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: 8px; padding: .9rem 1.1rem; margin: 1.2rem 0; }
.article-body .quick-links ul { margin: .4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
@media (max-width: 575px) { .article-body .quick-links ul { grid-template-columns: 1fr; } }
.article-body .faq details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.article-body .faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.article-body .faq p { margin: .4rem 0 0; }

.post-featured .post-lg .post-cover { aspect-ratio: 16 / 9; }
.post-featured .post-lg .post-cover:not(.has-img) { flex: 1; aspect-ratio: auto; min-height: 240px; }
.post-featured .post-lg .post-body { flex: 1; justify-content: center; }
.article-body, .article-side { min-width: 0; }
@media (max-width: 991px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Orange and blue: blue for text, links and structure; orange for actions.
   ===================================================================== */
:root { --cta: #D9480F; --cta-dark: color-mix(in srgb, var(--cta) 82%, #000); --orange: #F2711C; --orange-soft: #FFF1E6; }
.btn-brand, .btn-promo, .btn-login { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-brand:hover, .btn-brand:focus, .btn-promo:hover, .btn-login:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; box-shadow: 0 6px 14px -6px rgba(217, 72, 15, .55); }
.btn-brand:disabled { background: var(--cta); opacity: .6; }
.type-toggle a.active, .pill-tabs a.active, .year-pills a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero2-date, .post-cat, .pf-issue-label { color: var(--cta); }
.hero2 h1 { color: var(--navy); }
.main-nav a.active, .main-nav .dropdown > a.active { color: var(--cta); box-shadow: inset 0 -2px 0 var(--cta); }
.hero2-links a:hover, .link-arrow:hover { color: var(--cta); text-decoration-color: var(--cta); }
.board-seal span, .board-seal small { color: var(--navy); }
.board-row::before { background: var(--cta); }
.board-foot a:hover strong { color: var(--cta); }
.pf-issue, .apply-panel, .quick-links { border-left-color: var(--cta) !important; }
.apply-panel { border-top-color: var(--cta); }
.steps h3::before { border-color: var(--cta); color: var(--cta); }
.pf-num { background: var(--cta); }
.blog-cats a.active, .blog-cats a:hover { background: var(--brand); border-color: var(--brand); }
.ticker { border-bottom-color: var(--orange); box-shadow: inset 0 -2px 0 var(--orange); }
.tk-wait { color: #FFC58F; }
.site-footer { border-top: 3px solid var(--orange); }
.announce { background: var(--cta); color: #fff; }
.announce a { color: #fff; text-decoration: underline; }
.status-upcoming { color: #6D3FC0; }
.cover-ipo-review { background: linear-gradient(160deg, #0B2447, #1F4E9E); }
.cover-ipo-guide { background: linear-gradient(160deg, #B83C0C, #F2711C); }
.cover-ipo-guide span { color: #fff; }
.al-flag.wait { background: var(--orange-soft); color: #9A3412; }
.auth-art { background: linear-gradient(170deg, #0B2447 60%, #133A6B); }

/* blog images */
.post-cover.has-img { background: #F4F6FB; }
.post-cover.has-img::before, .post-cover.has-img::after { display: none; }
.post-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; padding: 0; background: none; transition: transform .6s var(--ease-out); }
.post-card:hover .cover-img { transform: scale(1.04); }
.post-cover .cover-logo { position: absolute; left: .8rem; bottom: 1.4rem; width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; box-shadow: 0 4px 14px rgba(17, 28, 51, .2); }
.post-cover .cover-mono { position: absolute; left: .8rem; bottom: 1.4rem; font-size: 1rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 0; text-shadow: none; }
.post-card .cover-flag { z-index: 1; }
.article-head .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.article-cover { position: relative; margin: 0; width: 400px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(17, 28, 51, .45); background: #fff; }
.article-cover img:first-child { display: block; width: 100%; height: auto; }
.article-cover .cover-logo { position: absolute; left: 12px; bottom: 22px; width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 4px 14px rgba(17, 28, 51, .2); }
@media (max-width: 991px) { .article-head .container { grid-template-columns: 1fr; gap: 1.2rem; } .article-cover { width: 100%; max-width: 560px; } }

/* ---------- one IPO's GMP page ---------- */
.gmp-one { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.gmp-side { position: sticky; top: 84px; }
.gmp-side .article-ipo .btn + .btn { margin-top: .1rem; }
@media (max-width: 991px) { .gmp-one { grid-template-columns: minmax(0, 1fr); } .gmp-side { position: static; } }
.gmp-stats { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: .8rem; }
.gmp-stats > div { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.gmp-stats span { font-size: .82rem; color: var(--muted); }
.gmp-stats strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.gmp-stats .gmp-big { border-left: 4px solid var(--cta); }
.gmp-stats .gmp-big strong { font-size: 2.1rem; line-height: 1.1; }
.gmp-stats small { color: var(--muted); font-size: .78rem; }
@media (max-width: 767px) { .gmp-stats { grid-template-columns: 1fr 1fr; } .gmp-stats .gmp-big { grid-column: 1 / -1; } }
.gmp-vs { margin-top: 1rem; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1.1rem; }
.gmp-vs p { margin: .2rem 0 0; color: var(--body); }

/* logos: real logos on white, otherwise a coloured monogram */
.ipo-logo, .broker-logo { --mono: #1F4E9E; }
.ipo-logo:not(:has(img)), .broker-logo:not(:has(img)) { background: var(--mono); color: #fff; border-color: transparent; font-weight: 800; letter-spacing: .02em; }
.ipo-logo:not(:has(img)) span { color: #fff; }
.ipo-logo:has(img), .broker-logo:has(img) { background: #fff; }
.ipo-logo img, .broker-logo img { object-fit: contain; }
/* header stats fill the row whether or not GMP is shown */
@media (min-width: 992px) { .hero-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }

/* ---------------- Financial calculators ---------------- */
.calc-hero { padding-bottom: 1.6rem; }
.calc-title { display: flex; align-items: center; gap: .8rem; margin-top: .35rem; }
.calc-title h1 { margin: 0; }
.calc-ico { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--brand); }
.calc-intro { max-width: 760px; margin-top: .6rem; }
.calc-intro p { margin: 0 0 .4rem; color: var(--body, #3B4660); font-size: 1.02rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.25rem; align-items: start; }
@media (max-width: 991px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-in, .calc-out-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; }
.calc-out-wrap { position: sticky; top: 84px; border-top: 3px solid var(--cta, #D9480F); }
@media (max-width: 991px) { .calc-out-wrap { position: static; } }
.calc-panel-title { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; font-weight: 800; margin: 0 0 1rem; }
.calc-panel-title span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; color: #fff; background: var(--brand); }
.calc-field { margin-bottom: .95rem; }
.calc-field > label, .calc-field .form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.calc-field .form-control, .calc-field .form-select { font-variant-numeric: tabular-nums; min-height: 44px; }
.calc-ig .input-group-text { background: #F3F5FA; color: var(--muted); min-width: 42px; justify-content: center; }
.calc-help { display: block; color: var(--muted); font-size: .8rem; margin-top: .25rem; line-height: 1.35; }
.calc-err { display: block; color: var(--down, #B42318); font-size: .8rem; font-weight: 600; margin-top: .25rem; }
.calc-err[hidden], .calc-field[hidden] { display: none; }
.calc-ipo { padding: .8rem .85rem; background: #F3F6FC; border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); border-radius: var(--radius); }
.calc-actions { display: flex; gap: .6rem; margin-top: 1.1rem; }
.calc-actions .btn { min-height: 44px; padding-inline: 1.1rem; font-weight: 700; }
.calc-summary { font-size: 1.12rem; line-height: 1.45; font-weight: 600; color: var(--ink); margin: 0 0 1rem; }
.calc-summary-err { color: var(--muted); font-weight: 500; font-size: 1rem; }
.calc-warn { background: #FFF6E5; color: #7A4A00; border-radius: 6px; padding: .55rem .75rem; font-size: .88rem; }
.calc-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.calc-item { background: #F6F8FC; border-radius: 6px; padding: .6rem .75rem; min-width: 0; }
.calc-item dt { font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; }
.calc-item dd { margin: 0; font-weight: 800; font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-item dd small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.calc-item.is-em { grid-column: 1 / -1; background: var(--navy, #0B2447); }
.calc-item.is-em dt { color: #A9C4F0; }
.calc-item.is-em dd { color: #fff; font-size: 1.85rem; letter-spacing: -.01em; }
.calc-item.is-em dd small { color: #C9D3E3; font-size: .82rem; }
.calc-item.is-up dd { color: var(--up, #127A3E); }
.calc-item.is-down dd { color: var(--down, #B42318); }
.calc-note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: .7rem; }
.calc-donut { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 .6rem; }
.calc-donut svg { width: 120px; height: 120px; flex: none; }
.calc-donut ul, .calc-legend { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: grid; gap: .3rem; }
.calc-donut li, .calc-legend li { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.calc-donut li b { font-variant-numeric: tabular-nums; }
.calc-donut li span { color: var(--muted); }
.calc-donut i, .calc-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.calc-bars svg { width: 100%; height: auto; max-height: 200px; }
.calc-bars text { font-size: 9px; fill: var(--muted); }
.calc-legend { grid-auto-flow: column; justify-content: start; gap: 1rem; margin-top: .3rem; }
.calc-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: 0; }
.calc-working { margin-top: .6rem; font-size: .88rem; }
.calc-working summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.calc-working ol { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.calc-table { margin-top: 1.25rem; }
.calc-tbl { font-variant-numeric: tabular-nums; font-size: .88rem; margin: 0; }
.calc-tbl td, .calc-tbl th { white-space: nowrap; text-align: right; }
.calc-tbl th:first-child { text-align: left; }
.calc-content h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .7rem; }
.calc-content p, .calc-content li { line-height: 1.6; }
.calc-formula code { display: inline-block; background: #F3F5FA; color: var(--ink); padding: .15rem .45rem; border-radius: 4px; font-size: .92rem; white-space: normal; }
.calc-ex-in { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; }
.calc-ex-in li { background: #F6F8FC; border-radius: 6px; padding: .45rem .65rem; font-size: .88rem; }
.calc-ex-in span { color: var(--muted); display: block; font-size: .78rem; }
.calc-steps { padding-left: 0; counter-reset: st; list-style: none; display: grid; gap: .55rem; }
.calc-steps li { counter-increment: st; position: relative; padding-left: 2.1rem; }
.calc-steps li::before { content: counter(st); position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cta, #D9480F); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.calc-glossary { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: .5rem 1rem; margin: 0; }
.calc-glossary dt { font-weight: 700; font-size: .92rem; }
.calc-glossary dd { margin: 0; color: var(--body, #3B4660); font-size: .92rem; }
@media (max-width: 575px) { .calc-glossary { grid-template-columns: 1fr; } .calc-glossary dd { margin-bottom: .4rem; } .calc-items { grid-template-columns: 1fr 1fr; } .calc-item.is-em dd { font-size: 1.5rem; } }
.calc-rates td { vertical-align: top; font-size: .88rem; }
.calc-faq details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.calc-faq details:last-child { border-bottom: 0; }
.calc-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.calc-faq summary::-webkit-details-marker { display: none; }
.calc-faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.calc-faq details[open] summary::after { content: "–"; }
.calc-faq p { margin: .5rem 0 0; }
.calc-disclaimer { margin-top: .5rem; }
.calc-side { position: sticky; top: 84px; }
.calc-links, .calc-cats, .calc-ipos { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.calc-links a { display: flex; gap: .65rem; padding: .55rem .4rem; border-radius: 6px; color: var(--ink); align-items: flex-start; }
.calc-links a:hover { background: #F3F6FC; }
.calc-links i { color: var(--brand); font-size: 1.1rem; margin-top: .1rem; }
.calc-links span { font-weight: 700; font-size: .92rem; }
.calc-links small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.calc-cats a { display: block; padding: .45rem .4rem; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.calc-cats a[aria-current] { background: #E6EDF9; color: var(--brand); }
.calc-cats i { color: var(--brand); margin-right: .35rem; }
.calc-ipos li { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; padding: .5rem 0; border-bottom: 1px solid #EEF1F7; font-size: .9rem; }
.calc-ipos li > a:first-child { font-weight: 700; color: var(--ink); }
.calc-ipos li > span { grid-column: 1; color: var(--muted); font-size: .8rem; }
.calc-use { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: .8rem; font-weight: 700; }
/* directory */
.calc-dir-hero .lead { color: var(--ink); font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; }
.calc-dir-sub { color: var(--muted); }
.calc-search { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .5rem .35rem 2.6rem; }
.calc-search > i { position: absolute; left: 1rem; color: var(--muted); }
.calc-search input { border: 0; box-shadow: none !important; min-height: 46px; font-size: 1rem; }
.calc-count { flex: none; font-size: .82rem; color: var(--muted); padding: 0 .6rem; }
.calc-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.4rem; }
.calc-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 600; }
.calc-chip:hover { border-color: var(--brand); color: var(--brand); }
.calc-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.calc-catgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 2rem; }
@media (max-width: 1199px) { .calc-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .calc-catgrid { grid-template-columns: 1fr 1fr; } }
.calc-catcard { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.calc-catcard:hover { border-color: var(--brand); }
.calc-catcard i { font-size: 1.4rem; color: var(--cta, #D9480F); }
.calc-catcard strong { font-size: .98rem; line-height: 1.25; }
.calc-catcard span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.calc-catcard em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--brand); margin-top: auto; }
.calc-block { margin-bottom: 2rem; scroll-margin-top: 90px; }
.calc-block h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.calc-block h3 i { color: var(--brand); }
.calc-all-title { font-size: 1.45rem; font-weight: 800; margin: 2.2rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.calc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 1199px) { .calc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .calc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .calc-cards { grid-template-columns: 1fr; } }
.calc-card { display: flex; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.calc-card[hidden] { display: none; }
.calc-card:hover { border-color: var(--brand); }
.calc-card:hover .calc-card-go { color: var(--cta, #D9480F); }
.calc-card-ico { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #E6EDF9; color: var(--brand); font-size: 1.15rem; }
.calc-card-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.calc-card-cat { font-size: .72rem; font-weight: 700; color: var(--muted); }
.calc-card strong { font-size: .97rem; line-height: 1.25; }
.calc-card-desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.calc-card-go { margin-top: auto; padding-top: .35rem; font-size: .84rem; font-weight: 700; color: var(--brand); }
.calc-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.calc-flows table { font-size: .85rem; }
.calc-flows th { font-weight: 600; color: var(--muted); font-size: .78rem; }
.calc-lock { text-align: center; padding: 1.6rem 1rem; background: #F6F8FC; border: 1px dashed var(--line); border-radius: var(--radius); }
.calc-lock > i { font-size: 1.8rem; color: var(--brand); }
.calc-lock p { margin: .5rem auto 1rem; max-width: 420px; color: var(--muted); font-size: .92rem; }
.calc-lock strong { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: .25rem; }
