/* ==========================================================================
   IBH data pages v2 — shared design system
   Everything is scoped under .ibh-data.ibh-v2 so it can be dropped into a wp:html block.
   ========================================================================== */
.ibh-data.ibh-v2 {
  /* surfaces: the site's own near-black, plus two lifts */
  --bg: #05070f;
  --stage: #090e1d;
  --surface: #0f1528;
  --surface-2: #171e35;
  --line: rgba(237, 235, 228, 0.13);
  --line-strong: rgba(237, 235, 228, 0.28);
  /* ink */
  --ink: #edebe4;
  --ink-2: #c9c7cc;
  --muted: #a3a2ae;
  /* brand */
  --red: #e5252c;
  --link: #ff8f92;
  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* layout */
  --gutter: 40px;
  --max: 1360px;

  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.ibh-data.ibh-v2 *, .ibh-data.ibh-v2 *::before, .ibh-data.ibh-v2 *::after { box-sizing: border-box; }
.ibh-data.ibh-v2 [hidden] { display: none !important; }
.ibh-data.ibh-v2 h1, .ibh-data.ibh-v2 h2, .ibh-data.ibh-v2 h3, .ibh-data.ibh-v2 h4, .ibh-data.ibh-v2 p, .ibh-data.ibh-v2 ul, .ibh-data.ibh-v2 ol, .ibh-data.ibh-v2 figure { margin: 0; padding: 0; }
.ibh-data.ibh-v2 ul, .ibh-data.ibh-v2 ol { list-style: none; }
.ibh-data.ibh-v2 a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; border-bottom: 0; padding-bottom: 0; }
.ibh-data.ibh-v2 li { margin: 0; padding: 0; }
.ibh-data.ibh-v2 .figure, .ibh-data.ibh-v2 .section, .ibh-data.ibh-v2 .data-related { scroll-margin-top: 96px; }
.ibh-data.ibh-v2 a:hover { color: #fff; }
.ibh-data.ibh-v2 button, .ibh-data.ibh-v2 input, .ibh-data.ibh-v2 select { font: inherit; color: inherit; }
.ibh-data.ibh-v2 :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.ibh-data.ibh-v2 .num { font-variant-numeric: tabular-nums; }

.ibh-data.ibh-v2 .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- type roles ---- */
.ibh-data.ibh-v2 .kicker {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ibh-data.ibh-v2 .kicker b { color: var(--ink); font-weight: 600; }
.ibh-data.ibh-v2 .display {
  font: 440 clamp(30px, 2.9vw, 43px)/1.07 var(--serif);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 100;
  text-wrap: balance;
}
.ibh-data.ibh-v2 .display em { font-style: normal; color: var(--hot, #ffd97a); }
.ibh-data.ibh-v2 .dek { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }
.ibh-data.ibh-v2 .h2 {
  font: 440 clamp(26px, 2.3vw, 36px)/1.12 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.ibh-data.ibh-v2 .h3 { font: 600 15px/1.35 var(--sans); letter-spacing: 0; }
.ibh-data.ibh-v2 .small { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ibh-data.ibh-v2 .lede { font-size: 16px; color: var(--ink-2); max-width: 72ch; }

/* ---- hero ---- */
.ibh-data.ibh-v2 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ibh-data.ibh-v2 .v2-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding-block: 22px 0; font: 600 11.5px/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ibh-data.ibh-v2 .v2-meta h1 { font: inherit; letter-spacing: inherit; color: var(--ink); }
.ibh-data.ibh-v2 .v2-meta .data-date { margin-left: auto; }
.ibh-data.ibh-v2 .data-date { font: 600 11.5px/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ibh-data.ibh-v2 .v2-hero { padding-block: 18px 30px; }
.ibh-data.ibh-v2 .v2-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; }
.ibh-data.ibh-v2 .v2-hero .display { font: 440 clamp(32px, 3.1vw, 48px)/1.05 var(--serif); letter-spacing: -0.022em; max-width: 24ch; margin: 0; }
.ibh-data.ibh-v2 .v2-hero .display em { white-space: nowrap; }
.ibh-data.ibh-v2 .v2-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding-bottom: 4px; }
.ibh-data.ibh-v2 .v2-stats li { padding: 2px 20px 2px 22px; border-left: 1px solid var(--line-strong); }
.ibh-data.ibh-v2 .v2-stats .n { display: block; font: 440 clamp(30px, 2.7vw, 42px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.ibh-data.ibh-v2 .v2-stats .n i { font-style: normal; color: var(--muted); font-size: 0.62em; padding: 0 0.18em; position: relative; top: -0.12em; }
.ibh-data.ibh-v2 .v2-stats .l { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); max-width: 24ch; text-wrap: balance; }
.ibh-data.ibh-v2 .v2-stats.two .n { font-size: clamp(26px, 2.3vw, 36px); }
.ibh-data.ibh-v2 .hero-split .display { max-width: none; }

/* ---- figure: the screenshot-able unit. Title/controls, plot, conditions, credit ---- */
.ibh-data.ibh-v2 .figure {
  background:
    radial-gradient(1200px 500px at 30% 0%, rgba(40, 58, 120, 0.28), transparent 70%),
    var(--stage);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ibh-data.ibh-v2 .figure-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px 0;
}
.ibh-data.ibh-v2 .figure-bar .spacer { flex: 1 1 auto; }
.ibh-data.ibh-v2 .figure-title { font: 600 15px/1.3 var(--sans); }
.ibh-data.ibh-v2 .figure-title span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ibh-data.ibh-v2 .figure-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end;
  padding: 14px 0 18px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.ibh-data.ibh-v2 .figure-foot .conditions { max-width: 110ch; }
.ibh-data.ibh-v2 .figure-foot .conditions b { color: var(--ink-2); font-weight: 600; }
.ibh-data.ibh-v2 .figure-foot .credit { white-space: nowrap; color: var(--ink-2); font-weight: 500; }

/* ---- controls ---- */
.ibh-data.ibh-v2 .seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(5, 7, 15, 0.6);
  max-width: 100%;
}
.ibh-data.ibh-v2 .seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  font: 500 13.5px/1.2 var(--sans); color: var(--ink-2); white-space: nowrap;
}
.ibh-data.ibh-v2 .seg button:hover { color: #fff; }
.ibh-data.ibh-v2 .seg button[aria-pressed="true"] { background: var(--ink); color: #0a0d18; font-weight: 600; }
.ibh-data.ibh-v2 .field { display: inline-flex; flex-direction: column; gap: 5px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ibh-data.ibh-v2 .field > .seg, .ibh-data.ibh-v2 .field > select, .ibh-data.ibh-v2 .field > input { letter-spacing: 0; text-transform: none; }
.ibh-data.ibh-v2 select, .ibh-data.ibh-v2 input[type="search"], .ibh-data.ibh-v2 input[type="number"], .ibh-data.ibh-v2 input[type="text"] {
  height: 38px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: rgba(5, 7, 15, 0.6); color: var(--ink);
  font: 500 14px/1 var(--sans);
}
.ibh-data.ibh-v2 select { padding-right: 30px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23edebe4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.ibh-data.ibh-v2 select option { background: #0f1528; color: #edebe4; }
.ibh-data.ibh-v2 .btn-ghost {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; cursor: pointer;
  padding: 8px 16px; font: 500 13.5px/1.2 var(--sans); color: var(--ink);
}
.ibh-data.ibh-v2 .btn-ghost:hover { background: rgba(237, 235, 228, 0.08); }

/* ---- legend ---- */
.ibh-data.ibh-v2 .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.ibh-data.ibh-v2 .legend .key { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ibh-data.ibh-v2 .legend .sw { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.ibh-data.ibh-v2 .legend .ramp { display: inline-flex; }
.ibh-data.ibh-v2 .legend .ramp i { display: block; height: 14px; }
.ibh-data.ibh-v2 .hatch {
  background-color: #1b2135;
  background-image: repeating-linear-gradient(135deg, rgba(237, 235, 228, 0.5) 0 1.5px, transparent 1.5px 5px);
  outline: 1px dashed rgba(237, 235, 228, 0.55); outline-offset: -1px;
}

/* ---- map ---- */
.ibh-data.ibh-v2 .map { display: block; width: 100%; height: auto; overflow: visible; }
.ibh-data.ibh-v2 .map .st { stroke: var(--stage); stroke-width: 1; stroke-linejoin: round; cursor: pointer; transition: opacity 0.15s; }
.ibh-data.ibh-v2 .map .st:hover, .ibh-data.ibh-v2 .map .st.is-hover { stroke: #fff; stroke-width: 1.5; }
.ibh-data.ibh-v2 .map .st.is-selected { stroke: #fff; stroke-width: 2.5; }
.ibh-data.ibh-v2 .map .st.is-dim { opacity: 0.22; }
.ibh-data.ibh-v2 .map .lbl { font: 600 10.5px/1 var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; letter-spacing: 0.02em; }
.ibh-data.ibh-v2 .map .hatch-line { stroke: rgba(237, 235, 228, 0.5); stroke-width: 1.4; }
.ibh-data.ibh-v2 .map .st.is-unconfirmed { stroke: rgba(237, 235, 228, 0.6); stroke-dasharray: 3 2.5; }
.ibh-data.ibh-v2 .map .st.is-unconfirmed.is-selected { stroke: #fff; stroke-dasharray: none; }

/* ---- tooltip ---- */
.ibh-data.ibh-v2 .tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 280px;
  background: #f4f2ec; color: #0b0d16; border-radius: 8px; padding: 9px 12px;
  font-size: 13px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.ibh-data.ibh-v2 .tip b { display: block; font-weight: 700; }
.ibh-data.ibh-v2 .tip .v { font: 600 17px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.ibh-data.ibh-v2 .tip i { font-style: normal; color: #4c4d5a; }

/* ---- pills / flags ---- */
.ibh-data.ibh-v2 .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); font: 600 11.5px/1.3 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); white-space: nowrap;
}
.ibh-data.ibh-v2 .pill.warn { border-style: dashed; border-color: rgba(237, 235, 228, 0.6); color: var(--ink); }
.ibh-data.ibh-v2 .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.ibh-data.ibh-v2 .dot.on { background: #6fd3b8; }
.ibh-data.ibh-v2 .dot.off { background: transparent; border: 1.5px solid #7d7f92; }

/* ---- sections below the figure ---- */
.ibh-data.ibh-v2 .section { padding-block: 64px 0; }
.ibh-data.ibh-v2 .section:last-of-type { padding-bottom: 72px; }
.ibh-data.ibh-v2 .section-head { display: grid; gap: 10px; margin-bottom: 26px; max-width: 78ch; }
.ibh-data.ibh-v2 .rule-top { border-top: 1px solid var(--line); padding-top: 18px; }
.ibh-data.ibh-v2 .cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.ibh-data.ibh-v2 .cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.ibh-data.ibh-v2 .prose p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.ibh-data.ibh-v2 .prose p + p { margin-top: 10px; }
.ibh-data.ibh-v2 .prose strong { color: var(--ink); }

.ibh-data.ibh-v2 .stat .n { font: 440 clamp(34px, 3vw, 46px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ibh-data.ibh-v2 .stat .l { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 34ch; }

/* ---- data table (hairlines only) ---- */
.ibh-data.ibh-v2 table.data { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; background: transparent; color: inherit; display: table; border: 0; border-radius: 0; }
.ibh-data.ibh-v2 table.data th, .ibh-data.ibh-v2 table.data td, .ibh-data.ibh-v2 table.data tbody tr:nth-child(even) td, .ibh-data.ibh-v2 table.data tbody tr:hover td, .ibh-data.ibh-v2 table.data tbody th, .ibh-data.ibh-v2 table.data thead th { background: transparent; border-right: 0; white-space: normal; }
.ibh-data.ibh-v2 table.data th, .ibh-data.ibh-v2 table.data td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ibh-data.ibh-v2 table.data thead th { font: 600 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); padding-bottom: 9px; }
.ibh-data.ibh-v2 table.data tbody th { font-weight: 600; }
.ibh-data.ibh-v2 table.data td.r, .ibh-data.ibh-v2 table.data th.r { text-align: right; padding-right: 0; padding-left: 14px; }
.ibh-data.ibh-v2 table.data tbody tr.clickable { cursor: pointer; }
.ibh-data.ibh-v2 table.data tbody tr.clickable:hover { background: rgba(237, 235, 228, 0.045); }
.ibh-data.ibh-v2 table.data small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }

.ibh-data.ibh-v2 .downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ibh-data.ibh-v2 .data-cite { margin-top: 18px; font-size: 14px; color: var(--ink-2); max-width: 90ch; overflow-wrap: anywhere; }
.ibh-data.ibh-v2 .data-related { padding-block: 40px 72px; }
.ibh-data.ibh-v2 .data-related ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; font-size: 15.5px; }
.ibh-data.ibh-v2 .data-related h2 { font: 600 12px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ibh-data.ibh-v2 .downloads a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font: 500 13.5px/1.2 var(--sans);
}
.ibh-data.ibh-v2 .downloads a:hover { background: rgba(237, 235, 228, 0.08); }
.ibh-data.ibh-v2 .downloads a::before { content: "↓"; color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .ibh-data.ibh-v2 { --gutter: 28px; }
  .ibh-data.ibh-v2 .v2-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .ibh-data.ibh-v2 .v2-hero .display { max-width: 26ch; }
}
@media (max-width: 760px) {
  .ibh-data.ibh-v2 { --gutter: 20px; font-size: 15.5px; }
  .ibh-data.ibh-v2 .v2-meta { padding-top: 16px; }
  .ibh-data.ibh-v2 .v2-meta .data-date { margin-left: 0; }
  .ibh-data.ibh-v2 .v2-hero { padding-block: 12px 22px; }
  .ibh-data.ibh-v2 .v2-hero .display { font-size: 31px; line-height: 1.07; max-width: none; }
  .ibh-data.ibh-v2 .v2-stats { margin-top: 2px; }
  .ibh-data.ibh-v2 .v2-stats li { padding: 0 8px 0 12px; }
  .ibh-data.ibh-v2 .v2-stats li:first-child { padding-left: 0; border-left: 0; }
  .ibh-data.ibh-v2 .v2-stats .n { font-size: 25px; }
  .ibh-data.ibh-v2 .v2-stats.two .n { font-size: 21px; }
  .ibh-data.ibh-v2 .v2-stats .l { margin-top: 6px; font-size: 12px; line-height: 1.35; }
  .ibh-data.ibh-v2 .section { padding-top: 48px; }
  .ibh-data.ibh-v2 .cols-3, .ibh-data.ibh-v2 .cols-2 { grid-template-columns: 1fr; gap: 26px; }
  .ibh-data.ibh-v2 .figure-foot { grid-template-columns: 1fr; }
  .ibh-data.ibh-v2 .figure-foot .credit { white-space: normal; }
  .ibh-data.ibh-v2 .seg { overflow-x: auto; scrollbar-width: none; }
  .ibh-data.ibh-v2 .seg::-webkit-scrollbar { display: none; }
  .ibh-data.ibh-v2 .seg button { padding: 8px 12px; font-size: 13px; }
}


/* ============================ page 1 ============================ */
.ibh-data.p1 { --hot: #ffe08a; }
.ibh-data.p1 .stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 40px; align-items: start; padding-bottom: 18px; }
.ibh-data.p1 .map-col { min-width: 0; }
.ibh-data.p1 .legend { flex: 1 1 auto; justify-content: center; gap: 8px 22px; }
.ibh-data.p1 .legend button.key { border: 0; background: transparent; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; cursor: pointer; color: inherit; font: inherit; }
@media (hover: hover) { .ibh-data.p1 .legend button.key:hover { background: rgba(237, 235, 228, 0.08); } }
.ibh-data.p1 .legend button.key[aria-pressed="true"] { background: rgba(237, 235, 228, 0.14); color: #fff; }
.ibh-data.p1 .legend .hint { color: var(--muted); }

/* panel */
.ibh-data.p1 .panel { border-left: 1px solid var(--line); padding-left: 32px; min-height: 100%; }
.ibh-data.p1 .panel-scroll { max-height: 560px; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(237,235,228,.3) transparent; }
.ibh-data.p1 .panel h2 { font: 440 20px/1.18 var(--serif); letter-spacing: -0.01em; margin-top: 8px; text-wrap: balance; }
.ibh-data.p1 .panel .sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ibh-data.p1 .rank { margin-top: 10px; display: grid; }
.ibh-data.p1 .rank button {
  display: grid; grid-template-columns: 22px 118px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  border: 0; background: transparent; padding: 3.5px 6px; margin: 0 -6px; border-radius: 6px; cursor: pointer; text-align: left;
  font: 500 13.5px/1.2 var(--sans); color: var(--ink);
}
.ibh-data.p1 .rank button:hover, .ibh-data.p1 .rank button.is-hover { background: rgba(237, 235, 228, 0.09); }
.ibh-data.p1 .rank .r { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.ibh-data.p1 .rank .bar { height: 10px; border-radius: 0 3px 3px 0; min-width: 2px; }
.ibh-data.p1 .rank .track { display: block; }
.ibh-data.p1 .rank .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.ibh-data.p1 .bignum { font: 440 64px/1 var(--serif); letter-spacing: -0.03em; margin-top: 12px; }
.ibh-data.p1 .bignum small { font: 500 15px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-2); display: block; margin-top: 8px; }
.ibh-data.p1 .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ibh-data.p1 .chips button { border: 1px dashed rgba(237,235,228,.5); background: transparent; border-radius: 999px; padding: 4px 10px; font: 500 12.5px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.ibh-data.p1 .chips button:hover { background: rgba(237, 235, 228, 0.1); }

/* state detail */
.ibh-data.p1 .back { border: 0; background: transparent; padding: 0; cursor: pointer; font: 600 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.ibh-data.p1 .back:hover { color: #fff; }
.ibh-data.p1 .detail .grp { margin-top: 14px; }
.ibh-data.p1 .detail h2 { font-size: 30px; margin-top: 6px; }
.ibh-data.p1 .detail .amount { font: 440 40px/1.05 var(--serif); letter-spacing: -0.02em; margin-top: 10px; overflow-wrap: anywhere; }
.ibh-data.p1 .detail .amount.wordy { font-size: 27px; }
.ibh-data.p1 .detail .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ibh-data.p1 .detail .note { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ibh-data.p1 .detail .meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ibh-data.p1 .detail .meta b { color: var(--ink-2); font-weight: 600; }
.ibh-data.p1 .flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ibh-data.p1 .flags > div { padding: 10px 10px 10px 0; }
.ibh-data.p1 .flags > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.ibh-data.p1 .flags .k { font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ibh-data.p1 .flags .v { margin-top: 5px; display: flex; align-items: center; gap: 7px; font: 600 13.5px/1.25 var(--sans); }
.ibh-data.p1 .roles { margin-top: 14px; }
.ibh-data.p1 .roles .k { font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ibh-data.p1 .roles ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ibh-data.p1 .roles li { display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 999px; font: 500 12.5px/1.3 var(--sans); border: 1px solid var(--line-strong); }
.ibh-data.p1 .roles li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(163,162,174,.6); }
.ibh-data.p1 .roles li.unk { border-style: dashed; color: var(--ink-2); }
.ibh-data.p1 .roles li i { font-style: normal; font-weight: 700; }
.ibh-data.p1 .more { margin-top: 14px; border-top: 1px solid var(--line); }
.ibh-data.p1 .more details { border-bottom: 1px solid var(--line); }
.ibh-data.p1 .more summary { list-style: none; cursor: pointer; padding: 10px 22px 10px 0; font: 600 13.5px/1.3 var(--sans); position: relative; }
.ibh-data.p1 .more summary::-webkit-details-marker { display: none; }
.ibh-data.p1 .more summary::after { content: "+"; position: absolute; right: 2px; top: 8px; font-weight: 400; font-size: 18px; color: var(--muted); }
.ibh-data.p1 .more details[open] summary::after { content: "–"; }
.ibh-data.p1 .more summary span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.ibh-data.p1 .more .body { padding: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); display: grid; gap: 6px; }
.ibh-data.p1 .more .body .source { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ibh-data.p1 .more .body .excerpt { font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--line-strong); padding-left: 10px; overflow-wrap: anywhere; }

/* tile map (alt direction) */
.ibh-data.p1 .tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.ibh-data.p1 .tile {
  aspect-ratio: 1.58; border: 0; border-radius: 5px; padding: 6px 7px 6px; cursor: pointer; text-align: left; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
  font: 700 13px/1 var(--sans); transition: opacity .15s;
}
.ibh-data.p1 .tile .t { font: 500 11px/1.15 var(--sans); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ibh-data.p1 .tile .t.money { font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; display: block; }
.ibh-data.p1 .tile-mode.stage-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ibh-data.p1 .tile-mode .panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.ibh-data.p1 .tile-mode .panel-scroll { max-height: none; overflow: visible; }
.ibh-data.p1 .tile-mode .rank { display: block; columns: 2; column-gap: 56px; max-width: 1000px; }
.ibh-data.p1 .tile-mode .rank button { width: 100%; break-inside: avoid; }
.ibh-data.p1 .tile-mode .detail { max-width: 760px; }
.ibh-data.p1 .tile:hover, .ibh-data.p1 .tile.is-hover { outline: 1.5px solid #fff; outline-offset: 1px; }
.ibh-data.p1 .tile.is-selected { outline: 3px solid #fff; outline-offset: 1px; }
.ibh-data.p1 .tile.is-dim { opacity: 0.22; }
.ibh-data.p1 .tile.is-hatch { outline: 1px dashed rgba(237,235,228,.6); outline-offset: -1px; }
.ibh-data.p1 .tile.is-hatch.is-selected { outline: 3px solid #fff; outline-offset: 1px; }

/* below the figure */
.ibh-data.p1 .group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.ibh-data.p1 .group h3 { display: flex; gap: 10px; align-items: baseline; font: 600 16px/1.3 var(--sans); }
.ibh-data.p1 .group h3 i { font: 600 11px/1 var(--sans); font-style: normal; letter-spacing: 0.1em; color: #0a0d18; background: #8fa6d6; border-radius: 4px; padding: 4px 6px; flex: none; position: relative; top: -1px; }
.ibh-data.p1 .group p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ibh-data.p1 .group ul { margin-top: 10px; border-top: 1px solid var(--line); }
.ibh-data.p1 .group.wide { grid-column: 1 / -1; }
.ibh-data.p1 .group.wide ul { columns: 3; column-gap: 40px; border-top: 0; }
.ibh-data.p1 .group.wide li { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: 0; }
.ibh-data.p1 .group li { border-bottom: 1px solid var(--line); }
.ibh-data.p1 .group li button { width: 100%; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; border: 0; background: transparent; cursor: pointer; padding: 9px 4px; text-align: left; font: 500 14.5px/1.3 var(--sans); color: var(--ink); }
.ibh-data.p1 .group li button:hover { background: rgba(237, 235, 228, 0.06); }
.ibh-data.p1 .group li button span:last-child { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.ibh-data.p1 .unconf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.ibh-data.p1 .unconf button { border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; padding: 14px 4px 14px 0; color: var(--ink); font: inherit; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 4px 10px; align-content: start; }
.ibh-data.p1 .unconf button:hover { background: rgba(237, 235, 228, 0.05); }
.ibh-data.p1 .unconf .sw { width: 14px; height: 14px; border-radius: 3px; margin-top: 3px; grid-column: 1 !important; }
.ibh-data.p1 .unconf b { font-weight: 600; font-size: 15px; grid-column: 2; }
.ibh-data.p1 .unconf span { grid-column: 2; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.ibh-data.p1 .unconf span.q { color: var(--muted); font-size: 13px; }
.ibh-data.p1 .fed { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: 32px 56px; align-items: start; }
.ibh-data.p1 .tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; align-items: end; }
.ibh-data.p1 .tools .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.ibh-data.p1 td.flag { white-space: nowrap; font-size: 13.5px; color: var(--ink-2); }
.ibh-data.p1 td.flag .dot { margin-right: 7px; }
.ibh-data.p1 .show-all { margin-top: 16px; }
.ibh-data.p1 .related { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }

@media (max-width: 1100px) {
  .ibh-data.p1 .figure-bar .legend { justify-content: flex-start; flex-basis: 100%; order: 3; }
  .ibh-data.p1 .stage-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ibh-data.p1 .panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .ibh-data.p1 .panel-scroll { max-height: none; overflow: visible; padding-right: 0; }
  .ibh-data.p1 .group-grid { grid-template-columns: 1fr 1fr; }
  .ibh-data.p1 .group.wide ul { columns: 2; }
  .ibh-data.p1 .unconf { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ibh-data.p1 .tile-mode .rank { columns: 1; }
  .ibh-data.p1 .tile { aspect-ratio: 1; }
  .ibh-data.p1 .figure-bar .jump { flex: 1 1 100%; order: 2; }
  .ibh-data.p1 .figure-bar .legend { order: 3; justify-content: flex-start; flex-basis: 100%; }
  .ibh-data.p1 .map .lbl, .ibh-data.p1 .map .mini { display: none; }
  .ibh-data.p1 .tiles { gap: 2px; }
  .ibh-data.p1 .tile { padding: 0; align-items: center; justify-content: center; font-size: 10px; border-radius: 3px; }
  .ibh-data.p1 .tile .t, .ibh-data.p1 .tile .t.money { display: none; }
  .ibh-data.p1 .group-grid { grid-template-columns: 1fr; gap: 28px; }
  .ibh-data.p1 .group.wide ul { columns: 1; }
  .ibh-data.p1 .unconf { grid-template-columns: 1fr; }
  .ibh-data.p1 .fed { grid-template-columns: 1fr; gap: 22px; }
  .ibh-data.p1 .bignum { font-size: 52px; }
  .ibh-data.p1 table.data .col-structure { display: none; }
  .ibh-data.p1 table.data { font-size: 13.5px; }
  .ibh-data.p1 table.data th, .ibh-data.p1 table.data td { padding-right: 8px; }
  .ibh-data.p1 td.flag span.w { display: none; }
  .ibh-data.p1 td.flag, .ibh-data.p1 th.flag { text-align: center; padding-right: 0; width: 44px; }
  .ibh-data.p1 td.flag .dot { margin: 0; }
  .ibh-data.p1 .tools .count { margin-left: 0; flex-basis: 100%; }
  .ibh-data.p1 .tools .field { flex: 1 1 140px; }
  .ibh-data.p1 .tools .field input, .ibh-data.p1 .tools .field select { width: 100%; }
  .ibh-data.p1 .rank button { grid-template-columns: 20px 112px minmax(0, 1fr) auto; }
}

.ibh-data.p1 .detail .body p,.ibh-data.p1 .detail > .pension-item > p:not(.source),.ibh-data.p1 .tip p,.ibh-data.p1 .tip i,.ibh-data.p1 #table td{white-space:pre-line}

@media(max-width:1100px){.ibh-data.p1 #panel{scroll-margin-top:calc(var(--ibh-header-height,76px) + 14px)}.ibh-data.p1 .map .mini{display:inline}.ibh-data.p1 .map{touch-action:manipulation}}
.ibh-data.p1 .tip{width:max-content;max-height:calc(100dvh - 16px);box-sizing:border-box;overflow-y:auto}

.ibh-data.p1 #view{flex-wrap:wrap;justify-content:flex-start;overflow:visible}
.ibh-data.p1 .figure-bar{align-items:end}
.ibh-data.p1 #jump{display:block;max-width:100%}
.ibh-data.p1 .figure-bar .field[hidden]{display:none}
.ibh-data.p1 .state-name{border:none;background:none;color:var(--ink);font:inherit;cursor:pointer;text-align:left;padding:0}
.ibh-data.p1 .pension-item{margin-block:12px 18px;overflow-wrap:anywhere}
.ibh-data.p1 .pension-item p,.ibh-data.p1 .detail .body p{margin-block:8px}
.ibh-data.p1 #panel .body,.ibh-data.p1 #tbody td{overflow-wrap:anywhere}
.ibh-data.p1 .tip{max-width:min(420px,92vw);white-space:normal}
.ibh-data.p1 .tip p{margin:4px 0;color:inherit}
.ibh-data.p1 #all .tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.ibh-data.p1 #all select,.ibh-data.p1 #all input{max-width:100%}
@media(max-width:760px){
.ibh-data.p1 #view{border-radius:12px;display:grid;grid-template-columns:1fr 1fr;width:100%;padding:4px;gap:3px}
.ibh-data.p1 #view button{white-space:normal;min-height:40px;padding:5px 8px}
.ibh-data.p1 #structures .group button{display:grid;grid-template-columns:minmax(96px,1fr) minmax(0,1.8fr);gap:10px;width:100%;align-items:start}
.ibh-data.p1 #structures .group button span:first-child{overflow-wrap:normal}
.ibh-data.p1 #all #count{order:5;flex-basis:100%}
.ibh-data.p1 #all .tools label{flex:1 1 45%;min-width:0}
.ibh-data.p1 #all .tools input,.ibh-data.p1 #all .tools select{width:100%;min-width:0}
.ibh-data.p1 #table,.ibh-data.p1 #tbody{display:block}
.ibh-data.p1 #table thead{display:none}
.ibh-data.p1 #all .tools .field{flex:1 1 100%;min-width:0}
.ibh-data.p1 #tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px 0;border-bottom:1px solid var(--line)}
.ibh-data.p1 #tbody th,.ibh-data.p1 #tbody td{display:block;border:none;padding:0;text-align:left}
.ibh-data.p1 #tbody th,.ibh-data.p1 #tbody td:nth-child(2),.ibh-data.p1 #tbody tr:has(td:last-child:nth-child(3)) td{grid-column:1/-1}
.ibh-data.p1 #tbody td::before{content:attr(data-label);display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.ibh-data.p1 .group button,.ibh-data.p1 .unconf button{overflow-wrap:anywhere}
}
@media(min-width:761px){.ibh-data.p1 #tbody td:is([data-label="Education aid"],[data-label="Paid health"],[data-label="Survivor-paid health"],[data-label="Dedicated funeral payment"])>span{overflow-wrap:normal}.ibh-data.p1 #tbody td:not([data-label="Plan conditions"])>.measure-note{max-width:46ch}}

.ibh-data.p1 .rank button{margin-inline:0}.ibh-data.p1 .panel-scroll{max-height:none;overflow:visible}.ibh-data.p1 #method .prose h3{margin:24px 0 8px}.ibh-data.p1 .roles ul{display:block}.ibh-data.p1 .roles li{display:block;border:0;padding:0;margin:4px 0;text-decoration:none}.ibh-data.p1 .detail .source a{overflow-wrap:anywhere}@media(min-width:1150px){.ibh-data.p1 .figure-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px}.ibh-data.p1 #view{grid-column:1;grid-row:1;justify-self:start}.ibh-data.p1 .figure-bar .field,.ibh-data.p1 #legend{grid-column:1;justify-self:start}.ibh-data.p1 #jump{grid-column:2;grid-row:1;justify-self:end}}
