/* =========================================================
   VARIABLES
========================================================= */

:root {
    --site-width: 1400px;
    --sidebar-width: 300px;
    --gap: 20px;
    --bg: #141618;
    --bg-dark: #101214;
    --surface: #191b1d;
    --surface-2: #1d2125;
    --surface-raised: #181818;
    --button-surface-start: #252b2f;
    --button-surface-end: #1b2023;
    --button-hover-start: #2b3437;
    --button-hover-end: #202a2c;
    --border: #2d3437;
    --border-light: #3a4247;
    --border-subtle: rgba(255,255,255,.055);
    --border-faint: rgb(35 35 35);
    --text: #edf1f2;
    --text-secondary: #a7b0b4;
    --text-muted: #7d888d;
    --text-body: #c3c3c3;
    --hero-description-color: #9ba2a7;
    --hero-copy-separator: rgb(155 162 167 / 5%);
    --new-builds-intro-bg: linear-gradient(125deg, rgba(var(--accent-rgb), .105) 0%, rgba(255, 255, 255, .022) 52%, rgba(var(--black-rgb), .08) 100%);
    --new-builds-intro-border: rgba(var(--accent-mint-rgb), .18);
    --new-builds-icon-bg: linear-gradient(145deg, var(--accent) 0%, var(--accent-strong) 58%, var(--accent-deep) 100%);
    --new-builds-watermark-opacity: .065;
    --new-builds-watermark-size: 205px;
    --build-hero-surface: #111414;
    --build-hero-surface-rgb: 17, 20, 20;
    --build-hero-bg: linear-gradient(135deg, var(--surface-raised) 0%, var(--bg) 60%, var(--bg-dark) 100%);
    --build-hero-info-bg: linear-gradient(115deg, var(--build-hero-surface) 0%, var(--build-hero-surface) 60%, rgba(var(--build-hero-surface-rgb), .98) 82%, rgba(var(--build-hero-surface-rgb), .94) 100%);
    --build-hero-image-transition: linear-gradient(90deg, var(--build-hero-surface) 0%, rgba(var(--build-hero-surface-rgb), .99) 18%, rgba(var(--build-hero-surface-rgb), .95) 34%, rgba(var(--build-hero-surface-rgb), .82) 52%, rgba(var(--build-hero-surface-rgb), .56) 70%, rgba(var(--build-hero-surface-rgb), .24) 86%, rgba(var(--build-hero-surface-rgb), 0) 100%);
    --build-hero-gallery-shadow: 0 18px 44px rgba(0, 0, 0, .2);
    --build-hero-rating-border: rgba(255, 190, 74, .23);
    --build-hero-rating-bg: rgba(255, 190, 74, .055);
    --build-hero-rating-star: #f0b64c;
    --build-hero-feature-border: rgba(173, 193, 195, .105);
    --build-hero-feature-bg: linear-gradient(145deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .018));
    --build-hero-feature-hover-bg: linear-gradient(145deg, rgba(var(--accent-rgb), .075), rgba(255, 255, 255, .02));
    --build-hero-feature-icon-border: rgba(var(--accent-mint-rgb), .08);
    --build-hero-feature-icon-bg: radial-gradient(circle at 35% 28%, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .075) 72%);
    --build-hero-secondary-border: rgba(173, 193, 195, .15);
    --build-hero-secondary-bg: linear-gradient(135deg, #202629 0%, #171c1f 100%);
    --build-hero-secondary-hover-bg: linear-gradient(135deg, #263132 0%, #1b2524 100%);
    --build-hero-image-filter: saturate(.98) contrast(1.02) brightness(.95);
    --build-hero-image-hover-filter: saturate(1.04) contrast(1.06) brightness(.94);
    --build-hero-image-shade: linear-gradient(180deg, rgba(9, 12, 13, .025) 32%, rgba(9, 12, 13, .42) 100%), linear-gradient(90deg, rgba(9, 12, 13, .055), transparent 42%);
    --build-hero-thumbs-bg: rgba(12, 14, 15, .98);
    --build-hero-thumb-border: rgba(255, 255, 255, .1);
    --build-hero-nav-bg: #1a2022;
    --build-hero-thumbs-border: rgba(255, 255, 255, .075);
    --build-hero-thumbs-panel-bg: linear-gradient(145deg, #191b1d 0%, #141618 100%);
    --build-hero-feature-panel-border: rgba(255, 255, 255, .075);
    --build-hero-feature-panel-bg: linear-gradient(145deg, #191b1d 0%, #141618 100%);
    --white: #ffffff;
    --accent: #168b68;
    --accent-rgb: 22, 139, 104;
    --accent-strong: #0b805d;
    --accent-deep: #075e48;
    --accent-hover: #26a77f;
    --accent-bright: #20a77d;
    --accent-soft: #86d6b6;
    --accent-light: #9be0c4;
    --accent-pale: #b6f0d7;
    --accent-dark-rgb: 5, 91, 66;
    --accent-mint-rgb: 91, 195, 154;
    --accent-soft-rgb: 134, 214, 182;
    --accent-light-rgb: 155, 224, 196;
    --accent-glow-rgb: 134, 230, 193;
    --accent-pale-rgb: 155, 240, 207;
    --accent-dot-rgb: 52, 189, 145;
    --info-text: #c8e4f3;
    --info-accent: #5b8fa9;
    --info-rgb: 57, 105, 132;
    --info-dark-rgb: 30, 48, 58;
    --info-border-rgb: 104, 163, 195;
    --card-hover-border: var(--content-card-border);
    --post-hero-gradient: linear-gradient(118deg, var(--post-hero-start) 0%, var(--post-hero-mid) 58%, var(--bg) 100%);
    --post-hero-start: #141616;
    --post-hero-mid: #17191a;
    --info-bg-start: rgba(var(--info-rgb), .23);
    --info-bg-end: rgba(var(--info-dark-rgb), .35);
    --info-border: rgba(var(--info-border-rgb), .34);
    --shadow-card: 0 15px 35px rgba(var(--black-rgb), .25);
    --text-build-link: #b8c1c5;
    --accent-dot: #34bd91;
    --accent-hover-strong: #0e9069;
    --accent-hover-deep: #087153;
    --surface-faq-hover: #171b1d;
    --border-card: #2b3134;
    --content-card-border: #2b2b2b94;
    --card-torrent-bg: linear-gradient(135deg, #1d3a2f 0%, #172820 100%);
    --card-torrent-hover-bg: linear-gradient(135deg, #28513f 0%, #1d392d 100%);
    --card-torrent-border: rgba(var(--accent-mint-rgb), .22);
    --card-torrent-hover-border: rgba(var(--accent-mint-rgb), .36);
    --card-torrent-text: #c5ead8;
    --card-torrent-shadow: 0 5px 14px rgba(var(--accent-dark-rgb), .14);
    --card-torrent-hover-shadow: 0 8px 20px rgba(var(--accent-dark-rgb), .22);
    --separator-color: rgba(255,255,255,.065);
    --shadow-block: 0 8px 24px rgba(var(--black-rgb), .13), inset 0 1px 0 rgba(255,255,255,.018);
    --shadow-panel: 0 12px 34px var(--shadow-mid);
    --shadow-panel-inner: 0 8px 22px rgba(var(--black-rgb), .16);
    --button-primary-bg: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 55%, var(--accent-deep) 100%);
    --button-primary-hover-bg: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-hover-strong) 55%, var(--accent-hover-deep) 100%);
    --button-primary-border: rgba(var(--accent-glow-rgb), .2);
    --button-primary-border-hover: rgba(var(--accent-pale-rgb), .32);
    --button-primary-shadow: 0 8px 22px rgba(var(--accent-dark-rgb),.22), inset 0 1px 0 rgba(255,255,255,.1);
    --button-primary-hover-shadow: 0 11px 27px rgba(var(--accent-dark-rgb),.3), inset 0 1px 0 rgba(255,255,255,.12);
    --button-secondary-bg: linear-gradient(135deg, var(--button-surface-start) 0%, var(--button-surface-end) 100%);
    --button-secondary-hover-bg: linear-gradient(135deg, var(--button-hover-start) 0%, var(--button-hover-end) 100%);
    --button-secondary-border: #30383c;
    --button-secondary-hover-border: rgba(var(--accent-mint-rgb), .35);
    --button-blue-text: #e9f4f7;
    --button-blue-bg: linear-gradient(135deg, #2a4248 0%, #203137 100%);
    --button-blue-bg-hover: linear-gradient(135deg, #34535a 0%, #253b41 100%);
    --button-blue-border: rgba(115,170,183,.24);
    --button-blue-border-hover: rgba(115,170,183,.42);
    --button-purple-text: #e7eeec;
    --button-purple-bg: linear-gradient(135deg, #343c3f 0%, #232a2d 100%);
    --button-purple-bg-hover: linear-gradient(135deg, #3a4847 0%, #283331 100%);
    --button-purple-border: rgba(169,190,183,.2);
    --button-purple-border-hover: rgba(var(--accent-mint-rgb), .32);
    --button-green-text: #f2fff8;
    --button-green-bg: linear-gradient(135deg, var(--accent) 0%, #0b684d 100%);
    --button-green-bg-hover: linear-gradient(135deg, var(--accent-bright) 0%, #0d7657 100%);
    --button-green-border: rgba(var(--accent-mint-rgb), .3);
    --button-green-border-hover: rgba(var(--accent-pale-rgb), .4);
    --button-cyan-text: #e5efef;
    --button-cyan-bg: linear-gradient(135deg, #303f41 0%, #202a2c 100%);
    --button-cyan-bg-hover: linear-gradient(135deg, #394b4b 0%, #253432 100%);
    --button-cyan-border: rgba(142,175,170,.22);
    --button-cyan-border-hover: rgba(var(--accent-mint-rgb), .3);
    --button-orange-text: #e8eeee;
    --button-orange-bg: linear-gradient(135deg, #343b3e 0%, #22292c 100%);
    --button-orange-bg-hover: linear-gradient(135deg, #3d4949 0%, #263331 100%);
    --button-orange-border: rgba(171,188,191,.19);
    --button-orange-border-hover: rgba(var(--accent-mint-rgb), .3);
    --button-gray-text: #e6ebed;
    --button-gray-bg: linear-gradient(135deg, #303538 0%, #212629 100%);
    --button-gray-bg-hover: linear-gradient(135deg, #394145 0%, #272e31 100%);
    --button-gray-border: #3a4247;
    --button-gray-border-hover: #52605f;
    --button-outline-text: #b8c2c6;
    --button-outline-bg: rgba(255,255,255,.015);
    --surface-article: #181a1c;
    --article-param-background: linear-gradient(145deg, var(--surface-raised), var(--surface-article));
    --article-param-hover-background: linear-gradient(145deg, var(--surface), var(--surface-raised));
    --article-param-border: var(--content-card-border);
    --article-param-hover-border: rgba(var(--accent-mint-rgb), .34);
    --article-param-icon-border: rgba(var(--accent-mint-rgb), .22);
    --article-param-icon-background: linear-gradient(145deg, rgba(var(--accent-rgb), .17), rgba(var(--accent-deep-rgb), .28));
    --article-param-text: var(--text-body);
    --surface-interactive: #303538;
    --surface-picker: #202225;
    --topbar-surface: #24282a;
    --text-contrast: #edf0f2;
    --text-article: #aeb4b8;
    --text-meta: #aebbc0;
    --text-link-muted: #8f969b;
    --border-article: #262627;
    --button-secondary-text: #e4eaec;
    --hero-secondary-bg: linear-gradient(135deg, #292f33 0%, #191e21 100%);
    --hero-secondary-hover-bg: linear-gradient(135deg, #354044 0%, #202a2b 100%);
    --bg-rgb: 20, 22, 24;
    --hero-base: #111416;
    --hero-base-rgb: 17, 20, 22;
    --hero-feature-bg: rgba(27,30,32,.82);
    --hero-feature-hover-bg: rgba(47,51,54,.92);
    /*  Shared component palette tokens for recurring literal colors  */
    --surface-hover: #292e31;
    --surface-deep: #151719;
    --surface-article-deep: #1a1a1a;
    --border-dark: #2b2d2f;
    --surface-black: #161616;
    --text-emphasis: #eef0f2;
    --text-soft: #cbd8dc;
    --overlay-border: rgba(255,255,255,.08);
    --overlay-subtle: rgba(255,255,255,.04);
    --overlay-soft: rgba(255,255,255,.035);
    --overlay-inset: rgba(255,255,255,.025);
    --overlay-faint: rgba(255,255,255,.02);
    --overlay-section-highlight: rgb(251 251 251 / 3%);
    --shadow-overlay: rgba(var(--black-rgb), .45);
    --shadow-hover: rgba(var(--black-rgb), .22);
    --shadow-mid: rgba(var(--black-rgb), .2);
    /*  Component palette tokens: Hero, build picker, and related cards  */
    --black: #000000;
    --black-rgb: 0, 0, 0;
    --hero-shadow-rgb: 8, 10, 11;
    --hero-vignette-rgb: 10, 12, 13;
    --picker-overlay-rgb: 12, 15, 16;
    --accent-deep-rgb: 7, 94, 72;
    --accent-highlight-rgb: 116, 218, 181;
    --picker-option-start-rgb: 35, 39, 41;
    --picker-option-end-rgb: 25, 28, 30;
    --picker-active-start-rgb: 22, 112, 84;
    --picker-active-end-rgb: 20, 40, 34;
    --button-icon-overlay-rgb: 20, 20, 20;
    --surface-related-card: #171919;
    --surface-related-card-hover: #1c1e1e;
    --surface-related-media: #111313;
    --border-related-card: #2d302f;
    --border-related-separator: #2b2e2c;
    --text-related-muted: #969d98;
    --text-logo: #f1f3f4;
    --surface-picker-feature: #1a1d1f;
    --surface-picker-visual: #151819;
    --text-picker-status: #b2b9bc;
    --text-picker-muted: #a0a8ac;
    --text-picker-label: #f0f3f4;
    --text-picker-option: #d5dadd;
    --text-picker-active: #a1dec4;
    --text-picker-note: #8f999d;
    --text-picker-random: #d9f8ea;
    --accent-progress: #62cba5;
    --surface-picker-build: #222628;
    --surface-picker-build-end: #191c1e;
    --overlay-panel-border: rgba(255,255,255,.075);
    --overlay-control-border: rgba(255,255,255,.07);
    --overlay-control-hover-border: rgba(255,255,255,.09);
    /* Ambient animated CS icon wallpaper */
    --bg-pattern-main-size: 440px;
    --bg-pattern-secondary-size: 620px;
    --bg-pattern-main-opacity: .34;
    --bg-pattern-secondary-opacity: .12;
    --bg-pattern-main-duration: 125s;
    --bg-pattern-secondary-duration: 185s;
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--surface-raised);
    isolation: isolate;

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.6;
}

/* =========================================================
   ANIMATED CS ICON WALLPAPER
   Fixed, low-contrast icon textures stay behind all page content.
========================================================= */

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
    background-repeat: repeat;
    will-change: background-position;
}

body::before {
    inset: 0;
    background-image: url("/assets/cs-icon-pattern.svg");
    background-size: var(--bg-pattern-main-size) var(--bg-pattern-main-size);
    opacity: var(--bg-pattern-main-opacity);
    animation: cs-icon-wallpaper-drift var(--bg-pattern-main-duration) linear infinite;
}

body::after {
    inset: 0;
    background-image: url("/assets/cs-icon-pattern-secondary.svg");
    background-size: var(--bg-pattern-secondary-size) var(--bg-pattern-secondary-size);
    background-position: 180px 90px;
    opacity: var(--bg-pattern-secondary-opacity);
    animation: cs-icon-wallpaper-drift-reverse var(--bg-pattern-secondary-duration) linear infinite;
}

@keyframes cs-icon-wallpaper-drift {
    from { background-position: 0 0; }
    to { background-position: var(--bg-pattern-main-size) var(--bg-pattern-main-size); }
}

@keyframes cs-icon-wallpaper-drift-reverse {
    from { background-position: 180px 90px; }
    to {
        background-position:
            calc(180px - var(--bg-pattern-secondary-size))
            calc(90px + var(--bg-pattern-secondary-size));
    }
}

@media (max-width: 767px) {
    :root {
        --bg-pattern-main-opacity: .25;
        --bg-pattern-secondary-opacity: .07;
        --bg-pattern-main-size: 360px;
        --bg-pattern-secondary-size: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none !important;
        will-change: auto;
    }
}

a {
 color: var(--white);
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: var(--accent-hover);
}

button {
    font-family: inherit;
}

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

/* =========================================================
   SITE WIDTH
========================================================= */

.site {
    width: min(
        var(--site-width),
        calc(100% - 32px)
    );

    margin: 0 auto;
}

/* =========================================================
   TOP HEADER
========================================================= */

.topbar {
    background: #1e2022;
    border-bottom: 1px solid var(--surface-interactive);

    box-shadow:
        0 8px 30px rgba(var(--black-rgb), .18);
}

.topbar-inner {
    width: min(
        var(--site-width),
        calc(100% - 32px)
    );

    min-height: 68px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 40px;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--white);

    font-size: 19px;
    font-weight: 620;

    white-space: nowrap;

    letter-spacing: .18px;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}

.logo:hover {
    color: var(--white);
}



/* =========================================================
   MAIN MENU
========================================================= */

.main-menu {
    display: flex;
    align-items: center;

    gap: 3px;

    list-style: none;
}

.main-menu li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;

    gap: 6px;

    padding: 10px 14px;

    color: var(--text-article);

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
}

.main-menu > li > a:hover {
    color: var(--white);
    background: #292d30;
}

.main-menu > li.active > a {
    color: var(--white);

    background: #2c3134;
}

.menu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 1px;
    color: #858d93;
    transition: transform .2s ease, color .2s ease;
}

.menu-chevron svg {
    display: block;
    width: 14px;
    height: 14px;
}

.has-dropdown:hover > a .menu-chevron,
.has-dropdown.open > a .menu-chevron {
    color: var(--accent-light);
}

/* =========================================================
   DROPDOWN
========================================================= */

.dropdown {
    position: absolute;

    z-index: 100;

    top: calc(100% + 6px);
    left: 0;

    width: 230px;

    padding: 7px;

    background: var(--topbar-surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow:
        0 20px 50px var(--shadow-overlay);

    opacity: 0;
    visibility: hidden;

    transform: translateY(7px);

    transition: .2s ease;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown a {
    display: block;

    padding: 9px 11px;

    color: var(--text-article);

    border-radius: 7px;

    font-size: 12px;
}

.dropdown a:hover {
    color: var(--white);
    background: var(--surface-interactive);
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.main-layout {
    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);

    gap: var(--gap);

    padding: 20px 0;

    align-items: start;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    min-width: 0;
    padding: 10px;

    display: flex;
    flex-direction: column;

    gap: 10px;

    border-radius: 10px;
    background: linear-gradient(145deg, var(--surface) 0%, var(--bg) 100%);
    border: 1px solid var(--border-faint);
    box-shadow: var(--shadow-panel);
}

.sidebar-panel {
    overflow: hidden;

    border: 1px solid var(--border-subtle);

    border-radius: 10px;

    box-shadow:
        var(--shadow-panel-inner);

    background: var(--surface);
}

/* =========================================================
   SIDEBAR QUICK LINKS
========================================================= */

.quick-link {
    display: flex;
    align-items: center;

    min-height: 36px;

    padding: 0 9px;

    color: var(--text-secondary);

    border-bottom: 1px solid var(--border-subtle);

    font-size: 14px;

    transition: .18s ease;
}

.quick-link:last-child {
    border-bottom: 0;
}

.quick-link:hover {
    color: var(--white);
    background: rgba(var(--accent-rgb), .09);
}

/* Menu icons are images directly inside their links, without span wrappers. */
.quick-link-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0 13px 0 0;
    object-fit: contain;
}

/* =========================================================
   SIDEBAR TITLE
========================================================= */

.sidebar-title {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    color: var(--text);

    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   BUILD LIST
========================================================= */

.build-list {
    list-style: none;
}

.build-item {
    display: flex;
    align-items: center;

    min-height: 40px;

    border-bottom: 1px solid var(--border-faint);

    transition: .18s ease;

    border-bottom-color:var(--border-faint);
}

.build-item:last-child {
    border-bottom: 0;
}

.build-item:hover {
    background: rgba(var(--accent-rgb), .09);
}

.build-link {
    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;

    padding: 5px;

    color: var(--text-build-link);

    font-size: 14px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height:40px;
    box-sizing:border-box;
}

.build-link:hover {
    color: var(--accent-pale);
}

/* Sidebar menu icons are direct image children, without wrapper spans. */
.build-link > img.build-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0 13px 0 0;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

/* =========================================================
   NEW LABEL
========================================================= */

.new-label {
    flex: 0 0 auto;

    margin-right: 4px;

    padding: 2px 7px;

    background: var(--bg-dark);

    border: 1px solid #292d30;

    border-radius: 8px;

    color: #e0e3e5;

    font-size: 9px;

    line-height: 1.5;

    font-weight: 800;
}

/* =========================================================
   CONTENT
========================================================= */

.content {
    min-width: 0;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;

    height: 370px;

    margin-bottom: 20px;

    overflow: hidden;

    background: var(--hero-base);

    border: 0;

    border-radius: 14px;

    isolation: isolate;

    box-shadow:
        0 15px 45px rgba(var(--black-rgb), .24);
}

/* =========================================================
   HERO IMAGE
========================================================= */

.hero-bg {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 63%;

    z-index: -3;

    background-image:
        url("https://i.ibb.co/k2FDHNYq/6fc6c878-d473-42f3-a04a-348abfdc0459.png");

    background-size: cover;

    background-position: center;

    transform: scale(1.03);
}

.hero-bg::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            var(--hero-base) 0%,
            rgba(var(--hero-base-rgb), .96) 8%,
            rgba(var(--hero-base-rgb), .76) 25%,
            rgba(var(--hero-base-rgb), .28) 55%,
            rgba(var(--hero-base-rgb), .04) 100%
        );
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -2;

    pointer-events: none;

    background:
        linear-gradient(
            0deg,
            rgba(var(--hero-shadow-rgb), .88) 0%,
            transparent 42%
        );
}

/* =========================================================
   HERO ACCENT
========================================================= */

/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 34px 32px;

    display: flex;
    flex-direction: column;

    z-index: 3;
    padding-top: 27px;
    padding-bottom: 22px;
}

/* =========================================================
   HERO KICKER
========================================================= */

.hero-kicker {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    width: fit-content;

    margin-bottom: 11px;

    padding: 5px 9px;

    color: var(--accent-light);

    background:
        rgba(var(--accent-rgb), .09);

    border: 1px solid rgba(var(--accent-rgb), .20);

    border-radius: 6px;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent-dot);

    box-shadow:
        0 0 7px rgba(var(--accent-dot-rgb), .38);
}

/* =========================================================
   HERO TITLE
========================================================= */

.hero-title {
    max-width: 680px;

    margin-bottom: 9px;

    color: var(--text);

    font-size: clamp(25px, 2.25vw, 31px);

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -.7px;
}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-description {
    max-width: 650px;

    margin-bottom: 22px;

    color: var(--hero-description-color);

    font-size: 14px;

    line-height: 1.6;
}

/* =========================================================
   HERO DOWNLOAD AREA
========================================================= */

.hero-download-area {
    display: flex;

    align-items: stretch;

    gap: 11px;
}

/* =========================================================
   HERO BUTTON
========================================================= */

.hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 58px;

    padding: 8px 17px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 700;

    transition: .2s ease;
    text-align: left;
    text-decoration: none !important;
}

.hero-button svg {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;
}

/* =========================================================
   WINDOWS DOWNLOAD
========================================================= */

.hero-download {
    color: var(--white);
    background: var(--button-primary-bg);
    border: 0;
    box-shadow: 0 9px 24px rgba(var(--accent-dark-rgb), .28), inset 0 1px 0 rgba(255,255,255,.10);
    outline: 0;
    text-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    min-width: 250px;
    justify-content: space-between;
}

.hero-download:hover {
    color: var(--white);
    transform: translateY(-2px);
    background: var(--button-primary-hover-bg);
    box-shadow: 0 12px 28px rgba(var(--accent-dark-rgb), .36), 0 0 18px rgba(var(--accent-rgb), .12);
    border: 0;
    outline: 0;
}

/* =========================================================
   TORRENT BUTTON
========================================================= */

.hero-torrent {
    color: var(--text);

    background:
        var(--hero-secondary-bg);

    border: 0;

    box-shadow: 0 7px 22px var(--shadow-hover), inset 0 1px 0 var(--border-faint);
    min-width: 235px;
    justify-content: space-between;
}

.hero-torrent:hover {
    color: var(--white);

    background: var(--hero-secondary-hover-bg);

    transform: translateY(-2px);

    border: 0;

    box-shadow: 0 10px 26px rgba(var(--black-rgb), .28), 0 0 18px rgba(var(--accent-rgb), .08);
}

/* =========================================================
   HERO FEATURES
========================================================= */

.hero-features {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 16px;

    padding-top: 22px;
}

.hero-feature {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 32px;

    padding: 6px 10px;

    background:
        var(--hero-feature-bg);

    border: 0;

    border-radius: 7px;

    color: #bfc4c7;

    font-size: 12px;

    white-space: nowrap;

    backdrop-filter: blur(8px);

    transition: .2s ease;
}

.hero-feature:hover {
    color: var(--white);

    background:
        var(--hero-feature-hover-bg);

    border-color:
        rgba(255,255,255,.16);

    transform: translateY(-1px);

    border: 0;
}

.hero-feature svg {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;
}

/* =========================================================
   FEATURE COLORS
========================================================= */

.feature-green svg {
    color: #7aaf5e;
}

.feature-red svg {
    color: var(--accent-soft);
}

.feature-blue svg {
    color: var(--accent-soft);
}

.feature-orange svg {
    color: var(--accent-soft);
}

.feature-purple svg {
    color: var(--accent);
}

/* =========================================================
   HERO ARROWS
========================================================= */

.hero-arrow {
    position: absolute;

    top: 17px;

    z-index: 8;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    color: #cdd1d4;

    background:
        rgba(15,17,19,.72);

    border: 1px solid var(--overlay-border);

    border-radius: 50%;

    cursor: pointer;

    transition: .2s ease;
}

.hero-arrow:hover {
    color: var(--white);

    background: rgba(40,44,47,.95);

    border-color: rgba(255,255,255,.16);
}

.hero-arrow svg {
    width: 15px;
    height: 15px;
}

.hero-prev {
    right: 61px;
}

.hero-next {
    right: 17px;
}

/* =========================================================
   HERO DOTS
========================================================= */

.hero-dots {
    position: absolute;

    top: 29px;
    right: 112px;

    z-index: 8;

    display: flex;

    gap: 6px;
}

.hero-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: rgba(255,255,255,.35);
}

.hero-dot.active {
    width: 18px;

    border-radius: 5px;

    background: var(--accent);
}

/* =========================================================
   BREADCRUMBS
========================================================= */

.breadcrumbs {
    margin-bottom: 8px;

    color: #697176;

    font-size: 11px;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #c5c5c5;
}

/* =========================================================
   HEADINGS
========================================================= */

.content-heading {
    margin-bottom: 8px;

    color: var(--text-contrast);

    font-size: 28px;

    line-height: 1.2;
}

.lead {
    background: transparent;
    border-radius: 0;
    padding:20px;
}

h2 {
    font-size: 22px;
    line-height: 1.3;
}

h3 {
    color: #dfe3e5;

    font-size: 16px;

    line-height: 1.35;
}

/* =========================================================
   CONTENT BLOCK
========================================================= */

.block {
    padding: 22px;

    margin-bottom: 20px;

    background: var(--surface);

    border: 1px solid var(--border-faint);

    border-radius: 12px;

    box-shadow:
        var(--shadow-block);

    position: relative;
}

.block-title {
    margin-bottom: 12px;

    color: var(--text-contrast);

    font-size: 19px;
}

.block p {
    color: var(--text-muted);

    font-size: 13px;

    margin-bottom: 12px;
}

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

/* =========================================================
   NOTICES
========================================================= */

.notice {
    padding: 18px;

    border-radius: 10px;

    border: 1px solid transparent;

    font-size: 13px;
}

.notice strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
}

.notice-blue {
    color: var(--info-text);

    background: linear-gradient(120deg, var(--info-bg-start), var(--info-bg-end));

    border:1px solid var(--info-border);

    border-left:3px solid var(--info-accent);
}

.notice-green {
    color: var(--accent-light);

    background: linear-gradient(120deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-dark-rgb), .24));

    border:1px solid rgba(var(--accent-mint-rgb), .22);

    border-left:3px solid var(--accent);
}

/* =========================================================
   GRIDS
========================================================= */

.grid-2 {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 20px;

    margin-bottom: 20px;
}

.grid-3 {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 20px;

    margin-bottom: 20px;
}

.grid-wide-left {
    display: grid;

    grid-template-columns:
        1.7fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}

/* =========================================================
   BUTTONS
========================================================= */

.buttons-demo {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 39px;

    padding: 8px 15px;

    border: 1px solid transparent;

    border-radius: 8px;

    color: var(--white);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: .18s ease;
}

.btn:hover {
    color: var(--white);

    transform: translateY(-1px);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-blue {
    background: var(--button-blue-bg);
    color: var(--button-blue-text);
    border: 1px solid var(--button-blue-border);
    box-shadow: inset 0 1px 0 var(--overlay-soft);
}

.btn-purple {
    background: var(--button-purple-bg);
    color: var(--button-purple-text);
    border: 1px solid var(--button-purple-border);
    box-shadow: inset 0 1px 0 var(--overlay-soft);
}

.btn-green {
    background: var(--button-green-bg);
    color: var(--button-green-text);
    border: 1px solid var(--button-green-border);
    box-shadow: 0 7px 18px rgba(var(--accent-dark-rgb),.15);
}

.btn-cyan {
    background: var(--button-cyan-bg);
    color: var(--button-cyan-text);
    border: 1px solid var(--button-cyan-border);
}

.btn-orange {
    background: var(--button-orange-bg);
    color: var(--button-orange-text);
    border: 1px solid var(--button-orange-border);
}

.btn-gray {
    background: var(--button-gray-bg);
    color: var(--button-gray-text);
    border: 1px solid var(--button-gray-border);
}

.btn-black {
    background: var(--button-secondary-bg);
    color: var(--text);
    border: 1px solid var(--button-secondary-border);
    box-shadow: inset 0 1px 0 var(--overlay-inset);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent-light);

    box-shadow:
        0 5px 20px
        rgba(var(--accent-rgb), .18);
}

.btn-outline {
    color: var(--button-outline-text);

    background: var(--button-outline-bg);

    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    color: #effff8;

    background: rgba(var(--accent-rgb), .12);

    border-color: rgba(var(--accent-mint-rgb), .4);
}

/* =========================================================
   CARDS
========================================================= */

.cards-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 20px;

    margin-bottom: 20px;
}

.content-card {
    overflow: hidden;

    background: var(--bg);
    border: 1px solid var(--content-card-border);

    border-radius: 12px;

    transition: .2s ease;

    box-shadow:none;
}

.content-card:hover {
    transform: translateY(-3px);

    border-color: var(--card-hover-border);

    box-shadow:
        var(--shadow-card);

    background:var(--bg);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 13px;
    border-radius: 10px;
    box-sizing: border-box;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-image-link {
    display: block;
}

.card-body {
    padding: 0 13px 13px 13px;
}

.card-body hr {
    border-top: 1px dashed #272727;
    border-bottom: 0px;
    border-left: 0px;
    border-right: 0px;
    margin: 8px 0px;
}

.card-title {
    font-weight: 500;
    margin-bottom: 0px;
color: #e3e7e9;

    font-size: 16px;
}

.card-description {
    min-height: 46px;

    margin-bottom: 15px;

    color: var(--text-muted);

    font-size: 12px;
}

.content-card .btn {
    width: 100%;
}

/* =========================================================
   LINK LIST
========================================================= */

.link-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 8px;

    list-style: none;
}

.link-list a {
    display: block;

    padding: 10px 12px;

    background: var(--surface-hover);

    border: 1px solid #343a3e;

    border-radius: 8px;

    color: #aeb5b9;

    font-size: 12px;
}

.link-list a:hover {
    color: var(--white);

    background: #30363a;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    margin-top: 20px;

    background: var(--surface);

    border-top: 1px solid var(--surface-interactive);
}

.footer-inner {
    width: min(
        var(--site-width),
        calc(100% - 32px)
    );

    margin: 0 auto;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 30px;

    padding: 42px 0;
}

.footer-column h3 {
    margin-bottom: 13px;

    color: #e1e5e7;

    font-size: 14px;
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 6px;

    list-style: none;
}

.footer-column a {
    color: #777f84;

    font-size: 12px;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 17px 0;

    border-top: 1px solid #2b3033;

    color: #62696e;

    font-size: 11px;
}

/* =========================================================
   1366 PX
========================================================= */

@media (max-width:1366px) {

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* =========================================================
   1200 PX
========================================================= */

@media (max-width:1200px) {

    :root {
        --sidebar-width: 270px;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* =========================================================
   900 PX
========================================================= */

@media (max-width:900px) {

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

    .main-layout {
        grid-template-columns: 1fr;
    }

    /* V10: On narrow screens, show the page content first and the sidebar after it. */
    .main-layout > .content {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .main-layout > .sidebar {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    .sidebar {
        display: grid;

        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .grid-2,
    .grid-wide-left {
        grid-template-columns: 1fr;
    }

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

}

/* =========================================================
   MOBILE MENU DRAWER
========================================================= */

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-nav-head {
    display: none;
}

@media (max-width:600px) {

    .lead {
        margin-bottom: 18px;
        padding: 12px 13px 12px 14px;
        font-size: 13px;
        line-height: 1.6;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        border: 1px solid #353a3e;
        border-radius: 9px;
        background: var(--topbar-surface);
        color: var(--text-contrast);
        cursor: pointer;
        transition: .2s ease;
        z-index: 1002;
    }

    .mobile-menu-toggle:hover {
        background: #2c3134;
        border-color: #454b50;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: .2s ease;
    }

    .topbar nav.mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 88vw);
        height: 100dvh;
        padding: 0;
        overflow-y: auto;
        background: #1e2022;
        border-left: 1px solid #353a3e;
        box-shadow: -20px 0 55px rgba(var(--black-rgb), .42);
        transform: translateX(105%);
        visibility: hidden;
        opacity: 0;
        transition: transform .28s ease, opacity .2s ease, visibility .28s ease;
        z-index: 1001;
    }

    .mobile-nav-head {
        min-height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        border-bottom: 1px solid var(--surface-interactive);
        background: var(--topbar-surface);
    }

    .mobile-nav-head strong {
        color: var(--text-contrast);
        font-size: 16px;
        font-weight: 700;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid #3b4145;
        border-radius: 8px;
        background: #1b1e20;
        color: var(--text-article);
        cursor: pointer;
        transition: .2s ease;
    }

    .mobile-menu-close:hover {
        color: var(--white);
        background: var(--surface-interactive);
    }

    .mobile-menu-close svg {
        width: 18px;
        height: 18px;
    }

    .topbar nav.mobile-nav .main-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        overflow: visible;
    }

    .topbar nav.mobile-nav .main-menu li {
        width: 100%;
    }

    .topbar nav.mobile-nav .main-menu > li > a {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        padding: 11px 13px;
        color: #b9bec2;
        background: transparent;
        border-radius: 8px;
        font-size: 14px;
    }

    .topbar nav.mobile-nav .main-menu > li > a:hover,
    .topbar nav.mobile-nav .main-menu > li.active > a {
        color: var(--white);
        background: var(--surface-hover);
    }

    .topbar nav.mobile-nav .main-menu > li.active > a {
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .topbar nav.mobile-nav .has-dropdown > a .menu-chevron {
        display: inline-flex;
        flex: 0 0 16px;
        color: #747c81;
    }

    .topbar nav.mobile-nav .has-dropdown.open > a .menu-chevron {
        transform: rotate(180deg);
        color: var(--accent-light);
    }

    .topbar nav.mobile-nav .dropdown {
        position: static;
        width: auto;
        margin: 2px 0 5px 8px;
        padding: 4px;
        background: var(--surface-picker-build-end);
        border: 1px solid var(--surface-interactive);
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .topbar nav.mobile-nav .has-dropdown.open .dropdown {
        display: block;
    }

    .topbar nav.mobile-nav .dropdown a {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 9px 10px;
        color: #979fa4;
        font-size: 13px;
    }

    .topbar nav.mobile-nav .dropdown a:hover {
        color: var(--white);
        background: var(--surface-hover);
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(var(--black-rgb), .58);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1000;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .topbar nav.mobile-nav {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    body.menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* =========================================================
   600 PX
========================================================= */

@media (max-width:600px) {

    .site,
    .topbar-inner,
    .footer-inner {
        width: calc(100% - 20px);
    }

    .topbar-inner {
        flex-direction: column;

        align-items: stretch;

        padding: 10px 0;
    }

    .main-menu {
        padding-bottom: 3px;
    }

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

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

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

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

    .footer-bottom {
        flex-direction: column;

        gap: 5px;
    }

    /* HERO */

    .hero-arrow {
        width: 34px;
        height: 34px;

        top: 14px;
    }

    .hero-prev {
        right: 55px;
    }

    .hero-next {
        right: 14px;
    }

    .hero-dots {
        top: 27px;

        right: 98px;
    }
}

/* =========================================================
   400 PX
========================================================= */

@media (max-width:400px) {

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

    .hero {
        min-height: 560px;
    }

    .hero-content {
        min-height: 560px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-feature:last-child {
        grid-column: auto;
    }
}



/* =========================================================
   COHERENT CHARCOAL + EMERALD THEME — 2026-10-21
   The active palette is charcoal surfaces (#191b1d / #141618),
   emerald interaction accents, and restrained cool neutrals.
========================================================= */

/* Sidebar: dark surfaces only, no warm brown wash. */
.sidebar-panel .quick-links,
.sidebar-panel .build-list {
    background: var(--surface);
    border-color: var(--border-faint);
}

/* Action buttons: green for primary actions, layered charcoal for secondary actions. */
.build-btn, .pagination a, .pagination span, .download-button, .btn-primary, .btn-blue, .btn-purple, .btn-green, .btn-cyan, .btn-orange, .btn-gray, .btn-outline {
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, filter .18s ease;
}
.buttons-demo .btn { min-height: 42px; border-radius: 9px; padding: 9px 16px; }
.btn-primary, .build-btn.primary, .download-button, .pagination .active {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 55%, var(--accent-deep) 100%);
    border: 1px solid var(--button-primary-border);
    box-shadow: var(--button-primary-shadow);
}
.btn-primary:hover, .build-btn.primary:hover, .download-button:hover, .pagination .active:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-hover-strong) 55%, var(--accent-hover-deep) 100%);
    border-color: var(--button-primary-border-hover);
    box-shadow: var(--button-primary-hover-shadow);
    filter: none;
    transform: translateY(-1px);
}
.build-btn.secondary, .pagination a, .pagination span {
    color: var(--button-secondary-text);
    background: linear-gradient(135deg, var(--button-surface-start) 0%, var(--button-surface-end) 100%);
    border: 1px solid var(--button-secondary-border);
    box-shadow: inset 0 1px 0 var(--overlay-inset);
}
.build-btn.secondary:hover, .pagination a:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--button-hover-start) 0%, var(--button-hover-end) 100%);
    border-color: rgba(var(--accent-mint-rgb), .35);
    box-shadow: 0 7px 19px var(--shadow-mid);
}
.btn-blue:hover {
    background: var(--button-blue-bg-hover);
    border-color: var(--button-blue-border-hover);
}
.btn-purple:hover {
    background: var(--button-purple-bg-hover);
    border-color: var(--button-purple-border-hover);
}
.btn-green:hover { background: var(--button-green-bg-hover); border-color: var(--button-green-border-hover); }
.btn-cyan:hover { background: var(--button-cyan-bg-hover); border-color: var(--button-cyan-border-hover); }
.btn-orange:hover { background: var(--button-orange-bg-hover); border-color: var(--button-orange-border-hover); }
.btn-gray:hover { background: var(--button-gray-bg-hover); border-color: var(--button-gray-border-hover); }
.btn:focus-visible,
.build-btn:focus-visible,
.pagination a:focus-visible { outline: 2px solid rgba(var(--accent-soft-rgb), .8); outline-offset: 3px; }

/* Keep the secondary Hero action neutral, not purple; the primary CTA remains emerald. */

/* Generic block links are shared by content modules across pages. */
.block p a {
    color: var(--accent-light);
    text-decoration-color: rgba(var(--accent-light-rgb), .42);
}
.block p a:hover {
    color: var(--accent-pale);
    text-decoration-color: currentColor;
}

/* Keep the established requested card backgrounds and hover-only outline. */
.content-card .btn.btn-black,
.content-card .btn.btn-black:hover,
.content-card .btn.btn-black:active {
    color: var(--text);
    background: var(--surface-2);
    border: 0;
    box-shadow: none;
}

/* =========================================================
   SIDEBAR TYPOGRAPHY + SOFT CORNER ACCENT — 2026-10-21
========================================================= */

/* Sidebar title emblem: large stacked-builds icon with its own emerald surface. */
.sidebar-title-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--accent-pale);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .32), rgba(var(--accent-deep-rgb), .62));
    border: 1px solid rgba(var(--accent-mint-rgb), .28);
    box-shadow: 0 6px 18px rgba(var(--accent-dark-rgb), .18), inset 0 1px 0 rgba(255,255,255,.07);
}
.sidebar-title-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}
.sidebar-title-text {
    min-width: 0;
    line-height: 1.3;
}
.btn-black:hover {
    color: var(--white);
    background: var(--button-secondary-hover-bg);
    border-color: var(--button-secondary-hover-border);
    box-shadow: 0 7px 19px var(--shadow-mid);
}
.hero-download strong, .hero-download small, .hero-download svg, .hero-download .hero-button-arrow {
    color: var(--white);
}
.hero-download .hero-button-arrow {
    background: rgba(255,255,255,.14);
}
.hero-download:focus-visible {
    outline: 2px solid rgba(255,255,255,.78);
    outline-offset: 3px;
}
.hero-torrent svg, .hero-torrent .hero-button-arrow {
    color: var(--text-secondary);
}

