:root {
  color-scheme: only light;
  --red: #b80d0a;
  --red-dark: #760805;
  --ink: #241713;
  --muted: #6e5a53;
  --line: #eadbd6;
  --soft: #fff8f6;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; color: var(--ink); }
body { line-height: 1.5; }
a { color: var(--red-dark); }
button, input, textarea, select { font: inherit; color-scheme: light; }
button { cursor: pointer; }
.tool-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.tool-header { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center; margin-bottom: 24px; }
.tool-header > * { min-width: 0; }
.tool-logo { display: block; width: 190px; height: auto; }
.compact-ask { width: 100%; max-width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(72,32,26,.06); }
.compact-ask label { display: block; margin-bottom: 7px; font-weight: 800; font-size: .9rem; }
.compact-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.compact-row input, .tool-input { width: 100%; border: 1px solid #cdbdb7; border-radius: 10px; background: #fff; padding: 12px 13px; outline: none; }
.compact-row input:focus, .tool-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(184,13,10,.10); }
.primary-button, .compact-row button { border: 0; border-radius: 10px; background: var(--red); color: #fff; font-weight: 850; padding: 12px 18px; box-shadow: 0 5px 12px rgba(184,13,10,.18); }
.primary-button:hover, .compact-row button:hover { background: #9f0b08; }
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 11px 0 20px; font-size: .9rem; }
.tool-nav a { text-decoration: none; font-weight: 750; }
.tool-hero { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg,#fff 0%,#fffaf8 100%); padding: clamp(22px,4vw,42px); box-shadow: 0 18px 50px rgba(57,28,22,.06); }
.eyebrow { margin: 0 0 4px; color: var(--red); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 900; }
.tool-hero h1 { margin: 0; font-size: clamp(2rem,4.2vw,3.3rem); line-height: 1.03; letter-spacing: -.035em; }
.tool-hero .lede { max-width: 780px; color: var(--muted); font-size: 1.04rem; margin: 12px 0 0; }
.tool-form-card { margin-top: 28px; padding: 20px; border: 1px solid #e6d4cf; border-radius: 18px; background: #fff; }
.tool-form-card label { display: block; margin-bottom: 8px; font-weight: 850; }
.tool-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.tool-input { min-height: 52px; font-size: 1.08rem; }
.vin-input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 760; }
.form-note { margin: 9px 0 0; color: var(--muted); font-size: .86rem; }
.status { min-height: 1.35em; margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.status[data-kind="error"] { color: #9e1a14; font-weight: 700; }
.status[data-kind="working"] { color: #7b4b17; }
.result-panel, .compact-result { margin-top: 22px; border: 2px solid rgba(184,13,10,.65); border-radius: 18px; background: #fff7f5; overflow: hidden; }
.result-panel[hidden], .compact-result[hidden] { display: none; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 17px 19px 12px; border-bottom: 1px solid #edcdc7; }
.result-head h2 { margin: 0; font-size: 1.1rem; }
.result-badge { color: var(--red-dark); font-size: .76rem; font-weight: 850; }
.result-body { padding: 18px 19px 20px; font-size: 1rem; }
.result-body p { margin: 0 0 .85em; }
.result-body p:last-child { margin-bottom: 0; }
.result-body ul, .result-body ol { margin: .45em 0 1em 1.3em; padding: 0; }
.result-body li { margin: .32em 0; }
.result-body strong { color: #1e110e; }
.result-body code { background: rgba(184,13,10,.08); border-radius: 5px; padding: .1em .3em; }
.sources { padding: 0 19px 18px; }
.sources h3 { margin: 0 0 8px; font-size: .86rem; color: #5c2923; text-transform: uppercase; letter-spacing: .07em; }
.source-list { margin: 0; padding-left: 1.3em; }
.source-list li { margin: .3em 0; }
.source-list a { font-weight: 720; }
.recall-summary { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: baseline; margin-bottom: 14px; }
.recall-summary strong { font-size: 1.16rem; }
.recall-summary span { color: var(--muted); }
.recall-card-list { display: grid; gap: 14px; }
.recall-card { padding: 16px; border: 1px solid #e7c9c3; border-radius: 14px; background: #fff; }
.recall-card-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.recall-index { display: block; color: var(--red); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.recall-card h3 { margin: 3px 0 0; font-size: 1rem; }
.campaign-badge { white-space: nowrap; border-radius: 999px; background: #fff0ed; padding: 5px 9px; color: #7f0b08; font-size: .72rem; font-weight: 850; }
.recall-date { margin: 10px 0 0 !important; font-size: .86rem; color: var(--muted); }
.recall-detail { margin-top: 12px; }
.recall-detail h4 { margin: 0 0 3px; font-size: .79rem; text-transform: uppercase; letter-spacing: .06em; color: #5f2c26; }
.recall-detail p { margin: 0; }
.vin-check-note { display: grid; gap: 5px; margin-top: 15px; padding: 13px 14px; border-radius: 12px; background: #fff1ce; color: #493b18; font-size: .88rem; }
.vin-check-note a { width: fit-content; font-weight: 850; }
.tool-index-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.tool-index-card { display: block; min-height: 160px; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 10px 28px rgba(61,31,26,.05); }
.tool-index-card:hover { border-color: #d79a91; transform: translateY(-1px); }
.tool-index-card strong { display: block; margin-bottom: 8px; font-size: 1.18rem; }
.tool-index-card span { color: var(--muted); }
.tool-index-card .open { display: block; margin-top: 18px; color: var(--red); font-weight: 850; }
.compact-result { border-width: 1px; margin-top: 10px; }
.compact-result .result-body { font-size: .91rem; padding: 13px 14px; }
.tool-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding: 17px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: .79rem; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media (max-width: 720px) {
  .tool-shell { width: min(100% - 20px,1120px); padding-top: 12px; }
  .tool-header { grid-template-columns: 1fr !important; gap: 12px !important; }
  .tool-logo { width: 150px; margin: 0 auto; }
  .compact-row, .tool-input-row { grid-template-columns: 1fr; }
  .tool-index-grid { grid-template-columns: 1fr; }
  .recall-card-head { display: grid; }
  .campaign-badge { width: fit-content; }
}


/* v0.3.1: approved full WienerDog identity on every tool page */
.tool-header { grid-template-columns: minmax(280px, 340px) 1fr; gap: 24px; }
.tool-logo {
  width: min(320px, 100%);
  max-height: 245px;
  object-fit: contain;
}
@media (max-width: 720px) {
  .tool-logo { width: min(300px, 90vw); max-height: none; margin: 0 auto; }
}
