/* =========================================================
   SOFTWEZ — STYLE.CSS
========================================================= */

:root {
    --bg: #ffffff;
    --white: #ffffff;
    --text: #171717;
    --muted: #777;
    --border: #e3e3dd;
    --soft: #eeeeea;
    --accent: #e6533d;

    --sponsor-bg: #fffdf4;
    --sponsor-border: #e4d8b6;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

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

button,
input {
    font: inherit;
}

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


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

header {
    height: 62px;

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

    position: sticky;
    top: 0;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(8px);

    z-index: 100;
}

.header-inner {
    max-width: 1180px;
    height: 100%;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 22px;

    font-size: 12px;
    color: #666;
}

.nav a:hover {
    color: #111;
}

.submit-btn {
    border: 0;

    background: #111;
    color: #fff;

    padding: 8px 13px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.submit-btn:hover {
    opacity: .85;
}


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

.container {
    max-width: 1180px;

    margin: 0 auto;

    padding: 0 20px;
}


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

.hero {
    text-align: center;

    padding: 35px 0 42px;
}

.eyebrow {
    color: var(--accent);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.hero h1 {
    max-width: 620px;

    margin: 0 auto 15px;

    font-size: 52px;

    line-height: .98;

    letter-spacing: -3px;

    font-weight: 900;
}

.hero p {
    max-width: 620px;

    margin: 0 auto 24px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.55;
}


/* =========================================================
   SEARCH
   EXACTLY CENTERED
========================================================= */

.search-box {
    width: 680px;
    max-width: 100%;

    margin: 0 auto;

    position: relative;
}

.search-box input {
    width: 100%;
    height: 50px;

    border: 1px solid #d6d6d0;

    border-radius: 7px;

    background: #fff;

    padding: 0 42px 0 15px;

    outline: none;

    font-size: 14px;

    color: #222;
}

.search-box input::placeholder {
    color: #999;
}

.search-box input:focus {
    border-color: #999;
}

.search-icon {
    position: absolute;

    right: 15px;
    top: 13px;

    color: #777;

    font-size: 17px;

    pointer-events: none;
}


/* =========================================================
   DIRECTORY
========================================================= */

/*
    IMPORTANT

    The resource list is NOT centered together with
    the sidebar.

    The resource list gets its own 730px centered column.

    This is what makes the layout look like the screenshot.
*/

.directory {
    position: relative;

    width: 100%;

    display: block;
}


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

/*
    Sidebar stays on the left independently.

    It does NOT affect the horizontal position
    of the resource list.
*/

.sidebar {
    position: fixed;

    left: calc(50% - 590px);

    top: 120px;

    width: 190px;

    max-height: calc(100vh - 150px);

    overflow-y: auto;

    padding-right: 5px;

    z-index: 2;
}

.sidebar::-webkit-scrollbar {
    width: 0;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d5d5cf;

    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-title {
    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #888;

    padding: 0 8px 10px;

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


/* =========================================================
   CATEGORY
========================================================= */

.category-block {
    border-bottom: 1px solid #ecece7;
}

.category-button {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border: 0;

    background: transparent;

    color: #555;

    padding: 9px 8px;

    text-align: left;

    cursor: pointer;

    font-size: 12px;

    border-radius: 3px;
}

.category-button:hover {
    background: #fff;

    color: #111;
}

.category-button.active {
    background: #fff;

    color: #111;

    font-weight: 800;

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


/* =========================================================
   CHEVRON
========================================================= */

.chevron {
    color: #999;

    font-size: 11px;

    transition: transform .15s ease;
}

.category-block.open .chevron {
    transform: rotate(90deg);
}


/* =========================================================
   SUBCATEGORIES
========================================================= */

.subcategories {
    display: none;

    padding: 0 0 7px 12px;
}

.category-block.open .subcategories {
    display: block;
}

.subcategory {
    display: block;

    width: 100%;

    border: 0;

    background: transparent;

    color: #777;

    text-align: left;

    padding: 6px 8px;

    border-radius: 4px;

    cursor: pointer;

    font-size: 11px;
}

.subcategory:hover {
    background: #fff;

    color: #111;
}

.subcategory.active {
    background: #fff;

    color: #111;

    font-weight: 700;
}


/* =========================================================
   RESOURCE CONTENT
   THIS IS THE IMPORTANT PART
========================================================= */

.content {
    width: 730px;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    min-width: 0;
}


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

.content-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 0 0 7px;

    padding: 0 7px 10px;

    border-bottom: 2px solid #222;
}

.content-title {
    font-size: 15px;

    font-weight: 800;
}

.resource-count {
    font-size: 11px;

    color: #888;
}


/* =========================================================
   RESOURCE
========================================================= */

.resource {
    display: block;

    padding: 16px 8px;

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

    transition:
        background .12s ease,
        padding .12s ease;
}

.resource:hover {
    background: #fff;

    padding-left: 12px;
    padding-right: 12px;
}


/* =========================================================
   RESOURCE TITLE
========================================================= */

.resource-title-row {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;
}

.resource-title {
    font-size: 15px;

    font-weight: 800;
}

.resource-domain {
    color: #999;

    font-size: 10px;
}


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

.resource-description {
    color: #707070;

    font-size: 13px;

    line-height: 1.5;

    margin-top: 4px;
}


/* =========================================================
   TAGS
========================================================= */

.resource-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 8px;
}

.tag {
    background: var(--soft);

    color: #777;

    padding: 3px 6px;

    border-radius: 3px;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .4px;
}


/* =========================================================
   SPONSORED
========================================================= */

.sponsored-label {
    color: #9b772e;

    font-size: 9px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .8px;

    margin-bottom: 5px;
}


/* =========================================================
   LOAD MORE
========================================================= */

.load-more-container {
    text-align: center;

    padding: 28px 0;
}

.load-more {
    border: 1px solid #d3d3cd;

    background: #fff;

    color: #222;

    border-radius: 7px;

    padding: 10px 20px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.load-more:hover {
    background: #111;

    color: #fff;

    border-color: #111;
}


/* =========================================================
   EMPTY
========================================================= */

.empty {
    display: none;

    text-align: center;

    padding: 55px 20px;

    color: #888;

    font-size: 13px;
}


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

footer {
    width: 730px;
    max-width: 100%;

    margin: 35px auto 45px;

    padding-top: 18px;

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

    display: flex;

    justify-content: space-between;

    color: #999;

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .sidebar {
        left: 0;
        width: 165px;
    }

}


/* =========================================================
   SMALL TABLET / MOBILE CATEGORY SYSTEM
========================================================= */

@media (max-width: 850px) {

    /*
        Mobile/tablet:

        Desktop sidebar becomes a full-width
        dropdown container.

        The category list is hidden by default.
        JavaScript adds .mobile-category-open
        when the user taps the Categories bar.
    */

    .sidebar {
        position: relative;

        left: auto;
        top: auto;

        width: 100%;

        max-height: none;

        overflow: visible;

        padding: 0;

        margin-bottom: 22px;

        z-index: 10;
    }


    /* =====================================================
       CLOSED DROPDOWN HEADER
    ===================================================== */

    .sidebar-title {
        position: relative;

        width: 100%;
        height: 46px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding: 0 14px;

        margin: 0;

        background: #fff;

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

        border-radius: 7px;

        color: #222;

        font-size: 11px;

        font-weight: 900;

        letter-spacing: 1px;

        text-transform: uppercase;

        cursor: pointer;

        transition:
            border-color .15s ease,
            background .15s ease;
    }


    .sidebar-title:hover {
        border-color: #d0d0ca;
    }


    /*
        Dropdown arrow
    */

    .sidebar-title::after {
        content: "⌄";

        display: flex;

        align-items: center;

        justify-content: center;

        width: 20px;
        height: 20px;

        color: #777;

        font-size: 16px;

        line-height: 1;

        transition: transform .18s ease;
    }


    /*
        Arrow rotates when opened
    */

    .sidebar.mobile-category-open .sidebar-title::after {
        transform: rotate(180deg);
    }


    /* =====================================================
       DROPDOWN OPEN STATE
    ===================================================== */

    .sidebar.mobile-category-open {
        background: #fff;

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

        border-radius: 7px;

        overflow: hidden;

        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.06);
    }


    .sidebar.mobile-category-open .sidebar-title {
        border: 0;

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

        border-radius: 7px 7px 0 0;

        background: #fff;
    }


    /* =====================================================
       CATEGORY ITEMS — HIDDEN BY DEFAULT
    ===================================================== */

    .sidebar .category-block {
        display: none;
    }


    /* =====================================================
       CATEGORY ITEMS — SHOW WHEN OPEN
    ===================================================== */

    .sidebar.mobile-category-open .category-block {
        display: block;

        border-bottom: 1px solid #ecece7;
    }


    .sidebar.mobile-category-open .category-block:last-child {
        border-bottom: 0;
    }


    /* =====================================================
       CATEGORY BUTTON
    ===================================================== */

    .sidebar.mobile-category-open .category-button {
        width: 100%;

        min-height: 42px;

        padding: 0 14px;

        border-radius: 0;

        background: #fff;

        color: #555;

        font-size: 12px;

        font-weight: 400;
    }


    .sidebar.mobile-category-open .category-button:hover {
        background: #f8f8f6;

        color: #111;
    }


    /*
        Active category
    */

    .sidebar.mobile-category-open .category-button.active {
        background: #fafaf8;

        color: #111;

        font-weight: 800;

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


    /* =====================================================
       CATEGORY CHEVRON
    ===================================================== */

    .sidebar.mobile-category-open .chevron {
        color: #999;

        font-size: 11px;
    }


    /* =====================================================
       SUBCATEGORIES
    ===================================================== */

    .sidebar.mobile-category-open .subcategories {
        padding: 0 0 6px 14px;
    }


    .sidebar.mobile-category-open .subcategory {
        padding: 7px 10px;

        font-size: 11px;

        border-radius: 4px;
    }


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

    .content {
        width: 730px;

        max-width: 100%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .header-inner {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .container {
        padding: 0 15px;
    }


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

    .hero {
        padding: 35px 0 32px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 14px;
    }


    /* =====================================================
       SEARCH
    ===================================================== */

    .search-box {
        width: 100%;
    }


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

    .content {
        width: 100%;
    }


    /* =====================================================
       RESOURCE
    ===================================================== */

    .resource {
        padding: 15px 5px;
    }

    .resource:hover {
        padding-left: 8px;
        padding-right: 8px;
    }

    .resource-title {
        font-size: 14px;
    }

    .resource-description {
        font-size: 12px;
    }


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

    footer {
        width: 100%;

        display: block;

        line-height: 2;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 36px;

        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 13px;
    }

    .content-title {
        font-size: 14px;
    }

    .resource-count {
        font-size: 10px;
    }


    /* Slightly smaller mobile category bar */

    .sidebar-title {
        height: 44px;

        padding: 0 13px;
    }

    .sidebar.mobile-category-open .category-button {
        min-height: 40px;

        padding-left: 13px;
        padding-right: 13px;
    }

}


/* =========================================================
   SUBMIT RESOURCE MODAL
========================================================= */

.submit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;

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

    padding: 20px;
}

.submit-modal.open {
    display: flex;
}

.submit-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.52);
}

.submit-modal-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 560px;

    max-height: calc(100vh - 40px);
    overflow-y: auto;

    background: #fff;

    border: 1px solid #e1e3e6;
    border-radius: 20px;

    padding: 32px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.22);
}

.submit-modal-close {
    position: absolute;

    top: 16px;
    right: 17px;

    width: 34px;
    height: 34px;

    border: 0;
    background: transparent;

    font-size: 27px;
    line-height: 1;

    color: #687386;

    cursor: pointer;
}

.submit-modal-close:hover {
    color: #111;
}

.submit-modal-header {
    margin-bottom: 28px;
    padding-right: 34px;
}

.submit-modal-eyebrow {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;

    color: #687386;

    margin-bottom: 10px;
}

.submit-modal-header h2 {
    margin: 0 0 8px;

    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.7px;
    font-weight: 800;
}

.submit-modal-header p {
    margin: 0;

    color: #687386;

    font-size: 14px;
    line-height: 1.6;
}

.submit-field {
    margin-bottom: 22px;
}

.submit-field label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 700;

    color: #20242b;
}

.submit-field label span {
    color: #ef3d35;
}

.submit-field input,
.submit-field textarea,
.submit-field select {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dfe2e6;

    border-radius: 12px;

    background: #fff;

    color: #111;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.submit-field input,
.submit-field select {
    height: 48px;

    padding: 0 14px;
}

.submit-field textarea {
    min-height: 120px;

    padding: 13px 14px;

    resize: vertical;
}

.submit-field input::placeholder,
.submit-field textarea::placeholder {
    color: #9aa0a6;
}

.submit-field input:focus,
.submit-field textarea:focus,
.submit-field select:focus {
    border-color: #aeb4bc;

    box-shadow:
        0 0 0 4px rgba(80, 120, 180, 0.07);
}

.url-check-row {
    display: flex;
    gap: 10px;
}

.url-check-row input {
    flex: 1;
    min-width: 0;
}

#checkUrlButton {
    flex-shrink: 0;

    height: 48px;

    padding: 0 18px;

    border: 0;

    border-radius: 10px;

    background: #111;
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.12s ease,
        opacity 0.15s ease;
}

#checkUrlButton:hover {
    background: #1c1c1c;
}

