/* Interactive Graphs (/graphs and each graph's page; 3 Dec 2026).
   The paper's look: paper #fffff7, ink, Georgia heads, the red rule. A graph
   that shows a gain against a loss uses green-teal for growing and the
   paper's red for shrinking, in the bins the [data-bin] colours set out. */

.osc-ig-body { background: #fffff7; }
.osc-ig {
  --ink: #1b1d23;
  --paper: #fffff7;
  --muted: #5d5a50;
  --rule: #e4e0d5;
  --cream: #f1eee6;
  --red: #b21f2d;
  --up: #1f6f62;
  --down: #b21f2d;
  --g4: #0f4f46; --g3: #2b7a6c; --g2: #5fa595; --g1: #9fcdbf; --g0: #d6ebe3;
  --l0: #f7d9d4; --l1: #eaa197; --l2: #cf5a4d; --l3: #9e1d22;
  --na: #e2ded3;
  background: var(--paper);
  color: var(--ink);
}
.osc-ig-wrap { max-width: 74rem; margin: 0 auto; padding: 150px 24px 70px; }
@media (max-width: 1023px) { .osc-ig-wrap { padding-top: 104px; } }
@media (max-width: 640px) { .osc-ig-wrap { padding: 96px 16px 50px; } }

.osc-ig-crumbs { margin: 0 0 18px; color: var(--muted); font-size: 0.85rem; }
.osc-ig-crumbs a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.osc-ig-crumbs span[aria-hidden] { margin: 0 4px; color: #a8a396; }

.osc-ig .is-up { color: var(--up); }
.osc-ig .is-down { color: var(--down); }

/* ---- Head ---------------------------------------------------------------- */
.osc-ig-head { max-width: 50rem; margin-bottom: 26px; padding-top: 18px; border-top: 4px double var(--ink); }
.osc-ig-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.osc-ig-kicker-tag { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 2px; background: var(--ink); color: #fff; }
.osc-ig-h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.osc-ig-dek { margin: 14px 0 0; color: #3b3a35; font-size: 1.12rem; line-height: 1.55; }
.osc-ig-h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 700; line-height: 1.15; }

/* ---- Picker, card and map ------------------------------------------------ */
.osc-ig-top { display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .osc-ig-top { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.osc-ig-pick { padding: 20px 20px 22px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 6px 6px 0 var(--cream); }
.osc-ig-pick-h { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.osc-ig-select { position: relative; }
.osc-ig-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
  pointer-events: none;
}
.osc-ig-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 10px 44px 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.osc-ig-select select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.osc-ig-select option { background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 400; }
.osc-ig-pick-hint { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; }

.osc-ig-card { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.osc-ig-card p { margin: 0; }
.osc-ig-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.osc-ig-card-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.osc-ig-badge {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.osc-ig .osc-ig-badge.is-up { background: var(--up); color: #fff; }
.osc-ig .osc-ig-badge.is-down { background: var(--down); color: #fff; }
.osc-ig .osc-ig-badge.is-flat { background: #7a766b; color: #fff; }
.osc-ig-card-rank { margin-top: 4px !important; color: var(--muted); font-size: 0.95rem; }
.osc-ig-card-net { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px !important; }
.osc-ig-card-big { font-family: Georgia, "Times New Roman", serif; font-feature-settings: "lnum" 1; font-size: 3.2rem; font-weight: 700; line-height: 1; }
.osc-ig-card-unit { color: #3b3a35; font-size: 0.95rem; }
.osc-ig-split { display: flex; height: 14px; margin-top: 14px; overflow: hidden; border-radius: 2px; background: var(--l2); }
.osc-ig-split-in { display: block; background: var(--g3); border-right: 2px solid #fff; }
.osc-ig-split-out { flex: 1; }
.osc-ig-split-key { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px !important; color: #3b3a35; font-size: 0.88rem; }
.osc-ig-split-key b { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.osc-ig-split-key span:first-child b { color: var(--up); }
.osc-ig-split-key span:last-child b { color: var(--down); }
.osc-ig-card-text { margin-top: 12px !important; color: #303030; font-size: 0.98rem; line-height: 1.5; }
.osc-ig-near { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px !important; }
.osc-ig-near-btn {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.osc-ig-near-btn:hover, .osc-ig-near-btn:focus-visible { border-color: var(--ink); }
.osc-ig-near-k { display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.osc-ig-share {
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.osc-ig-share:hover, .osc-ig-share:focus-visible { background: #fff; color: var(--ink); }

.osc-ig-map { position: relative; margin: 0; }
.osc-ig-fig-head { display: block; margin-bottom: 8px; }
.osc-ig-fig-h { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.osc-ig-fig-dek { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.osc-ig-map-box { min-height: 200px; }
.osc-ig-svg { display: block; width: 100%; height: auto; overflow: visible; }
.osc-ig-c { stroke: #fffff7; stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; }
.osc-ig-c:hover { stroke: var(--ink); stroke-width: 2; }
.osc-ig-c.is-sel { stroke: var(--ink); stroke-width: 4.5; }
.osc-ig-maplabel {
  fill: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fffff7;
  stroke-width: 5px;
  stroke-linejoin: round;
  pointer-events: none;
}
.osc-ig [data-bin="g4"] { fill: var(--g4); background: var(--g4); }
.osc-ig [data-bin="g3"] { fill: var(--g3); background: var(--g3); }
.osc-ig [data-bin="g2"] { fill: var(--g2); background: var(--g2); }
.osc-ig [data-bin="g1"] { fill: var(--g1); background: var(--g1); }
.osc-ig [data-bin="g0"] { fill: var(--g0); background: var(--g0); }
.osc-ig [data-bin="z"] { fill: #f3efe4; background: #f3efe4; }
.osc-ig [data-bin="l0"] { fill: var(--l0); background: var(--l0); }
.osc-ig [data-bin="l1"] { fill: var(--l1); background: var(--l1); }
.osc-ig [data-bin="l2"] { fill: var(--l2); background: var(--l2); }
.osc-ig [data-bin="l3"] { fill: var(--l3); background: var(--l3); }
.osc-ig [data-bin="na"] { fill: var(--na); background: var(--na); }

.osc-ig-legend {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 0 6px;
  max-width: 34rem;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.osc-ig-legend-k { display: block; margin-bottom: 4px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.osc-ig-legend-side:first-child .osc-ig-legend-k { text-align: left; }
.osc-ig-legend-side:last-child .osc-ig-legend-k { text-align: right; }
.osc-ig-legend-row { display: flex; }
.osc-ig-lg { display: flex; flex: 1; flex-direction: column; align-items: stretch; min-width: 0; }
.osc-ig-lg .osc-ig-sw { flex: none; width: auto; height: 14px; min-height: 14px; }
.osc-ig-lg-t { margin-top: 3px; text-align: center; white-space: nowrap; font-feature-settings: "lnum" 1; }
.osc-ig-lg-short { display: none; }
@media (max-width: 560px) {
  .osc-ig-lg-long { display: none; }
  .osc-ig-lg-short { display: inline; }
  .osc-ig-legend { font-size: 0.68rem; }
}
.osc-ig-sw { flex: 1; height: 14px; }
.osc-ig-legend-k { flex: none; padding: 0 8px; color: var(--ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.osc-ig-legend-side:first-child .osc-ig-legend-k { order: -1; }
.osc-ig-legend-ticks { display: none; }
.osc-ig-sw { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }

.osc-ig-tip {
  position: absolute;
  z-index: 5;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
}
.osc-ig-tip b { margin-right: 6px; }
.osc-ig .osc-ig-tip .is-up { color: #8fd3c3; }
.osc-ig .osc-ig-tip .is-down { color: #ffaaa0; }
.osc-ig-noscript { margin: 0; padding: 40px 16px; color: var(--muted); text-align: center; }

/* ---- Summary figures ----------------------------------------------------- */
.osc-ig-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 40px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.osc-ig-fact { margin: 0; padding: 14px 16px; border-left: 1px solid var(--rule); }
.osc-ig-fact:first-child { border-left: 0; padding-left: 0; }
.osc-ig-fact-n { display: block; font-family: Georgia, "Times New Roman", serif; font-feature-settings: "lnum" 1; font-size: 2.2rem; font-weight: 700; line-height: 1.05; }
.osc-ig-fact-k { display: block; margin-top: 4px; color: #3b3a35; font-size: 0.9rem; line-height: 1.35; }
@media (max-width: 720px) {
  .osc-ig-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osc-ig-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .osc-ig-fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .osc-ig-fact-n { font-size: 1.8rem; }
}

/* ---- The ranking --------------------------------------------------------- */
.osc-ig-rank-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 14px; }
.osc-ig-rank-dek { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.osc-ig-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.osc-ig-seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.osc-ig-seg button {
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.osc-ig-seg button + button { border-left: 2px solid var(--ink); }
.osc-ig-seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.osc-ig-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.osc-ig-sort select { min-height: 38px; padding: 4px 8px; border: 1px solid #b9b4a6; border-radius: 4px; background: #fff; color: var(--ink); font-size: 0.9rem; letter-spacing: 0; text-transform: none; }

.osc-ig-flowkey { display: flex; justify-content: space-between; max-width: calc(100% - 15rem); margin: 0 0 6px 10.5rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.osc-ig-flowkey[hidden] { display: none; }

.osc-ig-bars { border-top: 1px solid var(--ink); }
.osc-ig-row {
  display: grid;
  grid-template-columns: 2.2rem 8.3rem minmax(0, 1fr) 4.6rem;
  align-items: center;
  gap: 0 8px;
  width: 100%;
  min-height: 32px;
  padding: 3px 6px;
  border: 0;
  border-bottom: 1px solid #eeeae0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.osc-ig-row:hover { background: #f7f4ec; }
.osc-ig-row:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.osc-ig-row.is-sel { background: #fdf0ee; box-shadow: inset 5px 0 0 var(--ink); }
.osc-ig-row.is-sel .osc-ig-row-name { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.osc-ig-row-rank { color: var(--muted); font-feature-settings: "tnum" 1; font-size: 0.85rem; text-align: right; }
.osc-ig-row-name { overflow: hidden; font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }
.osc-ig-track { position: relative; display: block; height: 18px; }
.osc-ig-track::before { content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--z, 50%); border-left: 1.5px solid var(--ink); }
.osc-ig-track.is-flow::before { left: 50%; }
.osc-ig-bar { position: absolute; top: 0; bottom: 0; min-width: 2px; transform-origin: left center; }
.osc-ig-bar.is-up, .osc-ig-bar.is-in { background: var(--g3); }
.osc-ig-bar.is-down, .osc-ig-bar.is-out { background: var(--l2); }
.osc-ig-row.is-sel .osc-ig-bar.is-up, .osc-ig-row.is-sel .osc-ig-bar.is-in { background: var(--g4); }
.osc-ig-row.is-sel .osc-ig-bar.is-down, .osc-ig-row.is-sel .osc-ig-bar.is-out { background: var(--l3); }
.osc-ig-row-val { font-family: Georgia, "Times New Roman", serif; font-feature-settings: "lnum" 1, "tnum" 1; font-size: 1rem; font-weight: 700; text-align: right; }
.osc-ig-row-val.is-flow { display: flex; flex-direction: column; font-family: Arial, Helvetica, sans-serif; font-size: 0.72rem; font-weight: 400; line-height: 1.2; color: var(--muted); }
.osc-ig-row-val.is-flow span:first-child { color: var(--up); font-weight: 700; }
.osc-ig-row-val.is-flow span:last-child { color: var(--down); font-weight: 700; }
.osc-ig-bars.is-flow .osc-ig-row { grid-template-columns: 2.2rem 8.3rem minmax(0, 1fr) 5.4rem; }
.osc-ig-gap {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid #eeeae0;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #f1eee6 6px 12px);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.osc-ig-gap span { padding: 0 10px; background: var(--paper); }
.osc-ig-gap:hover span, .osc-ig-gap:focus-visible span { color: var(--ink); text-decoration: underline; }
.osc-ig-more { margin: 14px 0 0; text-align: center; }
.osc-ig-more-btn {
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.osc-ig-more-btn:hover, .osc-ig-more-btn:focus-visible { background: var(--ink); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .osc-ig-track .osc-ig-bar { animation: osc-ig-grow 0.5s ease-out both; }
  .osc-ig-track .osc-ig-bar.is-down, .osc-ig-track .osc-ig-bar.is-out { transform-origin: right center; }
}
@keyframes osc-ig-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .osc-ig-row { grid-template-columns: 1.6rem 6.4rem minmax(0, 1fr) 3.9rem; gap: 0 6px; padding: 3px 2px; }
  .osc-ig-bars.is-flow .osc-ig-row { grid-template-columns: 1.6rem 6.4rem minmax(0, 1fr) 4.6rem; }
  .osc-ig-row-name { font-size: 0.88rem; }
  .osc-ig-row-val { font-size: 0.9rem; }
  .osc-ig-flowkey { max-width: none; margin-left: 8.6rem; margin-right: 4.9rem; }
  .osc-ig-card-big { font-size: 2.7rem; }
  .osc-ig-h2 { font-size: 1.45rem; }
}

/* ---- Table and notes ----------------------------------------------------- */
.osc-ig-table { margin: 34px 0 0; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.osc-ig-table summary { padding: 12px 16px; font-weight: 700; cursor: pointer; }
.osc-ig-table-scroll { max-height: 32rem; overflow: auto; border-top: 1px solid var(--rule); }
.osc-ig-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.osc-ig-table caption { padding: 10px 16px; color: var(--muted); font-size: 0.85rem; text-align: left; }
.osc-ig-table th, .osc-ig-table td { padding: 6px 16px; border-bottom: 1px solid #eeeae0; text-align: right; font-feature-settings: "tnum" 1; }
.osc-ig-table th[scope="row"], .osc-ig-table thead th:nth-child(2) { text-align: left; }
.osc-ig-table thead th { position: sticky; top: 0; background: var(--cream); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.osc-ig-table td:first-child { color: var(--muted); }
.osc-ig-table td:last-child { font-weight: 700; }

.osc-ig-about { max-width: 46rem; margin-top: 40px; padding-top: 18px; border-top: 3px solid var(--ink); }
.osc-ig-about p { margin: 10px 0 0; color: #303030; line-height: 1.6; }
.osc-ig-links { display: flex; flex-direction: column; gap: 6px; }
.osc-ig-links a, .osc-ig-back a { color: #1d4ed8; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.osc-ig-credit { color: var(--muted) !important; font-size: 0.85rem; }
.osc-ig-back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 36px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }

/* ---- The index (/graphs) ------------------------------------------------- */
.osc-ig-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 800px) { .osc-ig-list { grid-template-columns: minmax(0, 1fr); } }
.osc-ig-item { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 6px 6px 0 var(--cream); }
.osc-ig-item:hover, .osc-ig-item:focus-visible { box-shadow: 6px 6px 0 var(--red); }
.osc-ig-item img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 2px solid var(--ink); }
.osc-ig-item-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.osc-ig-item-k { color: var(--red); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.osc-ig-item-h { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.osc-ig-item-p { margin: 8px 0 0; color: #3b3a35; line-height: 1.5; }
.osc-ig-item-go { margin-top: auto; padding-top: 14px; font-weight: 700; }
.osc-ig-maps-link { margin: 34px 0 0; padding: 16px 18px; border-left: 5px solid var(--red); background: var(--cream); }
.osc-ig-maps-link a { color: var(--ink); font-weight: 700; }
