/*
 * Grabsters public site design system. Same tokens as the account area (admin-ds.css): Inter, neutral greys,
 * orange accent. Loaded after style.css / autoparts-public.css: defines the shell (header, drawer, footer),
 * shared components (pd-*) and re-skins legacy components through the --site-* tokens.
 */

/* Inter variable font, self-hosted (latin + latin-ext cover en/es). Overrides the static faces in style.min.css. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --pd-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --pd-bg: #f6f7f9;
    --pd-surface: #ffffff;
    --pd-surface-2: #f9fafb;
    --pd-hover: #f3f4f6;
    --pd-border: #e5e7eb;
    --pd-border-strong: #d1d5db;
    --pd-ink: #111827;
    --pd-ink-2: #374151;
    --pd-muted: #6b7280;
    --pd-subtle: #9ca3af;
    --pd-accent: #f0612d;
    --pd-accent-hover: #d9501d;
    --pd-accent-soft: #fff1ea;
    --pd-accent-ink: #c2410c;
    --pd-success: #16a34a;
    --pd-success-soft: #ecfdf3;
    --pd-danger: #dc2626;
    --pd-navy: #0f172a;
    --pd-radius-sm: 8px;
    --pd-radius: 10px;
    --pd-radius-lg: 14px;
    --pd-radius-xl: 20px;
    --pd-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --pd-shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --pd-shadow-md: 0 12px 32px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .05);
    --pd-ring: 0 0 0 3px rgba(240, 97, 45, .22);
    --pd-container: 1280px;

    /* legacy public tokens follow the design system */
    --site-ink: var(--pd-ink);
    --site-muted: var(--pd-muted);
    --site-line: var(--pd-border);
    --site-bg: var(--pd-bg);
    --site-surface: var(--pd-surface);
    --site-accent: var(--pd-accent);
    --site-accent-dark: var(--pd-accent-hover);
    --site-yellow: #f5b83d;
}

