/* SCAN-15B.1 | Scoped typography + post-scan input visual state.
 * The canonical site header/footer, unsent landing, app and Marketplace are unchanged.
 * Uses the existing CSP-approved Bunny Fonts provider. Fallbacks keep the UI usable offline.
 * Geist (sans) = Geist Sans; Geist Mono is restricted to short technical values.
 */
@import url("https://fonts.bunny.net/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600;700&display=swap");

/* Home report-mode intro and form; standalone report body only (never the site chrome). */
body.st-home-report-active .st-scan15a-result-intro,
body.st-home-report-active .st-hero .st-home-domain-form,
.st-inline-report,
:is(.st-inline-report, body.domain-intelligence-page #content) {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Remove the inherited white bordered *form* from the old landing stylesheet.
 * Its !important border survived the previous SCAN-15B focus/blur fix and made
 * the entire search row look persistently selected after a completed scan. */
html[data-public-theme="light"] body.public-home.st-home-report-active .st-hero .st-home-domain-form,
html[data-public-theme="dark"] body.public-home.st-home-report-active .st-hero .st-home-domain-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* An autofilled value is not an active focus. Chromium uses an internal blue
 * fill unless explicitly painted over. Keep the visible focus ring for keyboard
 * navigation and allow actual editing of the field on every new search. */
html[data-public-theme] body.public-home.st-home-report-active .st-hero #home-domain-input {
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid #c9d3e2 !important;
  color: #17243b !important;
  -webkit-text-fill-color: #17243b !important;
  caret-color: #185ee9;
  box-shadow: 0 2px 8px rgba(20, 49, 93, .055) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html[data-public-theme] body.public-home.st-home-report-active .st-hero #home-domain-input:is(:-webkit-autofill, :autofill) {
  -webkit-text-fill-color: #17243b !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 2px 8px rgba(20, 49, 93, .055) !important;
  box-shadow: 0 0 0 1000px #fff inset, 0 2px 8px rgba(20, 49, 93, .055) !important;
  caret-color: #185ee9;
}
html[data-public-theme] body.public-home.st-home-report-active .st-hero #home-domain-input:focus:not(:focus-visible) {
  outline: none !important;
}
html[data-public-theme] body.public-home.st-home-report-active .st-hero #home-domain-input:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px;
  border-color: #2563eb !important;
}

/* The shareable scanner has its own input; keep the same neutral autofill
 * treatment, while preserving a visible focus ring for keyboard users. */
body.domain-intelligence-page #content .domain-form #domain-input {
  background-color: #fff;
  color: #17243b;
  -webkit-text-fill-color: #17243b;
  caret-color: #185ee9;
}
body.domain-intelligence-page #content .domain-form #domain-input:is(:-webkit-autofill, :autofill) {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 2px 8px rgba(20, 49, 93, .055);
  box-shadow: 0 0 0 1000px #fff inset, 0 2px 8px rgba(20, 49, 93, .055);
  -webkit-text-fill-color: #17243b;
}
body.domain-intelligence-page #content .domain-form #domain-input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Typographic hierarchy: restrained weights, consistent letterspacing and
 * legible technical labels, with no globally inherited font-family overrides. */
body.st-home-report-active .st-scan15a-result-intro h2,
body.domain-intelligence-page #content .hero h1 {
  font-weight: 700;
  letter-spacing: -.038em;
}
body.st-home-report-active .st-scan15a-result-intro > p:last-child,
body.domain-intelligence-page #content .hero p {
  font-weight: 400;
  letter-spacing: -.005em;
}
:is(.st-inline-report, body.domain-intelligence-page) :is(.report-head h1, #report-title) {
  font-weight: 700;
  letter-spacing: -.035em;
}
:is(.st-inline-report, body.domain-intelligence-page) .metric strong {
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .st-category-name {
  font-weight: 650;
  letter-spacing: -.016em;
}
:is(.st-inline-report, body.domain-intelligence-page) .st-scan15a-card-description {
  font-weight: 400;
  letter-spacing: 0;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .st-report-tech-name strong {
  font-weight: 600;
  letter-spacing: -.009em;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .st-report-tech-name small {
  font-weight: 400;
  letter-spacing: 0;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .st-report-tech-destination,
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .signal-pill {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .fact-row .fact-name {
  font-weight: 550;
  letter-spacing: -.005em;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .fact-row .fact-value {
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.012em;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .feature-highlight strong,
:is(.st-inline-report, body.domain-intelligence-page) .report-grid #email-facts .fact-tile strong,
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .changes-empty strong {
  font-weight: 650;
  letter-spacing: -.01em;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .card-link,
:is(.st-inline-report, body.domain-intelligence-page) .report-cta a {
  font-weight: 600;
}
:is(.st-inline-report, body.domain-intelligence-page) .report-cta h2 {
  font-weight: 700;
  letter-spacing: -.035em;
}

/* Technical facts only: prevent mono from making the whole dashboard feel like
 * a terminal. A fallback monospace family is always available. */
:is(.st-inline-report, body.domain-intelligence-page) #dns-rows .fact-value,
:is(.st-inline-report, body.domain-intelligence-page) #tls-rows .fact-value,
:is(.st-inline-report, body.domain-intelligence-page) #observed-time,
:is(.st-inline-report, body.domain-intelligence-page) .report-grid code {
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
:is(.st-inline-report, body.domain-intelligence-page) #dns-rows .fact-value,
:is(.st-inline-report, body.domain-intelligence-page) #tls-rows .fact-value {
  font-size: clamp(10.5px, .8vw, 11.5px);
}

/* Preserve the existing responsive grid. Mono values may not widen columns. */
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .fact-row,
:is(.st-inline-report, body.domain-intelligence-page) .report-grid .fact-row .fact-value {
  min-width: 0;
}
@media (max-width:700px) {
  :is(.st-inline-report, body.domain-intelligence-page) #dns-rows .fact-value,
  :is(.st-inline-report, body.domain-intelligence-page) #tls-rows .fact-value {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-public-theme] body.public-home.st-home-report-active .st-hero #home-domain-input {
    transition: none;
  }
}
