:root {
  color-scheme: light;
  --ink: #202e2d;
  --muted: #64716c;
  --paper: #f5f6f4;
  --panel: #fff;
  --line: #dce2dc;
  --accent: #225b4c;
  --accent-hover: #174638;
  --soft: #edf2ed;
  --gold: #7b5929;
  --red: #a43b36;
  --green: #225b4c;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 400 15px/1.6 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, textarea, select, input { font: inherit; }
button, select { cursor: pointer; }
button, a, textarea, select, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #3b8069; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: white; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: #fbfcfa; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-wordmark { font: 700 23px/1.2 'Space Grotesk', sans-serif; letter-spacing: -.8px; }
.brand-caption { display: block; margin-top: 3px; color: var(--muted); font: 400 11px/1.4 'DM Sans', sans-serif; letter-spacing: .1px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; }
.site-nav a { text-decoration: none; color: #52615b; padding-block: 12px; }
.site-nav a:hover, .text-link:hover, .footer-source:hover { color: var(--accent); }
.site-nav .nav-search { color: var(--ink); }
.site-nav .github-link { padding: 9px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.github-link span { margin-left: 12px; }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 70px; padding: 55px 0 38px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; margin-bottom: 17px; }
.eyebrow-line { width: 19px; height: 2px; background: #aa854a; }
h1 { font: 500 clamp(34px, 4vw, 52px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -2.6px; }
h1 span { color: var(--accent); }
.intro-description { color: var(--muted); max-width: 480px; font-size: 15px; line-height: 1.7; margin-top: 18px; }
.intro-aside { max-width: 330px; width: 100%; justify-self: end; border-left: 1px solid var(--line); padding-left: 30px; }
.aside-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 12px; }
.scope-row { display: flex; align-items: center; gap: 15px; padding: 8px 0; font-size: 13px; }
.scope-index { font: 500 11px 'Space Grotesk', sans-serif; color: var(--gold); }
.panel { border: 1px solid #d5ddd5; border-radius: var(--radius); background: var(--panel); box-shadow: 0 3px 5px #20362d03, 0 18px 45px -30px #20362d35; }
.scanner { padding: 28px 32px 0; }
.scanner-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-kicker { display: block; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: #536358; }
.scanner-head h2 { font: 500 24px/1.3 'Space Grotesk', sans-serif; letter-spacing: -.7px; margin-top: 5px; }
.live { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid #dce7df; border-radius: 6px; background: #f4f8f4; color: #436a52; font-size: 11px; white-space: nowrap; }
.query-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 30px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #38463e; }
textarea, select { width: 100%; border: 1px solid #cdd7cf; border-radius: 8px; background: #fbfcfa; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { height: 119px; min-height: 119px; max-height: 280px; padding: 13px 14px; resize: vertical; font-size: 15px; line-height: 1.6; }
textarea::placeholder { color: #69766b; }
select { height: 45px; padding: 0 32px 0 12px; font-size: 14px; }
textarea:hover, select:hover { border-color: #9eb2a4; }
textarea:focus, select:focus { outline: 0; border-color: #34715a; box-shadow: 0 0 0 3px #34715a19; }
textarea:disabled, select:disabled { opacity: .65; cursor: wait; }
.field-help, .scanner-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 6px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.season-field { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 22px 0; }
.history-control label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.history-control input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.history-control small { display: block; margin: 4px 0 0 27px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.history-control.is-disabled label { color: #79847d; cursor: default; }
.search-button { flex-shrink: 0; min-width: 205px; min-height: 47px; padding: 11px 24px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 2px 2px #1b403418; transition: background .15s; }
.search-button::after { content: '→'; margin-left: 16px; font-weight: 400; }
.search-button:hover:not(:disabled) { background: var(--accent-hover); }
.search-button:disabled { opacity: .65; cursor: wait; }
.search-footnote { margin: 0 -32px; padding: 12px 32px; border-top: 1px solid #e7ebe6; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #626f65; font-size: 11px; background: #fafcf9; border-radius: 0 0 var(--radius) var(--radius); }
kbd { font: inherit; padding: 1px 4px; border: 1px solid #dbe1d9; border-radius: 3px; background: white; }
.results-empty { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 30px 16px 38px; color: #52665a; }
.results-empty p { font-size: 13px; font-weight: 500; }
.results-empty span { display: block; font-size: 12px; color: #657169; font-weight: 400; margin-top: 2px; }
.results-empty svg { opacity: .55; }
.results-panel { margin: 25px 0 40px; padding: 25px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.results-context { font-size: 14px; font-weight: 500; margin-top: 7px; }
.status { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 10px; overflow-wrap: anywhere; }
.status:empty { display: none; }
.results-panel[aria-busy="true"] .status::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid #cddcd0; border-top-color: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: -2px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 12px; padding-top: 17px; border-top: 1px solid var(--line); }
.results-summary { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.copy-button { border: 1px solid #cbd8ce; border-radius: 6px; background: white; color: var(--accent); font-size: 12px; padding: 8px 12px; min-height: 40px; white-space: nowrap; }
.copy-button:hover { background: var(--soft); }
.results { display: none; flex-direction: column; gap: 8px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #e3e9e1; border-radius: 10px; background: #fafcf9; padding: 15px 18px; }
.result-card > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.result-name { display: block; font-size: 15px; font-weight: 600; }
.result-rank { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.result-stats { flex-shrink: 0; text-align: right; }
.result-mmr { display: block; font: 600 20px/1.3 'Space Grotesk', sans-serif; letter-spacing: -.5px; color: var(--accent); }
.result-error { display: block; font-size: 12px; color: var(--red); margin-top: 5px; }
.coverage { display: grid; grid-template-columns: 1fr 1.45fr; gap: 70px; background: #eaf0e9; border: 1px solid #dfe6dc; border-radius: var(--radius); padding: 36px; margin: 0 0 54px; }
.coverage h2 { font: 500 28px/1.2 'Space Grotesk', sans-serif; letter-spacing: -.9px; margin-top: 12px; }
.coverage-intro p { max-width: 320px; margin-top: 15px; font-size: 13px; color: #5c6b60; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: var(--accent); margin-top: 18px; font-size: 12px; font-weight: 600; text-decoration: none; }
.coverage-details { display: flex; flex-direction: column; gap: 21px; }
.coverage-details article { display: flex; gap: 17px; }
.detail-number { font: 500 11px 'Space Grotesk', sans-serif; padding-top: 3px; color: #596c54; }
.coverage-details h3 { font-size: 13px; font-weight: 600; }
.coverage-details p { color: #5c6b60; margin-top: 5px; font-size: 13px; line-height: 1.7; }
.resource-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 23px; }
.resource-heading h2 { font: 500 28px/1.2 'Space Grotesk', sans-serif; letter-spacing: -.8px; margin-top: 9px; }
.resource-heading p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.resource-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.resource-link { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; background: #fafbf9; transition: border-color .15s, background .15s; }
.resource-link:hover { border-color: #98b09f; background: white; }
.resource-kind { font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: #647168; }
.resource-link h3 { display: flex; align-items: center; gap: 9px; margin: 12px 0 9px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.resource-link p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.resource-name { min-width: 0; }
.resource-name > span { font-weight: 400; color: #65746a; }
.brand-icon { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; background: white; border: 1px solid #e5e9e1; border-radius: 6px; overflow: hidden; }
.brand-icon > span { font-size: 9px; font-weight: 700; color: var(--accent); }
.brand-icon img { position: absolute; width: 18px; height: 18px; inset: 4px; object-fit: contain; background: white; }
.support-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 23px 0; border-top: 1px solid var(--line); }
.support-copy { display: flex; gap: 15px; align-items: center; }
.support-symbol { font-size: 23px; filter: grayscale(1); opacity: .7; }
.support-panel h2 { font-size: 14px; font-weight: 600; }
.support-panel p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.support-link { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; color: var(--accent); font-size: 12px; font-weight: 600; padding: 10px 13px; border: 1px solid #cfd9cd; border-radius: 7px; white-space: nowrap; }
.support-link:hover { background: white; }
.support-link .brand-icon { width: 20px; height: 20px; flex-basis: 20px; border: 0; background: none; }
.support-link .brand-icon img { width: 18px; height: 18px; inset: 1px; background: var(--paper); }
.bottom-bar { display: grid; grid-template-columns: 1fr 2fr auto; gap: 35px; align-items: start; border-top: 1px solid var(--line); padding: 28px 0 34px; margin-top: 14px; }
.footer-brand { font: 700 16px 'Space Grotesk', sans-serif; letter-spacing: -.4px; text-decoration: none; }
.bottom-bar p { font-size: 11px; color: #626e65; line-height: 1.7; margin-top: 5px; }
.bottom-bar .disclaimer { margin: 0; max-width: 500px; }
.footer-source { text-decoration: none; color: #58695e; font-size: 11px; white-space: nowrap; padding-block: 5px; }
@media (min-width: 1500px) { .intro { padding-top: 65px; padding-bottom: 43px; } }
@media (max-width: 960px) {
  .intro { gap: 30px; grid-template-columns: 1.3fr 1fr; }
  h1 { font-size: 43px; letter-spacing: -1.8px; }
  .intro-aside { padding-left: 23px; }
  .scope-row { font-size: 12px; }
  .site-nav { gap: 19px; }
  .query-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .resource-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coverage { gap: 35px; padding: 30px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 77px; gap: 15px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand-wordmark { font-size: 20px; }
  .brand-caption { font-size: 9px; }
  .site-nav { gap: 16px; font-size: 12px; }
  .site-nav .nav-search, .site-nav .github-link { display: none; }
  .intro { display: block; padding: 32px 0 26px; }
  .intro-aside { display: none; }
  .eyebrow { font-size: 10px; margin-bottom: 13px; }
  h1 { font-size: 39px; letter-spacing: -1.8px; }
  .intro-description { margin-top: 13px; font-size: 14px; max-width: 500px; }
  .scanner { padding: 22px 22px 0; }
  .scanner-head { margin-bottom: 22px; gap: 12px; }
  .scanner-head h2 { font-size: 22px; }
  .live { font-size: 10px; padding: 5px 7px; }
  .query-grid { grid-template-columns: 1fr; gap: 18px; }
  textarea { min-height: 94px; height: 94px; font-size: 16px; }
  select { font-size: 16px; min-height: 46px; }
  .field-label, .field-help { font-size: 12px; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 19px; margin-top: 22px; }
  .history-control label { min-height: 25px; }
  .search-button { width: 100%; min-height: 49px; }
  .search-footnote { margin-inline: -22px; padding-inline: 22px; justify-content: center; font-size: 10px; }
  .keyboard-hint { display: none; }
  .results-empty { padding: 25px 5px 30px; justify-content: flex-start; gap: 10px; }
  .results-empty p { font-size: 12px; }
  .results-empty span { font-size: 11px; }
  .results-panel { padding: 22px 18px; margin-block: 20px 30px; }
  .result-card { padding: 13px 12px; gap: 12px; }
  .result-mmr { font-size: 18px; }
  .result-name { font-size: 14px; }
  .result-rank { font-size: 11px; }
  .coverage { grid-template-columns: 1fr; gap: 26px; padding: 26px; margin-bottom: 38px; }
  .coverage h2 { font-size: 26px; }
  .coverage h2 br { display: none; }
  .coverage-intro p { max-width: none; font-size: 13px; }
  .coverage-details p { font-size: 12px; }
  .coverage-details { gap: 20px; }
  .resource-heading { display: block; }
  .resource-heading h2 { font-size: 26px; max-width: 320px; }
  .resource-heading p { margin-top: 10px; }
  .resource-link { padding: 16px; }
  .resource-link h3 { font-size: 13px; }
  .support-panel { flex-direction: column; align-items: flex-start; gap: 18px; }
  .support-link { margin-left: 38px; }
  .bottom-bar { grid-template-columns: 1fr auto; gap: 18px; }
  .bottom-bar .disclaimer { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .site-nav { gap: 12px; font-size: 11px; }
  .brand-caption { display: none; }
  h1 { font-size: 34px; }
  .scanner { padding-inline: 18px; }

  .search-footnote { margin-inline: -18px; padding-inline: 18px; }
  .resource-link { padding: 13px; }
  .result-card { align-items: flex-start; }
  .result-mmr { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.status[data-state="error"], .status[data-state="seasons-error"] { padding: 12px 15px; border: 1px solid #ead9d6; border-radius: 8px; background: #fdf6f4; color: #933c32; }
textarea[aria-invalid="true"] { border-color: #b35e52; }
.result-card.is-missing { background: #faf9f7; }
.result-card.is-missing .result-mmr { color: #8b948e; }

@media (max-width: 359px) { .resource-list { grid-template-columns: 1fr; } .scanner-head { align-items: flex-start; flex-direction: column; gap: 10px; } }
@media (max-width: 720px) {
  .intro { padding: 24px 0 22px; }
  .eyebrow { margin-bottom: 10px; }
  .intro-description { margin-top: 10px; }
  .scanner { padding-top: 20px; }
  .scanner-head { margin-bottom: 18px; }
  textarea { min-height: 80px; height: 80px; }
  .query-grid { gap: 14px; }
  .controls { gap: 10px; }
  .form-actions { gap: 14px; margin-block: 18px; }
}
