﻿/* ============================================================
   GetPFPs — Modern Dark / Neon Theme
   Vanilla CSS. Mobile-first responsive.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --bg: #0a0e1a;
    --bg-soft: #0f172a;
    --surface: #151c2e;
    --surface-2: #1e293b;
    --line: rgba(255,255,255,0.08);
    --line-hi: rgba(255,255,255,0.16);
    --text: #f1f5f9;
    --muted: #c4c4c4;
    --dim: #64748b;
    --neon-purple: #a855f7;
    --neon-cyan: #06b6d4;
    --neon-pink: #ec4899;
    --grad: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
    --grad-soft: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(6,182,212,0.15) 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 40px rgba(168,85,247,0.35);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

input {
    font: inherit;
}

ul {
    list-style: none;
}

/* Decorative neon blobs */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6,182,212,0.16) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

main, header, footer {
    position: relative;
    z-index: 1;
}

/* ---------- Containers ---------- */
.c-container,
.f-container,
.w-container,
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
}

    /* When a block already centered (built-in max-width) is nested inside
       .container, drop its own padding/max-width to avoid double indent. */
    .container .grid,
    .container .grid-masonry,
    .container .page-info,
    .container .category-selection,
    .container .photo-detail-container,
    .container .info-container {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

/* ============================================================
   3. HEADER
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10,14,26,0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.c-container > .w-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Hamburger button (mobile) */
.topnav-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

    .topnav-hamburger:hover {
        background: var(--surface-2);
        border-color: var(--line-hi);
    }

.hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .hamburger-icon span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }

/* Logo */
.l-container {
    flex-shrink: 0;
}

.logo,
#logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 40px;
}

.l-container a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#logo {
    height: 36px;
    width: auto;
    display: inline-block;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #0a0e1a;
    font-weight: 800;
}

.logo-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Desktop navigation (Level 1 categories) */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    margin-left: 16px;
    min-width: 0;
}

    .nav-desktop > a {
        color: var(--muted);
        transition: color 0.25s var(--ease);
        white-space: nowrap;
    }

        .nav-desktop > a:hover {
            color: var(--text);
        }

/* "More" overflow dropdown for nav */
.nav-more {
    position: relative;
}

.nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.25s var(--ease);
    white-space: nowrap;
}

    .nav-more-btn:hover,
    .nav-more.open .nav-more-btn {
        color: var(--text);
    }

    .nav-more-btn svg {
        width: 14px;
        height: 14px;
        transition: transform 0.25s var(--ease);
    }

.nav-more.open .nav-more-btn svg {
    transform: rotate(180deg);
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 220px;
    max-width: calc(100vw - 32px);
    background: var(--surface);
    border: 1px solid var(--line-hi);
    border-radius: var(--radius);
    padding: 8px;
    display: none;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 60;
    max-height: 70vh;
    overflow-y: auto;
}

.nav-more.open .nav-more-menu {
    display: block;
    transform: translateX(-50%) translateY(0);
}

.nav-more-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

    .nav-more-menu a:hover {
        background: var(--surface-2);
        color: var(--text);
    }

/* Header right cluster (search/lang/etc.) */
.search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

.search-control {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 10px 0 12px;
    height: 40px;
    width: 40px;
    max-width: 100%;
    overflow: hidden;
    transition: width 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

    .search-control input {
        display: none;
    }

    .search-control:hover,
    .search-control:focus-within {
        border-color: var(--line-hi);
        background: var(--surface-2);
    }

.s-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

    .s-icon .s-svg {
        width: 18px;
        height: 18px;
    }

.search-control .input-impl {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    min-width: 0;
}

    .search-control .input-impl::placeholder {
        color: var(--dim);
    }

/* Mobile: tap icon to expand the search input full-width */
.search.search-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 14px 56px 14px 16px;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .search.search-active .search-control {
        width: 100%;
        flex: 1;
    }

        .search.search-active .search-control input {
            display: inline-block;
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text);
            font-size: 15px;
            min-width: 0;
            padding: 0;
        }

            .search.search-active .search-control input::placeholder {
                color: var(--dim);
            }

    .search.search-active .top-item,
    .search.search-active .lang,
    .search.search-active .lang-menu {
        display: none !important;
    }

    .search.search-active #search-result {
        position: fixed;
        top: 68px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 80px);
    }

