/* Moved from websites/templates/websites/_overview_audit_styles.html (redesign checklist: local CSS out of the
   templates). Loaded only by the pages that include that partial. */

/* ---- The document ground ---- */
.oa-doc { --oa-measure: 76ch; }

/* A point's lead line: how many of its answers are written, the help
   note beside it. */
.oa-lead { margin: 0; font-size: 14px; color: var(--color-neutral-700); }
.oa-lead b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--color-text); font-variant-numeric: tabular-nums; }

/* ---- A chapter and its subsections ---- */
.oa-sub { border-top: 1px solid var(--color-divider);
  padding: var(--space-4) 0 var(--space-2); scroll-margin-top: var(--space-6); }
.oa-sub-head { display: flex; align-items: baseline; gap: var(--space-2);
  flex-wrap: wrap; margin-bottom: var(--space-2); }
.oa-sub-head h3 { flex: 1 1 320px; margin: 0; font-size: 18px;
  letter-spacing: -0.01em; }
.oa-chip { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid var(--color-neutral-400);
  padding: 2px 7px; color: var(--color-neutral-700); white-space: nowrap; }
.oa-chip--stale, .oa-chip--pending { border-color: var(--color-accent-400);
  color: var(--color-accent-700); }
.oa-chip--waiting { border-color: var(--color-accent); color: var(--color-accent); }
/* Given up after repeated failures: the .seo-status--bad red, and its
   Retry right under the note. */
.oa-chip--blocked { border-color: var(--coral-text); color: var(--coral-text); }
.oa-retry-form { margin: 0 0 var(--space-3); }

/* The written text itself: a real measure, and the model's tables set as
   the page's own rather than as whatever the fragment brought. */
.oa-sub-body { max-width: var(--oa-measure); font-size: 14.5px; line-height: 1.62; }
/* The answer's first sentence, then its prose folded (redesign plan §7.2). */
.oa-sub-lead { max-width: var(--oa-measure); margin: 0 0 8px; font: 700 17px/1.5 var(--font); color: var(--navy); }
.oa-sub-more { margin: 0 0 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.oa-sub-more > summary { cursor: pointer; font: 800 14px var(--font); color: var(--blue-deep); }
.oa-sub-more[open] > summary { margin-bottom: 10px; }
.oa-sub-body > :first-child { margin-top: 0; }
.oa-sub-body p { margin: 0 0 var(--space-3); }
.oa-sub-body ul, .oa-sub-body ol { margin: 0 0 var(--space-3);
  padding-left: 1.25em; }
.oa-sub-body li { margin-bottom: 4px; }
.oa-sub-body table { width: 100%; max-width: none; border-collapse: collapse;
  margin: var(--space-3) 0; font-size: 13px; }
.oa-sub-body th, .oa-sub-body td { border-bottom: 1px solid var(--color-divider);
  padding: 7px 10px 7px 0; text-align: left; vertical-align: top; }
.oa-sub-body th { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-neutral-700); border-bottom: 2px solid var(--color-text);
  font-weight: 800; }
.oa-sub-body tr:last-child td { border-bottom: 2px solid var(--color-text); }
.oa-sub-body td { font-variant-numeric: tabular-nums; }

.oa-waiting-note { font-size: 13px; color: var(--color-neutral-700);
  max-width: var(--oa-measure); margin: 0 0 var(--space-2);
  border-left: 3px solid var(--color-accent-300); padding-left: var(--space-3); }
.oa-stamp { font-size: 11px; color: var(--color-neutral-600);
  margin: var(--space-2) 0 0; }
/* The "see the full data" links sit on the stamp line and wrap onto their
   own line on a narrow screen rather than pushing the date off. */
.oa-sources { display: inline-block; margin-left: var(--space-2); }
.oa-sources a { color: var(--color-neutral-600); text-decoration: underline; }
.oa-sources a:hover { color: var(--color-accent); }

/* The gate notice: the audit is not late, it is waiting on the customer,
   so it reads as a next step rather than as an error. */
.oa-gate { border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-accent); background: transparent;
  padding: var(--space-4); margin-bottom: var(--space-6); }
.oa-gate h2 { font-size: 20px; margin: 0 0 var(--space-2); }
.oa-gate p, .oa-gate li { max-width: var(--oa-measure); }
.oa-gate ul { padding-left: 1.2em; }

/* ---- Print: the audit is the document it prints to ----
   This page does not include _seo_report_styles.html, so it carries its own
   page setup rather than inheriting the scored reports'. The body figures
   are the one thing that must NOT follow the browser's drop-the-backgrounds
   default, so they ask for their ink explicitly. Type and rules keep the
   default behaviour. */
