/* ==========================================================================
   ARKHOS ENERGY — Investors page
   New components only: share quote board + price chart, results card,
   free cash flow bars, allocation priorities, cash waterfall, document list
   and viewer, financial calendar, IR contact card. Built from style.css tokens.
   ========================================================================== */

/* ---------- Shared helpers ---------- */
.ir-nowrap { white-space: nowrap; }
.ir-up { color: var(--up); }
.ir-down { color: var(--down); }
.section--light .ir-up { color: #157a4a; }
.section--light .ir-down { color: #c0262d; }

/* Price readout in the sticky sub-nav */
.ir-subnav-quote {
  margin-left: auto; align-self: center; flex: none;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding-left: 24px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--fg-mute); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ir-subnav-quote b { color: var(--fg); font-weight: 500; }
@media (max-width: 1359px) { .ir-subnav-quote { display: none; } }

/* Page hero: the refinery fills the whole frame, so the copy side gets a deeper veil */
.page-hero__veil {
  background:
    linear-gradient(90deg, rgba(5, 15, 21, 0.94) 0%, rgba(5, 15, 21, 0.74) 45%, rgba(5, 15, 21, 0.3) 100%),
    linear-gradient(180deg, rgba(5, 15, 21, 0.6) 0%, rgba(5, 15, 21, 0) 30%, rgba(5, 15, 21, 0.2) 60%, var(--petrol-950) 100%);
}
.page-hero__content .lead { max-width: 640px; }
@media (max-width: 760px) {
  /* On phones the copy spans the full width of the photo, so the veil is even */
  .page-hero__veil { background: linear-gradient(180deg, rgba(5, 15, 21, 0.72) 0%, rgba(5, 15, 21, 0.76) 55%, rgba(5, 15, 21, 0.88) 80%, var(--petrol-950) 100%); }
}

/* Below the split heading layout, keep a gap between an aside's lead and its link */
@media (max-width: 959px) { .section-head__aside .lead + .link-arrow { margin-top: 18px; } }

/* Key / value rows (quote board, dividend timetable, IR contact) */
.ir-kv { display: grid; }
.ir-kv > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--rule); min-width: 0;
}
.ir-kv > div:first-child { border-top: 1px solid var(--rule); }
.ir-kv dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); flex: none; max-width: 55%; }
.ir-kv dd { font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.ir-kv dd small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); }

/* Bulleted list with a short rule marker */
.ir-ticks { list-style: none; display: grid; gap: 12px; }
.ir-ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ir-ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1.5px; background: var(--accent-text); }
.ir-ticks strong { color: var(--text); font-weight: 600; }

/* ---------- 1. Share price board ---------- */
.ir-share {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ir-share > * { min-width: 0; }

.ir-quote { display: grid; gap: 22px; align-content: start; padding: clamp(22px, 2.6vw, 34px); border-right: 1px solid var(--rule); }
.ir-quote__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ir-quote__price {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-stretch: 116%; font-weight: 700;
  font-size: clamp(3rem, 2.3rem + 2.4vw, 4.4rem); letter-spacing: -0.045em; line-height: 0.95;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.ir-quote__ccy { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.ir-quote__chg { margin-top: 12px; font-family: var(--font-mono); font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.ir-quote__time { margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.ir-52w { display: grid; gap: 12px; }
.ir-52w__track { position: relative; height: 4px; border-radius: 4px; background: var(--rule-strong); }
.ir-52w__track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pos, 50%); border-radius: inherit; background: var(--flare-grad); }
.ir-52w__mark {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--flare); border: 3px solid var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 139, 43, 0.2);
  transform: translate(-50%, -50%);
}
.ir-52w__ends { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ir-52w__ends b { margin-left: 6px; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text); font-variant-numeric: tabular-nums; }

/* The chart grows to the height of the quote column, so the board has no dead space */
.ir-chartbox { display: flex; flex-direction: column; gap: 18px; padding: clamp(18px, 2.4vw, 30px); }
.ir-chartbox__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }

.ir-range { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--rule-strong); border-radius: 999px; }
.ir-range button {
  min-width: 52px; min-height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--muted);
  transition: background .25s var(--ease), color .25s;
}
.ir-range button:hover { color: var(--text); }
.ir-range button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.ir-perf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ir-perf b { font-family: var(--font-mono); font-size: 0.98rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.ir-chart {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(280px, 30vw, 410px);
  touch-action: pan-y;
  cursor: crosshair;
  border-radius: var(--radius);
  -webkit-user-select: none; user-select: none;
}
.ir-chart:focus-visible { outline-offset: 8px; }
.ir-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ir-chart text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; fill: var(--muted); }
.ir-chart .ir-grid line { stroke: var(--rule); stroke-width: 1; }
.ir-chart .ir-tick { stroke: var(--rule-strong); }
.ir-chart .ir-ref { stroke: var(--fg-mute); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.7; }
.ir-chart .ir-line { fill: none; stroke: var(--flare); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ir-chart .ir-dot { fill: var(--flare); }
.ir-chart .ir-halo { fill: rgba(255, 139, 43, 0.22); }
.ir-chart .ir-tag rect { fill: var(--flare); }
.ir-chart .ir-tag text { fill: #170a02; font-weight: 600; }
.ir-chart .ir-cross line { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.8; }
.ir-chart .ir-cross circle { fill: var(--bg); stroke: var(--flare); stroke-width: 2; }
.ir-chart .ir-line.is-drawing { stroke-dasharray: 1; stroke-dashoffset: 1; animation: irDraw 1.3s var(--ease) forwards; }
.ir-chart .ir-area.is-drawing { animation: irFade 1s var(--ease) .25s both; }
@keyframes irDraw { to { stroke-dashoffset: 0; } }
@keyframes irFade { from { opacity: 0; } to { opacity: 1; } }

.ir-chart__tip {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: grid; gap: 2px; min-width: 150px;
  padding: 10px 12px;
  background: rgba(5, 15, 21, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.ir-chart__tip.is-visible { opacity: 1; }
.ir-chart__tip-date { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.ir-chart__tip-px { font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 1.15rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.ir-chart__tip-chg { font-family: var(--font-mono); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.ir-chart__note { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 980px) {
  .ir-share { grid-template-columns: minmax(0, 1fr); }
  .ir-quote { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 620px) and (max-width: 980px) {
  .ir-quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 40px; }
  .ir-quote__top { grid-column: 1 / -1; }
  .ir-quote .ir-52w { align-self: start; }
  .ir-quote .ir-kv { grid-column: 2; grid-row: 2 / span 2; align-self: start; }
}

/* ---------- 2. Results ---------- */
.ir-results { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.ir-results > * { min-width: 0; }
@media (max-width: 980px) { .ir-results { grid-template-columns: minmax(0, 1fr); } }

.ir-q3 { display: grid; gap: 24px; align-content: start; }
.ir-q3__top { align-items: center; }
.ir-q3__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.ir-q3__kpis > div { display: grid; gap: 4px; align-content: start; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.ir-q3__kpis > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
.ir-q3__kpis dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ir-q3__kpis dd { font-family: var(--font-display); font-stretch: 112%; font-weight: 650; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.ir-q3__kpis dd.ir-q3__note { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.ir-q3__kpis dd.ir-q3__note.ir-up { color: #157a4a; }
.ir-q3 .cluster { --cluster-gap: 14px 24px; }

.ir-fcf { margin: 0; display: grid; grid-template-rows: auto minmax(clamp(260px, 25vw, 330px), 1fr) auto auto auto; gap: 18px; }
.ir-fcf__chart { position: relative; min-height: clamp(260px, 25vw, 330px); }
.ir-fcf__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ir-fcf__chart text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.ir-fcf__chart .ir-grid line { stroke: var(--rule); }
.ir-fcf__chart .ir-grid line.is-base { stroke: var(--rule-strong); }
.ir-fcf__chart .ir-bar-val { font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 14px; fill: var(--text); }
.ir-fcf__chart .ir-year { font-size: 11.5px; fill: var(--text-2); }
.ir-fcf__chart .is-current .ir-year { fill: var(--text); font-weight: 600; }
.ir-fcf__chart .ir-ret { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.ir-fcf__chart .ir-bar { transition: opacity .25s; }
.ir-fcf__chart g:hover .ir-bar { opacity: 0.85; }

.ir-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ir-legend span { display: inline-flex; align-items: center; gap: 10px; }
.ir-swatch { display: inline-block; width: 22px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--muted) 0 50%, var(--flare) 50% 100%); }
.ir-swatch--line { height: 2px; border-radius: 2px; background: var(--text); }

/* Spec rows in the two chart panels: values share a baseline even when a label wraps */
.ir-fcf .specs, .ir-wf .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ir-fcf .specs > div, .ir-wf .specs > div { grid-template-rows: 1fr auto; }
@media (max-width: 560px) {
  .ir-fcf .specs, .ir-wf .specs { grid-template-columns: minmax(0, 1fr); }
  .ir-fcf .specs > div, .ir-wf .specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
  .ir-fcf .specs dd, .ir-wf .specs dd { flex: none; }
}

.ir-summary__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.ir-table { min-width: 740px; }
.ir-table tbody th[scope="row"] {
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--text);
}
.ir-table tbody th[scope="row"] span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.ir-table .ir-table__group th { padding-top: 28px; padding-bottom: 10px; color: var(--accent-text); border-bottom-color: var(--rule-strong); }
.ir-table .ir-table__group th span { position: sticky; left: 0; display: inline-block; }
.ir-table tbody:first-of-type .ir-table__group th { padding-top: 18px; }
.ir-table .ir-table__group:hover { background: none; }
.ir-table .r { padding-right: 16px; }
.ir-table .is-current { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--flare) 10%, transparent); }
.ir-table thead .is-current { color: var(--accent-text); }
.ir-table__note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); max-width: 90ch; }
/* Phones: the measure column stays pinned while the years scroll sideways */
@media (max-width: 760px) {
  .ir-table { min-width: 580px; }
  .ir-table thead th:first-child,
  .ir-table tbody th[scope="row"] {
    position: sticky; left: 0; z-index: 1;
    width: 148px; min-width: 148px;
    background: var(--bg);
    box-shadow: inset -1px 0 0 var(--rule);
  }
  .ir-table tbody th[scope="row"] { font-size: 0.92rem; line-height: 1.3; }
  .ir-table tbody th[scope="row"] span { display: block; margin: 3px 0 0; }
  .ir-table .r { padding-left: 12px; }
}

/* ---------- 3. Capital allocation ---------- */
.ir-alloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ir-alloc > * { min-width: 0; }
@media (max-width: 1000px) { .ir-alloc { grid-template-columns: minmax(0, 1fr); } }

.ir-priorities { list-style: none; display: grid; }
.ir-priority { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--rule); }
.ir-priority:last-child { border-bottom: 1px solid var(--rule); }
.ir-priority:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 82px; bottom: -22px; width: 1px;
  background: linear-gradient(180deg, rgba(255, 139, 43, 0.6), rgba(255, 139, 43, 0));
}
.ir-priority__num {
  font-family: var(--font-display); font-stretch: 120%; font-weight: 700;
  font-size: 2.5rem; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--flare);
  font-variant-numeric: tabular-nums;
  transition: color .4s var(--ease);
}
.ir-priority:hover .ir-priority__num { color: var(--flare); }
.ir-priority__body { display: grid; gap: 10px; min-width: 0; }
.ir-priority__body p { color: var(--text-2); }
.ir-priority__body .ir-priority__metric {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 4px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--text);
}
.ir-priority__metric span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
@media (max-width: 560px) {
  .ir-priority { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .ir-priority__num { font-size: 1.9rem; }
  .ir-priority:not(:last-child)::before { left: 15px; top: 70px; }
}

/* Cash waterfall */
.ir-wf { margin: 0; display: grid; gap: 22px; align-content: start; }
/* The priorities list runs longer than the chart, so the chart travels with it on tall screens */
@media (min-width: 1001px) and (min-height: 760px) { .ir-wf { position: sticky; top: 80px; } }
.ir-wf__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ir-wf__head .label, .ir-fcf .flex-between .label { flex: none; white-space: nowrap; }
.ir-wf__rows { list-style: none; display: grid; gap: 4px; }
.ir-wf__row {
  --cols: minmax(0, 38%) minmax(0, 1fr) 52px;
  display: grid; grid-template-columns: var(--cols); grid-template-areas: "name track val";
  align-items: center; column-gap: 16px; min-height: 44px;
}
.ir-wf__name { grid-area: name; font-size: 0.93rem; color: var(--text-2); line-height: 1.3; }
.ir-wf__val { grid-area: val; text-align: right; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); font-variant-numeric: tabular-nums; }
.ir-wf__track {
  grid-area: track; position: relative; height: 28px;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: calc(100% * 5 / 25.5) 100%;
  background-repeat: repeat-x;
}
.ir-wf__bar { position: absolute; top: 4px; bottom: 4px; left: var(--from, 0%); width: calc(var(--to, 100%) - var(--from, 0%)); border-radius: 2px; background: var(--fg-2); }
.ir-wf__row--capex .ir-wf__bar { background: repeating-linear-gradient(135deg, rgba(159, 180, 192, 0.62) 0 4px, rgba(159, 180, 192, 0.22) 4px 8px); }
.ir-wf__row--sub { border-top: 1px dashed var(--rule-strong); border-bottom: 1px dashed var(--rule-strong); margin-block: 6px; }
.ir-wf__row--sub .ir-wf__name, .ir-wf__row--sub .ir-wf__val { color: var(--text); font-weight: 600; }
.ir-wf__row--sub .ir-wf__bar { background: var(--flare-grad); }
.ir-wf__row--div .ir-wf__bar { background: var(--gold); }
.ir-wf__row--buy .ir-wf__bar { background: var(--flare); }
.ir-wf__row--debt .ir-wf__bar { background: var(--sea); }
.ir-wf__axis { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) 52px; column-gap: 16px; }
.ir-wf__scale { grid-column: 2; position: relative; height: 16px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ir-wf__scale span { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); }
.ir-wf__scale span:first-child { transform: none; }
.ir-wf__caption { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) {
  .ir-wf__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; row-gap: 6px; padding-block: 6px; }
  .ir-wf__axis { grid-template-columns: minmax(0, 1fr); }
  .ir-wf__scale { grid-column: 1; }
}

