.example-record {
  --brand: #174a2e;
  --brand-soft: #e7eee7;
  --paper: #f7f5ef;
  --ink: #26313a;
  --muted: #5d676e;
  --line: #d6ddd7;
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

.example-record h1,
.example-record h2,
.example-record h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #182128;
}

.example-record h1 { font-size: clamp(2.1rem, 4.7vw, 3.4rem); line-height: 1.07; }
.example-record h1 span { display: block; color: var(--brand); }
.example-record h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.example-record h3 { font-size: 1.25rem; line-height: 1.25; }
.example-record h4 { color: var(--brand); }
.example-record a { text-underline-offset: .18em; }
.example-record a:focus-visible,
.example-record button:focus-visible,
.example-record summary:focus-visible,
.example-record [tabindex]:focus-visible { outline: 3px solid #b78b25; outline-offset: 4px; }
.example-record button { font: inherit; cursor: pointer; }
.example-record [hidden] { display: none !important; }
.example-record .skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: white; color: var(--brand); font-weight: 700; border: 2px solid var(--brand); border-radius: 6px; }
.example-record .skip-link:focus { top: 12px; }
.example-record .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.record-topbar { background: #103620; color: white; border-bottom: 3px solid #b78b25; }
.record-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.record-topbar a { color: white; text-decoration: none; }
.record-brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.record-brand span { display: block; margin-top: 3px; font-family: "Segoe UI", sans-serif; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.back-link { font-size: .9rem; font-weight: 650; white-space: nowrap; }
.record-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.record-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand); border-radius: 8px; padding: 10px 14px; background: var(--brand); color: white !important; text-decoration: none; font-size: .84rem; font-weight: 700; line-height: 1.4; }
.record-button:hover { background: #103620; }
.record-button-secondary { background: white; color: var(--brand) !important; }
.record-button-secondary:hover { background: var(--brand-soft); }
.hero-layout { display: grid; grid-template-columns: 1fr 295px; align-items: center; gap: 28px; }
.vehicle-year { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px; }
.example-record .vehicle-subtitle { margin-top: 14px; font-size: 1rem; }
.condition-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 700; margin: 18px 0 0; }
.condition-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.odometer-card { display: flex; flex-direction: column; align-items: flex-start; border-left: 3px solid #b78b25; padding: 20px 22px; background: #f7f5ef; border-radius: 0 10px 10px 0; }
.odometer-card > strong { color: var(--brand); font-size: 2.3rem; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 8px 0; letter-spacing: -.045em; white-space: nowrap; }
.odometer-card small { font-size: 1rem; letter-spacing: 0; }
.odometer-card > span:not(.meta-label) { color: var(--muted); font-size: .8rem; }
.odometer-card .odometer-footnote { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); font-size: .7rem !important; }
.example-note { color: var(--muted); margin: 14px 0 0; font-size: .75rem; }
.example-record .vehicle-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.example-record .vehicle-meta dd { font-size: .88rem; line-height: 1.45; }
.example-record .jump-nav { background: rgba(247,245,239,.97); padding: 13px 0; }
.example-record .jump-nav a { padding: 8px 12px; }
.example-record section[id] { scroll-margin-top: 74px; }
.example-record .section-heading { gap: 14px; }
.example-record .section-heading .eyebrow { margin-bottom: 7px; }
.section-date { color: var(--muted); font-size: .77rem; margin: 0; white-space: nowrap; }
.example-record .status-card { padding: 16px; }
.example-record .status-card strong { font-size: 1rem; line-height: 1.4; }
.example-record .card-note { font-size: .81rem; line-height: 1.55; margin-top: 7px; }
.status-card-next { border-top: 3px solid #b78b25 !important; padding-top: 14px !important; }
.example-record .summary-note { font-size: .92rem; }
.example-record .summary-note strong { display: block; margin-bottom: 4px; }
.recommendation-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.recommendation-title h3 { margin: 0; }
.priority-tag { font-size: .65rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; padding: 4px 7px; border-radius: 4px; background: #f3e9cf; color: #715219; flex: 0 0 auto; }
.priority-monitor { color: #715219; background: #f5f0e5; }
.priority-complete { background: var(--brand-soft); color: var(--brand); }
.recommendation-plan { border-left: 3px solid #b78b25 !important; }
.example-record .recommendation-summary { font-size: .92rem; line-height: 1.6; }
.example-record .recommendation-due { line-height: 1.5; }
.next-service-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #103620; border-radius: 9px; color: white; padding: 18px 22px; margin-bottom: 18px; }
.next-service-strip .meta-label { color: #c7d4cb; }
.next-service-strip strong { display: block; font-size: 1.2rem; margin-top: 4px; line-height: 1.4; }
.next-service-strip strong span { font-size: .88rem; font-weight: 500; color: #e1e8e2; }
.miles-remaining { font-size: .77rem; color: #e1e8e2; text-align: right; }
.schedule-explainer, .schedule-footnote { font-size: .87rem; color: var(--muted); }
.service-schedule th, .service-schedule td { font-size: .84rem; }
.service-schedule tbody th { width: 29%; }
.service-schedule td span { color: var(--muted); font-size: .77rem; }
.schedule-next { background: #f4f7f1; }
.schedule-next td strong { color: var(--brand); }
.schedule-footnote { padding: 14px 16px; border-left: 2px solid #b78b25; margin-top: 18px; background: #faf8f1; }
.inspection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.inspection-card { padding: 18px 16px; background: #f8faf6; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 8px; }
.inspection-label { display: block; font-size: .67rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; margin-bottom: 9px; }
.inspection-card h3 { font-size: 1.1rem; }
.inspection-card p { font-size: .8rem; color: var(--muted); margin: 0 0 13px; line-height: 1.55; }
.inspection-state { font-size: .68rem; font-weight: 800; color: var(--brand); }
.inspection-card-monitor { border-top-color: #b78b25; background: #faf8f1; }
.inspection-card-monitor .inspection-state { color: #715219; }
.baseline-details { border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; overflow: hidden; }
.baseline-details summary { background: #f6f8f3; }
.baseline-details .details-body { padding-top: 6px; }
.measurement-context { font-size: .8rem; color: var(--muted); margin: 6px 0 14px; }
.diagnostic-table { min-width: 660px; }
.diagnostic-table tbody th { width: 31%; }
.diagnostic-table td, .diagnostic-table th, .wheel-table td, .wheel-table th { font-size: .8rem; }
.diagnostic-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.measurement-notes { font-size: .85rem; margin-top: 16px; }
.measurement-notes li { margin-bottom: 7px; }
.history-toggle { padding: 7px 10px; border: 1px solid var(--line); background: white; color: var(--brand); border-radius: 6px; font-size: .75rem !important; font-weight: 700; line-height: 1.4; }
.history-toggle:hover { background: var(--brand-soft); }
.example-record .visit-header { align-items: flex-start; }
.example-record .visit-header h3 { margin-bottom: 0; line-height: 1.25; }
.example-record .visit-header time { font-size: .77rem; }
.example-record .visit-mileage { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .85rem; }
.visit-summary { padding: 0 22px; font-size: .89rem; color: var(--muted); margin-bottom: 18px; }
.example-record .visit-grid li { font-size: .84rem; line-height: 1.6; margin-bottom: 6px; }
.example-record .visit-grid h4 { margin-bottom: 8px; font-size: .84rem; text-transform: uppercase; letter-spacing: .035em; color: var(--muted); }
.example-record .details-body p { font-size: .86rem; line-height: 1.6; }
.record-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin-top: 24px; border-radius: 14px; background: var(--brand-soft); }
.record-contact h2 { font-size: 1.6rem; }
.record-contact p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.record-contact .record-button { flex: 0 0 auto; }
.example-record .page-footer { margin-top: 25px; }
.example-record .page-footer p { margin: 4px 0 0; font-size: .75rem; }

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr 265px; gap: 20px; }
  .odometer-card { padding: 17px; }
  .odometer-card > strong { font-size: 2.1rem; }
  .inspection-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .example-record .brand-row { flex-direction: row; flex-wrap: wrap; gap: 14px; margin-bottom: 25px; }
  .hero-layout { grid-template-columns: 1fr; }
  .odometer-card { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; padding: 15px 18px; }
  .odometer-card .meta-label { width: 100%; }
  .odometer-card > strong { margin: 3px 0; }
  .odometer-card .odometer-footnote { width: 100%; margin-top: 5px; padding-top: 7px; }
  .example-record .vehicle-meta { grid-template-columns: 1fr 1fr; }
  .recommendation-title { display: block; }
  .recommendation-title h3 { margin-top: 9px; }
  .next-service-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .next-service-strip strong span { display: block; }
  .miles-remaining { text-align: left; }
  .example-record .section-heading { align-items: flex-start; }
  .record-contact { flex-direction: column; align-items: flex-start; padding: 22px; }
  .visit-summary { padding: 0 18px; }
}

@media (max-width: 520px) {
  .example-record .vehicle-meta { grid-template-columns: 1fr; }
  .inspection-grid { grid-template-columns: 1fr; }
  .example-record .visit-header { flex-direction: column; gap: 10px; }
  .example-record .jump-nav { flex-wrap: nowrap; overflow-x: auto; }
  .example-record .jump-nav a { white-space: nowrap; }
  .example-record .section { padding: 18px; }
  .record-actions { width: 100%; }
  .record-actions .record-button { flex: 1; }
  .example-record .page-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { .example-record { scroll-behavior: auto; } html { scroll-behavior: auto; } }

@media print {
  .record-topbar, .record-actions, .skip-link, .history-toggle, .record-contact { display: none !important; }
  .example-record { font-size: 9pt; line-height: 1.32; }
  .example-record h1 { font-size: 25pt; }
  .example-record h2 { font-size: 16pt; }
  .example-record h3 { font-size: 11pt; }
  .hero-layout { grid-template-columns: 1fr 170pt; gap: 12pt; }
  .odometer-card { padding: 8pt 10pt; border-left-width: 2pt; }
  .odometer-card > strong { font-size: 22pt; margin: 4pt 0; }
  .odometer-card small { font-size: 9pt; }
  .odometer-card > span:not(.meta-label) { font-size: 7pt; }
  .odometer-card .odometer-footnote { font-size: 6.5pt !important; padding-top: 5pt; margin-top: 6pt; }
  .vehicle-year { font-size: 7pt; margin-bottom: 5pt; }
  .example-record .vehicle-subtitle { font-size: 8pt; margin-top: 7pt; }
  .condition-badge { font-size: 7pt; margin-top: 8pt; padding: 3pt 5pt; }
  .example-record .vehicle-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .example-record .vehicle-meta dd { font-size: 7.5pt; }
  .example-note { font-size: 6.5pt; margin-top: 6pt; }
  .example-record .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .example-record .status-card { padding: 7pt; }
  .example-record .status-card strong { font-size: 8.5pt; }
  .example-record .card-note { font-size: 7pt; margin-top: 4pt; }
  .section-date { font-size: 7pt; }
  .example-record .summary-note { font-size: 8pt; }
  .recommendation-title { gap: 7pt; }
  .priority-tag { font-size: 6pt; padding: 2pt 4pt; }
  .example-record .recommendation-summary { font-size: 8pt; }
  .next-service-strip { padding: 9pt 12pt; margin-bottom: 8pt; }
  .next-service-strip strong { font-size: 11pt; }
  .next-service-strip strong span { font-size: 8pt; }
  .miles-remaining { font-size: 7pt; }
  .schedule-explainer, .schedule-footnote { font-size: 7.5pt; }
  .schedule-footnote { padding: 6pt 8pt; margin-top: 8pt; }
  .service-schedule th, .service-schedule td { font-size: 7.2pt; padding: 5pt 4pt; }
  .service-schedule td span { font-size: 6.5pt; }
  .inspection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6pt; margin-bottom: 9pt; }
  .inspection-card { padding: 8pt; border-radius: 0; break-inside: avoid; }
  .inspection-label { font-size: 6pt; margin-bottom: 4pt; }
  .inspection-card h3 { font-size: 9pt; }
  .inspection-card p { font-size: 7pt; margin-bottom: 5pt; }
  .inspection-state { font-size: 6pt; }
  .baseline-details { border-radius: 0; margin-top: 7pt; }
  .measurement-context, .example-record .details-body p { font-size: 7.5pt; }
  .diagnostic-table, .wheel-table { min-width: 0; }
  .diagnostic-table th, .diagnostic-table td, .wheel-table th, .wheel-table td { font-size: 7.2pt; }
  .measurement-notes { font-size: 7.5pt; }
  .example-record .visit-header time { font-size: 7pt; }
  .example-record .visit-mileage { font-size: 8pt; }
  .visit-summary { padding: 0 9pt; font-size: 8pt; margin-bottom: 8pt; }
  .example-record .visit-grid li { font-size: 7.5pt; line-height: 1.4; margin-bottom: 3pt; }
  .example-record .visit-grid h4 { font-size: 7.5pt; }
  .example-record .visit-grid { grid-template-columns: 1fr 1fr; }
  .example-record .page-footer { font-size: 7pt; }
  .example-record .page-footer p { font-size: 6.5pt; }
}
