/**
 * =====================================================
 * RedCanVault - Styles principaux
 * Design clair, lumineux et responsive
 * =====================================================
 */

/* -----------------------------------------------------
   Variables CSS
----------------------------------------------------- */
:root {
    --color-bg: #f6f3ef;
    --color-surface: #ffffff;
    --color-text: #141414;
    --color-text-muted: #6b6560;
    --color-text-light: #6b6560;
    --color-primary: #e30613;
    --color-primary-dark: #b80510;
    --color-primary-soft: #fff0f1;
    --color-border: #e8e3dc;
    --color-border-strong: #d4cdc4;
    --color-shadow: rgba(20, 14, 12, 0.06);
    --color-shadow-md: rgba(20, 14, 12, 0.12);
    --color-ink: #0e0d0d;

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;

    --radius: 10px;
    --radius-sm: 6px;
    --container-width: 1180px;
    --header-height: 76px;
    --space: 1.25rem;
}

/* -----------------------------------------------------
   Reset & base
----------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* -----------------------------------------------------
   Layout
----------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-main {
    flex: 1;
    padding: 2.5rem 0;
}

/* -----------------------------------------------------
   Header
----------------------------------------------------- */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px var(--color-shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 56px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
        max-width: 140px;
    }
}

.main-nav ul {
    display: flex;
    gap: 1.75rem;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* -----------------------------------------------------
   Footer
----------------------------------------------------- */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* -----------------------------------------------------
   Typographie & utilitaires
----------------------------------------------------- */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-text);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

/* -----------------------------------------------------
   Responsive
----------------------------------------------------- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
        height: auto;
    }

    .site-header {
        height: auto;
    }

    .main-nav ul {
        gap: 1.25rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .site-main {
        padding: 1.75rem 0;
    }
}

/* -----------------------------------------------------
   Homepage specific
----------------------------------------------------- */
.hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 2.6rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

.intro,
.featured {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px var(--color-shadow);
}

.intro h2,
.featured h2 {
    margin-bottom: 1rem;
}

.text-light {
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.05rem;
    }

    .intro,
    .featured {
        padding: 1.5rem;
    }
}

/* -----------------------------------------------------
   Collection page
----------------------------------------------------- */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

/* Filters */
.filters-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px var(--color-shadow);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--color-text);
}

.btn-secondary:hover {
    background: #d1d5db;
    color: var(--color-text);
}

