/* Shared by both pages. All fonts and graphics load without external requests. */
:root {
  color-scheme: light;
  --ink: #202b25;
  --muted: #647067;
  --line: #dfe5dc;
  --panel: #fff;
  --ground: #f7f9f6;
  --accent: #246449;
  --accent-dark: #174d3c;
  --accent-soft: #eaf1e6;
  --breaking: #a53c36;
  --deprecated: #926015;
  --risk: #7353a1;
  --informational: #326990;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #d5e9c8; color: #173925; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { min-height: 48px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #568a39; outline-offset: 4px; }
svg { display: block; flex-shrink: 0; width: 20px; height: 20px; }
code, pre { font-family: var(--mono); }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px 20px; z-index: 10; background: var(--accent-dark); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Navigation */
.site { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 24px; letter-spacing: -1.2px; font-weight: 750; text-decoration: none; }
.brand-mark { width: 33px; height: 33px; margin-right: 10px; color: var(--accent); }
.brand-dot, .footer-brand span { color: var(--accent); }
.site nav { display: flex; align-items: center; gap: 30px; }
.site nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.site nav a:hover, .site nav a[aria-current] { color: var(--accent-dark); }
.site nav a[aria-current] { position: relative; }
.site nav a[aria-current]::after { content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--accent); }
.source-link { gap: 8px; }

