/* ============================================================
   ExpressMapChecker — site stylesheet
   Single shared stylesheet for every page.
   Sections: Base · Layout · Header/Nav · Typography ·
             Components · Buttons · Utilities · Responsive
   ============================================================ */

/* Self-hosted fonts (latin subset, from Google Fonts). */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/instrument-sans-latin-var.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-var.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: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400.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-latin-500.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; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #FFFFFF;
  color: #0B1220;
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: #0B1220; text-decoration: none; }
a:hover { color: #0E9F6E; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid #0E9F6E; outline-offset: 2px; }

input, button { font-family: inherit; }
button { cursor: pointer; }

img, svg { max-width: 100%; }

::selection { background: #C9F0DE; color: #06281C; }

@keyframes emc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes emc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes emc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes emc-sweep { 0% { transform: translateY(-100%); } 100% { transform: translateY(520%); } }
@keyframes emc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ---------- Layout (116 rules) ---------- */

.page {
  min-height: 100vh;
  background: #FFFFFF;
  overflow-x: clip;
}

.site-header {
  border-bottom: 1px solid #EDF0F4;
  background: #FFFFFFEE;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
}

/* ---------- Header (15 rules) ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #0B1220;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px #0b122024;
}

/* Scanned-map mark; same drawing as scripts/site/icons.mjs. */
.brand-ring {
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12.5 7v15.5M19.5 9.5V25' stroke='%236B7789' stroke-width='1.6'/%3E%3Cpath d='M6 9.5l6.5-2.5 7 2.5L26 7v15.5L19.5 25l-7-2.5L6 25z' fill='none' stroke='%23E8EDF4' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M3.5 16h25' stroke='%2334D399' stroke-width='2.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 12px;
  color: #4C5768;
}
.nav-link:hover {
  background: #F4F6F9;
  color: #0B1220;
}

.nav-link.is-current {
  padding: 7px 12px;
  border-radius: 12px;
  background: #ECF7F2;
  color: #0B6B4B;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #C9E9DB;
}

.crumb-link {
  color: #93A0B4;
}
.crumb-link:hover {
  color: #0B1220;
}

.crumb-current {
  color: #0E9F6E;
}

.site-footer.site-footer-flush {
  border-top: 1px solid #EDF0F4;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 14.5px;
  color: #4C5768;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 28px;
  font-size: 14px;
  color: #5B6678;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #93A0B4;
  flex-wrap: wrap;
}

[data-build] {
  font-size: 12px;
  color: #B7BFCC;
}

.site-footer.site-footer-tight {
  margin-top: 72px;
  border-top: 1px solid #EDF0F4;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid #EDF0F4;
}

.modal-title {
  margin: 10px 0 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.modal-copy {
  margin: 12px 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #59647A;
}

.dot-sep {
  color: #C9D1DE;
}

.mono.mono-xs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0E9F6E;
}

.eyebrow.eyebrow-muted {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #93A0B4;
}

.mono.mono-sm {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
}

.article-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  max-width: 720px;
  text-wrap: pretty;
}

.lede {
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #3B475A;
  max-width: 700px;
  text-wrap: pretty;
}

.h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 40px 0 0;
}

.bullets {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
  font-size: 16px;
  line-height: 1.6;
  color: #4C5768;
  max-width: 700px;
}

.body-copy {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: #4C5768;
  max-width: 700px;
  text-wrap: pretty;
}

.h2.h2-looser {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 48px 0 0;
}

.card-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-meta {
  font-size: 12.5px;
  color: #93A0B4;
}

.h2.h2-loose {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 44px 0 0;
}

.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0B1220A8;
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: emc-fade .18s ease both;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #E3E8EE;
  box-shadow: 0 40px 90px -30px #0b122080;
  padding: 34px 34px 30px;
  animation: emc-rise .24s ease both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #E3E8EE;
  background: #FFFFFF;
  color: #74809A;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  background: #F4F6F9;
  color: #0B1220;
}

.url-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid #E3E8EE;
  border-radius: 14px;
  background: #FBFCFD;
}

.url-scheme {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #93A0B4;
}

.url-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #0B1220;
  padding: 12px 0;
}

