/**
 * Precision Yard — shared public marketing chrome.
 * Consume var(--pub-py-*) from public-precision-yard-tokens.css only.
 * Clone of Find My Car masthead/card/CTA; DESIGN.md: full-perimeter 1px borders, no left rails.
 */

/* ── Layout wrap ─────────────────────────────────────────────────────────── */
.pub-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}
@media (min-width: 768px) {
    .pub-wrap {
        padding-left: 28px;
        padding-right: 28px;
    }
}

.pub-section {
    margin-bottom: 56px;
}

/* ── Full-bleed Home chapter bands ─────────────────────────────────────────
 * Sit between .pub-wrap blocks (same pattern as .pub-hero / .pub-services).
 * Do not use 100vw breakouts — those cause horizontal scroll.
 * --rules: light chip-bg + cyan top rule; featured-head on light.
 * --lot: only post-hero photo+scrim chapter + snap catalog.
 * --parts: pale cyan amber-fill.
 * --tools: navy + hatch; featured-head on-dark.
 * Visit stays on page-bg inside .pub-wrap.
 */
.pub-band {
    width: 100%;
}

.pub-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .pub-band-inner {
        padding: 64px 28px;
    }
}

/* Latest inventory — Pull-N-Pay featured-head + photo stage + snap catalog */
.pub-band--lot {
    background: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
    color: var(--pub-py-masthead-headline-on-dark);
    border-top: none;
    overflow: hidden;
}

.pub-lot-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.pub-lot-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.pub-lot-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--pub-py-masthead-bg) 88%, transparent) 0%,
        color-mix(in srgb, var(--pub-py-masthead-bg) 70%, transparent) 48%,
        color-mix(in srgb, var(--pub-py-masthead-bg) 92%, transparent) 100%
    );
}

.pub-band--lot .pub-band-inner {
    position: relative;
    z-index: 10;
    /* Horizontal padding lives on head + track so the snap row can peek */
    padding-left: 0;
    padding-right: 0;
    padding-top: 40px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .pub-band--lot .pub-band-inner {
        padding-top: 56px;
        padding-bottom: 64px;
    }
}

/* Shared Pull-N-Pay featured-head shape; on-dark type only */
.pub-band--lot .pub-featured-head {
    align-items: flex-end;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .pub-band--lot .pub-featured-head {
        padding-left: 28px;
        padding-right: 28px;
    }
}

.pub-band--lot .pub-featured-kicker {
    color: var(--pub-py-masthead-stat-label-muted);
}

.pub-band--lot .pub-section-title--row {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--pub-py-masthead-headline-on-dark);
    text-align: left;
    margin: 0;
}

.pub-band--lot .pub-featured-lede {
    color: var(--pub-py-masthead-stat-label-muted);
    max-width: 48ch;
}

.pub-band--lot .pub-featured-see {
    color: var(--pub-py-amber);
}

.pub-band--lot .pub-featured-see:hover {
    color: var(--pub-py-amber-hover);
}

.pub-band--lot .pub-featured-see:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

/* Horizontal snap track — fourth card peeks off the right; edge fade hints more. */
.pub-band--lot .pub-featured-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 40px 8px 16px;
    margin: 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 16px,
        #000 calc(100% - 16px),
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 16px,
        #000 calc(100% - 16px),
        transparent
    );
}

.pub-band--lot .pub-featured-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .pub-band--lot .pub-featured-grid {
        gap: 20px;
        padding-left: 28px;
        padding-right: 56px;
    }
}

.pub-band--lot a.pub-featured-card {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--pub-py-masthead-bg);
    border: 1px solid var(--pub-py-masthead-rule-fade);
    border-radius: var(--pub-py-radius);
    box-shadow: none;
    color: inherit;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

@media (min-width: 768px) {
    .pub-band--lot a.pub-featured-card {
        flex: 0 0 min(280px, 32%);
        max-width: none;
    }
}

.pub-band--lot a.pub-featured-card:hover {
    border-color: var(--pub-py-amber);
}

.pub-band--lot a.pub-featured-card:hover .pub-featured-title {
    color: var(--pub-py-amber);
}

.pub-band--lot a.pub-featured-card:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-band--lot .pub-featured-media {
    aspect-ratio: 4 / 3;
    background: var(--pub-py-hero-overlay-strong);
}

.pub-band--lot .pub-featured-media--empty {
    background-color: var(--pub-py-hero-overlay-strong);
    background-image: none;
}

.pub-band--lot .pub-featured-media .material-icons {
    color: var(--pub-py-amber);
}

.pub-band--lot .pub-featured-empty {
    color: var(--pub-py-masthead-stat-label-muted);
}

/* Arrived badge — top-right dark overlay (not cyan pill) */
.pub-band--lot .pub-featured-ticket {
    top: 10px;
    left: auto;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--pub-py-hero-overlay-strong);
    color: var(--pub-py-hero-overlay-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pub-band--lot .pub-featured-body {
    padding: 14px 16px 16px;
    background: var(--pub-py-masthead-bg);
}

.pub-band--lot .pub-featured-title {
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--pub-py-masthead-headline-on-dark);
    margin: 0;
    transition: color 200ms ease;
}

