/* Self-hosted fonts (latin + latin-ext subsets, was Google Fonts) */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-mono-400-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-mono-500-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ibm-plex-mono-600-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/libre-franklin-400-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/libre-franklin-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/libre-franklin-600-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/libre-franklin-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/libre-franklin-700-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/libre-franklin-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/libre-franklin-900-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/libre-franklin-900-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/zilla-slab-500-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/zilla-slab-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/zilla-slab-600-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/zilla-slab-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/zilla-slab-700-latinext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/zilla-slab-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ccbot-check, styled after "The AI Visibility Audit" (Common Crawl field
   guide) and commoncrawl.org's design tokens.
   Tokens taken from commoncrawl.webflow css:
     navy      #152a47  (--primaryblue: covers, callout cards, headline ink)
     blue      #0050bd  (interactive blue on light)
     steel     #3287c5  (--lpx-steel-blue: headline accent on navy)
     panel     #f6f7fa  border #dde2e8  (light cards)
     gray600   #475467  (secondary text)
   Type, matching the site's four-family system:
     Degular Display Medium (headings h1-h5, CCF's own hosted files),
     Libre Franklin (body), IBM Plex Mono (labels/evidence),
     Inter (secondary UI text) */

:root {
  --navy: #152a47;
  --navy-deep: #0e1e35;
  --blue: #0050bd;
  --steel: #3287c5;
  --steel-light: #7fb3ea;
  --paper: #ffffff;
  --panel: #f6f7fa;
  --line: #dde2e8;
  --ink: #152a47;
  --ink-soft: #475467;
  --pass: #1b7f4b;
  --warn: #9a5b00;
  --fail: #b3261e;
  --steel-btn: #2a74ad; /* darker steel: white text meets WCAG AA (5.0:1) */
  --on-navy: #e8eef7;
  --on-navy-dim: #93a5c0;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
  --display: "Zilla Slab", "Rockwell", "Libre Franklin", serif;
  --ui: "Inter", "Libre Franklin", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* Keep iOS Safari from auto-inflating text (it overflows nowrap rows on real
   devices even when the layout measures as fitting in desktop browsers). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* The hidden attribute must always win, even over display rules below
   (display: flex on a class silently overrides the UA's [hidden] style). */
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: #fff;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.25);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--steel); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a { color: var(--blue); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
}

/* Cover: the navy field-guide front page */
.cover {
  background: radial-gradient(115% 140% at 85% -10%, #1d3a63 0%, var(--navy) 48%, var(--navy-deep) 100%);
  color: var(--on-navy);
  padding: 26px 0 64px;
}
.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.wordmark {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { opacity: 0.85; }
.wordmark-mark { width: 19px; height: 19px; flex-shrink: 0; }
.wordmark-accent { color: var(--steel-light); }
.cover-badge {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--on-navy-dim);
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--steel-light);
}
.cover h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(34px, 6.4vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #fff;
  max-width: 14.5em;
}
.h1-accent { color: var(--steel); }
.hero-tagline {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(19px, 3.2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--steel-light);
}
.hero-sub {
  margin: 0 0 34px;
  max-width: 40em;
  font-size: 18px;
  color: #c3cfe0;
}

/* Form */
.check-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.input-wrap {
  position: relative;
  flex: 1 1 260px;
  display: flex;
}
.check-form input {
  width: 100%;
  font-family: var(--mono);
  font-size: 17px;
  padding: 13px 44px 13px 18px;
  border: 1px solid #2c4568;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.check-form .input-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8494ab;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}
.check-form .input-clear:hover { background: #eef1f5; color: var(--ink); }
.check-form input::placeholder { color: #8494ab; }
.check-form button {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--steel-btn);
  color: #fff;
  cursor: pointer;
}
.check-form button:hover { background: #1f6094; }
.check-form button[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.form-error {
  font-family: var(--mono);
  font-size: 14px;
  color: #ff9d94;
}

/* Batch mode */
.batch-toggle {
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel-light);
  text-decoration: underline;
  cursor: pointer;
}
.batch {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px 26px;
  margin-top: 36px;
}
.batch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.batch h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
}
.batch-close {
  background: none;
  border: none;
  padding: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
}
.batch-close:hover { color: var(--fail); }
.batch-note { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.batch textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
  color: var(--ink);
}
.batch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  flex-wrap: wrap;
}
.batch-actions button {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--steel-btn);
  color: #fff;
  cursor: pointer;
}
#batch-csv { background: var(--navy); }
.batch-actions button[disabled] { opacity: 0.65; cursor: wait; }
.batch-progress { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.batch table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  min-width: 620px;
}
.batch th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--navy);
  padding: 6px 12px 6px 0;
}
.batch td {
  border-bottom: 1px dashed var(--line);
  padding: 5px 12px 5px 0;
  white-space: nowrap;
}