.search-close-btn {
    position: absolute;
    top: 17px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 110;
}

/* Search dropdown results */
#search-result {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, calc(100vw - 32px));
    max-height: 70vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line-hi);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 60;
}

    #search-result.hidden {
        display: none;
    }

.search-hint-title {
    padding: 10px 12px;
    color: var(--neon-pink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.list-search-result {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-item a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--muted);
    border-radius: 10px;
    margin-bottom: 2px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
    font-size: 14px;
}

    .result-item a:hover {
        background: var(--surface-2);
        color: var(--text);
    }

.result-item .name {
    font-weight: 500;
}

.result-item .fallback-label {
    margin-left: 8px;
    color: var(--dim);
    font-style: italic;
    font-size: 11px;
}

.level-2 a {
    padding-left: 28px;
}

.level-3 a {
    padding-left: 48px;
}

.no-data-msg {
    padding: 16px;
    color: var(--dim);
    font-size: 13px;
    text-align: center;
}

/* "Top page" mini links in header (top-100, alphabet, …) */
.top-item {
    display: none;
    align-items: center;
    gap: 8px;
}

.top-page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

    .top-page:hover {
        background: var(--surface-2);
        border-color: var(--line-hi);
    }

    .top-page .ico {
        font-size: 14px;
    }

/* ---------- Language switcher ---------- */
.lang {
    position: relative;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

    .lang-trigger:hover {
        background: var(--surface-2);
        border-color: var(--line-hi);
    }

    .lang-trigger svg {
        width: 16px;
        height: 16px;
    }

    .lang-trigger .lang-label {
        display: none;
    }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 288px;
    max-width: calc(100vw - 32px);
    background: var(--surface);
    border: 1px solid var(--line-hi);
    border-radius: var(--radius);
    padding: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow-y: auto;
    z-index: 60;
}

    .lang-menu a {
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 13px;
        color: var(--muted);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        transition: all 0.2s var(--ease);
    }

        .lang-menu a:hover {
            background: var(--surface-2);
            color: var(--text);
        }

        .lang-menu a.active {
            background: var(--grad-soft);
            color: var(--text);
            font-weight: 600;
        }

        .lang-menu a.browser-match {
            color: #e1e173;
        }

            .lang-menu a.browser-match::before {
                /*content: '✓';*/
                color: var(--neon-cyan);
                margin-right: 4px;
            }

    .lang-menu .lang-code {
        color: var(--dim);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
    }

body.lang-menu-open {
    overflow: hidden;
}

/* ============================================================
   4. MAIN MENU (mobile-style dropdown)
   ============================================================ */
.dropdown-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(0);
    transition: transform 0.4s var(--ease);
    z-index: 49;
    padding: 24px 16px 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

    .dropdown-menu.hidden {
        transform: translateY(-110%);
        pointer-events: none;
    }

.menu-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.m-container {
    max-width: 1600px;
    margin: 0 auto;
}

.menu-level1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    list-style: none;
}

    .menu-level1 > li {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 14px;
    }

        .menu-level1 > li > a {
            display: inline-block;
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            padding-bottom: 10px;
            background: var(--grad);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

.menu-level2 {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

    .menu-level2 > li > a {
        display: block;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 13px;
        color: var(--muted);
        transition: all 0.2s var(--ease);
    }

        .menu-level2 > li > a:hover {
            background: var(--surface-2);
            color: var(--text);
        }

.menu-level3 {
    display: none;
}

.menu-toggle {
    display: none;
}

/* ============================================================
   5. HERO + BIG SEARCH + TAGS
   ============================================================ */
.hero {
    text-align: center;
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
}

    .hero h1,
    .hero .h1-title {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(36px, 7vw, 56px);
        line-height: 1.05;
        letter-spacing: -0.03em;
        margin-bottom: 16px;
    }

        .hero h1 .accent,
        .hero .accent {
            background: var(--grad);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .hero p,
    .hero .lead {
        color: var(--muted);
        font-size: clamp(15px, 1.8vw, 18px);
        max-width: 540px;
        margin: 0 auto 16px;
    }

/* Big central search */
.hero-search {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.hero-search-result {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line-hi);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 30;
    text-align: left;
}

    .hero-search-result.hidden {
        display: none;
    }

    .hero-search-result .search-no-result {
        display: none !important;
    }

.hero-search::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--grad);
    border-radius: calc(var(--radius) + 2px);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 0;
}

.hero-search:focus-within::before {
    opacity: 0.6;
}

.hero-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-hi);
    border-radius: var(--radius);
    padding: 6px 6px 6px 18px;
    z-index: 1;
}

    .hero-search-inner svg {
        width: 20px;
        height: 20px;
        color: var(--muted);
        flex-shrink: 0;
    }

    .hero-search-inner input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text);
        font-size: 15px;
        padding: 14px 12px;
        min-width: 0;
    }

        .hero-search-inner input::placeholder {
            color: var(--dim);
        }

    .hero-search-inner button {
        background: var(--grad);
        color: #0a0e1a;
        font-weight: 700;
        font-size: 15px;
        padding: 12px 20px;
        border-radius: 12px;
        cursor: pointer;
        transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
        flex-shrink: 0;
    }

        .hero-search-inner button:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 24px rgba(168,85,247,0.4);
        }

