/* Illustration-led Overview; surrounding model layout remains unchanged. */
.wbv-deep-dive.wbv-pathway-disclosure > summary {
  margin-top: 16px; padding: 14px 18px; border: 1px solid #d6b477;
  border-radius: 9px; background: #f7ebcf; cursor: pointer;
}
.wbv-pathway-disclosure > summary:hover { background: #f0dfb7; border-color: #ae7d39; }
.wbv-pathway-disclosure > summary > .wbv-disclosure-label { font-size: 1rem; font-weight: 700; }
.wbv-disclosure-label small { display: block; margin-top: 4px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.wbv-pathway-disclosure .wbv-disclosure-hide { display: none; }
.wbv-pathway-disclosure[open] .wbv-disclosure-show { display: none; }
.wbv-pathway-disclosure[open] .wbv-disclosure-hide { display: inline; }
.wbv-pathway-disclosure[open] > summary > .wbv-disclosure-label { transform: none; }
.wbv-deep-dive.wbv-pathway-disclosure > summary > .wbv-disclosure-arrow { width: 10px; height: 10px; margin: 0 6px 5px 16px; border-right: 2px solid var(--wine-900); border-bottom: 2px solid var(--wine-900); border-radius: 1px; background: transparent; transform: rotate(45deg); }
.wbv-deep-dive.wbv-pathway-disclosure[open] > summary > .wbv-disclosure-arrow { transform: rotate(225deg); margin-bottom: -5px; }
.wbv-evidence-companion .wbv-evidence-choices button {
  position: relative; text-align: left; border-radius: 12px;
  border-color: #e5d3ad; background: linear-gradient(135deg, #fffdf7, #faf1de);
  box-shadow: 0 2px 4px #70483406;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wbv-evidence-companion .wbv-evidence-choices button:hover {
  border-color: #bf965b; box-shadow: 0 4px 12px #70483412;
}
.wbv-evidence-companion .wbv-evidence-choices button[aria-pressed=true] {
  border-color: var(--wine-800); background: linear-gradient(135deg, #f8ecd0, #eed9ab);
  box-shadow: inset 4px 0 var(--wine-800), 0 3px 10px #70483410;
}
#overviewContent .wbv-evidence-companion .wbv-level {
  display: grid; place-items: center; flex: 0 0 32px; height: 32px;
  border-radius: 9px; background: #ead8b450; color: #96652c;
  font-size: .8rem; font-weight: 700;
}
#overviewContent .wbv-evidence-companion button[aria-pressed=true] .wbv-level {
  background: var(--wine-900); color: var(--cream-100);
}
.wbv-evidence-companion .wbv-evidence-choices strong { line-height: 1.35; }
.wbv-evidence-companion .wbv-evidence-choices small { opacity: .8; }
.wbv-evidence-companion .wbv-evidence-choices button em {
  border: 0; border-radius: 999px; background: #ead8b46b;
  color: #81551f; padding: 5px 9px; font-weight: 600; white-space: nowrap;
}
.wbv-evidence-companion .wbv-evidence-choices button[aria-pressed=true] em {
  background: #fff8e6b3; color: var(--wine-900);
}
.wbv-evidence-companion .wbv-evidence-choices button:focus-visible {
  outline: 3px solid var(--gold-500); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .wbv-evidence-companion .wbv-evidence-choices button { transition: none; }
}
.wbv-visual-evidence { display: grid; gap: 20px; margin-top: 22px; }
#overviewContent .wbv-visual-evidence > .wbv-module { margin: 0; }
@media (min-width: 1600px) {
  .wbv-visual-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .wbv-visual-evidence > .wbv-gallery { grid-column: 1; grid-row: 1; }
  .wbv-evidence-companion { grid-column: 2; grid-row: 1; }
  .wbv-evidence-companion .wbv-evidence-grid { grid-template-columns: 1fr; }
  .wbv-evidence-companion .wbv-evidence-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbv-evidence-companion .wbv-evidence-choices button { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .wbv-evidence-companion .wbv-evidence-choices button > span:nth-child(2) { flex: 1; }
  .wbv-evidence-companion .wbv-evidence-choices em { margin-left: 0; }
  .wbv-evidence-companion .wbv-evidence-detail { min-height: 0; padding: 20px; }
  .wbv-visual-evidence > .wbv-gallery { align-content: start; }
  .wbv-evidence-companion .wbv-evidence-takeaway { align-items: flex-start; }
}
.wbv-gallery { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
.wbv-gallery > .wbv-heading { grid-column: 1 / -1; margin-bottom: 0; }
.wbv-diagram-selector { display: grid; grid-template-columns: 1fr; align-content: start; align-self: start; gap: 12px; padding: 0; background: transparent; border: 0; margin-top: 0; }
.wbv-diagram-selector button { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 16px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--wine-900); font-size: 1rem; font-weight: 700; }
.wbv-diagram-selector button[aria-pressed=true] { background: var(--wine-900); color: var(--cream-100); border-color: var(--wine-950); box-shadow: inset 0 -2px var(--gold-500); }
.wbv-diagram-selector button:hover:not([aria-pressed=true]) { background: var(--paper); }
.wbv-diagram-selector button > span { font-size: 1.4rem; }
.wbv-gallery-stage { display: block; min-width: 0; height: auto; margin-top: 0; padding: 12px; background: #fff; border: 0; border-radius: 0; overflow: auto; scrollbar-color: #ac7940 #f8ecd0; }
.wbv-gallery-visual { min-width: 0; margin-inline: auto; }
.wbv-gallery-visual[hidden] { display: none; }
#mechanismVisual, #evidenceVisual { max-width: none; margin-inline: auto; }
#mechanismVisual, #evidenceVisual { width: 100%; }
.wbv-gallery .wbv-art-button { padding: 0; }
#overviewContent .wbv-gallery-caption { font-size: .95rem; line-height: 1.6; color: var(--muted); padding: 16px 20px; background: var(--paper); border-top: 1px solid #e8d7b4; }
.wbv-gallery .wbv-diagram-selector button { display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: left; padding: 0; overflow: hidden; border: 1px solid #dfc692; background: #f8eed7; border-radius: 10px; }
.wbv-gallery .wbv-diagram-selector button[aria-pressed=true] { background: var(--wine-900); border-color: var(--wine-900); box-shadow: inset 0 -3px var(--gold-500); }
.wbv-diagram-selector img { display: block; width: 100%; height: 120px; object-fit: contain; background: #fff; padding: 4px; border-bottom: 1px solid #e8d7b4; }
.wbv-gallery .wbv-diagram-selector .wbv-selector-copy { display: block; font-size: 1rem; padding: 12px 14px; }
.wbv-selector-copy strong { display: block; font-size: 1rem; line-height: 1.4; }
.wbv-selector-copy small { display: block; font-size: .875rem; font-weight: 400; line-height: 1.55; margin-top: 7px; opacity: .85; }
.wbv-viewer { min-width: 0; width: 100%; align-self: start; border: 1px solid #dfc692; border-radius: 10px; overflow: hidden; background: #fff; }
.wbv-viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e8d7b4; background: #f8eed7; color: var(--wine-950); }
.wbv-viewer-toolbar > strong { font-size: 1rem; line-height: 1.4; }
.wbv-viewer-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.wbv-viewer-controls button { min-height: 36px; min-width: 36px; padding: 7px 10px; border: 1px solid #dcc28c; border-radius: 5px; color: var(--wine-900); background: var(--paper); font-size: .875rem; font-weight: 700; }
.wbv-viewer-controls button:hover:not(:disabled) { background: var(--gold-300); }
.wbv-viewer-controls button:disabled { opacity: .4; cursor: default; }
.wbv-viewer-controls output { font-size: .8rem; min-width: 42px; text-align: center; color: var(--muted); }
.wbv-gallery-stage.is-zoomed { max-height: 75dvh; }
@media (max-width: 700px) {
  .wbv-gallery { grid-template-columns: 1fr; gap: 16px; }
  .wbv-diagram-selector { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wbv-diagram-selector img { height: 110px; }
  .wbv-gallery .wbv-diagram-selector .wbv-selector-copy { padding: 12px; }
  .wbv-selector-copy strong { font-size: .9rem; }
  .wbv-selector-copy small { font-size: .8rem; }
  .wbv-gallery-stage { height: auto; min-height: 0; padding: 5px; }
  .wbv-diagram-selector button { padding: 10px 7px; font-size: .9rem; gap: 6px; }
  .wbv-diagram-selector button > span { display: none; }
}
#overviewContent .wbv-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: radial-gradient(ellipse at 5% 0%, #953113, transparent 75%), var(--wine-950); }
#overviewContent .wbv-hero-copy { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 30px; }
#overviewContent .wbv-hero-copy > .wbv-kicker { grid-column: 1 / -1; }
#overviewContent .wbv-hero h2 { grid-row: auto; margin: 0; font-size: clamp(2rem, 3vw, 3rem); align-self: center; }
#overviewContent .wbv-hero-copy > p { align-self: end; }
#overviewContent .wbv-hero-actions { margin-top: 0; align-self: start; }
.wbv-hero-visual .wbv-wave i { animation: wbv-wave-pulse 1.5s ease-in-out 3; }
.wbv-hero-visual .wbv-wave i:nth-child(3n) { animation-delay: .15s; }
.wbv-hero-visual .wbv-wave i:nth-child(4n) { animation-delay: .3s; }
.wbv-hero-visual .wbv-orbit-dot { animation: wbv-node-pulse 1.5s ease-in-out 3; }
@keyframes wbv-wave-pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); opacity: .5; } }
@keyframes wbv-node-pulse { 0%, 100% { box-shadow: 0 0 0 5px #ffcc3d18; } 50% { box-shadow: 0 0 0 10px #ffcc3d08; } }
@media (prefers-reduced-motion: reduce) { .wbv-hero-visual .wbv-wave i, .wbv-hero-visual .wbv-orbit-dot { animation: none; } }
.wbv-mechanism-art { margin-top: 22px; border: 1px solid #e4cc99; background: #fff; border-radius: 10px; overflow: hidden; }
.wbv-art-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 22px; color: var(--wine-950); background: var(--paper); border-bottom: 1px solid #eadbbe; }
#overviewContent .wbv-art-toolbar .wbv-kicker { color: #94622a; font-size: .75rem; margin-bottom: 5px; }
.wbv-art-toolbar strong { font-size: 1.1rem; line-height: 1.4; }
.wbv-expand { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #d9bb7e; background: #f3e5c3; padding: 10px 14px; border-radius: 6px; color: var(--wine-900); font-weight: 700; font-size: .9rem; }
.wbv-expand:hover { background: var(--gold-300); border-color: #b98329; }
.wbv-expand > span { font-size: 1.4rem; line-height: 1; }
.wbv-art-button { display: block; width: 100%; padding: 14px; background: #fff; cursor: zoom-in; border: 0; }
.wbv-art-button img { display: block; width: 100%; height: auto; }
.wbv-art-button:focus-visible { outline-offset: -4px; outline: 3px solid var(--wine-800); }
.wbv-art-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; padding: 16px; color: var(--muted); border-top: 1px solid #eadbbe; background: var(--paper); }
.wbv-art-key > span { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; }
.wbv-art-key i { width: 8px; height: 8px; border-radius: 50%; }
.key-transmission { background: #428ca6; }.key-stress { background: #ca4934; }.key-protection { background: #688d55; }
#overviewContent .wbv-orientation { margin-bottom: 20px; }
.wbv-visual-route { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0; }
.wbv-visual-route > span { display: flex; flex-direction: column; align-items: center; gap: 13px; text-align: center; color: var(--wine-900); font-weight: 700; font-size: 1rem; flex: 1; }
.wbv-visual-route b { display: grid; place-items: center; height: 54px; width: 54px; background: var(--wine-900); color: var(--gold-300); border-radius: 50%; font-size: 1.15rem; font-weight: 500; box-shadow: 0 0 0 6px #f6ead1; }
.wbv-visual-route > i { color: #b18745; font-size: 1.5rem; font-style: normal; }
.wbv-deep-dive { border-top: 1px solid #ddc99d; margin-top: 10px; }
.wbv-deep-dive > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; padding: 18px 4px 4px; color: var(--wine-900); font-weight: 700; font-size: 1rem; cursor: pointer; }
.wbv-deep-dive > summary::-webkit-details-marker { display: none; }
.wbv-deep-dive > summary > span { font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
.wbv-deep-dive[open] > summary > span { transform: rotate(45deg); }
.wbv-deep-dive > summary:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.wbv-evidence-art { margin-top: 22px; border: 1px solid #e4cc99; border-radius: 10px; overflow: hidden; background: #fff; }
.wbv-hierarchy-crop { position: relative; aspect-ratio: 1693 / 812; padding: 0; overflow: hidden; }
.wbv-hierarchy-crop img { position: absolute; width: 100%; max-width: none; left: 0; top: 0; height: auto; }
.wbv-evidence-takeaway { display: flex; gap: 16px; align-items: center; padding: 22px 0 10px; }
.wbv-evidence-takeaway > span { display: grid; place-items: center; color: var(--wine-800); background: #f4e3bc; border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; font-size: 1.6rem; }
#overviewContent .wbv-evidence-takeaway p { font-size: 1rem; line-height: 1.65; color: var(--muted); }
.wbv-evidence-takeaway strong { display: block; color: var(--wine-950); }
.wbv-redox { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 18px; padding: 32px 18px; margin-top: 22px; border: 1px solid #e4cc99; border-radius: 10px; background: radial-gradient(ellipse at 10% 50%, #f4d6b966, transparent 45%), radial-gradient(ellipse at 95% 50%, #eed79555, transparent 45%), #faf3e5; }
.wbv-redox-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--wine-900); }
.wbv-redox-side > strong { font-size: 1rem; }.wbv-redox-side > span { font-size: .875rem; color: var(--muted); }
.wbv-particles { width: 100px; height: 88px; position: relative; margin-bottom: 7px; }
.wbv-particles i { position: absolute; border: 2px solid #a54e27; background: #c5703f26; border-radius: 50%; width: 22px; height: 22px; box-shadow: inset 0 0 0 4px #fffaf088; }
.wbv-particles i:nth-child(1) { left: 35px; top: 25px; width: 34px; height: 34px; }.wbv-particles i:nth-child(2) { left: 12px; top: 9px; }.wbv-particles i:nth-child(3) { left: 66px; top: 1px; width: 18px; height: 18px; }.wbv-particles i:nth-child(4) { left: 76px; top: 39px; }.wbv-particles i:nth-child(5) { left: 16px; top: 62px; }.wbv-particles i:nth-child(6) { left: 57px; top: 68px; width: 15px; height: 15px; }.wbv-particles i:nth-child(7) { left: 0; top: 41px; width: 12px; height: 12px; }
.wbv-shield { width: 74px; height: 88px; display: grid; place-items: center; margin-bottom: 7px; background: linear-gradient(145deg, #deb850, #ae8126); clip-path: polygon(50% 0, 95% 18%, 91% 60%, 77% 82%, 50% 100%, 23% 82%, 9% 60%, 5% 18%); }.wbv-shield > span { color: #fff8df; font-size: 3.2rem; font-weight: 400; }
.wbv-balance { position: relative; height: 162px; max-width: 270px; width: 100%; justify-self: center; }
.wbv-balance-beam { position: absolute; left: 4%; top: 28px; width: 92%; height: 5px; border-radius: 4px; background: var(--wine-800); transform: rotate(-9deg); }
.wbv-balance-pivot { position: absolute; top: 35px; height: 89px; width: 7px; left: calc(50% - 3.5px); background: var(--wine-800); }.wbv-balance-pivot::before { content: ''; position: absolute; width: 17px; height: 17px; border: 3px solid #ad7931; background: var(--gold-300); border-radius: 50%; left: -5px; top: -10px; }
.wbv-balance-base { position: absolute; left: 30%; width: 40%; height: 9px; top: 124px; border-radius: 50%; background: #a67835; }
.wbv-balance-left, .wbv-balance-right { position: absolute; top: 46px; left: 0; width: 33%; height: 51px; border-left: 1px solid #b88642; border-right: 1px solid #b88642; border-bottom: 8px solid #b56c39; border-radius: 0 0 50% 50%; display: grid; place-items: center; }
.wbv-balance-right { left: auto; right: 0; top: 12px; border-bottom-color: #c49a36; }
.wbv-balance-left span, .wbv-balance-right span { color: var(--wine-900); font-size: .8rem; font-weight: 700; padding: 5px; background: #faf3e5; }
.wbv-balance > small { position: absolute; top: 145px; width: 100%; text-align: center; font-size: .8rem; color: var(--muted); }
dialog.wbv-lightbox { padding: 0; width: min(96vw, 1700px); max-width: 96vw; height: auto; max-height: 94dvh; border: 1px solid #d5b46e; border-radius: 12px; background: #fff; color: var(--wine-950); overflow: hidden; }
dialog.wbv-lightbox:not([open]) { display: none; }
dialog.wbv-lightbox[open] { display: flex; flex-direction: column; }
.wbv-lightbox::backdrop { background: #210904cc; backdrop-filter: blur(5px); }
.wbv-lightbox-bar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 14px; padding: 15px 20px; background: var(--wine-950); color: var(--cream-100); }
.wbv-lightbox-bar h2 { font-size: 1.2rem; color: inherit; margin: 0; }
.wbv-lightbox-bar > div { display: flex; gap: 8px; }
.wbv-lightbox-bar button { padding: 10px 13px; border: 1px solid #f6d27d66; border-radius: 5px; background: #fff0c918; color: var(--cream-100); font-size: .95rem; }
.wbv-lightbox-bar button[aria-pressed=true] { background: var(--gold-500); color: var(--wine-950); }
.wbv-lightbox-scroll { overflow: auto; min-height: 0; overscroll-behavior: contain; }
.wbv-visual-canvas { width: 100%; position: relative; }
.wbv-visual-canvas img { display: block; width: 100%; max-width: none; height: auto; }
.wbv-visual-canvas.is-hierarchy { aspect-ratio: 1693 / 812; overflow: hidden; }
.wbv-visual-canvas.is-hierarchy img { position: absolute; left: 0; top: 0; }
.wbv-visual-canvas.is-zoomed { width: 150%; }
@media (max-width: 800px) {
  #overviewContent .wbv-hero { grid-template-columns: 1fr; }
  .wbv-hero-visual { border-left: 0; border-top: 1px solid #ffdc8d26; }
  #overviewContent .wbv-hero-copy { grid-template-columns: 1fr; padding: 24px; }
  #overviewContent .wbv-hero h2 { grid-row: auto; }
  .wbv-art-toolbar { padding: 16px; }.wbv-art-button { padding: 5px; }.wbv-hierarchy-crop { padding: 0; }
  .wbv-visual-route { gap: 7px; }.wbv-visual-route > span { font-size: .85rem; }.wbv-visual-route b { width: 44px; height: 44px; }
  .wbv-redox { gap: 12px; padding: 24px 12px; grid-template-columns: 1fr 1fr; }
  .wbv-balance { grid-row: 2; grid-column: 1 / -1; margin-top: 15px; }
}
@media (max-width: 480px) {
  .wbv-art-toolbar { gap: 10px; }.wbv-art-toolbar strong { font-size: 1rem; }.wbv-expand { padding: 9px 12px; }
  .wbv-art-key { justify-content: flex-start; gap: 10px; }
  .wbv-visual-route { flex-wrap: wrap; justify-content: center; row-gap: 22px; }
  .wbv-visual-route > span { flex: 0 0 40%; }.wbv-visual-route > i:nth-of-type(2) { display: none; }
  .wbv-visual-route > span:last-child { margin-right: 0; }
  .wbv-evidence-takeaway { align-items: flex-start; }
  .wbv-lightbox-bar { padding: 13px; }.wbv-lightbox-bar h2 { font-size: 1rem; }
}