@keyframes pub-lot-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pub-inview-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pub-ticket-pulse {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 0.82;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-band--lot a.pub-featured-card,
    .pub-band--lot .pub-featured-title,
    .pub-band--lot .pub-featured-see {
        transition: none;
    }

    .pub-band--lot .pub-featured-head,
    .pub-band--lot a.pub-featured-card,
    .pub-band--lot .pub-featured-ticket {
        animation: none;
    }

    .pub-band--lot .pub-featured-grid {
        scroll-snap-type: none;
    }
}

/* ── Masthead (clone .fmc-masthead) ──────────────────────────────────────── */
.pub-masthead {
    background: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
    color: var(--pub-py-masthead-headline-on-dark);
    padding: 40px 20px 36px;
    border-bottom: 2px solid var(--pub-py-masthead-rule-fade);
}

.pub-masthead-inner {
    max-width: min(640px, 100%);
    margin: 0 auto;
}

.pub-masthead-inner--wide {
    max-width: min(1200px, 100%);
}

.pub-masthead h1,
.pub-masthead-title {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 6vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin: 0 0 10px;
    color: var(--pub-py-masthead-headline-on-dark);
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

.pub-masthead p,
.pub-masthead-sub {
    font-family: var(--pub-py-font-body);
    color: var(--pub-py-detail-masthead-sub);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: min(48ch, 100%);
    overflow-wrap: break-word;
}

/* ── Home hero (search overlaid on still; jobs below the photo) ──────────── */
/*
 * Light shopper hero (Cars.com arrangement, Precision Yard tokens).
 * Stage is chip-bg / page-bg; .pub-services below stays navy + hatch.
 */
.pub-hero {
    overflow: hidden;
    background: var(--pub-py-page-bg);
    color: var(--pub-py-headline);
}

.pub-hero-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--pub-py-chip-bg);
    color: var(--pub-py-headline);
}

.pub-hero-inner {
    position: relative;
    z-index: 10;
    max-width: min(720px, 100%);
    margin: 0 auto;
    padding: 40px 20px 20px;
    text-align: center;
}

.pub-hero-lockup,
.pub-hero-form,
.pub-hero-chips {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.pub-hero-lockup {
    margin-bottom: 0;
}

.pub-hero h1 {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    /* Single-line lockup: fluid size so Title Case fits 375px without page scroll. */
    font-size: clamp(1.15rem, 4.8vw + 0.35rem, 3.25rem);
    line-height: 1.15;
    letter-spacing: 0.005em;
    margin: 0;
    color: var(--pub-py-headline);
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
}

.pub-hero-lead {
    color: var(--pub-py-headline);
}

.pub-hero-accent {
    color: var(--pub-py-amber);
}

.pub-hero-sub {
    font-family: var(--pub-py-font-body);
    color: var(--pub-py-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 14px auto 0;
    max-width: 40ch;
}

.pub-hero-form {
    margin: 28px auto 0;
    text-align: left;
}

.pub-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;
}

.pub-hero-pill-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.pub-hero-pill {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    background: var(--pub-py-white);
    border: 1px solid var(--pub-py-amber);
    border-radius: 999px;
    overflow: hidden;
}

.pub-hero-pill:focus-within {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
    border-color: var(--pub-py-focus-ring);
}

.pub-hero-pill-submit {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    margin-left: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--pub-py-headline);
    cursor: pointer;
    touch-action: manipulation;
}

.pub-hero-pill-submit:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: -2px;
}

.pub-hero-pill-input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px 12px 8px;
    border: none;
    background: transparent;
    font-family: var(--pub-py-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--pub-py-headline);
}

.pub-hero-pill-input:focus {
    outline: none;
}

.pub-hero-pill-input::placeholder {
    color: var(--pub-py-muted);
}

a.pub-hero-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    box-sizing: border-box;
    min-height: 48px;
    min-width: 44px;
    padding: 10px 18px;
    font-family: var(--pub-py-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pub-py-headline);
    text-decoration: none;
    background: var(--pub-py-white);
    border: 1px solid var(--pub-py-border);
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        color 200ms ease,
        box-shadow 200ms ease;
}

a.pub-hero-place .material-icons {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--pub-py-amber);
}

a.pub-hero-place-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.pub-hero-place:hover {
    color: var(--pub-py-headline);
    border-color: var(--pub-py-amber);
    background: var(--pub-py-amber-fill, #d7f1f7);
    box-shadow: var(--pub-py-shadow-card);
}

a.pub-hero-place:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
    border-color: var(--pub-py-focus-ring);
}

.pub-hero-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.pub-hero-search .pub-form-group {
    margin-bottom: 0;
    min-width: 0;
}

.pub-hero-search .pub-label {
    color: var(--pub-py-secondary);
}

/* Same ReportFilterSelect chrome as PublicInventoryPage; keep grid tracks from overflowing. */
.pub-hero-search .dropdown-wrapper {
    min-width: 0;
}

.pub-hero-search .dropdown-trigger {
    cursor: pointer;
}

/*
 * Light floor: opaque white trigger; hover uses solid cyan fill (never translucent
 * --pub-py-amber-bg) and keeps navy label color.
 */
.pub-hero-search .rpt-filter-trigger--py,
.pub-hero-search .rpt-filter-trigger--py:hover:not(.is-open),
.pub-hero-search .rpt-filter-trigger--py.is-open {
    color: var(--pub-py-headline);
}