#checkUrlButton:active {
    transform: translateY(1px);
}

#checkUrlButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.url-check-message {
    display: none;

    margin-top: 8px;

    font-size: 12px;
    line-height: 1.5;
}

.url-check-message.show {
    display: block;
}

.url-check-message.success {
    color: #18794e;
}

.url-check-message.error {
    color: #c62828;
}

.submission-details {
    opacity: 1;
}

.submission-details.disabled {
    opacity: 0.55;
}

.submission-details input:disabled,
.submission-details textarea:disabled,
.submission-details select:disabled {
    background: #f6f6f6;
    cursor: not-allowed;
}

.submit-resource-button {
    width: 100%;

    height: 50px;

    border: 0;
    border-radius: 10px;

    background: #111;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        opacity 0.15s ease,
        transform 0.12s ease;
}

.submit-resource-button:hover {
    background: #1c1c1c;
}

.submit-resource-button:active {
    transform: translateY(1px);
}

.submit-resource-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.submit-result {
    display: none;

    margin-top: 16px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
}

.submit-result.show {
    display: block;
}

.submit-result.success {
    background: #eefaf3;
    color: #18794e;
}

.submit-result.error {
    background: #fff1f1;
    color: #c62828;
}


/* =========================================================
   SUBMIT MODAL — MOBILE
   MODERN COMMUNITY SUBMISSION UI
========================================================= */