/* Capsule tags row */
.tags-wrap {
    margin-top: 12px;
    position: relative;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 6px 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .tags::-webkit-scrollbar {
        display: none;
    }

.tag {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

    .tag:hover {
        color: var(--text);
        border-color: var(--line-hi);
    }

    .tag.active {
        background: var(--grad);
        color: #0a0e1a;
        border-color: transparent;
        font-weight: 700;
    }

    .tag button {
        background: none;
        border: none;
        padding: 0;
        font: inherit;
        color: inherit;
        cursor: pointer;
    }

/* _PostMenuButtons partial outputs <a><button>name</button></a> per HOT category.
   Layout container as a flex row with auto-wrap. */
.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

    .tags-wrap a {
        flex-shrink: 0;
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 0;
        border-radius: 999px;
        background: var(--surface);
        border: 1px solid var(--line);
        color: var(--muted);
        text-decoration: none;
        overflow: hidden;
        transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
    }

        /* Gradient halo behind, fades in on hover */
        .tags-wrap a::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--grad-soft);
            opacity: 0;
            transition: opacity 0.3s var(--ease);
            z-index: 0;
            pointer-events: none;
        }

        .tags-wrap a:hover {
            color: var(--text);
            border-color: transparent;
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(168,85,247,0.25);
        }

            .tags-wrap a:hover::before {
                opacity: 1;
            }

        .tags-wrap a:active {
            transform: translateY(0);
        }

        .tags-wrap a button {
            position: relative;
            z-index: 1;
            background: transparent;
            border: none;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 600;
            color: inherit;
            cursor: pointer;
            white-space: nowrap;
            letter-spacing: 0.01em;
            line-height: 1;
        }

            /* Tiny "#" prefix for tag-like feel */
            .tags-wrap a button::before {
                content: '#';
                margin-right: 4px;
                color: var(--neon-cyan);
                font-weight: 700;
                opacity: 0.85;
                transition: color 0.25s var(--ease);
            }

        .tags-wrap a:hover button::before {
            color: var(--neon-pink);
            opacity: 1;
        }

