/* Inner pages keep their markup, drawn in the live navy/gold system. */
body { background: #f9fafb; color: #111827; }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.page-hero {
    background: linear-gradient(135deg, #0a1f3d, #0d2847);
    color: #fff;
    padding: 1.15rem 0 1.25rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin: 0; }
.page-hero p, .page-hero a { color: #d1d5db; }
.page-hero .crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 .55rem; font-size: .85rem; }
.page-hero .crumbs a { color: #f39c12; text-decoration: none; }
.page-hero .subhead-lede { margin: .15rem 0 0; color: #d1d5db; }
.page-hero .btn, .page-hero .manual-btn { color: #fff !important; }
.year-subhead { padding: 1.15rem 0 1.25rem; }
.year-subhead .crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 .55rem; font-size: .85rem; }
.year-subhead .crumbs a { color: #f39c12; text-decoration: none; }
.year-subhead .crumbs span { color: #9ca3af; }
.year-subhead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.year-subhead h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.year-subhead .year-range { margin: .15rem 0 0; color: #f39c12; font-weight: 700; }
.manual-btn { display: inline-flex; align-items: center; background: #f39c12; color: #fff !important; text-decoration: none; border-radius: .7rem; padding: .65rem 1rem; font-weight: 700; white-space: nowrap; }
.manual-btn:hover { background: #e08e0b; }
.logo-hero { max-height: 72px; width: auto; background: #fff; border-radius: .85rem; padding: .4rem .7rem; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
a { color: #0a1f3d; }
.make-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.year-card img.year-photo, img.year-photo { display: block; width: 100%; height: 120px; object-fit: cover; object-position: center; background: #f3f4f6; padding: 0; }
.year-card .pad { padding: .4rem .5rem .5rem; text-align: center; }
.year-card h3, .year-card .meta { text-align: center; margin: 0; }
.year-card .meta { margin-top: .1rem; }
.maint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.make-logo-box { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #f9fafb; overflow: hidden; }
.make-logo-box img { position: absolute; inset: 22% 16%; width: 68%; height: 56%; margin: auto; max-width: 120px; max-height: 72px; object-fit: contain; }
header a, header a:hover, footer a.inline-flex, footer a.inline-flex:hover { color: #fff; }
.muted, .meta { color: #4b5563; }
.card, .picker.card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    padding: 1.5rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.grid-guides { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.guide-card {
    display: block;
    background: #fff;
    color: inherit;
    text-decoration: none;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
}
.guide-card:hover { box-shadow: 0 16px 32px rgba(15, 23, 42, .12); }
.guide-card img { width: 100%; height: 140px; object-fit: cover; background: #f3f4f6; }
.guide-card img.video-thumb { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card .pad { padding: 1rem; }
.btn, button.btn, .searchbar button, .form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f39c12;
    color: #fff;
    border: 0;
    border-radius: .7rem;
    padding: .7rem 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover, .form button:hover { background: #e08e0b; }
.btn-ghost { background: transparent; color: #0a1f3d; border: 2px solid #0a1f3d; }
.btn-ghost:hover { background: #0a1f3d; color: #fff; }
.btn-block { width: 100%; height: 3rem; }
.field { margin: 0 0 1rem; }
.field label, .form label { display: block; font-size: .875rem; font-weight: 600; margin: 0 0 .4rem; }
.field input, .field select, .field textarea, .form input, .form textarea, .searchbar input, .searchbar select {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: .5rem;
    padding: .55rem .75rem;
    font: inherit;
    color: inherit;
}
.field select, .field input, .searchbar input, .searchbar select { height: 2.75rem; }
.form textarea { height: auto; min-height: 8rem; }
.searchbar, .search-split { display: grid; gap: 1rem; }
@media (min-width: 900px) { .search-split { grid-template-columns: 300px 1fr; align-items: start; } }
.pager { display: flex; gap: 1rem; margin-top: 1rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { background: #f3f4f6; border-radius: 999px; padding: .3rem .75rem; font-size: .88rem; }
.prose img { max-width: 100%; height: auto; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin: 2rem 0 1rem; }
.section-head h2 { margin: 0; }
.vh, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Browse hub */
.browse-page { padding-bottom: 2.5rem; }
.browse-page h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.browse-lede { margin: 0 0 1rem; }
.browse-find { margin-top: 1rem; }
.browse-find-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
    .browse-find-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.browse-search { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.browse-search input { height: 2.75rem; border: 1px solid #e5e7eb; background: #f9fafb; border-radius: .5rem; padding: .55rem .75rem; font: inherit; }
.browse-search-hints { margin: .7rem 0 0; font-size: .9rem; }
.browse-search-hints a { color: #0a1f3d; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.browse-section { margin-top: 2.25rem; }
.browse-popular-grid, .browse-category-grid, .browse-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .9rem;
}
.browse-popular-card, .browse-category-card, .browse-model-card {
    display: block;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.browse-popular-card:hover, .browse-category-card:hover, .browse-model-card:hover {
    box-shadow: 0 14px 28px rgba(15, 23, 42, .1);
}
.browse-popular-media { position: relative; aspect-ratio: 16 / 9; background: #e5e7eb; }
.browse-popular-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.browse-views {
    position: absolute; top: .6rem; right: .6rem;
    background: #f39c12; color: #fff; font-size: .78rem; font-weight: 700;
    border-radius: .45rem; padding: .2rem .45rem;
}
.browse-popular-card .pad, .browse-category-card, .browse-model-card .pad { padding: .9rem 1rem; }
.browse-model-card img { display: block; width: 100%; height: 120px; object-fit: cover; background: #f3f4f6; }
.browse-category-card h3, .browse-model-card h3, .browse-popular-card h3 { margin: 0 0 .2rem; font-size: 1rem; }
.browse-maint { margin-top: .25rem; }
.browse-maint-item {
    display: flex; align-items: center; min-height: 2.75rem;
    padding: .55rem .8rem; background: #fff; border: 1px solid #f3f4f6;
    border-radius: .75rem; text-decoration: none; color: #0a1f3d; font-weight: 600; font-size: .92rem;
}
.browse-maint-item:hover { border-color: #f39c12; }
.az { display: flex; flex-wrap: wrap; gap: .35rem .55rem; margin: 0 0 1rem; }
.az a, .az span { min-width: 1.5rem; text-align: center; font-weight: 700; }
.az a { color: #0a1f3d; text-decoration: none; padding: .2rem .35rem; border-radius: .4rem; background: #f3f4f6; }
.az a:hover { background: #f39c12; color: #fff; }
.az-letter { margin: 1.25rem 0 .55rem; font-size: 1.05rem; color: #0a1f3d; }
.az-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .4rem .75rem;
}
.az-text-link {
    display: flex; justify-content: space-between; gap: .5rem; align-items: baseline;
    padding: .45rem .55rem; border-radius: .55rem; background: #fff; border: 1px solid #f3f4f6;
    text-decoration: none; color: inherit;
}
.az-text-link:hover { border-color: #f39c12; }
.az-text-name { font-weight: 600; font-size: .92rem; }
.az-logo-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .75rem;
}
.az-logo-card {
    display: block;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: .85rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.az-logo-card:hover { border-color: #f39c12; box-shadow: 0 10px 22px rgba(15, 23, 42, .08); }
.az-logo-box {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #f9fafb;
    padding: .4rem .5rem;
}
.az-logo-box img {
    width: 100%;
    height: 100%;
    max-height: 56px;
    object-fit: contain;
    background: transparent;
}
.az-logo-fallback { color: #9ca3af; font-weight: 800; font-size: .8rem; text-align: center; }
.az-logo-name {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.2;
    padding: .4rem .3rem .55rem;
    border-top: 1px solid #f3f4f6;
}
@media (max-width: 1100px) {
    .az-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .az-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.forum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.5rem; }
.forum-stat { text-align: center; padding: 1rem; }
.forum-stat strong { display: block; font-size: 1.4rem; }
.forum-stat span, .forum-cat .meta, .forum-thread .meta { display: block; color: var(--muted); font-size: .85rem; }
.forum-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.25rem; align-items: start; }
.forum-cats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.forum-cat { display: flex; gap: .75rem; padding: .9rem; text-decoration: none; color: inherit; }
.forum-swatch { width: 36px; height: 36px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.forum-threads { display: grid; gap: .6rem; }
.forum-thread { display: block; padding: .9rem 1rem; text-decoration: none; color: inherit; }
.forum-side, .forum-help { padding: 1rem; margin-bottom: .8rem; }
.forum-side input { width: 100%; }
.forum-rules { margin: 0; padding-left: 1.1rem; }
.forum-posts { display: grid; gap: .8rem; }
.forum-post { padding: 1rem; }
.forum-body { white-space: pre-wrap; }
.forum-actions { display: flex; gap: .5rem; align-items: center; }
.forum-help { background: #f39c12; color: #fff; }
.forum-help p { color: #fff; }
.forum-help .btn { background: #fff; color: #0a1f3d; }
.auth-card { max-width: 26rem; margin: .25rem auto 0; padding: 1.6rem 1.5rem 1.25rem; }
.form input[type="checkbox"] { width: 1rem; height: 1rem; padding: 0; accent-color: #0a1f3d; }
.auth-remember { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .92rem; font-weight: 600; }
.auth-foot { margin: 1rem 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-foot a { color: #0a1f3d; font-weight: 700; }
.forum-account { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.forum-account form { margin: 0; }
.forum-account button { background: transparent; border: 0; color: #0a1f3d; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
@media (max-width: 800px) {
    .forum-layout, .forum-cats, .forum-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .browse-search { grid-template-columns: 1fr; }
    .browse-popular-grid, .browse-category-grid { grid-template-columns: 1fr; }
}
