/*!
 * RTI Wiki — shared calculator design system.
 * Mobile-first, two-column ≥1024px. WCAG 2.1 AA compliant tokens.
 * Used by: /tools/post-office-return-calculator.html
 * Drop-in safe: scoped to .rwc-* classnames, no global element resets except inside .rwc-root.
 */

/* ── Tokens ─────────────────────────────────────────────────────────── */
.rwc-root {
  --rti-primary: #0E65D7;
  --rti-primary-700: #0B4FAA;
  --rti-primary-50: #E7F1FC;
  --rti-accent: #FF7A1A;
  --rti-accent-50: #FFF1E6;
  --rti-success: #1FAE6F;
  --rti-warning: #E0A800;
  --rti-danger: #D14343;
  --rti-bg: #F7F9FC;
  --rti-card: #FFFFFF;
  --rti-text: #1A1F2C;
  --rti-muted: #5B6478;
  --rti-line: #E2E8F0;
  --rti-line-strong: #CBD5E1;
  --rti-shadow: 0 2px 8px rgba(14, 101, 215, 0.06);
  --rti-shadow-pop: 0 8px 24px rgba(14, 101, 215, 0.10);
  --rti-radius: 12px;
  --rti-radius-sm: 8px;
  --rti-radius-pill: 999px;

  font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--rti-text);
  background: var(--rti-bg);
}

.rwc-root, .rwc-root *, .rwc-root *::before, .rwc-root *::after { box-sizing: border-box; }
.rwc-root :focus-visible { outline: 2px solid var(--rti-primary); outline-offset: 2px; border-radius: 4px; }
.rwc-root { max-width: 100%; overflow-x: clip; }
.rwc-root img, .rwc-root canvas, .rwc-root svg { max-width: 100%; }

/* ── Dark mode (OS preference) ───────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .rwc-root {
    --rti-primary: #4D9BFF;
    --rti-primary-700: #1F6BC2;
    --rti-primary-50: #16243A;
    --rti-accent: #FF9B4D;
    --rti-accent-50: #2C1E13;
    --rti-success: #4FCD92;
    --rti-warning: #FFC83D;
    --rti-danger: #FF7373;
    --rti-bg: #0F141C;
    --rti-card: #161D29;
    --rti-text: #E7ECF5;
    --rti-muted: #93A0B5;
    --rti-line: #283142;
    --rti-line-strong: #38445B;
    --rti-shadow: 0 2px 12px rgba(0,0,0,0.40);
    --rti-shadow-pop: 0 8px 28px rgba(0,0,0,0.55);
  }
  .rwc-input-row, .rwc-input, .rwc-stepper button { background: #1F2735; color: var(--rti-text); }
  .rwc-input::placeholder { color: var(--rti-muted); }
  .rwc-chip { background: #1F2735; color: var(--rti-text); border-color: var(--rti-line-strong); }
  .rwc-chip[aria-pressed="true"] { background: var(--rti-primary); color: #0B1320; }
  .rwc-card, .rwc-result-card, .rwc-editorial section, .rwc-aside li a, .rwc-footer-badge { background: var(--rti-card); }
  .rwc-aside li a { color: var(--rti-text); }
  .rwc-citation-strip { background: #2A2410; border-color: #5B4900; color: #FFE08A; }
  .rwc-citation-strip a { color: #9ec6ff; }
  .rwc-disclaimer { background: var(--rti-card); }
  .rwc-quote-box { background: var(--rti-primary-50); }
  .rwc-related a { background: #1F2735; }
  .rwc-icon-btn { background: #1F2735; color: var(--rti-text); border-color: var(--rti-line-strong); }
}

/* ── Layout shell ───────────────────────────────────────────────────── */
.rwc-shell { max-width: 1180px; margin: 0 auto; padding: 24px 16px 80px; min-width: 0; }
@media (max-width: 520px) { .rwc-shell { padding: 16px 12px 60px; } .rwc-card { padding: 18px 16px; } }
.rwc-crumb { font-size: 13px; color: var(--rti-muted); margin-bottom: 12px; }
.rwc-crumb a { color: var(--rti-primary); text-decoration: none; }
.rwc-crumb a:hover { text-decoration: underline; }

