/* /visibility: report-specific styles. Shared pieces live in throne.css. */

.page-head .stamp { display: inline-block; margin: 6px 0 0; padding: 4px 12px; border: 1px solid rgba(212, 169, 98, .55); border-radius: 999px; color: var(--gold-400); font-size: .85rem; }

/* Summary: the one memorable element is the 20-square strip, one square per search. */
.summary { display: grid; gap: 28px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--r-md); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 32px); }
.summary h2 { max-width: 24ch; margin-bottom: .4em; }
.strip { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.cell { display: grid; place-items: center; aspect-ratio: 1 / 1; border: 1.5px solid var(--navy-600); border-radius: 4px; background: #fff; color: var(--navy-600); font: 600 .85rem/1 var(--display); text-decoration: none; }
.cell:hover { background: var(--navy-700); color: #fff; }
.cell-found { background: var(--gold-500); border-color: var(--gold-700); color: var(--navy-900); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .85rem; color: var(--ink-soft); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border: 1.5px solid var(--navy-600); border-radius: 3px; background: #fff; }
.swatch-found { background: var(--gold-500); border-color: var(--gold-700); }
.facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font: 600 .85rem/1.2 var(--display); color: var(--navy-700); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: .95rem; }
.scope { margin-top: 18px; font-size: .9rem; }
@media (min-width: 560px) { .strip { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; } }
@media (min-width: 900px) {
  .summary { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
}

/* Status chips: label always present, colour is secondary. */
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.st-ok { color: var(--stock); background: #E3F3EC; }
.st-partial { color: var(--gold-700); background: #F7EEDC; }
.st-missing { color: var(--danger); background: #FDECEA; }

/* Tables: columns on wide screens, labelled blocks on phones. */
.stack table.data td.num { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stack table.data tbody th { font-weight: 600; color: var(--ink); background: transparent; font-size: .92rem; }
.stack table.data tr:target { background: #FBF5E6; }
.stack table.data tr { scroll-margin-top: 16px; }
@media (max-width: 720px) {
  .stack table.data, .stack table.data tbody { display: block; }
  .stack table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack table.data tr { display: block; padding: 14px 14px 6px; border-bottom: 1px solid var(--line); }
  .stack table.data tr:last-child { border-bottom: 0; }
  .stack table.data th, .stack table.data td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; padding: 0 0 10px; border: 0; background: transparent; }
  .stack table.data td::before { content: attr(data-label); font: 600 .78rem/1.5 var(--display); color: var(--navy-700); }
  .stack table.data tbody th { display: block; font: 600 1rem/1.35 var(--display); color: var(--navy-700); padding-bottom: 8px; }
  .stack table.data td.num { display: none; }
  .stack table.data td .st { justify-self: start; }
  .stack table.data td { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

/* Fix pack */
.pack { display: grid; gap: 36px; margin-top: 24px; }
.pack-title { font-size: 1.25rem; }
.pack-block h3 { font-size: .95rem; margin-bottom: 8px; }
.pack-block .copy-block pre { padding-top: 46px; max-height: 420px; overflow: auto; }
.steps { margin: 16px 0; padding-left: 1.3rem; max-width: 68ch; }
.steps li { margin-bottom: 6px; }

/* One line per engine inside a query cell (web search, then the AI answer engine). */
.engines { margin: 0; display: grid; gap: 8px; }
.engines div { display: grid; gap: 2px; }
.engines dt { font: 600 .74rem/1.3 var(--display); color: var(--ink-soft); }
.engines dd { margin: 0; overflow-wrap: break-word; }
.engines div + div { border-top: 1px dashed var(--line); padding-top: 8px; }
@media (min-width: 900px) {
  .stack table.queries th:nth-child(2) { width: 17%; }
  .stack table.queries th:nth-child(3) { width: 7.5rem; }
  .stack table.queries th:nth-child(4) { width: 34%; }
}
@media (max-width: 720px) {
  .engines { min-width: 0; }
  .engines dd { overflow-wrap: anywhere; }
}