@media (max-width: 600px) {

    .submit-modal {
        padding: 32px 17px;
    }

    .submit-modal-overlay {
        background: rgba(0, 0, 0, 0.50);
    }

    .submit-modal-card {
        width: 100%;
        max-width: 380px;

        max-height: calc(100vh - 64px);

        padding: 30px 22px 82px;

        border: 1px solid #e1e3e6;
        border-radius: 24px;

        box-shadow:
            0 22px 60px rgba(0, 0, 0, 0.20);

        scrollbar-width: thin;
        scrollbar-color: #d5d8dc transparent;
    }

    .submit-modal-card::after {

    position: static;

    display: block;

    margin-top: 20px;

    padding-top: 17px;

    border-top: 1px solid #e1e3e6;

    color: #687386;

    font-size: 9px;
    line-height: 1.4;
}

    .submit-modal-close {
        top: 17px;
        right: 17px;

        width: 34px;
        height: 34px;

        font-size: 28px;

        color: #687386;
    }

    .submit-modal-header {
        margin-bottom: 30px;
        padding-right: 34px;
    }

    .submit-modal-eyebrow {
        margin-bottom: 10px;

        color: #687386;

        font-size: 10px;
        font-weight: 800;

        letter-spacing: 0.14em;
    }

    .submit-modal-header h2 {
        margin-bottom: 9px;

        font-size: 27px;
        line-height: 1.12;

        letter-spacing: -0.8px;
    }

    .submit-modal-header p {
        color: #687386;

        font-size: 14px;
        line-height: 1.65;
    }

    .submit-field {
        margin-bottom: 24px;
    }

    .submit-field label {
        margin-bottom: 9px;

        font-size: 14px;
        font-weight: 700;

        color: #20242b;
    }

    .submit-field input,
    .submit-field textarea,
    .submit-field select {
        border-color: #dfe2e6;

        border-radius: 14px;

        font-size: 15px;
    }

    .submit-field input,
    .submit-field select {
        height: 56px;

        padding: 0 16px;
    }

    .submit-field textarea {
        min-height: 154px;

        padding: 15px 16px;

        line-height: 1.5;
    }

    .submit-field input::placeholder,
    .submit-field textarea::placeholder {
        color: #9aa0a6;

        font-size: 14px;
    }

    .submit-field input:focus,
    .submit-field textarea:focus,
    .submit-field select:focus {
        border-color: #aeb4bc;

        box-shadow:
            0 3px 12px rgba(0, 0, 0, 0.07);
    }

    /* URL section — large Google-style input,
       separate Check URL button */

    .url-check-row {
        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .url-check-row input {
        width: 100%;
        height: 100px;

        padding: 0 19px;

        border: 1px solid #d9dde2;
        border-radius: 30px;

        background: #fff;

        color: #20242b;

        font-size: 16px;
        font-weight: 400;

        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.055);

        transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.12s ease;
    }

 .url-check-row input::placeholder {
    color: #9aa0a6;

    font-size: 15px;
}

.url-check-row input:hover {
    border-color: #c8ccd1;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.075);
}

.url-check-row input:focus {
    border-color: #b8bec6;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.09);

    transform: translateY(-1px);
}

    #checkUrlButton {
        width: 100%;
        height: 54px;

        padding: 0 18px;

        border: 0;
        border-radius: 14px;

        background: #111;
        color: #fff;

        font-size: 14px;
        font-weight: 800;

        box-shadow:
            0 3px 8px rgba(0, 0, 0, 0.12);

        transition:
            background 0.15s ease,
            transform 0.12s ease,
            box-shadow 0.15s ease,
            opacity 0.15s ease;
    }

    #checkUrlButton:hover {
        background: #1b1b1b;

        box-shadow:
            0 4px 10px rgba(0, 0, 0, 0.14);
    }

    #checkUrlButton:active {
        transform: translateY(1px);

        box-shadow:
            0 1px 4px rgba(0, 0, 0, 0.10);
    }

    .url-check-message {
        margin-top: 9px;

        padding: 0 4px;

        font-size: 12px;
    }

    .submit-resource-button {
        height: 56px;

        margin-top: 2px;

        border-radius: 14px;

        font-size: 14px;
        font-weight: 800;

        box-shadow:
            0 2px 7px rgba(0, 0, 0, 0.08);
    }

    .submit-resource-button:disabled {
        background: #bfc1c3;
        color: #fff;

        opacity: 1;
    }

    .submit-result {
        margin-top: 16px;

        border-radius: 12px;

        font-size: 13px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .submit-modal {
        padding: 20px 10px;
    }

    .submit-modal-card {
        max-height: calc(100vh - 40px);

        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 78px;

        border-radius: 21px;
    }

    .submit-modal-card::after {
        left: 18px;
        right: 18px;
        bottom: 19px;
    }

    .submit-modal-header h2 {
        font-size: 25px;
    }

    .submit-field {
        margin-bottom: 21px;
    }
}
/* =========================================================
   PUBLIC SUBMISSION CATEGORY TREE
========================================================= */

