/* What AI Sees: tool and report styles. Base layout and colours come from /site.css and /tokens.css. */
.eyebrow { font-size: var(--de-text-body-sm-size); font-weight: 600; color: var(--de-accent-ink); margin: 0 0 10px; letter-spacing: .02em; }
.tool-hero { padding-bottom: 40px; }
.tool-hero h1 { max-width: 20ch; }

.check-form { max-width: 640px; }
.check-form label { display: block; font-weight: 600; font-size: var(--de-text-body-sm-size); margin-bottom: 6px; }
.check-row { display: flex; gap: 8px; }
.check-row input { flex: 1; min-width: 0; }
.check-row .btn { flex: none; }
.hint { margin: 8px 0 0; }
@media (max-width: 480px) { .check-row { flex-direction: column; } }

.status.loading { background: var(--de-info-soft); color: var(--de-ink); border-left: 4px solid var(--de-info); }

/* Report */
.report { padding-bottom: 32px; }
.report h2 { margin-bottom: 14px; }
.report section { padding-top: 32px; }
.card { background: var(--de-surface-raised); border: 1px solid var(--de-line); border-radius: var(--de-radius-lg); padding: 20px; }

.summary { display: grid; gap: 18px; align-items: center; grid-template-columns: auto 1fr; }
.score { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 8px solid var(--tone, var(--de-line-strong)); }
.score b { display: block; font-size: 34px; line-height: 1; font-family: var(--de-font-display); }
.score span { font-size: 12px; color: var(--de-ink-muted); }
.summary h2 { margin: 0 0 6px; font-size: 20px; line-height: 27px; }
.summary p { margin: 0 0 6px; }
.meta-line { font-size: var(--de-text-body-sm-size); color: var(--de-ink-muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .summary { grid-template-columns: 1fr; justify-items: start; } }

.tone-pass { --tone: var(--de-success); }
.tone-warn { --tone: var(--de-warning); }
.tone-fail { --tone: var(--de-danger); }
.tone-info { --tone: var(--de-info); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--de-radius-md);
  border: 1px solid var(--de-line-strong); background: var(--de-surface-raised); color: var(--de-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { background: var(--de-surface-sunken); color: var(--de-ink); }

.fixes { margin: 0; padding-left: 22px; }
.fixes li { margin-bottom: 12px; }
.fixes li p { margin: 2px 0 0; color: var(--de-ink-muted); }

/* The AI's-eye view */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--de-surface-sunken); border-radius: var(--de-radius-md); padding: 10px 12px; }
.stat b { display: block; font-size: 20px; line-height: 26px; font-family: var(--de-font-display); }
.stat span { font-size: var(--de-text-body-sm-size); color: var(--de-ink-muted); }
.reader { background: var(--de-surface-sunken); border: 1px solid var(--de-line); border-radius: var(--de-radius-md);
  padding: 16px; max-height: 520px; overflow: auto; font-size: 15px; line-height: 23px; }
.reader.open { max-height: none; }
.reader p { margin: 0 0 8px; }
.reader .r-h { font-weight: 700; font-family: var(--de-font-display); margin-top: 12px; }
.reader .r-h1 { font-size: 19px; }
.reader .r-h2 { font-size: 17px; }
.reader .r-tag { font-family: var(--de-font-mono); font-size: 11px; color: var(--de-ink-subtle); margin-right: 6px; font-weight: 500; }
.reader .r-img { color: var(--de-ink-muted); font-style: italic; }
.reader .r-gap { border: 2px dashed var(--de-danger); color: var(--de-ink); background: var(--de-danger-soft); border-radius: var(--de-radius-sm); padding: 8px 10px; font-weight: 600; }
.reader .r-more { color: var(--de-ink-muted); font-style: italic; }
.reader-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.reader-head p { margin: 0; }

.compare-out { margin-top: 12px; }
.compare-out ul { padding-left: 20px; margin: 8px 0 0; }
.compare-out li { margin-bottom: 6px; color: var(--de-ink-muted); }

/* Checks */
.group { margin-bottom: 8px; }
.group h3 { font-size: 18px; margin: 0 0 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check { border: 1px solid var(--de-line); border-left: 5px solid var(--tone); border-radius: var(--de-radius-md); padding: 12px 14px; background: var(--de-surface-raised); break-inside: avoid; }
.check-top { display: flex; gap: 10px; align-items: baseline; }
.pill { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--de-radius-pill); background: var(--tone); color: var(--de-surface); text-transform: uppercase; letter-spacing: .04em; }
.check-title { font-weight: 600; }
.check p { margin: 6px 0 0; color: var(--de-ink-muted); font-size: var(--de-text-body-sm-size); line-height: var(--de-text-body-sm-line); }
.check .fix { color: var(--de-ink); }
.evidence { margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--de-font-mono); font-size: 12.5px; line-height: 19px; color: var(--de-ink-muted); overflow-wrap: anywhere; }
.evidence li { padding: 1px 0; }

.notes { font-size: var(--de-text-body-sm-size); color: var(--de-ink-muted); }
.notes li { margin-bottom: 6px; }
.cta { margin-top: 32px; }
.cta h2 { margin-bottom: 8px; }

.print-only { display: none; }

@media print {
  @page { margin: 14mm; }
  /* Always print in the light palette, even when the screen is in dark mode. */
  html:root:not([data-print-x]) { color-scheme: light;
    --de-surface: #fff; --de-surface-raised: #fff; --de-surface-sunken: #f3f6f5; --de-line: #d5dedb; --de-line-strong: #88928f;
    --de-ink: #121d1a; --de-ink-muted: #4a5753; --de-ink-subtle: #6b7773; --de-accent-ink: #067963;
    --de-success: #137738; --de-warning: #8a5600; --de-danger: #b02b27; --de-danger-soft: #ffebe8; --de-info: #2a669f; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .tool-hero, .how, .skip, .actions, .no-print, .site-footer { display: none !important; }
  .print-only { display: block; }
  .report { padding: 0; max-width: none; }
  .report section { padding-top: 16px; }
  .card, .check, .stat, .reader { background: #fff !important; }
  .reader { max-height: none; overflow: visible; border-color: #ccc; }
  .check, .card, .fixes li, .summary { break-inside: avoid; }
  .group h3, .report h2 { break-after: avoid; }
  a { color: inherit; text-decoration: underline; }
  .pill { color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .check, .score, .r-gap { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-head { border-bottom: 2px solid #0e7c66; padding-bottom: 8px; margin-bottom: 8px; }
  .print-head b { font-size: 14pt; }
}