.pub-hero-search .rpt-filter-trigger--py {
    background-color: var(--pub-py-white);
    border-color: var(--pub-py-border);
}

.pub-hero-search .rpt-filter-trigger--py:hover:not(.is-open) {
    background-color: var(--pub-py-amber-fill, #d7f1f7);
    border-color: var(--pub-py-amber);
}

.pub-hero-search .rpt-filter-trigger--py.is-open {
    background-color: var(--pub-py-white);
}

.pub-hero-search .rpt-filter-trigger--py .rpt-filter-trigger__label {
    color: inherit;
}

.pub-hero-search .rpt-filter-trigger--py .rpt-filter-trigger__icon,
.pub-hero-search .rpt-filter-trigger--py .rpt-filter-trigger__arrow {
    color: var(--pub-py-secondary);
}

.pub-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

a.pub-hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    font-family: var(--pub-py-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pub-py-headline);
    text-decoration: none;
    background: var(--pub-py-white);
    border: 1px solid var(--pub-py-border);
    border-radius: 999px;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

a.pub-hero-chip:hover {
    border-color: var(--pub-py-amber);
    background: var(--pub-py-amber-fill, #d7f1f7);
    color: var(--pub-py-headline);
}

a.pub-hero-chip:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

/* Cutout floor: peek off sides; clip on the floor, not the page. */
.pub-hero-floor {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Ground plane under cutouts (spatial, not motion). */
.pub-hero-floor::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 48px;
    background: linear-gradient(
        to top,
        var(--pub-py-chip-bg, #f1f5f9) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.pub-hero-cutout {
    display: block;
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 18px rgba(26, 26, 46, 0.18));
}

.pub-hero-cutout--center {
    z-index: 2;
    max-height: 160px;
    flex: 0 0 auto;
    width: min(58vw, 280px);
}

.pub-hero-cutout--side {
    z-index: 1;
    flex: 0 0 auto;
    width: min(42vw, 220px);
    max-height: 130px;
    margin-inline: -12%;
    opacity: 0.92;
}

/* Idle float — atmosphere only; gated by prefers-reduced-motion. */
@keyframes pub-cutout-idle {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes pub-cutout-idle-side-a {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(2px, -4px);
    }
}

@keyframes pub-cutout-idle-side-b {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-2px, -4px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .pub-hero-cutout--center {
        animation: pub-cutout-idle 7s ease-in-out infinite;
    }

    .pub-hero-floor > .pub-hero-cutout--side:first-child {
        animation: pub-cutout-idle-side-a 6s ease-in-out infinite;
        animation-delay: 0.4s;
    }

    .pub-hero-floor > .pub-hero-cutout--side:last-child {
        animation: pub-cutout-idle-side-b 8s ease-in-out infinite;
        animation-delay: 1.2s;
    }
}

.pub-services {
    background: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
    color: var(--pub-py-masthead-headline-on-dark);
    padding: 28px 16px 36px;
}

.pub-services-inner {
    max-width: min(1200px, 100%);
    margin: 0 auto;
}

.pub-services-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pub-py-masthead-rule-fade);
}

.pub-services-kicker {
    font-family: var(--pub-py-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pub-py-amber);
    margin: 0 0 6px;
}

.pub-services-title {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
    color: var(--pub-py-masthead-headline-on-dark);
    margin: 0;
}

.pub-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.pub-services-grid > * {
    min-width: 0;
}

a.pub-services-card {
    display: flex;
    flex-direction: column;
    min-height: 44px;
    padding: 20px 18px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pub-py-masthead-rule-fade);
    border-radius: var(--pub-py-radius);
    text-decoration: none;
    color: inherit;
    overflow-wrap: break-word;
    cursor: pointer;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

a.pub-services-card:hover {
    border-color: var(--pub-py-amber);
}

a.pub-services-card:hover .pub-services-card-title,
a.pub-services-card:hover .pub-services-cue {
    color: var(--pub-py-amber);
}

a.pub-services-card:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-services-icon {
    font-size: 28px;
    color: var(--pub-py-amber);
    margin-bottom: 10px;
}

.pub-services-card-title {
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--pub-py-masthead-headline-on-dark);
    margin: 0 0 8px;
    transition: color 200ms ease;
}

.pub-services-card-body {
    font-family: var(--pub-py-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--pub-py-masthead-stat-label-muted);
    margin: 0 0 12px;
}

.pub-services-cue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    min-height: 44px;
    font-family: var(--pub-py-font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pub-py-amber);
    transition: color 200ms ease;
}

.pub-services-cue .material-icons {
    font-size: 16px;
    transition: transform 200ms ease;
}

button.pub-btn {
    appearance: none;
    font: inherit;
}

/* Pull-N-Pay check-in — light chip-bg + cyan top rule (not photo; Lot owns that).
 * One ticket board (not four hovering SaaS cards). Cells are display-only. */
.pub-band--rules {
    background: var(--pub-py-chip-bg);
    color: var(--pub-py-headline);
    border-top: 2px solid var(--pub-py-amber);
    overflow: hidden;
}

.pub-band--rules .pub-featured-see {
    color: var(--pub-py-amber-600);
}

.pub-band--rules .pub-featured-see:hover {
    color: var(--pub-py-amber-hover);
}