/* ============ Base ============ */
body.public-site {
    background: var(--pd-bg);
    color: var(--pd-ink-2);
    font-family: var(--pd-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.public-site h1, .public-site h2, .public-site h3, .public-site h4, .public-site h5 {
    font-family: var(--pd-font);
    color: var(--pd-ink);
    letter-spacing: -.02em;
}
.public-site h1 { font-weight: 800; }
.public-site h2, .public-site h3 { font-weight: 700; }
:where(.public-site) a { color: var(--pd-accent-ink); }
:where(.public-site) a:hover { color: var(--pd-accent-hover); }
.public-site :focus-visible { outline: none; box-shadow: var(--pd-ring); border-radius: 6px; }
.public-site .wrapper { background: var(--pd-bg); display: flex; flex-direction: column; min-height: 100vh; }
.public-site main { flex: 1; }
.public-site .container, .pd-container { width: min(100% - 40px, var(--pd-container)); max-width: var(--pd-container); margin-inline: auto; padding-inline: 0; }
.pd-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-muted { color: var(--pd-muted); }

/* ============ Buttons ============ */
.pd-btn,
.public-site .site-button,
.public-site .public-detail__button,
.public-site .home-ai-cta__button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--pd-radius);
    font-family: var(--pd-font); font-size: 14px; font-weight: 600; line-height: 1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.pd-btn--primary,
.public-site .site-button,
.public-site .public-detail__button,
.public-site .home-ai-cta__button { background: var(--pd-accent); border-color: var(--pd-accent); color: #fff !important; box-shadow: 0 1px 2px rgba(240, 97, 45, .25); }
.pd-btn--primary:hover,
.public-site .site-button:hover,
.public-site .public-detail__button:hover,
.public-site .home-ai-cta__button:hover { background: var(--pd-accent-hover); border-color: var(--pd-accent-hover); color: #fff !important; }
.pd-btn--secondary,
.public-site .public-detail__button--secondary { background: #fff; border-color: var(--pd-border-strong); color: var(--pd-ink-2) !important; box-shadow: var(--pd-shadow-xs); }
.pd-btn--secondary:hover,
.public-site .public-detail__button--secondary:hover { background: var(--pd-hover); border-color: var(--pd-border-strong); color: var(--pd-ink) !important; }
.pd-btn--ghost { background: transparent; color: var(--pd-ink-2) !important; }
.pd-btn--ghost:hover { background: var(--pd-hover); color: var(--pd-ink) !important; }
.pd-btn--block { width: 100%; }
.pd-btn--lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.pd-icon-btn { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: var(--pd-radius); background: transparent; color: var(--pd-ink-2); cursor: pointer; list-style: none; }
.pd-icon-btn::-webkit-details-marker { display: none; }
.pd-icon-btn:hover { background: var(--pd-hover); color: var(--pd-ink); }

/* ============ Header ============ */
.pd-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--pd-border); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); }
.pd-header__bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.pd-header__burger { display: none; }
.pd-logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--pd-ink) !important; font-size: 19px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.pd-logo img { border-radius: 8px; }
.pd-logo--light { color: #fff !important; }
.pd-nav { display: flex; align-items: center; gap: 2px; }
.pd-nav__link { padding: 8px 9px; border-radius: var(--pd-radius-sm); color: var(--pd-ink-2) !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pd-nav__link:hover { background: var(--pd-hover); color: var(--pd-ink) !important; }
.pd-nav__link.is-active { color: var(--pd-accent-ink) !important; background: var(--pd-accent-soft); }
.pd-search { position: relative; flex: 1; min-width: 120px; max-width: 420px; height: 42px; margin-left: auto; }
/* The box sits on the form's right edge and grows to the left over the nav when focused or holding a query,
   without moving the buttons around it. */
.pd-search__box { position: absolute; top: 0; right: 0; width: 100%; height: 42px; z-index: 5; transition: width .2s ease; }
.pd-search:focus-within .pd-search__box { width: max(100%, min(560px, calc(100vw - 600px))); }
.pd-search:focus-within .pd-search__box::before { content: ''; position: absolute; top: -6px; bottom: -6px; left: -28px; right: 0; z-index: -1; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 24px); }
@media (prefers-reduced-motion: reduce) { .pd-search__box { transition: none; } }
.pd-search__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--pd-subtle); pointer-events: none; }
.public-site .pd-search__input { width: 100%; min-height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--pd-border); border-radius: 999px; background: var(--pd-surface-2); color: var(--pd-ink); font: 500 14px var(--pd-font); box-shadow: none; }
.public-site .pd-search__input:focus { border-color: var(--pd-accent); background: #fff; box-shadow: var(--pd-ring); outline: none; }
.public-site .pd-search:focus-within .pd-search__input { box-shadow: var(--pd-ring), var(--pd-shadow-md); }
.pd-header__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pd-segmented { display: inline-flex; padding: 3px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius); background: var(--pd-surface-2); }
.pd-segmented a { padding: 4px 9px; border-radius: 7px; color: var(--pd-muted) !important; font-size: 12px; font-weight: 700; text-decoration: none; }
.pd-segmented a.is-active { background: #fff; color: var(--pd-ink) !important; box-shadow: var(--pd-shadow-xs); }
.pd-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #ffb18f, var(--pd-accent)); color: #fff; font-size: 13px; font-weight: 700; }

.pd-account, .pd-cart { position: relative; }
.pd-cart details, .pd-account { margin: 0; }
.pd-cart summary { list-style: none; }
.pd-cart summary::-webkit-details-marker { display: none; }
.pd-cart__count { position: absolute; top: 3px; right: 2px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pd-accent); color: #fff; font-size: 11px; font-weight: 700; }
.pd-cart__count[hidden] { display: none; }
.pd-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; padding: 8px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius-lg); background: #fff; box-shadow: var(--pd-shadow-md); }
.pd-popover--menu { min-width: 230px; }
.pd-popover--menu a { display: block; padding: 8px 10px; border-radius: var(--pd-radius-sm); color: var(--pd-ink-2) !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.pd-popover--menu a:hover { background: var(--pd-hover); color: var(--pd-ink) !important; }
.pd-popover__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--pd-border); margin-bottom: 4px; color: var(--pd-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.pd-popover .pd-popover__danger { color: var(--pd-danger) !important; }
.pd-popover--cart { width: 340px; padding: 14px; }
.pd-popover__title { margin-bottom: 10px; color: var(--pd-ink); font-weight: 700; }
.pd-cart__items { display: grid; gap: 10px; max-height: 300px; margin: 0 0 12px; padding: 0; overflow: auto; list-style: none; }
.pd-cart__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--pd-border); font-size: 13px; }
.pd-cart__items a { color: var(--pd-ink) !important; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-cart__items strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--pd-ink); }
.pd-cart__total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.pd-cart__total strong { color: var(--pd-ink); }