.rwc-page-head h1 { margin: 0 0 6px; font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.rwc-page-head p  { margin: 0 0 12px; color: var(--rti-muted); font-size: 16px; max-width: 60ch; }
.rwc-page-head .rwc-trust { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--rti-radius-pill); background: var(--rti-primary-50); color: var(--rti-primary); font-size: 12.5px; font-weight: 700; }
.rwc-page-head .rwc-trust::before { content: ""; width: 8px; height: 8px; background: var(--rti-success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(31,174,111,0.18); }

/* ── Visually-hidden (a11y) ─────────────────────────────────────────── */
.rwc-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Collapsed editorial blocks ─────────────────────────────────────── */
.rwc-fold { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.rwc-foldable { background: var(--rti-card); border: 1px solid var(--rti-line); border-radius: var(--rti-radius-sm); overflow: hidden; }
.rwc-foldable summary { cursor: pointer; list-style: none; padding: 12px 16px; font: 600 13.5px 'Inter'; color: var(--rti-text); display: flex; align-items: center; gap: 10px; user-select: none; }
.rwc-foldable summary::-webkit-details-marker { display: none; }
.rwc-foldable summary::before { content: "+"; font-weight: 400; color: var(--rti-primary); font-size: 18px; line-height: 1; width: 12px; transition: transform 0.18s; }
.rwc-foldable[open] summary::before { content: "−"; }
.rwc-foldable[open] summary { color: var(--rti-primary); border-bottom: 1px solid var(--rti-line); }
.rwc-foldable > *:not(summary) { padding: 14px 16px 16px; font-size: 14px; line-height: 1.6; color: var(--rti-text); }
.rwc-foldable p { margin: 0 0 10px; }
.rwc-foldable p:last-child { margin: 0; }
.rwc-foldable ol, .rwc-foldable ul { margin: 0 0 0 22px; }
.rwc-foldable li { margin-bottom: 4px; }
.rwc-foldable dl { margin: 0; }
.rwc-foldable dt { font-weight: 700; margin-top: 10px; color: var(--rti-text); }
.rwc-foldable dt:first-child { margin-top: 0; }
.rwc-foldable dd { margin: 4px 0 0; color: var(--rti-muted); }
.rwc-foldable a { color: var(--rti-primary); }

.rwc-mini-footer { margin-top: 18px; padding: 12px 16px; font-size: 12.5px; color: var(--rti-muted); text-align: center; background: var(--rti-card); border: 1px solid var(--rti-line); border-radius: var(--rti-radius-sm); }
.rwc-mini-footer strong { color: var(--rti-text); }
.rwc-mini-footer a { color: var(--rti-primary); }

/* ── Pair-strip (cross-link to companion tool) ──────────────────────── */
.rwc-pair-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; padding: 8px 14px; background: var(--rti-primary-50); border-radius: var(--rti-radius-sm); font-size: 13px; }
.rwc-pair-strip span { color: var(--rti-text); }
.rwc-pair-cta { white-space: nowrap; background: var(--rti-primary); color: #fff; padding: 5px 12px; border-radius: 999px; font: 700 12.5px 'Inter'; text-decoration: none; }
.rwc-pair-cta:hover { background: var(--rti-primary-700); text-decoration: none; color: #fff; }

/* ── Main grid ──────────────────────────────────────────────────────── */
.rwc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
@media (min-width: 1024px) { .rwc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }

.rwc-card { background: var(--rti-card); border: 1px solid var(--rti-line); border-radius: var(--rti-radius); padding: 22px; box-shadow: var(--rti-shadow); }
.rwc-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.rwc-card .rwc-card-sub { color: var(--rti-muted); font-size: 13.5px; margin: 0 0 16px; }

/* ── Segmented toggle (scheme chips) ────────────────────────────────── */
.rwc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.rwc-chip { appearance: none; border: 1px solid var(--rti-line); background: #fff; color: var(--rti-text); padding: 8px 14px; border-radius: var(--rti-radius-pill); font: 600 13px/1 inherit; cursor: pointer; min-height: 36px; transition: all 0.15s ease; }
.rwc-chip:hover { border-color: var(--rti-primary); color: var(--rti-primary); }
.rwc-chip[aria-pressed="true"] { background: var(--rti-primary); color: #fff; border-color: var(--rti-primary); box-shadow: 0 2px 6px rgba(14,101,215,0.25); }
.rwc-chip[aria-pressed="true"]:hover { color: #fff; }

/* ── Field with twin input ──────────────────────────────────────────── */
.rwc-field { margin-bottom: 18px; }
.rwc-field-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--rti-text); margin-bottom: 6px; }
.rwc-field-tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--rti-line); color: var(--rti-muted); font-size: 11px; font-weight: 800; cursor: help; border: 0; padding: 0; }
.rwc-field-tip:hover { background: var(--rti-primary); color: #fff; }

.rwc-input-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--rti-line-strong); border-radius: var(--rti-radius-sm); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; min-height: 48px; min-width: 0; }
.rwc-input-row:focus-within { border-color: var(--rti-primary); box-shadow: 0 0 0 3px rgba(14,101,215,0.12); }
.rwc-input-prefix { display: flex; align-items: center; padding: 0 0 0 14px; color: var(--rti-muted); font-weight: 600; font-size: 16px; }
.rwc-input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 12px 8px; font: 600 18px/1 'Inter', sans-serif; color: var(--rti-text); -moz-appearance: textfield; }
.rwc-input::-webkit-outer-spin-button, .rwc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rwc-input:focus { outline: 0; }
.rwc-stepper { display: flex; flex-direction: column; border-left: 1px solid var(--rti-line); }
.rwc-stepper button { flex: 1; border: 0; background: #fff; color: var(--rti-muted); padding: 0 10px; cursor: pointer; font-size: 12px; min-width: 32px; min-height: 22px; }
.rwc-stepper button:hover { background: var(--rti-primary-50); color: var(--rti-primary); }
.rwc-stepper button:first-child { border-bottom: 1px solid var(--rti-line); border-top-right-radius: var(--rti-radius-sm); }
.rwc-stepper button:last-child  { border-bottom-right-radius: var(--rti-radius-sm); }
.rwc-input-prefix + .rwc-input { padding-left: 4px; }

.rwc-input-help { display: block; margin-top: 6px; font-size: 12px; color: var(--rti-muted); }
.rwc-input-error { color: var(--rti-danger); }

/* ── Range slider (twinned to number input) ─────────────────────────── */
.rwc-range-wrap { padding: 6px 2px 0; }
.rwc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--rti-line); border-radius: 999px; outline: 0; margin: 8px 0 4px; }
.rwc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--rti-primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(14,101,215,0.30); cursor: grab; transition: transform 0.1s; }
.rwc-range::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
.rwc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--rti-primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(14,101,215,0.30); cursor: grab; }
.rwc-range:focus-visible { outline: 0; }
.rwc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(14,101,215,0.25); }
.rwc-range-marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--rti-muted); margin-top: 2px; }
.rwc-range-marks span { font-variant-numeric: tabular-nums; }