/* Cyan CTA — only interactive control in this chapter */
a.pub-btn.pub-featured-see--rules {
    flex-shrink: 0;
    align-self: flex-start;
    color: var(--pub-py-amber-text);
    background: var(--pub-py-amber);
    border: none;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 1rem;
    min-height: 48px;
    padding: 12px 20px;
}

a.pub-btn.pub-featured-see--rules:hover {
    color: var(--pub-py-amber-text);
    background: var(--pub-py-amber-hover);
}

a.pub-btn.pub-featured-see--rules:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    a.pub-btn.pub-featured-see--rules {
        align-self: flex-end;
    }
}

.pub-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    background: var(--pub-py-card);
    border: 1px solid var(--pub-py-border);
    border-radius: var(--pub-py-radius);
    box-shadow: var(--pub-py-shadow-card);
    overflow: hidden;
}

.pub-rules-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    min-width: 0;
    padding: 20px 14px;
    text-align: center;
    margin: 0;
    background: transparent;
    border: none;
    border-right: 1px dashed var(--pub-py-border);
    border-bottom: 1px dashed var(--pub-py-border);
    border-radius: 0;
    box-shadow: none;
    cursor: default;
}

/* 2×2 phone: no right edge on col 2; no bottom edge on row 2 */
.pub-rules-item:nth-child(2n) {
    border-right: none;
}

.pub-rules-item:nth-child(n + 3) {
    border-bottom: none;
}

.pub-rules-value-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.pub-rules-value {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--pub-py-amber-600);
    margin: 0;
}

.pub-rules-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--pub-py-amber-600);
    margin: 0;
    flex-shrink: 0;
}

.pub-rules-label {
    font-family: var(--pub-py-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--pub-py-secondary);
    margin: 8px 0 0;
}

/* Shop by part — full-bleed pale cyan */
.pub-band--parts {
    background: var(--pub-py-amber-fill);
    color: var(--pub-py-headline);
    overflow: hidden;
}

.pub-band--parts .pub-featured-see {
    color: var(--pub-py-amber-600);
}

.pub-band--parts .pub-featured-see:hover {
    color: var(--pub-py-amber-hover);
}

/* Yard tools — navy + hatch; featured-head on-dark (mirror lot); cyan rule like FMC masthead.
 * No border-bottom: Home tools abuts .public-footer; the footer ::before rule is the seam
 * (avoids a double hairline + a #f8fafc gap from footer margin-top). */
.pub-band--tools {
    background: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
    color: var(--pub-py-masthead-headline-on-dark);
    border-top: 2px solid var(--pub-py-masthead-rule-fade);
    border-bottom: none;
    overflow: hidden;
}

.pub-band--tools .pub-featured-kicker {
    color: var(--pub-py-masthead-stat-label-muted);
}

.pub-band--tools .pub-section-title--row {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--pub-py-masthead-headline-on-dark);
    text-align: left;
    margin: 0;
}

.pub-band--tools .pub-featured-lede {
    color: var(--pub-py-masthead-stat-label-muted);
    max-width: 48ch;
}

.pub-band--tools .pub-featured-see {
    color: var(--pub-py-amber);
}

.pub-band--tools .pub-featured-see:hover {
    color: var(--pub-py-amber-hover);
}

.pub-band--tools .pub-featured-see:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-featured-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pub-featured-copy {
    flex: 1 1 14rem;
    min-width: 0;
}

.pub-featured-kicker {
    font-family: var(--pub-py-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pub-py-secondary);
    margin: 0 0 6px;
}

.pub-section-title--row {
    text-align: left;
    margin: 0;
}

.pub-featured-lede {
    font-family: var(--pub-py-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--pub-py-secondary);
    margin: 8px 0 0;
    max-width: 48ch;
}

.pub-featured-see {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font-family: var(--pub-py-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--pub-py-amber-600);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.pub-featured-see:hover {
    color: var(--pub-py-headline);
}

.pub-featured-see:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

a.pub-featured-card {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 44px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    background: var(--pub-py-card);
    border: 1px solid var(--pub-py-border);
    border-radius: var(--pub-py-radius);
    box-shadow: var(--pub-py-shadow-card);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

a.pub-featured-card:hover {
    box-shadow: var(--pub-py-shadow-hover);
}

a.pub-featured-card:hover .pub-featured-title,
a.pub-featured-card:hover .pub-featured-go {
    color: var(--pub-py-amber-600);
}

a.pub-featured-card:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-featured-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: var(--pub-py-chip-bg);
    overflow: hidden;
}

.pub-featured-media--empty {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background-color: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
}

.pub-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-featured-media .material-icons {
    font-size: 32px;
    color: var(--pub-py-amber);
}

.pub-featured-empty {
    font-family: var(--pub-py-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--pub-py-masthead-stat-label-muted);
}

.pub-featured-ticket {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    max-width: calc(100% - 16px);
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--pub-py-hero-badge-amber-bg);
    color: var(--pub-py-hero-badge-amber-text);
    font-family: var(--pub-py-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pub-featured-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 16px 8px;
}

.pub-featured-title {
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.15;
    color: var(--pub-py-headline);
    margin: 0;
    overflow-wrap: break-word;
    transition: color 200ms ease;
}

.pub-featured-model {
    font-family: var(--pub-py-font-body);
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--pub-py-secondary);
    margin: 2px 0 0;
    overflow-wrap: break-word;
}