.url-field.is-invalid, .urlbar.is-invalid { border-color: #DC2626; }

/* The email row's button label ("Send confirmation link") is longer than
   the original "Save" was, and doesn't fit beside the input at this card's
   420px width (see .sr-side-card) - stack them instead of the side-by-side
   layout .searchbar uses everywhere else. Scoped to this one instance so
   the search inputs on error-library/knowledge-base (also .searchbar,
   genuinely narrow single-purpose fields) are unaffected. */
.sr-email-row {
  flex-wrap: wrap;
  /* The outer .searchbar border/background/shadow made sense for a single
     horizontal pill, but now duplicates the input's own border below,
     producing a visibly nested double box. Neutralized here so the input
     and button each carry their own identity instead. */
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.sr-email-row input, .sr-email-row button { flex: 1 1 100%; }

/* .input-bare is deliberately borderless everywhere else - it relies on the
   parent .searchbar's shared outer border to read as "this is a field",
   which only works when input and button sit side by side in one visible
   pill. Stacked (see above), the input has no boundary of its own and
   reads as plain floating text, not a field. Give it back a real border
   here specifically, matching the same treatment .url-field uses elsewhere
   on the site for a standalone-looking input. */
.sr-email-row input {
  border: 1px solid #E3E8EE;
  border-radius: 14px;
  background: #FBFCFD;
  padding: 12px 16px;
}
.sr-email-row.is-invalid input { border-color: #DC2626; }

/* Scoped to just the change-email/delete-records row - .box-p26's padding
   (26px 28px) wins the cascade over .sr-side-card's own, so the actual
   available row width is ~362px, and both buttons at .btn-sm's normal
   padding measured 5px over that combined. Not worth shrinking .btn-sm
   itself for this one fit (it's used elsewhere - monitoring.html,
   index.html - at its normal size). */
.sr-actions-row { gap: 8px; }
.sr-actions-row .btn { padding-left: 14px; padding-right: 14px; }

.fine-print {
  margin-top: 14px;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8A96A9;
}

.muted-link {
  color: #8A96A9;
}
.muted-link:hover {
  color: #0B1220;
}

.step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid #E7EBF1;
  border-radius: 14px;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.55;
  color: #3B475A;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #0E9F6E;
  padding-top: 3px;
}

.cta-dark {
  margin: 34px 0 0;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(140deg, #0B1220, #123527);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-dark-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.cta-dark-copy {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #AEBACD;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  border: 1px solid #E7EBF1;
  border-radius: 16px;
  background: #FFFFFF;
}
.card:hover {
  border-color: #0B1220;
  color: #0B1220;
}

.aside-sticky {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
}

.panel {
  padding: 22px;
  border: 1px solid #E7EBF1;
  border-radius: 18px;
  background: #FBFCFD;
}

.panel-link {
  padding: 18px 22px;
  border: 1px dashed #DCE2EA;
  border-radius: 16px;
  font-size: 14px;
  color: #4C5768;
}
.panel-link:hover {
  border-color: #0B1220;
  color: #0B1220;
}

.steps {
  counter-reset: emc;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.btn.btn-green.btn-block {
  margin-top: 16px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: #0E9F6E;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px #0e9f6e99;
}
.btn.btn-green.btn-block:hover {
  background: #0B8B60;
}

.article-meta {
  margin: 14px 0 0;
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #8A96A9;
}


/* ---------- App components (rendered by app.js) ---------- */

.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid #E3E8EE; background: #FFFFFF; color: #4C5768; font-size: 13.5px; font-weight: 600; }
.chip:hover { border-color: #0B1220; color: #0B1220; }
.chip.is-on { background: #0B1220; border-color: #0B1220; color: #FFFFFF; }

.err-row { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) auto auto; gap: 12px 22px; align-items: center; padding: 20px 24px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FFFFFF; }
.err-row:hover { border-color: #B9E7D2; box-shadow: 0 18px 40px -32px #0b12204d; }
.err-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.err-name-link { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; }
.err-name-link:hover { color: #0E9F6E; border-bottom-color: #0E9F6E; }
.sr-hero-row { align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.sr-hero-main { flex: 1 1 420px; min-width: 0; }
.sr-side-card { flex: 0 0 420px; max-width: 420px; margin-left: auto; padding: 20px 22px; }
.sr-side-card h2 { font-size: 17px; }
.sr-side-card p { font-size: 13.5px; }
.sr-email-row { margin-top: 12px; padding: 6px 6px 6px 14px; max-width: none; }
.sr-email-row input { min-width: 0; }
.sr-email-row button { flex: none; }
.sr-email-saved { color: #0B6B4B; font-size: 13px; }
.sr-current-card { padding: 22px 24px; }
.sr-current-head { padding: 0 0 16px; border: none; background: transparent; }
.sr-current-when { margin-left: auto; }
.sr-current-actions { margin-top: 14px; }
.sr-current-thumb { border-radius: 14px; overflow: hidden; }
.sr-current-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-tight-top { margin-top: 0; }
.sr-tight-top-16 { margin-top: 16px; }
.sr-cta-wide h2, .sr-cta-wide p { max-width: none; }
.sr-cta-link { display: inline-block; margin-top: 16px; }
.sr-result-hero { align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.title-lg.sr-result-title {
  margin-top: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 20px;
  line-height: 1.7;
  display: inline;
  background: #0B1220;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sr-result-screenshot { width: 100%; border-radius: 14px; border: 1px solid #E7EBF1; }
.sr-result-findings-head { margin-top: 28px; }
.sr-result-findings { margin-top: 12px; }
.signup-narrow { max-width: 620px; }
.signup-card { margin-top: 28px; }
.signup-label-spaced { margin-top: 8px; }
.signup-input-tight { padding-left: 4px; }
.signup-hidden { display: none; }
.err-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.err-desc { margin: 0; font-size: 14.5px; line-height: 1.5; color: #59647A; }
.err-freq { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #93A0B4; }
.err-fix { justify-self: end; font-size: 14px; font-weight: 600; color: #0E9F6E; }

.side-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 11px; border: 1px solid #E7EBF1; background: #FFFFFF; font-size: 14.5px; font-weight: 500; color: #4C5768; }
.side-cat:hover { border-color: #0B1220; color: #0B1220; }
.side-cat.is-on { background: #0B1220; border-color: #0B1220; color: #FFFFFF; }
.side-cat-n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: .6; }

.kb-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FFFFFF; min-height: 168px; }
.kb-card:hover { border-color: #0B1220; color: #0B1220; box-shadow: 0 18px 40px -32px #0b12204d; }
.kb-blurb { margin: 0; font-size: 14px; line-height: 1.5; color: #59647A; }
.kb-card .card-meta { margin-top: auto; }

.empty-state { padding: 60px 24px; text-align: center; border: 1px dashed #DCE2EA; border-radius: 16px; color: #74809A; grid-column: 1 / -1; }
.empty-state p { margin: 0 0 14px; font-size: 15px; }
.empty-state a { font-weight: 600; color: #0E9F6E; }

.scan-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 12px; border-radius: 12px; }
.scan-step.is-active { background: #F1FAF6; }
.scan-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #EDF0F4; color: #A7B1C2; }
.scan-step.is-done .scan-mark { background: #10B981; color: #FFFFFF; }
.scan-step.is-active .scan-mark { background: #0B1220; color: #FFFFFF; }
.scan-label { font-size: 14.5px; color: #2C3746; }
.scan-step.is-queued .scan-label { color: #A7B1C2; }
.scan-note { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #A7B1C2; }

.badge { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 5px; background: #EEF1F5; color: #64748B; }
.badge.is-fail { background: #FEE2E2; color: #B91C1C; }
.badge.is-ok { background: #DCFCE7; color: #166534; }
.badge.is-queued { background: #FEF3C7; color: #92400E; }
.badge.is-paused { background: #EEF1F5; color: #64748B; }
.badge.is-warn { background: #FEF3C7; color: #92400E; }

.mon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px 22px; align-items: center; padding: 20px 22px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FFFFFF; }
.mon-row.is-off { background: #FBFCFD; }
.mon-main { min-width: 0; }
.mon-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mon-dot { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.mon-dot.is-fail { background: #DC2626; }
.mon-dot.is-ok { background: #10B981; }
.mon-dot.is-queued { background: #F59E0B; }
.mon-url { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; color: #0B1220; overflow-wrap: anywhere; text-decoration-line: underline; text-decoration-color: #C9D6E2; text-underline-offset: 3px; }
.mon-url:hover { color: #0E9F6E; text-decoration-color: #0E9F6E; }
.mon-row.is-off .mon-url { color: #8A96A9; }
.mon-detail { margin-top: 7px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: #8A96A9; }
.mon-detail a { font-weight: 600; color: #0E9F6E; }

.seg-group { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #F4F6F9; }
.seg { padding: 7px 12px; border: none; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: #8A96A9; }
.seg.is-on { background: #FFFFFF; color: #0B1220; }

.switch { width: 46px; height: 26px; border: none; border-radius: 999px; padding: 3px; display: flex; justify-content: flex-start; background: #DCE2EA; }
.switch.is-on { justify-content: flex-end; background: #0E9F6E; }
.switch span { width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px #0b122040; }

.btn-remove { padding: 9px 14px; border: 1px solid #E7EBF1; border-radius: 10px; background: #FFFFFF; font-size: 13.5px; color: #74809A; }
.btn-remove:hover { border-color: #FBD5D5; background: #FEF2F2; color: #B91C1C; }

.alert-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid #E7EBF1; background: #FFFFFF; }
.alert-opt.is-on { border-color: #C9E9DB; background: #F4FBF8; }
.alert-box { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #FFFFFF; color: #FFFFFF; box-shadow: inset 0 0 0 1px #DCE2EA; }
.alert-opt.is-on .alert-box { background: #0E9F6E; box-shadow: inset 0 0 0 1px #0E9F6E; }
.alert-label { display: block; font-size: 14.5px; font-weight: 600; color: #2C3746; }
.alert-hint { display: block; margin-top: 3px; font-size: 13px; color: #8A96A9; }

.chk { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #EDF0F4; }
.chk.is-fail { background: #FEF7F7; box-shadow: inset 0 0 0 1px #FBD5D5; }
.chk.is-warn { background: #FFFBF3; box-shadow: inset 0 0 0 1px #FDE9C0; }
.chk-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #FFFFFF; background: #10B981; }
.chk.is-fail .chk-mark { background: #DC2626; }
.chk.is-warn .chk-mark { background: #F59E0B; }
.chk-body { min-width: 0; }
.chk-label { display: block; font-size: 14.5px; color: #2C3746; }
.chk-detail { display: block; margin-top: 3px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8A96A9; overflow-wrap: anywhere; }
.chk-timing { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #A7B1C2; }

.console-line { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; }

/* Console panel: styled to read as genuine browser devtools output, not
   plain colored text. Severity tint/colors reuse the same tokens as
   .badge.is-fail/.is-warn above rather than a separate palette. */
.console-panel {
  border: 1px solid #E7EBF1;
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
}
.console-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 16px;
  border-bottom: 1px solid #EDF0F5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.65;
}
.console-row:last-child { border-bottom: none; }
.console-row--error, .console-row--pageerror { background: #FEF2F2; }
.console-row--warning { background: #FFFBEB; }
.console-icon { flex: 0 0 auto; margin-top: 3px; }
.console-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #29313C;
}
.console-row--error .console-text, .console-row--pageerror .console-text { color: #B91C1C; }
.console-row--warning .console-text { color: #92400E; }
.console-source {
  flex: 0 0 auto;
  color: #9AA4B2;
  font-size: 11px;
  white-space: nowrap;
  margin-top: 2px;
}

.finding { padding: 20px 22px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FFFFFF; }
.finding.is-warn { background: #FBFCFD; }
.finding-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finding-since { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #A7B1C2; }
.finding-desc { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: #59647A; }
.finding-fix { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: #0E9F6E; }

.hist-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #F2F4F7; }
.hist-row:nth-child(even) { background: #FBFCFD; }
.hist-when { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #74809A; }
.hist-result { font-size: 14px; color: #4C5768; overflow-wrap: anywhere; }

/* list placeholders take part in their parent's flex/grid layout */
[data-list] { display: contents; }
.nav-link { white-space: nowrap; }
[data-modal][hidden], [data-when][hidden] { display: none !important; }

@media (max-width: 860px) {
  .err-row, .mon-row { grid-template-columns: minmax(0, 1fr); }
  .err-fix, .mon-row .btn-remove { justify-self: start; }
  .hist-row { grid-template-columns: 1fr; gap: 6px; }
}


/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .article-grid,
  .page .cols-2, .page .cols-3, .page .cols-4, .page .cols-feature,
  .page .cols-hero, .page .cols-split, .page .cols-cta,
  .page .cols-sidebar, .page .cols-aside,
  .page .step-card, .page .cta-card { grid-template-columns: minmax(0, 1fr) !important; }
  .aside-sticky { position: static; }
  .header-inner { padding: 14px 20px; }
}
/* Headers: on narrow viewports the nav no longer fits in one row next to the
   brand — wrap it onto its own row and let it scroll horizontally if it's
   still too wide, rather than overflowing/clipping past the viewport edge. */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .site-nav { font-size: 13.5px; }
  .article-title { font-size: 28px; }
  .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { padding: 24px 20px; }
  .wrap, .header-inner, .footer-inner { padding-left: 20px !important; padding-right: 20px !important; }
  .brand-name { font-size: 16px; }
  .nav-link, .nav-link.is-current { padding: 6px 10px; font-size: 13.5px; }
  /* .sr-side-card ("Scans are linked" etc.) is fixed at a 420px flex-basis
     with margin-left:auto for desktop's two-column layout - once wrapped
     onto its own line on a narrow screen, that combination just pins it to
     the right edge rather than centering it, and the fixed basis can
     overflow a viewport narrower than 420px. Full width and centered text
     reads correctly once it's genuinely a single-column stacked layout. */
  .sr-side-card { flex-basis: 100%; max-width: 100%; margin-left: 0; text-align: center; }
  .sr-side-card .searchbar,
  .sr-side-card .flex { justify-content: center; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .modal-host, [data-modal], .btn { display: none !important; }
  .page { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #666; }
}


/* ============================================================
   Layout primitives
   ============================================================ */

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-narrow { max-width: 1080px; }
.footer-inner-wide { max-width: 1200px; }

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.between { justify-content: space-between; }
.justify-center { justify-content: center; }
.place-center { place-items: center; }
.wrapping { flex-wrap: wrap; }
.no-shrink { flex: none; }
.flex-1 { flex: 1; min-width: 0; }
.minw-0 { min-width: 0; }
.minw-220 { min-width: 220px; }
.minw-320 { min-width: 320px; }
.minw-460 { min-width: 460px; }
.pos-rel { position: relative; }
.pos-abs { position: absolute; }
.push { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.border-b { border-bottom: 1px solid #EDF0F4; }

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-feature { grid-template-columns: 1.4fr 1fr 1fr; }
.cols-hero { grid-template-columns: 1.05fr 0.95fr; }
.cols-split { grid-template-columns: 0.85fr 1.15fr; }
.cols-cta { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
.cols-sidebar { grid-template-columns: 232px 1fr; }
.cols-aside { grid-template-columns: minmax(0, 1fr) 360px; }

/* ============================================================
   Sections & surfaces
   ============================================================ */

.hero-band { background: linear-gradient(180deg, #F4F8F6, #FFFFFF); border-bottom: 1px solid #EDF0F4; }
.hero-band-tall { position: relative; background: linear-gradient(180deg, #F4F8F6 0%, #FBFCFC 55%, #FFFFFF 100%); border-bottom: 1px solid #E9ECF1; }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(#0B12200A 1px, transparent 1px), linear-gradient(90deg, #0B12200A 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); }
.dark-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 48px 48px; }
.shot-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(#DDE3E9 1px, transparent 1px), linear-gradient(90deg, #DDE3E9 1px, transparent 1px); background-size: 34px 34px; }
.hero-glow-radial { position: absolute; top: -180px; left: 50%; width: 900px; height: 460px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, #10B98126, transparent 70%); filter: blur(10px); }
.hero-glow { position: absolute; inset: -14px; border-radius: 26px; background: linear-gradient(160deg, #10b98126, transparent 60%); }
.band { margin-top: 96px; background: #F7F9FA; border-top: 1px solid #E9ECF1; border-bottom: 1px solid #E9ECF1; }

.preview-card { position: relative; background: #FFFFFF; border: 1px solid #E3E8EE; border-radius: 20px; box-shadow: 0 40px 80px -40px #0b12204d; overflow: hidden; }
.scan-shell { border: 1px solid #E3E8EE; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -50px #0b122066; }
.scan-body { position: relative; padding: 30px 24px 34px; }
.scan-body-tight { position: relative; padding: 24px 22px; }
.result-body { padding: 20px 20px 22px; animation: emc-rise .45s ease both; }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 44px; background: linear-gradient(180deg, transparent, #10b98120, transparent); animation: emc-sweep 1.5s linear infinite; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CBD5E1; animation: emc-spin .9s linear infinite; }
.anim-rise { animation: emc-rise .4s ease both; }
.anim-pulse { animation: emc-pulse 1.2s ease-in-out infinite; }

/* ---------- boxes ---------- */

.box { padding: 22px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FFFFFF; }
.box-p14 { padding: 14px 16px; border-radius: 14px; }
.box-p18 { padding: 18px 20px; border-radius: 14px; }

.fix-steps { background: #F7FBF9; border: 1px solid #DCEFE6; }
.fix-steps h4 { margin-bottom: 16px; }
.fix-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #E3EFE9; }
.fix-step:first-of-type { border-top: none; padding-top: 2px; }
.fix-step-num {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0E9F6E;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
/* Specific URL/referrer values pulled from the actual scan (not generic
   code syntax like key= or v=weekly, which stay the plain .mono.mono-sm
   style) - a strong black background makes clear this is a real, specific
   value to copy, not just an example. */
.fix-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  background: #0B1220;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 5px;
  word-break: break-all;
}
.box-p20 { padding: 20px 22px; border-radius: 18px; }
.box-p22 { padding: 22px 24px; border-radius: 18px; }
.box-p26 { padding: 26px 28px; border-radius: 18px; }
.box-p30 { padding: 30px; border-radius: 20px; }
.box-tint { background: #FBFCFD; }
.box-panel { background: #F7F9FA; border-color: #E9ECF1; }
.box-dark { background: #0B1220; border-color: #0B1220; color: #FFFFFF; }
.box-gradient { background: linear-gradient(140deg, #0B1220, #123527); border: none; }
.box-hover-dark:hover { border-color: #0B1220; color: #0B1220; }
.box-frame { border: 1px solid #E7EBF1; border-radius: 16px; overflow: hidden; background: #FFFFFF; }
.card-dashed { border: 1px dashed #DCE2EA; background: transparent; }
.panel-link-sm { padding: 11px 14px; border-radius: 11px; }

.note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #FBFCFD; box-shadow: inset 0 0 0 1px #EDF0F4; font-size: 12.5px; line-height: 1.55; color: #74809A; }
.callout { margin-top: 30px; padding: 22px 24px; border-radius: 16px; background: #F7F9FA; border: 1px solid #E9ECF1; }
.stat-box { display: grid; gap: 10px; padding: 18px 22px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FBFCFD; min-width: 220px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #EDF0F4; background: #FBFCFD; }
.panel-foot { padding: 14px 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- calls to action ---------- */

.cta-banner { position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(140deg, #0B1220 0%, #123527 100%); padding: 60px 48px; text-align: center; }
.cta-panel { margin-top: 16px; padding: 30px 32px; border-radius: 20px; background: linear-gradient(140deg, #0B1220 0%, #123527 100%); overflow: hidden; }
.cta-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 36px 40px; border-radius: 22px; background: #0B1220; color: #FFFFFF; }
.cta-card:hover { background: #14213A; color: #FFFFFF; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 28px; border-radius: 18px; background: #F7F9FA; border: 1px solid #E9ECF1; }
.cta-strip-white { background: #FFFFFF; border-color: #E3E8EE; border-radius: 16px; }
.tile-dark { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; border-radius: 20px; background: #0B1220; color: #FFFFFF; min-height: 260px; }
.tile-dark:hover { background: #14213A; color: #FFFFFF; }

/* ---------- alerts, steps, key/value ---------- */

.alert-danger { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #FEF2F2; border: 1px solid #FBD5D5; }
.alert-danger-lg { gap: 16px; padding: 20px 22px; border-radius: 18px; flex-wrap: wrap; }
.step-card { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px; border: 1px solid #E7EBF1; border-radius: 16px; background: #FFFFFF; }
.step-card:hover { border-color: #B9E7D2; box-shadow: 0 18px 40px -30px #0b122040; }
.step-dark { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: #FFFFFF0F; }
.bullets-sm { gap: 7px; font-size: 14.5px; line-height: 1.5; }
.kv { display: flex; justify-content: space-between; }
.kv-list { display: grid; gap: 11px; font-size: 13.5px; color: #59647A; }
.key-row { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #0B1220; display: flex; align-items: center; gap: 10px; }

/* ---------- inputs ---------- */

.searchbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #FFFFFF; border: 1px solid #E3E8EE; border-radius: 14px; box-shadow: 0 14px 34px -26px #0b122040; }
.urlbar { margin-top: 32px; padding: 10px; display: flex; align-items: center; gap: 10px; max-width: 560px; background: #FFFFFF; border: 1px solid #E3E8EE; border-radius: 18px; box-shadow: 0 24px 50px -28px #0b122033, 0 2px 4px #0b12200a; }
.urlbar-lg { padding: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFFFFF; border: 1px solid #E3E8EE; border-radius: 18px; box-shadow: 0 20px 44px -34px #0b12204d; }
.email-bar { display: flex; gap: 8px; padding: 8px; border-radius: 16px; background: #FFFFFF14; box-shadow: inset 0 0 0 1px #FFFFFF1F; }
.input-bare { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 15px; color: #0B1220; }
.input-lg { font-size: 16px; padding: 12px 0; }
.input-dark { font-size: 15.5px; color: #FFFFFF; padding: 12px; }

/* ---------- marks, dots, pills ---------- */

.mark { display: grid; place-items: center; flex: none; font-weight: 700; }
.mark-22 { width: 22px; height: 22px; border-radius: 50%; font-size: 10.5px; }
.mark-34 { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.mark-40 { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
.mark-46 { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
.mark-dark { background: #0B1220; color: #FFFFFF; }
.mark-red { background: #DC2626; color: #FFFFFF; }
.mark-mint { background: #34D399; color: #06281C; }

.dot { border-radius: 50%; }
.dot-6 { width: 6px; height: 6px; }
.dot-7 { width: 7px; height: 7px; }
.dot-8 { width: 8px; height: 8px; }
.dot-9 { width: 9px; height: 9px; }
.dot-10 { width: 10px; height: 10px; }
.bg-red { background: #DC2626; }
.bg-amber { background: #F59E0B; }
.bg-slate { background: #94A3B8; }
.bg-green { background: #10B981; }
.bg-line { background: #E3E8EE; }
.bg-line-2 { background: #DCE2EA; }

.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid #E3E8EE; background: #FFFFFF; font-size: 13px; color: #4C5768; }
.pill-dark { background: #0B1220; border-color: #0B1220; color: #FFFFFF; font-weight: 600; }
.pill-quiet { padding: 7px 13px; border-color: #E7EBF1; background: transparent; }
.user-pill { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid #E7EBF1; font-size: 13.5px; color: #4C5768; }
.badge-live { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border: 1px solid #D7E4DD; background: #FFFFFFCC; border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #35604E; }
.eyebrow-mint { color: #6EE7B7; }
.eyebrow-danger { color: #A14545; }

/* ---------- screenshots & code ---------- */

.shot { position: relative; aspect-ratio: 4 / 3; background: #E9EDF1; display: grid; place-items: center; }
.shot-error { position: relative; padding: 18px 22px; margin: 0 24px; border-radius: 12px; background: #FFFFFFF2; box-shadow: 0 10px 28px -14px #0b122059; text-align: center; }
.shot-caption { position: absolute; bottom: 10px; right: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #8A96A9; }
.code-block { margin-top: 15px; padding: 16px 18px; border-radius: 13px; background: #0B1220; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.72; overflow-x: auto; }
.marker { background: linear-gradient(#FDE68A80, #FDE68A80); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.04em 0.12em; border-radius: 5px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #0B1220; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-green { background: #0E9F6E; color: #FFFFFF; }
.btn-green:hover { background: #0B8B60; color: #FFFFFF; }
.btn-mint { background: #34D399; color: #06281C; font-weight: 700; }
.btn-mint:hover { background: #6EE7B7; color: #06281C; }
.btn-dark { background: #0B1220; color: #FFFFFF; }
.btn-dark:hover { background: #16233A; color: #FFFFFF; }
.btn-outline { border-color: #DDE3EA; }
.btn[disabled] { opacity: 0.45; cursor: default; pointer-events: none; }
.btn-outline:hover { border-color: #0B1220; }
.btn-ghost { border-color: #FFFFFF33; color: #FFFFFF; }
.btn-ghost:hover { background: #FFFFFF14; color: #FFFFFF; }
.btn-quiet { border-color: #DDE3EA; }
.btn-quiet:hover { background: #0B1220; color: #FFFFFF; border-color: #0B1220; }
.btn-boxy { padding: 13px 22px; border-radius: 12px; font-size: 15px; box-shadow: 0 10px 22px -8px #0e9f6e99; }

/* Same shape/shadow-depth as the primary boxy buttons, but red throughout
   instead of green - used for destructive actions like "Delete my scan
   records". Without this, reusing .btn-boxy directly would carry its
   hardcoded green-tinted shadow under red text, which looks like a mistake
   rather than an intentional danger state. */
.btn-outline-danger { color: #B91C1C; border-color: #F3B4B4; box-shadow: 0 10px 22px -10px #b91c1c4d; }
.btn-outline-danger:hover { border-color: #B91C1C; background: #FEF2F2; }
.btn-flat { flex: 1; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.btn-nav { padding: 6px 11px; border-radius: 12px; font-size: 14px; background: #0B1220; color: #FFFFFF; box-shadow: 0 8px 20px #0b12201f; flex: none; }
.btn-nav:hover { background: #FFFFFF; color: #0B1220; border-color: #0B1220; }
.btn-mono-ghost { flex: none; padding: 6px 10px; border: 1px solid #FFFFFF2E; border-radius: 7px; background: transparent; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; color: #AEBACD; }
.btn-mono-ghost:hover { background: #FFFFFF14; color: #FFFFFF; }
.more-link { display: inline-block; font-size: 14px; font-weight: 600; color: #0E9F6E; }
.meta-note { display: inline-block; font-size: 13px; color: #8FA0B8; }
.link-muted { color: #4C5768; }
.link-muted:hover { color: #0B1220; }

/* ============================================================
   Type scale
   ============================================================ */

.title-hero, .title-hero-xl, .title-lg, .title-fluid, .title-display,
.title-md, .title-sm, .title-xs, .title-2xs, .title-3xs, .title-mini {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  margin: 0;
}
.title-hero { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.035em; }
.title-hero-xl { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.title-lg { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.06; letter-spacing: -0.03em; }
.title-fluid { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.title-display { font-size: 39px; line-height: 1.07; letter-spacing: -0.03em; }
.title-md { font-size: 27px; line-height: 1.14; letter-spacing: -0.03em; }
.title-sm { font-size: 24px; line-height: 1.2; letter-spacing: -0.025em; }
.title-xs { font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; }
.title-2xs { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.title-3xs { font-size: 17px; line-height: 1.25; letter-spacing: -0.02em; }
.title-mini { font-size: 15px; color: #3B475A; }

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ============================================================
   Utilities — spacing, size, colour
   ============================================================ */

.m-0 { margin: 0; }
.mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-7 { margin-top: 7px; }
.mt-8 { margin-top: 8px; } .mt-9 { margin-top: 9px; } .mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; } .mt-20 { margin-top: 20px; } .mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; } .mt-26 { margin-top: 26px; } .mt-28 { margin-top: 28px; }
.mt-30 { margin-top: 30px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-6 { margin-bottom: 6px; } .mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; } .mb-20 { margin-bottom: 20px; }

.pt-18 { padding-top: 18px; } .pt-22 { padding-top: 22px; } .pt-26 { padding-top: 26px; }
.pt-28 { padding-top: 28px; } .pt-34 { padding-top: 34px; } .pt-40 { padding-top: 40px; }
.pt-44 { padding-top: 44px; } .pt-56 { padding-top: 56px; } .pt-64 { padding-top: 64px; }
.pt-72 { padding-top: 72px; } .pt-80 { padding-top: 80px; } .pt-88 { padding-top: 88px; }
.pb-8 { padding-bottom: 8px; } .pb-20 { padding-bottom: 20px; } .pb-44 { padding-bottom: 44px; }
.pb-46 { padding-bottom: 46px; } .pb-88 { padding-bottom: 88px; }
.py-26 { padding-top: 26px; padding-bottom: 26px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.py-88 { padding-top: 88px; padding-bottom: 88px; }
.pl-8 { padding-left: 8px; } .pl-10 { padding-left: 10px; } .pl-12 { padding-left: 12px; }

.g-4 { gap: 4px; } .g-6 { gap: 6px; } .g-7 { gap: 7px; } .g-8 { gap: 8px; }
.g-10 { gap: 10px; } .g-12 { gap: 12px; } .g-14 { gap: 14px; } .g-16 { gap: 16px; }
.g-18 { gap: 18px; } .g-20 { gap: 20px; } .g-22 { gap: 22px; } .g-24 { gap: 24px; }
.g-28 { gap: 28px; } .g-32 { gap: 32px; } .g-36 { gap: 36px; } .g-40 { gap: 40px; }
.g-48 { gap: 48px; } .g-56 { gap: 56px; }
.g-8-20 { gap: 8px 20px; } .g-14-40 { gap: 14px 40px; }

.fs-11 { font-size: 11px; } .fs-115 { font-size: 11.5px; } .fs-12 { font-size: 12px; }
.fs-125 { font-size: 12.5px; } .fs-13 { font-size: 13px; } .fs-135 { font-size: 13.5px; }
.fs-14 { font-size: 14px; } .fs-145 { font-size: 14.5px; } .fs-15 { font-size: 15px; }
.fs-155 { font-size: 15.5px; } .fs-165 { font-size: 16.5px; } .fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; } .fs-185 { font-size: 18.5px; }
.fw-600 { font-weight: 600; }
.lh-15 { line-height: 1.5; } .lh-155 { line-height: 1.55; } .lh-16 { line-height: 1.6; }
.ls-02 { letter-spacing: 0.02em; } .ls-08 { letter-spacing: 0.08em; }
.upper { text-transform: uppercase; }
.right { text-align: right; }
.pretty { text-wrap: pretty; }
.break-any { overflow-wrap: anywhere; }
.pointer { cursor: pointer; }
.no-border { border: none; }
.r-14 { border-radius: 14px; }
.r-18 { border-radius: 18px; }

.mw-300 { max-width: 300px; } .mw-340 { max-width: 340px; } .mw-420 { max-width: 420px; }
.mw-460 { max-width: 460px; } .mw-500 { max-width: 500px; } .mw-520 { max-width: 520px; }
.mw-560 { max-width: 560px; } .mw-600 { max-width: 600px; } .mw-620 { max-width: 620px; }
.mw-720 { max-width: 720px; } .mw-760 { max-width: 760px; }

.c-ink { color: #0B1220; } .c-ink-3 { color: #3B4A5F; } .c-body { color: #4C5768; }
.c-muted { color: #59647A; } .c-dim { color: #74809A; } .c-faint { color: #8A96A9; }
.c-soft { color: #93A0B4; } .c-pale { color: #A7B1C2; } .c-steel { color: #8FA0B8; }
.c-slate { color: #7E8FA6; } .c-slate-2 { color: #94A3B8; } .c-green { color: #0E9F6E; }
.c-mint { color: #6EE7B7; } .c-white { color: #FFFFFF; } .c-code { color: #E6EDF6; }
.c-on-dark { color: #AEBACD; } .c-on-dark-2 { color: #B6C6D6; } .c-on-dark-3 { color: #DCE5EF; }
.c-red { color: #B91C1C; } .c-red-soft { color: #A14545; } .c-red-deep { color: #7F1D1D; }
.c-red-pale { color: #FCA5A5; }

.scan-row { cursor: pointer; }
.scan-thumb { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: #F4F6F9; display: grid; place-items: center; }
.scan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.scan-thumb-empty { font-size: 11px; color: #93A0B4; }

/* ---------- generated articles (scripts/site) ---------- */

.byline { margin-top: 10px; font-size: 13.5px; color: #74809A; }
.byline a { color: #0E9F6E; }
.byline a:hover { text-decoration: underline; }
.inline-link { color: #0E9F6E; text-decoration: underline; text-decoration-color: rgba(14, 159, 110, 0.35); text-underline-offset: 2px; }
.inline-link:hover { text-decoration-color: currentColor; }
.body-copy a:not(.inline-link), .bullets a:not(.inline-link), .steps a:not(.inline-link), .callout a:not(.inline-link) { color: #0E9F6E; text-decoration: underline; text-underline-offset: 2px; }
.h3-article { margin: 26px 0 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: #0B1220; }
.faq-item .body-copy { margin-top: 8px; }
pre.code-block { margin-bottom: 0; white-space: pre; }
pre.code-block code { font: inherit; color: inherit; }
.code-label { margin-top: 18px; }
.code-label + .code-block { margin-top: 8px; }
.c-amber-pale { color: #FCD34D; }
.table-scroll { margin-top: 16px; overflow-x: auto; max-width: 700px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; color: #4C5768; }
.data-table th { text-align: left; font-weight: 600; color: #0B1220; background: #F7F9FA; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid #E9ECF1; vertical-align: top; }
.toc { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 7px; font-size: 13.5px; line-height: 1.45; color: #59647A; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.footer-nav a { color: inherit; }
.footer-nav a:hover { color: #0B1220; text-decoration: underline; }
.article-grid.article-grid-single { grid-template-columns: minmax(0, 760px); }
.err-row[hidden], .kb-card[hidden] { display: none !important; }

/* ---------- Free tools (SEO-15) ---------- */
.tool-card { margin-top: 28px; padding: 24px; border: 1px solid #E3E8EE; border-radius: 18px; background: #FFFFFF; box-shadow: 0 1px 2px #0B12200A; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.tool-label { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 14.5px; color: #0B1220; }
.tool-hint { font-size: 13px; color: #74809A; }
.tool-card textarea, .tool-num { width: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; line-height: 1.6; color: #0B1220; padding: 12px 14px; border: 1px solid #DDE3EA; border-radius: 12px; background: #F9FAFB; resize: vertical; }
.tool-card textarea:focus, .tool-num:focus { outline: 2px solid #34D399; outline-offset: 1px; border-color: #34D399; background: #FFFFFF; }
.tool-num { max-width: 160px; padding: 9px 12px; }
.tool-radios label { display: block; padding: 10px 0 0; font-size: 14.5px; color: #0B1220; }
.tool-radios .tool-hint { display: block; margin: 2px 0 0 24px; }
.tool-run { margin-top: 4px; }
.tool-result { margin-top: 18px; }
.tool-result .data-table td { vertical-align: top; font-size: 14px; }
.tool-out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tool-pre { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.tool-alert ul { margin: 6px 0 0; padding-left: 18px; }
.tool-alert.is-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; }
.tool-money { font-family: 'IBM Plex Mono', monospace; text-align: right; white-space: nowrap; }
.tool-total { font-weight: 500; font-size: 16px; color: #0B1220; }
.tool-table tfoot th { text-align: left; font-size: 14.5px; }
@media (max-width: 720px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 18px; }
}

/* ---------- Shareable report (FEAT-05) and status badge (FEAT-13) ---------- */
.share-panel { margin-top: 22px; padding: 18px 20px; border: 1px solid #E3E8EE; border-radius: 16px; background: #F7F9FA; }
.share-panel[hidden] { display: none; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.share-input { flex: 1 1 320px; min-width: 0; padding: 10px 14px; border: 1px solid #DDE3EA; border-radius: 10px; background: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #0B1220; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: #0E9F6E; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #0B8B60; }
.badge-panel { margin-top: 14px; padding: 16px; border: 1px solid #E3E8EE; border-radius: 12px; background: #F7F9FA; }
.badge-panel-copy { margin: 0 0 10px; font-size: 13.5px; color: #4C5768; }
.badge-code-label { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; color: #4C5768; }
.badge-code { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #DDE3EA; border-radius: 8px; background: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #0B1220; resize: none; }

/* ---------- Scan device/engine choice (FEAT-06) ---------- */
.profile-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #4C5768; }
.profile-select { padding: 10px 12px; border: 1px solid #DDE3EA; border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 14px; color: #0B1220; }
.scan-as { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #F1F5F9; font-size: 14px; color: #334155; }

/* ============================================================
   Footer (markup: FOOTER_LINKS in scripts/site/template.mjs)
   ============================================================ */
.ft-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 48px; }
.ft-tagline { margin: 14px 0 0; max-width: 340px; line-height: 1.55; color: #6B778A; }
.ft-promo { display: block; margin-top: 22px; max-width: 340px; padding: 14px 16px; border: 1px solid #E3E8EF; border-radius: 14px; background: #F7F9FB; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.ft-promo:hover { border-color: #0E9F6E; background: #F1FAF6; }
.ft-promo-eyebrow { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #93A0B4; }
.ft-promo-title { display: block; margin-top: 4px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 15.5px; color: #0B1220; }
.ft-promo-text { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: #5B6678; }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-head { margin: 0 0 4px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #93A0B4; }
.ft-col a { color: #4C5768; text-decoration: none; width: fit-content; }
.ft-col a:hover { color: #0B1220; text-decoration: underline; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid #EDF0F4; font-size: 13px; color: #8A96A9; }
@media (max-width: 760px) {
  .ft-top { grid-template-columns: 1fr; gap: 32px; }
  .ft-promo, .ft-tagline { max-width: none; }
}
@media (max-width: 420px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}

/* FEAT-12: re-scan comparison */
.cmp-box { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #E3E8EF; border-radius: 14px; background: #F7F9FB; }
.cmp-eyebrow { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #93A0B4; }
.cmp-headline { margin: 6px 0 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 17px; color: #0B1220; }
.cmp-group { margin-top: 12px; }
.cmp-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #4C5768; }
.cmp-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cmp-chip { padding: 4px 10px; border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; overflow-wrap: anywhere; }
.cmp-chip a { color: inherit; text-decoration: none; }
.cmp-chip a:hover { text-decoration: underline; }
.cmp-fixed { background: #E7F8F0; color: #08724F; text-decoration: line-through; text-decoration-color: #08724F66; }
.cmp-still { background: #FDECEC; color: #B42318; }
.cmp-new { background: #FFF4E0; color: #9A5B00; }