@media print {
  @page { margin: 14mm 12mm; }
  body { background: var(--white); }
  .site-header, .site-footer, .breadcrumbs, .messages, .header-search,
  .page-menu, .btn, form { display: none !important; }
  .oa-doc a { text-decoration: none; color: inherit; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  thead { display: table-header-group; }
  tr, li { break-inside: avoid; page-break-inside: avoid; }
  .oa-sub { break-inside: avoid; page-break-inside: avoid;
    border-top-color: var(--slate); }
  .oab { break-inside: avoid; page-break-inside: avoid; }
  .oab-bands { grid-template-columns: repeat(2, 1fr); }
  .oab-seg, .oab-bar, .oab-act-bar i, .oab-key::before {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* --- The body figures (DOC_REPORT_GRAPHS.md Part 7) ------------------
   Figures OF THE SITE, drawn above the paragraph they illustrate. Kept
   apart from the .oa-* rules above, which dress the document itself.
   Anything whose fill IS the finding carries print-color-adjust: these
   reports print, and an engine that drops backgrounds deletes the
   finding rather than the decoration. */
.oab { margin: 0 0 var(--space-4); padding: var(--space-3) 0 0; }
.oab-title { margin: 0 0 var(--space-2); font-size: 12px;
  font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--color-neutral-600); }
.oab-cap { margin: var(--space-2) 0 0; font-size: 12px; line-height: 1.5;
  color: var(--color-neutral-600); }
.oab-legend { display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin: var(--space-2) 0 0; font-size: 11px;
  color: var(--color-neutral-600); }
.oab-key::before { content: ""; display: inline-block; width: 10px;
  height: 10px; margin-right: 5px; vertical-align: -1px; border-radius: var(--radius-md);
  background: var(--color-accent-400);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oab-key--1::before, .oab-key--second::before { background: var(--color-accent-700); }
.oab-key--2::before { background: var(--color-divider); }

/* Form K - the score over time */
.oab-plot { width: 100%; height: 132px; overflow: visible; }
.oab-rule { stroke: var(--color-divider); stroke-width: 1; }
.oab-rule--half { stroke-dasharray: 3 4; }
.oab-area { fill: var(--color-accent-100); }
.oab-line { fill: none; stroke: var(--color-accent-600); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; }
.oab-dot { fill: var(--color-accent-700); }
.oab-axis { display: flex; justify-content: space-between;
  margin: var(--space-1) 0 0; font-size: 11px;
  color: var(--color-neutral-600); }

/* Form H - one band per row */
.oab-rows { display: grid; gap: 4px; }
.oab-row, .oab-pair { display: grid; align-items: center;
  grid-template-columns: 128px 1fr 68px; gap: var(--space-2); }
.oab-row-name, .oab-pair-name { font-size: 12px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.oab-row-n, .oab-pair-n { font-size: 11px; text-align: right;
  font-variant-numeric: tabular-nums; color: var(--color-neutral-600); }
.oab-band { display: flex; height: 14px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-neutral-300); }
.oab-seg { display: block; min-width: 2px; height: 100%;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oab-seg--allowed { background: var(--color-accent-400); }
.oab-seg--refused { background: var(--color-accent-700); }
.oab-seg--unmeasured { background: var(--color-divider); }

/* Form L - two bars per entity, the gap between them the message */
.oab-pairs { display: grid; gap: var(--space-2); }
.oab-pair-bars { display: grid; gap: 2px; }
.oab-bar { display: block; height: 9px; min-width: 2px; border-radius: var(--radius-md);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oab-bar--first { background: var(--color-accent-400); position: relative;
  /* Hatched by default: on 3.3 the plain bar is the UNPROVEN part, and a
     flat tone would claim a certainty the probe cannot have. */
  background-image: repeating-linear-gradient(135deg,
    transparent 0 3px, rgba(255,255,255,.55) 3px 6px); }
.oab-bar-solid { position: absolute; inset: 0 auto 0 0; display: block;
  height: 100%; background: var(--color-accent-700);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oab-bar--second { background: var(--color-accent-700); }

/* Form A x4 - the queue in effort bands */
.oab-bands { display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.oab-bandbox { padding: var(--space-2); border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); }
.oab-bandbox--empty { opacity: .6; }
.oab-bandhead { display: flex; justify-content: space-between;
  gap: var(--space-2); margin: 0 0 var(--space-2); font-size: 12px; }
.oab-bandhead span { font-variant-numeric: tabular-nums;
  color: var(--color-neutral-600); }
.oab-act { display: grid; gap: 1px; margin-bottom: 5px; }
.oab-act-name { font-size: 11px; line-height: 1.3; }
.oab-act-bar { display: block; height: 6px; border-radius: var(--radius-md);
  background: var(--color-neutral-300); }
.oab-act-bar i { display: block; height: 100%; min-width: 2px; border-radius: var(--radius-md); background: var(--color-accent-600);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oab-act-tail, .oab-act-none { margin: var(--space-1) 0 0; font-size: 11px;
  color: var(--color-neutral-600); }

@media (max-width: 640px) {
  .oab-row, .oab-pair { grid-template-columns: 92px 1fr 54px; }
}