.pub-featured-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 0;
    font-family: var(--pub-py-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pub-py-slate-700);
}

.pub-featured-meta--muted {
    color: var(--pub-py-secondary);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.pub-featured-meta .material-icons {
    font-size: 14px;
    color: var(--pub-py-location-muted-icon);
    flex-shrink: 0;
}

.pub-featured-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    min-height: 44px;
    padding-top: 4px;
    font-family: var(--pub-py-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pub-py-amber-600);
    transition: color 200ms ease;
}

.pub-featured-go .material-icons {
    font-size: 16px;
    transition: transform 200ms ease;
}

.pub-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .pub-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

a.pub-cat-tile {
    display: flex;
    flex-direction: column;
    min-height: 44px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    background: var(--pub-py-card);
    border: 1px solid var(--pub-py-border);
    border-radius: var(--pub-py-radius);
    box-shadow: var(--pub-py-shadow-card);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

a.pub-cat-tile:hover {
    box-shadow: var(--pub-py-shadow-hover);
}

a.pub-cat-tile:hover .pub-cat-tile-title,
a.pub-cat-tile:hover .pub-cat-tile-go {
    color: var(--pub-py-amber-600);
}

a.pub-cat-tile:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-cat-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--pub-py-chip-bg);
    overflow: hidden;
}

.pub-cat-tile-media--empty {
    background-color: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
}

.pub-cat-tile-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
    .pub-cat-tile-media img {
        animation: pub-cat-fade 200ms ease both;
    }
}

@keyframes pub-cat-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pub-cat-tile-media .material-icons {
    font-size: 36px;
    color: var(--pub-py-amber);
}

.pub-cat-tile-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px 10px;
    min-width: 0;
}

.pub-cat-tile-title {
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--pub-py-headline);
    margin: 0;
    overflow-wrap: break-word;
    transition: color 200ms ease;
}

.pub-cat-tile-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    font-family: var(--pub-py-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pub-py-amber-600);
    transition: color 200ms ease;
}

.pub-cat-tile-go .material-icons {
    font-size: 14px;
    color: inherit;
    transition: transform 200ms ease;
}

@media (min-width: 768px) {
    .pub-hero-inner {
        padding: 56px 28px 24px;
        max-width: min(760px, 100%);
    }

    .pub-hero-sub {
        margin-top: 16px;
    }

    .pub-hero-form {
        margin-top: 32px;
    }

    .pub-hero-pill-row {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .pub-hero-pill {
        flex: 1 1 auto;
    }

    a.pub-hero-place {
        flex: 0 0 auto;
        align-self: center;
        max-width: 16rem;
        white-space: nowrap;
    }

    .pub-hero-search {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .pub-hero-floor {
        margin-top: 12px;
    }

    .pub-hero-cutout--center {
        width: min(36vw, 420px);
        max-height: 220px;
    }

    .pub-hero-cutout--side {
        width: min(30vw, 360px);
        max-height: 190px;
        margin-inline: -6%;
    }

    .pub-services {
        padding: 36px 28px 48px;
    }

    .pub-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .pub-rules {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .pub-rules-item {
        border-bottom: none;
        border-right: 1px dashed var(--pub-py-border);
    }

    .pub-rules-item:nth-child(2n) {
        border-right: 1px dashed var(--pub-py-border);
    }

    .pub-rules-item:nth-child(n + 3) {
        border-bottom: none;
    }

    .pub-rules-item:last-child {
        border-right: none;
    }

    .pub-featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .pub-featured-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .pub-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .pub-hero-inner > * {
        animation: pub-hero-rise 280ms ease both;
    }

    .pub-hero-inner > .pub-hero-lockup {
        animation-delay: 0ms;
    }

    .pub-hero-inner > .pub-hero-form {
        animation-delay: 80ms;
    }

    .pub-hero-inner > .pub-hero-chips {
        animation-delay: 140ms;
    }
}

@keyframes pub-hero-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-hero-inner > * {
        animation: none;
    }
}

/* ── Card — full-perimeter border, never a left-accent rail ──────────────── */
.pub-card {
    background: var(--pub-py-card);
    border: 1px solid var(--pub-py-border);
    border-radius: var(--pub-py-radius);
    box-shadow: var(--pub-py-shadow-card);
    padding: 20px 16px;
    overflow-wrap: break-word;
    min-width: 0;
}
@media (min-width: 768px) {
    .pub-card {
        padding: 28px 24px;
    }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.pub-btn,
.pub-btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px; /* marketing CTA; token floor is --pub-py-control-h (44px) */
    min-width: var(--pub-py-control-h);
    max-width: 100%;
    padding: 12px 20px;
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: normal;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 200ms ease, box-shadow 200ms ease, color 200ms ease,
        border-color 200ms ease;
}

.pub-btn {
    color: var(--pub-py-amber-text);
    background: var(--pub-py-amber);
    border: none;
}

.pub-btn:hover {
    background: var(--pub-py-amber-hover);
    box-shadow: var(--pub-py-detail-cta-hover-shadow);
}

.pub-btn--ghost {
    color: var(--pub-py-amber-600);
    background: transparent;
    border: 1px solid var(--pub-py-amber);
}

.pub-btn--ghost:hover {
    color: var(--pub-py-headline);
    background: var(--pub-py-amber-bg);
    border-color: var(--pub-py-amber-hover);
}

.pub-btn:focus-visible,
.pub-btn--ghost:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-btn:disabled,
.pub-btn[disabled],
.pub-btn--ghost:disabled,
.pub-btn--ghost[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.pub-label {
    display: block;
    font-family: var(--pub-py-font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pub-py-secondary);
    margin-bottom: 8px;
}

.pub-field {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--pub-py-font-body);
    font-size: 1rem; /* 16px keeps iOS from zooming on focus */
    line-height: 1.5;
    color: var(--pub-py-headline);
    background: var(--pub-py-white);
    border: 1px solid var(--pub-py-border);
    border-radius: 10px;
}

.pub-field::placeholder {
    color: var(--pub-py-muted);
}

.pub-field:focus {
    outline: none;
    border-color: var(--pub-py-focus-ring);
    box-shadow: 0 0 0 3px var(--pub-py-amber-focus);
}

.pub-field:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-field[aria-invalid="true"],
.pub-field.pub-field--invalid {
    border-color: var(--pub-py-error-border);
}

.pub-field-error {
    margin: 8px 0 0;
    font-family: var(--pub-py-font-body);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--pub-py-error-title);
}

textarea.pub-field {
    min-height: 120px;
    resize: vertical;
}

.pub-form-group {
    margin-bottom: 16px;
}

.pub-form-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--pub-py-headline);
    margin: 8px 0 16px;
}