.submit-category-tree {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;

    margin-top: 8px;
    padding: 8px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    box-sizing: border-box;
}


/* CATEGORY ITEM */

.submit-category-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 4px 0;
}

.submit-category-item:last-child {
    border-bottom: none;
}


/* CATEGORY ROW */

.submit-category-row {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 38px;

    padding: 7px 10px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    color: #1f2937;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.submit-category-row:hover {
    background: #f0fdf4;
    color: #15803d;
}


/* CATEGORY CHECKBOX */

.submit-category-row input[type="checkbox"] {
    width: 17px;
    height: 17px;

    margin: 0;

    flex: 0 0 auto;

    cursor: pointer;

    accent-color: #16a34a;
}


/* SUBCATEGORY LIST */

.submit-subcategory-list {
    margin-left: 28px;

    padding: 3px 0 7px 14px;

    border-left: 1px solid #e5e7eb;
}


/* SUBCATEGORY ROW */

.submit-subcategory-row {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 32px;

    padding: 5px 9px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 400;

    color: #6b7280;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.submit-subcategory-row:hover {
    background: #f9fafb;
    color: #374151;
}


/* SUBCATEGORY CHECKBOX */

.submit-subcategory-row input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin: 0;

    flex: 0 0 auto;

    cursor: pointer;

    accent-color: #16a34a;
}