/* Verdict: a bold status-colored banner (green / amber / red) leads the card,
   with a white "seal" carrying the pass/warn/fail glyph. The status color is
   the dominant element, not a hairline accent. */
.results { padding-top: 44px; }
.verdict {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 28px;
}
.verdict-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  color: #fff;
  background: #5b6b7d;
  /* Round the banner's own top corners instead of clipping the card with
     overflow:hidden, which would also clip the info tooltips. */
  border-radius: 9px 9px 0 0;
}
.verdict[data-tone="run"] .verdict-banner { background: linear-gradient(120deg, #2c4b70 0%, #152a47 100%); }
.verdict[data-tone="pass"] .verdict-banner { background: linear-gradient(120deg, #1f8f55 0%, #14663c 100%); }
.verdict[data-tone="warn"] .verdict-banner { background: linear-gradient(120deg, #b56a12 0%, #8a4e00 100%); }
.verdict[data-tone="fail"] .verdict-banner { background: linear-gradient(120deg, #c53127 0%, #97201a 100%); }
.verdict-seal {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.verdict[data-tone="pass"] .verdict-seal { color: #1b7f4b; }
.verdict[data-tone="warn"] .verdict-seal { color: #9a5b00; }
.verdict[data-tone="fail"] .verdict-seal { color: #b3261e; }
/* Running: a spinner inside the seal while the check is in flight. */
.verdict[data-tone="run"] .verdict-seal::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #cdd8e6;
  border-top-color: #0050bd;
  animation: seal-spin 0.8s linear infinite;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .verdict[data-tone="run"] .verdict-seal::after { animation: none; }
}
.verdict-headline { flex: 1 1 auto; min-width: 0; }
.verdict-logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.verdict-logo img { max-width: 100%; max-height: 100%; display: block; }
.verdict-body { padding: 20px 24px; }
.verdict-actions {
  float: right;
  display: flex;
  gap: 8px;
  margin-left: 12px;
}
.pill-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}
.pill-btn:hover { border-color: var(--blue); }
#export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
#export-btn:hover { background: #003c8f; }
.btn-ico { height: 14px; width: auto; display: block; }
.verdict-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
}
.verdict-banner h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.verdict p { margin: 0 0 6px; }
.verdict-crawl {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Live-reachability notice. Sits under the verdict because it qualifies the
   verdict: everything above it can be true of the archive while the site
   itself is unreachable right now. Warn-toned, never fail-toned, since an
   outage is not a finding about AI visibility. */
.live-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--warn);
  background: #fdf6ec;
  color: #6f4200;
  font-size: 14px;
  line-height: 1.5;
}

/* Info icon + hover/focus tooltip, usable on light and dark surfaces */
.info {
  position: relative;
  display: inline-flex;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -0.18em;
  flex: none;
  opacity: 0.9;
  cursor: help;
  /* Clean lowercase-i info glyph as a standalone SVG file. */
  background: url("/info.svg") center / contain no-repeat;
}
.info::before { content: ""; }
.info:hover,
.info:focus-visible { opacity: 1; outline: none; }
.info:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--steel); }
.info-tip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.2);
  padding: 10px 13px;
  font-family: var(--ui);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  z-index: 50;
}
.info:hover .info-tip,
.info:focus .info-tip,
.info:focus-within .info-tip { display: block; }
/* On the navy gate headers the filled icon needs a touch more presence */
.info-on-dark { opacity: 1; }

/* Harmonic Centrality callout inside the verdict card */
.centrality {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.centrality-label {
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: flex;
  align-items: center;
}
.centrality-rank {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
}
.centrality-detail {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Fix checklist: light panel under the verdict */
.fix-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 24px;
  margin: -12px 0 28px;
}
.fix-eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.fix-list ul { margin: 0 0 10px; padding-left: 20px; }
.fix-list li { margin-bottom: 8px; font-size: 15.5px; }
.fix-source { font-family: var(--ui); }
.fix-source { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* Gates: navy callout cards, like THE CORE CLAIM boxes in the guide */
.gates {
  display: grid;
  gap: 16px;
}
.gate {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 8px;
  padding: 20px 24px 18px;
  min-width: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.gate.revealed {
  opacity: 1;
  transform: none;
}
.gate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.gate-name {
  margin: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.gate-title {
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  margin-left: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 18.5px;
}
.gate-badge {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--on-navy-dim);
  color: var(--on-navy-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gate-badge[data-state="pass"] { border-color: #57c98b; color: #57c98b; }
.gate-badge[data-state="warn"] { border-color: #ffb454; color: #ffb454; }
.gate-badge[data-state="fail"] { border-color: #ff7a70; color: #ff7a70; }
.gate-question {
  margin: 8px 0 12px;
  font-size: 14.5px;
  color: var(--on-navy-dim);
}
.gate-log {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  border-top: 1px solid #26436b;
  padding-top: 10px;
  overflow-wrap: anywhere;
}
.gate-log .log-line { display: block; }
.gate-log .log-key { color: var(--on-navy-dim); }
.gate-log .log-ok { color: #57c98b; }
.gate-log .log-warn { color: #ffb454; }
.gate-log .log-bad { color: #ff7a70; }
.gate-log .log-accent { color: var(--steel-light); }

/* Crawl history chart */
.history {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px 26px;
}
.history h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.history-note {
  font-family: var(--ui);
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.history-status {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}
.history-chart { position: relative; }
.chart-value {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
}
.chart-axis {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-soft);
}
.chart-miss {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  fill: var(--ink-soft);
}
.history-tip {
  position: absolute;
  pointer-events: none;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 2;
}

/* Bot matrix: light guide panel */
.bot-matrix {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px 26px;
}
.bot-matrix h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.bot-matrix-summary {
  margin: 0 0 10px;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
}
.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
}
.matrix-legend .ml {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.matrix-legend .sw {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: none;
}
.sw-pass { background: var(--pass); }
.sw-fail { background: var(--fail); }
.sw-warn { background: var(--warn); }
.sw-dim { background: #c3ccd6; }
.bot-matrix-note {
  font-family: var(--ui);
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.bot-matrix-status {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}
/* Horizontal scroll for wide tables, with edge shadows that appear only when
   there is more to scroll (pure-CSS scroll hint so mobile users discover the
   Edge / Rendering columns to the right). Cover color matches the panel bg. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, #f6f7fa, rgba(246, 247, 250, 0)) 0 0 / 30px 100% no-repeat,
    linear-gradient(to left, #f6f7fa, rgba(246, 247, 250, 0)) 100% 0 / 30px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(17, 42, 68, 0.22), rgba(17, 42, 68, 0)) 0 0 / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(17, 42, 68, 0.22), rgba(17, 42, 68, 0)) 100% 0 / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.bot-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  min-width: 560px;
}
.bot-matrix th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--navy);
  padding: 6px 12px 6px 0;
}
.bot-matrix td {
  border-bottom: 1px dashed var(--line);
  padding: 5px 12px 5px 0;
  white-space: nowrap;
}
.control-row td { border-bottom: 1px solid var(--line); font-style: italic; }
.cell-pass { color: var(--pass); font-weight: 600; }
.cell-fail { color: var(--fail); font-weight: 600; }
.cell-warn { color: var(--warn); font-weight: 600; }
.cell-dim { color: var(--ink-soft); }

/* Method */
.method {
  margin: 60px 0 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.method h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.method ol { padding-left: 22px; margin: 0 0 16px; }
.method li { margin-bottom: 9px; }
.method p { font-family: var(--ui); color: var(--ink-soft); font-size: 15px; }

/* Field-guide promo: the PDF this tool's methodology comes from */
.guide-promo {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 40px 0 28px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.guide-promo-cover { flex: 0 0 auto; display: block; }
.guide-promo-cover img {
  display: block;
  width: 132px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(21, 42, 71, 0.16);
}
.guide-promo-body { min-width: 0; }
.guide-promo-eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.guide-promo-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.guide-promo-text {
  margin: 0 0 16px;
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.guide-promo-cta {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--steel-btn);
  color: #fff;
  text-decoration: none;
}
.guide-promo-cta:hover { background: #1f6094; }
.guide-promo-meta {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
@media (max-width: 620px) {
  .guide-promo { flex-direction: column; gap: 16px; }
  .guide-promo-cover img { width: 108px; }
}

/* Glossary: plain-language definitions for non-specialists */
.glossary {
  margin: 40px 0 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.glossary h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.glossary dl {
  margin: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 24px;
}
.glossary dt {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.glossary dd {
  margin: 0;
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 620px) {
  .glossary dl { grid-template-columns: 1fr; gap: 4px 0; }
  .glossary dt { margin-top: 12px; }
}

/* Footer: mono caps running footer, like the guide's page footers */
.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 30px;
  margin-top: 12px;
}
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.footer-linkedin svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  vertical-align: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .gate { transition: none; transform: none; }
}

@media (max-width: 540px) {
  .cover { padding-top: 20px; }
  .cover-top { margin-bottom: 40px; }
  .check-form button { flex: 1 1 100%; }
}

/* Analytics consent banner */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 12px 36px rgba(11, 31, 51, 0.3);
}
.consent p { margin: 0; font-size: 14.5px; color: var(--ink); flex: 1 1 260px; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions button {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--steel-btn);
  color: #fff;
  cursor: pointer;
}
.consent-actions .consent-decline {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}

/* Own-domain easter egg note in the verdict card */
.own-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--steel);
  background: var(--panel);
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-soft);
}

/* Harmonic Centrality explainer diagram */
.hc-explain { margin-top: 12px; }
.hc-explain summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hc-explain summary:hover { color: #1f6094; }
.hc-diagram { margin-top: 12px; }
.hc-diagram svg { width: 100%; height: auto; display: block; }

/* 404 */
/* The 404 has no body content under the cover, so without this the footer
   floats mid-page and leaves a band of dead paper beneath it. */
.nf-body { min-height: 100vh; display: flex; flex-direction: column; }
.nf-body .cover { flex: 1 0 auto; }
.nf-body .footer { flex-shrink: 0; }

.nf { padding: 30px 0 26px; max-width: 34em; }
.nf-code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 15vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--steel);
  margin: 0 0 4px;
}
.nf h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff;
}
.nf-lede {
  margin: 0 0 30px;
  max-width: 30em;
  font-size: 18px;
  line-height: 1.6;
  color: #c3cfe0;
}
.nf-cta {
  display: inline-block;
  background: var(--steel-btn);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 6px;
}
.nf-cta:hover { background: #23628f; }
.nf-alt {
  margin: 22px 0 0;
  font-size: 15px;
  color: #9fb0c6;
}
.nf-alt a { color: var(--steel-light); text-underline-offset: 3px; }