.pub-helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--pub-py-muted);
}

.pub-grid--sell {
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .pub-grid--sell {
        grid-template-columns: 2fr 1fr;
    }
}

.pub-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .pub-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Typography / icon helpers ───────────────────────────────────────────── */
.pub-section-title {
    font-family: var(--pub-py-font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
    color: var(--pub-py-headline);
    text-align: center;
    margin: 0 0 28px;
    overflow-wrap: break-word;
}

.pub-card-title {
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.2;
    color: var(--pub-py-headline);
    margin: 0 0 10px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.pub-card-body {
    font-family: var(--pub-py-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pub-py-secondary);
    margin: 0 0 16px;
    overflow-wrap: break-word;
}

.pub-icon {
    color: var(--pub-py-amber-600);
    font-size: 32px;
    line-height: 1;
}

a.pub-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
    min-height: 44px;
    padding: 20px 12px;
}

a.pub-card .pub-icon,
a.pub-card .pub-card-title {
    max-width: 100%;
}

a.pub-card:hover {
    border-color: var(--pub-py-amber);
}

a.pub-card:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-text-link {
    color: var(--pub-py-amber-600);
    font-weight: 600;
    text-decoration: none;
}

.pub-text-link:hover {
    color: var(--pub-py-headline);
}

.pub-text-link:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

/* ── Grids (CSS instead of windowWidth JS) ───────────────────────────────── */
.pub-grid {
    display: grid;
    gap: 20px;
}

.pub-grid > * {
    min-width: 0; /* let 2-col tiles shrink at 375px instead of overflowing */
}

.pub-grid--2-3-4 {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
    .pub-grid--2-3-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .pub-grid--2-3-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pub-grid--1-2 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .pub-grid--1-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.pub-grid--auto-3 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .pub-grid--auto-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pub-grid--parts {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .pub-grid--parts {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .pub-grid--parts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Banners (token colors only — no Material hex) ───────────────────────── */
.pub-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--pub-py-border);
    font-family: var(--pub-py-font-body);
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 16px;
}

.pub-banner--ok {
    background: var(--pub-py-amber-bg);
    color: var(--pub-py-headline);
    border-color: var(--pub-py-amber);
}

.pub-banner--error {
    background: var(--pub-py-error-bg);
    color: var(--pub-py-error-title);
    border-color: var(--pub-py-error-border);
}

/* ── Search + pager ──────────────────────────────────────────────────────── */
.pub-search {
    position: relative;
    margin-bottom: 24px;
}

.pub-search .pub-field {
    padding-left: 44px;
    padding-right: 44px;
}

.pub-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pub-py-muted);
    pointer-events: none;
}

.pub-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--pub-py-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-search-clear:hover {
    color: var(--pub-py-headline);
}

.pub-search-clear:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pub-pager .pub-btn,
.pub-pager .pub-btn--ghost {
    min-width: 44px;
    padding: 8px 12px;
}

/* ── Yard map aerial ─────────────────────────────────────────────────────── */
.pub-yard-map-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--pub-py-radius);
    border: 1px solid var(--pub-py-border);
}

.pub-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pub-info-row .material-icons {
    color: var(--pub-py-amber-600);
    font-size: 22px;
    line-height: 1.2;
}

/* ── Modal overlay (Sell estimate) ───────────────────────────────────────── */
.pub-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2500; /* Above sticky .public-nav (1000) and skip-link (2000); below Yard Assistant (3900+) */
}

.pub-modal-backdrop .pub-card {
    max-width: 480px;
    width: 100%;
}

