:root {
    --bg: #060a0d;
    --panel: rgba(10, 17, 21, 0.82);
    --panel-strong: rgba(12, 20, 25, 0.94);
    --line: rgba(180, 202, 214, 0.16);
    --line-bright: rgba(217, 232, 240, 0.32);
    --text: #d8dde0;
    --muted: #7f8d94;
    --cold: #93aebc;
    --white: #f3f5f4;
}

.brand-profile {
    color: var(--cold);
}

.brand-rehab {
    color: var(--white);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px),
        radial-gradient(circle at 68% 22%, rgba(88, 124, 141, 0.34), transparent 34%),
        #060a0d;
    background-size: 92px 92px, 92px 92px, auto, auto;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
        radial-gradient(circle, rgba(255,255,255,0.14) 0 1px, transparent 1.5px);
    background-size: auto, 73px 73px;
    opacity: 0.17;
    mix-blend-mode: screen;
}

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

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

.site-shell {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.5);
}

.site-shell > main {
    flex: 1 0 auto;
}

.topbar {
    position: relative;
    min-height: 160px;
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 8, 11, 0.78);
}

.brand-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-left: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 0;
    text-transform: uppercase;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* A compact, tap-friendly social tab keeps the logo area uncluttered while
   leaving the links available in the upper-right corner on every page. */
.social-tab {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
}

.social-tab summary {
    list-style: none;
    cursor: pointer;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: rgba(4, 8, 11, 0.88);
    color: var(--cold);
    font: 600 10px/1 "IBM Plex Mono", monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-tab summary::-webkit-details-marker {
    display: none;
}

.social-tab summary::after {
    content: "+";
    margin-left: 7px;
    color: var(--white);
    font-size: 14px;
}

.social-tab[open] summary {
    border-color: var(--cold);
    border-bottom-right-radius: 0;
}

.social-tab[open] summary::after {
    content: "−";
}

.social-tab .header-social-links {
    position: absolute;
    top: 31px;
    right: 0;
    padding: 8px;
    border: 1px solid var(--cold);
    border-radius: 3px 0 3px 3px;
    background: rgba(4, 8, 11, 0.96);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.header-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--cold);
    transition: all 0.25s ease;
    text-decoration: none;
}

.header-social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(147, 174, 188, 0.25);
}

.brand-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-bright);
    color: #dce8ee;
    font: 700 44px/1 "Barlow Condensed", sans-serif;
    background: rgba(255, 255, 255, 0.025);
}