/* ---------- 4. Investment case ---------- */
.ir-case .feature { grid-template-rows: auto auto 1fr auto; }
.ir-case .feature__icon { width: auto; justify-items: start; }
.ir-quote-sm { gap: 20px; }
.ir-quote-sm .quote__text { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); }
.ir-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ir-proof > div { display: grid; gap: 4px; min-width: 0; }
.ir-proof dt { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ir-proof dd { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.08rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 5. Reports list ---------- */
.ir-docs-tools { display: grid; gap: 14px; justify-items: start; }
.ir-docs { list-style: none; border-top: 1px solid var(--rule-strong); }
.ir-doc {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 290px) auto;
  grid-template-areas: "date main meta view";
  align-items: center; gap: 10px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.ir-doc:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.ir-doc__date { grid-area: date; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ir-doc__main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.ir-doc__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }
.ir-doc__desc { font-size: 0.93rem; color: var(--text-2); max-width: 62ch; }
.ir-doc__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.ir-doc__size { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.ir-doc__view {
  grid-area: view; justify-self: end;
  border: 0; padding: 0 0 4px; font-size: 1rem;
}
@media (max-width: 1000px) {
  .ir-doc { grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "date main view" "date meta view"; }
}
@media (max-width: 680px) {
  .ir-doc { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date view" "main main" "meta meta"; gap: 10px 16px; padding: 22px 0; }
}

/* Document viewer (dialog) */
.ir-docmodal { width: min(880px, calc(100vw - 32px)); }
.ir-docmodal .modal__close { position: absolute; top: 14px; right: 14px; float: none; margin: 0; }
.ir-docmodal__body { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.ir-docmodal__info { --stack-gap: 16px; padding-right: 36px; }
.ir-docmodal__info .ir-ticks li { color: var(--fg-2); }
.ir-docmodal__info .ir-ticks li::before { background: var(--flare); }
@media (max-width: 640px) {
  .ir-docmodal__body { grid-template-columns: minmax(0, 1fr); }
  .ir-docmodal__info { padding-right: 0; }
  .ir-cover { max-width: 190px; }
}
.ir-cover {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4;
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px;
  padding: 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: radial-gradient(120% 80% at 100% 0%, var(--petrol-600) 0%, var(--petrol-800) 45%, var(--petrol-950) 100%);
  box-shadow: var(--shadow);
}
.ir-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(172deg, transparent 0 18px, rgba(196, 222, 235, 0.07) 18px 19px);
  mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
}
.ir-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sheen); }
.ir-cover__brand { font-family: var(--font-display); font-stretch: 125%; font-weight: 750; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--fg); }
.ir-cover__kind { align-self: end; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--flare); }
.ir-cover__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.32rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--fg); }
.ir-cover__date { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); padding-bottom: 6px; }

