/* ---- block 1 of 2 ---- */
:root {
    --ink: #1a1a1a;
    --paper: #ffffff;
    --accent: #c41e1e;
    --accent-dark: color-mix(in oklab, var(--accent) 82%, black);
    --accent-soft: color-mix(in oklab, var(--accent) 16%, white);
    --mid: #6b6560;
    --line: #e8e4de;
    --white: #ffffff;
    --code: #f5f5f5;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
  html { scroll-behavior: smooth; }
  a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
  a:hover { color: var(--accent-dark); text-decoration: underline; }

  /* Header */
  .site-header { background: var(--ink); color: var(--white); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
  .site-header .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .dealer-name { font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
  .dealer-name a { color: var(--white); }
  .dealer-name .brand-dot { color: var(--accent); }
  .header-meta { display: flex; gap: 20px; font-size: 13px; color: #aaa; flex-wrap: wrap; align-items: center; }
  .header-meta a { color: #ccc; }
  .header-meta a:hover { color: var(--white); text-decoration: none; }

  /* Sticky CTA button bar */
  .cta-strip { background: var(--accent); padding: 10px 0; position: sticky; top: 0; z-index: 99; }
  .cta-strip .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .cta-strip a {
    display: inline-block; background: #ffffff; color: var(--accent); font-weight: 700; font-size: 12.5px;
    letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 22px; border-radius: 3px; text-decoration: none;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
  }
  .cta-strip a:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); text-decoration: none; color: var(--accent); }
  .cta-strip a.outline { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; box-shadow: none; }
  .cta-strip a.outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); color: var(--white); }

  /* Hero */
  .hero {
    background: #141414;
    color: var(--white); padding: 18px 24px 8px; text-align: center; position: relative; overflow: hidden;
  }
  .hero h1 {
    font-family: var(--sans); font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em;
    max-width: 860px; margin: 0 auto 14px; position: relative;
  }
  .hero-sub { font-size: 16px; color: #ffffff; max-width: 640px; margin: 0 auto; line-height: 1.55; position: relative; font-weight: 400; }

  /* Main article layout */
  main { max-width: 840px; margin: 0 auto; padding: 1.5rem 24px 0.75rem; }
  main > article h1:first-child { display: none; }  /* avoid duplicating the hero H1 */
  article h1 { font-family: var(--sans); font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 2rem 0 1rem; }
  article h2 { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.005em; margin: 2.5rem 0 1rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); }
  article h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.5rem; }
  article h4 { font-size: 0.95rem; font-weight: 700; margin: 1.25rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
  article p { margin: 0 0 1.15rem; }
  article ul, article ol { padding-left: 1.4rem; margin: 0 0 1.15rem; }
  article li { margin-bottom: 0.4rem; }
  article strong { color: #000; font-weight: 700; }
  article blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.1rem; color: var(--ink); background: var(--accent-soft); }

  /* Table */
  article table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  article th, article td { padding: 0.8rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
  article th { background: var(--ink); color: var(--white); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
  article tr:last-child td { border-bottom: none; }
  article tr:nth-child(even) td { background: #fafafa; }
  /* Quick Facts: every DETAIL cell (2nd column) bold, incl. the MSRP range (Chad 2026-07-17) */
  article table.quick-facts td:nth-child(2) { font-weight: 700; color: #000; }

  /* Figures / photo pair — 6 images per generated page */
  article figure { margin: 1.75rem 0; }
  article figure img, .photo-pair img {
    width: 100%; height: auto; aspect-ratio: 1080 / 608; object-fit: cover;
    display: block; border-radius: 8px; background: #1a1a1a;
  }
  article figcaption, .photo-pair figcaption {
    font-size: 0.82rem; color: var(--mid); text-align: center;
    margin-top: 0.55rem; font-style: italic; padding: 0 0.5rem;
  }
  .photo-pair {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.5rem 0 2rem;
  }
  .photo-pair figure { margin: 0; }
  @media (max-width: 640px) {
    .photo-pair { grid-template-columns: 1fr; }
  }

  /* FAQ accordion */
  .faq-list { margin-top: 0.75rem; border-top: 1px solid var(--line); }
  .faq-list details { border-bottom: 1px solid var(--line); padding: 1.15rem 0.4rem; }
  .faq-list summary { cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after { content: "+"; font-size: 1.6rem; color: var(--mid); font-weight: 300; line-height: 1; flex-shrink: 0; }
  .faq-list details[open] summary::after { content: "−"; color: var(--accent); }
  .faq-list details[open] summary { margin-bottom: 0.85rem; }
  .faq-list details p { margin: 0 0 0.5rem; color: var(--ink); font-size: 0.95rem; line-height: 1.55; }
  .faq-list details p:last-child { margin-bottom: 0; }

  /* Internal-links chip bar */
  .internal-links { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 24px; }
  .internal-links-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
  .internal-links h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mid); margin: 0 0 18px; }
  .link-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .link-grid a { display: inline-block; font-size: 13px; font-weight: 600; padding: 9px 18px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); }
  .link-grid a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); text-decoration: none; }

  /* Bottom CTA bar */
  .cta-bar { background: var(--accent); color: var(--white); text-align: center; padding: 52px 24px; }
  .cta-bar h2 { font-family: var(--sans); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
  .cta-bar p { font-size: 16px; opacity: 0.92; margin: 0 0 28px; }
  .cta-btn { display: inline-block; background: var(--white); color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 32px; border-radius: 3px; margin: 0 6px 10px; transition: transform 0.15s, box-shadow 0.15s; }
  .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); text-decoration: none; color: var(--accent); }
  .cta-btn.outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
  .cta-btn.outline:hover { background: var(--white); color: var(--accent); }

  /* Footer */
  .site-footer { background: var(--accent); color: rgba(255,255,255,0.85); padding: 32px 24px; font-size: 13px; text-align: center; line-height: 1.75; }
  .site-footer a { color: rgba(255,255,255,0.9); }
  .site-footer .gen-meta { margin-top: 0.5rem; font-size: 11px; color: rgba(255,255,255,0.5); font-family: ui-monospace, monospace; }

  /* Responsive */
  @media (max-width: 768px) {
    .hero { padding: 28px 20px 12px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-sub { font-size: 15px; }
    .cta-strip .wrap { gap: 6px; padding: 0 12px; }
    .cta-strip a { padding: 9px 14px; font-size: 11.5px; letter-spacing: 0.04em; }
    main { padding: 1rem 18px 0.75rem; }
    article h2 { font-size: 1.5rem; }
    .cta-bar { padding: 36px 20px; }
    .cta-btn { display: block; max-width: 320px; margin: 6px auto; }
  }

/* ---- block 2 of 2 ---- */
:root { --accent: #EB0A1E; --sans: 'ToyotaType', 'Work Sans', Helvetica, Arial, sans-serif; }