/* ── Home Yard tools teasers (Find My Car / Assistant) ───────────────────────
 * Lobby announce after shop-by-part: still + name + lede + one CTA.
 * Whole card is the hit target (link or button). Tokens only; no form/scan clone.
 * FAB clearance lives on .public-footer (canonical NAP), not a Home visit band.
 */
.pub-overview-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .pub-overview-pair {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: stretch;
    }

    .pub-overview-pair > :only-child {
        grid-column: 1 / -1;
        max-width: 36rem;
    }
}

a.pub-overview-card,
button.pub-overview-card {
    appearance: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 44px;
    height: 100%;
    padding: 0;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

a.pub-overview-card:hover,
button.pub-overview-card:hover {
    box-shadow: var(--pub-py-shadow-hover);
    border-color: var(--pub-py-amber);
}

a.pub-overview-card:hover .pub-card-title,
a.pub-overview-card:hover .pub-overview-cue,
button.pub-overview-card:hover .pub-card-title,
button.pub-overview-card:hover .pub-overview-cue {
    color: var(--pub-py-amber-600);
}

a.pub-overview-card:focus-visible,
button.pub-overview-card:focus-visible {
    outline: 3px solid var(--pub-py-focus-ring);
    outline-offset: 2px;
}

.pub-overview-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--pub-py-chip-bg);
    overflow: hidden;
    flex: 0 0 auto;
}

.pub-overview-media--empty {
    background-color: var(--pub-py-masthead-bg);
    background-image: var(--pub-py-masthead-diagonal-texture);
    color: var(--pub-py-amber);
}

.pub-overview-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
    .pub-overview-media img {
        animation: pub-cat-fade 200ms ease both;
    }
}

.pub-overview-media .material-icons {
    font-size: 40px;
    line-height: 1;
    color: var(--pub-py-amber);
}

.pub-overview-media svg {
    width: 40px;
    height: 40px;
    display: block;
    color: var(--pub-py-amber);
}

.pub-overview-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
    padding: 16px 16px 14px;
    min-width: 0;
}

@media (min-width: 768px) {
    .pub-overview-body {
        padding: 20px 20px 16px;
    }
}

.pub-overview-card .pub-card-title {
    margin: 0;
    transition: color 200ms ease;
}

.pub-overview-lede {
    font-family: var(--pub-py-font-body);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--pub-py-secondary);
    margin: 0;
    max-width: 48ch;
}

.pub-overview-cue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    min-height: 44px;
    font-family: var(--pub-py-font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pub-py-amber-600);
    transition: color 200ms ease;
}

.pub-overview-cue .material-icons {
    font-size: 16px;
    line-height: 1;
    transition: transform 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
    a.pub-overview-card,
    button.pub-overview-card,
    .pub-overview-card .pub-card-title,
    .pub-overview-cue {
        transition: none;
    }

    a.pub-overview-card:hover,
    button.pub-overview-card:hover {
        box-shadow: var(--pub-py-shadow-card);
    }

    .pub-overview-media img {
        animation: none;
    }
}

/* Site footer — canonical NAP (business_info); FAB clearance for Yard Assistant */
.public-footer {
    flex-shrink: 0;
    /* Light pages (.pub-wrap) already pad the bottom; this only separates light
       content from the navy footer. Do not leave a page-bg stripe between two
       navy bands (Home tools → footer). */
    margin-top: 48px;
    background-color: var(--pub-py-masthead-bg);
    color: var(--pub-py-masthead-stat-label-muted);
    /* Clear Yard Assistant FAB so legal/links stay tappable */
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* Home ends on navy .pub-band--tools — abut footer; no #f8fafc gap. */
#main:has(.home-page) + .public-footer {
    margin-top: 0;
}

.public-footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--pub-py-amber) 0%,
        color-mix(in srgb, var(--pub-py-amber) 70%, transparent) 22%,
        var(--pub-py-masthead-rule-fade) 60%,
        transparent 100%
    );
}

.public-footer-inner {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 28px 20px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .public-footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
        padding: 36px 28px 20px;
    }
}

.public-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.public-footer-name {
    font-family: var(--pub-py-font-display);
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.2;
    color: var(--pub-py-masthead-headline-on-dark);
    margin: 0;
}

.public-footer-heading {
    font-family: var(--pub-py-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pub-py-amber);
    margin: 0 0 4px;
}

.public-footer-text {
    font-family: var(--pub-py-font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--pub-py-masthead-stat-label-muted);
    margin: 0;
}

.public-footer-address {
    display: block;
    margin: 0;
    font-style: normal;
}

a.public-footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    font-family: var(--pub-py-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pub-py-amber);
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: color 200ms ease;
}

a.public-footer-link:hover {
    color: var(--pub-py-masthead-headline-on-dark);
}

a.public-footer-link:focus-visible {
    outline: 2px solid var(--pub-py-amber);
    outline-offset: 2px;
    border-radius: 4px;
}

.public-footer-legal {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 14px 20px 8px;
    font-family: var(--pub-py-font-body);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--pub-py-masthead-stat-label-muted);
    border-top: 1px solid var(--pub-py-masthead-rule-fade);
}

