.vds-panel {margin-top:1rem}
.vds-panel .vd-panel-head {margin-bottom:.4rem}
.vds-panel .vds-guide,.vds-panel .vds-source {color:var(--vd-muted);font-size:.91rem;line-height:1.5}
.vds-gallery {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;list-style:none;margin:1rem 0;padding:0}
.vds-card {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.3rem .6rem;align-content:start;padding:.65rem;min-width:0;border:1px solid var(--vd-line);background:var(--vd-paper);border-radius:.55rem;overflow:visible}
.vds-card:focus-within,.vds-card:hover {border-color:var(--vd-accent)}
.vds-card.vds-selected {background:var(--vd-subtle);border-color:var(--vd-selected)}
.vds-card a {justify-self:start;align-self:center;color:var(--vd-selected);text-underline-offset:.16em}
.vds-card a:focus-visible {outline:3px solid var(--vd-selected);outline-offset:2px}
.vds-country {font-weight:650;font-size:.98rem;line-height:1.3}
.vds-value {color:var(--vd-selected);font-size:.94rem;line-height:1.35;font-weight:650;text-align:end;font-variant-numeric:tabular-nums}
.vds-plot {display:block;grid-column:1/-1;width:100%;height:auto;overflow:visible;direction:ltr}
.vds-plot text {fill:var(--vd-muted);font:12px system-ui,sans-serif;font-variant-numeric:tabular-nums}
.vds-grid {stroke:var(--vd-line);stroke-width:1;vector-effect:non-scaling-stroke}
.vds-zero {stroke:var(--vd-muted);stroke-dasharray:3 4}
.vds-trace {fill:none;stroke:var(--vd-accent);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.vds-selected .vds-trace {stroke:var(--vd-selected)}
.vds-dot {fill:var(--vd-accent)}
.vds-endpoint {fill:var(--vd-surface);stroke:var(--vd-selected);stroke-width:2;vector-effect:non-scaling-stroke}
.vds-card small {grid-column:1/-1;color:var(--vd-muted);font-size:.8rem;line-height:1.4}
.vds-details td small {display:block;color:var(--vd-muted);font-size:.8rem}
.vds-details .vd-table-wrap {margin-block:.55rem;max-width:100%}
.vds-details th,.vds-details td {vertical-align:top}
@media(max-width:800px) {.vds-gallery {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px) {.vds-gallery {grid-template-columns:minmax(0,1fr)}}
@media print {.vds-gallery {grid-template-columns:repeat(3,minmax(0,1fr))}.vds-card {break-inside:avoid}}

.vds-controls {display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:.65rem 1rem;margin:.75rem 0 1rem}
.vd-peer-form label,.vds-window>span {display:block;font-size:.88rem;font-weight:650;color:var(--vd-muted);margin-block-end:.2rem}
.vd-peer-form>div,.vds-window nav {display:flex;align-items:stretch;flex-wrap:wrap;gap:.3rem}
.vd-peer-form :is(select,button) {font:inherit;font-size:.94rem;background:var(--vd-surface);border:1px solid var(--vd-line);color:var(--vd-ink);min-height:2.6rem;border-radius:.4rem;padding:.4rem .7rem}
.vd-peer-form button {color:var(--vd-selected);cursor:pointer;font-weight:600}
html[data-vd-interactive] .vd-peer-form button {display:none}
.vds-window nav a {padding:.45rem .7rem;min-height:2.5rem;display:inline-flex;align-items:center;font-size:.88rem;border:1px solid var(--vd-line);border-radius:.4rem}
.vds-window nav a[aria-current] {border-color:var(--vd-selected);background:var(--vd-subtle);color:var(--vd-selected);font-weight:650;text-decoration:none}
.vds-legend {display:flex;flex-wrap:wrap;gap:.5rem 1.8rem;list-style:none;padding:0;margin:1rem 0 .6rem}
.vds-legend li {display:flex;align-items:baseline;gap:.5rem}
.vds-legend-value,.vds-legend small {display:block;color:var(--vd-muted);font-variant-numeric:tabular-nums;font-size:.9rem}
.vds-key {width:2rem;align-self:flex-start;margin-top:.7rem;border-block-start:3px solid var(--vd-selected)}
.vds-legend-peer .vds-key {border-block-start:2px dashed var(--vd-warm)}
.vds-pair-plot {display:grid;grid-template-columns:3.7rem minmax(0,1fr);column-gap:.5rem;row-gap:.45rem;margin:1rem .45rem .8rem 0;font-variant-numeric:tabular-nums;font-size:.86rem;color:var(--vd-muted)}
.vds-pair-drawing {position:relative;height:clamp(10rem,24vw,15rem);min-width:0}
.vds-pair-drawing svg {display:block;width:100%;height:100%;overflow:visible}
.vds-overlay-line {fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.vds-overlay-line.vds-focus {stroke:var(--vd-selected);stroke-width:3.3}
.vds-overlay-line.vds-peer {stroke:var(--vd-warm);stroke-width:2;stroke-dasharray:7 4}
.vds-mark {position:absolute;pointer-events:none;box-sizing:border-box}
.vds-mark.vds-focus {width:7px;height:7px;background:var(--vd-selected);border-radius:50%;transform:translate(-50%,-50%)}
.vds-mark.vds-peer {width:5px;height:5px;background:var(--vd-surface);border:1px solid var(--vd-warm);transform:translate(-50%,-50%) rotate(45deg)}

.vds-pair-yaxis {position:relative}
.vds-pair-yaxis bdi {position:absolute;right:0;transform:translateY(-50%)}





.vds-unavailable {margin:.7rem 0;color:var(--vd-muted)}
@media(max-width:540px) {
  .vds-controls {align-items:flex-start}
  .vd-peer-form {flex-basis:100%}
  .vd-peer-form select {max-width:100%}
  .vds-pair-plot {grid-template-columns:3.1rem minmax(0,1fr)}
}
@media print {
  .vd-peer-form,.vds-window {display:none}
  .vds-pair-plot {print-color-adjust:exact}
}
.vds-value {min-width:0;align-self:center}
.vds-value small {font-size:.8rem;font-weight:500;white-space:nowrap}
.vds-plot .vds-point-label {font-size:13px;font-weight:700;paint-order:stroke;stroke:var(--vd-paper);stroke-width:3.6px;fill:var(--vd-ink);stroke-linejoin:round}
.vds-selected .vds-point-label {stroke:var(--vd-subtle)}
.vds-inspect-line,.vds-pair-cursor {pointer-events:none}
.vds-inspect-line {stroke:var(--vd-muted);stroke-dasharray:3 2;vector-effect:non-scaling-stroke}
.vds-pair-cursor {position:absolute;top:0;bottom:0;border-left:1px dashed var(--vd-muted)}
.vds-panel [hidden] {display:none!important}
.vds-panel[data-vds-active] [data-vds-hit] {cursor:crosshair;touch-action:pan-y}
.vds-panel [data-vds-marked].vds-endpoint,.vds-panel [data-vds-marked].vds-dot {stroke:var(--vd-selected);stroke-width:2;r:3.5;fill:var(--vd-surface)}
.vds-panel [data-vds-marked].vds-mark {outline:2px solid var(--vd-ink);outline-offset:2px}
.vds-pair-checkpoints {grid-column:2;position:relative;min-height:4.2rem}
.vds-checkpoint {position:absolute;transform:translateX(-50%);text-align:center;min-width:0;max-width:34%}
.vds-checkpoint:first-child {text-align:left;transform:none}
.vds-checkpoint:last-child {text-align:right;transform:translateX(-100%);width:max-content}
.vds-checkpoint>span {display:block;font-size:.83rem;font-weight:620;word-break:normal;overflow-wrap:anywhere}
.vds-check-focus {color:var(--vd-selected)}.vds-check-peer {color:var(--vd-warm)}
.vds-inspector {background:var(--vd-paper);padding:.75rem;border-radius:.5rem;border:1px solid var(--vd-line);margin:.8rem 0 1rem}
.vds-inspect-bar,.vds-year-steps {display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
.vds-inspect-bar>label {font-size:.95rem;font-weight:650}
.vds-inspect-bar label bdi {font-variant-numeric:tabular-nums}
.vds-inspector button {font:inherit;font-size:.87rem;min-height:2.6rem;min-width:2.75rem;padding:.4rem .57rem;border-radius:.35rem;border:1px solid var(--vd-line);background:var(--vd-surface);color:var(--vd-ink);cursor:pointer}
.vds-inspector button:disabled {opacity:.56;cursor:default}
.vds-inspector .vds-pin[aria-pressed="true"] {border-color:var(--vd-selected);color:var(--vd-selected);background:var(--vd-subtle);font-weight:650}
.vds-year-steps input {width:clamp(6rem,18vw,16rem);min-height:2.5rem;accent-color:var(--vd-selected);margin:0 .1rem;cursor:pointer}
.vds-inspector>p {font-size:.86rem;color:var(--vd-muted);margin:.4rem 0}
.vds-precision summary {width:fit-content;cursor:pointer;color:var(--vd-ink);font-size:.88rem;font-weight:600}
.vds-precision dl {margin:.5rem 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.4rem .6rem}
.vds-precision dt {font-size:.81rem;color:var(--vd-muted)}
.vds-precision dd {font-size:.9rem;font-variant-numeric:tabular-nums;color:var(--vd-ink);overflow-wrap:anywhere}
@media(max-width:540px) {
  .vds-precision dl {grid-template-columns:repeat(2,minmax(0,1fr))}
  .vds-year-steps {flex-basis:100%;flex-wrap:nowrap;order:3}
  .vds-year-steps input {flex:1;min-width:0;width:3rem}
  .vds-checkpoint>span {font-size:.78rem}
}
@media print {.vds-inspector {display:none}}

.vds-local-reading {grid-column:1/-1;border-inline-start:2px solid var(--vd-selected);padding-inline-start:.45rem;font-variant-numeric:tabular-nums;font-size:.88rem;line-height:1.4;overflow-wrap:anywhere}

/* Place the two readings together on the roomier side of the inspected year.
   The half-width cap always leaves both selected markers clear at their x position. */
.vds-pair-float {position:absolute;z-index:2;pointer-events:none;box-sizing:border-box;width:max-content;max-width:calc(50% - .6rem);padding:.32rem .43rem;border:1px solid var(--vd-line);border-radius:.35rem;background:var(--vd-surface);color:var(--vd-ink);box-shadow:0 1px 4px rgb(15 47 51 / .17);font-variant-numeric:tabular-nums;line-height:1.26;direction:ltr}
.vds-pair-float[data-side=left] {right:calc(100% - var(--vds-cursor) + .52rem)}
.vds-pair-float[data-side=right] {left:calc(var(--vds-cursor) + .52rem)}
.vds-float-title {margin-bottom:.18rem;padding-bottom:.15rem;border-bottom:1px solid var(--vd-line);font-size:.81rem;font-weight:600;overflow-wrap:anywhere}
.vds-float-row {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:0 .45rem;font-size:.88rem;overflow-wrap:anywhere}
.vds-float-row>bdi:first-child {font-size:.8rem;font-weight:650}
.vds-float-row>bdi:last-child {font-weight:700}
.vds-float-focus {color:var(--vd-selected)}
.vds-float-peer {color:var(--vd-warm)}
@media(max-width:420px) {.vds-pair-float {padding:.24rem .3rem}.vds-float-row {font-size:.84rem;gap:0 .23rem}}
