/* =========================================================
   SCLVN RULES & GUIDES
   Gradient: #BE93C5 -> #7BC6CC
   ========================================================= */

.page-rules-guides {
    width: 100% !important;
    min-height: 100vh !important;

    padding:
        calc(var(--topbar-height) + 42px)
        26px
        52px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background:
        radial-gradient(circle at 15% 5%, rgba(190,147,197,.055), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(123,198,204,.055), transparent 30%),
        var(--color-background) !important;
}

.rules-page-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.rules-gradient-shell {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    padding: 25px;

    border: 1px solid rgba(205,218,223,.12);
    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(190,147,197,.095) 0%,
            rgba(166,167,196,.060) 46%,
            rgba(123,198,204,.085) 100%
        ),
        rgba(12,12,16,.76);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 0 0 1px rgba(255,255,255,.012),
        0 22px 54px rgba(0,0,0,.28);

    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.rules-gradient-shell::before {
    content: '';

    position: absolute;
    z-index: -1;
    inset: -35%;

    pointer-events: none;

    background:
        radial-gradient(circle at 28% 36%, rgba(190,147,197,.11), transparent 24%),
        radial-gradient(circle at 70% 58%, rgba(123,198,204,.09), transparent 27%);

    filter: blur(50px);
}

.rules-hero {
    margin-bottom: 18px;
    padding: 4px 4px 3px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.rules-kicker,
.rules-info-kicker {
    display: block;

    color: #8f929c;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.rules-hero h1 {
    margin: 7px 0 0;

    color: #f5f5f6;

    font-size: clamp(30px, 4vw, 45px);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: .98;
}

.rules-hero p {
    width: min(670px, 100%);
    margin: 10px 0 0;

    color: #8d8d98;

    font-size: 10px;
    line-height: 1.7;
}

.rules-hero-badge {
    min-width: 120px;
    padding: 10px 12px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;

    background: rgba(255,255,255,.025);

    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.rules-hero-badge span {
    color: #75757f;
    font-size: 8px;
}

.rules-hero-badge strong {
    color: #e8e8eb;
    font-size: 10px;
}

.rules-yellow-card,
.rules-guide-card,
.rules-info-card {
    border-radius: 18px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 14px 30px rgba(0,0,0,.18);
}

/* Requested yellow frosted rules panel. */
.rules-yellow-card {
    padding: 22px 23px;

    border: 1px solid rgba(255,211,96,.20);

    background:
        linear-gradient(
            145deg,
            rgba(255,214,102,.105),
            rgba(209,158,38,.045) 48%,
            rgba(255,219,111,.065)
        ),
        rgba(26,21,10,.43);

    box-shadow:
        inset 0 1px 0 rgba(255,239,187,.08),
        0 0 0 1px rgba(255,201,69,.015),
        0 0 26px rgba(255,193,43,.035),
        0 16px 32px rgba(0,0,0,.19);

    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.rules-card-heading {
    margin-bottom: 17px;

    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rules-section-number {
    min-width: 35px;

    color: rgba(245,228,181,.82);

    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.rules-card-heading h2,
.rules-info-card h2 {
    margin: 0;

    color: #f0f0f2;

    font-size: 14px;
    font-weight: 740;
    letter-spacing: -.015em;
}

.rules-card-heading p {
    margin: 4px 0 0;

    color: #85858f;

    font-size: 8px;
    line-height: 1.55;
}

.rules-list {
    margin: 0;
    padding-left: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-list li {
    padding-left: 3px;

    color: #d6d6db;

    font-size: 10px;
    line-height: 1.78;
}

.rules-list li::marker {
    color: rgba(255,219,120,.78);
}

.rules-list strong,
.rules-guide-lines strong {
    color: #f0f0f3;
    font-weight: 760;
}

.rules-channel {
    display: inline-flex;
    align-items: center;

    margin-inline: 2px;
    padding: 2px 6px;

    border: 1px solid rgba(158,169,255,.12);
    border-radius: 5px;

    background: rgba(100,111,205,.15);
    color: #c8cef9;

    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .92em;
    font-weight: 650;
    line-height: 1.35;
}

.rules-guide-card {
    margin-top: 14px;
    padding: 20px 22px;

    border: 1px solid rgba(190,147,197,.13);

    background:
        linear-gradient(
            135deg,
            rgba(190,147,197,.075),
            rgba(123,198,204,.045)
        ),
        rgba(14,14,18,.46);
}

.rules-guide-lines {
    padding: 2px 1px 1px 47px;
}

.rules-guide-lines p {
    margin: 0 0 7px;

    color: #d0d0d5;

    font-size: 10px;
    line-height: 1.7;
}

.rules-guide-note {
    margin-top: 10px !important;
    color: #a7a7b0 !important;
}

.rules-about-grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 14px;
}

.rules-info-card {
    min-width: 0;
    padding: 20px;

    border: 1px solid rgba(255,255,255,.075);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.032),
            rgba(255,255,255,.010)
        ),
        rgba(10,10,13,.50);
}

.rules-about-card > p {
    margin: 10px 0 0;

    color: #90909a;

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

.rules-about-card h2,
.rules-info-card-head h2 {
    margin-top: 6px;
}

.rules-about-pills {
    margin-top: 15px;

    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rules-about-pills span {
    padding: 5px 7px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 7px;

    background: rgba(255,255,255,.025);
    color: #a9a9b1;

    font-size: 8px;
    font-weight: 650;
}

.rules-info-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rules-moderator-count {
    padding: 4px 7px;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 999px;

    background: rgba(255,255,255,.025);
    color: #767680;

    font-size: 7px;
    white-space: nowrap;
}

.rules-moderators-grid {
    margin-top: 14px;

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

.rules-moderator-item {
    min-width: 0;
    min-height: 48px;

    padding: 7px 8px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 10px;

    background: rgba(255,255,255,.018);
    color: inherit;
    text-decoration: none;

    transition:
        transform .17s ease,
        border-color .17s ease,
        background .17s ease,
        box-shadow .17s ease;
}

.rules-moderator-item.is-link:hover {
    transform: translateY(-1px);

    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.045);

    box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.rules-moderator-icon {
    width: 31px;
    height: 31px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;

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

.rules-moderator-icon img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.rules-moderator-copy {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rules-moderator-copy strong {
    overflow: hidden;

    color: #dcdce0;

    font-size: 9px;
    font-weight: 680;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.rules-moderator-copy small {
    color: #6f6f79;
    font-size: 7px;
}

.rules-moderator-arrow {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    fill: none;
    stroke: #61616b;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rules-moderators-empty {
    margin: 14px 0 0;

    color: #70707a;
    font-size: 8px;
}

@media (max-width: 820px) {
    .page-rules-guides {
        padding:
            calc(var(--topbar-height) + 24px)
            13px
            34px !important;
    }

    .rules-gradient-shell {
        padding: 16px;
        border-radius: 19px;
    }

    .rules-hero {
        flex-direction: column;
    }

    .rules-hero-badge {
        width: 100%;
        align-items: flex-start;
    }

    .rules-about-grid,
    .rules-moderators-grid {
        grid-template-columns: 1fr;
    }

    .rules-guide-lines {
        padding-left: 0;
    }
}
