/* Shared presentation and guide frame. */
html.fd .ov-page { background: var(--ap-gray-950); font-size: 16px; }

.ov-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.ov-top {
  display: flex; align-items: center; gap: 12px;
  height: 58px;
  border-bottom: 1px solid var(--ap-gray-800);
}
.ov-top__brand { display: inline-flex; align-items: center; }
.ov-top__logo { height: 22px; width: auto; display: block; }

.ov-top__pages {
  display: inline-flex; align-items: center; gap: 16px;
  margin-left: 12px; padding-left: 14px;
  border-left: 1px solid var(--ap-gray-800);
}

.ov-top__word {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ap-text-secondary);
}

.ov-top__nav {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ap-text-secondary);
  text-decoration: none;
  transition: color .15s;
}
.ov-top__nav:hover { color: var(--ap-text-primary); }

.ov-top__nav.is-tuneout { animation: ovSignalPulse 1.4s ease-out; }
@keyframes ovSignalPulse {
  0%   { color: var(--ap-text-secondary); text-shadow: none; }
  30%  { color: var(--ap-series-volume); text-shadow: 0 0 9px color-mix(in srgb, var(--ap-series-volume) 45%, transparent); }
  100% { color: var(--ap-text-secondary); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-top__nav.is-tuneout { animation: none; color: var(--ap-series-volume); transition: color .3s; }
}

/* In-text Signal link: primary text color at rest (unlike the blue ov-link
   default) so the blue tune-out pulse reads against it. Uses its own keyframes
   because ovSignalPulse rests on the secondary gray of the header SIGNAL. */
/* .ov-link.ov-link--signal: the plain .ov-link color rule is declared later in
   this file at equal specificity, so the compound selector is required to win. */
.ov-link.ov-link--signal { color: var(--ap-text-primary); }
.ov-link.ov-link--signal:hover { color: var(--ap-text-primary); }
.ov-link.ov-link--signal.is-tuneout { animation: ovSignalPulseInk 1.4s ease-out; }
@keyframes ovSignalPulseInk {
  0%   { color: var(--ap-text-primary); text-shadow: none; }
  30%  { color: var(--ap-series-volume); text-shadow: 0 0 9px color-mix(in srgb, var(--ap-series-volume) 45%, transparent); }
  100% { color: var(--ap-text-primary); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-link.ov-link--signal.is-tuneout { animation: none; color: var(--ap-series-volume); transition: color .3s; }
}

.ov-top__navsep {
  display: inline-block; width: 1px; height: 12px;
  background: var(--ap-gray-800);
}

.ov-top__speech { display: inline-flex; align-items: center; gap: 7px; }
.ov-top__mic { width: 13px; height: 13px; color: var(--ap-text-secondary); flex: none; }
.ov-top__beta {
  padding: 2px 6px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ap-series-volume) 45%, transparent);
  background: color-mix(in srgb, var(--ap-series-volume) 12%, transparent);
  color: var(--ap-series-volume);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.3;
}
.ov-top__spacer { flex: 1 1 auto; }

/* DEMO: button-styled (not a plain nav link), same accent treatment as the
   OVERVIEW button's active state in audit.php's topbar (.ap-tb-btn.is-active,
   assets/shell.css). Height matches .ov-theme-btn (32px) since it sits directly
   to that button's left. */
.ov-top__demo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; box-sizing: border-box;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(var(--ap-accent-rgb), 0.35);
  background: rgba(var(--ap-accent-rgb), 0.06);
  color: rgba(var(--ap-accent-rgb), 0.90);
  transition: border-color .15s, background .15s, color .15s;
}
.ov-top__demo:hover {
  border-color: rgba(var(--ap-accent-rgb), 0.55);
  background: rgba(var(--ap-accent-rgb), 0.1);
}
.ov-top__demo:focus-visible {
  outline: 2px solid var(--ap-series-volume);
  outline-offset: 3px;
}