@media (min-width: 768px) {
    .public-footer-legal {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.public-footer-link {
        transition: none;
    }
}

/* ── Home alive motion: hover lift + scroll inview (Precision Yard) ─────── */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    a.pub-services-card:hover,
    a.pub-featured-card:hover,
    .pub-band--lot a.pub-featured-card:hover,
    a.pub-cat-tile:hover,
    a.pub-overview-card:hover,
    button.pub-overview-card:hover {
        transform: translateY(-4px);
    }

    .pub-band--lot a.pub-featured-card:hover {
        box-shadow: var(--pub-py-shadow-hover);
    }

    a.pub-services-card:hover .pub-services-cue .material-icons,
    a.pub-featured-card:hover .pub-featured-go .material-icons,
    a.pub-cat-tile:hover .pub-cat-tile-go .material-icons,
    a.pub-overview-card:hover .pub-overview-cue .material-icons,
    button.pub-overview-card:hover .pub-overview-cue .material-icons {
        transform: translateX(3px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* Hide until IntersectionObserver sets data-inview="1" */
    .home-page .pub-services:not([data-inview="1"]) .pub-services-card,
    .home-page .pub-band--rules:not([data-inview="1"]) .pub-rules-item,
    .home-page .pub-band--lot:not([data-inview="1"]) .pub-featured-head,
    .home-page .pub-band--lot:not([data-inview="1"]) a.pub-featured-card,
    .home-page .pub-band--parts:not([data-inview="1"]) a.pub-cat-tile,
    .home-page .pub-band--tools:not([data-inview="1"]) a.pub-overview-card,
    .home-page .pub-band--tools:not([data-inview="1"]) button.pub-overview-card {
        opacity: 0;
    }

    .home-page .pub-services[data-inview="1"] .pub-services-card,
    .home-page .pub-band--rules[data-inview="1"] .pub-rules-item,
    .home-page .pub-band--lot[data-inview="1"] .pub-featured-head,
    .home-page .pub-band--lot[data-inview="1"] a.pub-featured-card,
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile,
    .home-page .pub-band--tools[data-inview="1"] a.pub-overview-card,
    .home-page .pub-band--tools[data-inview="1"] button.pub-overview-card {
        animation: pub-inview-rise 260ms ease backwards;
    }

    .home-page .pub-services[data-inview="1"] .pub-services-card:nth-child(1) {
        animation-delay: 0ms;
    }
    .home-page .pub-services[data-inview="1"] .pub-services-card:nth-child(2) {
        animation-delay: 40ms;
    }
    .home-page .pub-services[data-inview="1"] .pub-services-card:nth-child(3) {
        animation-delay: 80ms;
    }
    .home-page .pub-services[data-inview="1"] .pub-services-card:nth-child(4) {
        animation-delay: 120ms;
    }

    .home-page .pub-band--rules[data-inview="1"] .pub-rules-item {
        animation-delay: calc(var(--rules-i, 0) * 40ms);
    }

    .home-page .pub-band--lot[data-inview="1"] .pub-featured-head {
        animation-delay: 0ms;
    }

    .home-page .pub-band--lot[data-inview="1"] a.pub-featured-card {
        animation-delay: calc(var(--lot-i, 0) * 40ms);
    }

    .home-page .pub-band--lot[data-inview="1"] .pub-featured-ticket {
        animation: pub-ticket-pulse 600ms ease backwards;
        animation-delay: calc(var(--lot-i, 0) * 40ms + 240ms);
        animation-iteration-count: 1;
    }

    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(1) {
        animation-delay: 0ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(2) {
        animation-delay: 40ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(3) {
        animation-delay: 80ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(4) {
        animation-delay: 120ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(5) {
        animation-delay: 160ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(6) {
        animation-delay: 200ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(7) {
        animation-delay: 240ms;
    }
    .home-page .pub-band--parts[data-inview="1"] a.pub-cat-tile:nth-child(8) {
        animation-delay: 280ms;
    }

    .home-page .pub-band--tools[data-inview="1"] .pub-overview-pair > *:nth-child(1) {
        animation-delay: 0ms;
    }
    .home-page .pub-band--tools[data-inview="1"] .pub-overview-pair > *:nth-child(2) {
        animation-delay: 40ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-btn,
    .pub-btn--ghost,
    .pub-field,
    a.pub-card,
    a.pub-hero-chip,
    a.pub-services-card,
    a.pub-featured-card,
    a.pub-cat-tile,
    a.pub-overview-card,
    button.pub-overview-card,
    .pub-featured-title,
    .pub-featured-go,
    .pub-cat-tile-title,
    .pub-cat-tile-go,
    .pub-services-card-title,
    .pub-services-cue,
    .pub-services-cue .material-icons,
    .pub-featured-go .material-icons,
    .pub-cat-tile-go .material-icons,
    .pub-overview-cue,
    .pub-overview-cue .material-icons,
    .pub-hero-inner,
    .pub-hero-inner > *,
    .pub-hero-cutout,
    .pub-hero-cutout--center,
    .pub-hero-cutout--side,
    .pub-cat-tile-media img,
    .pub-overview-media img,
    .pub-featured-ticket,
    .home-page .pub-services-card,
    .home-page .pub-rules-item,
    .home-page a.pub-featured-card,
    .home-page a.pub-cat-tile,
    .home-page a.pub-overview-card,
    .home-page button.pub-overview-card {
        transition: none;
        animation: none;
        transform: none;
        opacity: 1;
    }
}