/* category-selection block (used by _PostMenuButtons partial) */
.category-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px 4px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

    .category-selection a {
        text-decoration: none;
        flex-shrink: 0;
    }

        .category-selection a button {
            padding: 10px 18px;
            border-radius: 999px;
            background: var(--surface);
            border: 1px solid var(--line);
            color: var(--muted);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s var(--ease);
            white-space: nowrap;
        }

            .category-selection a button:hover {
                color: var(--text);
                border-color: var(--line-hi);
                background: var(--surface-2);
            }

/* ============================================================
   6. PAGE INFO HEADINGS (h1/h2 wrappers)
   ============================================================ */
.page-info {
    padding: 36px 16px 16px;
    text-align: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

    .page-info h1 {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(28px, 4vw, 44px);
        letter-spacing: -0.02em;
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 4px;
    }

    .page-info h2 {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(22px, 3vw, 32px);
        letter-spacing: -0.02em;
        color: var(--text);
    }

    .page-info .desc {
        color: var(--muted);
        font-size: 15px;
        max-width: 820px;
        margin: 12px auto 0;
        line-height: 1.7;
    }

        .page-info .desc p {
            margin-bottom: 10px;
        }

/* Section head with link */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0 20px;
    gap: 12px;
    flex-wrap: wrap;
}

    .section-head h2 {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(22px, 3vw, 32px);
        letter-spacing: -0.02em;
    }

    .section-head a {
        font-size: 13px;
        font-weight: 600;
        color: var(--neon-cyan);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* ============================================================
   7. PFP CARD GRID
   ============================================================ */
.grid,
.grid-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 24px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Each card from _BoxList partial: .post-card > .box-card > <a> */
.post-card {
    position: relative;
}

.box-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.4s var(--ease);
}

    .box-card > a {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .box-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
        opacity: 0;
    }

        .box-card img.loaded {
            opacity: 1;
        }

    .box-card:hover {
        transform: translateY(-4px);
    }

        .box-card:hover img {
            transform: scale(1.08);
        }

    /* p-4 = inner overlay shown on hover (statistics + title) */
    .box-card .p-4 {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 40%, rgba(10,14,26,0.85) 100%);
        opacity: 0;
        transition: opacity 0.35s var(--ease);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 14px;
        gap: 10px;
    }

    .box-card:hover .p-4 {
        opacity: 1;
    }

.text-item {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.3;
    transform: translateY(8px);
    transition: transform 0.35s var(--ease) 0.05s;
    margin: 0;
}

.box-card:hover .text-item {
    transform: translateY(0);
}

/* Statistic row (print/download/like) */
.statistic-show {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.35s var(--ease) 0.1s, opacity 0.35s var(--ease) 0.1s;
}

.box-card:hover .statistic-show {
    transform: translateY(0);
    opacity: 1;
}

.statistic {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.statistic-text {
    font-variant-numeric: tabular-nums;
}

.small-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
}

.icon-print {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 6 2 18 2 18 9'/><path d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/><rect x='6' y='14' width='12' height='8'/></svg>");
}

.icon-download {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>");
}

.icon-heart {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>");
}

/* Tiny corner badge */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(10,14,26,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line-hi);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    z-index: 2;
}

    .card-badge.hot,
    .card-badge.matching {
        background: var(--grad);
        color: #0a0e1a;
        border-color: transparent;
    }

/* ============================================================
   7b. DETAIL PAGE — breadcrumb / showcase / info
   ============================================================ */
.crumbs {
    padding: 24px 0 8px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

    .crumbs a {
        color: var(--muted);
        transition: color 0.25s var(--ease);
    }

        .crumbs a:hover {
            color: var(--text);
        }

    .crumbs .sep {
        opacity: 0.4;
    }

    .crumbs .curr {
        color: var(--text);
    }

.showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0 60px;
}

.preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.stage {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.pfp-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 0 0 1px var(--line-hi), 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(168,85,247,0.18);
    transition: border-radius 0.5s var(--ease), max-width 0.4s var(--ease);
}

    .pfp-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pfp-frame::before {
        content: '';
        position: absolute;
        inset: -40px;
        background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 60%);
        z-index: -1;
        pointer-events: none;
    }