.ov-top__station {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ap-text-secondary);
  white-space: nowrap;
}
.ov-top__station b { font-weight: 600; color: var(--ap-text-primary); }
.ov-theme-btn {
  appearance: none; background: transparent;
  border: 1px solid var(--ap-gray-800); border-radius: 6px;
  color: var(--ap-text-secondary); cursor: pointer;
  width: 32px; height: 32px; display: inline-flex;
  align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.ov-theme-btn:hover { border-color: var(--ap-series-volume); color: var(--ap-text-primary); }
.ov-top a:focus-visible,
.ov-theme-btn:focus-visible,
.ov-link:focus-visible {
  outline: 2px solid var(--ap-series-volume);
  outline-offset: 3px;
}
.ov-theme-btn svg { width: 16px; height: 16px; }
.ov-theme-btn .ov-ico-sun { display: none; }
html.fd.light .ov-theme-btn .ov-ico-sun { display: block; }
html.fd.light .ov-theme-btn .ov-ico-moon { display: none; }

.ov-hero { padding: 40px 0 34px; }
.ov-hero__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin: 0 0 30px;
}
.ov-hero__title {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 36px; font-weight: 700; line-height: 1.04;
  letter-spacing: -.025em; text-transform: none; color: var(--ap-text-primary);
  margin: 0;
}
.ov-hero__title-muted { color: var(--ap-text-secondary); }

.ov-hero__tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ap-text-secondary);
  line-height: 1.55; margin: 0;
}

.ov-section {
  padding: 38px 0;
  border-top: 1px solid var(--ap-gray-800);
}
.ov-h2 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 21px; font-weight: 650; line-height: 1.18;
  letter-spacing: -.015em; color: var(--ap-text-primary);
  text-transform: none;
  margin: 0 0 20px;
}

.ov-h3 {
  font-size: 14px; font-weight: 600; line-height: 1.3;
  color: var(--ap-text-primary);
  margin: 24px 0 8px;
}

.ov-footnote {
  font-size: 12px; color: var(--ap-text-secondary);
  margin-top: 4px;
}
.its-fn-mark {
  font-size: .75em; vertical-align: super; line-height: 0;
}

.ov-talk-heading {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px;
}
.ov-talk-heading .ov-h2 { margin: 0; }

.ov-talk-heading__station {
  margin-left: auto; text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ap-text-tertiary);
  padding: 4px 12px; border: 1px solid var(--ap-gray-800); border-radius: 999px;
  background: var(--ap-navy-900);
}
.ov-talk-heading__station b { font-weight: 600; color: var(--ap-text-primary); }

.ov-p {
  font-size: 15.5px; line-height: 1.66; color: var(--ap-text-primary);
  margin: 0 0 15px; max-width: 68ch;
}
.ov-p:last-child { margin-bottom: 0; }
.ov-p strong { font-weight: 600; }

.ov-p--muted { color: var(--ap-text-secondary); }

.ov-p--lead { font-weight: 500; }

.ov-p--op {
  font-size: 13.5px; line-height: 1.6; color: var(--ap-text-secondary);
  margin: 0; max-width: 68ch;
}
.ov-p--op-gap { margin-bottom: 15px; }
.ov-p--op .ov-p__op-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  color: var(--ap-text-secondary); margin-right: 8px;
}

.ov-subnote {
  font-size: 13px; line-height: 1.6; color: var(--ap-text-secondary);
  margin: -6px 0 0; max-width: 68ch;
}

.ov-fnref {
  color: var(--ap-text-secondary);
  font-weight: 400;
  text-decoration: none;
}
sup.ov-fnref { margin-left: 1px; }
span.ov-fnref { margin-right: 4px; }

.gr-defs { margin: 16px 0 0; padding: 16px 18px; display: grid; gap: 8px;
  background: var(--ap-navy-800); border: 1px solid var(--ap-gray-800); border-radius: 10px; }
.gr-defs__h { font-family:"IBM Plex Mono",ui-monospace,monospace; font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ap-text-secondary); margin: 0 0 2px; }
.gr-defs p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ap-text-secondary); }

.ov-callout {
  margin: 20px 0;
  background: var(--ap-navy-800);
  border: 1px solid var(--ap-gray-800);
  border-left: 2px solid var(--ap-gray-700);
  border-radius: 6px;
  padding: 15px 18px;
}
.ov-callout p {
  font-size: 15px; line-height: 1.6; color: var(--ap-text-primary); margin: 0;
}
.ov-callout p + p { margin-top: 9px; }

.ov-callout--narrow {
  max-width: 65%;
  margin-right: auto;
}
@media (max-width: 620px) {
  .ov-callout--narrow { max-width: 100%; }
}

.ov-graph { margin: 26px 0 4px; }

.ov-graph + .ov-p { margin-top: 22px; }

