:root {
    --navy-950: #07283c;
    --navy-900: #0c3957;
    --navy-700: #1d5977;
    --ink: #102a43;
    --muted: #61778a;
    --line: #dce7ef;
    --surface: #ffffff;
    --page: #f5f8fb;
    --amber: #f4b45d;
    --amber-soft: #fff3df;
    --shadow: 0 20px 60px rgba(8, 48, 75, .10);
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(207, 231, 241, .56), transparent 30rem),
        var(--page);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

.page-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 20px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: min(230px, 46vw); height: auto; }
.header-note { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    padding: clamp(34px, 6vw, 72px);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(244, 180, 93, .22), transparent 14rem),
        linear-gradient(125deg, var(--navy-950), var(--navy-900) 62%, #154e6b);
    box-shadow: 0 26px 70px rgba(7, 40, 60, .22);
}

.hero-copy { max-width: 620px; }
.eyebrow, .section-kicker { margin: 0 0 10px; font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #b9d7e5; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(244, 180, 93, .17); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 18px; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-text { max-width: 560px; margin-bottom: 0; color: #d8e8ef; font-size: 1.04rem; }

.search-card {
    padding: 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search-fields label { display: flex; flex-direction: column; gap: 7px; color: var(--navy-700); font-size: .78rem; font-weight: 700; }
.search-fields input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    color: var(--ink);
    background: #f7fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    font: inherit;
    font-size: .95rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-fields input::placeholder { color: #95a6b3; }
.search-fields input:focus { background: #fff; border-color: #5c9bb6; box-shadow: 0 0 0 4px rgba(92, 155, 182, .16); }
.search-button {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 17px;
    color: var(--navy-950);
    background: var(--amber);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease;
}
.search-button:hover { background: #ffc876; transform: translateY(-1px); }
.button-arrow { font-size: 1.35rem; line-height: 1; }
.search-help { margin-top: 13px; color: var(--muted); font-size: .76rem; }
.search-help span { margin-right: 4px; color: var(--navy-700); font-size: 1rem; }

.content-section { padding: clamp(34px, 6vw, 68px) 0 44px; }
.welcome-card, .message-card, .example-block, .table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 34px rgba(16, 42, 67, .05); }
.welcome-card, .message-card { display: flex; align-items: flex-start; gap: 20px; padding: 30px; }
.welcome-icon, .message-icon { display: grid; flex: 0 0 50px; place-items: center; width: 50px; height: 50px; color: var(--navy-900); background: var(--amber-soft); border-radius: 15px; font-size: 1.45rem; font-weight: 700; }
.section-kicker { color: #56869d; }
h2 { margin-bottom: 8px; color: var(--navy-950); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; }
.welcome-card p:last-child, .message-card p:last-child, .example-block p { max-width: 630px; margin-bottom: 0; color: var(--muted); }

.example-block { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 22px; padding: 27px 30px; }
.example-block h2 { margin-bottom: 0; font-size: 1.2rem; }
.example-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.example-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--navy-900); background: #f4f8fb; border: 1px solid var(--line); border-radius: 10px; font-size: .77rem; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.example-link:hover { border-color: #7fb2c5; transform: translateY(-1px); }
.example-link strong { color: var(--ink); }
.link-arrow { color: #578ea7; font-size: 1rem; }

.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; scroll-margin-top: 22px; }
.results-heading h2 { margin-bottom: 0; }
.clear-link { color: var(--navy-700); font-size: .82rem; font-weight: 700; text-decoration: none; }
.clear-link:hover { color: var(--navy-950); }
.clear-link span { display: inline-block; margin-left: 5px; font-size: 1.1rem; }
.results-note { margin: -5px 0 15px; color: var(--muted); font-size: .82rem; }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.results-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.results-table th { padding: 15px 20px; color: #6c8394; background: #f5f8fb; border-bottom: 1px solid var(--line); font-size: .7rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.results-table td { padding: 18px 20px; border-bottom: 1px solid #e8eff4; vertical-align: middle; }
.results-table tbody tr:last-child td { border-bottom: 0; }
.results-table tbody tr:hover { background: #fbfdfe; }
.model-cell { display: flex; min-width: 210px; flex-direction: column; gap: 2px; }
.model-brand { color: #5f8192; font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.model-cell strong { color: var(--navy-950); font-size: .98rem; }
.type-list { display: flex; flex-wrap: wrap; gap: 5px; }
.type-badge { display: inline-flex; padding: 5px 8px; color: #426d80; background: #eaf4f7; border-radius: 7px; font-size: .7rem; font-weight: 700; }
.document-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); text-decoration: none; }
.document-link:hover strong { text-decoration: underline; }
.pdf-mark { display: grid; place-items: center; width: 52px; height: 39px; color: #a4522d; background: #fff0e8; border-radius: 10px; font-size: .6rem; font-weight: 700; letter-spacing: .03em; }
.document-link strong, .document-link small { display: block; }
.document-link strong { font-size: .78rem; }
.document-link small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.unavailable-document { color: var(--muted); }
.unavailable-document .pdf-mark { color: #647887; background: #eef2f4; }
.unavailable-document:hover strong { text-decoration: underline; }
.unavailable { color: #8295a2; font-size: .78rem; }
.purchase-heading, .purchase-cell { text-align: right !important; }
.buy-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; color: var(--navy-900); border: 1px solid #bcd3dd; border-radius: 9px; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.buy-link:hover { color: var(--navy-950); background: #eef7fa; border-color: #75a5b8; }

.error-card { border-color: #edc7b9; }
.error-card .message-icon { color: #a4522d; background: #fff0e8; }
.empty-card { border-color: #cfe0e6; }
.secondary-button { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 15px; color: #fff; background: var(--navy-900); border-radius: 10px; font-size: .82rem; font-weight: 700; text-decoration: none; }
.secondary-button:hover { background: var(--navy-950); }

.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 30px; padding: 25px 0 34px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer p { margin-bottom: 0; font-size: .8rem; }
.footer-title { margin-bottom: 4px !important; color: var(--navy-950); font-size: .9rem !important; font-weight: 700; }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.footer-link { padding: 9px 12px; color: var(--navy-700); border: 1px solid var(--line); border-radius: 9px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.footer-link:hover { border-color: #77a7b9; }
.footer-link-accent { color: #80521a; background: var(--amber-soft); border-color: #f0d09a; }
.visit-counter { grid-column: 1 / -1; color: #97a8b3 !important; font-size: .7rem !important; }
.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; }

@media (max-width: 850px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: none; }
    .search-card { max-width: 620px; }
    .example-block { align-items: flex-start; flex-direction: column; }
    .example-list { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .page-shell { width: min(100% - 24px, 560px); }
    .site-header { min-height: 76px; }
    .header-note { display: none; }
    .hero { padding: 29px 20px 20px; border-radius: 22px; }
    h1 { font-size: 2.25rem; }
    .hero-text { font-size: .93rem; }
    .search-card { padding: 17px; border-radius: 17px; }
    .search-fields { grid-template-columns: 1fr; }
    .search-button { grid-column: auto; }
    .welcome-card, .message-card, .example-block { padding: 22px; }
    .welcome-card, .message-card { gap: 13px; }
    .welcome-icon, .message-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
    .results-heading { align-items: flex-start; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-actions { justify-content: flex-start; }
    .visit-counter { grid-column: auto; }
}