.preview.circle .pfp-frame {
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--neon-purple), 0 0 60px rgba(168,85,247,0.45);
}

.shape-toggle {
    display: inline-flex;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

    .shape-toggle button {
        padding: 9px 18px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s var(--ease);
    }

        .shape-toggle button svg {
            width: 14px;
            height: 14px;
        }

        .shape-toggle button.active {
            background: var(--grad);
            color: #0a0e1a;
        }

/* Share row dưới shape-toggle — 1 hàng, không wrap */
.share-row {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .share-row .share-btn {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
        text-decoration: none;
        flex-shrink: 0;
    }

        .share-row .share-btn svg {
            width: 18px;
            height: 18px;
        }

        .share-row .share-btn:hover {
            transform: translateY(-2px);
            color: #fff;
            border-color: transparent;
        }

    .share-row .share-fb:hover {
        background: #1877f2;
    }

    .share-row .share-pin:hover {
        background: #e60023;
    }

    .share-row .share-x:hover {
        background: #000;
        color: #fff;
    }

    .share-row .share-wa:hover {
        background: #25d366;
    }

    .share-row .share-reddit:hover {
        background: #ff4500;
    }

    .share-row .share-copy:hover {
        background: var(--surface-2);
        border-color: var(--line-hi);
        color: var(--text);
    }

.info {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .info .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--neon-cyan);
    }

        .info .eyebrow::before {
            content: '';
            width: 18px;
            height: 1px;
            background: var(--neon-cyan);
        }

    .info h1 {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(28px, 4vw, 44px);
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

        .info h1 .accent {
            background: var(--grad);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .info .description {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.75;
    }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .meta .chip {
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        font-size: 12px;
        font-weight: 500;
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .meta .chip svg {
            width: 13px;
            height: 13px;
            color: var(--neon-cyan);
        }

        .meta .chip strong {
            color: var(--text);
            font-weight: 600;
        }

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.btn-primary {
    position: relative;
    padding: 18px 28px;
    border-radius: 14px;
    background: var(--grad);
    color: #0a0e1a;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
    overflow: hidden;
    border: none;
}

    .btn-primary svg {
        width: 18px;
        height: 18px;
    }

    .btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
        opacity: 0;
        transition: opacity 0.4s var(--ease);
    }

    .btn-primary:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 12px 40px rgba(168,85,247,0.55), 0 0 0 1px rgba(168,85,247,0.4);
    }

        .btn-primary:hover::before {
            opacity: 1;
        }

    .btn-primary:active {
        transform: translateY(0) scale(1);
    }

.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-secondary {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line-hi);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

    .btn-secondary svg {
        width: 15px;
        height: 15px;
    }

    .btn-secondary:hover {
        border-color: var(--neon-purple);
        color: var(--neon-purple);
        transform: translateY(-1px);
    }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

    .tag-row a {
        font-size: 12px;
        color: var(--muted);
        padding: 6px 12px;
        border-radius: 999px;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        transition: all 0.25s var(--ease);
    }

        .tag-row a:hover {
            color: var(--text);
            border-color: var(--line-hi);
        }

/* ============================================================
   7c. ERROR PAGE (404 / 500)
   ============================================================ */
.error-page {
    text-align: center;
    padding: 80px 16px 120px;
    max-width: 640px;
    margin: 0 auto;
}

    .error-page .error-code {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(96px, 18vw, 180px);
        line-height: 1;
        letter-spacing: -0.04em;
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 8px;
    }

    .error-page .error-title {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: clamp(24px, 3vw, 36px);
        color: var(--text);
        margin-bottom: 12px;
    }

    .error-page .error-message {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .error-page .btn-primary {
        display: inline-flex;
    }

/* ============================================================
   7d. ARTICLE LAYOUT (ArticleList / ArticleDetail)
   ============================================================ */
.photo-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 40px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

    .photo-detail-container .l1,
    .photo-detail-container .l2 {
        min-width: 0;
    }

.info-container {
    padding: 16px 0 40px;
}

    .info-container .main-content,
    .photo-detail-container .l1 {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 28px;
    }

    .info-container .detail,
    .photo-detail-container .detail {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.8;
    }

        .info-container .detail h1,
        .info-container .detail h2,
        .info-container .detail h3,
        .photo-detail-container .detail h1,
        .photo-detail-container .detail h2,
        .photo-detail-container .detail h3 {
            font-family: 'Space Grotesk', 'Inter', sans-serif;
            color: var(--text);
            margin: 24px 0 12px;
            line-height: 1.25;
        }

        .info-container .detail h2,
        .photo-detail-container .detail h2 {
            font-size: 24px;
        }

        .info-container .detail h3,
        .photo-detail-container .detail h3 {
            font-size: 19px;
        }

        .info-container .detail p,
        .photo-detail-container .detail p {
            margin-bottom: 14px;
        }

        .info-container .detail strong,
        .photo-detail-container .detail strong {
            color: var(--text);
        }

        .info-container .detail a,
        .photo-detail-container .detail a {
            color: var(--neon-cyan);
            border-bottom: 1px solid rgba(6,182,212,0.4);
            transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
        }

            .info-container .detail a:hover,
            .photo-detail-container .detail a:hover {
                color: var(--text);
                border-color: var(--text);
            }

        .info-container .detail img,
        .photo-detail-container .detail img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius);
            margin: 12px 0;
        }

        .info-container .detail ul,
        .info-container .detail ol,
        .photo-detail-container .detail ul,
        .photo-detail-container .detail ol {
            margin: 0 0 14px 24px;
        }

        .info-container .detail li,
        .photo-detail-container .detail li {
            margin-bottom: 6px;
        }

/* Article box list (ArticleBoxList partial) */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0 24px;
}

    .article-list .article-card,
    .article-list > a,
    .article-list > div {
        background: var(--bg-soft);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
    }

        .article-list .article-card:hover,
        .article-list > a:hover {
            transform: translateY(-2px);
            border-color: var(--line-hi);
        }

    .article-list img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .article-list h2,
    .article-list h3,
    .article-list .title {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 600;
        font-size: 16px;
        color: var(--text);
        padding: 12px 14px 4px;
        margin: 0;
    }

    .article-list p,
    .article-list .summary {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
        padding: 0 14px 14px;
        margin: 0;
    }

