/* Shared styles for the public Customer Hub (index, epc, service-history).
   Look and feel follows PAC/epc2.html: teal #009bb4 / grey rgb(73,73,72). */

:root {
    --teal: #009bb4;
    --teal-dark: #007a8f;
    --grey: rgb(73, 73, 72);
    --border: #e0e0e0;
    --muted: #666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fcfcfc;
    color: #111827;
}

/* ---------- Header / footer ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo img { height: 44px; width: auto; display: block; }

.site-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.site-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

.site-nav a {
    color: var(--grey);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.current { background: rgba(0, 155, 180, 0.1); color: var(--teal); }

.site-footer {
    margin-top: auto;
    padding: 16px;
    text-align: center;
    font-size: 0.9em;
    color: var(--muted);
}

main.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 22px;
    color: var(--grey);
}

.page-title img { height: 28px; }

/* ---------- Panels ---------- */
.panel {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--grey);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-desc { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ---------- Inputs / buttons ---------- */
.input-group { display: flex; gap: 12px; max-width: 600px; }

.text-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.text-input.vin { text-transform: uppercase; letter-spacing: 1px; }

.text-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 155, 180, 0.1);
}

.btn {
    height: 48px;
    padding: 0 32px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover:not(:disabled) {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 155, 180, 0.3);
}

