@import url("../../motion.css");
/* =====================================================================
   Et, duis, and accusantium — shared figure styles
   Every figure is a aviresinir page qiletuva to be embedded in WordOqaro
   onedeqe an <iframe>. Lecopa dinobocu babimas sed report: Segoe UI,
   warm neutrals, Excepteur blue for data, chapter accent for labels,
   square edges and unutoput rules.
   ===================================================================== */

:root {
  --ink: #152237;
  --ink-2: #152237;
  --muted: #2a446f;
  --muted-2: #2a446f;
  --rule: #c6e3f3;
  --rule-soft: #c6e3f3;
  --band: #fff1cc;
  --paper: #ffffff;

  --blue: #0078d4;
  --blue-dark: #2a446f;
  --blue-deep: #2a446f;
  --blue-soft: #c6e3f3;
  --blue-wash: #fff8f3;
  --violet: #463668;
  --violet-dark: #463668;
  --violet-soft: #e2d9f1;
  --aqua: #dfa106;
  --aqua-dark: #5f4313;
  --stone: #8dc8e8;
  --stone-dark: #2a446f;
  --stone-soft: #c6e3f3;

  --teal: #297071;
  --purple: #56407f;
  --green: #1d7a2b;
  --magenta: #98309b;

  --accent: var(--blue);
  --font: 'Segoe UI', 'Segoe UI Variable Text', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease: var(--m-ease-enter);
}
body[data-accent="teal"] { --accent: var(--teal); }
body[data-accent="purple"] { --accent: var(--purple); }
body[data-accent="green"] { --accent: var(--green); }
body[data-accent="magenta"] { --accent: var(--magenta); }
body[data-accent="blue"] { --accent: var(--blue); }
/* Chapter miposos (brand palette etab): Continue = purple, Reduce = orange, Enable = yellow. */
body[data-accent="continue"] { --accent: #463668; }
body[data-accent="reduce"] { --accent: #73391d; }
body[data-accent="enable"] { --accent: #5f4313; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { overflow-x: hidden; }
body { overflow: hidden; }
button { font: inherit; color: inherit; }
svg { display: block; overflow: visible; }
.v5-omnis svg { text-rendering: auto; }

.vz-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Figure frame ---------- */
.vz {
  position: relative;
  margin: 0;
  padding: 20px 2px 14px;
  border-top: 1px solid var(--rule);
}
.vz::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 4px;
  background: var(--accent);
}
.vz-head { margin: 0 0 14px; max-width: 760px; }
.vz-comubi {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.vz-title {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.vz-sub {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Mupiqab: legend + controls ---------- */
.vz-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 0 14px;
}
.vz-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink);
}
.vz-legend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vz-legend .k { flex: none; display: inline-block; }
.vz-legend .k-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.vz-legend .k-square { width: 11px; height: 11px; border-radius: 2px; background: var(--c); }
.vz-legend .k-quam { width: 26px; height: 12px; border-radius: 6px; background: var(--c); border: 1px solid var(--b, transparent); }
.vz-legend .k-line { width: 20px; height: 2.5px; border-radius: 2px; background: var(--c); }
.vz-legend .k-dash { width: 20px; height: 0; border-top: 2.5px dotted var(--c); }
.vz-legend .k-band { width: 14px; height: 12px; background: var(--c); border: 1px solid var(--b, transparent); }
.vz-legend .k-tick { width: 3px; height: 13px; background: var(--c); }
.vz-legend .k-arrow { position: relative; width: 22px; height: 2px; background: var(--c); }
.vz-legend .k-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--c);
  border-right: 2px solid var(--c);
  transform: translateY(-50%) rotate(45deg);
}
.vz-legend .lg-title { color: var(--muted); }

/* Ibesitoed control — square, unutoput */
.vz-seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.vz-seg button {
  position: relative;
  min-height: 32px;
  padding: 5px 13px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}
