/* TV Normalizer: the house frame in deep audio blue with a GMax gold accent. */

.house-frame:has(.tvn-cover) {
  --cover-a: #1d4a7a;
  --cover-b: #0b1d36;
  --cover-glow: rgba(127, 178, 255, .32);
  --cover-warm: rgba(255, 211, 106, .18);
  --accent: #1f5f9e;
}

.tvn-figure { margin: 0; }
.tvn-figure img {
  display: block; width: min(100%, 880px); height: auto;
  border: 1px solid #22385a; border-radius: 6px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .35), 0 10px 26px rgba(11, 29, 54, .28);
}

.tvn-steps { padding-left: 0; list-style: none; counter-reset: tvn-step; }
.tvn-steps > li { position: relative; margin: 0 0 30px; padding-left: 52px; counter-increment: tvn-step; }
.tvn-steps > li::before {
  content: counter(tvn-step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: #14243c; font: 700 16px/1 var(--h-sans, system-ui, sans-serif);
  background: linear-gradient(#ffe39a, #f2c04c); border: 1px solid #c79a2a; border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 2px 5px rgba(20, 36, 60, .2);
}
.tvn-steps h3 { margin: 4px 0 8px; font-size: 1.15em; }

.tvn-code {
  margin: 12px 0; padding: 13px 16px; overflow-x: auto;
  color: #e8f1ff; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace;
  background: #102440; border: 1px solid #22385a; border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.tvn-code code { font: inherit; white-space: pre; }
.house-prose code { font: .86em ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.tvn-menu { margin: 14px 0; }
.tvn-menu > div { padding: 12px 0; border-top: 1px solid var(--h-line); }
.tvn-menu > div:last-child { border-bottom: 1px solid var(--h-line); }
.tvn-menu dt { font-weight: 700; }
.tvn-menu dd { margin: 4px 0 0; color: var(--h-muted); }

.tvn-files { padding-left: 0; list-style: none; }
.tvn-files li { padding: 6px 0; }
.tvn-files a { margin-right: 8px; }
.tvn-credits { color: var(--h-muted); font-size: .92em; }
.tvn-code-wrap { position: relative; }
.tvn-code-wrap .tvn-code { padding-right: 84px; }
.tvn-copy {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px;
  color: #14243c; font: 600 12px/1.4 system-ui, sans-serif;
  background: linear-gradient(#ffe39a, #f2c04c); border: 1px solid #c79a2a; border-radius: 4px; cursor: pointer;
}
.tvn-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
