:root {
    color-scheme: light;
    --ink: #182018;
    --muted: #5c665c;
    --paper: #f4f3ec;
    --surface: #ffffff;
    --line: #d8d9cf;
    --olive: #44533a;
    --olive-dark: #2f3c29;
    --olive-soft: #e8ede4;
    --amber-soft: #fff4d6;
    --red-soft: #fbe6e4;
    --shadow: 0 12px 30px rgba(27, 37, 24, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

 .link { color: #ffff26; } /* CSS link color */
 
.shell {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    padding: 3rem 0 4.75rem;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.05), transparent 45%),
        var(--olive-dark);
    color: #fff;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: #d9e2d2;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.intro {
    max-width: 760px;
    margin: 1rem 0 0;
    color: #e4e9df;
    font-size: 1.08rem;
}

.search-panel {
    position: relative;
    z-index: 1;
    margin-top: -2.25rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 750;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

input, button { font: inherit; }

input {
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #aeb3a8;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--ink);
}

input:focus {
    outline: 3px solid rgba(68, 83, 58, 0.22);
    border-color: var(--olive);
}

button {
    padding: 0.85rem 1.35rem;
    border: 0;
    border-radius: 0.65rem;
    background: var(--olive);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

button:hover { background: var(--olive-dark); }
button:disabled { opacity: 0.65; cursor: progress; }

.status {
    min-height: 1.5rem;
    margin: 0.65rem 0 0;
    color: var(--muted);
}

.status.error { color: #8b241b; }

.results {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem 0 3rem;
}

.vehicle-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 5px 20px rgba(27, 37, 24, 0.05);
}

.vehicle-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, var(--olive-soft), #fff);
}

.vehicle-heading h2 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.vehicle-description {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--olive-soft);
    color: var(--olive-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.pill.disposed { background: var(--red-soft); color: #79231d; }
.pill.service { background: var(--amber-soft); color: #684c00; }

.card-body { padding: 1.25rem; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.summary-box {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fafbf8;
}

.summary-box dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-box dd { margin: 0.2rem 0 0; font-weight: 750; }

h3 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.05rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
}

.detail {
    min-width: 0;
    padding: 0.75rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail:nth-child(4n) { border-right: 0; }
.detail:nth-last-child(-n + 4) { border-bottom: 0; }

.detail dt { color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.detail dd { margin: 0.18rem 0 0; overflow-wrap: anywhere; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th, td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f3ed;
    color: #3f493d;
    font-size: 0.75rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf8; }

.note {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed #abb1a5;
    border-radius: 1rem;
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,0.55);
}

.site-footer {
    padding: 1.5rem 0 2.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 850px) {
    .summary-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail:nth-child(4n) { border-right: 1px solid var(--line); }
    .detail:nth-child(2n) { border-right: 0; }
    .detail:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
    .detail:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 570px) {
    .site-header { padding-top: 2rem; }
    .search-row { grid-template-columns: 1fr; }
    .vehicle-heading { flex-direction: column; }
    .pills { justify-content: flex-start; }
    .details-grid { grid-template-columns: 1fr; }
    .detail, .detail:nth-child(2n), .detail:nth-child(4n) { border-right: 0; }
    .detail:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .detail:last-child { border-bottom: 0; }
}
