/* IPO Hub article — polished prospectus layout */
.ih-article,
.ih-article * { box-sizing: border-box; }

.ih-article {
  --ih-ink: #0f172a;
  --ih-body: #1e293b;
  --ih-muted: #64748b;
  --ih-line: #e8ecf3;
  --ih-card: #ffffff;
  --ih-blue: #2563eb;
  --ih-surface: #f8fafc;
  background: transparent;
  color: var(--ih-body);
  border-radius: 0;
  padding: 0;
  font-family: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Type scale — consistent hierarchy */
.ih-article .ih-h {
  font-family: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ih-ink);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 36px 0 14px;
  text-wrap: balance;
}
.ih-article h2.ih-h {
  font-size: 1.25rem; /* 20px */
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ih-line);
}
.ih-article h3.ih-h {
  font-size: 1.05rem; /* ~17px */
  font-weight: 600;
  margin-top: 28px;
  border-bottom: 0;
  padding-bottom: 0;
}
.ih-article > .ih-h:first-child { margin-top: 4px; }

.ih-article p {
  margin: 0 0 14px;
  color: var(--ih-body);
  font-weight: 400;
  text-wrap: pretty;
}
.ih-article a { color: #1d4ed8; text-underline-offset: 3px; }
.ih-article strong { color: var(--ih-ink); font-weight: 600; }

.ih-article .ih-kicker {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.ih-article .ih-note {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--ih-surface);
  border-radius: 10px;
  border: 1px solid var(--ih-line);
}
.ih-article .ih-note strong { color: #475569; font-weight: 600; }

.ih-article .ih-sub {
  color: #64748b;
  font-size: 0.9rem;
  margin: -4px 0 12px;
}

.ih-article ul,
.ih-article ol { margin: 0 0 16px; padding-left: 1.25rem; }
.ih-article li { margin: 5px 0; }
.ih-article li::marker { color: #94a3b8; }

.ih-article blockquote {
  margin: 16px 0;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--ih-blue);
  color: #475569;
}

.ih-article hr {
  border: 0;
  border-top: 1px solid var(--ih-line);
  margin: 28px 0;
}

.ih-article pre {
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
  margin: 0 0 16px;
}
.ih-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.ih-article p code,
.ih-article li code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
}

.ih-article .ih-figure { margin: 12px 0 18px; }
.ih-article img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.ih-article figcaption {
  color: var(--ih-muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

/* Cards */
.ih-article .ih-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin: 10px 0 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Tranches */
.ih-tranche { padding: 16px 18px 14px; border-top: 1px solid #f1f5f9; }
.ih-tranche:first-child { border-top: 0; }
.ih-tranche-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.ih-tranche-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ih-ink);
  letter-spacing: -0.01em;
}
.ih-tranche-who {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 3px;
  font-weight: 400;
}
.ih-tranche-pct {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ih-ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ih-track {
  margin: 12px 0 10px;
  height: 6px;
  background: #e8eef7;
  border-radius: 99px;
  overflow: hidden;
}
.ih-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 99px;
  min-width: 6px;
}
.ih-bar-fill[style="width:0%"] { min-width: 0; }
.ih-tranche-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
}

/* KV / stats rows */
.ih-kv, .ih-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid #f1f5f9;
}
.ih-kv:first-child, .ih-stat:first-child { border-top: 0; }
.ih-kv span, .ih-stat-label {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
}
.ih-stat-main { min-width: 0; }
.ih-stat-cap {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 2px;
}
.ih-kv strong, .ih-stat-value {
  color: var(--ih-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* Hero highlight grid */
.ih-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 24px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #f1f5f9;
}
.ih-stat-card .ih-kv { border-top: 1px solid #f1f5f9; }
.ih-hi-label {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ih-hi-value {
  color: var(--ih-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ih-hi-cap {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Timeline */
.ih-timeline .ih-tl {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 2px 14px;
  align-items: start;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
}
.ih-timeline .ih-tl:first-child { border-top: 0; }
.ih-tl-n {
  color: var(--ih-blue);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.ih-tl-title {
  color: var(--ih-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.ih-tl-note {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 3px;
  line-height: 1.4;
}
.ih-tl-date {
  color: var(--ih-ink);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* Info / contact cards */
.ih-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
}
.ih-info:first-child { border-top: 0; }
.ih-info-ico { color: #64748b; flex: none; display: flex; }
.ih-info-main { flex: 1; min-width: 0; }
.ih-info-label {
  font-weight: 600;
  color: var(--ih-ink);
  font-size: 0.95rem;
}
.ih-info-value {
  color: #334155;
  font-size: 0.9rem;
  margin-top: 2px;
  word-break: break-word;
  font-weight: 400;
}
.ih-info-value a { color: #1d4ed8; }
.ih-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.ih-pill:hover { border-color: #93c5fd; background: #eff6ff; }

/* Chart */
.ih-chart-card {
  padding: 8px 8px 4px;
  background: #fff;
}
.ih-chart {
  margin: 0;
  padding: 8px 4px 0;
}
.ih-chart svg {
  width: 60%;margin: auto;
  height: auto;
  display: block;
}
.ih-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 2px 8px 12px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}
.ih-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.ih-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor;
}

/* Tables */
.ih-table-wrap {
  overflow-x: auto;
  margin: 10px 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  background: #fff;
}
.ih-article table.ih-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  display: table;
  margin: 0;
  border: 0;
}
.ih-article table.ih-data th {
  text-align: left;
  color: #475569;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ih-article table.ih-data td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ih-body);
  background: #fff;
  font-weight: 400;
}
.ih-article table.ih-data tr:last-child td { border-bottom: 0; }
.ih-article table.ih-data tr:hover td { background: #fafbfc; }
.ih-article table.ih-data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ih-ink);
}
.ih-article table.ih-data th.num { font-weight: 600; }

@media (max-width: 640px) {
  .ih-article { font-size: 15px; }
  .ih-article h2.ih-h { font-size: 1.15rem; }
  .ih-article h3.ih-h { font-size: 1rem; }
  .ih-tranche { padding: 14px 14px 12px; }
  .ih-tranche-pct { font-size: 1.2rem; }
  .ih-kv, .ih-stat, .ih-info { padding: 11px 14px; }
  .ih-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 14px;
  }
  .ih-hi-value { font-size: 1.4rem; }
  .ih-tl-date { font-size: 0.85rem; }
  .ih-stat { align-items: flex-start; }
  .ih-tranche-foot { gap: 6px; flex-wrap: wrap; }
  .ih-timeline .ih-tl {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .ih-tl-date {
    grid-column: 2;
    padding-top: 0;
    margin-top: 2px;
  }
}

/* Keep the single-IPO chrome on the site's light theme */
.ih-dossier.ih-inner-wrap {
  background: transparent;
  color: #0f172a;
}
.ih-dossier .ih-page-company { font-size: 26px; font-weight: 700; }
.ih-dossier .ih-fact-value { font-weight: 600; font-size: 15px; }
.ih-dossier .ih-docs-section-title { font-weight: 600; font-size: 16px; }

/* Metric tile grid — operational profile style */
.ih-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}
.ih-tile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ih-tile-value {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ih-tile-label {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}

/* Ownership bars */
.ih-ownership { padding: 16px 18px 14px; }
.ih-own-row { margin-bottom: 14px; }
.ih-own-row:last-of-type { margin-bottom: 10px; }
.ih-own-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.ih-own-track {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef7;
}
.ih-own-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
  min-width: 0;
}
.ih-own-major { background: #2563eb; }
.ih-own-minor { background: #93c5fd; color: #1e3a8a; }
.ih-own-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}
.ih-own-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ih-own-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ih-own-dot.major { background: #2563eb; }
.ih-own-dot.minor { background: #93c5fd; }

/* Business model features */
.ih-features { padding: 4px 0; }
.ih-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
}
.ih-feature:first-child { border-top: 0; }
.ih-feature-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ih-feature-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 3px;
}
.ih-feature-body {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

/* Use-type chips */
.ih-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.ih-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ih-chip svg { color: #2563eb; flex: none; }

@media (max-width: 640px) {
  .ih-tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ih-tile { padding: 12px 14px; }
  .ih-tile-value { font-size: 1.15rem; }
  .ih-chip-grid { grid-template-columns: 1fr 1fr; }
  .ih-own-fill { font-size: 0.7rem; padding: 0 4px; }
}