/* EMPTY / ERROR STATE */

.submit-category-empty {
    padding: 20px 12px;

    text-align: center;

    color: #9ca3af;

    font-size: 13px;
}


/* SCROLLBAR */

.submit-category-tree::-webkit-scrollbar {
    width: 6px;
}

.submit-category-tree::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.submit-category-tree::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.submit-category-tree::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


/* DISABLED STATE */

.submit-category-tree.disabled {
    opacity: 0.55;
    pointer-events: none;
}
/* =========================================================
   PUBLIC CATEGORY TREE — FINAL TEXT & SPACING FIX
========================================================= */

.submit-category-row {
    gap: 12px;
}

.submit-category-row span {
    color: #1f2937 !important;
}

.submit-subcategory-row {
    gap: 12px;
}

.submit-subcategory-row span {
    color: #4b5563 !important;
}


/* =========================================================
   PUBLIC SUBMISSION CATEGORY TREE
========================================================= */

.submit-category-tree {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;

    margin-top: 8px;
    padding: 8px 10px;

    box-sizing: border-box;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #ffffff;
}


/* CATEGORY ITEM */

.submit-category-item {
    padding: 6px 0;

    border-bottom: 1px solid #f1f5f9;
}

.submit-category-item:last-child {
    border-bottom: none;
}