/* Card actions: download remains graphite; torrent gets a restrained emerald tint. */
.content-card .card-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}
.content-card .card-actions .btn {
    width: auto;
    min-width: 0;
    min-height: 39px;
    margin: 0;
    white-space: nowrap;
    gap: 7px;
    text-decoration: none;
}
.content-card .card-actions .card-download-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 10px;
}
.content-card .card-actions .card-download-btn > span,
.content-card .card-actions .card-torrent-btn > span {
    display: inline-block;
    min-width: 0;
}
.content-card .card-actions .card-torrent-btn {
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px 12px;
    color: var(--card-torrent-text);
    background: var(--card-torrent-bg);
    border: 1px solid var(--card-torrent-border);
    box-shadow: var(--card-torrent-shadow);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}
.content-card .card-actions .card-torrent-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.content-card .card-actions .card-torrent-btn:hover {
    color: var(--accent-pale);
    background: var(--card-torrent-hover-bg);
    border-color: var(--card-torrent-hover-border);
    box-shadow: var(--card-torrent-hover-shadow);
}
@media (max-width: 420px) {
    .content-card .card-actions { gap: 6px; }
    .content-card .card-actions .btn { gap: 5px; font-size: 11px; }
    .content-card .card-actions .card-download-btn { padding-inline: 7px; }
    .content-card .card-actions .card-torrent-btn { padding-inline: 8px; }
}