.pd-drawer { border-top: 1px solid var(--pd-border); background: #fff; padding: 12px 20px 20px; }
.pd-drawer[hidden] { display: none; }
.pd-drawer__nav { display: grid; gap: 2px; margin-bottom: 14px; }
.pd-drawer__nav a { padding: 12px; border-radius: var(--pd-radius); color: var(--pd-ink) !important; font-size: 16px; font-weight: 600; text-decoration: none; }
.pd-drawer__nav a.is-active { background: var(--pd-accent-soft); color: var(--pd-accent-ink) !important; }
.pd-drawer__footer { display: grid; gap: 10px; }
.pd-drawer__footer .pd-segmented { justify-self: start; }

/* ============ Footer ============ */
.pd-footer { margin-top: 56px; padding: 48px 0 28px; background: var(--pd-navy); color: #94a3b8; }
.pd-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.pd-footer__brand p { max-width: 300px; margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
.pd-footer__col { display: flex; flex-direction: column; gap: 9px; }
.pd-footer__col h2 { margin: 0 0 4px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.pd-footer__col a { color: #cbd5e1 !important; font-size: 14px; text-decoration: none; }
.pd-footer__col a:hover { color: #fff !important; }
.pd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ============ Shared page blocks ============ */
.pd-section { padding: 40px 0; }
.pd-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pd-section__head h2 { margin: 0; font-size: 24px; }
.pd-section__head p { margin: 4px 0 0; color: var(--pd-muted); }
.pd-link-arrow { color: var(--pd-accent-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pd-link-arrow:hover { color: var(--pd-accent-hover) !important; }
.pd-card { border: 1px solid var(--pd-border); border-radius: var(--pd-radius-lg); background: #fff; box-shadow: var(--pd-shadow-xs); }

/* ============ Legacy components re-skin ============ */
/* Inputs */
.public-site input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
.public-site select,
.public-site textarea {
    font-family: var(--pd-font);
    border-color: var(--pd-border-strong);
    border-radius: var(--pd-radius) !important;
    color: var(--pd-ink);
}
.public-site input:focus, .public-site select:focus, .public-site textarea:focus { border-color: var(--pd-accent) !important; box-shadow: var(--pd-ring) !important; outline: none; }

/* Cards & sections */
.public-site .home-section { padding: 40px 0 !important; }
.public-site .home-section:nth-of-type(even) { background: transparent; }
.public-site .home-section article,
.public-site .home-section .swiper-slide > a,
.public-site .home-section .swiper-slide > article,
.public-site .catalog-part-card,
.public-site .public-detail__card {
    border: 1px solid var(--pd-border) !important;
    border-radius: var(--pd-radius-lg) !important;
    box-shadow: var(--pd-shadow-xs) !important;
}
.public-site .home-section article:hover,
.public-site .home-section .swiper-slide > a:hover,
.public-site .home-section .swiper-slide > article:hover,
.public-site .catalog-part-card:hover { transform: translateY(-2px); box-shadow: var(--pd-shadow-md) !important; border-color: var(--pd-border-strong) !important; }

.public-site .catalog-part-card__image { aspect-ratio: 4 / 3; height: auto !important; background: var(--pd-surface-2) !important; }
.public-site .catalog-part-card__body { padding: 14px 14px 10px !important; }
.public-site .catalog-part-card__price { color: var(--pd-ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.public-site .catalog-part-card__price--unavailable { color: var(--pd-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.public-site .catalog-part-card__title { color: var(--pd-ink); font-size: 14px; font-weight: 600 !important; }
.public-site .catalog-part-card__meta { color: var(--pd-muted) !important; font-size: 12.5px !important; }
.public-site .catalog-part-card__action { padding: 0 14px 14px !important; }
.public-site .catalog-part-card__action button {
    min-height: 40px !important;
    border: 1px solid var(--pd-ink) !important; border-radius: var(--pd-radius) !important;
    background: var(--pd-ink) !important; color: #fff !important;
    font-family: var(--pd-font); font-size: 14px; font-weight: 600 !important;
}
.public-site .catalog-part-card__action button:hover { border-color: var(--pd-accent) !important; background: var(--pd-accent) !important; }
.public-site .catalog-part-card__details { border-color: var(--pd-border-strong); border-radius: var(--pd-radius); color: var(--pd-ink-2); font-weight: 600; }

/* Swiper arrows */
.public-site .swiper-button-prev, .public-site .swiper-button-next,
.public-site [class*="swiper"][class*="__prev"], .public-site [class*="swiper"][class*="__next"] { border: 1px solid var(--pd-border) !important; background: #fff !important; color: var(--pd-ink) !important; box-shadow: var(--pd-shadow-sm) !important; }

/* Breadcrumbs */
.public-site .breadcrumbs a { color: var(--pd-muted); font-weight: 500; }
.public-site .breadcrumbs a:hover { color: var(--pd-accent-ink); }
.public-site .breadcrumbs li:last-child { color: var(--pd-ink-2); }

/* Pagination */
.public-site .pagination a, .public-site .pagination span, .public-site [class*="pagination"] a {
    border-radius: var(--pd-radius-sm) !important;
    font-weight: 600;
}

/* ============ Responsive ============ */
/* Six menu items (car and truck parts): the menu moves to the drawer before it can push the header wider. */
@media (max-width: 1400px) {
    .pd-nav { display: none; }
    .pd-header__burger { display: inline-flex; }
}
@media (max-width: 1180px) {
    .pd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .pd-hide-md { display: none !important; }
}
@media (max-width: 640px) {
    .public-site .container, .pd-container { width: calc(100% - 32px); }
    .pd-header__bar { flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 8px 0; }
    .pd-search { order: 10; flex: 1 0 100%; max-width: none; margin: 0 0 4px; }
    .pd-search:focus-within .pd-search__box { width: 100%; }
    .pd-header__actions { margin-left: auto; }
    .pd-hide-sm { display: none !important; }
    .pd-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .pd-popover--cart { width: min(340px, calc(100vw - 32px)); }
}

/* ============ Hero & part finder (home) ============ */
.pd-hero {
    position: relative;
    z-index: 2; /* finder dropdowns must overlap the next section */
    padding: 56px 0 40px;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(240, 97, 45, .35), transparent 60%),
        radial-gradient(700px 360px at -10% 120%, rgba(59, 130, 246, .18), transparent 60%),
        linear-gradient(160deg, #0b1220 0%, #111827 55%, #172033 100%);
    color: #cbd5e1;
}
.pd-hero__intro { margin-bottom: 26px; }
.pd-hero__intro p { max-width: 760px; }
.pd-hero__eyebrow { display: inline-flex; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fed7c3; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.public-site .pd-hero h1 { margin: 14px 0 10px; color: #fff; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.pd-hero__intro p { margin: 0; color: #cbd5e1; font-size: 17px; }
.pd-finder { padding: 8px; border-radius: var(--pd-radius-xl); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.pd-finder__tabs { display: flex; gap: 4px; padding: 4px 4px 0; }
.pd-finder__tabs button { padding: 10px 16px; border: 0; border-radius: var(--pd-radius) var(--pd-radius) 0 0; background: transparent; color: var(--pd-muted); font: 600 14px var(--pd-font); cursor: pointer; border-bottom: 2px solid transparent; }
.pd-finder__tabs button:hover { color: var(--pd-ink); }
.pd-finder__tabs button.is-active { color: var(--pd-ink); border-bottom-color: var(--pd-accent); }
.pd-finder__panel { padding: 16px; border-top: 1px solid var(--pd-border); }
.pd-finder__panel[hidden] { display: none; }
.pd-finder__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr) auto; gap: 12px; align-items: end; }
.pd-finder__row { display: flex; flex-wrap: nowrap; gap: 12px; align-items: end; }
.pd-finder__submit { min-width: 150px; }
.pd-field { display: grid; gap: 6px; min-width: 0; }
.pd-field--grow { flex: 1 1 auto; min-width: 0; }
.pd-field > label { margin: 0; color: var(--pd-ink-2); font-size: 13px; font-weight: 600; }
.public-site .pd-input,
.public-site .home-combobox__value {
    width: 100%; min-height: 50px; padding: 0 14px;
    border: 1px solid var(--pd-border-strong); border-radius: var(--pd-radius) !important;
    background: #fff; color: var(--pd-ink); font: 500 15px var(--pd-font);
}
.public-site .home-combobox__value { cursor: pointer; }
.public-site .home-combobox__value:disabled { background: var(--pd-surface-2); color: var(--pd-subtle); }
.pd-input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .06em; text-transform: uppercase; }
.public-site .home-combobox__dropdown { border-color: var(--pd-border) !important; border-radius: var(--pd-radius-lg) !important; box-shadow: var(--pd-shadow-md) !important; }
.public-site .home-combobox__option { padding: 9px 12px !important; border-radius: var(--pd-radius-sm); margin: 0 6px; color: var(--pd-ink-2); font-size: 14px; }
.public-site .home-combobox__option:hover { background: var(--pd-accent-soft) !important; color: var(--pd-accent-ink); }
.public-site .home-vin__status { margin-top: 10px; font-size: 14px; }
.public-site .home-vin__card { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.pd-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.pd-hero__facts li { display: flex; align-items: center; gap: 8px; color: #e2e8f0; font-size: 14px; font-weight: 500; }
.pd-hero__facts li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center no-repeat; }

/* Car / truck sections (docs/trucks.md): big choice in the home hero, compact switch on catalog pages */
.pd-segment-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pd-segment-choice__option { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid rgba(255, 255, 255, .16); border-radius: var(--pd-radius-lg); background: rgba(255, 255, 255, .05); color: #e2e8f0; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pd-segment-choice__option:hover { border-color: rgba(255, 255, 255, .4); }
.pd-segment-choice__option[aria-checked="true"] { border-color: var(--pd-accent); background: rgba(240, 97, 45, .14); color: #fff; }
.pd-segment-choice__option:focus-visible { outline: 3px solid #fed7c3; outline-offset: 2px; }
.pd-segment-choice__icon { flex: 0 0 auto; width: 48px; height: 32px; }
.pd-segment-choice__option[aria-checked="true"] .pd-segment-choice__icon { color: #fdba8c; }
.pd-segment-choice__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-segment-choice__text strong { font-size: 17px; font-weight: 700; }
.pd-segment-choice__text small { color: #cbd5e1; font-size: 13px; }
.pd-segment-browse { margin: 14px 0 0; }
.pd-segment-browse a { color: #fed7c3; font-weight: 600; text-decoration: none; }
.pd-segment-browse a:hover { text-decoration: underline; }
.pd-segment-switch { display: inline-flex; gap: 4px; margin: 0 0 18px; padding: 4px; border: 1px solid var(--pd-border); border-radius: 999px; background: #fff; }
.pd-segment-switch a { padding: 7px 16px; border-radius: 999px; color: var(--pd-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.pd-segment-switch a:hover { color: var(--pd-ink); }
.pd-segment-switch a[aria-current="page"] { background: var(--pd-ink); color: #fff; }
.pd-segment-switch--flush { margin: 4px 0 0; }
/* The home car / truck choice reloads the page for the other section. */
.pd-segment-loading main { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Home sections from the legacy template */
.public-site .home-makes__heading h2, .public-site .home-section h2 { font-size: 24px !important; font-weight: 700 !important; }
.public-site .home-makes__link { border-radius: var(--pd-radius); font-weight: 600; }
.public-site .home-makes__link:hover { background: var(--pd-accent-soft); color: var(--pd-accent-ink); }
.public-site .home-ai-cta__panel { border-radius: var(--pd-radius-xl) !important; background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important; }
.public-site .home-ai-cta__eyebrow { color: #fdba8c !important; }

@media (max-width: 1100px) {
    .pd-finder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-finder__submit { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .pd-hero { padding: 32px 0 28px; }
    .pd-segment-choice { gap: 8px; }
    .pd-segment-choice__option { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
    .pd-segment-choice__icon { width: 40px; height: 26px; }
    .pd-segment-choice__text strong { font-size: 15px; }
    .pd-segment-choice__text small { font-size: 12px; }
    .pd-finder__grid { grid-template-columns: 1fr; }
    .pd-finder__tabs { overflow-x: auto; }
    .pd-finder__tabs button { padding: 10px 12px; white-space: nowrap; }
    .pd-finder__row { gap: 8px; }
    .pd-finder__row > .pd-btn { padding: 0 14px; }
}
/* Headings on dark panels */
.public-site .home-ai-cta__panel h2, .public-site .home-ai-cta__panel h3,
.public-site .home-ai-cta__feature strong { color: #fff !important; }
.public-site .home-ai-cta__panel p { color: #cbd5e1 !important; }

/* ============ Page building blocks ============ */
.pd-page { padding: 24px 0 8px; }
.pd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--pd-muted); font-size: 13px; }
.pd-crumbs a { color: var(--pd-muted) !important; text-decoration: none; }
.pd-crumbs a:hover { color: var(--pd-accent-ink) !important; }
.pd-crumbs span:last-child { color: var(--pd-ink-2); }
.pd-page-head { margin-bottom: 22px; }
.pd-page-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.public-site .pd-page-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
.pd-page-head p { margin: 8px 0 0; color: var(--pd-muted); font-size: 16px; max-width: 680px; }
.pd-section--tight { padding: 8px 0 28px; }
.pd-section--tight .pd-section__head h2 { font-size: 18px; }

.pd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pd-tiles--models { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pd-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius-lg); background: #fff; box-shadow: var(--pd-shadow-xs); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pd-tile:hover { border-color: var(--pd-accent); box-shadow: var(--pd-shadow-md); transform: translateY(-1px); }
.pd-tile__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 10px; background: var(--pd-accent-soft); color: var(--pd-accent-ink); font-weight: 800; }
.pd-tile__name { color: var(--pd-ink); font-size: 16px; font-weight: 700; }
.pd-tile__meta { color: var(--pd-muted); font-size: 13px; }
.pd-tile__count { margin-top: 4px; color: var(--pd-accent-ink); font-size: 13px; font-weight: 600; }
.pd-tile--empty { background: var(--pd-surface-2); box-shadow: none; }
.pd-tile--empty .pd-tile__count { color: var(--pd-subtle); font-weight: 500; }

.pd-az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.pd-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius-sm); background: #fff; color: var(--pd-ink-2) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.pd-az a:hover { border-color: var(--pd-accent); color: var(--pd-accent-ink) !important; }
.pd-az-groups { columns: 4 220px; column-gap: 24px; }
.pd-az-group { break-inside: avoid; margin-bottom: 22px; scroll-margin-top: 90px; }
.pd-az-group h3 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--pd-border); color: var(--pd-accent-ink); font-size: 16px; }
.pd-az-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pd-az-group li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-az-group a { color: var(--pd-ink-2) !important; font-size: 14.5px; text-decoration: none; }
.pd-az-group a:hover { color: var(--pd-accent-ink) !important; }
.pd-count { padding: 1px 7px; border-radius: 999px; background: var(--pd-accent-soft); color: var(--pd-accent-ink); font-size: 12px; font-weight: 700; }
.public-site .dismantling-map-search__button { border: 1px solid var(--pd-accent) !important; border-radius: var(--pd-radius) !important; background: var(--pd-accent) !important; color: #fff !important; font-weight: 600 !important; }
.public-site .dismantling-map-search__button:hover { background: var(--pd-accent-hover) !important; }

/* ============ Catalog filters: no nested scroll areas ============ */
/* The filter column grows with the page; the category tree expands inline instead of scrolling inside the panel. */
.public-site .catalog-filter-sidebar { position: static; max-height: none; overflow: visible; scrollbar-gutter: auto; }
.public-site .catalog-categories-scroll { max-height: none; overflow: visible; padding: 10px; scrollbar-gutter: auto; border-color: var(--pd-border); border-radius: var(--pd-radius); }
/* The VIN tab keeps the legacy .home-vin__card class for its script; drop its two-column layout. */
.public-site .pd-finder__panel.home-vin__card:not([hidden]) { display: block; padding: 16px; border-radius: 0; }

/* Breadcrumbs (parts/breadcrumbs.html.twig) */
.pd-breadcrumbs { margin: 0 0 12px; font-size: 14px; }
.pd-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.pd-breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; color: var(--pd-muted, #6b7280); }
.pd-breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: #b6bcc6; }
.pd-breadcrumbs a { color: var(--pd-muted, #6b7280); text-decoration: none; }
.pd-breadcrumbs a:hover { color: var(--pd-accent, #f0612d); text-decoration: underline; }
.pd-breadcrumbs [aria-current] { color: var(--pd-ink, #111827); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* Category SEO text under the product grid (first page of a category only) */
.catalog-seo-text { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--pd-border, #e5e7eb); border-radius: 16px; background: #fff; color: #374151; font-size: 15px; line-height: 1.7; }
.catalog-seo-text h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--pd-ink, #111827); }
.catalog-seo-text p { margin: 0 0 12px; }
.catalog-seo-text p:last-child { margin-bottom: 0; }

/* Model-year links on vehicle catalog pages */
.catalog-year-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 14px; }
.catalog-year-links span { margin-right: 4px; color: var(--pd-muted, #6b7280); font-weight: 600; }
.catalog-year-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--pd-border, #e5e7eb); border-radius: 999px; background: #fff; color: var(--pd-ink, #111827); text-decoration: none; font-weight: 600; }
.catalog-year-links a:hover { border-color: var(--pd-accent, #f0612d); color: var(--pd-accent, #f0612d); }
.catalog-year-links a[aria-current] { border-color: var(--pd-accent, #f0612d); background: var(--pd-accent, #f0612d); color: #fff; }

/* Related categories under the catalog grid */
.catalog-related { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--pd-border, #e5e7eb); border-radius: 16px; background: #fff; }
.catalog-related h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.catalog-related__links { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-related__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--pd-border, #e5e7eb); border-radius: 999px; color: var(--pd-ink, #111827); text-decoration: none; font-size: 14px; }
.catalog-related__links a:hover { border-color: var(--pd-accent, #f0612d); color: var(--pd-accent, #f0612d); }
.catalog-related__links span { color: var(--pd-muted, #6b7280); font-size: 12px; }

/* Text pages (shipping & returns, make/model guides) */
.pd-prose { max-width: 820px; color: var(--pd-ink-2); font-size: 16px; line-height: 1.7; }
.pd-prose h2 { margin: 28px 0 10px; font-size: 22px; font-weight: 800; color: var(--pd-ink); }
.pd-prose p, .pd-prose ul { margin: 0 0 14px; }
.pd-prose ul { padding-left: 22px; list-style: disc; }
.pd-prose li { margin-bottom: 6px; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 24px; max-width: 820px; }
.pd-facts div { padding: 14px 16px; border: 1px solid var(--pd-border); border-radius: 12px; background: var(--pd-surface); }
.pd-facts strong { display: block; font-size: 20px; color: var(--pd-ink); }
.pd-facts span { color: var(--pd-muted); font-size: 14px; }
.catalog-vehicle-tiles__more { margin: 12px 0 0; font-weight: 600; }
.catalog-vehicle-tiles__more a { color: var(--pd-accent); text-decoration: none; }

/* Error pages */
.pd-error-page { padding-bottom: 48px; }
.pd-error-page__code { margin: 0 0 6px !important; font-size: 15px !important; font-weight: 800; color: var(--pd-accent) !important; letter-spacing: .08em; }
.pd-error-page__search { display: flex; gap: 10px; max-width: 560px; margin: 0 0 24px; }
.pd-error-page__search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--pd-border-strong); border-radius: 10px; font: inherit; }
.pd-error-page__links { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-error-page__links a { padding: 8px 14px; border: 1px solid var(--pd-border); border-radius: 999px; background: var(--pd-surface); color: var(--pd-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.pd-error-page__links a:hover { border-color: var(--pd-accent); color: var(--pd-accent); }

/* eBay Partner Network offers under thin catalog pages */
.catalog-ebay-offers { margin-top: 32px; }
.catalog-ebay-offers__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.catalog-ebay-offers__head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.catalog-ebay-offers__head span { color: var(--pd-muted); font-size: 13px; }
.catalog-ebay-offers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.catalog-ebay-offer { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--pd-border); border-radius: 12px; background: var(--pd-surface); color: var(--pd-ink); text-decoration: none; }
.catalog-ebay-offer:hover { border-color: var(--pd-accent); }
.catalog-ebay-offer__image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--pd-surface-2); overflow: hidden; }
.catalog-ebay-offer__image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-ebay-offer__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.catalog-ebay-offer__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; color: var(--pd-muted); }
.catalog-ebay-offer__meta strong { color: var(--pd-ink); font-size: 16px; }
.catalog-ebay-offer__source { margin-top: auto; color: var(--pd-muted); font-size: 12px; font-weight: 700; }

/* Donor vehicle: parts available on request */
.donor-request { margin-top: 28px; }
.donor-request__lead { margin: 0 0 14px; color: var(--pd-muted); }
.donor-request__parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.donor-request__parts button { padding: 7px 12px; border: 1px solid var(--pd-border); border-radius: 999px; background: var(--pd-surface); color: var(--pd-ink); font: inherit; font-size: 14px; cursor: pointer; }
.donor-request__parts button:hover { border-color: var(--pd-accent); color: var(--pd-accent); }
.donor-request__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.donor-request__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.donor-request__form input, .donor-request__form select, .donor-request__form textarea { min-height: 42px; padding: 8px 12px; border: 1px solid var(--pd-border-strong); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.donor-request__wide { grid-column: 1 / -1; }
.donor-request__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .donor-request__form { grid-template-columns: 1fr; } }
.catalog-donor-request { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-weight: 600; }
.catalog-donor-request__cta { margin-top: 10px; color: var(--pd-accent); font-weight: 800; font-size: 14px; }

/* Cookie banner (templates/parts/cookie_consent.html.twig, docs/analytics.md) */
.pd-consent { position: fixed; z-index: 1200; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.pd-consent[hidden] { display: none; }
.pd-consent__box { pointer-events: auto; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--pd-surface); color: var(--pd-ink); border: 1px solid var(--pd-border); border-radius: var(--pd-radius-lg); box-shadow: var(--pd-shadow-md); padding: 20px 22px; font-family: var(--pd-font); }
.pd-consent__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.pd-consent__text { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; color: var(--pd-muted); }
.pd-consent__text a { color: var(--pd-accent-ink); text-decoration: underline; }
.pd-consent__note { margin: -4px 0 12px; font-size: .85rem; color: var(--pd-muted); }
.pd-consent__options { display: grid; gap: 8px; margin: 0 0 14px; }
.pd-consent__options[hidden] { display: none; }
.pd-consent__option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius); font-size: .9rem; cursor: pointer; }
.pd-consent__option input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--pd-accent); flex: none; }
.pd-consent__option small { display: block; color: var(--pd-muted); font-size: .82rem; margin-top: 2px; }
.pd-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pd-consent__actions [hidden] { display: none; }
@media (max-width: 560px) {
    .pd-consent { left: 8px; right: 8px; bottom: 8px; }
    .pd-consent__box { padding: 16px; }
    .pd-consent__actions .pd-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
.pd-footer__legal a, .pd-footer__link-btn { color: inherit; text-decoration: underline; }
.pd-footer__link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Text at the bottom of hub pages (templates/parts/hub_seo_text.html.twig) */
.hub-seo { margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--pd-border); color: var(--pd-ink-2, #374151); }
.hub-seo h2 { margin: 0 0 18px; font-size: 24px; font-weight: 800; color: var(--pd-ink); }
.hub-seo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.hub-seo h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--pd-ink); }
.hub-seo p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; }
.hub-seo a { color: var(--pd-accent-ink); text-decoration: underline; }
@media (max-width: 767px) { .hub-seo__grid { grid-template-columns: 1fr; } .hub-seo h2 { font-size: 21px; } }

/* My garage (docs/garage.md) */
.pd-garage { position: relative; margin: 0; }
.pd-garage__summary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius); background: var(--pd-surface); color: var(--pd-ink); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; max-width: 170px; }
.pd-garage__summary::-webkit-details-marker { display: none; }
.pd-garage__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-garage__menu { min-width: 260px; }
.pd-garage__menu form { margin: 0; }
.pd-garage__vehicle { display: block; width: 100%; padding: 9px 14px; border: 0; background: none; color: var(--pd-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pd-garage__vehicle:hover { background: var(--pd-hover); }
.pd-garage__vehicle.is-active { color: var(--pd-accent-ink); font-weight: 800; }
.pd-garage__empty { margin: 0; padding: 8px 14px; color: var(--pd-muted); font-size: 13px; }
@media (max-width: 900px) { .pd-garage__label { display: none; } .pd-garage__summary { padding: 0 9px; } }
.pd-garage-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid #fed7c3; border-radius: var(--pd-radius); background: var(--pd-accent-soft); color: var(--pd-ink); font-size: 14px; font-weight: 600; }
.pd-garage-bar--muted { border-color: var(--pd-border); background: var(--pd-surface); }
.pd-garage-bar form { margin: 0; }
.pd-garage-bar button { padding: 0; border: 0; background: none; color: var(--pd-accent-ink); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.pd-garage-bar a { color: var(--pd-muted); font-size: 13px; }
.pd-fit { margin: 10px 0; padding: 10px 12px; border-radius: var(--pd-radius-sm); font-size: 14px; font-weight: 700; line-height: 1.4; }
.pd-fit a { margin-left: 8px; color: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; }
.pd-fit--fits { background: var(--pd-success-soft); color: #15803d; }
.pd-fit--model { background: #f0fdf4; color: #166534; font-weight: 600; }
.pd-fit--no { background: #fff7ed; color: #b45309; }
.pd-fit--unknown { background: #f3f4f6; color: #475569; font-weight: 600; }
.pd-garage-block { margin: 8px 0 28px; padding: 18px; border: 1px solid #fed7c3; border-radius: var(--pd-radius-lg); background: #fffaf6; }
.pd-garage-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-garage-block__head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.pd-garage-block__head a, .pd-garage-block__empty a { color: var(--pd-accent-ink); font-weight: 700; }
.pd-garage-block__empty { margin: 0; color: var(--pd-muted); }
.pd-garage-home { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 18px; border-radius: var(--pd-radius-lg); background: rgba(255, 255, 255, .96); color: var(--pd-ink); box-shadow: var(--pd-shadow-sm); }
.pd-garage-home__icon { font-size: 26px; }
.pd-garage-home__text { display: grid; flex: 1 1 220px; min-width: 0; }
.pd-garage-home__text > span { color: var(--pd-muted); font-size: 13px; }
.pd-garage-home__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-garage-home__more { position: relative; }
.pd-garage-home__more > summary { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--pd-accent-soft); color: var(--pd-accent-ink); font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.pd-garage-home__more > summary::-webkit-details-marker { display: none; }
.pd-garage-home__more > .pd-popover { left: 0; right: auto; }
.pd-garage-home + .pd-garage-home { margin-top: -6px; }
.pd-garage-home__link { color: var(--pd-muted); font-size: 13px; text-decoration: underline; }
.pd-garage-prompt { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .45); }
.pd-garage-prompt__box { width: 100%; max-width: 460px; padding: 22px; border-radius: var(--pd-radius-lg); background: var(--pd-surface); box-shadow: var(--pd-shadow-md); }
.pd-garage-prompt__box h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.pd-garage-prompt__box p { margin: 0 0 16px; color: var(--pd-muted); font-size: 14px; line-height: 1.5; }
.pd-garage-prompt__options { display: grid; gap: 8px; margin-bottom: 14px; }
.pd-garage-prompt__options form, .pd-garage-prompt__foot form { margin: 0; }
.pd-garage-prompt__options .pd-btn { width: 100%; justify-content: center; }
.pd-garage-prompt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-garage-prompt__foot a { color: var(--pd-accent-ink); font-size: 14px; font-weight: 700; }

/* Language menu (parts/language_menu.html.twig) */
.pd-lang { position: relative; margin: 0; }
.pd-lang__summary { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius); background: var(--pd-surface); color: var(--pd-ink); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.pd-lang__summary::-webkit-details-marker { display: none; }
.pd-lang__summary:hover { background: var(--pd-hover); }
.pd-lang__chevron { color: var(--pd-muted); transition: transform .15s ease; }
.pd-lang[open] .pd-lang__chevron { transform: rotate(180deg); }
.pd-lang__menu { min-width: 180px; }
.pd-lang__menu a { display: flex !important; align-items: center; gap: 10px; }
.pd-lang__menu a.is-active { color: var(--pd-ink) !important; font-weight: 700; }
.pd-lang__code { min-width: 22px; color: var(--pd-muted); font-size: 11px; font-weight: 800; }
.pd-lang__check { margin-left: auto; color: var(--pd-accent-ink); }
.pd-garage-bar a.pd-garage-bar__action { color: var(--pd-accent-ink); font-size: 14px; font-weight: 800; text-decoration: underline; }
.pd-garage-prompt__options .pd-btn--secondary { justify-content: flex-start; }
