:root {
  --red: #b80d0a;
  --red-dark: #7f0907;
  --ink: #241b18;
  --muted: #6d625e;
  --line: #e9e3df;
  --paper: #ffffff;
  --soft: #faf7f5;
  --shadow: 0 18px 55px rgba(72, 29, 20, 0.12);
}

* { box-sizing: border-box; }
html {
  color-scheme: only light;
  background: #ffffff;
}
html, body, main { background-color: #ffffff; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, textarea, input, select { font: inherit; color-scheme: light; }
button { cursor: pointer; }
.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; }

.hero {
  min-height: 760px;
  padding: 34px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}
.hero-art {
  width: min(820px, 92vw);
  max-height: 58vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 30px;
}

.ask-panel {
  width: min(920px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
}
.ask-panel label[for="question"] {
  display: block;
  margin: 0 0 11px 4px;
  font-size: 1.24rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}
.ask-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }
textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 2px solid #d8d0cc;
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fff;
  font-size: 1.06rem;
  line-height: 1.45;
}
textarea:focus { outline: 3px solid rgba(184,13,10,.15); border-color: var(--red); }
#askButton {
  min-width: 168px;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  background: var(--red);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(184,13,10,.22);
}
#askButton:hover { background: var(--red-dark); }
#askButton:disabled { opacity: .6; cursor: wait; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.examples button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(184,13,10,.13);
}
.examples button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}
.examples button:focus-visible {
  outline: 3px solid rgba(184,13,10,.20);
  outline-offset: 2px;
}
.hint { margin: 13px 4px 0; color: var(--muted); font-size: .88rem; }
.trivia-line {
  min-height: 1.5em;
  margin: 20px 4px 0;
  color: #17110f;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 1;
  transition: opacity .28s ease;
}
.trivia-line.is-changing { opacity: 0; }
.trivia-label {
  color: var(--red-dark);
  font-weight: 750;
}
@media (prefers-reduced-motion: reduce) {
  .trivia-line { transition: none; }
}

.result-section, .tools-section { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.result-section { padding: 0 0 58px; }
.result-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: white; box-shadow: 0 12px 36px rgba(38,24,20,.07); }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 850; }
.result-heading h2, .tools-section h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.2; }
.route-badge { white-space: nowrap; border: 1px solid #e3d8d4; background: var(--soft); border-radius: 999px; padding: 7px 10px; color: #675852; font-size: .8rem; }
.answer-wrap {
  margin-top: 2px;
  padding: 20px 22px 22px;
  border: 2px solid #d85a53;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7f5 0%, #fff1ee 100%);
  box-shadow: 0 10px 28px rgba(85, 31, 22, 0.085);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
}
.answer-dog-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 1px solid #efcbc6;
  padding-right: 14px;
}
.answer-dog {
  width: 124px;
  max-width: 100%;
  height: auto;
  display: block;
  transform: scaleX(-1);
  transform-origin: center;
  filter: drop-shadow(0 10px 14px rgba(73, 28, 20, 0.10));
}
.answer-content {
  min-width: 0;
}
.answer-label {
  margin: 0 0 10px;
  color: var(--red-dark);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .82rem;
  font-weight: 900;
}
.answer {
  color: #201714;
  font-size: clamp(1.28rem, 1.8vw, 1.52rem);
  font-weight: 700;
  line-height: 1.62;
  overflow-wrap: anywhere;
}
.answer strong { font-weight: 850; color: #170f0d; }
.answer em { font-weight: 650; }
.answer p { margin: 0 0 .8em; }
.answer p:last-child { margin-bottom: 0; }
.answer ul, .answer ol { margin: .5em 0 .8em; padding-left: 1.4em; }
.answer li { margin: .28em 0; }
.answer a.citation { margin-left: 3px; color: var(--red); font-size: .78em; font-weight: 800; text-decoration: none; vertical-align: super; }
.answer a.citation:hover { text-decoration: underline; }
.answer h3 {
  margin: 1.05em 0 .38em;
  color: #170f0d;
  font-size: 1.05em;
  line-height: 1.3;
  font-weight: 850;
}
.answer h3:first-child { margin-top: 0; }
.answer code {
  padding: .08em .28em;
  border-radius: 5px;
  background: rgba(184,13,10,.07);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .86em;
  font-weight: 650;
}
.answer-table-wrap {
  width: 100%;
  margin: .7em 0 1em;
  overflow-x: auto;
  border: 1px solid #e8c9c4;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.answer table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86em;
  line-height: 1.4;
}
.answer th, .answer td {
  padding: .58em .7em;
  border-bottom: 1px solid #eadbd6;
  text-align: left;
  vertical-align: top;
}
.answer th {
  background: #fff8f6;
  color: #5f1713;
  font-weight: 850;
}
.answer tbody tr:last-child td { border-bottom: 0; }
.error { color: #8c1711; background: #fff4f3; border: 1px solid #f1cac5; border-radius: 12px; padding: 12px 14px; }
.sources {
  margin-top: 20px;
  padding: 18px 20px 20px;
  border: 1px solid #eadbd6;
  border-radius: 18px;
  background: #fcfaf9;
}
.sources-heading { margin-bottom: 12px; }
.sources-eyebrow {
  margin: 0 0 3px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
}
.sources h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.source-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eee3df;
  border-radius: 12px;
  background: #fff;
}
.source-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff0ed;
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 900;
}
.source-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.source-title { color: #6e1a15; font-weight: 750; overflow-wrap: anywhere; text-decoration: none; }
a.source-title:hover { text-decoration: underline; }
.source-meta { color: var(--muted); font-size: .78rem; }

.tools-section { padding: 22px 0 72px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.tool-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--soft); display: flex; flex-direction: column; gap: 5px; }
.tool-grid span { color: var(--muted); font-size: .88rem; }
footer { border-top: 1px solid var(--line); padding: 26px max(24px, calc((100vw - 1040px)/2)); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }

@media (max-width: 720px) {
  .answer-wrap { padding: 16px 16px 18px; grid-template-columns: 1fr; gap: 10px; }
  .answer-dog-wrap { border-right: 0; border-bottom: 1px solid #efcbc6; padding-right: 0; padding-bottom: 10px; }
  .answer-dog { width: 104px; }
  .answer { font-size: 1.14rem; }
  .hero { min-height: auto; padding: 20px 14px 52px; }
  .hero-art { width: 96vw; max-height: none; margin-bottom: 22px; }
  .ask-panel { border-radius: 18px; padding: 15px; }
  .ask-row { grid-template-columns: 1fr; }
  #askButton { min-height: 54px; }
  .result-heading { flex-direction: column; }
  .tool-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

.app-status { margin: 10px 4px 0; font-size: .82rem; color: var(--muted); }
.app-status[data-kind="ready"] { color: #2f6b3b; }
.app-status[data-kind="working"] { color: #6d625e; }
.app-status[data-kind="error"] { color: #8c1711; font-weight: 650; }


/* Voluntary signup / member foundation */
.signup-section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 34px;
}
.signup-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 28px;
  background: var(--soft);
}
.signup-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}
.signup-copy > p:not(.eyebrow) {
  margin: 0;
  color: #4f4541;
  line-height: 1.55;
}
.signup-copy .signup-benefit-note {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: .88rem;
}
.signup-form label[for="signupEmail"] {
  display: block;
  margin: 0 0 8px 2px;
  font-weight: 800;
}
.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
#signupEmail {
  width: 100%;
  min-width: 0;
  border: 2px solid #d8d0cc;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
#signupEmail:focus {
  outline: 3px solid rgba(184,13,10,.15);
  border-color: var(--red);
}
#signupButton {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  min-height: 48px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}
#signupButton:hover { background: var(--red-dark); }
#signupButton:disabled { opacity: .62; cursor: wait; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.consent-row input {
  margin-top: 2px;
  accent-color: var(--red);
}
.signup-status {
  min-height: 1.35em;
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: .82rem;
}
.signup-status[data-kind="success"] { color: #2f6b3b; font-weight: 700; }
.signup-status[data-kind="error"] { color: #8c1711; font-weight: 700; }

@media (max-width: 720px) {
  .signup-section { width: min(100% - 28px, 1040px); padding-bottom: 28px; }
  .signup-card { grid-template-columns: 1fr; gap: 18px; padding: 20px 17px; }
  .signup-row { grid-template-columns: 1fr; }
  #signupButton { width: 100%; }
}

/* v2.5 structured vehicle-recall presentation */
.recall-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efcbc6;
}
.recall-summary strong {
  color: var(--red-dark);
  font-size: 1.05em;
}
.recall-summary span {
  color: #554743;
  font-size: .9em;
  font-weight: 700;
}
.recall-card-list {
  display: grid;
  gap: 16px;
}
.recall-card {
  border: 1px solid #dfb6ae;
  border-radius: 15px;
  padding: 17px 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(75, 31, 24, .045);
  font-size: .78em;
  font-weight: 500;
  line-height: 1.52;
}
.recall-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 7px;
}
.recall-index {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  font-weight: 900;
}
.recall-card h3 {
  margin: 0;
  color: #241815;
  font-size: 1.05rem;
  line-height: 1.28;
}
.campaign-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #e5c8c2;
  border-radius: 999px;
  background: #fff5f3;
  color: #7d201a;
  font-size: .68rem;
  font-weight: 850;
  white-space: nowrap;
}
.recall-date {
  margin: 0 0 12px !important;
  color: #6a5a55;
  font-size: .8rem;
}
.recall-detail {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #f0e3df;
}
.recall-detail h4 {
  margin: 0 0 4px;
  color: #5e1713;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.recall-detail p {
  margin: 0 !important;
  color: #302420;
  font-size: .88rem;
  font-weight: 520;
  line-height: 1.55;
}
.recall-detail.risk {
  border-left: 4px solid #c91b16;
  padding-left: 11px;
}
.recall-detail.remedy {
  border-left: 4px solid #6d8b56;
  padding-left: 11px;
}
.recall-detail.notes p { color: #5d514d; }
.recall-none {
  padding: 14px;
  border: 1px solid #e5d4cf;
  border-radius: 12px;
  background: #fff;
  color: #3c302c;
  font-size: .88em;
  font-weight: 600;
}
.vin-check-note {
  display: grid;
  gap: 6px;
  margin-top: 17px;
  padding: 14px 15px;
  border: 1px solid #d8c7c1;
  border-radius: 13px;
  background: #f9f6f4;
  font-size: .76em;
  font-weight: 520;
  line-height: 1.48;
}
.vin-check-note strong {
  color: #5e1713;
  font-size: .82rem;
}
.vin-check-note span { color: #403531; }
.vin-check-note a {
  width: fit-content;
  color: var(--red-dark);
  font-weight: 800;
}

.tool-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

@media (max-width: 720px) {
  .recall-card-head { flex-direction: column; gap: 8px; }
  .campaign-badge { white-space: normal; }
  .recall-card { padding: 14px; }
}

.footer-links a { color: var(--red-dark); font-weight: 700; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }

.tool-directory-link { margin: .35rem 0 1rem; }
.tool-directory-link a { color: #8d0a07; font-weight: 800; text-decoration: none; }
.tool-directory-link a:hover { text-decoration: underline; }
.tool-card-anchor { display: grid; gap: 3px; height: 100%; color: inherit; text-decoration: none; }
.tool-card-anchor:hover strong { color: #9f0b08; }


/* v0.3.1 above-the-fold tools and Cannoli navigation */
.hero {
  min-height: auto;
  padding: 18px 24px 38px;
  position: relative;
}
.hero-art {
  width: min(680px, 88vw);
  max-height: 42vh;
  margin-bottom: 16px;
}
.about-wienerdog-button {
  position: absolute;
  top: 22px;
  right: max(24px, calc((100vw - 1040px) / 2));
  z-index: 2;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--red);
  color: #fff;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(184,13,10,.16);
}
.about-wienerdog-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.ask-panel .tools-section {
  width: 100%;
  margin: 0;
  padding: 15px 0 0;
}
.ask-panel .tools-section > .eyebrow { display: none; }
.ask-panel .tools-section h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.ask-panel .tool-directory-link { margin: .3rem 0 .7rem; }
.ask-panel .tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.ask-panel .tool-grid article {
  min-height: 88px;
  padding: 18px;
  border-color: rgba(127, 9, 7, .55);
  background: rgba(184, 13, 10, .50);
  box-shadow: 0 5px 14px rgba(88, 20, 15, .08);
}
.ask-panel .tool-card-anchor { color: #321411; }
.ask-panel .tool-card-anchor strong { color: #321411; }
.ask-panel .tool-card-anchor span { color: #4c211d; }
.ask-panel .tool-card-anchor:hover strong { color: #6f0705; }
.public-brand-strip {
  width: min(1040px, calc(100% - 32px));
  margin: 18px auto 0;
  text-align: center;
}
.public-brand-strip img {
  width: min(340px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .ask-panel .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { padding-top: 14px; }
  .hero-art { width: 94vw; max-height: none; margin-bottom: 10px; }
  .about-wienerdog-button {
    position: static;
    margin: 0 auto 12px;
    display: inline-block;
  }
}
@media (max-width: 520px) {
  .ask-panel .tool-grid { grid-template-columns: 1fr; }
}


/* AWD_WIENERDOG_DIG_HOME_PROMO */
.home-game-promo{
  width:min(1040px,calc(100% - 32px));
  margin:26px auto 34px;
  padding:18px;
  display:grid;
  grid-template-columns:minmax(230px,.9fr) minmax(0,1.35fr);
  gap:22px;
  align-items:center;
  border:2px solid #b80d0a;
  border-radius:22px;
  background:linear-gradient(135deg,#fff8f6 0%,#ffffff 68%);
  box-shadow:0 12px 28px rgba(88,20,15,.12);
}
.home-game-thumb{
  position:relative;
  display:block;
  min-height:180px;
  overflow:hidden;
  border-radius:16px;
  border:1px solid #e4b4ad;
  background:#fff;
  text-decoration:none;
}
.home-game-thumb img{
  width:100%;
  height:100%;
  min-height:180px;
  display:block;
  object-fit:contain;
  padding:8px;
  box-sizing:border-box;
  background:#fff;
}
.home-game-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:1;
  padding:6px 10px;
  border-radius:999px;
  background:#b80d0a;
  color:#fff;
  font-size:.76rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  box-shadow:0 4px 10px rgba(88,20,15,.18);
}
.home-game-copy{min-width:0}
.home-game-eyebrow{
  margin:0 0 5px;
  color:#8f0b08;
  font-size:.8rem;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.home-game-copy h2{
  margin:0;
  color:#321411;
  font-size:clamp(1.55rem,3vw,2.15rem);
  line-height:1.1;
}
.home-game-copy>p:not(.home-game-eyebrow){
  margin:.7rem 0 1rem;
  color:#5b3833;
  font-size:1rem;
  line-height:1.5;
}
.home-game-actions{
  display:flex;
  gap:12px 16px;
  align-items:center;
  flex-wrap:wrap;
}
.home-game-play{
  display:inline-block;
  padding:11px 18px;
  border-radius:999px;
  background:#b80d0a;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 6px 14px rgba(88,20,15,.16);
}
.home-game-play:hover{background:#8f0b08;transform:translateY(-1px)}
.home-game-play:focus-visible,.home-game-thumb:focus-visible{outline:3px solid #321411;outline-offset:3px}
.home-game-actions span{color:#785650;font-size:.84rem;font-weight:700}
@media(max-width:720px){
  .home-game-promo{grid-template-columns:1fr;padding:14px;gap:15px;margin-top:20px}
  .home-game-thumb{min-height:150px}
  .home-game-thumb img{min-height:150px;max-height:230px}
  .home-game-copy{text-align:center;padding:0 4px 6px}
  .home-game-actions{justify-content:center}
}
