/* ============================================================
   Blue Orange Digital, interaction components (EDGE)
   shadcn-inspired patterns, re-implemented natively in BOD tokens.
   Tooltip · Vendor hover-card · Edge Scan sheet (dialog) ·
   Tier Tabs explorer · Accordion (FAQ)
   Loaded on top of bod_styles.css. Pair with bod_components.js.
   ============================================================ */

/* ---------- Tier Tabs explorer ---------- */
.tier-tabs { margin-top: 14px; }
.tt-list {
  display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 0; margin-bottom: 0;
}
.tt-tab {
  appearance: none; background: transparent; border: 1px solid transparent; border-bottom: none;
  font-family: var(--sans); cursor: pointer; padding: 14px 22px 16px; border-radius: 10px 10px 0 0;
  color: var(--text-muted); transition: all 0.2s var(--ease); position: relative; top: 1px;
  display: flex; align-items: baseline; gap: 10px;
}
.tt-tab .tt-id { font-family: var(--serif); font-size: 1.35rem; color: var(--text-light); line-height: 1; transition: color 0.2s var(--ease); }
.tt-tab .tt-nm { font-weight: 600; font-size: 0.96rem; }
.tt-tab .tt-nm small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); font-weight: 500; margin-top: 3px; }
.tt-tab:hover { color: var(--navy); background: var(--bg-light); }
.tt-tab:hover .tt-id { color: var(--orange-ink); }
.tt-tab[aria-selected="true"] {
  background: var(--white); border-color: var(--border); color: var(--navy);
  box-shadow: 0 -4px 16px rgba(10,22,40,0.05);
}
.tt-tab[aria-selected="true"] .tt-id { color: var(--orange); }
.tt-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--white);
}
.tt-tab .tt-flag {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--orange); border-radius: 4px; padding: 2px 6px; align-self: center;
}
.tt-panels {
  background: var(--white); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 14px 14px; padding: 38px 40px; box-shadow: var(--shadow-md);
}
.tt-panel { display: none; }
.tt-panel.on { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; animation: ttFade 0.4s var(--ease); }
@keyframes ttFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tt-panel .tt-tagline { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.tt-panel h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.tt-panel .tt-def { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.4rem; }
.tt-panel .tt-role {
  border-left: 3px solid var(--orange); background: var(--bg-page); border-radius: 0 9px 9px 0;
  padding: 14px 18px; font-size: 0.92rem; line-height: 1.55; color: var(--text); margin-bottom: 1.4rem;
}
.tt-panel .tt-role b { color: var(--navy); }
.tt-panel .tt-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; color: var(--orange-ink); }
.tt-panel .tt-cta:hover { color: var(--orange); }
.tt-aside { border-left: 1px solid var(--border); padding-left: 36px; }
.tt-stat { margin-bottom: 22px; }
.tt-stat .tt-stat-val { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.tt-stat .tt-stat-val em { color: var(--orange); font-style: normal; }
.tt-stat .tt-stat-lbl { font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-top: 6px; }
.tt-signals { list-style: none; padding: 0; margin: 0; }
.tt-signals li { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text); align-items: baseline; }
.tt-signals li:first-child { border-top: none; }
.tt-signals .tt-fn { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; }
.tt-signals .tt-mv { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--orange-ink); white-space: nowrap; }
@media (max-width: 820px) {
  .tt-panel.on { grid-template-columns: 1fr; gap: 28px; }
  .tt-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .tt-tab { padding: 11px 14px; }
  .tt-tab .tt-nm small { display: none; }
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 880px; margin: 14px auto 0; border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%; appearance: none; background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  padding: 26px 4px; font-family: var(--serif); font-size: 1.22rem; color: var(--navy); line-height: 1.3;
  transition: color 0.2s var(--ease);
}
.acc-trigger:hover { color: var(--orange-ink); }
.acc-icon { flex: none; width: 26px; height: 26px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--orange);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.acc-icon::before { width: 14px; height: 2px; }
.acc-icon::after { width: 2px; height: 14px; }
.acc-item[data-open="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-item[data-open="true"] .acc-trigger { color: var(--orange-ink); }
.acc-body { overflow: hidden; height: 0; transition: height 0.34s var(--ease); }
.acc-body-inner { padding: 0 4px 28px; color: var(--text-muted); font-size: 1.0rem; line-height: 1.65; max-width: 760px; }
.acc-body-inner p { margin-bottom: 0.8rem; }
.acc-body-inner p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .acc-body { transition: none; } }