/* CATEGORY */

.submit-category-row {
    display: flex;
    align-items: center;

    min-height: 36px;

    padding: 5px 8px;

    cursor: pointer;

    color: #1f2937;
}


/* CATEGORY CHECKBOX */

.submit-category-row input[type="checkbox"] {
    width: 17px;
    height: 17px;

    margin: 0 10px 0 0;
    padding: 0;

    flex: 0 0 17px;

    cursor: pointer;

    accent-color: #16a34a;
}


/* CATEGORY TEXT */

.submit-category-row span {
    margin: 0;
    padding: 0;

    color: #1f2937 !important;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.4;

    cursor: pointer;
}


/* SUBCATEGORY CONTAINER */

.submit-subcategory-list {
    margin-left: 27px;

    margin-top: 3px;
    margin-bottom: 3px;

    padding: 2px 0 2px 16px;

    border-left: 1px solid #e5e7eb;
}


/* SUBCATEGORY */

.submit-subcategory-row {
    display: flex;
    align-items: center;

    min-height: 34px;

    padding: 4px 8px;

    cursor: pointer;

    color: #374151;
}


/* SUBCATEGORY CHECKBOX */

.submit-subcategory-row input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin: 0 10px 0 0;
    padding: 0;

    flex: 0 0 16px;

    cursor: pointer;

    accent-color: #16a34a;
}


/* SUBCATEGORY TEXT */

.submit-subcategory-row span {
    margin: 0;
    padding: 0;

    color: #374151 !important;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.4;

    cursor: pointer;
}


/* HOVER */

.submit-category-row:hover,
.submit-subcategory-row:hover {
    background: #f8fafc;
    border-radius: 5px;
}


/* SCROLLBAR */

.submit-category-tree::-webkit-scrollbar {
    width: 6px;
}

.submit-category-tree::-webkit-scrollbar-track {
    background: #f8fafc;
}

.submit-category-tree::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}


/* EMPTY STATE */

.submit-category-empty {
    padding: 15px;

    text-align: center;

    color: #9ca3af;

    font-size: 13px;
}
/* =========================================================
   CHECKBOX + TEXT — PERFECT SAME LINE
========================================================= */

.submit-category-row,
.submit-subcategory-row {
    display: flex;
    align-items: center;

    line-height: normal;
}


/* CHECKBOX */

.submit-category-row input[type="checkbox"],
.submit-subcategory-row input[type="checkbox"] {
    display: inline-block;

    width: 17px;
    height: 17px;

    margin: 0 10px 0 0;
    padding: 0;

    flex: 0 0 17px;

    vertical-align: middle;

    position: relative;
    top: 0;

    cursor: pointer;
}


/* TEXT */

.submit-category-row span,
.submit-subcategory-row span {
    display: inline-block;

    margin: 0;
    padding: 0;

    line-height: 17px;

    vertical-align: middle;
}
/* =========================================================
   CATEGORY SPACING — NATURAL
========================================================= */

.submit-category-item {
    padding: 3px 0;
}

.submit-category-row {
    min-height: 34px;
    padding: 4px 8px;
}

.submit-subcategory-list {
    margin-top: 1px;
    margin-bottom: 2px;
}

.submit-subcategory-row {
    min-height: 31px;
    padding: 3px 8px;
}