.rwc-actions-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.rwc-link-btn { background: transparent; border: 0; color: var(--rti-primary); font: 600 13px 'Inter'; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.rwc-link-btn:hover { background: var(--rti-primary-50); }

/* ── Results card ───────────────────────────────────────────────────── */
.rwc-result-card { position: relative; }
.rwc-result-actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; }
.rwc-icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--rti-line); background: #fff; color: var(--rti-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.15s; }
.rwc-icon-btn:hover { background: var(--rti-primary-50); color: var(--rti-primary); border-color: var(--rti-primary); }

.rwc-hero { padding: 14px 0 6px; }
.rwc-hero-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rti-muted); margin-bottom: 6px; }
.rwc-hero-value { font-size: clamp(30px, 6vw, 40px); font-weight: 800; line-height: 1.1; color: var(--rti-accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rwc-hero-sub { color: var(--rti-muted); font-size: 14px; margin-top: 4px; }

.rwc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 6px; }
@media (max-width: 640px) { .rwc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rwc-kpis > :nth-child(3) { grid-column: 1 / -1; } }
.rwc-kpi { background: var(--rti-bg); border-radius: var(--rti-radius-sm); padding: 12px; min-width: 0; }
.rwc-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rti-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rwc-kpi-value { font-size: 17px; font-weight: 800; color: var(--rti-text); margin-top: 4px; line-height: 1.2; font-variant-numeric: tabular-nums; word-break: break-word; }
.rwc-kpi-delta { font-size: 11.5px; color: var(--rti-muted); margin-top: 2px; }
.rwc-kpi-delta.up   { color: var(--rti-success); }
.rwc-kpi-delta.down { color: var(--rti-danger); }

.rwc-chart-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rti-line); }
.rwc-chart-title { font-weight: 800; font-size: 14px; margin: 0 0 8px; }
.rwc-donut-row { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; justify-items: center; }
.rwc-donut-row > canvas { width: 200px; height: 200px; max-width: 100%; }
.rwc-donut-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 13.5px; width: 100%; }
@media (max-width: 460px) { .rwc-donut-legend { grid-template-columns: 1fr; } }
.rwc-donut-legend .item { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: start; padding: 10px 12px; background: var(--rti-bg); border-radius: 8px; min-width: 0; }
.rwc-donut-legend .dot { width: 12px; height: 12px; border-radius: 50%; grid-row: 1 / span 2; align-self: center; }
.rwc-donut-legend .name { font-weight: 600; color: var(--rti-text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rwc-donut-legend .vals { font-variant-numeric: tabular-nums; color: var(--rti-muted); font-size: 13px; }
.rwc-donut-legend .vals strong { color: var(--rti-text); font-weight: 700; font-size: 14px; }
.rwc-donut-legend .pct { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: var(--rti-card); border: 1px solid var(--rti-line); font-size: 11px; font-weight: 700; color: var(--rti-muted); line-height: 1.4; }

.rwc-timeline-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rti-line); }
.rwc-timeline-canvas { width: 100%; height: 160px; }

