/* Hidden costs under the accounting waterline (includes/visuals/hidden.php) */
.hd { --hd-line: rgba(255, 255, 255, .14); --hd-dim: rgba(255, 255, 255, .72); --hd-pad: clamp(18px, 3vw, 40px); }

/* above the line: what the accounts show, muted chips */
.hd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 0 var(--hd-pad) 18px; }
.hd-top-l { margin: 0; color: var(--ink-2); }
.hd-vis { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hd-vis li { padding: 5px 13px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); background: var(--white); }

/* the waterline: a gentle wave and its label */
.hd-line { position: relative; height: 30px; }
.hd-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.hd-wave-p { fill: none; stroke: var(--forest); stroke-width: 2.5; stroke-linecap: round; }
.hd-line-t { position: absolute; inset: 0; width: max-content; height: max-content; max-width: 100%; margin: auto; padding: 4px 14px; border-radius: 999px; background: var(--forest); color: var(--green); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* under the line: the deep zone and the losses rising to the surface */
.hd-deep { margin-top: -2px; padding: 28px var(--hd-pad) 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--forest-2) 0%, var(--forest) 28%, #081c0e 100%); color: var(--white); }
.hd-deep-l { margin: 0 0 14px; color: var(--green); }
.hd-cols, .hd-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, 1fr); gap: 0 22px; }
.hd-cols { margin: 0; padding: 0 0 9px; border-bottom: 1px solid rgba(255, 255, 255, .42); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-dim); }
.hd-rows { list-style: none; margin: 0; padding: 0; }
.hd-row { align-items: start; padding: 15px 0; border-bottom: 1px solid var(--hd-line); }
.hd-row:last-child { border-bottom: 0; }
.hd-cl { display: none; }
.hd-loss, .hd-ind { display: grid; gap: 4px; min-width: 0; align-content: start; }
.hd-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--white); }
.hd-ex { font-size: 13px; line-height: 1.4; color: var(--hd-dim); }
.hd-meas { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .88); padding-top: 2px; min-width: 0; }
.hd-act { min-width: 0; }
.hd-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hd-tag { padding: 3px 10px; border: 1.5px solid var(--green); border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--green); white-space: nowrap; }
.hd-ind-t { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--white); }
.hd-gain { font-size: 12.5px; line-height: 1.3; color: var(--green); }

/* the guard strip: service quality checked before extending */
.hd-guard { margin-top: 14px; padding: 16px var(--hd-pad); border-radius: var(--radius); background: var(--mint); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.hd-guard-l { margin: 0; }
.hd-guard-t { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--forest); flex: 1 1 320px; min-width: 0; }
.hd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hd-checks li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--white); font-size: 13px; line-height: 1.3; color: var(--forest); }
.hd-checks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-text); flex: none; }

/* animation: the visible chips settle, the waterline draws and keeps rippling, then the losses rise to the
   surface one after the other (their action tags and indicators a moment later); the guard strip comes last */
.js .vz-figure .hd-vis li { opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .hd-vis li:nth-child(2) { transition-delay: .08s; }
.js .vz-figure .hd-vis li:nth-child(3) { transition-delay: .16s; }
.js .vz-figure .hd-vis li:nth-child(4) { transition-delay: .24s; }
.js .vz-figure .hd-wave-p { stroke-dasharray: 1400 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.1s ease-out .2s; }
.js .vz-figure .hd-line-t { opacity: 0; transition: opacity .4s ease .9s; }
.js .vz-figure .hd-deep-l, .js .vz-figure .hd-cols { opacity: 0; transition: opacity .5s ease .8s; }
.js .vz-figure .hd-row { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .hd-row .hd-act, .js .vz-figure .hd-row .hd-ind { opacity: 0; transition: opacity .45s ease; }
.js .vz-figure .hd-row--1 { transition-delay: 1s; }   .js .vz-figure .hd-row--1 .hd-act, .js .vz-figure .hd-row--1 .hd-ind { transition-delay: 1.35s; }
.js .vz-figure .hd-row--2 { transition-delay: 1.15s; } .js .vz-figure .hd-row--2 .hd-act, .js .vz-figure .hd-row--2 .hd-ind { transition-delay: 1.5s; }
.js .vz-figure .hd-row--3 { transition-delay: 1.3s; }  .js .vz-figure .hd-row--3 .hd-act, .js .vz-figure .hd-row--3 .hd-ind { transition-delay: 1.65s; }
.js .vz-figure .hd-row--4 { transition-delay: 1.45s; } .js .vz-figure .hd-row--4 .hd-act, .js .vz-figure .hd-row--4 .hd-ind { transition-delay: 1.8s; }
.js .vz-figure .hd-row--5 { transition-delay: 1.6s; }  .js .vz-figure .hd-row--5 .hd-act, .js .vz-figure .hd-row--5 .hd-ind { transition-delay: 1.95s; }
.js .vz-figure .hd-row--6 { transition-delay: 1.75s; } .js .vz-figure .hd-row--6 .hd-act, .js .vz-figure .hd-row--6 .hd-ind { transition-delay: 2.1s; }
.js .vz-figure .hd-guard { opacity: 0; transform: translateY(8px); transition: opacity .5s ease 2.4s, transform .6s cubic-bezier(.2, .7, .2, 1) 2.4s; }
.js .vz-figure.is-visible .hd-vis li, .js .vz-figure.is-visible .hd-line-t, .js .vz-figure.is-visible .hd-deep-l, .js .vz-figure.is-visible .hd-cols,
.js .vz-figure.is-visible .hd-row, .js .vz-figure.is-visible .hd-row .hd-act, .js .vz-figure.is-visible .hd-row .hd-ind, .js .vz-figure.is-visible .hd-guard { opacity: 1; transform: none; }
.js .vz-figure.is-visible .hd-wave-p { stroke-dashoffset: 0; animation: hd-ripple 6s ease-in-out 1.4s infinite alternate; }
@keyframes hd-ripple { to { transform: translateX(-12px); } }

@media (max-width: 1100px) and (min-width: 760px) {
  .hd-cols, .hd-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
  .hd-name { font-size: 15px; }
}

/* phones: each loss becomes a card with its cell labels */
@media (max-width: 759px) {
  .hd-top { padding-bottom: 14px; }
  .hd-line-t { font-size: 10.5px; padding: 4px 11px; }
  .hd-cols { display: none; }
  .hd-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 0; border-bottom-color: rgba(255, 255, 255, .22); }
  .hd-cl { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-dim); }
  .hd-loss .hd-cl { display: none; }
  .hd-meas, .hd-act, .hd-ind { padding-top: 0; }
  .hd-meas { font-size: 13.5px; }
  .hd-ind { grid-template-columns: minmax(0, 1fr); }
  .hd-guard { padding: 16px 18px; }
  .hd-guard-t { flex-basis: 100%; }
}