/* Description block + general terms text on Detail */
.detail-rich {
    color: #1bd5ff;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 24px;
}

    .detail-rich p {
        margin-bottom: 12px;
    }

    .detail-rich strong {
        color: var(--text);
    }

/* ============================================================
   8. PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 32px 0 16px;
}

    .pagination a,
    .pagination span,
    .pagination .page,
    .pagination .page-arrow {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.25s var(--ease);
    }

        .pagination a:hover,
        .pagination .page:hover,
        .pagination .page-arrow:hover {
            color: var(--text);
            border-color: var(--line-hi);
            background: var(--surface-2);
            transform: translateY(-1px);
        }

        .pagination .page.active,
        .pagination a.active,
        .pagination span.active {
            background: var(--grad);
            color: #0a0e1a;
            border-color: transparent;
            box-shadow: 0 6px 20px rgba(168,85,247,0.35);
        }

        .pagination .page-arrow svg {
            width: 16px;
            height: 16px;
        }

    .pagination .page-dots {
        background: transparent;
        border-color: transparent;
        color: var(--dim);
        padding: 0 6px;
    }

/* ============================================================
   9. FOOTER
   ============================================================ */
footer {
    margin-top: 80px;
    padding: 60px 0 32px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.f-container .grid,
.f-container > .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding-bottom: 0;
}