/* Cans grid */
.cans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.can-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.can-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.can-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.can-image {
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.can-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.can-info {
    padding: 0.9rem 1rem 1.1rem;
}

.can-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.can-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.can-set {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.page-link {
    font-weight: 600;
    color: var(--color-primary);
}

.page-info {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-light);
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
    .cans-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* No photo placeholder */
.can-image.no-photo {
    background: #f3f4f6;
}

.no-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-photo-placeholder svg {
    opacity: 0.6;
}

/* Flag icon on can cards */
.can-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

/* -----------------------------------------------------
   Can detail page
----------------------------------------------------- */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.75rem;
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.can-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 1px 3px var(--color-shadow);
}

.can-detail-gallery {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.main-photo {
    position: relative;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.main-photo img.zoomable {
    cursor: zoom-in;
}

.photo-zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.photo-zoom-hint:hover {
    background: #fff;
    transform: scale(1.05);
}

/* ----- Photo lightbox / zoom ----- */
.photo-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483646 !important;
    margin: 0 !important;
    background: rgba(15, 15, 20, 0.94);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.photo-lightbox.is-open {
    display: flex !important;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-stage {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.05s linear;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

.lightbox-stage img.zoomed {
    cursor: grab;
}

.lightbox-stage img.zoomed.dragging {
    cursor: grabbing;
}

.lightbox-hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
    text-align: center;
}

body.lightbox-open {
    overflow: hidden !important;
}

.main-photo.no-photo {
    background: #f3f4f6;
}

.no-photo-placeholder.large {
    font-size: 0.95rem;
    gap: 0.75rem;
}

.photo-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.photo-thumbs .thumb {
    width: 64px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.photo-thumbs .thumb.active,
.photo-thumbs .thumb:hover {
    border-color: var(--color-primary);
}

.photo-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.can-detail-info h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.can-detail-flag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.can-detail-flags {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.can-detail-flag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.flag-icon.large {
    width: 32px;
    height: 22px;
    border-radius: 3px;
}

.can-meta .flag-icon {
    margin-right: 0.15rem;
}

.can-specs {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-row dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.spec-row dd {
    font-size: 0.95rem;
    color: var(--color-text);
}

.spec-row code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    background: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    font-weight: 500;
}

@media (max-width: 900px) {
    .can-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .can-detail-gallery {
        position: static;
    }

    .spec-row {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 500px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* -----------------------------------------------------
   Set groups on collection page
----------------------------------------------------- */
.set-group {
    margin-bottom: 3rem;
}

.set-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
}

.set-group:first-of-type {
    margin-top: 0.5rem;
}

.set-count {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-left: 0.35rem;
}

/* Infinite scroll loader */
.loading-indicator {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

#scrollSentinel {
    min-height: 1px;
}

/* =====================================================
   Statistics page (visual)
   ===================================================== */
.stats-page { padding-bottom: 2.5rem; }

.stats-header { margin-bottom: 1.5rem; }
.stats-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Compact emoji chips */
.ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}
h1 .ico { width: 2rem; height: 2rem; font-size: 1.1rem; }
h2 .ico { width: 1.5rem; height: 1.5rem; font-size: 0.85rem; margin-right: 0.15rem; }
.stat-card .ico {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.15rem;
    margin: 0 auto 0.4rem;
    border-radius: 10px;
}
.ico-red    { background: #fde8eb; }
.ico-blue   { background: #e0edff; }
.ico-teal   { background: #d8f5f0; }
.ico-green  { background: #e3f6e8; }
.ico-orange { background: #ffedd5; }
.ico-purple { background: #ede9fe; }
.ico-gold   { background: #fef3c7; }

.stats-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 0.75rem 0.9rem;
    text-align: center;
    box-shadow: 0 1px 3px var(--color-shadow);
}
.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
    font-weight: 500;
}
.stat-sub {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 0.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}
.stats-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 1px 3px var(--color-shadow);
}
.stats-block-wide { grid-column: 1 / -1; }
.stats-block h2 {
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chart-wrap { position: relative; height: 260px; width: 100%; }
.chart-wrap-tall { height: 240px; }
.chart-wrap-doughnut { height: 260px; max-width: 340px; margin: 0 auto; }

/* Map */
.map-block { margin-bottom: 1.15rem; }
.map-hint { margin: -0.35rem 0 0.75rem; font-size: 0.88rem; }
.world-map {
    width: 100%;
    height: 440px;
    border-radius: 10px;
    background: #7eb6d9;
    overflow: hidden;
    border: 1px solid #5a9cc4;
}
.world-map svg {
    background: #7eb6d9;
}
.world-map .jvm-container { width: 100% !important; height: 100% !important; }
.map-status { font-size: 0.85rem; margin-top: 0.4rem; min-height: 1.2em; }
.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--color-text-light);
}
.map-legend-scale {
    width: 130px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f9c5cc, #c8102e);
}

/* Circular gauges for sets */
.gauge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem 0.75rem;
    justify-items: center;
}
.gauge-item {
    text-align: center;
    width: 100%;
    max-width: 110px;
}
.gauge {
    --p: 0;
    --c: #c8102e;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.4rem;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef0f3 0);
    display: grid;
    place-items: center;
    position: relative;
}
.gauge::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
}
.gauge-val {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 800;
    color: #222;
}
.gauge-name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.gauge-meta {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 0.1rem;
}

/* Recent */
.recent-cans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.recent-can {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    background: #f8f9fb;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.88rem;
    border: 1px solid transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.recent-can:hover { border-color: var(--color-primary); background: #fff; }
.recent-thumb {
    width: 48px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #eef0f3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.recent-thumb.no-img {
    background: repeating-linear-gradient(
        -45deg, #eef0f3, #eef0f3 4px, #e5e7eb 4px, #e5e7eb 8px
    );
}
.recent-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.recent-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.recent-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.recent-year { color: var(--color-text-light); font-size: 0.8rem; }

@media (max-width: 800px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-block-wide { grid-column: auto; }
    .world-map { height: 280px; }
    .chart-wrap, .chart-wrap-tall, .chart-wrap-doughnut { height: 230px; }
}


/* Top countries ranking with flags */
.country-rank {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
}
.country-rank-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.country-rank-pos {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.country-rank-name {
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.country-rank-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.country-rank-cnt {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}

/* Proportion bars (top countries + gauges helpers) */
.stat-bar-track {
    height: 8px;
    width: 100%;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
    background: var(--color-primary);
}

/* =====================================================
   The Wall – dense can mural
   ===================================================== */
.wall-page {
    max-width: none;
    padding: 0;
}
.wall-header {
    max-width: var(--container-width);
    margin: 0 auto 1.25rem;
    padding: 0 1rem;
}
.wall-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}
.wall-mural {
    width: 100%;
    padding: 0 0.35rem 2rem;
}
.wall-country {
    margin-bottom: 0.35rem;
}
.wall-country-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 0.55rem 0.5rem 0.35rem;
    position: sticky;
    top: var(--header-height);
    background: rgba(248, 249, 251, 0.92);
    backdrop-filter: blur(6px);
    z-index: 2;
}
.wall-country-label img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 3px;
}
@media (min-width: 600px) {
    .wall-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px; }
}
@media (min-width: 1000px) {
    .wall-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}
.wall-tile {
    display: block;
    aspect-ratio: 3 / 4;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.wall-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f3f4f6;
    display: block;
}
.wall-tile:hover {
    outline: 2px solid var(--color-primary);
    outline-offset: 0;
    z-index: 1;
}
.wall-tile.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eceff3;
    color: #9aa3ad;
}
.wall-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}
.wall-placeholder svg {
    width: 40%;
    height: 40%;
    max-width: 32px;
    max-height: 32px;
}
.wall-loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-light);
}
#wallSentinel { height: 1px; }


/* Tags */
.tag-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 999px !important;
    background: #c8102e;
    color: #ffffff;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
a.tag-pill:hover {
    filter: brightness(1.08);
    text-decoration: none;
}
.tag-pill-sm {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px !important;
}
.can-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 1rem;
}
.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-check {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}
.tag-check input {
    margin: 0;
}

.can-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.4rem;
}
.tag-pill-sm {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
}




/* =====================================================
   Professional redesign (editorial / museum)
   ===================================================== */

body {
    background: #fafafa;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    height: var(--header-height);
}

.logo-img {
    height: 42px !important;
}

.main-nav ul {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
    color: var(--color-text);
    background: transparent;
    transform: none;
}

.site-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Typography */
h1, h2, h3,
.page-header h1,
.stats-header h1,
.set-group-title,
.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.page-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.page-header .text-light {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Buttons — restrained */
.btn, a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 0.7rem 1.35rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover, a.btn:hover {
    background: var(--color-primary-dark);
    transform: none;
    box-shadow: none;
    filter: none;
    color: #fff !important;
}

.btn-secondary, a.btn-secondary {
    background: transparent;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover, a.btn-secondary:hover {
    background: #fff;
    border-color: var(--color-text);
    color: var(--color-text) !important;
}

/* Homepage hero — full-bleed editorial band */
.hero {
    text-align: left;
    padding: 3.5rem 0 3rem;
    margin: 0 0 3rem;
    background: transparent;
    color: var(--color-text);
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    overflow: visible;
}

.hero::before,
.hero::after {
    display: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 600;
    color: var(--color-text);
    text-shadow: none;
    margin-bottom: 1rem;
    max-width: 14ch;
    line-height: 1.1;
}

.hero .lead {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 36rem;
    margin: 0 0 1.75rem;
    line-height: 1.55;
}

.hero .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.hero-meta div {
    min-width: 7rem;
}

.hero-meta strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.1;
}

.hero-meta span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

/* Home layout */
.home-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
    .home-grid { grid-template-columns: 1fr; }
}

.intro, .featured, .home-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.85rem;
    box-shadow: none;
    margin-bottom: 0;
}