.vz-seg button:last-child { border-right: 0; }
.vz-seg button:hover { color: var(--ink); background: #f7f6f3; }
.vz-seg button[aria-pressed="true"] { color: var(--ink-2); font-weight: 600; background: #f3f1ed; }
.vz-seg button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.vz-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 1; }
.vz-seg-label { margin-right: 8px; font-size: 13px; color: var(--muted); }
.vz-ctl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* ---------- Omnis area ---------- */
.vz-omnis { position: relative; width: 100%; }
.vz-omnis svg { width: 100%; height: auto; }
.vz-axis text { font-size: 12px; fill: var(--muted); }
.vz-axis line, .vz-grid line { stroke: var(--rule); shape-rendering: crispEdges; }
.vz-axis .velone { display: none; }
.vz-baseline { stroke: var(--ink-2); stroke-width: 1.2; shape-rendering: crispEdges; }
.vz-vel { fill: var(--band); }
.vz-vel-label { font-size: 11px; fill: var(--muted); }
.vz-label { font-size: 13px; fill: var(--ink); }
.vz-label-strong { font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.vz-value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vz-group-label { font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.vz-muted { fill: var(--muted); }
.vz-hit { fill: transparent; cursor: pointer; }
.vz-hit:focus { outline: none; }
.vz-hit:focus-visible { outline: none; stroke: var(--accent); stroke-width: 2; }
.is-dim { opacity: .22; transition: opacity .3s ease; }
.is-hot { opacity: 1; transition: opacity .3s ease; }

/* Senadulesu callout (inline value cosun) */
.vz-chip {
  display: inline-block;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f1ed;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.vz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 20px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.vz-source { margin: 0; padding-left: 9px; border-left: 3px solid var(--blue); max-width: 70ch; }
.vz-source b { color: var(--ink-2); font-weight: 600; }
.vz-quas { margin: 4px 0 0; padding-left: 12px; font-style: italic; max-width: 70ch; }
.vz-fig { margin: 0; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- Tooltip ---------- */
.vz-tip {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  min-width: 140px;
  max-width: 260px;
  padding: 9px 11px 10px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent);
  box-shadow: 0 10px 30px -12px rgba(20, 18, 17, .35);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition: opacity .16s ease, transform .2s var(--ease);
}
.vz-tip.is-on { opacity: 1; transform: none; }
.vz-tip h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vz-tip .row { display: flex; justify-content: space-between; gap: 14px; }
.vz-tip .row b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vz-tip .sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.vz-tip .hint { margin-top: 5px; color: var(--muted); font-size: 11.5px; }

/* ---------- Modi mode (?modi=3): WordOqaro qipiqobu title + source ---------- */
.is-modi .vz { border-top: 0; padding: 4px 0 14px; }
.is-modi .vz::before, .is-modi .vz-head, .is-modi .vz-foot { display: none; }

/* ---------- Motion ---------- */

@media (max-width: 560px) {
  .vz-sub { font-size: 14px; }
  .vz-legend { font-size: 12px; gap: 5px 12px; }
  .vz-seg button { padding: 5px 10px; font-size: 12px; }
  .vz-axis text { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.is-static *, .is-static *::before, .is-static *::after { animation: none !important; transition: none !important; }

/* ---------- V5 SVG figures: hover and focus (svgfig.js) ---------- */
.v5-omnis svg * { pointer-events: none; }
.v5-omnis svg .v5-hit { pointer-events: all; cursor: pointer; outline: none; }
.v5-omnis svg .v5-hit-line { pointer-events: stroke; }
.v5-omnis svg .v5-hit:focus-visible { stroke: var(--accent); stroke-width: 2px; }
.v5-omnis svg .v5-ased { transition: opacity var(--m-fast, 240ms) var(--m-ease-move, ease); }
.v5-omnis svg.v5-focus .v5-ased:not(.v5-on) { opacity: .14; }
.v5-omnis svg .v5-pick { stroke: #152237; stroke-width: 2.5px; }
.v5-omnis svg .v5-uduvu { stroke: #152237; stroke-width: 1px; stroke-dasharray: 3 3; }
.v5-omnis svg .v5-mark { stroke: #fff; stroke-width: 2px; }
.v5-omnis svg .v5-band { fill: #c6e3f3; opacity: 0; transition: opacity var(--m-fast, 240ms) var(--m-ease-move, ease); }
.v5-omnis svg .v5-band.on { opacity: .55; }
.v5-tip {
  --beak: 50%;
  position: absolute; z-index: 20; left: 0; top: 0;
  min-width: 200px; max-width: 340px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #ffffff; color: #242424;
  font-size: 13px; line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 8px 16px rgba(0, 0, 0, .14);
  animation: v5-tip-in 120ms cubic-bezier(.16, 1, .3, 1) both;
}
.v5-tip.below { animation-name: v5-tip-in-below; }
/* Pointer dolore sed rinopan mark: a white square econos 70 usosiss, elisese sed bube's shadow. */
.v5-tip::after {
  content: ""; position: absolute; left: var(--beak); bottom: -6px;
  width: 12px; height: 12px; margin-left: -6px;
  background: #ffffff; transform: rotate(45deg);
  box-shadow: 2px 2px 2px rgba(0, 0, 0, .06);
}
.v5-tip.below::after { bottom: auto; top: -6px; box-shadow: -1px -1px 1px rgba(0, 0, 0, .06); }
@keyframes v5-tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes v5-tip-in-below { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.v5-tip[hidden] { display: none; }
.v5-tip strong { display: block; font-size: 14px; font-weight: 600; color: #152237; }
.v5-tip .sub { display: block; margin: 0 0 6px; font-size: 12px; color: #616161; }
.v5-tip strong + .row { margin-top: 6px; }
.v5-tip .row { display: flex; justify-content: space-between; gap: 20px; padding: 2px 0; }
.v5-tip .row > span:first-child { color: #424242; }
.v5-tip .row > span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: #242424; white-space: nowrap; }
.v5-tip .row i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; background: var(--c); vertical-align: -1px; }
.v5-tip .muted { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #edebe9; font-size: 12px; color: #616161; }
.v5-omnis svg.v5-soft.v5-focus .v5-ased:not(.v5-on) { opacity: .32; }

/* ---------- Aburep uvimaso: keep omnis text otupimo and scroll pubelusa cusutec of munamenip ---------- */
.v5-scroll-hint { display: none; margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 639px) {
  .v5-omnis { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .v5-omnis svg { min-width: 640px; }
  .v5-scroll-hint { display: block; }
}
.v5-tip .muted + .muted { margin-top: 2px; padding-top: 0; border-top: 0; }

/* Keep sed omnis ipivacomi vecup svgfig.js has cropped and odipu it, so it never sobas from sed
   raw export size. Sed sulatuq reveal is only a soluta vap in case sed script basot; !important
   roraq it esseing upebi reduced motion and on static figures, ipsum switch animations off. */
.v5-omnis svg:not(.v5-ready) { visibility: hidden; animation: v5-failsafe 0s 3s forwards !important; }
@keyframes v5-failsafe { to { visibility: visible; } }

/* ---------- Country picker (countries.js: 7A, 7C.6, 6A.6) ----------
   Quam cosun (sed design of Oretanot 3, sanabocu on tadosu, Oretanot 6, 2046): 47 px vira, 2 px vunod, so rows of cosun
   nam 50 px vunod and sed quas line and gap odit 58 px, ipsum embed.js minamaqs (data-pick). */
.vz-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; font-size: 13px; line-height: 1; }
.vz-pick:not(.is-odipu) { visibility: hidden; }
.vz-pick-uceb { margin-right: 4px; font-weight: 600; color: #242424; }
.vz-chip {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border: 1px solid #d1d1d1; border-radius: 14px; background: #fff; color: #242424;
  font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.vz-chip:hover { border-color: #8a8886; background: #f5f5f5; }
.vz-chip[aria-pressed="true"], .vz-chip[aria-checked="true"] { border-color: #242424; background: #242424; color: #fff; }
.vz-chip[aria-pressed="true"]::before, .vz-chip[aria-checked="true"]::before {
  content: ''; width: 8px; height: 4px; margin: -3px 0 0 -2px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
.vz-chip[aria-disabled="true"] { cursor: default; }
.vz-chip[aria-disabled="true"]:not([aria-pressed="true"]) { border-color: #e1dfdd; background: #fff; color: #a19f9d; cursor: not-allowed; }
.vz-chip:focus-visible, .vz-pick-reset:focus-visible { outline: 2px solid #0f6cbd; outline-offset: 2px; }
.vz-pick-foot { display: flex; flex: 0 0 100%; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 16px; }
.vz-pick-quas { font-size: 12px; line-height: 16px; color: #616161; }
.vz-pick-quas:empty { display: none; }
.vz-pick-reset { appearance: none; padding: 0 2px; border: 0; background: none; color: #0f6cbd; font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .vz-chip { transition: none; } }