/* ── Step-by-step expandable table ──────────────────────────────────── */
.rwc-steps { margin-top: 18px; }
.rwc-steps summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 10px 12px; background: var(--rti-bg); border-radius: var(--rti-radius-sm); color: var(--rti-primary); list-style: none; }
.rwc-steps summary::-webkit-details-marker { display: none; }
.rwc-steps summary::before { content: "▸ "; transition: transform 0.2s; display: inline-block; }
.rwc-steps[open] summary::before { transform: rotate(90deg); }
.rwc-steps-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.rwc-steps-table th, .rwc-steps-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--rti-line); font-variant-numeric: tabular-nums; }
.rwc-steps-table th:first-child, .rwc-steps-table td:first-child { text-align: left; }
.rwc-steps-table thead th { background: var(--rti-bg); position: sticky; top: 0; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rti-muted); }
.rwc-steps-tablewrap { max-height: 280px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--rti-line); border-radius: var(--rti-radius-sm); }

/* ── Editorial scaffold ─────────────────────────────────────────────── */
.rwc-editorial { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .rwc-editorial { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; } }
.rwc-editorial section { background: var(--rti-card); border: 1px solid var(--rti-line); border-radius: var(--rti-radius); padding: 22px 24px; }
.rwc-editorial section h2 { margin: 0 0 12px; font: 800 19px/1.3 'Inter'; letter-spacing: -0.01em; }
.rwc-editorial section p, .rwc-editorial section li { font-family: 'Lora', Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.65; color: #2b3140; }
.rwc-editorial section ul, .rwc-editorial section ol { margin: 0 0 12px 22px; }
.rwc-editorial section li { margin-bottom: 6px; }
.rwc-editorial .rwc-steps-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .rwc-editorial .rwc-steps-mini { grid-template-columns: repeat(3, 1fr); } }
.rwc-editorial .rwc-steps-mini li { background: var(--rti-bg); border-radius: var(--rti-radius-sm); padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 14px; }
.rwc-editorial .rwc-steps-mini .num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rti-primary); color: #fff; font-size: 12px; font-weight: 800; margin-right: 8px; }

.rwc-quote-box { background: var(--rti-primary-50); border-left: 4px solid var(--rti-primary); padding: 14px 16px; border-radius: 0 8px 8px 0; font-style: italic; font-family: 'Lora', serif; margin: 12px 0; }