.intro h2, .featured h2, .home-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.intro h2::after, .featured h2::after {
    display: none;
}

.intro p {
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
    max-width: 55ch;
}

.intro p:last-child { margin-bottom: 0; }

.home-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-links li {
    border-top: 1px solid var(--color-border);
}

.home-links li:last-child {
    border-bottom: 1px solid var(--color-border);
}

.home-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.15s ease;
}

.home-links a:hover {
    color: var(--color-primary);
}

.home-links a span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Filters — quiet professional */
.filters-form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: none;
}

.filters-form label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.filters-form input,
.filters-form select {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    background: #fff;
    font-size: 0.9rem;
}

.filters-form input:focus,
.filters-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(176, 16, 40, 0.12);
    background: #fff;
}

/* Can cards — gallery */
.cans-grid {
    gap: 1.25rem !important;
}

.can-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.can-card:hover {
    transform: none;
    border-color: #c4c4c4;
    box-shadow: 0 12px 32px var(--color-shadow-md);
}

.can-image {
    background: #f4f4f4;
    padding: 1rem 1rem 0.5rem;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.can-image img {
    max-height: 100%;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.can-info {
    padding: 0.85rem 1rem 1.1rem !important;
}

.can-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.set-group {
    margin-bottom: 2.5rem;
}

.set-group-title {
    font-size: 1.25rem !important;
    border-bottom: 1px solid var(--color-border) !important;
    padding-bottom: 0.65rem !important;
    margin-bottom: 1.25rem !important;
}

/* Stats */
.stats-hero {
    gap: 0.85rem !important;
}

.stat-card {
    background: #fff !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    padding: 1.25rem 1rem !important;
}

.stat-card:hover {
    transform: none;
}

.stat-value {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem !important;
}

.stats-block {
    background: #fff !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

/* Detail page */
.can-detail {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: none;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

/* Footer */
.site-footer {
    background: #111;
    color: #a3a3a3;
    margin-top: auto;
    padding: 2.5rem 0;
    border-top: none;
}

.site-footer p {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Wall */
.wall-header h1 {
    font-family: var(--font-display);
}

.wall-country-label {
    background: rgba(250, 250, 250, 0.95) !important;
    color: var(--color-text-muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem !important;
}

.wall-tile:hover {
    outline: 2px solid var(--color-primary);
}

/* Tag pills remain as-is from helpers */


/* =====================================================
   RedCanVault visual identity v3
   Bold collector aesthetic — red, paper, condensed type
   ===================================================== */

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
}

/* ----- Header ----- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    box-shadow: none;
    backdrop-filter: none;
}

.header-inner {
    gap: 1.5rem;
}

.logo-img {
    height: 48px !important;
    max-width: 200px;
}

.main-nav ul {
    gap: 0.15rem 1.5rem;
}

.main-nav a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 0.35rem 0;
    border-radius: 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
    background: transparent;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* ----- Typography ----- */
h1, h2, h3,
.page-header h1,
.stats-header h1,
.set-group-title,
.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.95;
    color: var(--color-text);
}

.page-header {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 0.4rem;
}

.page-header .text-light {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.65rem;
}

.eyebrow.red {
    color: var(--color-primary);
}

/* ----- Buttons ----- */
.btn, a.btn {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    background: var(--color-primary);
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(227, 6, 19, 0.22);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover, a.btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(227, 6, 19, 0.28);
    color: #fff !important;
}

.btn-secondary, a.btn-secondary {
    background: transparent;
    color: var(--color-text) !important;
    border: 1.5px solid var(--color-border-strong);
    box-shadow: none;
}

.btn-secondary:hover, a.btn-secondary:hover {
    background: #fff;
    border-color: var(--color-text);
    color: var(--color-text) !important;
    box-shadow: none;
    transform: none;
}

.btn.light, a.btn.light {
    background: #fff;
    color: var(--color-text) !important;
    box-shadow: none;
}

.btn.light:hover, a.btn.light:hover {
    background: #fff;
    color: var(--color-primary) !important;
}

/* ----- Homepage hero ----- */
.hero {
    position: relative;
    text-align: left;
    padding: 4.5rem 2.5rem 4rem;
    margin: 0 0 0;
    border-radius: 18px;
    border: none;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 42%, #ff2a36 0%, #c4000c 28%, #4a0106 58%, #0e0d0d 100%);
    box-shadow: 0 24px 60px rgba(20, 10, 10, 0.18);
}

.hero::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 55%, rgba(255,255,255,0.1));
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero::after {
    content: '';
    display: block;
    position: absolute;
    right: -8%;
    bottom: -18%;
    width: min(42vw, 340px);
    height: min(70vw, 520px);
    border-radius: 48% 48% 42% 42% / 18% 18% 55% 55%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
    border: 3px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 0 0 10px rgba(255,255,255,0.08);
    opacity: 0.35;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    color: rgba(255,255,255,0.72);
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    color: #fff;
    max-width: 12ch;
    margin-bottom: 1.1rem;
    text-shadow: none;
    line-height: 0.92;
}

.hero h1 em {
    color: #ff5a63;
    font-style: normal;
}

.hero .lead {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    max-width: 32rem;
    margin: 0 0 1.75rem;
    line-height: 1.55;
}

.hero .btn {
    margin-right: 0.6rem;
    margin-bottom: 0.5rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    max-width: 28rem;
}

.hero-meta div {
    min-width: 0;
}

.hero-meta strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-meta span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}

/* ----- Home content ----- */
.home-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.25rem;
    margin: 1.75rem 0 2.5rem;
}

.intro, .featured, .home-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 12px 36px var(--color-shadow);
}