/* Introduction */
.intro { padding: 50px 0 35px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: 1.1px; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4b7950; box-shadow: 0 0 0 4px #e7efdf; }
h1 { margin: 0; font-size: clamp(40px, 4.9vw, 56px); line-height: 1.12; letter-spacing: -2.7px; font-weight: 650; }
h1 > span { color: var(--accent); }
.lede { max-width: 680px; margin: 23px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.intro-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 23px; color: #59665a; font-size: 12px; }
.intro-notes span { display: flex; align-items: center; gap: 7px; }
.intro-notes span::before { content: "✓"; color: var(--accent); font-weight: 650; }

/* The scanner */
.scanner-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 45px; }
.scan-panel { min-width: 0; padding: 29px 30px 0; background: var(--panel); border: 1px solid #d7dfd2; border-radius: 16px; box-shadow: 0 4px 6px #243b2203, 0 12px 30px #243b2205; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 27px; }
.panel-heading h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.5px; font-weight: 620; margin: 0; }
.quiet-tag { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.field { min-width: 0; }
label { display: block; margin-bottom: 9px; color: #465148; font-size: 12px; font-weight: 600; }
input, select { width: 100%; min-width: 0; color: var(--ink); background: #fff; border: 1px solid #d3dbd0; border-radius: 7px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: #a7b9a1; }
input:focus, select:focus { border-color: var(--accent); }
input { padding: 12px 14px; font-size: 16px; }
input::placeholder { color: #879086; }
.repository-input { position: relative; }
.repository-input input { padding-left: 43px; }
.repository-input svg { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; color: #798673; pointer-events: none; }
.field-hint { color: var(--muted); margin: 8px 0 0; font-size: 11px; line-height: 1.6; }
.field-hint code { font-size: 10px; }
.sample-repositories { margin-top: 14px; color: var(--muted); font-size: 10px; }
#samples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
button.chip { min-height: 30px; max-width: 100%; padding: 5px 8px; border: 1px solid #e1e7dc; border-radius: 5px; background: #f6f8f3; color: #52664b; font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; text-align: left; }
button.chip:hover { background: #eaf1e3; border-color: #b7c8ab; }
.version-range { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: end; column-gap: 9px; margin-top: 24px; }
.range-arrow { display: grid; place-items: center; height: 48px; color: #7a8973; font-size: 22px; }
select { appearance: none; padding: 10px 38px 10px 14px; font-family: var(--mono); font-size: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23647067' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
select option:disabled { color: #959b94; }
.form-actions { display: flex; gap: 12px; margin: 25px 0 24px; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; padding: 12px 18px; background: var(--accent-dark); color: white; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
button:hover { background: #25644a; }
button:active { transform: translateY(1px); }
#submit { flex: 1; justify-content: space-between; }
.button-arrow { font-size: 20px; line-height: 1; font-weight: 400; }
button.secondary { background: #fff; color: #4c5e4f; border-color: var(--line); }
button.secondary:hover { background: var(--ground); border-color: #bbcbb4; }
button.secondary svg { width: 16px; height: 16px; }
/* `wait` claims the whole interface is frozen. It is not: during a scan the
   page still scrolls, the status line still updates, and the links still work.
   A disabled control is simply unavailable, which is what `not-allowed` says. */
button:disabled { opacity: .65; cursor: not-allowed; }
input:disabled, select:disabled { background-color: var(--ground); opacity: .7; cursor: not-allowed; }
.panel-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin-inline: -30px; padding: 15px 22px; border-top: 1px solid #e8ede4; border-radius: 0 0 16px 16px; color: #6b7766; background: #fafbf8; font-size: 10px; }
.panel-footnote svg { width: 16px; height: 16px; color: #628352; }

/* An illustrative example, distinct from scan results */
.scan-preview { min-width: 0; padding: 12px 0; }
.scan-preview > .eyebrow { margin-bottom: 15px; font-size: 10px; letter-spacing: .8px; color: #6b7868; }
.code-window { overflow: hidden; background: #222e28; border: 1px solid #2b3b30; border-radius: 10px; color: #e3eadf; box-shadow: 0 10px 24px #253b2310; }
.code-window-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; background: #29372f; border-bottom: 1px solid #3b493e; }
.code-file { font-family: var(--mono); font-size: 11px; }
.example-tag { color: #a6b3a1; font-size: 9px; }
.code-window pre { overflow-x: auto; margin: 0; padding: 25px 17px 27px; font-size: 12px; line-height: 2.1; }
.code-muted { color: #83947e; }
.code-keyword { color: #b6d694; }
.code-highlight { color: #eccc86; text-decoration: underline wavy #bf9b50; text-underline-offset: 6px; }
.code-annotation { display: flex; gap: 11px; align-items: flex-start; padding: 17px; border-top: 1px solid #495142; background: #303a2d; }
.annotation-icon { display: grid; place-items: center; flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: #e4c686; border: 1px solid #ae965e; border-radius: 50%; font-family: var(--mono); font-size: 11px; }
.code-annotation strong { display: block; color: #e4c686; font-size: 11px; font-weight: 550; }
.code-annotation p { color: #b8c1ac; margin: 3px 0 0; font-size: 10px; }
.preview-caption { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; }
.caption-line { width: 22px; margin-top: 10px; border-top: 1px solid #a8b897; flex-shrink: 0; }
.preview-caption p { margin: 0; color: #445340; font-size: 12px; line-height: 1.8; }
.preview-caption p span { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--accent); font-size: 12px; font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.scan-preview .text-link { margin-left: 34px; }
.runtime-note { max-width: 640px; margin: 15px 0 0; color: var(--muted); font-size: 11px; }

/* Loading, errors and reports */
#status, #error, .notice { padding: 14px 16px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--ground); font-size: 13px; overflow-wrap: anywhere; }
#status { display: flex; align-items: center; gap: 12px; color: var(--accent); }
body.busy #status::before { content: ""; width: 15px; height: 15px; flex-shrink: 0; border: 2px solid #d3dfca; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
#error { background: #fff5f2; color: var(--breaking); border-color: #ecc9c1; }
.notice { margin-top: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { margin: -12px 0 22px; }
.progress progress { display: block; width: 100%; height: 6px; accent-color: var(--accent); }
.progress-detail { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.report-region { margin-top: 56px; padding-top: 33px; border-top: 1px solid var(--line); }
.results-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 27px; }
.results-heading .eyebrow { margin-bottom: 5px; }
.results-heading h2 { margin: 0; font-size: 30px; letter-spacing: -1px; line-height: 1.3; font-weight: 600; }
.download-link { display: inline-flex; align-items: center; gap: 16px; padding: 10px 15px; border: 1px solid #cbd8c4; border-radius: 7px; background: var(--panel); color: var(--accent); font-size: 12px; font-weight: 550; text-decoration: none; }
.download-link:hover { background: var(--accent-soft); }
.report { min-width: 0; }
.report-head h2 { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 11px; margin: 5px 0 0; overflow-wrap: anywhere; }
.counts { display: flex; gap: 12px; flex-wrap: wrap; margin: 23px 0 28px; }
.count { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.count-number { font-size: 28px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.count-label { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.count-breaking { background: #fcf4f1; border-color: #eedbd4; }
.count-deprecated { background: #faf6e9; border-color: #e9dfc2; }
.count-breaking .count-number { color: var(--breaking); }
.count-deprecated .count-number { color: var(--deprecated); }
.count-risk .count-number { color: var(--risk); }
.count-informational .count-number { color: var(--informational); }
.incomplete { border: 1px solid #dbc78a; border-left: 3px solid var(--deprecated); border-radius: 7px; padding: 18px 22px; background: #fffbef; font-size: 13px; overflow-wrap: anywhere; }
.incomplete h3 { margin: 0; font-size: 15px; color: var(--deprecated); }
.incomplete p { margin: 6px 0; }
.incomplete ul { margin: 8px 0 0; padding-left: 20px; }
.group { margin-top: 31px; }
.group h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 13px; font-weight: 600; color: #4e604b; }
.group h3::before { content: ""; width: 7px; height: 7px; background: #809870; border-radius: 50%; flex-shrink: 0; }
.group h3::after { content: ""; height: 1px; flex: 1; background: var(--line); }
ul.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.finding { border: 1px solid var(--line); border-radius: 10px; padding: 22px 25px; background: var(--panel); font-size: 13px; overflow-wrap: anywhere; }
.finding-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rule { font-family: var(--mono); font-size: 10px; color: #71806b; }
.subject { font-size: 13px; color: var(--ink); }
.badge { font-size: 9px; font-weight: 550; text-transform: uppercase; letter-spacing: .4px; padding: 3px 7px; border-radius: 4px; background: var(--ground); border: 1px solid var(--line); }
.impact-breaking { color: var(--breaking); background: #fcf0ed; border-color: #f0d5cd; }
.impact-deprecated { color: var(--deprecated); background: #fbf6e7; border-color: #e9dfbe; }
.impact-risk { color: var(--risk); }
.impact-informational { color: var(--informational); }
.finding-title { margin: 11px 0 0; font-weight: 550; }
.location, .scope { margin: 7px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.remediation { margin: 14px 0 0; color: #586453; }
.doc-link { font-size: 12px; color: var(--accent); }
.finding > p:has(.doc-link) { margin: 9px 0; }
.timeline { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
.sources { margin: 0 0 9px; padding-left: 18px; font-size: 12px; }
.sources li { margin: 3px 0; }
.source-link { color: var(--muted); }
.source-link:hover { color: var(--accent); }
.count-empty { margin: 0; color: var(--accent); font-weight: 550; }
.empty { font-size: 14px; color: var(--muted); }

/* Supporting content */
.how-it-works { margin-top: 64px; padding: 29px 0 0; border-top: 1px solid var(--line); }
.how-it-works > h2 { margin: 0 0 25px; font-size: 15px; font-weight: 550; letter-spacing: -.2px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 35px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; }
.step-number { padding-top: 1px; color: #7c8b6e; font-family: var(--mono); font-size: 11px; }
.steps h3 { margin: 0 0 5px; font-size: 12px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 65px; padding-block: 25px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-brand { font-size: 16px; font-weight: 650; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.site-footer p { margin: 3px 0 0; }
.site-footer a:not(.footer-brand) { color: #56654e; }
.footer-details { text-align: right; }
#pins { font-family: var(--mono); font-size: 9px; color: #74806c; }

/* About page */
.about-intro { padding-bottom: 48px; }
.about-intro .lede { max-width: 680px; }
.about-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 65px; padding-top: 40px; border-top: 1px solid var(--line); }
.contents { align-self: start; position: sticky; top: 30px; }
.contents .eyebrow { margin-bottom: 12px; }
.contents a { display: block; padding: 9px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.contents a:hover { color: var(--accent); }
.prose { max-width: 710px; font-size: 15px; color: #53614f; }
.prose section + section { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.prose h2 { color: var(--ink); font-size: 23px; letter-spacing: -.6px; line-height: 1.3; font-weight: 600; margin: 0 0 15px; }
.prose p { margin: 12px 0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 9px 0; padding-left: 4px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-size: .85em; overflow-wrap: anywhere; }
.prose .terminal { margin-top: 18px; padding: 20px 24px; border-radius: 9px; background: #222e28; color: #e3eadf; font-size: 13px; line-height: 2; overflow-x: auto; }
.terminal span { color: #b6d694; }

@media (min-width: 1440px) {
  .intro { padding-top: 56px; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .scanner-layout { gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .scan-panel { padding: 24px 22px 0; }
  .panel-footnote { margin-inline: -22px; }
  .form-actions { flex-direction: column; }
  #submit { justify-content: center; }
  .code-window pre { font-size: 11px; padding-inline: 12px; }
  .about-layout { gap: 35px; grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site { min-height: 82px; }
  .intro { padding-top: 42px; }
  h1 { font-size: clamp(36px, 6.5vw, 50px); letter-spacing: -1.8px; }
  .lede { font-size: 16px; }
  .scanner-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scan-panel { padding: 26px 26px 0; }
  .form-actions { flex-direction: row; }
  .panel-footnote { margin-inline: -26px; }
  .scan-preview { max-width: 480px; margin-inline: auto; width: 100%; padding-top: 8px; }
  .code-window pre { font-size: 12px; padding-inline: 20px; }
  .runtime-note { max-width: none; margin-top: 24px; }
  .steps { gap: 25px; grid-template-columns: minmax(0, 1fr); }
  .steps h3 { font-size: 13px; }
  .steps p { font-size: 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-details { text-align: left; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contents { position: static; display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .contents .eyebrow { width: 100%; margin-bottom: 0; }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 36px); }
  .site { gap: 12px; min-height: 76px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 25px; height: 25px; margin-right: 6px; }
  .site nav { gap: 16px; }
  .site nav a { font-size: 12px; }
  .source-link span { display: none; }
  .intro { padding: 35px 0 30px; }
  .intro > .eyebrow { font-size: 8px; letter-spacing: .6px; }
  h1 { font-size: 36px; letter-spacing: -1.9px; }
  .lede { font-size: 14px; line-height: 1.8; margin-top: 20px; }
  .intro-notes { gap: 8px 13px; font-size: 10px; }
  .scan-panel { padding: 22px 18px 0; }
  .panel-heading { gap: 8px; margin-bottom: 23px; }
  .panel-heading h2 { font-size: 17px; }
  .quiet-tag { font-size: 8px; padding-inline: 6px; }
  .version-range { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 5px; }
  .version-range label { font-size: 11px; }
  .range-arrow { font-size: 18px; }
  .form-actions { flex-direction: column; gap: 10px; }
  .panel-footnote { margin-inline: -18px; padding: 14px; font-size: 9px; }
  .code-window pre { font-size: 11px; padding-inline: 13px; }
  .how-it-works { margin-top: 42px; }
  .results-heading { align-items: flex-start; }
  .download-link { font-size: 11px; }
  .count { padding: 12px 15px; }
  .finding { padding: 18px; }
  .subject { flex-basis: 100%; font-size: 12px; }
  .group h3 { font-size: 11px; }
  #pins { font-size: 8px; }
  .site-footer { margin-top: 40px; }
}
@media (max-width: 360px) {
  .site nav { gap: 11px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 22px; height: 22px; margin-right: 4px; }
  h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