.ov-graph__title {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ap-text-secondary);
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px;
}
.ov-graph__title::before {
  content: ""; width: 26px; height: 2px; flex: 0 0 auto;
  background: var(--ap-gray-700); border-radius: 1px;
}
.ov-graph__frame {
  background: var(--ap-navy-900);
  border: 1px solid var(--ap-gray-800);
  border-radius: 10px;
  padding: 18px 20px 14px;
}
.ov-graph__frame svg { display: block; width: 100%; height: auto; }

.ov-graph__note {
  font-size: 13px; line-height: 1.6; color: var(--ap-text-secondary);
  margin: 12px 0 0;
}

.ov-graph__cap {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 11px; font-weight: 400; letter-spacing: .06em; line-height: 1.6;
  text-transform: uppercase; color: var(--ap-text-secondary);
  margin: 9px 0 0;
}

.ov-fineprint {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.5; letter-spacing: .02em;
  color: var(--ap-text-secondary);
}
/* Open icon at the end of the fineprint: opens /stations/ in the system modal. */
.ov-fineprint__open {
  display: inline-flex; vertical-align: -2px; margin-left: 4px;
  color: var(--ap-text-secondary); transition: color .15s ease;
}
.ov-fineprint__open:hover { color: var(--ap-text-primary); }
.ov-fineprint__open svg { width: 13px; height: 13px; }

.ov-basis {
  font-size: 14px; line-height: 1.6; color: var(--ap-text-secondary);
  margin: 22px 0 6px;
}
.ov-updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--ap-text-secondary); letter-spacing: .02em;
  margin: 0;
}

.ov-trained {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.5; color: var(--ap-text-secondary);
  letter-spacing: .02em; margin: 22px 0 5px;
}

.ov-demo {
  font-size: 15.5px; line-height: 1.6; color: var(--ap-text-primary); margin: 6px 0 0;
}
.ov-demo strong { font-weight: 600; }
.ov-link { color: var(--ap-series-volume); text-decoration: none; }
.ov-link:hover { text-decoration: underline; }
.ov-p--right { text-align: right; margin-top: -9px; }

.ov-section .fd-btn--primary {
  background: color-mix(in srgb, var(--ap-series-volume) 70%, black);
  border-color: color-mix(in srgb, var(--ap-series-volume) 70%, black);
  opacity: 1;
}
.ov-section .fd-btn--primary:hover {
  filter: brightness(1.06);
  background: color-mix(in srgb, var(--ap-series-volume) 70%, black);
  opacity: 1;
}

.ov-more__summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ap-text-secondary);
}
.ov-more__summary::-webkit-details-marker { display: none; }
.ov-more__summary::before {
  content: "+"; font-size: 13px; line-height: 1; color: var(--ap-text-secondary);
  flex: 0 0 auto; transition: transform .15s ease;
}
.ov-more[open] .ov-more__summary::before { content: "\2212"; }
.ov-more__box {
  margin: 12px 0 0; max-width: 64ch;
  padding: 18px 20px;
  border: 1px solid var(--ap-gray-800);
  border-radius: var(--fd-radius);
  background: var(--ap-navy-900);
}
.ov-more__box-title {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ap-text-secondary);
  margin: 0 0 12px;
}
.ov-more__list {
  margin: 0; padding: 0 0 0 18px;
}
.ov-more__list .ov-p {
  font-size: 13px; line-height: 1.55; margin: 0 0 8px;
}
.ov-more__list .ov-p:last-child { margin-bottom: 0; }
.ov-more .ov-basis { font-size: 12.5px; margin: 16px 0 0; }
.ov-more__box .ov-basis { margin: 16px 0 0; }

.ov-rule { border: none; border-top: 1px solid var(--ap-gray-800); margin: 28px 0; }

.ov-footer {
  border-top: 1px solid var(--ap-gray-800);
  padding: 26px 0 52px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ov-footer__brand {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em;
  
  color: var(--ap-text-primary); background: var(--ap-navy-800);
  padding: 4px 10px; border-radius: 3px;
  text-decoration: none; display: inline-block;
  transition: opacity .15s ease;
}
.ov-footer__brand:hover { opacity: .82; }

.ov-footer__nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ov-footer__link,
.ov-footer__top {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ap-text-secondary); text-decoration: none;
  transition: color .15s ease;
}
.ov-footer__link:hover,
.ov-footer__top:hover { color: var(--ap-text-primary); }
.ov-footer__link[aria-current="page"] { color: var(--ap-text-secondary); cursor: default; }
.ov-footer__navsep { width: 1px; height: 14px; background: var(--ap-gray-800); flex-shrink: 0; }
.ov-footer__top { padding-left: 14px; border-left: 1px solid var(--ap-gray-800); }
/* Footer SIGNAL rests on the same secondary gray as the header one, so the
   header keyframes are reused as-is. */