.brand-mark.small {
    width: 46px;
    height: 46px;
    font-size: 28px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand strong {
    display: block;
    color: var(--white);
    font: 500 28px/0.95 "Barlow Condensed", sans-serif;
    letter-spacing: 6px;
}

.brand strong span {
    color: var(--cold);
}

.brand em {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 5px;
}

.brand-logo {
    display: block;
    height: 56px;
    width: auto;
    mix-blend-mode: screen;
}

.primary-nav {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.primary-nav a {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 0 26px;
    color: var(--white);
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.06);
    font: 600 18px/1 "Barlow Condensed", sans-serif;
    letter-spacing: 2px;
}

.primary-nav b {
    color: var(--cold);
    font: 500 13px/1 "IBM Plex Mono", monospace;
}

.utility-nav {
    position: absolute;
    top: 15px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b0babf;
    text-transform: uppercase;
    font-size: 11px;
}

.utility-nav a + a {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.utility-nav button {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font: 600 11px/1 "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--cold);
    color: var(--white);
}

.mobile-menu-toggle span {
    display: block;
    width: 4px;
    height: 16px;
    background: currentColor;
}

.mobile-menu-toggle span:nth-child(1) { height: 12px; }
.mobile-menu-toggle span:nth-child(2) { height: 16px; }
.mobile-menu-toggle span:nth-child(3) { height: 10px; }
.mobile-menu-toggle span:nth-child(4) { height: 14px; }
.mobile-menu-toggle span { display: none; }

.utility-nav span {
    width: 4px;
    height: 16px;
    background: var(--text);
}

/* Dropdown Navigation */
.primary-nav {
    position: static;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.primary-nav > .nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

.primary-nav > .nav-item > a {
    flex: 1;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    color: var(--white);
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.06);
    font: 600 13px/1.15 "Barlow Condensed", sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.primary-nav > .nav-item > a:hover,
.primary-nav > .nav-item.active > a {
    background: rgba(88, 144, 171, 0.15);
}

.primary-nav > .coming-soon-nav > .coming-soon-link {
    position: relative;
}

.coming-soon-link::after {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 120;
    width: max-content;
    max-width: 230px;
    padding: 10px 12px;
    content: attr(data-tooltip);
    color: var(--white);
    background: rgba(7, 13, 16, 0.98);
    border: 1px solid var(--line-bright);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    font: 500 10px/1.45 "IBM Plex Mono", monospace;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.coming-soon-link:hover::after,
.coming-soon-link:focus-visible::after,
.coming-soon-link.is-tooltip-open::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.dropdown-menu .coming-soon-link {
    position: relative;
}

.dropdown-menu .coming-soon-link::after {
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%) translateX(-6px);
    padding: 6px 10px;
    font-size: 10px;
    line-height: 1;
    z-index: 130;
    white-space: nowrap;
}

.dropdown-menu .coming-soon-link:hover::after,
.dropdown-menu .coming-soon-link:focus-visible::after,
.dropdown-menu .coming-soon-link.is-tooltip-open::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.primary-nav > .nav-item > a .nav-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(88, 144, 171, 0.3);
    border-radius: 3px;
    color: var(--cold);
    font: 500 9px/1 "IBM Plex Mono", monospace;
    letter-spacing: 0.5px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 160px;
    max-width: 220px;
    padding: 8px 0;
    background: rgba(6, 12, 16, 0.98);
    border: 1px solid var(--line-bright);
    border-top: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.dropdown-menu.wallpaper-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    width: 440px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    right: auto;
    overflow: visible;
}

.dropdown-menu.wallpaper-menu .dropdown-divider {
    grid-column: 1 / -1;
    margin: 4px 0;
}

.dropdown-menu.wallpaper-menu a {
    min-width: 0;
    padding: 7px 10px;
    font-size: 10px;
}

.primary-nav > .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 0;
    gap: 8px;
    padding: 9px 14px;
    color: var(--text);
    font: 500 11px/1.25 "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(88, 144, 171, 0.12);
    border-left-color: var(--cold);
    color: var(--white);
    padding-left: 16px;
}

.dropdown-menu a .dropdown-badge {
    margin-left: auto;
    padding: 2px 6px;
    background: rgba(88, 144, 171, 0.25);
    border-radius: 3px;
    color: var(--cold);
    font: 500 9px/1 "IBM Plex Mono", monospace;
    font-size: 9px;
}

.dropdown-menu .dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid var(--line);
}


.hero-panel {
    min-height: 580px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #040709;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 900ms ease;
}

.hero-slide.active,
.hero-slide.is-visible {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 7, 9, 0.96) 0%, rgba(4, 7, 9, 0.85) 45%, rgba(4, 7, 9, 0.4) 80%),
        linear-gradient(0deg, rgba(3, 6, 8, 0.96), rgba(3, 6, 8, 0.5) 30%, transparent 70%);
    pointer-events: none;
}