.f-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .f-col h3 {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text);
        margin-bottom: 14px;
    }

    .f-col ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 0;
    }

    .f-col a {
        font-size: 14px;
        color: var(--muted);
        transition: color 0.25s var(--ease);
    }

        .f-col a:hover {
            color: var(--text);
        }

.f-des {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 340px;
}

.logo-footer {
    width: 190px;
    height: auto;
    border-radius: 9999px;
}

.f-end {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--dim);
    text-align: center;
}

.social-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s var(--ease);
}

    .social-icon a:hover {
        transform: translateY(-2px);
    }

.f-col hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

/* ============================================================
   10. BACK TO TOP
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad);
    color: #0a0e1a;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    box-shadow: 0 10px 30px rgba(168,85,247,0.4);
    transition: transform 0.25s var(--ease);
}

    #backToTop:hover {
        transform: translateY(-2px);
    }

    #backToTop.hidden {
        display: none !important;
    }

/* ============================================================
   11. UTILITY
   ============================================================ */
.hidden {
    display: none !important;
}

.relative {
    position: relative;
}

.group {
    position: relative;
}

.lazy-grid {
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .lazy-grid.loaded {
        opacity: 1;
    }

/* Tailwind-style utilities used by shared partials */
.w-full {
    width: 100%;
}

.object-cover {
    object-fit: cover;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* ============================================================
   12. RESPONSIVE — TABLET (>=700px)
   ============================================================ */
@media (min-width: 700px) {
    .c-container,
    .f-container,
    .w-container,
    .container {
        padding: 0 24px;
    }

        .c-container > .w-container {
            padding-top: 18px;
            padding-bottom: 18px;
        }

    .grid,
    .grid-masonry {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .hero {
        padding-top: 30px;
        padding-bottom: 18px;
    }

    .lang-trigger .lang-label {
        display: inline;
    }

    .search-control {
        width: 280px;
    }

        .search-control input {
            display: inline-block;
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text);
            font-size: 14px;
            min-width: 0;
        }

            .search-control input::placeholder {
                color: var(--dim);
            }

    .top-item {
        display: none;
    }

    .f-container .grid {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        gap: 48px;
        text-align: left;
    }

    .f-col {
        align-items: flex-start;
    }

        .f-col ul {
            align-items: flex-start;
        }

    .f-end {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .menu-level1 {
        grid-template-columns: 1fr 1fr;
    }

    .preview {
        padding: 36px;
    }

    .pfp-frame {
        max-width: 310px;
    }

    .info {
        padding: 36px;
    }

    .article-list {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

/* ============================================================
   13. RESPONSIVE — TABLET LARGE (>=900px)
   ============================================================ */
@media (min-width: 900px) {
    .grid,
    .grid-masonry {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .menu-level1 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ============================================================
   14. RESPONSIVE — DESKTOP (>=1100px)
   ============================================================ */
@media (min-width: 1100px) {
    .c-container,
    .f-container,
    .w-container,
    .container {
        padding: 0 32px;
    }

    .nav-desktop {
        display: inline-flex;
    }

    .topnav-hamburger {
        display: none;
    }

    .grid,
    .grid-masonry {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }

    .hero {
        padding-top: 36px;
        padding-bottom: 22px;
    }

    .top-item {
        display: inline-flex;
    }

    .menu-level1 {
        grid-template-columns: repeat(4, 1fr);
    }

    .showcase {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 48px;
        padding: 40px 0 80px;
    }

    .preview {
        position: sticky;
        top: 100px;
        min-height: 540px;
    }

    .pfp-frame {
        max-width: 350px;
    }

    .photo-detail-container {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 32px;
        padding: 24px 0 60px;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

        .article-list .article-card,
        .article-list > a {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 0;
        }
}

/* ============================================================
   15. RESPONSIVE — DESKTOP XL (>=1400px)
   ============================================================ */
@media (min-width: 1400px) {
    .grid,
    .grid-masonry {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .pfp-frame {
        max-width: 480px;
    }
}

/* ============================================================
   16. ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
