/* The audit report's own styles, shared by the hero modal and /audit-report.
   ==========================================================================

   Copied from the tool platform's Site Audit Summary, which is what the owner
   asked for after seeing the first version: the same title row, the same
   intro, ONE numbered list carrying everything including the scores, the same
   "what this report did not check" block and the same closing note. The sizes
   and spacing below are that layout's, not new ones.

   The class names are its names too (sas-pub-*), on purpose. The report is one
   document rendered in three places - the modal, the shared link and the PDF -
   and keeping the names makes it obvious they are the same thing rather than
   three lookalikes.

   One stylesheet rather than a copy in each Astro component: these rules were
   duplicated in two files for a day and had already started to differ.

   Colours are mapped to this site's tokens. Everything else is as it stands in
   the original. */

.sas-pub {
  color: var(--ink);
  font-family: var(--font-text);
}

.sas-pub .sas-pub-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 10px;
}
.sas-pub .sas-pub-t {
  margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.15;
}
.sas-pub .sas-pub-date { font-size: 12.5px; color: #8a8b99; white-space: nowrap; }

.sas-pub .sas-pub-intro {
  margin: 0 0 18px; max-width: 70ch; font-size: 14px; line-height: 1.6; color: var(--muted);
}

/* The numbering is the document's own: the scores are an item in the run and
   the findings carry on from them, exactly as the PDF numbers them. A heading
   dropped into the middle would make the lines under it read as a category
   they are not in. */
.sas-pub .sas-pub-list { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 9px; }
.sas-pub .sas-pub-list > li { font-size: 14px; line-height: 1.55; color: var(--ink); }

.sas-pub .sas-pub-dev {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px 0 2px;
}
.sas-pub .sas-pub-gauges { display: flex; gap: 2px; flex-wrap: wrap; }

/* The score rings, copied from the platform's own psi.css so they are the same
   component rather than a lookalike: a soft track ring, a coloured arc swept
   from twelve o'clock, the number inside and the label under it. The tokens
   are declared on .psi-gauge itself, which is what makes the ring portable
   without dragging the whole report stylesheet along - outside any scope that
   declares them the arc's stroke is invalid and the ring simply does not
   paint, with no error and no fallback. */
.sas-pub .psi-gauge {
  --psi-pass: #0cce6b; --psi-pass-text: #0b7a44; --psi-pass-bg: #e6f4ea;
  --psi-avg: #ffa400; --psi-avg-text: #8a6116; --psi-avg-bg: #fef3e0;
  --psi-fail: #ff4e42; --psi-fail-text: #c7221a; --psi-fail-bg: #fce8e6;
  --psi-null: #9aa0a6; --psi-track-2: #e8eaed; --psi-ink-2: #5f6368;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  /* The four labels are wider than their rings, so without a floor under each
     cell "Performance" and "Accessibility" touch and read as one word. */
  padding: 8px 6px; min-width: 100px; border-radius: 8px; color: inherit;
}
.sas-pub .psi-gauge-inner {
  --sz: 64px;
  position: relative; width: var(--sz, 72px); height: var(--sz, 72px);
  display: flex; align-items: center; justify-content: center;
}
.sas-pub .psi-gauge-svg { width: 100%; height: 100%; }
.sas-pub .psi-gauge-track { fill: none; stroke-width: 8; }
.sas-pub .psi-gauge-arc { fill: none; stroke-width: 8; stroke-linecap: round; }
.sas-pub .psi-gauge-num { position: absolute; font-size: calc(var(--sz, 72px) * 0.32); font-weight: 400; }
.sas-pub .psi-gauge-label { font-size: 13px; font-weight: 400; text-align: center; }
.sas-pub .psi-pass .psi-gauge-arc { stroke: var(--psi-pass); }
.sas-pub .psi-pass .psi-gauge-track { stroke: var(--psi-pass-bg); }
.sas-pub .psi-pass .psi-gauge-num, .sas-pub .psi-pass .psi-gauge-label { color: var(--psi-pass-text); }
.sas-pub .psi-average .psi-gauge-arc { stroke: var(--psi-avg); }
.sas-pub .psi-average .psi-gauge-track { stroke: var(--psi-avg-bg); }
.sas-pub .psi-average .psi-gauge-num, .sas-pub .psi-average .psi-gauge-label { color: var(--psi-avg-text); }
.sas-pub .psi-fail .psi-gauge-arc { stroke: var(--psi-fail); }
.sas-pub .psi-fail .psi-gauge-track { stroke: var(--psi-fail-bg); }
.sas-pub .psi-fail .psi-gauge-num, .sas-pub .psi-fail .psi-gauge-label { color: var(--psi-fail-text); }

/* A cap is needed even on its own line: a phone screenshot is about twice as
   tall as it is wide, and left to its natural height it pushes the findings off
   the first screen. */
.sas-pub .sas-pub-shot { flex: 0 0 auto; max-width: 100%; }
.sas-pub .sas-pub-shot img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 190px;
  object-fit: contain; object-position: top;
  border: 1px solid rgb(27 27 34 / 0.12); border-radius: 8px; background: var(--white);
}
.sas-pub .sas-pub-cap { font-size: 12px; color: #8a8b99; margin-bottom: 14px; }
.sas-pub .sas-pub-dev-miss {
  margin: 10px 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted);
}

.sas-pub .sas-pub-unc { margin-top: 22px; }
.sas-pub .sas-pub-unc h2 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink);
}
.sas-pub .sas-pub-unc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sas-pub .sas-pub-unc li { font-size: 13px; line-height: 1.5; color: var(--muted); }

.sas-pub .sas-pub-note {
  margin: 22px 0 0; max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--muted);
}
.sas-pub .sas-pub-note b { color: var(--ink); }

/* A phone opens this as often as a desktop does, and the ring row must not
   force the page sideways. */
@media (max-width: 560px) {
  .sas-pub .sas-pub-gauges { gap: 0; }
  .sas-pub .psi-gauge { padding: 8px 6px; }
  .sas-pub .sas-pub-t { font-size: 21px; }
}
