/* /iran/stats/ "Iran in numbers". Builds on /style.css: same paper, ink and one quiet blue accent, rules instead of
   boxes. Colours come only from the site's tokens, so light and dark follow the theme. No transitions or animation. */

.st-head { padding-block: 24px 0; }
@media (min-width: 768px) { .st-head { padding-block: 40px 0; } }
.st-head h1 { margin-bottom: 10px; }
.st-main .notice { margin-block: 6px 18px; }
.st-main #st-status:empty { min-height: 0; margin: 0; }

/* ---------- grid of cards ---------- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; margin-block: 8px 8px; }
.st-grid:empty { min-height: 110vh; } /* room kept while the data loads, so nothing below shifts */
@media (min-width: 880px) {
  .st-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-wide { grid-column: 1 / -1; }
}
.st-card { display: flex; flex-direction: column; margin-block: 0 40px; }
.st-card > h2 { margin-bottom: 4px; }

/* ---------- the number ---------- */
.st-fig { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-block: 2px 10px; }
.st-num { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.st-big {
  font-family: var(--serif);
  font-size: clamp(3rem, 2.3rem + 3.2vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
  align-self: flex-start;
}
.st-label { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); line-height: 1.4; max-width: 26rem; }
.st-line { max-width: 40rem; margin-bottom: 0.6rem; }
.st-hint { font-size: 0.875rem; color: var(--text-2); max-width: 40rem; margin-block: 4px 8px; }
.st-src { font-size: 0.8125rem; color: var(--muted); margin-block: 10px 0; overflow-wrap: anywhere; }
.st-src a { color: var(--text-2); }

/* the current rial rate: one line with the number in the serif, then its update time and source credit */
.st-now { margin-block: 2px 12px; min-height: 3.6rem; }
.st-now-line { margin: 0; font-size: 1rem; line-height: 1.5; }
.st-now-l { font-weight: 600; }
.st-now-v { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.st-now-meta { margin: 2px 0 0; font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; }
.st-now-meta a { color: var(--text-2); }
.st-share { margin-block: 8px 0; }
.st-share .status { margin: 0; min-height: 0; font-size: 0.875rem; }

/* table twins: links in the tables carry a visually hidden "opens in a new tab" note (position: absolute);
   this keeps it inside the scroll box instead of widening the page */
.st-main .scroll-x { position: relative; }

/* ---------- figures ---------- */
.st-ill { margin: 6px 0 4px; min-width: 0; }
.st-chart .chart-plot { min-height: 210px; } /* the chart is drawn after layout: hold its height */
.st-empty { margin: 12px 0; padding: 14px 0; border-block: 1px solid var(--line); color: var(--text-2); max-width: 40rem; min-height: 210px; }
.st-range-status { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* range buttons (aria-pressed), like the horizon toggle on /iran/ */
.st-seg { display: inline-flex; flex-wrap: wrap; align-items: center; border: 1px solid var(--text); border-radius: var(--radius); margin-block: 4px 10px; max-width: 100%; }
.st-seg-l { padding-inline: 12px; font-size: 0.8125rem; color: var(--muted); }
.st-seg button {
  min-height: 44px; min-width: 44px; padding-inline: 12px;
  font: 600 0.875rem var(--sans); color: var(--text); background: none;
  border: 0; border-inline-start: 1px solid var(--text); cursor: pointer;
}
.st-seg button:hover { background: var(--surface-2); }
.st-seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.st-seg button:focus-visible { outline-offset: 2px; }
/* narrow screens: the range buttons share one row; the word "range" stays for screen readers (the group's name) */
@media (max-width: 520px) {
  .st-seg { display: flex; flex-wrap: nowrap; width: 100%; }
  .st-seg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
  .st-seg button { flex: 1 1 auto; min-width: 0; padding-inline: 4px; font-size: 0.8125rem; }
  .st-seg button:first-of-type { border-inline-start: 0; }
}

/* banknotes: the part of the rial's value that is left, in ink; the rest as dashed outlines */
.st-notes { width: 290px; max-width: 100%; height: auto; display: block; }
.st-note-on { fill: var(--text); }
.st-note-on-dot { fill: var(--bg); }
.st-note-off { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 2; }
.st-note-off-dot { fill: none; stroke: var(--muted); stroke-width: 1; }

/* ship icon (decorative) */
.st-icon { width: 64px; height: auto; flex: none; }
.st-ink { fill: var(--text); }
.st-wave { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }

/* proportional bars (Hormuz) */
.st-bars { list-style: none; margin: 4px 0 6px; padding: 0; }
.st-bars li { display: grid; grid-template-columns: minmax(84px, 9rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.st-bars li:last-child { border-bottom: 0; }
.st-bar-l { font-size: 0.875rem; color: var(--text-2); }
.st-bar-track { display: block; height: 14px; }
.st-bar-fill { display: block; height: 100%; background: var(--muted); border-radius: 0 2px 2px 0; }
[dir="rtl"] .st-bar-fill { border-radius: 2px 0 0 2px; }
.st-bar-fill.now { background: var(--accent); }
.st-bar-v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.9375rem; }

/* price tags (inflation) */
.st-tags { width: 330px; max-width: 100%; height: auto; display: block; margin-block: 6px 2px; }
.st-tag-old { fill: none; stroke: var(--text); stroke-width: 1.5; }
.st-tag-old-hole { fill: none; stroke: var(--text); stroke-width: 1.2; }
.st-tag-new { fill: var(--accent); }
.st-tag-new-hole { fill: var(--bg); }
.st-tags .st-tag-old-num, .st-tags .st-tag-new-num { font: 600 22px var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.st-tag-old-num { fill: var(--text); }
.st-tag-new-num { fill: var(--accent-ink); }
.st-tag-label { fill: var(--text-2); font: 600 13px var(--sans); }

/* IAEA columns */
.st-cols { width: 340px; max-width: 100%; height: auto; display: block; }
.st-col { fill: var(--muted); }
.st-col-last { fill: var(--text); }
.st-col-ghost { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 2; }
.st-col-q { fill: var(--accent); font: 600 14px var(--sans); }
.st-base { stroke: var(--text); stroke-width: 1; }
.st-col-v { fill: var(--text-2); font: 400 11px var(--sans); font-variant-numeric: tabular-nums; }
.st-col-v.strong { fill: var(--text); font-weight: 600; }
.st-col-x { fill: var(--muted); font: 400 11px var(--sans); }

/* day strip (ceasefire) */
.st-strip { width: 340px; max-width: 100%; height: auto; display: block; }
.st-strip-line { stroke: var(--text); stroke-width: 1.5; }
.st-strip-tick { stroke: var(--muted); stroke-width: 1; }
.st-strip-m, .st-strip-today { fill: var(--muted); font: 400 11px var(--sans); }
.st-strip-end { fill: var(--text); }
.st-mark-s { fill: var(--text); }
.st-mark-f { fill: var(--accent); }
.st-legend { margin-top: 6px; }
.st-key { display: inline-block; vertical-align: -2px; margin-inline-end: 6px; }

/* sources */
.st-sources { margin-top: 8px; }
.st-dl { margin: 6px 0 0; max-width: 46rem; }
.st-dl dt { font-weight: 600; margin-top: 12px; }
.st-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.st-sources h3 { margin-top: 24px; }
.st-sources p { max-width: 46rem; }

@media print {
  .st-share, .st-seg { display: none !important; }
}
