/* Guide layout and shared examples. */
html.fd:has(.guide-page) {
  --tgd-ui: var(--ap-series-volume);
  --tgd-ui-rgb: var(--fd-accent-rgb);
  --ap-white-rgb: var(--ap-text-primary-rgb);
  --ap-navy-950: var(--ap-navy-800);
}
html.fd .guide-page { font-size: 16px; }
.guide-page .ep-wrap { margin: 0 auto; padding-bottom: 0; }
.guide-pages {
  display: flex; gap: 24px; border-bottom: 1px solid var(--ap-gray-800);
  font-size: 13px;
}
.guide-pages a {
  padding: 14px 0 12px; text-decoration: none; color: var(--ap-text-secondary);
  border-bottom: 2px solid transparent;
}
.guide-pages a[aria-current="page"] { color: var(--ap-text-primary); border-color: var(--ap-series-volume); }
.guide-pages a:hover { color: var(--ap-text-primary); }
.guide-page .tgd-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 34px 0 24px; margin: 0; border: 0;
}
.tgd-hero-main { min-width: 0; }
.tgd-hero-kicker, .tgd-hero-station {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .09em;
  color: var(--ap-text-secondary);
}
.tgd-hero-kicker { margin: 0 0 12px; }
.tgd-hero-sep { margin: 0 4px; }
.guide-page .tgd-hero-title { margin: 0; }
.guide-page .tgd-hero-sub { margin: 10px 0 0; color: var(--ap-text-tertiary); }
.tgd-hero-station { padding-top: 1px; white-space: nowrap; }
.guide-contents {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 14px 0; margin: 0 0 24px;
  border-top: 1px solid var(--ap-gray-800); border-bottom: 1px solid var(--ap-gray-800);
}
.guide-contents a { color: var(--ap-text-secondary); font-size: 12.5px; text-decoration: none; }
.guide-contents a:hover { color: var(--ap-text-primary); text-decoration: underline; text-underline-offset: 4px; }
.guide-page .ep-bridge, .guide-page .ep-bridge-muted {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15.5px; line-height: 1.66; color: var(--ap-text-primary);
  margin: 0; padding: 14px 0 0; max-width: 68ch;
}
.guide-page .ep-bridge-muted { color: var(--ap-text-secondary); }
.guide-page .tgd-lede { padding: 0; }
.guide-page .ep-bridge strong { font-weight: 600; }
.guide-page .tgd-seghead {
  border-top: 1px solid var(--ap-gray-800); margin: 34px 0 18px;
  padding: 30px 0 0; display: block; min-height: 0;
}
.guide-page .tgd-seghead-h { margin: 0; }
.guide-page .tgd-seghead-sub {
  display: block; margin: 8px 0 0; padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: .08em;
  line-height: 1.5; color: var(--ap-text-secondary);
}
.guide-page .tgd-card {
  background: var(--ap-navy-900); border: 1px solid var(--ap-gray-800);
  border-radius: 8px; padding: 18px 20px; margin-top: 22px;
}
.guide-page .tgd-card--accent { border-left: 2px solid var(--ap-series-volume); }
.ep-box-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ep-box-head-text { font: 600 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; color: var(--ap-text-primary); }
.ep-box-head-pre, .ep-box-head-post { display: none; }
.guide-page .ep-sys-link { color: var(--ap-series-volume); text-decoration: underline; text-underline-offset: 3px; }
.guide-page .nv-tip {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 16px;
  background: var(--ap-navy-800); border-left: 2px solid var(--ap-gray-700);
  margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: var(--ap-text-secondary);
}
.nv-tip-dot { display: none; }
.nv-tip-label { color: var(--ap-text-primary); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .08em; margin-right: 5px; }
.guide-page .nv-note { margin: 14px 0 0; line-height: 1.65; padding: 10px 0; color: var(--ap-text-secondary); font-size: 12px; padding-left: 0; border: 0; }
.guide-page .nv-note strong { color: var(--ap-text-primary); }
.guide-page .ep-play-card-caption, .guide-page .nv-caption, .tools-from {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 11px; font-weight: 400; line-height: 1.6; letter-spacing: .06em;
  color: var(--ap-text-secondary); margin: 10px 0 0; text-transform: uppercase;
}
.tools-from { margin-top: 18px; }
.guide-page .ep-divider { display: none; }
.guide-page .gf-footer { margin-top: 38px; }
.guide-page .ov-footer__nav { gap: 14px; }
.guide-page .nv-mini-wrap {
  background: var(--ap-navy-900); border: 1px solid var(--ap-gray-800);
  mask-image: none; -webkit-mask-image: none; overflow-x: auto; margin-top: 18px;
}
.guide-page .nv-mini-table { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 13px; }
.guide-page .nv-mini-table thead th { padding: 12px; font-weight: 500; font-size: 10.5px; font-family: "IBM Plex Mono", monospace; }
.guide-page .nv-mini-table tbody td { padding: 10px 12px; color: var(--ap-text-primary); }
.guide-page .nv-mini-table tbody td.nv-td-artist { color: var(--ap-text-primary); font-weight: 500; }
.guide-page .nv-mini-table td.num { font-family: "IBM Plex Mono", monospace; }
.guide-page .nv-mini-table tbody td.nv-pop-good, .guide-page .nv-inact-pop-val.nv-pop-good { color: var(--fd-good); }
.guide-page .nv-mini-table tbody td.nv-pop-mid { color: var(--fd-warn); }
.guide-page .nv-mini-table tbody td.nv-pop-bad { color: var(--fd-bad); }
.guide-page .nv-signal-box { padding: 16px; min-width: 0; }
.guide-page .nv-signal-title { font-size: 11px; letter-spacing: .03em; line-height: 1.6; }
.guide-page .nv-signal-body { color: var(--ap-text-secondary); font-size: 13.5px; }
.guide-page .nv-signal-box.is-bad .nv-signal-title { color: var(--fd-bad); }
.guide-page .nv-signal-box.is-good .nv-signal-title { color: var(--fd-good); }
.guide-page .nv-tb-box { background: var(--ap-navy-900); border-color: var(--ap-gray-800); }
.guide-page .nv-inact-card { background: var(--ap-navy-900); border-color: var(--ap-gray-800); mask-image: none; -webkit-mask-image: none; }
.guide-page .nv-inact-artist, .guide-page .nv-inact-title { font-size: 13px; line-height: 1.5; }
.guide-page .nv-inact-artist { color: var(--ap-text-primary); }
.guide-page .nv-curve-list { display: grid; gap: 18px; }
.guide-page .nv-curve-text { font-size: 14px; }
.guide-page .nv-curve-sub { font-size: 13.5px; line-height: 1.6; }
.guide-page .ep-visual-row {
  grid-template-columns: minmax(0, 1fr); gap: 18px;
  background: var(--ap-navy-900); border: 1px solid var(--ap-gray-800);
  border-radius: 8px; padding: 16px; align-items: start;
}
.guide-page .ep-visual-row .ep-kpi-demo { text-align: left; padding: 0 12px 8px; }
.guide-page .ep-pop-demo-svg { box-shadow: none; }
.guide-page .ap-hgc-card { background: var(--ap-navy-900); box-shadow: none; border-color: var(--ap-gray-800); border-radius: 8px; }
.guide-page .ap-hgc-date { color: var(--ap-text-secondary); }
.guide-page .ap-hgc-pop-h { color: var(--fd-good); }
.guide-page .ap-hgc-pop-m { color: var(--fd-warn); }
.guide-page .ap-hgc-pop-l { color: var(--fd-bad); }
.guide-page .nv-pop-pill:hover, .guide-page .tg-pop-pill:hover { color: var(--ap-text-primary); }
.guide-page--embed .tgd-hero { padding-top: 24px; }
.guide-page--embed .ov-footer { padding-bottom: 24px; }
@media (max-width: 560px) {
  .guide-page .tgd-hero { flex-wrap: wrap; gap: 12px; padding-top: 26px; }
  .tgd-hero-station { margin-left: auto; }
  .guide-page .tgd-seghead { padding-top: 26px; margin-top: 28px; }
  .guide-page .nv-signal-pair { flex-direction: column; }
  .guide-page .nv-mini-table tbody td { padding: 9px 8px; max-width: 130px; }
  .guide-page .nv-mini-table thead th { padding: 10px 8px; }
  .guide-page .ep-visual-row { padding: 8px; }
  .guide-page .tgd-card { padding: 16px; }
  .guide-page .nv-tb-hint { white-space: normal; }
  .guide-page .ov-footer__nav { margin-left: 0; }
}

