/* DMARC Reports website. Plain CSS, no build step, no external resources. */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #1b2231;
  --muted: #5a6579;
  --line: #dde3ee;
  --accent: #2b6be4;
  --accent-strong: #1f56c2;
  --accent-ink: #ffffff;
  --accent-soft: #e3ecff;
  --ok: #17803d;
  --ok-soft: #e1f4e8;
  --warn: #8a5200;
  --warn-soft: #fdf0d2;
  --crit: #b42525;
  --crit-soft: #fde6e6;
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.06), 0 14px 36px rgba(20, 30, 50, 0.12);
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #171c25;
    --surface-2: #1d2330;
    --text: #e8ebf2;
    --muted: #9ba5b9;
    --line: #2a3140;
    --accent: #6b9bff;
    --accent-strong: #8db1ff;
    --accent-ink: #0a1020;
    --accent-soft: #1f2c47;
    --ok: #5fd08a;
    --ok-soft: #173326;
    --warn: #f0b955;
    --warn-soft: #38300f;
    --crit: #ff8585;
    --crit-soft: #3d1f23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
pre { font-family: var(--mono); font-size: 0.9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; }
pre code { background: none; border: 0; padding: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform 0.08s ease, background 0.15s ease; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.8em; }

/* Hero */
.hero { padding: 64px 0 24px; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero .lead { max-width: 720px; margin: 0 auto; font-size: 1.2rem; color: var(--muted); }
.hero .btn-row { justify-content: center; }
.hero .fine { font-size: 0.9rem; color: var(--muted); }
.hero-shot { max-width: 1000px; margin: 36px auto 0; }

.shot img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.shot figcaption strong { color: var(--text); }
figure { margin: 0; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card h3 { margin-bottom: 0.4em; }
.icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 32px 28px; }
.gallery a { display: block; }
.gallery .wide { grid-column: 1 / -1; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.dl { display: flex; flex-direction: column; gap: 10px; }
.dl.primary { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dl .meta { font-size: 0.9rem; color: var(--muted); }
.dl .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.hash { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); word-break: break-all; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p:last-child { margin-bottom: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* User guide */
.guide-head { padding-top: 48px; padding-bottom: 8px; }
.guide-head p { color: var(--muted); font-size: 1.15rem; max-width: 720px; }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.95rem; }
.guide .toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
.guide .toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(toc) ". "; opacity: 0.6; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.guide article { min-width: 0; }
.guide article section { padding: 0 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.guide article section:last-child { border-bottom: 0; }
.guide h2 { font-size: 1.7rem; margin-top: 0; }
.guide h3 { margin-top: 1.6em; }
.guide ul, .guide ol { padding-left: 1.3em; margin: 0 0 1em; }
.guide li { margin-bottom: 0.35em; }
.guide .shot { margin: 1.2em 0 1.6em; }

.callout { border-radius: 12px; padding: 14px 18px; margin: 1.2em 0; border: 1px solid var(--line); background: var(--surface); }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-left: 4px solid var(--accent); }
.callout.warn { border-left: 4px solid var(--warn); background: var(--warn-soft); }

table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.97rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

.light { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; margin-right: 6px; vertical-align: middle; }
.light.ok { background: var(--ok-soft); color: var(--ok); }
.light.warn { background: var(--warn-soft); color: var(--warn); }
.light.crit { background: var(--crit-soft); color: var(--crit); }

dl.glossary dt { font-weight: 700; margin-top: 1.1em; }
dl.glossary dd { margin: 0.2em 0 0; color: var(--muted); }

@media (max-width: 880px) {
  .guide { grid-template-columns: 1fr; gap: 12px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
  .hero { padding-top: 40px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
