/* AURA demo site · the Vietnam map and the Question tree Cards (D-CBO-605). The Card is the mock's own (pb.css pb-card, pb-ch, pb-cb); the chart
   type and colours follow the mocks' charts: a sequential viridian scale for the map, hollow sand for no Records. Tokens only; even sizes (1 px hairlines). */
.vz-card { min-height: 0; }
.vz-card .pb-ch .vz-full { flex: none; color: var(--ink-3); }
.vz-take { margin: 0 0 16px; font: 400 var(--fs-md)/24px var(--font-serif); color: var(--ink-2); text-wrap: pretty; }
.vz-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px 16px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.vz-open { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 0; border: 0; background: none; font: 500 var(--fs-sm)/20px var(--font); color: var(--v-700); cursor: pointer; }
.vz-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.vz-open:focus-visible, .vz-cb:focus-visible, .vz-tog:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.vz-wait { display: grid; place-items: center; margin: 0; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }

/* ---------- the map ---------- */
.vz-slot-map { min-height: 360px; }
/* D-CBO-609: both Cards hold one fixed, even frame; the map redraws to fill it, the tree scrolls inside it with a fade while there is more below */
.vz-card .vz-slot { box-sizing: border-box; height: 480px; }
.vz-card .vz-slot-map { min-height: 0; overflow: hidden; }
.vz-card .vz-slot-tree { max-height: none; overflow: auto; overscroll-behavior: contain; }
.vz-slot-tree.vz-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent); }
.vz-card .pb-cb { flex: none; }
.vz-card .vz-foot { margin-top: auto; padding-top: 16px; }
.vz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.vz-crumb { display: flex; align-items: center; gap: 6px; min-height: 28px; font: 600 var(--fs-sm)/20px var(--font); color: var(--ink); }
.vz-cb { padding: 2px 4px; border: 0; border-radius: var(--r-control); background: none; font: inherit; color: var(--v-700); cursor: pointer; }
.vz-cb:hover { background: var(--surface-2); }
.vz-sep { color: var(--ink-4); font-weight: 400; }
.vz-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.vz-li { display: inline-flex; align-items: center; gap: 6px; }
.vz-li i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.vz-body { display: flex; align-items: flex-start; gap: 16px; }
.vz-svg { display: block; flex: none; max-width: 100%; height: auto; overflow: visible; }
.vz-u { stroke: var(--surface); stroke-width: 1; cursor: pointer; transition: opacity 200ms var(--ease-out), fill 200ms var(--ease-out); }
.vz-u:hover { stroke: var(--ink); }
.vz-u:focus { outline: 0; stroke: var(--focus-color); stroke-width: 2; }
.vz-u.vz-on { stroke: var(--ink); stroke-width: 2; }
.vz-u.vz-off { opacity: .48; }
.vz-in .vz-u { animation: vz-fade 480ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes vz-fade { from { opacity: 0; } to { opacity: 1; } }
.vz-t1 { fill: var(--v-100); background: var(--v-100); } .vz-t2 { fill: var(--v-200); background: var(--v-200); } .vz-t3 { fill: var(--v-400); background: var(--v-400); }
.vz-t4 { fill: var(--v-600); background: var(--v-600); } .vz-t5 { fill: var(--v-800); background: var(--v-800); }
.vz-none { fill: var(--surface-2); background: var(--surface-2); stroke: var(--hairline); }
.vz-li i.vz-none { box-shadow: inset 0 0 0 1px var(--hairline); }
.vz-inset { fill: none; stroke: var(--hairline); }
.vz-ilab { font: 400 10px/12px var(--font); fill: var(--ink-3); }
.vz-dot { fill: var(--ink-3); }
.vz-side { flex: 1; min-width: 0; padding-top: 8px; }
.vz-sum { margin: 0; font: 600 var(--fs-sm)/20px var(--font); color: var(--ink); }
.vz-under { margin-top: 8px; font-weight: 500; }
.vz-lab { margin: 16px 0 4px; font: 600 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.vz-top { list-style: none; margin: 0; padding: 0; counter-reset: vz; }
.vz-top li { counter-increment: vz; display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--hairline); font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-2); }
.vz-top li::before { content: counter(vz); width: 12px; color: var(--ink-4); }
.vz-top li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-top li b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.vz-hint { margin: 16px 0 0; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }

/* ---------- the tree: an outline that folds and opens ---------- */
.vz-slot-tree { max-height: 440px; overflow: auto; margin: 0 -8px; padding: 0 8px; }
.vz-tree, .vz-kids { list-style: none; margin: 0; padding: 0; }
.vz-kids { position: relative; margin-left: 14px; padding-left: 12px; border-left: 1px solid var(--hairline); }
.vz-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.vz-tog { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; padding: 0; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink-3); cursor: pointer; }
.vz-tog:hover { background: var(--surface-2); color: var(--ink); }
.vz-tog.vz-leaf { cursor: default; }
.vz-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-control); background: var(--surface-2); color: var(--ink-2); }
.vz-question > .vz-row .vz-ic { background: var(--accent-soft); color: var(--on-accent-soft); }
.vz-txt { flex: 1; min-width: 0; }
.vz-txt small { display: block; font: 500 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.vz-txt b { display: block; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink); text-wrap: pretty; }
.vz-question > .vz-row .vz-txt b { font: 400 var(--fs-xl)/28px var(--font-serif); }
.vz-rq > .vz-row .vz-txt b, .vz-hyp > .vz-row .vz-txt b { font-weight: 500; }
.vz-txt b a { color: inherit; text-decoration: none; }
.vz-txt b a:hover { text-decoration: underline; text-underline-offset: 4px; }
.vz-st { font-style: normal; }
.vz-st.ok { color: var(--v-700); } .vz-st.no { color: var(--danger, var(--ink-2)); } .vz-st.wait { color: var(--ink-2); }

/* ---------- full screen ---------- */
.vz-sheet { position: fixed; inset: 0; z-index: 96; display: flex; flex-direction: column; background: var(--ground); animation: vz-sin 240ms var(--ease-out); }
.vz-sheet[hidden] { display: none; }
@keyframes vz-sin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vz-shead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 32px 48px 16px; border-bottom: 1px solid var(--hairline); }
.vz-shead h2 { margin: 0; font: 400 var(--fs-3xl)/40px var(--font-serif); color: var(--ink); }
.vz-shead p { margin: 4px 0 0; font: 400 var(--fs-md)/24px var(--font-serif); color: var(--ink-2); }
.vz-sbody { flex: 1; min-height: 0; overflow: auto; padding: 24px 48px; }
.vz-sbody .vz-slot-tree, .vz-big-tree { max-height: none; overflow: visible; }
.vz-big-tree { max-width: 960px; }
.vz-snote { margin: 0; padding: 12px 48px 16px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
body.vz-lock { overflow: hidden; }

@media (max-width: 767px) {
  .vz-foot { padding: 0 16px 16px; }
  .vz-shead { padding: 16px; } .vz-sbody { padding: 16px; } .vz-snote { padding: 8px 16px 16px; }
  .vz-shead h2 { font-size: var(--fs-2xl); line-height: 32px; }
  .vz-slot-map { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .vz-in .vz-u, .vz-sheet { animation: none; } }

/* ---------- zoom and pan (D-CBO-614): the control at the map's top right, crisp borders at any zoom ---------- */
.vz-mapw { position: relative; flex: none; max-width: 100%; -webkit-user-select: none; user-select: none; } /* a drag pans, never selects the page */
.vz-mapw .vz-svg { touch-action: pan-y; }
.vz-mapw .vz-svg.vz-zoomed { overflow: hidden; touch-action: none; cursor: grab; } /* zoomed, the map stays inside its frame */
.vz-mapw .vz-svg.vz-drag { cursor: grabbing; }
.vz-svg.vz-drag .vz-u { cursor: grabbing; }
.vz-zg { transform-origin: 0 0; transition: transform 240ms var(--ease-out); }
.vz-zg.vz-live { transition: none; }
.vz-zg .vz-u { vector-effect: non-scaling-stroke; }
.vz-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 2px; padding: 2px; border-radius: var(--r-control); background: var(--surface); box-shadow: var(--shadow-rest), 0 0 0 1px var(--hairline); }
.vz-zoom .iconbtn { width: 32px; height: 32px; }
.vz-zoom .iconbtn .icon.msr { font-size: 20px; }
.vz-zoom .iconbtn:disabled { opacity: .4; cursor: default; }
.vz-zhint { position: absolute; left: 50%; top: 50%; margin: 0; padding: 8px 12px; border-radius: var(--r-control); background: var(--ink); color: var(--ground); font: 500 var(--fs-sm)/20px var(--font); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); transition: opacity 200ms var(--ease-out); }
.vz-zhint.on { opacity: .88; }
@media (prefers-reduced-motion: reduce) { .vz-zg { transition: none; } }
/* zoomed, the wards pass under the insets (Côn Đảo, the archipelagos): each inset keeps its own ground so it stays readable */
.vz-svg.vz-zoomed .vz-inset { fill: var(--surface); }
.vz-sheet .vz-svg.vz-zoomed .vz-inset { fill: var(--ground); }
