:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #757575;
  --rule: #e5e5e5;
  --rule-soft: #f0f0f0;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-paid: #f7f4ee;
  --accent: #8a3a1a;
  --accent-soft: #c97c5e;
  --severity-informational: #757575;
  --severity-elevated: #b8651a;
  --severity-high: #a02020;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.nav {
  border-bottom: 1px solid var(--rule);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.nav-brand a { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.nav-meta { color: var(--ink-muted); }
.nav-meta a { color: var(--ink-muted); text-decoration: none; }
.nav-meta a:hover { color: var(--ink); }
.container { max-width: 740px; margin: 0 auto; padding: 0 20px; }
.crumbs {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 20px 0 8px;
}
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
header.playbook-head {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge {
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-soft);
}
.badge.severity-informational { border-color: var(--severity-informational); color: var(--severity-informational); }
.badge.severity-elevated { border-color: var(--severity-elevated); color: var(--severity-elevated); }
.badge.severity-high { border-color: var(--severity-high); color: var(--severity-high); }
h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.vehicle-line {
  font-size: 15px;
  color: var(--ink-soft);
}
.signals {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.signals h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.signals ul { list-style: none; }
.signals li {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}
.signals li:last-child { border-bottom: none; }
section.block {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
section.block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
section.block .subhead {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
ol.numbered, ul.bullet {
  padding-left: 0;
  list-style: none;
}
ol.numbered li, ul.bullet li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  font-size: 15px;
  line-height: 1.5;
}
ol.numbered li:last-child, ul.bullet li:last-child { border-bottom: none; }
ol.numbered { counter-reset: item; }
ol.numbered li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  width: 20px;
}
ul.bullet li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--ink-muted);
}
.expand-toggle {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  border-bottom: 1px dotted var(--ink-muted);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 1px 0;
  font-family: inherit;
}
.expand-toggle:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hidden { display: none; }
.email-template {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}
.email-template-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.email-template-head .meta {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.email-template-head .recipient {
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-soft);
}
.email-template-body { padding: 16px; }
.email-template .subject {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.email-template .body {
  font-size: 14px;
  color: var(--ink-soft);
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
.copy-btn {
  background: var(--ink);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { background: var(--ink-soft); }
.copy-btn.copied { background: var(--accent); }
.observational {
  background: var(--bg-paid);
  padding: 24px;
  margin: 28px 0;
  border-left: 3px solid var(--accent);
}
.observational h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.observational p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 14px;
}
.observational p:last-child { margin-bottom: 0; }
abbr {
  text-decoration: underline dotted;
  text-decoration-color: var(--ink-muted);
  text-underline-offset: 2px;
  cursor: help;
}
.glossary-expand {
  color: var(--ink-muted);
  font-size: 0.88em;
  font-style: italic;
}
.linked-recalls {
  padding: 12px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.linked-recalls a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
footer.disclaimer {
  margin-top: 40px;
  padding: 24px 0 60px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.cat-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.cat-block h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.pb-list { list-style: none; }
.pb-list li { border-bottom: 1px solid var(--rule-soft); }
.pb-list li:last-child { border-bottom: none; }
.pb-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}
.pb-list a:hover { color: var(--accent); }
.pb-vehicle { flex-grow: 1; font-weight: 500; }
.pb-year { color: var(--ink-muted); font-size: 13px; }
.pb-sev {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.pb-sev-elevated { color: var(--severity-elevated); border-color: var(--severity-elevated); }
.pb-sev-high { color: var(--severity-high); border-color: var(--severity-high); }
.filters {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 20px 0 24px;
}
.filter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 600;
}
.filter-select {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  min-width: 200px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23757575' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.filter-select:hover { border-color: var(--ink-muted); }
.filter-select:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.clear-link {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 8px 0;
  align-self: flex-end;
}
.clear-link:hover { color: var(--ink); }
.empty-state {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.link-button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}
.link-button:hover { color: var(--ink); }
.app-hero {
  padding: 40px 0 24px;
}
.app-hero h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.55;
}
.search-wrap {
  margin: 0 0 14px;
}
.search-input {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
}
.search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.search-input::placeholder {
  color: var(--ink-muted);
  font-size: 16px;
}
.search-hint {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hint-chip {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s, border-color 0.1s;
}
.hint-chip:hover {
  background: var(--bg);
  border-color: var(--ink-muted);
  color: var(--ink);
}
.results-meta {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 14px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.results-meta:empty { display: none; }
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results li {
  border-bottom: 1px solid var(--rule);
}
.search-results a {
  display: block;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
}
.search-results a:hover {
  background: var(--bg-soft);
  margin: 0 -16px;
  padding: 18px 16px;
  border-radius: 4px;
}
.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.result-vehicle {
  font-weight: 600;
  font-size: 16px;
}
.result-year {
  color: var(--ink-muted);
  font-size: 13px;
}
.result-category {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  text-transform: capitalize;
}
.result-snippets {
  margin-top: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--rule);
}
.snippet {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 3px 0;
}
mark {
  background: #fff3c7;
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
}
@media (max-width: 540px) {
  h1 { font-size: 22px; }
  .container { padding: 0 16px; }
  section.block { padding: 22px 0; }
  .pb-list a { flex-wrap: wrap; }
  .filters { gap: 10px; }
  .filter-select { width: 100%; min-width: 0; }
  .filter-label { width: 100%; }
  .app-hero { padding: 24px 0 16px; }
  .app-hero h1 { font-size: 24px; }
  .search-input { font-size: 16px; padding: 14px 16px; }
}