/* ---------- Glossary term + tooltip ---------- */
.term {
  border-bottom: 1.5px dotted var(--orange);
  cursor: help; color: inherit; white-space: nowrap;
}
.bod-tip {
  position: fixed; z-index: 400; max-width: 280px; pointer-events: none;
  background: var(--navy-mid, #0f1f38); color: #eaf0f7;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
  padding: 12px 15px; box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  font-family: var(--sans); font-size: 0.85rem; line-height: 1.5;
  opacity: 0; transform: translateY(4px); transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.bod-tip.show { opacity: 1; transform: none; }
.bod-tip .tip-term {
  display: block; font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 5px;
}
.bod-tip::after {
  content: ""; position: absolute; width: 9px; height: 9px; background: var(--navy-mid, #0f1f38);
  border-right: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14);
  left: var(--arrow-x, 50%); margin-left: -5px;
}
.bod-tip[data-place="top"]::after { bottom: -5px; transform: rotate(45deg); }
.bod-tip[data-place="bottom"]::after { top: -5px; transform: rotate(225deg); }

/* ---------- Vendor hover-card ---------- */
.pick[data-vendor] { cursor: default; }
.pick[data-vendor] .pick-name { border-bottom: 1px dotted transparent; transition: border-color 0.2s var(--ease); }
.pick[data-vendor]:hover .pick-name { border-bottom-color: var(--orange); }
.bod-hovercard {
  position: fixed; z-index: 400; width: 296px; pointer-events: none;
  background: var(--white); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 22px 56px rgba(10,22,40,0.20);
  opacity: 0; transform: translateY(6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.bod-hovercard.show { opacity: 1; transform: none; }
.bod-hovercard .hc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.bod-hovercard .hc-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-light); border: 1px solid var(--border); overflow: hidden;
}
.bod-hovercard .hc-mark img { max-width: 24px; max-height: 24px; }
.bod-hovercard .hc-mark.mono { background: var(--navy); border-color: var(--navy); color: #fff; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; }
.bod-hovercard .hc-name { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); line-height: 1.1; }
.bod-hovercard .hc-cat { display: block; font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-top: 3px; }
.bod-hovercard .hc-body { padding: 0 18px 14px; font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); }
.bod-hovercard .hc-foot {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid var(--border);
  background: var(--bg-page); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--orange-ink); font-weight: 600;
}
.bod-hovercard .hc-foot .bod-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- Edge Scan sheet (dialog) ---------- */
.bod-scrim {
  position: fixed; inset: 0; z-index: 500; background: rgba(8,16,30,0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.bod-scrim.open { opacity: 1; pointer-events: auto; }
.bod-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 501; width: min(460px, 100vw);
  background: var(--navy); color: var(--mist); box-shadow: -24px 0 64px rgba(0,0,0,0.4);
  transform: translateX(100%); transition: transform 0.42s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.bod-sheet.open { transform: none; }
.bod-sheet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(132,148,167,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(132,148,167,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 80% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 60% at 80% 0%, #000 20%, transparent 70%);
}
.bod-sheet > * { position: relative; z-index: 1; }
.bod-sheet .sheet-head { padding: 30px 32px 18px; }
.bod-sheet .sheet-close {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff;
  font-size: 1.1rem; cursor: pointer; transition: all 0.2s var(--ease); line-height: 1;
}
.bod-sheet .sheet-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.bod-sheet .sheet-eyebrow { color: var(--orange); }
.bod-sheet h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.5rem; }
.bod-sheet .sheet-sub { color: var(--mist); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.bod-sheet .sheet-body { padding: 8px 32px 24px; }
.bod-field { margin-bottom: 16px; }
.bod-field label { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 7px; }
.bod-field input, .bod-field select, .bod-field textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; padding: 12px 14px; color: #fff; font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease); -webkit-appearance: none; appearance: none;
}
.bod-field textarea { resize: vertical; min-height: 78px; }
.bod-field input::placeholder, .bod-field textarea::placeholder { color: var(--slate); }
.bod-field input:focus, .bod-field select:focus, .bod-field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.08); }
.bod-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F47621' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.bod-field select option { background: var(--navy); color: #fff; }
.bod-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bod-sheet .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.bod-sheet .sheet-fine { font-family: var(--mono); font-size: 0.68rem; color: var(--slate); letter-spacing: 0.02em; margin-top: 16px; line-height: 1.5; text-align: center; }
.bod-sheet .sheet-fine a { color: var(--mist); }
.bod-sheet .sheet-trust { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--navy-line); }
.bod-sheet .sheet-trust img { height: 34px; opacity: 0.85; }
.bod-sheet .sheet-trust span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
/* success state */
.bod-sheet .sheet-success { display: none; padding: 60px 32px; text-align: center; }
.bod-sheet.done .sheet-body { display: none; }
.bod-sheet.done .sheet-success { display: block; }
.bod-sheet .sheet-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(244,118,33,0.14); border: 1.5px solid var(--orange);
  color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px;
}
.bod-sheet .sheet-success h3 { margin-bottom: 0.6rem; }
.bod-sheet .sheet-success p { color: var(--mist); font-size: 0.92rem; }
@media (max-width: 520px) { .bod-field-row { grid-template-columns: 1fr; } }