.btn:disabled { background: #ccc; cursor: not-allowed; }

.btn-grey { background: var(--grey); }
.btn-grey:hover:not(:disabled) { background: var(--teal); }

.btn-small { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 6px; }

/* ---------- Alerts ---------- */
.alert { padding: 16px 20px; border-radius: 8px; margin-top: 16px; display: none; }
.alert.show { display: block; }
.alert-error { background: #fee; border-left: 4px solid #f44; color: #c00; }
.alert-success { background: #efe; border-left: 4px solid #4c4; color: #080; }
.alert-info { background: #e7f3ff; border-left: 4px solid #2196F3; color: #0066cc; }

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.selection-card,
.year-card,
.model-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.selection-card { padding: 24px; text-align: center; display: block; }
.year-card { padding: 20px; text-align: center; }
.model-card { padding: 20px; text-align: left; }

.selection-card:hover,
.year-card:hover,
.model-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 155, 180, 0.15);
}

.model-card.selected {
    border-color: var(--teal);
    background: linear-gradient(135deg, rgba(0, 155, 180, 0.05) 0%, rgba(0, 155, 180, 0.1) 100%);
}

.card-img { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.card-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.card-title { font-size: 18px; font-weight: 600; color: var(--grey); margin-bottom: 8px; }
.card-description { font-size: 13px; color: var(--muted); }
.year-number { font-size: 32px; font-weight: 700; color: var(--grey); }
.model-code { font-size: 12px; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.model-name { font-size: 16px; font-weight: 600; color: var(--grey); }

/* ---------- Step containers / breadcrumb ---------- */
.step-container {
    background: #fff;
    border-radius: 12px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow);
}

.step-title {
    background: var(--teal);
    padding: 16px 24px;
    border-radius: 12px 12px 0 0;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title .btn { margin-left: auto; }

.info-panel {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px;
    border-radius: 4px;
}

.breadcrumb {
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.breadcrumb-item { color: var(--muted); font-size: 14px; padding: 4px 8px; border-radius: 6px; }
.breadcrumb-item.active { color: var(--teal); font-weight: 600; }
.breadcrumb-item.clickable { cursor: pointer; transition: all 0.2s ease; }
.breadcrumb-item.clickable:hover { background: rgba(0, 155, 180, 0.1); }
.breadcrumb-separator { color: #ccc; }

.breadcrumb-reset {
    margin-left: auto;
    background: var(--grey);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.breadcrumb-reset:hover { background: var(--teal); }

.divider { text-align: center; margin: 32px 0; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { background: #fcfcfc; padding: 0 16px; position: relative; color: var(--muted); font-size: 14px; }

.hidden { display: none !important; }

/* ---------- VIN result ---------- */
.vin-result { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-top: 20px; display: none; }
.vin-result.show { display: block; }
.vin-result-title { font-size: 16px; font-weight: 600; color: var(--grey); margin-bottom: 12px; }
.vin-result-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.vin-result-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.vin-result-value { font-size: 14px; font-weight: 600; color: var(--grey); }

/* ---------- Modals ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(2px);
    padding: 20px;
    align-items: flex-start;
    justify-content: center;
}

.modal-overlay.active { display: flex; }
.modal-overlay.top { z-index: 2100; }

.modal-box {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    background: linear-gradient(135deg, var(--grey) 0%, var(--teal) 100%);
    padding: 14px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.modal-header .modal-heading { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-close-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close-btn:hover { background: rgba(255, 255, 255, 0.28); }

.modal-frame { width: 100%; flex: 1; border: none; display: block; }

.modal-tool {
    background: var(--teal);
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-left: auto;
}

.modal-tool:hover { background: var(--teal-dark); }
.modal-tool + .breadcrumb-reset, .modal-tool + .modal-tool { margin-left: 8px; }

/* Search overlay inside catalogue modal */
.search-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 10;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 0;
}

.search-overlay.active { display: flex; }

.search-overlay-panel {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.search-overlay-header { display: flex; align-items: center; font-size: 17px; font-weight: 700; color: var(--grey); margin-bottom: 10px; }
.search-overlay-header .modal-close-btn { background: rgba(73, 73, 72, 0.1); border-color: rgba(73, 73, 72, 0.15); color: var(--grey); }
.search-overlay-hint { font-size: 13px; color: #888; margin: 0 0 20px; }
.search-overlay-alert { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 13px; background: #fff3cd; border-left: 4px solid #ffc107; color: #7a5c00; }

/* Manuals list */
.manual-body { padding: 20px; overflow-y: auto; }
.manual-group { margin-bottom: 20px; }
.manual-group h4 { margin: 0 0 10px; color: var(--grey); font-size: 15px; }
.manual-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.manual-link {
    display: block;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--grey);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    text-align: left;
    transition: all 0.2s ease;
}
.manual-link:hover { border-color: var(--teal); color: var(--teal); }

/* Assembly-style two column layout reused by manuals viewer */
.viewer-body { display: flex; flex: 1; min-height: 0; }
.viewer-list { width: 320px; flex-shrink: 0; border-right: 2px solid var(--border); overflow-y: auto; background: #f8f9fa; }
.viewer-frame { flex: 1; border: none; min-width: 0; }

@media (max-width: 900px) {
    .viewer-body { flex-direction: column; }
    .viewer-list { width: 100%; max-height: 40%; border-right: none; border-bottom: 2px solid var(--border); }
}

/* ---------- Hub option cards ---------- */
.hub-hero { text-align: center; padding: 20px 0 8px; }
.hub-hero img { max-width: 260px; width: 60%; height: auto; }
.hub-hero h1 { margin: 16px 0 4px; font-weight: 900; color: var(--grey); letter-spacing: 1px; }
.hub-hero h2 { margin: 0; font-weight: 600; color: var(--teal); letter-spacing: 2px; font-size: 18px; }
.hub-hero p { color: var(--muted); max-width: 560px; margin: 16px auto 0; }

.hub-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px auto;
    max-width: 1000px;
}

.hub-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    position: relative;
    padding: 24px 18px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-card:hover {
    border-color: var(--teal);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 155, 180, 0.18);
}

.hub-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--grey); }
.hub-card p { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.hub-card .btn { margin-top: auto; }
.hub-card .ext { font-size: 12px; opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    main.page { padding: 16px 12px; }
    .panel { padding: 20px; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12px; }
    .selection-card { padding: 16px; }
    .card-title { font-size: 16px; }
    .input-group { flex-direction: column; }
    .btn { width: 100%; }
    .site-title { display: none; }
    .modal-overlay { padding: 8px; }
    .modal-box { height: calc(100vh - 16px); }
}

/* ---------- Hero (ported from onlineshopping/assets/css/styles.css) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--grey) 0%, #2f2f2e 100%);
    color: #fff;
    padding: 72px 0;
}

/* Slim variant for inner pages: title over the background, no tagline/badges */
.hero-page-header { padding: 36px 0; }
.hero-page-header .hero-text h1 { margin: 0; }
.hero-page-header .hero-text p { margin: 8px 0 0; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 24s infinite;
}

/* 4 slides, 6s on-screen share each - keep in sync with the keyframes */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    29%  { opacity: 1; }
    37%  { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; }
    .hero-slide:first-child { opacity: 1; }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(31, 31, 30, 0.88) 0%, rgba(47, 47, 46, 0.78) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text { min-width: 0; }
.hero-text h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; }
.hero-text p { margin: 0 0 20px; color: #d5d6d5; max-width: 560px; }
.hero-text .accent { color: var(--teal); }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges span {
    background: rgba(0, 155, 180, 0.18);
    border: 1px solid var(--teal);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 860px) {
    .hero { padding: 48px 0; }
    .hero .container { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-badges { justify-content: center; }
}

.count-badge { position: absolute; top: 12px; right: 12px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }
.count-badge[hidden] { display: none; }

/* Hub card icons (replaces the old screenshot images) */
.hub-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(0, 155, 180, 0.1);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}
.hub-icon.warn { background: rgba(192, 57, 43, 0.1); color: #c0392b; }
.hub-card:hover .hub-icon { background: var(--teal); color: #fff; }
.hub-card:hover .hub-icon.warn { background: #c0392b; }

.hub-card .btn { width: 100%; height: 42px; padding: 0 12px; font-size: 14px; white-space: nowrap; }

/* ---------- Footer partial (partials/footer.html) ---------- */
#footer-placeholder { margin-top: auto; }

.site-footer-rich {
    background: linear-gradient(120deg, var(--grey) 0%, #2f2f2e 100%);
    color: #d5d6d5;
    margin-top: 40px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 380px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin: 0 0 6px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { color: #d5d6d5; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
    color: #b5b6b5;
}

@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; padding-top: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile menu (toggle button is injected by assets/partials.js) ---------- */
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--grey);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        padding: 6px 12px 12px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 12px; font-size: 15px; border-radius: 8px; border-bottom: 1px solid #f0f0f0; }
    .site-nav a:last-child { border-bottom: none; }
}

/* ---------- Explainer / FAQ blocks (recalls.html, safety.html) ---------- */
.info-intro { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 24px; }
.info-intro h2 { margin: 0 0 8px; font-size: 20px; color: var(--grey); }
.info-intro p { margin: 0 0 12px; color: #444; line-height: 1.6; max-width: 900px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 8px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: #f8f9fa; border-top: 3px solid var(--teal); border-radius: 8px; padding: 16px; font-size: 14px; color: #444; line-height: 1.5; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 8px; }
.steps li strong { display: block; color: var(--grey); margin-bottom: 4px; font-size: 15px; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.types div { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: #444; line-height: 1.5; }
.types h4 { margin: 0 0 6px; color: var(--grey); }
.faq { margin-bottom: 28px; }
.faq h2 { font-size: 20px; color: var(--grey); margin: 0 0 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.faq summary { padding: 12px 16px; font-weight: 700; color: var(--grey); cursor: pointer; font-size: 15px; }
.faq details[open] summary { color: var(--teal); }
.faq details p { margin: 0; padding: 0 16px 14px; color: #444; line-height: 1.6; font-size: 14px; }
.section-title { font-size: 20px; color: var(--grey); margin: 0 0 12px; }

/* Hub grid: 3 across on desktop (3 + 3), 2 on tablet, 1 on phones */
@media (max-width: 900px) { .hub-options { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-options { grid-template-columns: 1fr; } }

/* ---------- Social links (ported from onlineshopping/assets/css/styles.css) ---------- */
.social-links { display: flex; gap: 10px; margin-top: 16px; }

.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d5d6d5;
    transition: background 0.15s ease, color 0.15s ease;
}

.social-links a:hover,
.social-links a:focus-visible { background: var(--teal); color: #fff; }

/* Tooltip above the icon on hover / keyboard focus */
.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #fff;
    color: var(--grey);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 10;
}

.social-links a::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 10;
}

.social-links a:hover::after, .social-links a:hover::before,
.social-links a:focus-visible::after, .social-links a:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Icons are .svg files shown through a CSS mask, so their colour follows the link's text colour */
.social-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}
.icon-facebook  { -webkit-mask-image: url('icons/facebook.svg');  mask-image: url('icons/facebook.svg'); }
.icon-instagram { -webkit-mask-image: url('icons/instagram.svg'); mask-image: url('icons/instagram.svg'); }
.icon-youtube   { -webkit-mask-image: url('icons/youtube.svg');   mask-image: url('icons/youtube.svg'); }

/* "New" badge on hub cards (same corner position as the recall count) */
.new-badge { background: #c0392b; }

/* Intro panel with an image beside the text (manuals.html) */
.intro-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.intro-split .intro-text { min-width: 0; }
.intro-split .intro-img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 768px) {
    .intro-split { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .intro-split .intro-img { max-height: 220px; }
}
