:root {
  color-scheme: light;
  --ink: #13372f;
  --muted: #596963;
  --paper: #f5f4ee;
  --panel: #ffffff;
  --line: #d6ddd8;
  --green: #0c4c3e;
  --green-soft: #e2eee8;
  --amber: #7a4e10;
  --amber-soft: #fff1cf;
  --shadow: 0 18px 50px rgba(14, 53, 43, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.report-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 48px;
  padding: clamp(28px, 5vw, 72px) max(24px, calc((100vw - 1480px) / 2));
  background: var(--green);
  color: white;
}

.eyebrow,
.section-number {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.verdict {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede { max-width: 720px; margin: 18px 0 0; color: rgba(255,255,255,0.78); }

.metadata {
  align-self: end;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  overflow: hidden;
}

.metadata div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.metadata div:last-child { border-bottom: 0; }
.metadata dt { color: rgba(255,255,255,0.62); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.metadata dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.metadata a { color: white; }

main, footer { width: min(1480px, calc(100% - 32px)); margin-inline: auto; }

.audit-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
  padding: 28px 0;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.filter:hover,
.filter:focus-visible { border-color: var(--green); outline: none; }
.filter.is-active { background: var(--green); border-color: var(--green); color: white; }

.section-index { min-width: 0; }
.section-index p { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.section-index ol { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 0; padding: 0; list-style: none; }
.section-index a { color: var(--green); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }

.notice {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.audit-summary { margin: 0 0 28px; padding: 18px 20px; border-left: 4px solid var(--green); background: var(--green-soft); color: var(--ink); }

.notice.is-error { border-color: #d89f98; color: #7c261d; }
.notice[hidden] { display: none; }

.audit-sections { display: grid; gap: 28px; }

.audit-section {
  scroll-margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { margin: 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.08; }
.section-number { color: var(--muted); }

.status {
  flex: none;
  padding: 7px 11px;
  border: 1px solid #ebcf92;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}
.status[data-tone="difference"] { border-color: #d8b96e; background: #fff1cf; color: #70460d; }
.status[data-tone="material"] { border-color: #d89f98; background: #fff0ed; color: #7c261d; }
.review-note { margin: 0; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fbfcfa; color: var(--muted); font-size: 14px; }

.viewport-group { padding: 24px; border-bottom: 1px solid var(--line); }
.viewport-group:last-child { border-bottom: 0; }
.viewport-group[hidden] { display: none; }

.viewport-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.viewport-heading h3 { margin: 0; font-size: 16px; }
.viewport-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-link { color: var(--green); font-size: 12px; font-weight: 750; text-underline-offset: 3px; }

.image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.capture { min-width: 0; margin: 0; }

.capture figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #f8faf8;
  font-size: 13px;
}

.capture figcaption span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.image-link { display: block; border: 1px solid var(--line); background: #eef2ef; }
.capture img { display: block; width: 100%; height: auto; object-fit: contain; object-position: top center; }
.text-link { display: inline-block; margin-top: 8px; color: var(--green); font-size: 13px; font-weight: 750; text-underline-offset: 3px; }
.missing-note { min-height: 220px; margin: 0; padding: 24px; border: 2px dashed #aab5b0; color: var(--muted); background: #f6f8f6; }

footer { padding: 34px 0 60px; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .report-header { grid-template-columns: 1fr; gap: 30px; }
  .audit-controls { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .image-pair { gap: 8px; }
  .viewport-group { padding: 14px; }
  .capture figcaption { display: grid; gap: 2px; padding: 8px; }
  .capture figcaption strong { font-size: 12px; }
  .text-link { font-size: 11px; }
}
