.treasury-point-labels text {
  fill: #f7d985;
  stroke: #090806;
  stroke-width: 3px;
  paint-order: stroke fill;
  font: 700 11px Arial, sans-serif;
  letter-spacing: .01em;
  pointer-events: none;
}

.ledger {
  max-height: 520px;
  overflow: auto;
}

.ledger table {
  min-width: 620px;
}
.ledger th,
.ledger td:first-child,
.ledger td:nth-child(2),
.ledger td:nth-child(4) {
  white-space: nowrap;
  overflow-wrap: normal;
}

.ledger > h2 {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -18px -18px 0;
  padding: 18px 18px 12px;
  background: linear-gradient(#11100efc, #11100ef2);
  border-bottom: 1px solid #6d531d;
}

.ledger-certificate-link{display:inline-flex;align-items:center;min-height:32px;padding:5px 8px;border-radius:6px;color:#f0cf75!important;font-weight:800;text-decoration:underline;text-decoration-color:#8d6b24;text-underline-offset:3px}.ledger-certificate-link:hover,.ledger-certificate-link:focus-visible{color:#fff3c4!important;background:#35290f;outline:2px solid #d6aa42;outline-offset:2px}.certificate-missing,.certificate-check{color:#817a69}

.tracker-v2{position:relative;overflow:hidden!important;padding:18px!important;background:linear-gradient(145deg,rgba(10,10,10,.97),rgba(21,17,10,.96))!important}
.treasury-chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:8px}.treasury-chart-head h2{margin:0!important;color:#f1d787;font-size:clamp(17px,2vw,23px)}.treasury-ranges{display:flex;gap:6px;flex-wrap:wrap}.treasury-ranges button{min-width:44px;padding:7px 10px;border:1px solid #665126;border-radius:999px;background:#0a0a0b;color:#cdbb8a;font:700 11px Arial,sans-serif;cursor:pointer}.treasury-ranges button.active{border-color:#d2a940;background:#2a2110;color:#ffe59b}.treasury-ranges button:disabled{opacity:.32;cursor:not-allowed}.treasury-chart-stage{position:relative;min-height:290px}.treasury-chart-stage svg{display:block;width:100%;height:auto;min-height:290px;overflow:visible}.treasury-grid line{stroke:#7b6532;stroke-width:1;opacity:.3}.treasury-grid text,.treasury-dates text{fill:#c9b783;font:11px Arial,sans-serif}.treasury-area{fill:url(#treasury-fill);opacity:1}.treasury-line{fill:none;stroke:#f0c869;stroke-width:2.6;filter:drop-shadow(0 0 5px #d5a83d55);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}.chart-drawn .treasury-line{animation:treasury-draw 1.1s ease forwards}.treasury-hitpoints circle{fill:transparent;stroke:transparent;cursor:pointer;outline:none}.treasury-hitpoints circle:focus{stroke:#f1ce72;stroke-width:2;fill:#161108}.treasury-latest{opacity:0;transition:opacity .35s ease 1s}.chart-drawn .treasury-latest{opacity:1}.treasury-latest circle{fill:#f2cf72;stroke:#171108;stroke-width:3}.treasury-latest text{fill:#f7d985;stroke:#090806;stroke-width:3px;paint-order:stroke fill;font:700 12px Arial,sans-serif}.treasury-tooltip{position:absolute;z-index:6;display:grid;gap:2px;min-width:104px;padding:8px 10px;border:1px solid #c89d3f;border-radius:8px;background:#08090cf2;color:#f7e6b9;box-shadow:0 10px 28px #000}.treasury-tooltip b{font-size:13px}.treasury-tooltip span{font-size:11px;color:#bfae80}.treasury-empty{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#c8b98f;font-size:14px}.treasury-note{margin:2px 0 0;text-align:center;color:#cbb77f;font-size:12px}.treasury-note[hidden],.treasury-empty[hidden],.treasury-tooltip[hidden]{display:none}.treasury-date-range{color:#a99461;font-size:11px}@keyframes treasury-draw{to{stroke-dashoffset:0}}
@media(max-width:560px){.treasury-chart-head{display:grid}.treasury-ranges{width:100%}.treasury-ranges button{flex:1}.treasury-chart-stage{min-height:230px}.treasury-chart-stage svg{min-height:230px}.treasury-grid text,.treasury-dates text{font-size:10px}}
@media(prefers-reduced-motion:reduce){.treasury-line{stroke-dashoffset:0!important;animation:none!important}.treasury-latest{opacity:1!important;transition:none!important}}

/* Live data is rebuilt as a clean, readable panel over the approved vault artwork. */
.treasury-row > .reserve-v2 {
  position: relative;
  overflow: visible;
}

.treasury-row > .panel{min-width:0!important;min-height:372px!important;aspect-ratio:auto!important}

.treasury-row > .reserve-v2 > .reserve-dashboard{visibility:visible;position:absolute;z-index:18;inset:3% 2% 3% 53%;display:grid;grid-template-columns:1fr;grid-template-rows:auto 40px 40px 58px minmax(0,1fr);gap:4px;padding:8px 9px;background:linear-gradient(145deg,rgba(8,9,10,.995),rgba(18,16,12,.99));border:1px solid #c79b3c;border-radius:10px;box-shadow:0 14px 38px #000a;font-family:Arial,sans-serif;overflow:visible}
.reserve-dashboard>*{min-width:0;min-height:0;box-sizing:border-box}
.reserve-dashboard>h2{margin:0;padding:0 2px 6px;border-bottom:1px solid #a87f2f;color:#f4dda0;font:700 clamp(18px,1.65vw,25px)/1.05 Georgia,serif;letter-spacing:.03em;white-space:nowrap}
.reserve-metric{display:flex;flex-direction:column;justify-content:center;padding:4px 9px;border:1px solid #6f5725;border-radius:7px;background:linear-gradient(100deg,#0c0c0e,#18150f)}
.reserve-metric>span,.reserve-status-card>span{color:#d9c89b;font-size:10px;font-weight:700;letter-spacing:.09em}
.reserve-metric>strong{margin-top:2px;color:#f5d27b;font:700 clamp(15px,1.25vw,20px)/1.05 Georgia,serif}.reserve-metric>strong small{display:inline-block;margin-left:5px;color:#f0d68e;vertical-align:baseline;letter-spacing:.04em;text-shadow:0 0 6px #d9a93655}.reserve-metric>strong .reserve-token-unit{font:800 clamp(12px,1vw,15px)/1 Arial,sans-serif}.reserve-metric>strong .reserve-mass-unit{font:800 clamp(14px,1.15vw,17px)/1 "IBM Plex Mono",monospace;text-transform:none}
.redemption-summary>strong{color:#ec7777}.redemption-summary.is-active>strong{color:#63dc92;text-shadow:0 0 12px #36c97544}.redemption-summary>b{margin-top:3px;color:#f2d98e;font-size:9px;line-height:1.25}.redemption-summary>small{margin-top:2px;color:#d6bd79;font-size:9px;font-weight:700;line-height:1.2}
.reserve-status-card{position:relative;z-index:20;display:flex;flex-direction:column;align-self:stretch;width:100%;height:100%;padding:8px 10px;border:1px solid #8b6b2e;border-radius:7px;background:#0b0b0d;cursor:help;overflow:visible;pointer-events:auto}.reserve-status-copy{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b58a32 #15120c}.reserve-status-copy::-webkit-scrollbar{width:6px}.reserve-status-copy::-webkit-scrollbar-track{background:#15120c;border-radius:8px}.reserve-status-copy::-webkit-scrollbar-thumb{background:#b58a32;border-radius:8px}.reserve-status-card p{margin:5px 5px 0 0;color:#e6ddc8;font-size:clamp(9px,.7vw,10.5px);line-height:1.3;overflow-wrap:anywhere}

.treasury-row > .reserve-v2 > .reserve-notice {
  visibility: visible;
  position: absolute;
  z-index: 20;
  left: 53.4%;
  top: 61.2%;
  width: 44.3%;
  height: 33.6%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.treasury-row > .reserve-v2 > .reserve-notice strong {
  display: none;
}

.treasury-row > .reserve-v2 > .reserve-notice p {
  display: none;
}

.treasury-row > .reserve-v2 .reserve-status-popover::after {
  display: none;
  left: auto;
  right: calc(100% + 14px);
  top: 0;
  bottom: auto;
  width: min(520px, 42vw) !important;
  padding: 22px 24px !important;
  border-width: 1px;
  font-size: 17px !important;
  line-height: 1.7 !important;
  white-space: pre-line;
  color: #fff3cf;
  background: rgba(5, 6, 8, .99);
  box-shadow: 0 20px 55px #000, 0 0 22px #d6aa3e2b;
  transform: translateX(8px);
}
.reserve-status-details{position:absolute;z-index:82;right:calc(100% + 8px);top:0;width:min(520px,42vw);padding:22px 24px;border:1px solid #d0a944;border-radius:12px;background:rgba(5,6,8,.99);box-shadow:0 20px 55px #000,0 0 22px #d6aa3e2b;color:#fff3cf;text-align:left;pointer-events:auto;opacity:0;visibility:hidden;transform:translateX(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s}.reserve-status-details::after{content:"";position:absolute;top:0;left:100%;width:12px;height:100%}.reserve-status-details p{margin:0;color:#fff3cf;font:17px/1.7 Arial,sans-serif}.reserve-status-details p+p{margin-top:14px;padding-top:0;border-top:0}.reserve-status-card:hover>.reserve-status-details,.reserve-status-card:focus>.reserve-status-details,.reserve-status-card:focus-visible>.reserve-status-details,.reserve-status-details:hover{opacity:1;visibility:visible;transform:translateX(0)}

.treasury-row > .reserve-v2 .reserve-status-popover::before {
  display: none;
}

.treasury-row > .reserve-v2 .reserve-status-popover:hover::after,.treasury-row > .reserve-v2 .reserve-status-popover:focus::after,.treasury-row > .reserve-v2 .reserve-status-popover:focus-visible::after{transform:translateX(0)}

.treasury-row > .reserve-v2 .redemption-popover{cursor:help}
.treasury-row > .reserve-v2 .redemption-popover::after{display:none}.redemption-details{position:absolute;z-index:82;right:-24px;bottom:calc(100% + 10px);width:min(430px,76vw);padding:18px 20px;border:1px solid #d0a944;border-radius:14px;background:linear-gradient(145deg,rgba(13,14,18,.99),rgba(5,6,8,.99));box-shadow:0 18px 44px #000,0 0 20px #54dc8d20;color:#fff3cf;text-align:left;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s}.redemption-details>span{display:block;color:#d8c899;font:700 12px/1.2 Arial,sans-serif;letter-spacing:.1em}.redemption-details>strong{display:block;margin-top:5px;color:#67e49a;font:800 24px/1 Arial,sans-serif;text-shadow:0 0 12px #36c97555}.redemption-details>p{margin:16px 0 0;padding-top:14px;border-top:1px solid #6f5725;color:#fff3cf;font:700 15px/1.45 Arial,sans-serif}.redemption-details>small{display:block;margin-top:14px;padding:10px 12px;border:1px solid #5f4c24;border-radius:8px;background:#17130d;color:#cdbb89;font:700 12px/1.45 Arial,sans-serif}.redemption-details>small>b{color:#f5d27b;white-space:nowrap}.redemption-popover:hover .redemption-details,.redemption-popover:focus .redemption-details,.redemption-popover:focus-visible .redemption-details{opacity:1;visibility:visible;transform:translateY(0)}
.treasury-row > .reserve-v2 .redemption-popover::after{left:auto;right:-24px;bottom:calc(100% + 10px);width:min(360px,72vw)!important;padding:15px 17px!important;font-size:14px!important;line-height:1.5!important;white-space:pre-line;color:#fff3cf;background:rgba(5,6,8,.99);box-shadow:0 16px 40px #000,0 0 18px #54dc8d20;transform:translateY(8px)}
.treasury-row > .reserve-v2 .redemption-popover:hover::after,.treasury-row > .reserve-v2 .redemption-popover:focus::after,.treasury-row > .reserve-v2 .redemption-popover:focus-visible::after{transform:translateY(0)}
.treasury-row > .reserve-v2 .redemption-popover::before{left:auto;right:30px}

@media (max-width: 700px) {
  .treasury-row > .panel{min-height:820px!important}.treasury-row > .tracker-v2{min-height:520px!important}
  .treasury-row > .reserve-v2 > .reserve-dashboard{inset:51% 3% 3%;grid-template-rows:auto 52px 52px 70px minmax(0,1fr);padding:8px;gap:5px}.reserve-dashboard>h2{font-size:19px}.reserve-status-card p{font-size:clamp(6px,1.65vw,8px);line-height:1.15}

  .treasury-row > .reserve-v2 > .reserve-status-popover::after {
    position: fixed;
    inset: auto 14px 20px 14px;
    width: auto !important;
    padding: 16px 18px !important;
    font-size: 14px !important;
  }
  .treasury-row > .reserve-v2 > .reserve-status-popover .reserve-status-details{position:fixed;inset:auto 14px 20px;width:auto;padding:16px 18px}.reserve-status-details p{font-size:14px;line-height:1.6}
  .treasury-row > .reserve-v2 > .redemption-popover::after{position:fixed;inset:auto 14px 20px 14px;width:auto!important;padding:14px 16px!important;font-size:13px!important}
  .treasury-row > .reserve-v2 > .redemption-popover .redemption-details{position:fixed;inset:auto 14px 20px;width:auto;padding:16px}.redemption-details>p{font-size:14px}.redemption-details>small>b{white-space:normal}
}

/* Gold Reserve History as a step chart, drawn at the size of its panel.
 *
 * The chart used to be a fixed 700x320 drawing scaled to fit, so on a phone its
 * labels shrank to a few pixels and the panel kept a tall empty space under it.
 * The drawing now fills whatever room the panel gives it, and app.js measures
 * that room, so the type is the same size on every screen. */
.tracker-v2 .treasury-chart-stage{flex:1 1 auto;min-height:230px}
/* Left to right in every language: figures, units and a time axis do not mirror. */
.tracker-v2 .treasury-chart-stage svg{position:absolute;inset:0;width:100%;height:100%;min-height:0;direction:ltr}
.treasury-grid line{stroke:#8a7440;opacity:.22}
.treasury-grid line.treasury-baseline{opacity:.6}
.treasury-grid text,.treasury-dates text{fill:#b9a877;font:11px Manrope,Arial,sans-serif;font-variant-numeric:tabular-nums}
.treasury-line{stroke-width:2;filter:none}
.treasury-points{opacity:0;transition:opacity .35s ease .9s}
.chart-drawn .treasury-points{opacity:1}
/* The dark ring keeps a dot readable where it sits on the line. */
.treasury-points circle{fill:#f0c869;stroke:#0e0d0a;stroke-width:2;cursor:pointer;outline:none}
.treasury-points circle.active,.treasury-points circle:focus-visible{fill:#fff0b8}
.treasury-crosshair{stroke:#d9c58d;stroke-width:1;opacity:.4;pointer-events:none}
.treasury-latest text{fill:#fdf1c8;stroke:#0b0a08;stroke-width:3px;paint-order:stroke fill;font:700 13px Manrope,Arial,sans-serif}
.treasury-tooltip{pointer-events:none;white-space:nowrap}
.treasury-tooltip b{font:700 14px Manrope,Arial,sans-serif;color:#fff3cf}
.treasury-tooltip span{font:12px Manrope,Arial,sans-serif;color:#c9b783}
/* Bars: gold from the baseline, with a cap that says which way the reserve moved. */
.treasury-bar-cap{fill:#6ee0b6}
.treasury-bar.is-out .treasury-bar-cap{fill:#ff9f96}
.treasury-bar-body{fill:url(#treasury-bar)}
.treasury-bar-value{fill:#fdf1c8;font:700 12px Manrope,Arial,sans-serif;font-variant-numeric:tabular-nums}
.treasury-bar-name{fill:#b9a877;font:11px Manrope,Arial,sans-serif;font-variant-numeric:tabular-nums}
.treasury-bar-hit{fill:transparent;cursor:pointer;outline:none}
.treasury-bar.active .treasury-bar-body{fill:#f7dc8c}
.treasury-bar.active .treasury-bar-name{fill:#fdf1c8}
.treasury-bar-hit:focus-visible{stroke:#f1ce72;stroke-width:1;stroke-dasharray:none}
.treasury-bar :is(.treasury-bar-cap,.treasury-bar-body){transform-box:fill-box;transform-origin:50% 100%;transform:scaleY(0);transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.treasury-bar-value{opacity:0;transition:opacity .3s ease .55s}
.chart-drawn .treasury-bar :is(.treasury-bar-cap,.treasury-bar-body){transform:scaleY(1)}
.chart-drawn .treasury-bar-value{opacity:1}
.treasury-static .treasury-bar :is(.treasury-bar-cap,.treasury-bar-body){transform:scaleY(1)!important;transition:none!important}
.treasury-static .treasury-bar-value{opacity:1!important;transition:none!important}
.treasury-tooltip span+span{color:#9d916f}
@media(prefers-reduced-motion:reduce){.treasury-bar :is(.treasury-bar-cap,.treasury-bar-body){transform:scaleY(1)!important;transition:none!important}.treasury-bar-value{opacity:1!important;transition:none!important}}
.treasury-static .treasury-line{animation:none!important;stroke-dashoffset:0!important}
.treasury-static :is(.treasury-latest,.treasury-points){opacity:1!important;transition:none!important}
@media(max-width:700px){.treasury-row > .tracker-v2{min-height:380px!important}}
@media(prefers-reduced-motion:reduce){.treasury-points{opacity:1!important;transition:none!important}}

/* The two pop-ups in the Gold Reserve panel sit beside their card on a wide
 * screen. The rule meant to turn them into a sheet at the bottom of a phone
 * named them as direct children of the panel, which they are not, so on a phone
 * they stayed off the left edge: unreadable in any language, and in Arabic,
 * where a page can scroll leftwards, the whole homepage slid sideways. */
@media (max-width: 700px) {
  .treasury-row .reserve-v2 .reserve-status-details,
  .treasury-row .reserve-v2 .redemption-details{position:fixed;inset:auto 14px 20px;width:auto;max-height:70vh;overflow:auto;padding:16px 18px}
}

/* Gold Reserve on a narrow screen.
 *
 * The artwork has its own figures painted into its right half ("368 g"), which
 * the live panel covers on a wide screen. On a phone the panel was moved under
 * the picture instead, so the painted, out-of-date figures showed above the real
 * ones, and the picture was stretched to twice its height. Here only the vault
 * half of the artwork is shown, at its own proportions, with the live panel
 * beneath it at a size that can be read. */
@media (max-width: 700px) {
  .treasury-row > .reserve-v2{display:block;min-height:0!important;aspect-ratio:auto!important;background:#080808}
  .treasury-row > .reserve-v2::before{content:"";display:block;aspect-ratio:3/2;margin-bottom:12px;background:url('gold-reserve-approved.png') left center/213% auto no-repeat}
  /* The panel's original markup is kept invisible behind the artwork; out of the flow here, or it holds the live panel half a screen down. */
  .treasury-row > .reserve-v2 > :not(.reserve-dashboard){display:none!important}
  .treasury-row > .reserve-v2 > .reserve-dashboard{position:relative;inset:auto;margin:0 3% 3%;grid-template-rows:none;grid-auto-rows:auto;gap:8px;padding:12px}
  .treasury-row > .reserve-v2 .reserve-status-card p{font-size:12px;line-height:1.55}
}
/* Arabic: the panel reads right to left. Space added between letters breaks
   Arabic joining, so it is taken off, and a unit sits on the other side of its number. */
.reserve-dashboard[dir="rtl"],.reserve-dashboard[dir="rtl"] *{letter-spacing:0!important}
.reserve-dashboard[dir="rtl"] .reserve-metric>strong small{margin-left:0;margin-right:5px}