details.rwc-faq { border-bottom: 1px solid var(--rti-line); padding: 14px 0; }
details.rwc-faq:last-of-type { border-bottom: 0; }
details.rwc-faq summary { cursor: pointer; list-style: none; font: 700 15.5px 'Inter'; padding-right: 24px; position: relative; }
details.rwc-faq summary::-webkit-details-marker { display: none; }
details.rwc-faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 400; font-size: 22px; color: var(--rti-muted); line-height: 1; transition: transform 0.2s; }
details.rwc-faq[open] summary::after { content: "−"; }
details.rwc-faq[open] summary { color: var(--rti-primary); }
details.rwc-faq .a { margin-top: 10px; }

.rwc-related { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .rwc-related { grid-template-columns: 1fr 1fr; } }
.rwc-related a { background: var(--rti-bg); border: 1px solid var(--rti-line); border-radius: var(--rti-radius-sm); padding: 14px 16px; text-decoration: none; color: var(--rti-text); display: block; transition: all 0.15s; }
.rwc-related a:hover { border-color: var(--rti-primary); transform: translateY(-1px); box-shadow: var(--rti-shadow); }
.rwc-related strong { display: block; color: var(--rti-text); margin-bottom: 2px; }
.rwc-related span { font-size: 13px; color: var(--rti-muted); }

.rwc-aside { position: sticky; top: 16px; align-self: start; }
.rwc-aside h3 { font: 800 13px 'Inter'; color: var(--rti-text); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.rwc-aside ul { list-style: none; padding: 0; margin: 0 0 16px; }
.rwc-aside li a { display: block; padding: 6px 0; color: var(--rti-text); text-decoration: none; font-size: 13.5px; border-bottom: 1px solid var(--rti-line); }
.rwc-aside li a:hover { color: var(--rti-primary); }

.rwc-citation-strip { margin-top: 18px; padding: 12px 14px; background: #FFF9E6; border: 1px solid #F5E5A8; border-radius: var(--rti-radius-sm); font-size: 13px; color: #5B4A00; }
.rwc-citation-strip strong { font-weight: 700; }
.rwc-citation-strip a { color: var(--rti-primary); }

.rwc-disclaimer { margin-top: 22px; padding: 14px 16px; background: var(--rti-bg); border: 1px dashed var(--rti-line-strong); border-radius: var(--rti-radius); font-size: 13px; color: var(--rti-muted); text-align: center; }

.rwc-footer-badge { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid var(--rti-line); border-radius: var(--rti-radius); font-size: 13px; color: var(--rti-muted); }
.rwc-footer-badge .author { color: var(--rti-text); font-weight: 600; }

/* ── Tooltip popover ────────────────────────────────────────────────── */
.rwc-popover { position: relative; }
.rwc-popover-body { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; max-width: 320px; background: var(--rti-text); color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--rti-shadow-pop); z-index: 50; font-weight: 400; }
.rwc-popover-body::before { content: ""; position: absolute; top: -6px; left: 8px; border: 6px solid transparent; border-bottom-color: var(--rti-text); border-top: 0; }
.rwc-popover[data-open="true"] .rwc-popover-body { display: block; }
.rwc-popover-body a { color: #9ec6ff; }

/* ── Sliding number animation ───────────────────────────────────────── */
.rwc-num { display: inline-block; font-variant-numeric: tabular-nums; }
.rwc-num.is-updating { transition: opacity 0.18s; }

/* ── Print / PDF export ─────────────────────────────────────────────── */
@media print {
  body * { visibility: hidden !important; }
  .rwc-root, .rwc-root * { visibility: visible !important; }
  .rwc-root { background: #fff; color: #000; }
  .rwc-grid { display: block !important; }
  .rwc-input-row, .rwc-range-wrap, .rwc-actions-row, .rwc-icon-btn, .rwc-result-actions, .rwc-aside, .rwc-related, .rwc-footer-badge, .rwc-link-btn, .rwc-chips { display: none !important; }
  .rwc-card { box-shadow: none !important; border: 1px solid #ccc !important; page-break-inside: avoid; }
  .rwc-shell { padding: 0; max-width: 100%; }
  .rwc-print-only { display: block !important; }
  .rwc-hero-value { color: #000 !important; }
}
.rwc-print-only { display: none; }
@media print { .rwc-print-only { display: block; margin-top: 16px; font-size: 11px; color: #555; border-top: 1px solid #ccc; padding-top: 8px; } }
