/* Screenshot-driven mobile polish, 13 Oct 2026.
   Loaded after all phase styles so legacy selectors cannot reintroduce tile grids or oversized cards. */

/* Previously the legacy 52px background-size repeated the new gradients. */
.hero-grid {
    background-image: radial-gradient(ellipse 70% 70% at 85% 0%, rgba(39,121,190,.16),transparent 75%),linear-gradient(180deg,#0b1b2d 0%,#0a1a2c 100%);
    background-size: cover,cover;
    background-repeat: no-repeat;
    min-height: 0;
}
.hero-category-drawer { margin-top: 19px; max-width: 100%; }
.hero-category-drawer>summary {
    display: inline-flex; align-items:center; gap: 13px; list-style:none;
    min-height: 45px; padding: 9px 15px; background: #15344d;
    border: 1px solid #47718e; border-radius: 11px; color: #c8eaff;
    font-size: .95rem; font-weight: 800;
}
.hero-category-drawer>summary::-webkit-details-marker { display: none; }
.hero-category-drawer>summary span { display: inline-block; transition: transform .15s; }
.hero-category-drawer[open]>summary span { transform: rotate(180deg); }
.hero-category-drawer .category-chips { justify-content: flex-start; margin-top: 12px; gap: 8px; }
.hero-category-drawer .category-chips a { min-height: 38px; padding: 7px 12px; font-size: .9rem; }

/* Make image-backed offers legible without cropping or hiding part labels. */
.search-offer-media { display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.search-offer-media:not(.no-image),.store-product-media { background: #f6f8fb; }
.search-offer-media img,.search-page .search-offer-card .product-media img,.store-product-media img {
    width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.search-offer-information { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-offer-information .card-badges { margin-top: 13px; }
.search-offer-information .store-line { margin-top: auto; padding-top: 11px; }
.search-offer-media.no-image { background: #0a1b2c; border: 1px dashed #3a5873; }
.no-photo-label { font-size: .81rem; font-weight: 650; color: #a5bcd1; padding: 10px; text-align: center; }
.search-offer-information .part-number { color: #addffe; font-size: .9rem; letter-spacing: 0; }
.search-offer-information .model-line { font-size: .86rem; }
.search-offer-card .card-bottom { width: 100%; }
.search-offer-card .card-compare { width: 100%; }

/* Tighter directory and search page orientation. */
.breadcrumb-wrap { padding-top: 11px; }
.store-directory-title h1 { margin-block: 7px 4px; }
.store-directory-title .eyebrow { font-size: .8rem; }
.store-card-stat { margin-top: 7px; }
.store-card-link { text-decoration: none; }

/* Cap the mobile menu to task-sized choices. */
@media (max-width: 920px) {
    .site-header .mobile-menu nav {
        width: min(258px,calc(100vw - 28px)); gap: 2px;
        padding: 7px; max-height: min(410px,calc(100dvh - 90px));
        overscroll-behavior: contain; z-index: 40;
    }
    .site-header .mobile-menu nav a,.site-header .mobile-menu nav .link-button {
        min-height: 43px; padding: 8px 12px; font-size: .95rem; line-height: 1.45;
    }
    .mobile-menu>summary { min-height: 42px; padding: 7px 10px; font-size: .88rem; }
    .site-header .nav-row { height: 65px; }
    .brand strong { font-size: 1rem; }
    .brand-image-frame,.brand-image-frame img { width: 40px; height: 40px; }
    .brand-image-frame { flex-basis: 40px; }
}
@media (max-width: 700px) {
    .hero-content { padding: 27px 0 23px; }
    .hero-copy h1 {
        font-size: clamp(1.8rem, 6.6vw, 2.22rem); line-height: 1.38;
        margin: 13px 0 10px; max-width: 17ch;
    }
    .hero-lead { font-size: .94rem; line-height: 1.75; max-width: 39ch; }
    .hero-copy .eyebrow { font-size: .79rem; padding: 5px 11px; }
    .hero-search { margin-top: 17px; padding: 8px; gap: 7px; }
    .hero-search input { min-height: 48px!important; }
    .hero-search .btn { min-height: 45px; }
    .hero-category-drawer { margin-top: 12px; }
    .search-help { margin-top: 7px; line-height: 1.5; font-size: .82rem; }
    /* The brand mark is already in the header; a second large logo pushes products below the fold. */
    .hero-illustration { display: none; }
    .how-section { padding-top: 25px; }
    .section-intro h2 { font-size: 1.4rem; }
    .store-directory-page.section { padding-top: 17px; }
    .store-directory-title { margin-bottom: 15px; gap: 10px; }
    .store-directory-title h1 { font-size: 1.65rem; }
    .store-directory-title p { font-size: .94rem; line-height: 1.67; }
    .store-directory-title .eyebrow { margin-bottom: 0; }
    .directory-count { padding: 5px 10px; font-size: .83rem; }
    .directory-store-card .store-card-main { padding: 14px; gap: 12px; }
    .directory-store-card .store-card-copy h2 { margin-top: 5px; }
    .directory-store-card .store-card-stat { margin-top: 6px; }
    .directory-store-card .store-card-link { min-height: 43px; padding: 10px 15px; }
    .search-page.section { padding-top: 15px; }
    .search-page-intro h1 { font-size: 1.58rem; line-height: 1.45; margin-bottom: 4px; }
    .search-page-intro p { font-size: .89rem; line-height: 1.65; margin-bottom: 13px; }
    .search-page .search-bar.compact {
        display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch;
        gap: 8px; margin-bottom: 12px; padding: 7px;
    }
    .search-page .search-bar.compact input { min-width: 0; width: 100%; }
    .search-page .search-bar.compact .btn { width: auto; min-width: 75px; padding-inline: 12px; }
    .filter-drawer { margin-bottom: 13px; }
    .filter-drawer>summary { min-height: 45px; font-size: .9rem; }
    .results-heading { margin: 14px 0 12px; }
    .results-heading h2 { font-size: 1.25rem; }
    .search-page .search-results-grid { gap: 11px; }
    .search-page .search-offer-card {
        display: grid; grid-template-columns: 94px minmax(0,1fr);
        gap: 9px 13px; padding: 12px;
        align-items: start; min-width: 0;
    }
    .search-page .search-offer-card .search-offer-media {
        grid-column: 1; grid-row: 1; height: 94px; min-width: 0;
        border-radius: 10px; overflow: hidden;
    }
    .search-page .search-offer-card .search-offer-media.no-image { height: 94px; }
    .search-page .search-offer-card .search-offer-information { grid-column: 2; grid-row: 1; min-width: 0; }
    .search-page .search-offer-card .card-badges { margin-top: 0; gap: 5px; }
    .search-page .search-offer-card .card-badges>* { font-size: .73rem; padding: 3px 7px; }
    .search-page .search-offer-card h3 { font-size: 1rem; line-height: 1.4; margin: 7px 0 3px; }
    .search-page .search-offer-card .part-number { font-size: .79rem; line-height: 1.5; overflow-wrap: anywhere; text-align: left; }
    .search-page .search-offer-card .model-line { font-size: .77rem; line-height: 1.48; }
    .search-page .search-offer-card .store-line { font-size: .82rem; line-height: 1.5; margin-top: 6px; padding: 0; }
    .search-page .search-offer-card .card-bottom {
        grid-column: 1 / -1; margin-top: 2px; padding-top: 10px;
        display: flex; align-items: center; gap: 10px;
    }
    .search-page .search-offer-card .card-bottom strong { font-size: 1.17rem; }
    .search-page .search-offer-card .card-bottom span { font-size: .85rem; }
    .search-page .search-offer-card .card-compare {
        grid-column: 1 / -1; margin-top: 0; min-height: 41px;
        padding: 7px 12px; font-size: .87rem;
    }
    .search-page .search-offer-card .store-line a { text-decoration: underline; }
}
@media (max-width: 400px) {
    .hero-search,.search-page .search-bar.compact { display: grid; grid-template-columns: minmax(0,1fr); }
    .hero-search .btn,.search-page .search-bar.compact .btn { width: 100%; min-width: 0; }
    .hero-copy h1 { font-size: 1.83rem; max-width: none; }
    .search-page .search-offer-card { grid-template-columns: 84px minmax(0,1fr); gap: 8px 10px; }
    .search-page .search-offer-card .search-offer-media,
    .search-page .search-offer-card .search-offer-media.no-image { height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-category-drawer>summary span { transition: none; }
}

/* Consistent page endings, rather than large unexplained empty space. */
@media (max-width:700px) {
    main { min-height: 0; }
    .site-footer { margin-top: 30px; padding: 19px 0; }
    .footer-inner { padding-block: 0; gap: 13px; }
    .footer-about strong { font-size: 1rem; }
    .footer-about p { font-size: .83rem; line-height: 1.65; }
    .footer-inner nav { gap: 8px 16px; }
    .footer-inner nav a { font-size: .84rem; }
}