.ov-footer__link.is-tuneout { animation: ovSignalPulse 1.4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .ov-footer__link.is-tuneout { animation: none; color: var(--ap-series-volume); transition: color .3s; }
}

.ov-section--muted .ov-h2,
.ov-section--muted .ov-p { color: var(--ap-text-secondary); }

.ov-section--muted .ov-h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
}

.ov-endlink-wrap { margin: 20px 0 0; }
.ov-endlink {
  font-size: 12.5px; color: var(--ap-text-secondary); text-decoration: none;
  border-bottom: 1px solid var(--ap-gray-700);
  padding-bottom: 1px; transition: color .15s, border-color .15s;
  cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
}
.ov-endlink:hover { color: var(--ap-text-primary); border-color: var(--ap-series-volume); }

.ov-modal[hidden] { display: none; }
.ov-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ov-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 12, .72);
}
html.fd.light .ov-modal__backdrop { background: rgba(30, 41, 59, .42); }
.ov-modal__panel {
  position: relative;
  width: min(1000px, 100%);
  height: min(86vh, 900px);
  background: var(--ap-navy-900);
  border: 1px solid var(--ap-gray-700);
  border-radius: 12px;
  box-shadow: var(--fd-shadow-pop);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ov-modal__panel--text {
  width: min(520px, 100%);
  height: auto;
  max-height: 86vh;
}
.ov-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--ap-navy-800); border: 1px solid var(--ap-gray-800);
  color: var(--ap-text-secondary); font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.ov-modal__close:hover { color: var(--ap-text-primary); border-color: var(--ap-series-volume); }
.ov-modal__frame {
  flex: 1 1 auto; width: 100%; border: 0; display: block;
  background: var(--ap-gray-950);
}
.ov-modal__body { padding: 30px 28px 28px; overflow-y: auto; }
.ov-modal__title {
  font-size: 16px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ap-text-primary); margin: 0 0 16px;
}
.ov-modal__body p {
  font-size: 15px; line-height: 1.62; color: var(--ap-text-primary); margin: 0 0 11px;
}
.ov-modal__body p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .ov-talk-heading__station { font-size: 10.5px; letter-spacing: .1em; }
  .ov-wrap { padding: 0 18px; }
  .ov-hero { padding: 40px 0 4px; }
  .ov-section { padding: 30px 0; }
  .ov-hero__head { gap: 12px; margin-bottom: 24px; }
  .ov-hero__title { font-size: 30px; }
  .ov-h2 { font-size: 19px; }

  .ov-top { flex-wrap: wrap; height: auto; padding: 9px 0; row-gap: 8px; }
  .ov-top__pages {
    order: 3; flex: 1 0 100%;
    flex-wrap: wrap; row-gap: 6px; gap: 13px;
    margin-left: 0; padding-left: 0; border-left: 0;
  }
  .ov-top__nav { font-size: 10.5px; letter-spacing: .1em; }
  .ov-top__word { display: none; }
  .ov-top__station { font-size: 10.5px; letter-spacing: .1em; }
  .ov-top__station-lbl { display: none; }

}

.ov-page *, .ov-page *::before, .ov-page *::after { box-sizing: border-box; }
.ov-page { margin: 0; }
.ov-page :where(a, button, summary):focus-visible {
  outline: 2px solid var(--ap-series-volume); outline-offset: 4px;
}
.ov-page :where(section[id], h2[id], .tgd-seghead[id]) { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html:has(.ov-page) { scroll-behavior: auto; }
}

@media (min-width: 561px) and (max-width: 780px) {
  .ov-top { flex-wrap: wrap; height: auto; padding: 9px 0; row-gap: 8px; }
  .ov-top__pages {
    order: 3; flex: 1 0 100%; flex-wrap: wrap;
    margin-left: 0; padding-left: 0; border-left: 0;
  }
}