/* ---------- 6. Financial calendar ---------- */
.ir-cal { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ir-cal > * { min-width: 0; }
@media (max-width: 1000px) { .ir-cal { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 700px) and (max-width: 1000px) { .ir-cal__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.ir-events { list-style: none; border-top: 1px solid var(--rule-strong); }
.ir-event { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.ir-date {
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 6px 11px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--surface);
  text-align: center; line-height: 1;
}
.ir-date__mon { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.ir-date__day { font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: 2.3rem; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; padding-block: 4px 2px; }
.ir-date__yr { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--muted); }
.ir-event.is-next .ir-date { border-color: rgba(255, 139, 43, 0.6); box-shadow: inset 0 3px 0 var(--flare); }
.ir-event__body { display: grid; gap: 10px; min-width: 0; }
.ir-event__body p { color: var(--text-2); font-size: 0.98rem; }
.ir-event__body .ir-event__meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); }
.ir-event__add svg { width: 17px; height: 17px; }
.ir-event__add:hover svg { transform: none; }
@media (max-width: 640px) {
  .ir-event { grid-template-columns: 70px minmax(0, 1fr); gap: 14px 18px; }
  .ir-event__add { grid-column: 2; justify-self: start; }
  .ir-date__day { font-size: 1.9rem; }
}

.ir-cal__side { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.ir-cal__side .media-frame { --ratio: 16 / 9; }
.ir-cal__side .media-frame::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 15, 21, 0) 0%, rgba(5, 15, 21, 0.72) 100%);
}
@media (min-width: 1001px) and (min-height: 880px) { .ir-cal__side { position: sticky; top: 80px; } }
.ir-divcard { display: grid; gap: 18px; align-content: start; }
.ir-divcard__amt { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-stretch: 116%; font-weight: 700; font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.ir-divcard__amt span { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- 7. Shareholder services ---------- */
.ir-services { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ir-services > * { min-width: 0; }
@media (max-width: 1000px) { .ir-services { grid-template-columns: minmax(0, 1fr); } }
.ir-services .accordion__body > * + * { margin-top: 14px; }
.ir-services .accordion__body .ir-kv { max-width: 520px; }

.ir-consensus { display: grid; gap: 10px; max-width: 460px; }
.ir-consensus__bar { display: flex; gap: 3px; height: 10px; border-radius: 10px; overflow: hidden; }
.ir-consensus__bar i { display: block; width: var(--w); }
.ir-consensus__bar i:nth-child(1) { background: var(--sea-ink); }
.ir-consensus__bar i:nth-child(2) { background: var(--ink-mute); }
.ir-consensus__bar i:nth-child(3) { background: var(--flare-ink); }
.ir-consensus__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ir-consensus__legend b { color: var(--text); font-weight: 600; }

.ir-contact { display: grid; gap: 22px; align-content: start; }
.ir-person { display: flex; align-items: center; gap: 14px; }
.ir-person .monogram { width: 50px; height: 50px; font-size: 0.92rem; }
.ir-person__name { font-weight: 600; color: var(--text); }
.ir-person__role { font-size: 0.9rem; color: var(--muted); }
.ir-copy {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--bg);
}
.ir-copy__addr { font-family: var(--font-mono); font-size: 0.92rem; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.ir-copy .btn svg { width: 16px; height: 16px; }
.ir-copy .btn:hover svg { transform: none; }
/* Email alerts: one band under the FAQ and contact card */
.ir-alerts-band {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 24px clamp(32px, 5vw, 72px); align-items: start;
}
.ir-alerts-band__intro { display: grid; gap: 10px; min-width: 0; }
.ir-alerts-band__intro .h4 { margin-top: 2px; }
.ir-alerts-band > .form-success { grid-column: 1 / -1; }
.ir-alerts {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "email submit" "topics topics";
  gap: 30px 12px; align-items: end; min-width: 0;
}
.ir-alerts__email { grid-area: email; position: relative; }
/* The error sits under the input without pushing the button out of line */
.ir-alerts__email .field__error { position: absolute; left: 0; top: calc(100% + 5px); }
.ir-alerts__submit { grid-area: submit; min-height: 56px; }
.ir-alerts__topics { grid-area: topics; border: 0; margin: 0; padding: 0; min-width: 0; }
.ir-alerts__topics legend { margin-bottom: 12px; padding: 0; }
.ir-alerts__checks { display: flex; flex-wrap: wrap; gap: 10px 28px; }
@media (max-width: 900px) {
  .ir-alerts-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ir-alerts { grid-template-columns: minmax(0, 1fr); grid-template-areas: "email" "topics" "submit"; gap: 22px; }
  .ir-alerts__email .field__error { position: static; }
  .ir-alerts__checks { flex-direction: column; }
}

/* ---------- 8. CTA: the platform sits mid-frame, so the copy gets a deeper veil ---------- */
.ir-cta::before {
  background:
    linear-gradient(90deg, rgba(5, 15, 21, 0.95) 0%, rgba(5, 15, 21, 0.82) 42%, rgba(5, 15, 21, 0.3) 78%, rgba(5, 15, 21, 0.35) 100%),
    linear-gradient(180deg, var(--petrol-900) 0%, rgba(5, 15, 21, 0) 22%, rgba(5, 15, 21, 0) 78%, var(--petrol-950) 100%);
}
.ir-cta .cta-band__inner { max-width: 640px; }
@media (max-width: 760px) {
  .ir-cta::before { background: linear-gradient(180deg, rgba(5, 15, 21, 0.75) 0%, rgba(5, 15, 21, 0.82) 100%); }
}