.hero-wallpaper-name {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 3;
    text-align: right;
    padding: 12px 20px;
    background: rgba(4, 7, 9, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-name-label {
    color: var(--muted);
    text-transform: uppercase;
    font: 500 12px/1.2 "IBM Plex Mono", monospace;
    display: block;
    margin-bottom: 6px;
}

.hero-wallpaper-name a {
    color: var(--cold);
    text-decoration: none;
    font: 500 20px/1.3 "Barlow Condensed", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.hero-wallpaper-name a:hover {
    color: var(--white);
}

.hero-name-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hero-wallpaper-name a:hover .hero-name-arrow {
    transform: translateX(4px);
}

.hero-panel::after,
.browse-strip::after,
.content-grid > section::after,
.side-panel::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(255,255,255,0.035);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(560px, 92%);
    margin-left: 62px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.kicker,
.section-heading h2,
.about-panel h2,
.side-panel h2 {
    margin: 0;
    color: var(--cold);
    text-transform: uppercase;
    font: 500 14px/1.2 "IBM Plex Mono", monospace;
}

.hero-copy h1 {
    margin: 18px 0 22px;
    color: #ffffff;
    text-transform: uppercase;
    font: 700 clamp(42px, 5vw, 80px)/0.96 "Barlow Condensed", sans-serif;
    letter-spacing: 2px;
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-copy h1::after {
    display: block;
    width: 100px;
    height: 2px;
    margin-top: 22px;
    content: "";
    background: linear-gradient(90deg, var(--line-bright), transparent);
}

.intro {
    max-width: 410px;
    margin: 0 0 40px;
    color: #dce4e8;
    font-size: 17px;
    line-height: 1.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-actions,
.social-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button,
.button.primary,
.button.ghost,
.wide-link,
#loadMoreBtn,
#resetFilters,
.btn,
.social-row a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    text-transform: uppercase;
    border: 1px solid var(--line-bright);
    border-radius: 3px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    font: 600 13px/1 "IBM Plex Mono", monospace;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover,
.button.primary:hover,
.button.ghost:hover,
.wide-link:hover,
#loadMoreBtn:hover,
#resetFilters:hover,
.btn:hover,
.social-row a:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border-color: var(--cold);
    color: var(--cold);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.browse-strip {
    position: relative;
    padding: 28px 30px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 12, 15, 0.84);
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading > a {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
}

.pager {
    display: flex;
    gap: 8px;
}

.pager button {
    width: 38px;
    height: 38px;
    color: var(--text);
    border: 1px solid var(--line-bright);
    background: transparent;
    font-size: 20px;
}

.category-carousel {
    overflow: hidden;
}

.category-track {
    display: flex;
    gap: 9px;
}

.cat-item {
    min-height: 124px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
    color: #c5cdd1;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    font-size: 12px;
    text-decoration: none;
    flex: 0 0 calc((100% - 63px) / 8);
}

.cat-icon {
    color: var(--white);
    font-size: 25px;
}

.cat-label {
    font-family: "IBM Plex Mono", monospace;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 34px;
    padding: 26px 30px 20px;
    background: rgba(4, 9, 11, 0.9);
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.content-grid > section,
.side-panel {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
}

.featured-panel {
    padding: 24px 24px 34px;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.wallpaper-grid article {
    border-right: 1px solid rgba(255,255,255,0.08);
    padding-right: 14px;
}

.wallpaper-grid img {
    width: 100%;
    aspect-ratio: 1.36;
    object-fit: cover;
    border: 1px solid var(--line);
    filter: grayscale(0.75) contrast(1.15) brightness(0.82);
}

.wallpaper-grid p {
    margin: 18px 0 7px;
    color: #cbd3d6;
    font-size: 14px;
}

.wallpaper-grid h3,
.covers-panel h3 {
    margin: 0;
    color: #dce2e4;
    text-transform: uppercase;
    font: 500 18px/1.1 "Barlow Condensed", sans-serif;
    letter-spacing: 2px;
}

.wallpaper-grid span,
.covers-panel span,
.covers-panel p {
    color: var(--muted);
    font-size: 12px;
}

.side-panel {
    /* The homepage now has four content panels in the main column. Spanning
       all four keeps their rows content-sized instead of stretching Featured. */
    grid-row: span 4;
    /* Do not stretch the border down through empty grid rows. */
    align-self: start;
    padding: 24px;
}

.side-panel section + section {
    margin-top: 32px;
}

.tag-cloud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
}

.tag-cloud a {
    min-width: 0;
    padding: 10px 6px;
    text-align: center;
    color: #c5ced2;
    text-transform: uppercase;
    border: 1px solid var(--line-bright);
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.tag-cloud a:hover,
.tag-cloud a:focus-visible {
    color: #fff;
    border-color: var(--accent-cyan);
    background: rgba(0, 201, 255, 0.08);
}

.resolution-list {
    padding: 0;
    margin: 18px 0;
    list-style: none;
}

.resolution-list li {
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}

.resolution-list a {
    display: block;
    padding: 10px 0;
    color: #b8c1c6;
    text-transform: uppercase;
    font-size: 14px;
}

.wide-link {
    width: 100%;
    justify-content: flex-start;
    color: #bdc7cc;
    min-height: 46px;
}

.about-panel {
    padding: 26px 30px;
}

.about-panel p.about-lead {
    color: var(--white);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

.about-panel p {
    max-width: 100%;
    color: #c3cacc;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-motto {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--cold);
    font: 600 12px/1.4 "IBM Plex Mono", monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.social-row {
    margin-top: 30px;
}

.social-row a {
    min-height: 46px;
    gap: 12px;
    padding: 0 18px;
    font-size: 11px;
}

.covers-panel {
    padding: 24px;
}

.covers-panel .cover-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.covers-panel article {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease;
}

.covers-panel article:hover {
    background: rgba(255,255,255,0.02);
}

.covers-panel img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border: 1px solid var(--line-bright);
    filter: grayscale(0.6) contrast(1.1) brightness(0.82);
    transition: filter 0.3s ease, transform 0.3s ease;
    border-radius: 3px;
}

.covers-panel article:hover img {
    filter: grayscale(0.2) contrast(1.05) brightness(0.95);
    transform: scale(1.02);
}

.covers-panel h3 {
    margin: 0 0 6px;
    color: var(--white);
    font: 600 17px/1.2 "Barlow Condensed", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.covers-panel p {
    margin: 0 0 4px;
    color: var(--cold);
    font: 500 11px/1 "IBM Plex Mono", monospace;
    text-transform: uppercase;
}

.covers-panel span {
    color: var(--muted);
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
}

.footer-bar {
    min-height: 88px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 26px;
    padding: 18px 30px;
    border-top: 1px solid var(--line);
    background: rgba(5, 10, 12, 0.95);
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

.footer-bar a,
.footer-bar p {
    margin: 0;
    color: #aab5bb;
    text-transform: uppercase;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .site-shell {
        width: 100%;
    }

    .topbar {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .brand {
        padding: 24px 24px 10px;
    }

    .primary-nav {
        flex-wrap: wrap;
        border-top: 1px solid var(--line);
    }

    .primary-nav > .nav-item > a {
        min-height: 80px;
        font-size: 11px;
        padding: 0 10px;
        letter-spacing: 1px;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 11px;
    }

    .cat-item {
        flex: 0 0 calc((100% - 27px) / 4);
    }

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

    .side-panel {
        grid-row: auto;
    }

    .horizontal-ad-section:not(.top-ad-section) {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .topbar {
        min-height: 0;
    }

    .brand strong {
        font-size: 28px;
        letter-spacing: 5px;
    }

    .brand em {
        letter-spacing: 3px;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
        font-size: 36px;
    }

    .utility-nav {
        position: static;
        justify-content: flex-end;
        padding: 14px 18px;
        border-top: 1px solid var(--line);
    }

    .primary-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-menu-open .primary-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 12, 16, 0.98);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu-open .primary-nav > .nav-item {
        flex-direction: column;
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu-open .primary-nav > .nav-item > a {
        min-height: 60px;
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .mobile-menu-open .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-width: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-open .primary-nav > .nav-item.mobile-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 420px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

    .hero-panel {
        min-height: 500px;
        background-position: center;
    }

    .hero-copy {
        margin-left: 24px;
    }

    .hero-copy h1 {
        font-size: 72px;
    }

    .cat-item {
        flex: 0 0 calc((100% - 9px) / 2);
    }

    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid,
    .browse-strip {
        padding-right: 16px;
        padding-left: 16px;
    }

    .covers-panel article {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .cat-item {
        flex: 0 0 100%;
    }

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

    .button {
        width: 100%;
    }
}

/* Ad Banner Placeholders */
.ad-banner-section {
    margin: 20px 0;
    width: 100%;
}

.ad-label {
    font: 500 11px/1 "IBM Plex Mono", monospace;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: left;
}

.ad-placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0 auto;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.ad-placeholder:hover {
    border-color: var(--cold);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.ad-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
}

.ad-text-main {
    color: var(--white);
    font: 700 14px/1 "IBM Plex Mono", monospace;
    letter-spacing: 2px;
}

.ad-text-sub {
    color: var(--muted);
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
}

.vertical-ad {
    width: 100%;
    min-height: 300px;
}

.phone-wallpaper-panel {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.phone-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.phone-section-heading h2 {
    margin: 0;
}

.phone-section-heading span,
.phone-wallpaper-intro,
.phone-card-controls {
    color: var(--muted);
    font: 500 10px/1.45 "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.phone-wallpaper-intro {
    margin: 8px 0 14px;
    text-transform: none;
    letter-spacing: 0;
}

.phone-card-stack {
    position: relative;
    height: 520px;
    isolation: isolate;
    overflow: hidden;
    contain: paint;
}

.phone-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 510px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    gap: 9px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 320ms ease, opacity 180ms ease, border-color 180ms ease;
}

.phone-card img {
    width: 100%;
    height: 452px;
    margin: 0 auto;
    object-fit: cover;
    border: 0;
}

.phone-card span {
    text-align: center;
    color: var(--white);
    font: 600 18px/1 "Barlow Condensed", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.phone-card b {
    color: var(--cold);
    font: 600 10px/1 "IBM Plex Mono", monospace;
    letter-spacing: .7px;
    text-transform: uppercase;
    text-align: center;
}

.phone-card:hover,
.phone-card:focus-visible {
    outline: 1px solid var(--cold);
    outline-offset: 4px;
}

.phone-card-0 { z-index: 3; transform: none; }
.phone-card-1,
.phone-card-2 { display: none; }
.phone-card.is-switching { opacity: 0; transform: translateY(-10px) scale(.98); }

.phone-card-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.phone-card-controls button {
    width: 28px;
    height: 26px;
    color: var(--text);
    border: 1px solid var(--line-bright);
    background: transparent;
    font-size: 16px;
    line-height: 1;
}

.horizontal-ad-section {
    padding: 24px 30px;
    border-top: 1px solid var(--line);
    max-width: 1440px;
    margin: 0 auto;
}

/* The bottom leaderboard follows the left content column, leaving the
   sidebar lane visually clear. The top ad remains full width. */
.horizontal-ad-section:not(.top-ad-section) {
    width: calc(100% - 412px);
    margin-left: 24px;
    margin-right: 0;
    border-top: 0;
}

.top-ad-section {
    margin: 0 auto;
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.horizontal-ad {
    width: 100%;
    max-width: 970px;
    min-height: 90px;
}

/* Sections Showcase Grid */
.sections-showcase-panel {
    padding: 26px 24px 34px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.section-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-bright);
    transform: translateY(-2px);
}

.section-badge {
    color: var(--cold);
    font: 500 11px/1 "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-card h3 {
    margin: 0 0 8px;
    color: var(--white);
    font: 600 20px/1.2 "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-card p {
    margin: 0 0 16px;
    color: #9cb0b8;
    font-size: 13px;
    line-height: 1.6;
    flex-grow: 1;
}

.section-link {
    color: var(--cold);
    font: 600 12px/1 "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.section-card:hover .section-link {
    color: var(--white);
}

/* About Section Global Styling */
.about-panel {
    padding: 35px 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.01);
}

.about-panel h2 {
    font: 600 22px/1.2 "Barlow Condensed", sans-serif;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px;
}

.about-panel p.about-lead {
    color: var(--white);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
    font-weight: 500;
}

.about-panel p {
    color: #b0c0c7;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 900px;
}

.about-motto {
    margin: 20px 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    border-left: 3px solid var(--cold);
    border-top: none;
    color: var(--white);
    font: 600 13px/1.4 "IBM Plex Mono", monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.about-links-list {
    margin-top: 22px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-links-list li {
    position: relative;
    padding-left: 22px;
    color: #9cb0b8;
    font-size: 14px;
    line-height: 1.6;
}

.about-links-list li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--cold);
    font-size: 14px;
}

.about-links-list a {
    color: var(--cold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.about-links-list a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Strict 2-Line Clamping for Titles & Badges */
.hero-copy h1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Wallpaper / Cover / Layout Badge (Now Showing) */
.hero-wallpaper-name {
    position: absolute;
    bottom: 60px;
    right: 40px;
    z-index: 3;
    text-align: right;
    padding: 12px 20px;
    background: rgba(4, 7, 9, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    max-width: 360px;
}

.hero-name-label {
    color: var(--muted);
    text-transform: uppercase;
    font: 500 12px/1.2 "IBM Plex Mono", monospace;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

.hero-wallpaper-name a {
    color: var(--cold);
    text-decoration: none;
    font: 500 20px/1.3 "Barlow Condensed", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    transition: color 0.3s ease;
    max-height: 2.6em;
    line-height: 1.25;
}

.hero-wallpaper-name a:hover {
    color: var(--white);
}

.hero-name-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hero-wallpaper-name a:hover .hero-name-arrow {
    transform: translateX(4px);
}

.archive-meta h2,
.archive-meta h2 a,
.featured-group article h3,
.covers-group article h3,
.section-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.6em;
    line-height: 1.2;
}