.guide-song-artist { display: none; }
.guide-page .nv-inact-card { max-width: 100%; }
.guide-page .nv-inact-row { padding-top: 10px; padding-bottom: 10px; }
.guide-page .ep-img-demo { overflow-x: auto; scrollbar-color: var(--ap-gray-700) var(--ap-navy-900); }
.guide-page .ep-img-demo:focus-visible { outline: 2px solid var(--ap-series-volume); outline-offset: 4px; }
@media (max-width: 560px) {
  .guide-page .ep-img-demo svg { min-width: 560px; }
  .guide-page .nv-mini-table { table-layout: fixed; }
  .guide-page .nv-mini-table tbody td { white-space: normal; overflow-wrap: anywhere; }
  .guide-page .guide-song-artist { display: block; margin-bottom: 3px; font-weight: 500; color: var(--ap-text-secondary); }
  .guide-page .nv-mini-pop th:first-child, .guide-page .nv-mini-pop td:first-child,
  .guide-page .nv-mini-new-music th:nth-child(2), .guide-page .nv-mini-new-music td:nth-child(2) { display: none; }
  .guide-page .nv-mini-new-music th:first-child, .guide-page .nv-mini-new-music td:first-child { display: table-cell; width: 60px; }
  .guide-page .nv-mini-pop th:nth-child(3), .guide-page .nv-mini-pop td:nth-child(3) { width: 52px; }
  .guide-page .nv-mini-table th:last-child, .guide-page .nv-mini-table td:last-child { width: 56px; }
  .guide-page .nv-inact-hdr, .guide-page .nv-inact-row { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .guide-page .nv-inact-artist, .guide-page .nv-inact-title { white-space: normal; overflow-wrap: anywhere; }
  .guide-page .nv-inact-hdr-age { max-width: 58px; white-space: normal; text-align: right; }
  .guide-page .nv-inact-age { width: 58px; }
}

.guide-page #apSysModal__close {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; font-size: 20px; line-height: 1;
  border: 1px solid var(--ap-gray-800); border-radius: 6px;
  background: var(--ap-navy-800); color: var(--ap-text-secondary); cursor: pointer;
}