/* =========================================================
   NAV ICONS — consistent inline iconography across all pages
========================================================= */
.main-menu > li > a .menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color .18s ease, transform .18s ease;
}
.main-menu > li > a .menu-item-icon svg,
.dropdown a .menu-item-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.main-menu > li > a:hover .menu-item-icon,
.main-menu > li.active > a .menu-item-icon,
.has-dropdown:hover > a .menu-item-icon,
.has-dropdown.open > a .menu-item-icon {
    color: var(--accent-light);
}
.main-menu > li > a:hover .menu-item-icon { transform: translateY(-1px); }
.menu-item-label { min-width: 0; }
.dropdown a,
.topbar nav.mobile-nav .dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown a .menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color .18s ease;
}
.dropdown a:hover .menu-item-icon { color: var(--accent-light); }



/* Homepage Hero — crossfade between the three supplied Counter-Strike images. */
.site > .hero > .hero-bg.hero-bg-carousel {
    overflow: hidden;
    background-image: none;
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1.15s cubic-bezier(.22,.61,.36,1), transform 6s ease;
    will-change: opacity, transform;
}
.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1.015);
}
.hero-bg.hero-bg-carousel::after { z-index: 2; pointer-events: none; }
.hero-dot {
    display: block;
    padding: 0;
    border: 0;
    appearance: none;
    cursor: pointer;
    transition: width .22s ease, background-color .22s ease, transform .22s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.72); }