.intro h2, .home-panel h2 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.intro p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.home-links li a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.home-links li:last-child a {
    border-bottom: none;
}

.home-links li a span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-muted);
}

.home-links li a:hover {
    color: var(--color-primary);
}

/* ----- Cards ----- */
.can-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.can-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px var(--color-shadow-md);
}

.can-image {
    background: linear-gradient(180deg, #faf8f6 0%, #f0ebe5 100%);
}

.can-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1rem;
    line-height: 1.15;
}

.set-group-title {
    font-size: 1.45rem;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 0.55rem;
}

.set-count {
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-muted);
}

/* ----- Filters ----- */
.filters-form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px var(--color-shadow);
}

.filters-form label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.filters-form input,
.filters-form select {
    border-radius: 10px;
    border-color: var(--color-border);
    background: #faf8f6;
}

.filters-form input:focus,
.filters-form select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

/* ----- Detail / stats / footer ----- */
.can-detail {
    border-radius: 18px;
    box-shadow: 0 16px 48px var(--color-shadow);
}

.stats-hero {
    background:
        radial-gradient(circle at 80% 30%, #ff2a36 0%, #c4000c 30%, #2a0205 70%, #0e0d0d 100%);
    color: #fff;
    border-radius: 18px;
}

.site-footer {
    background: var(--color-ink);
    color: rgba(255,255,255,0.72);
    border-top: none;
    padding: 2.25rem 0;
    margin-top: 2rem;
}

.site-footer p {
    color: rgba(255,255,255,0.72);
    margin: 0;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #ff5a63;
}

@media (max-width: 800px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1.35rem 3.25rem;
        border-radius: 14px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero::after {
        opacity: 0.18;
        right: -20%;
    }

    .hero-meta {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }

    .main-nav ul {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .main-nav a {
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }
}
