/* GOAT is a gold performance signal. Manual references remain neutral. */
.goat-performance-glyph { display: inline-block; width: 21px; height: 22px; flex: none; background: currentColor; -webkit-mask: url('/static/icons/status/goat.png') center / contain no-repeat; mask: url('/static/icons/status/goat.png') center / contain no-repeat; }
.goat-performance-cell { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 34px; min-height: 29px; border: 1px solid transparent; border-radius: 6px; color: var(--ctp-overlay0); font-size: 11px; background: transparent; }
.goat-performance-cell .goat-performance-glyph { opacity: .5; }
.goat-performance-cell.is-qualified:hover { background: var(--ctp-surface0); }
.goat-performance-cell.is-neutral { cursor: default; }
.goat-performance-cell.is-qualified { color: #a47724; }
.goat-performance-cell.is-qualified .goat-performance-glyph { opacity: 1; }
.goat-performance-cell.is-qualified:hover { border-color: #bc923a55; background: #bc923a12; }
.goat-performance-cell.is-stale { border-bottom-style: dotted; border-bottom-color: currentColor; }
.goat-only-filter { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 5px 11px; border: 1px solid var(--ctp-surface1); border-radius: 7px; background: var(--ctp-base); color: var(--ctp-subtext0); font-size: 12px; font-weight: 600; white-space: nowrap; }
.goat-only-filter .goat-performance-glyph { width: 17px; height: 18px; color: #a47724; }
.goat-only-filter:hover, .goat-only-filter[aria-pressed="true"] { color: #916516; border-color: #bc923a66; background: #bc923a12; }
.goat-performance-cell:focus-visible, .goat-only-filter:focus-visible, .goat-evidence :is(button, input, a, summary):focus-visible { outline: 2px solid #a47724; outline-offset: 3px; }
.goat-evidence-backdrop { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgb(31 45 55 / .4); }
.goat-evidence { width: min(620px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; border: 1px solid var(--ctp-surface1); border-radius: 14px; background: var(--ctp-base); color: var(--ctp-text); box-shadow: 0 20px 70px rgb(31 45 55 / .18); text-align: left; font-size: 13px; line-height: 1.6; }
.goat-evidence-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--ctp-surface1); }
.goat-evidence-header h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--ctp-text); }
.goat-evidence-header .goat-performance-glyph { color: #a47724; }
.goat-evidence-header p { margin-top: 5px; color: var(--ctp-subtext0); font-size: 12px; overflow-wrap: anywhere; }
.goat-evidence-close { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 7px; color: var(--ctp-subtext0); font-size: 24px; line-height: 1; }
.goat-evidence-close:hover { background: var(--ctp-surface0); }
.goat-evidence-body { padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.goat-evidence-rule { color: var(--ctp-subtext0); margin: 0 0 18px; }
.goat-evidence-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--ctp-surface1); background: var(--ctp-mantle); }
.goat-evidence-summary.is-qualified { border-color: #bc923a40; background: #bc923a0b; }
.goat-evidence-summary strong { font-weight: 650; }
.goat-evidence-summary span, .goat-evidence-provenance { font-size: 11px; color: var(--ctp-subtext0); }
.goat-evidence-status, .goat-evidence-empty { margin: 12px 0; color: var(--ctp-subtext0); }
.goat-evidence-status button { color: var(--ctp-teal); font-weight: 650; text-decoration: underline; margin-left: 6px; }
.goat-evidence-page { padding: 15px 0; border-bottom: 1px solid var(--ctp-surface0); }
.goat-evidence-page-title { display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.goat-evidence-page-title strong { font-size: 12px; font-weight: 650; }
.goat-evidence a { color: var(--ctp-teal); text-decoration: none; }
.goat-evidence a:hover { text-decoration: underline; }
.goat-evidence-site { margin-left: 8px; color: var(--ctp-overlay1); font-size: 11px; font-weight: 400; }
.goat-evidence-provenance { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 7px; }
.goat-manual-panel { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--ctp-surface1); }
.goat-manual-panel summary { cursor: pointer; color: var(--ctp-subtext0); font-size: 12px; font-weight: 650; }
.goat-manual-panel p { margin: 10px 0; color: var(--ctp-subtext0); font-size: 12px; }
.goat-manual-panel ul { list-style: none; padding: 0; margin: 12px 0; }
.goat-manual-panel li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12px; }
.goat-manual-panel li > a, .goat-manual-panel li > span { min-width: 0; overflow-wrap: anywhere; }
.goat-manual-panel li button { color: var(--ctp-subtext0); font-size: 11px; flex: none; }
.goat-manual-panel li button:hover { color: var(--ctp-red); }
.goat-manual-panel form { display: flex; align-items: flex-end; gap: 9px; margin-top: 13px; }
.goat-manual-panel label { flex: 1; min-width: 0; color: var(--ctp-subtext0); font-size: 11px; }
.goat-manual-panel input { display: block; width: 100%; height: 36px; margin-top: 4px; padding: 7px 10px; border: 1px solid var(--ctp-surface1); border-radius: 7px; background: var(--ctp-mantle); color: var(--ctp-text); font-size: 12px; }
.goat-manual-panel form > button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--ctp-surface1); border-radius: 7px; background: var(--ctp-surface0); color: var(--ctp-text); font-size: 12px; font-weight: 600; }
.goat-manual-panel button:disabled { opacity: .5; cursor: default; }
.goat-manual-panel .goat-manual-error { color: var(--ctp-red); }
@media (max-width: 640px) {
  .goat-evidence-backdrop { padding: 12px; }
  .goat-evidence { max-height: calc(100dvh - 24px); border-radius: 12px; }
  .goat-evidence-header { padding: 17px 18px 14px; }
  .goat-evidence-body { padding: 17px 18px 20px; }
  .goat-manual-panel input { font-size: 16px; }
}

/* Teleported page previews remain readable beyond table and scroll boundaries. */
.goat-performance-wrap { display: inline-flex; }
.goat-pages-popover { position: fixed; z-index: 2100; overflow-y: auto; overscroll-behavior: contain; padding: 15px 16px 11px; border: 1px solid var(--ctp-surface1); border-top: 2px solid #b99243; border-radius: 10px; background: var(--ctp-base); color: var(--ctp-text); box-shadow: 0 10px 34px rgb(31 45 55 / .16); text-align: left; font-size: 12px; line-height: 1.5; }
.goat-pages-popover header { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; }
.goat-pages-popover header strong { font-size: 13px; font-weight: 650; }
.goat-pages-popover header > span, .goat-pages-status { color: var(--ctp-subtext0); font-size: 11px; }
.goat-pages-popover ul { list-style: none; padding: 0; margin: 0; }
.goat-pages-popover li { border-top: 1px solid var(--ctp-surface0); }
.goat-pages-popover li a { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 11px 19px 11px 0; color: var(--ctp-teal); text-decoration: none; overflow-wrap: anywhere; }
.goat-pages-popover li a strong { color: var(--ctp-text); font-size: 12px; font-weight: 600; }
.goat-pages-popover li a:hover > span:not(.goat-pages-arrow) { text-decoration: underline; }
.goat-pages-popover .goat-pages-arrow { position: absolute; top: 12px; right: 0; color: var(--ctp-overlay1); }
.goat-pages-details { width: 100%; padding: 9px 0 2px; border-top: 1px solid var(--ctp-surface1); color: var(--ctp-subtext0); font-size: 11px; text-align: left; }
.goat-pages-details:hover { color: var(--ctp-teal); }
.goat-pages-popover :is(a, button):focus-visible { outline: 2px solid #a47724; outline-offset: 3px; }