.hero-dot:focus-visible,
.hero-arrow:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide,
    .hero-dot { transition-duration: .01ms; }
}

/* =========================================================
   NAVIGATION REDESIGN V7 — cohesive brand bar + quiet section rail
   Intentionally placed last so the previous navigation remains
   available for a clean rollback while all pages share this variant.
========================================================= */
.topbar {
    position: relative;
    z-index: 200;
    background: linear-gradient(180deg, #1b1f21 0%, #171a1c 100%);
    border-bottom: 1px solid rgba(255,255,255,.065);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.topbar-inner {
    width: min(var(--site-width), calc(100% - 48px));
    min-height: 82px;
    gap: 22px;
    justify-content: space-between;
}

.topbar .logo {
    flex: 0 0 auto;
    gap: 12px;
    min-height: 46px;
    padding-right: 23px;
    border-right: 1px solid rgba(255,255,255,.085);
}

.topbar nav.mobile-nav {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.topbar .mobile-nav-head {
    display: none;
}

.topbar .main-menu {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 3px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.topbar .main-menu > li {
    flex: 0 1 auto;
    min-width: 0;
}

.topbar .main-menu > li > a {
    position: relative;
    min-height: 44px;
    padding: 9px 10px;
    gap: 8px;
    color: #aeb8b9;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 620;
    letter-spacing: -.1px;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.topbar .main-menu > li > a:hover,
.topbar .main-menu > li > a:focus-visible {
    color: #f2f8f5;
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.075);
}

.topbar .main-menu > li.active > a {
    color: #effff7;
    background: linear-gradient(135deg, rgba(var(--accent-rgb),.18), rgba(var(--accent-rgb),.07));
    border-color: rgba(var(--accent-mint-rgb),.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.topbar .main-menu > li > a .menu-item-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    color: #7e8b88;
    transform: none;
}

.topbar .main-menu > li > a:hover .menu-item-icon,
.topbar .main-menu > li.active > a .menu-item-icon,
.topbar .has-dropdown:hover > a .menu-item-icon,
.topbar .has-dropdown.open > a .menu-item-icon {
    color: var(--accent-soft);
}

.topbar .menu-chevron {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
    margin-left: 0;
    color: #77827f;
}

.topbar .menu-chevron svg {
    width: 12px;
    height: 12px;
}

.topbar .has-dropdown:hover > a .menu-chevron,
.topbar .has-dropdown:focus-within > a .menu-chevron,
.topbar .has-dropdown.open > a .menu-chevron {
    color: var(--accent-soft);
    transform: rotate(180deg);
}

.topbar .dropdown {
    top: calc(100% + 10px);
    left: 0;
    width: 272px;
    padding: 10px;
    background: rgba(25,30,30,.985);
    border: 1px solid rgba(var(--accent-mint-rgb),.18);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.025);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.topbar .dropdown::before {
    content: "ИГРОВАЯ БИБЛИОТЕКА";
    display: block;
    padding: 4px 9px 10px;
    color: #73847d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.25px;
}

.topbar .has-dropdown:hover .dropdown,
.topbar .has-dropdown:focus-within .dropdown,
.topbar .has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar .dropdown a,
.topbar nav.mobile-nav .dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 6px 8px;
    color: #c1cbc7;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.topbar .dropdown a:hover,
.topbar .dropdown a:focus-visible {
    color: #f2fff8;
    background: rgba(var(--accent-rgb),.09);
    border-color: rgba(var(--accent-mint-rgb),.13);
}

.topbar .dropdown a .menu-item-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    padding: 7px;
    color: #92a19a;
    background: #222927;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 8px;
    box-sizing: border-box;
}

.topbar .dropdown a:hover .menu-item-icon {
    color: var(--accent-light);
    background: rgba(var(--accent-rgb),.13);
    border-color: rgba(var(--accent-mint-rgb),.14);
}

.topbar a:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-menu-close:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

@media (min-width: 1101px) and (max-width: 1260px) {
    .topbar-inner { gap: 16px; }
    .topbar .logo { gap: 9px; padding-right: 16px; }
.topbar .main-menu { gap: 0; }
    .topbar .main-menu > li > a { gap: 6px; padding-inline: 7px; font-size: 13.5px; }
    .topbar .main-menu > li > a .menu-item-icon { width: 15px; height: 15px; flex-basis: 15px; }
}

/* Drawer starts before the full desktop navigation becomes crowded. */
@media (max-width: 1100px) {
    .topbar-inner {
        width: calc(100% - 32px);
        min-height: 72px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 9px 0;
    }

    .topbar .logo {
        padding-right: 0;
        border-right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 12px;
        background: #202625;
        color: #e0eae5;
        cursor: pointer;
        transition: background .18s ease, border-color .18s ease, transform .18s ease;
        z-index: 1002;
    }

    .mobile-menu-toggle:hover {
        background: #26322d;
        border-color: rgba(var(--accent-mint-rgb),.28);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .topbar nav.mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        display: block;
        width: min(390px, 91vw);
        height: 100vh;
        height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: linear-gradient(180deg, #1b2020 0%, #151819 100%);
        border-left: 1px solid rgba(var(--accent-mint-rgb),.15);
        box-shadow: -24px 0 65px rgba(0,0,0,.48);
        opacity: 0;
        visibility: hidden;
        transform: translateX(105%);
        transition: transform .27s cubic-bezier(.2,.7,.2,1), opacity .2s ease, visibility .27s ease;
    }

    .topbar .mobile-nav-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 70px;
        padding: 0 18px;
        background: rgba(24,29,28,.96);
        border-bottom: 1px solid rgba(255,255,255,.07);
        backdrop-filter: blur(16px);
    }

    .topbar .mobile-nav-head strong {
        color: #edf6f1;
        font-size: 15px;
        font-weight: 750;
        letter-spacing: .1px;
    }

    .mobile-menu-close {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0;
        color: #bfcac4;
        background: #222827;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 10px;
        cursor: pointer;
    }

    .mobile-menu-close svg { width: 18px; height: 18px; }

    .topbar nav.mobile-nav .main-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: auto;
        gap: 6px;
        padding: 15px;
        margin: 0;
        overflow: visible;
    }

    .topbar nav.mobile-nav .main-menu > li { width: 100%; flex: 0 0 auto; }

    .topbar nav.mobile-nav .main-menu > li > a {
        width: 100%;
        min-height: 50px;
        box-sizing: border-box;
        justify-content: flex-start;
        gap: 11px;
        padding: 7px 10px;
        color: #b4c0bb;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 11px;
        font-size: 13px;
        font-weight: 650;
        white-space: normal;
    }

    .topbar nav.mobile-nav .main-menu > li > a .menu-item-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        padding: 8px;
        box-sizing: border-box;
        color: #91a19a;
        background: rgba(255,255,255,.035);
        border: 1px solid rgba(255,255,255,.045);
        border-radius: 9px;
    }

    .topbar nav.mobile-nav .main-menu > li > a .menu-item-icon svg { width: 100%; height: 100%; }

    .topbar nav.mobile-nav .main-menu > li > a:hover,
    .topbar nav.mobile-nav .main-menu > li > a:focus-visible,
    .topbar nav.mobile-nav .main-menu > li.active > a {
        color: #effff7;
        background: rgba(var(--accent-rgb),.09);
        border-color: rgba(var(--accent-mint-rgb),.16);
        box-shadow: none;
    }

    .topbar nav.mobile-nav .main-menu > li.active > a .menu-item-icon {
        color: var(--accent-light);
        background: rgba(var(--accent-rgb),.12);
        border-color: rgba(var(--accent-mint-rgb),.17);
    }

    .topbar .has-dropdown > a .menu-chevron {
        display: inline-flex;
        margin-left: auto;
    }

    .topbar nav.mobile-nav .dropdown {
        position: static;
        display: none;
        width: auto;
        margin: 3px 0 7px 17px;
        padding: 8px;
        background: rgba(9,12,12,.32);
        border: 1px solid rgba(255,255,255,.065);
        border-radius: 11px;
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .topbar .has-dropdown.open .dropdown { display: block; }

    .topbar .dropdown::before { padding: 2px 8px 8px; font-size: 8px; }

    .topbar .dropdown a,
    .topbar nav.mobile-nav .dropdown a {
        min-height: 42px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .topbar .dropdown a .menu-item-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        padding: 6px;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: block;
        background: rgba(5,8,8,.66);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    body.menu-open { overflow: hidden; }

    body.menu-open .topbar nav.mobile-nav {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    body.menu-open .mobile-menu-backdrop { opacity: 1; visibility: visible; }
    body.menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

}

@media (max-width: 600px) {
    .topbar-inner {
        width: calc(100% - 20px);
        flex-direction: row;
        align-items: center;
        padding: 8px 0;
    }

    .topbar .logo { gap: 9px; }
.topbar .mobile-menu-toggle { width: 42px; height: 42px; flex-basis: 42px; }

}

@media (prefers-reduced-motion: reduce) {
    .topbar * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* =========================================================
   NAVIGATION UPDATE V8 — merged build categories dropdown
   ========================================================= */
.topbar .main-menu > li > a {
    font-size: 13.5px;
}


.topbar .builds-dropdown .dropdown {
    width: 292px;
}

.topbar .builds-dropdown .dropdown::before {
    content: "КАТЕГОРИИ СБОРОК";
}

.topbar .files-dropdown .dropdown::before {
    content: "ИГРОВАЯ БИБЛИОТЕКА";
}

/* Hover bridge makes moving from the parent item into a dropdown reliable. */
.topbar .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -11px;
    height: 12px;
}



/* =========================================================
   BRAND UPDATE V9 — classic CS-inspired emblem + restrained wordmark
   ========================================================= */
.topbar .logo {
    gap: 0;
    flex: 0 1 auto;
    min-width: 0;
    padding-right: 22px;
    border-right: 1px solid rgba(255,255,255,.075);
}

.topbar .logo-lockup {
    display: block;
    width: 238px;
    max-width: 100%;
    height: auto;
    flex: 0 1 238px;
    object-fit: contain;
    transition: opacity .18s ease, transform .18s ease;
}

.topbar .logo:hover .logo-lockup {
    opacity: .96;
    transform: translateY(-1px);
}

.topbar .logo:focus-visible {
    outline: 2px solid rgba(152,201,173,.75);
    outline-offset: 4px;
    border-radius: 7px;
}

@media (min-width: 1101px) and (max-width: 1260px) {
    .topbar .logo { padding-right: 14px; }
    .topbar .logo-lockup { width: 216px; flex-basis: 216px; }
}

@media (max-width: 1100px) {
    .topbar .logo { padding-right: 0; border-right: 0; }
    .topbar .logo-lockup { width: 238px; flex-basis: 238px; }
}

@media (max-width: 600px) {
    .topbar .logo-lockup { width: 220px; flex-basis: 220px; }
    .topbar .logo { max-width: calc(100vw - 76px); }
}

@media (max-width: 360px) {
    .topbar .logo-lockup { width: 198px; flex-basis: 198px; }
}


/* =========================================================
   BRAND / NAVIGATION UPDATE V10
   ========================================================= */
.topbar .dropdown a.dropdown-all-builds {
    color: #e7f5ec;
    background: linear-gradient(105deg, rgba(61, 156, 112, .12), rgba(61, 156, 112, .035));
    border-color: rgba(90, 185, 131, .17);
    margin-bottom: 5px;
}

.topbar .dropdown a.dropdown-all-builds .menu-item-icon {
    color: #8dd7ad;
    background: rgba(49, 133, 91, .16);
    border-color: rgba(90, 185, 131, .22);
}

.topbar .dropdown a.dropdown-all-builds:hover,
.topbar .dropdown a.dropdown-all-builds:focus-visible {
    background: rgba(61, 156, 112, .19);
}


/* V13 — site-wide CS16-GO footer */
footer.site-footer {
    margin-top: clamp(30px, 4vw, 54px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}
.site-footer, .site-footer * { box-sizing: border-box; }
.site-footer-shell {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto 24px;
    overflow: hidden;
    border: 1px solid rgba(149, 177, 185, .12);
    border-radius: 20px;
    background: #10181e;
    box-shadow: 0 22px 58px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025);
}
.site-footer-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .85fr);
    gap: clamp(22px, 4vw, 54px);
    padding: clamp(22px, 3vw, 34px);
    overflow: hidden;
    border-bottom: 1px solid rgba(149, 177, 185, .10);
    background: linear-gradient(145deg, #171b1e, #141719 70%, #15191b);
}
.site-footer-intro::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    opacity: .42;
    background-image: linear-gradient(90deg, rgba(16,24,30,0) 0%, rgba(16,24,30,.25) 36%, rgba(16,24,30,.74) 100%), url("/assets/hero-cs16-dust-sunset.webp");
    background-size: cover;
    background-position: center 44%;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 20%, #000 58%);
    pointer-events: none;
}
.site-footer-intro-brand, .site-footer-feature { position: relative; z-index: 1; min-width: 0; }
.site-footer-logo { display: inline-flex; align-items: center; max-width: 100%; text-decoration: none; }
.site-footer-logo img { display: block; width: min(248px, 100%); height: auto; object-fit: contain; object-position: left center; }
.site-footer-tagline { max-width: 480px; margin: 14px 0 18px; color: #aab7bd; font-size: 13px; line-height: 1.7; }
.site-footer-intro-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.site-footer-cta, .site-footer-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 37px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;
    color: #e8f0f0;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.site-footer-cta svg, .site-footer-feature-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer-cta-primary { background: linear-gradient(135deg, #176a57, #135341); border-color: rgba(93,209,169,.28); }
.site-footer-cta-secondary { background: rgba(255,255,255,.045); }
.site-footer-cta:hover, .site-footer-feature-link:hover { transform: translateY(-1px); border-color: rgba(91,195,154,.42); }
.site-footer-cta-primary:hover { background: linear-gradient(135deg, #1a8065, #17664f); }
.site-footer-feature {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 0 4px clamp(18px, 3vw, 34px);
    border-left: 1px solid rgba(175, 211, 210, .13);
}
.site-footer-feature-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #8ea8ab; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.site-footer-feature-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 12px rgba(var(--accent-mint-rgb),.4); }
.site-footer-feature h2 { margin: 12px 0 7px; color: #f0f5f4; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.16; letter-spacing: -.035em; }
.site-footer-feature p { max-width: 340px; margin: 0 0 16px; color: #a7b6bb; font-size: 12px; line-height: 1.6; }
.site-footer-feature-link { min-height: 32px; padding: 0; border: 0; color: #9be0c4; background: transparent; }
.site-footer-feature-link:hover { border-color: transparent; color: #d7ffec; }
.site-footer-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 19px; background: linear-gradient(145deg, #171b1e, #141719 70%, #15191b); }
.site-footer-column { min-width: 0; padding: 16px 14px 12px; border: 1px solid rgba(159,185,190,.09); border-radius: 13px; background: linear-gradient(150deg, rgba(255,255,255,.032), rgba(255,255,255,.012)); }
.site-footer-column-heading { display: flex; align-items: center; gap: 10px; min-height: 38px; margin-bottom: 11px; }
.site-footer-column-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(var(--accent-mint-rgb), .16); border-radius: 10px; background: rgba(var(--accent-rgb), .10); color: #8ddcbd; }
.site-footer-column-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.site-footer-column-icon-cs2 { color: #a6b7ff; background: rgba(105,127,235,.10); border-color: rgba(132,149,245,.16); }
.site-footer-column-heading h3 { margin: 0; color: #eaf0f1; font-size: 13px; line-height: 1.3; font-weight: 760; }
.site-footer-column-heading p { margin: 3px 0 0; color: #788a92; font-size: 9px; line-height: 1.4; }
.site-footer-column ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.site-footer-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 31px; padding: 6px 7px; border-radius: 7px; color: #9daeb4; font-size: 11px; line-height: 1.4; text-decoration: none; transition: color .16s ease, background .16s ease, padding .16s ease; }
.site-footer-link svg { flex: 0 0 13px; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .22; transition: opacity .16s ease, transform .16s ease; }
.site-footer-link:hover { padding-left: 10px; color: #e9fff5; background: rgba(var(--accent-rgb), .085); }
.site-footer-link:hover svg { opacity: .9; transform: translate(1px,-1px); }
.site-footer-bottom { display: flex; align-items: center; gap: 18px; min-height: 52px; padding: 12px 22px; border-top: 1px solid rgba(159,185,190,.10); background: #0c1317; }
.site-footer-copyright { flex: 0 0 auto; color: #a6b7bb; font-size: 10px; font-weight: 750; white-space: nowrap; }
.site-footer-copyright span { padding: 0 5px; color: #52666c; }
.site-footer-legal { flex: 1 1 auto; color: #657980; font-size: 10px; line-height: 1.5; text-align: right; }
.site-footer-top { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: #91adad; font-size: 10px; text-decoration: none; white-space: nowrap; }
.site-footer-top svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-footer-top:hover { color: #bdf4db; }
@media (max-width: 1120px) {
    .site-footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-intro { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); }
}
@media (max-width: 760px) {
    .site-footer-shell { width: calc(100% - 22px); border-radius: 15px; }
    .site-footer-intro { grid-template-columns: 1fr; gap: 20px; padding: 22px 19px; }
    .site-footer-intro::before { width: 100%; opacity: .22; background-position: 70% 48%; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 96%); }
    .site-footer-feature { padding: 18px 0 0; border-top: 1px solid rgba(175,211,210,.13); border-left: 0; }
    .site-footer-feature h2 { font-size: 22px; }
    .site-footer-directory { gap: 9px; padding: 12px; }
    .site-footer-column { padding: 13px 10px 10px; }
    .site-footer-column-heading { align-items: flex-start; gap: 8px; }
    .site-footer-column-icon { flex-basis: 30px; width: 30px; height: 30px; }
    .site-footer-column-heading h3 { font-size: 12px; }
    .site-footer-link { font-size: 10px; }
    .site-footer-bottom { align-items: flex-start; flex-wrap: wrap; gap: 9px 14px; padding: 13px 16px; }
    .site-footer-legal { order: 3; flex-basis: 100%; text-align: left; }
    .site-footer-top { margin-left: auto; }
}
@media (max-width: 480px) {
    .site-footer-directory { grid-template-columns: 1fr; }
    .site-footer-column { padding: 13px 14px 12px; }
    .site-footer-column-heading { align-items: center; }
    .site-footer-column-heading p { font-size: 10px; }
    .site-footer-link { min-height: 32px; font-size: 11px; }
    .site-footer-copyright { white-space: normal; }
    .site-footer-intro-actions { display: grid; grid-template-columns: 1fr; }
    .site-footer-cta { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer-cta, .site-footer-feature-link, .site-footer-link, .site-footer-link svg { transition: none; }
}

@media (max-width: 560px) { .cards-grid { grid-template-columns: minmax(0, 1fr); } }


/* V19: shared card-grid density — four across on desktop. */
.cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) {
    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .cards-grid { grid-template-columns: minmax(0, 1fr); }
}


/* V21: hero typography and fixed-size catalog heading icons. */
.hero-description { max-width: 640px; }
.hero-button-copy strong { font-weight: 600; }

/* Prevent inline SVGs in file-category H1s from using intrinsic 300x150 sizing. */
.catalog-page-title-icon,
.files-intro-icon {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    vertical-align: middle;
}
.catalog-page-title-icon svg,
.files-intro-icon svg {
    display: block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex: 0 0 22px;
}
.files-intro-icon { flex-basis: 46px; width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
.files-intro-icon svg { width: 24px !important; height: 24px !important; min-width: 24px; min-height: 24px; max-width: 24px; max-height: 24px; flex-basis: 24px; }

/* V21: category archive keeps its own three-column card density. */

@media (max-width: 900px) {  }
@media (max-width: 560px) {  }