/* ---------- L1-vs-L3 anatomy diagram ---------- */
.anatomy { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 36px; }
.an-panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px 24px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.an-panel.accent { border-color: rgba(244,118,33,0.45); box-shadow: var(--shadow-md); }
.an-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.an-id { font-family: var(--serif); font-size: 1.6rem; color: var(--text-light); width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; line-height: 1; flex: none; }
.an-panel.accent .an-id { color: var(--orange); border-color: var(--orange); background: rgba(244,118,33,0.08); }
.an-head b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--navy); display: block; line-height: 1.1; }
.an-head small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.an-actor { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 500; color: var(--text-muted); padding: 10px 12px; background: var(--bg-light); border-radius: 8px; margin-bottom: 16px; }
.an-actor svg { width: 19px; height: 19px; stroke: var(--text-muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.an-panel.accent .an-actor { background: rgba(244,118,33,0.09); color: var(--orange-ink); }
.an-panel.accent .an-actor svg { stroke: var(--orange); }
.an-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.an-step { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; padding: 7px 10px; border-radius: 7px; background: var(--bg-light); color: var(--text-muted); border: 1px solid var(--border); }
.an-step i { font-style: normal; display: block; font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 1px; }
.an-step.ai { background: rgba(244,118,33,0.12); color: var(--orange-ink); border-color: rgba(244,118,33,0.32); }
.an-step.human { background: var(--navy); color: #fff; border-color: var(--navy); }
.an-arrow { color: #c0cbd8; font-size: 0.7rem; }
.an-loop { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.04em; color: var(--orange-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.an-loop svg { width: 14px; height: 14px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.an-foot { margin-top: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }
.an-foot b { color: var(--navy); }
.an-panel.accent .an-foot b { color: var(--orange-ink); }
.an-vs { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--text-light); font-size: 1.15rem; }
@media (max-width: 760px) { .anatomy { grid-template-columns: 1fr; gap: 12px; } .an-vs { padding: 2px 0; } }

/* ---------- Assess readout mockup ---------- */
.readout { max-width: 660px; margin: 16px auto 0; background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ro-top { background: var(--navy); padding: 20px 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ro-top .ro-kick { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.ro-top h4 { font-family: var(--serif); font-weight: 400; color: #fff; font-size: 1.3rem; margin: 5px 0 0; }
.ro-top .ro-meta { font-family: var(--mono); font-size: 0.62rem; color: var(--slate); text-align: right; line-height: 1.7; letter-spacing: 0.03em; white-space: nowrap; }
.ro-body { padding: 24px 26px 26px; }
.ro-verdict { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.ro-verdict .ro-now, .ro-verdict .ro-next { text-align: center; }
.ro-verdict .ro-big { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.ro-verdict .ro-now .ro-big { color: var(--navy); }
.ro-verdict .ro-next .ro-big { color: var(--orange); }
.ro-verdict .ro-cap { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-top: 6px; }
.ro-verdict .ro-arr { font-family: var(--serif); font-size: 1.5rem; color: #c0cbd8; }
.ro-verdict .ro-note { margin-left: auto; text-align: right; }
.ro-verdict .ro-bps { font-family: var(--serif); font-size: 1.5rem; color: var(--orange); line-height: 1; }
.ro-verdict .ro-bps small { display: block; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); margin-top: 5px; }
.ro-sub { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.ro-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin-bottom: 22px; }
.ro-dim { font-size: 0.78rem; color: var(--text-muted); }
.ro-dim .ro-dn { display: block; margin-bottom: 5px; }
.ro-dots { display: flex; gap: 3px; }
.ro-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-light); border: 1px solid var(--border); }
.ro-dots i.on { background: var(--orange); border-color: var(--orange); }
.ro-plan { list-style: none; padding: 0; margin: 0; }
.ro-plan li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 9px 0; font-size: 0.86rem; color: var(--text); border-top: 1px solid var(--border); }
.ro-plan li:first-child { border-top: none; }
.ro-plan .ro-step-n { font-family: var(--serif); color: var(--orange); font-size: 1.1rem; line-height: 1.2; }
@media (max-width: 560px) { .ro-dims { grid-template-columns: repeat(2, 1fr); } .ro-top .ro-meta { display: none; } }

/* ---------- Value-gap chart (the trap) ---------- */
.value-gap {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 30px 22px; box-shadow: var(--shadow-md); margin-top: 14px;
}
.value-gap svg { width: 100%; height: auto; display: block; overflow: visible; }
.vg-grid { stroke: var(--border); stroke-width: 1; }
.vg-baseline { stroke: #c0cbd8; stroke-width: 1.5; }
.vg-trap { fill: rgba(10,22,40,0.045); }
.vg-trap-line { stroke: rgba(10,22,40,0.14); stroke-width: 1; stroke-dasharray: 3 4; }
.vg-area-b { fill: url(#vgFill); }
.vg-line-a { fill: none; stroke: var(--slate); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vg-line-b { fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.vg-dot { stroke: var(--white); stroke-width: 2; }
.vg-dot-a { fill: var(--slate); }
.vg-dot-b { fill: var(--orange); }
.vg-l3 { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 5 5; }
.vg-label { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.vg-label-a { fill: var(--slate); }
.vg-label-b { fill: var(--orange-ink); }
.vg-tier { font-family: var(--serif); fill: var(--navy); font-size: 21px; text-anchor: middle; }
.vg-tier-sm { font-family: var(--mono); fill: var(--text-light); font-size: 10px; letter-spacing: 0.05em; text-anchor: middle; }
.vg-trap-label { font-family: var(--mono); fill: var(--text-muted); font-size: 11px; letter-spacing: 0.08em; text-anchor: middle; }
.vg-l3-label { font-family: var(--mono); fill: var(--orange-ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-anchor: middle; text-transform: uppercase; }
.vg-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.vg-legend span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }
.vg-legend i { width: 20px; height: 3px; border-radius: 2px; display: inline-block; }
.vg-legend i.k-a { background: var(--slate); }
.vg-legend i.k-b { background: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .value-gap .vg-line-a, .value-gap .vg-line-b {
    stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: vgDraw 1.7s var(--ease) forwards;
  }
  .value-gap .vg-line-b { animation-delay: 0.35s; }
  .value-gap .vg-dot, .value-gap .vg-label, .value-gap .vg-area-b, .value-gap .vg-l3, .value-gap .vg-l3-label {
    opacity: 0; animation: vgFade 0.7s var(--ease) forwards; animation-delay: 1.5s;
  }
}
@keyframes vgDraw { to { stroke-dashoffset: 0; } }
@keyframes vgFade { to { opacity: 1; } }

/* ---------- EBITDA chart (investment bands) ---------- */
.ebitda-chart {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 38px 30px; box-shadow: var(--shadow-md); margin-bottom: 1.2rem;
}
.ec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.ec-head .ec-title { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }
.ec-head .ec-legend { display: flex; gap: 18px; font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.ec-head .ec-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ec-head .ec-legend i { width: 18px; height: 8px; border-radius: 2px; display: inline-block; }
.ec-legend i.lg-low { background: rgba(244,118,33,0.30); }
.ec-legend i.lg-high { background: var(--orange); }
.ec-plot { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; height: 280px; }
.ec-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0; }
.ec-bar-wrap { position: relative; width: 100%; max-width: 76px; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.ec-bar {
  position: relative; width: 100%; border-radius: 7px 7px 0 0;
  background: rgba(244,118,33,0.26);
  transform: none; transform-origin: bottom;
  min-height: 4px;
}
.ec-bar-floor { position: absolute; left: 0; right: 0; bottom: 0; background: var(--orange); border-radius: 0 0 7px 7px; }
.ebitda-chart.in .ec-bar { transform: none; }
.ec-bar .ec-val {
  position: absolute; top: -30px; left: -8px; right: -8px; text-align: center;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--orange-ink);
  opacity: 1; white-space: nowrap;
}
.ebitda-chart.in .ec-val { opacity: 1; }
/* Entrance animation is OPT-IN via the JS-added .anim class, so the chart is
   always visible if JS/observer never runs. Only collapses when animating. */
@media (prefers-reduced-motion: no-preference) {
  .ebitda-chart.anim .ec-bar { transition: transform 0.9s var(--ease); }
  .ebitda-chart.anim:not(.in) .ec-bar { transform: scaleY(0); }
  .ebitda-chart.anim .ec-val { transition: opacity 0.4s var(--ease) 0.5s; }
  .ebitda-chart.anim:not(.in) .ec-val { opacity: 0; }
}
.ec-xlabel { margin-top: 14px; text-align: center; }
.ec-xlabel b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1; }
.ec-xlabel small { display: block; font-family: var(--mono); font-size: 0.64rem; color: var(--text-light); letter-spacing: 0.04em; margin-top: 5px; }
.ec-baseline { height: 1px; background: var(--border); margin: 0 0 0; }
@media (max-width: 640px) {
  .ebitda-chart { padding: 24px 20px; }
  .ec-plot { height: 220px; gap: 8px; }
  .ec-xlabel small { display: none; }
}
