Шаблон:Космический закон/styles.css: различия между версиями

Polish Cosmic Law nested lists
Consolidate Cosmic Law styles
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
/* ===== Cosmic Law page ===== */
/* ===== Cosmic Law ===== */
 
 
/* ---------- Typography ---------- */
 
.rs-law > p,
.rs-law .rs-law-prose,
.rs-law-rules,
.rs-law-note-list,
.rs-law-investigation {
    max-width: 128ch;
}


.rs-law > p,
.rs-law > p,
.rs-law .rs-law-prose {
.rs-law .rs-law-prose {
    max-width: 112ch;
     line-height: 1.65;
     line-height: 1.65;
}
}
Строка 20: Строка 30:




/* ---------- Rules / prose blocks ---------- */
/* ---------- Punishment rules ---------- */


.rs-law-rules {
.rs-law-rules {
    max-width: 112ch;
     margin: 0.6rem 0 1.25rem;
     margin: 0.6rem 0 1.25rem;
     padding: 10px 14px;
     padding: 10px 14px;
Строка 52: Строка 61:
     line-height: 1.55;
     line-height: 1.55;
}
}
/* ---------- Punishment notes ---------- */


.rs-law-note-list {
.rs-law-note-list {
    max-width: 112ch;
     margin: 0.8rem 0 1.35rem;
     margin: 0.8rem 0 1.35rem;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid rgba(255, 59, 63, 0.24);
    border-radius: 7px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.022),
            rgba(255, 255, 255, 0.014) 58%,
            rgba(255, 255, 255, 0.008)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.018);
}
}


.rs-law-note-list > ul {
.rs-law-note-list > ul,
     margin-top: 0.35rem;
.rs-law-note-list ul {
     margin: 0;
    padding-left: 1.35rem;
}
}


.rs-law-note-list li {
.rs-law-note-list li {
     margin: 0.32rem 0;
     margin: 0.34rem 0;
     line-height: 1.55;
     line-height: 1.58;
}
 
.rs-law-note-list ul ul {
    margin: 0.15rem 0;
    padding-left: 1.15rem;
    list-style: none;
}
 
.rs-law-note-list ul ul > li {
    position: relative;
 
    margin: 0.18rem 0;
    padding-left: 0.85rem;
 
    line-height: 1.5;
}
 
.rs-law-note-list ul ul > li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
 
    width: 4px;
    height: 4px;
 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}
}


Строка 99: Строка 156:


     border: 0 !important;
     border: 0 !important;
     border-right: 1px solid rgba(255, 255, 255, 0.050) !important;
     border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
     border-bottom: 1px solid rgba(255, 59, 63, 0.16) !important;
     border-bottom: 1px solid rgba(255, 59, 63, 0.16) !important;


Строка 112: Строка 169:
     font-weight: 700;
     font-weight: 700;
     text-align: left;
     text-align: left;
}
.rs-law .rs-law-table th:last-child {
    border-right: 0 !important;
}
}


Строка 122: Строка 175:


     border: 0 !important;
     border: 0 !important;
     border-right: 1px solid rgba(255, 255, 255, 0.050) !important;
     border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
     border-bottom: 1px solid rgba(255, 255, 255, 0.050) !important;
     border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;


     background: rgba(255, 255, 255, 0.010) !important;
     background: rgba(255, 255, 255, 0.01) !important;


     color: rgba(226, 230, 237, 0.88);
     color: rgba(226, 230, 237, 0.88);
Строка 132: Строка 185:
}
}


.rs-law .rs-law-table th:last-child,
.rs-law .rs-law-table td:last-child {
.rs-law .rs-law-table td:last-child {
     border-right: 0 !important;
     border-right: 0 !important;
Строка 145: Строка 199:




/* Punishments */
/* ---------- Punishment table ---------- */


.rs-law .rs-law-table--punishments th:first-child,
.rs-law .rs-law-table--punishments th:first-child,
Строка 154: Строка 208:


.rs-law .rs-law-table--punishments th:nth-child(2),
.rs-law .rs-law-table--punishments th:nth-child(2),
.rs-law .rs-law-table--punishments td:nth-child(2) {
.rs-law .rs-law-table--punishments td:nth-child(2),
    width: 40%;
}
 
.rs-law .rs-law-table--punishments th:nth-child(3),
.rs-law .rs-law-table--punishments th:nth-child(3),
.rs-law .rs-law-table--punishments td:nth-child(3) {
.rs-law .rs-law-table--punishments td:nth-child(3) {
Строка 168: Строка 219:




/* Modifiers */
/* ---------- Modifier table ---------- */


.rs-law .rs-law-table--modifiers th:first-child,
.rs-law .rs-law-table--modifiers th:first-child,
Строка 197: Строка 248:


/* ---------- Investigation ---------- */
/* ---------- Investigation ---------- */
.rs-law-investigation {
    max-width: 112ch;
}


.rs-law-investigation p {
.rs-law-investigation p {
    max-width: 128ch;
     margin: 0.7rem 0;
     margin: 0.7rem 0;
     line-height: 1.65;
     line-height: 1.65;
}
}
Строка 218: Строка 267:
.rs-law-investigation__label {
.rs-law-investigation__label {
     margin-top: 1rem;
     margin-top: 1rem;
    margin-bottom: 0.35rem;


     color: #e5e9ef;
     color: #e5e9ef;
Строка 223: Строка 273:
}
}


 
.rs-law-investigation__label + ul {
/* ---------- Mobile ---------- */
     margin: 0.2rem 0 0.55rem;
 
     padding: 10px 14px 10px 1.35rem;
@media (max-width: 760px) {
    .rs-law > p,
    .rs-law .rs-law-prose,
    .rs-law-rules,
    .rs-law-note-list,
    .rs-law-investigation {
        max-width: none;
    }
 
    .rs-law .rs-law-table {
        min-width: 680px;
    }
 
    .rs-law .rs-law-table--modifiers {
        min-width: 820px;
    }
}
 
/* ---------- Collapsible document blocks ---------- */
 
.rs-law-fold {
    position: relative;
     margin: 0.65rem 0 1.2rem;
 
     overflow: hidden;


     border: 1px solid rgba(255, 255, 255, 0.075);
     border: 1px solid rgba(255, 255, 255, 0.075);
     border-radius: 8px;
     border-left: 3px solid rgba(255, 59, 63, 0.24);
 
     border-radius: 7px;
    background: rgba(10, 12, 16, 0.58);
 
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.018);
}
 
.rs-law-fold__heading {
     min-height: 38px;
    box-sizing: border-box;
    padding: 9px 46px 9px 12px;
 
    border-bottom: 1px solid rgba(255, 59, 63, 0.14);


     background:
     background:
         linear-gradient(
         linear-gradient(
             90deg,
             90deg,
             rgba(255, 59, 63, 0.045),
             rgba(255, 59, 63, 0.020),
             rgba(255, 255, 255, 0.022) 55%,
             rgba(255, 255, 255, 0.013) 58%,
             transparent
             rgba(255, 255, 255, 0.007)
         );
         );


     color: #e8ebf1;
     box-shadow:
 
        inset 0 1px rgba(255, 255, 255, 0.018);
    font-size: 0.95rem;
    font-weight: 700;
}
}


.rs-law-fold > .mw-collapsible-toggle {
.rs-law-investigation__label + ul li {
     position: absolute;
     margin: 0.3rem 0;
    top: 7px;
     line-height: 1.56;
    right: 7px;
    z-index: 2;
 
    float: none;
}
 
.rs-law-fold .mw-collapsible-content {
    padding: 0;
}
 
.rs-law-fold .rs-law-table-wrap {
    margin: 0;
    border: 0;
     border-radius: 0;
    box-shadow: none;
}
}




/* ===== Cosmic Law readability pass 2 ===== */
/* ---------- Investigation testimony ---------- */


.rs-law > p,
.rs-law-investigation-note {
.rs-law .rs-law-prose,
.rs-law-rules,
.rs-law-note-list,
.rs-law-investigation {
     max-width: 128ch;
     max-width: 128ch;
}
     margin: 0.55rem 0 1rem;
 
/* Punishment notes under the table */
 
.rs-law-note-list {
    max-width: 128ch;
     margin: 0.8rem 0 1.35rem;
     padding: 10px 14px;
     padding: 10px 14px;


     border: 1px solid var(--rs-law-border);
     border: 1px solid rgba(255, 255, 255, 0.075);
     border-left: 3px solid rgba(255, 59, 63, 0.24);
     border-left: 3px solid rgba(255, 59, 63, 0.24);
     border-radius: 7px;
     border-radius: 7px;
Строка 328: Строка 313:
         linear-gradient(
         linear-gradient(
             90deg,
             90deg,
             rgba(255, 59, 63, 0.022),
             rgba(255, 59, 63, 0.018),
             rgba(255, 255, 255, 0.014) 58%,
             rgba(255, 255, 255, 0.012) 58%,
             rgba(255, 255, 255, 0.008)
             rgba(255, 255, 255, 0.006)
         );
         );
    line-height: 1.58;


     box-shadow:
     box-shadow:
Строка 337: Строка 324:
}
}


.rs-law-note-list > ul,
.rs-law-investigation-note__secondary {
.rs-law-note-list ul {
    position: relative;
     margin: 0;
 
    margin-top: 0.55rem;
     padding-top: 0.55rem;
     padding-left: 1.35rem;
     padding-left: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(226, 230, 237, 0.88);
}
}


.rs-law-note-list li {
.rs-law-investigation-note__secondary::before {
     margin: 0.34rem 0;
     content: "";
     line-height: 1.58;
    position: absolute;
    top: 1.08rem;
    left: 0.35rem;
 
    width: 5px;
     height: 5px;
 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
}
}


/* Investigation: highlight direct / circumstantial evidence blocks */


.rs-law-investigation {
/* ---------- Major section toggles ---------- */
     max-width: 128ch;
 
.rs-law-section-toggle {
     cursor: pointer;
}
}


.rs-law-investigation__label {
.rs-law-section-toggle::after {
    margin-top: 1rem;
     content: "";
     margin-bottom: 0.35rem;


     color: #e5e9ef;
     display: inline-block;
     font-weight: 700;
     width: 0.42rem;
}
    height: 0.42rem;


.rs-law-investigation__label + ul {
     margin-left: 0.65rem;
     margin: 0.2rem 0 1rem;
     margin-bottom: 0.15rem;
     padding: 10px 14px 10px 1.35rem;


     border: 1px solid var(--rs-law-border);
     border-right: 2px solid rgba(226, 230, 237, 0.45);
     border-left: 3px solid rgba(255, 59, 63, 0.24);
     border-bottom: 2px solid rgba(226, 230, 237, 0.45);
    border-radius: 7px;


     background:
     transform: rotate(45deg);
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.020),
            rgba(255, 255, 255, 0.013) 58%,
            rgba(255, 255, 255, 0.007)
        );


     box-shadow:
     transition: border-color 120ms ease;
        inset 0 1px rgba(255, 255, 255, 0.018);
}
}


.rs-law-investigation__label + ul li {
.rs-law-section-toggle:hover::after {
     margin: 0.30rem 0;
     border-color: rgba(240, 243, 248, 0.82);
    line-height: 1.56;
}
}


.rs-law-investigation > p {
.rs-law .rs-law-section-content {
     max-width: 128ch;
     margin: 0 !important;
    padding: 0 !important;
 
    border: 0 !important;
    border-radius: 0 !important;
 
    background: transparent !important;
    box-shadow: none !important;
}
}


/* ===== Investigation testimony note ===== */
.rs-law .rs-law-section-content > .mw-collapsible-toggle {
    display: none !important;
}


.rs-law-investigation__label + ul {
    margin-bottom: 0.55rem;
}


.rs-law-investigation-note {
/* ---------- Law index matrix ---------- */
    max-width: 128ch;
    margin: 0.55rem 0 1rem;
    padding: 10px 14px;


    border: 1px solid var(--rs-law-border);
.rs-law .rs-law-index {
     border-left: 3px solid rgba(255, 59, 63, 0.24);
     width: 100%;
     border-radius: 7px;
     margin: 0.75rem 0 0.35rem !important;


     background:
     border: 1px solid rgba(255, 255, 255, 0.075) !important;
        linear-gradient(
    border-collapse: separate;
            90deg,
    border-spacing: 1px;
            rgba(255, 59, 63, 0.018),
            rgba(255, 255, 255, 0.012) 58%,
            rgba(255, 255, 255, 0.006)
        );


     line-height: 1.58;
     background: rgba(7, 9, 12, 0.72) !important;


     box-shadow:
     box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.14),
         inset 0 1px rgba(255, 255, 255, 0.018);
         inset 0 1px rgba(255, 255, 255, 0.018);
}
}


.rs-law-investigation-note__secondary {
.rs-law .rs-law-index th {
    margin-top: 0.55rem;
     padding: 10px 8px;
     padding-top: 0.55rem;


     border-top: 1px solid var(--rs-law-border-soft);
     border: 0 !important;


     color: rgba(226, 230, 237, 0.88);
     color: rgba(235, 238, 243, 0.92);
    font-weight: 700;
    line-height: 1.3;
}
}


.rs-law-investigation-note__secondary::before {
.rs-law .rs-law-index td {
     content: "— ";
     padding: 0 !important;
     color: rgba(255, 255, 255, 0.38);
 
}
     border: 0 !important;


/* ===== Cosmic Law list polish ===== */
    vertical-align: middle;


/* Testimony secondary note: use a normal bullet, not a dash. */
    transition: filter 100ms ease;
}


.rs-law-investigation-note__secondary {
.rs-law .rs-law-index td > a {
     position: relative;
     display: flex;
     margin-top: 0.55rem;
     align-items: center;
     padding-top: 0.55rem;
     justify-content: center;
    padding-left: 1.35rem;


     border-top: 1px solid var(--rs-law-border-soft);
     min-height: 48px;
    box-sizing: border-box;
    padding: 7px 9px;


     color: rgba(226, 230, 237, 0.88);
     line-height: 1.3;
    text-decoration: none;
}
}


.rs-law-investigation-note__secondary::before {
.rs-law .rs-law-index td > a:hover {
     content: "";
     text-decoration: none;
    position: absolute;
}
    left: 0.35rem;
    top: 1.08rem;


    width: 5px;
.rs-law .rs-law-index td:hover {
     height: 5px;
     filter: brightness(1.08);
}


    border-radius: 50%;
.rs-law .rs-law-index td:active {
     background: rgba(255, 255, 255, 0.58);
     filter: brightness(0.98);
}
}


.rs-law .rs-law-index + .rs-law-section-toc + .rs-law-section {
    margin-top: 0 !important;
}


/* Punishment nested notes: compact second level. */


.rs-law-note-list ul ul {
/* ---------- Responsive ---------- */
    margin: 0.15rem 0 0.15rem;
    padding-left: 1.15rem;
    list-style: none;
}


.rs-law-note-list ul ul > li {
@media (max-width: 900px) {
    position: relative;
    .rs-law .rs-law-index {
    margin: 0.18rem 0;
        min-width: 920px;
    padding-left: 0.85rem;
     }
 
     line-height: 1.5;
}
}


.rs-law-note-list ul ul > li::before {
@media (max-width: 760px) {
     content: "";
    .rs-law > p,
     position: absolute;
    .rs-law .rs-law-prose,
     left: 0;
     .rs-law-rules,
     top: 0.7em;
     .rs-law-note-list,
     .rs-law-investigation {
        max-width: none;
     }


     width: 4px;
     .rs-law .rs-law-table {
     height: 4px;
        min-width: 680px;
     }


     border-radius: 50%;
     .rs-law .rs-law-table--modifiers {
     background: rgba(255, 255, 255, 0.42);
        min-width: 820px;
     }
}
}

Текущая версия от 06:33, 30 сентября 2026

/* ===== Cosmic Law ===== */


/* ---------- Typography ---------- */

.rs-law > p,
.rs-law .rs-law-prose,
.rs-law-rules,
.rs-law-note-list,
.rs-law-investigation {
    max-width: 128ch;
}

.rs-law > p,
.rs-law .rs-law-prose {
    line-height: 1.65;
}

.rs-law h4 {
    margin-top: 1.6rem;
    margin-bottom: 0.65rem;
    padding-left: 10px;

    border-left: 2px solid rgba(255, 59, 63, 0.55);

    color: #e8ebf1;
    font-size: 1.05rem;
    font-weight: 700;
}


/* ---------- Punishment rules ---------- */

.rs-law-rules {
    margin: 0.6rem 0 1.25rem;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid rgba(255, 59, 63, 0.32);
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.028),
            rgba(255, 255, 255, 0.015) 55%,
            rgba(255, 255, 255, 0.008)
        );

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

.rs-law-rules ul {
    margin: 0;
    padding-left: 1.35rem;
}

.rs-law-rules li {
    margin: 0.38rem 0;
    line-height: 1.55;
}


/* ---------- Punishment notes ---------- */

.rs-law-note-list {
    margin: 0.8rem 0 1.35rem;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid rgba(255, 59, 63, 0.24);
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.022),
            rgba(255, 255, 255, 0.014) 58%,
            rgba(255, 255, 255, 0.008)
        );

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

.rs-law-note-list > ul,
.rs-law-note-list ul {
    margin: 0;
    padding-left: 1.35rem;
}

.rs-law-note-list li {
    margin: 0.34rem 0;
    line-height: 1.58;
}

.rs-law-note-list ul ul {
    margin: 0.15rem 0;
    padding-left: 1.15rem;
    list-style: none;
}

.rs-law-note-list ul ul > li {
    position: relative;

    margin: 0.18rem 0;
    padding-left: 0.85rem;

    line-height: 1.5;
}

.rs-law-note-list ul ul > li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;

    width: 4px;
    height: 4px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}


/* ---------- Tables ---------- */

.rs-law-table-wrap {
    width: 100%;
    margin: 0.65rem 0 1.15rem;
    overflow-x: auto;

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

    background: rgba(9, 11, 15, 0.48);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.018);
}

.rs-law .rs-law-table {
    width: 100%;
    margin: 0 !important;

    border: 0 !important;
    border-collapse: collapse;

    background: transparent !important;
}

.rs-law .rs-law-table th {
    padding: 9px 11px;

    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 59, 63, 0.16) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.022)
        ) !important;

    color: #e5e9ef;
    font-weight: 700;
    text-align: left;
}

.rs-law .rs-law-table td {
    padding: 9px 11px;

    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;

    background: rgba(255, 255, 255, 0.01) !important;

    color: rgba(226, 230, 237, 0.88);
    line-height: 1.48;
    vertical-align: top;
}

.rs-law .rs-law-table th:last-child,
.rs-law .rs-law-table td:last-child {
    border-right: 0 !important;
}

.rs-law .rs-law-table tr:last-child td {
    border-bottom: 0 !important;
}

.rs-law .rs-law-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.027) !important;
}


/* ---------- Punishment table ---------- */

.rs-law .rs-law-table--punishments th:first-child,
.rs-law .rs-law-table--punishments td:first-child {
    width: 20%;
    font-weight: 700;
}

.rs-law .rs-law-table--punishments th:nth-child(2),
.rs-law .rs-law-table--punishments td:nth-child(2),
.rs-law .rs-law-table--punishments th:nth-child(3),
.rs-law .rs-law-table--punishments td:nth-child(3) {
    width: 40%;
}

.rs-law .rs-law-table--punishments td:nth-child(2) strong {
    color: #f0c4c6;
}


/* ---------- Modifier table ---------- */

.rs-law .rs-law-table--modifiers th:first-child,
.rs-law .rs-law-table--modifiers td:first-child {
    width: 18%;
}

.rs-law .rs-law-table--modifiers th:nth-child(2),
.rs-law .rs-law-table--modifiers td:nth-child(2) {
    width: 52%;
}

.rs-law .rs-law-table--modifiers th:last-child,
.rs-law .rs-law-table--modifiers td:last-child {
    width: 30%;
}

.rs-law .rs-law-table--modifiers td:first-child {
    color: #e8ebf1;
    font-weight: 700;
}

.rs-law .rs-law-table--modifiers td:last-child {
    color: #efc6c8;
    font-weight: 600;
}


/* ---------- Investigation ---------- */

.rs-law-investigation p {
    max-width: 128ch;
    margin: 0.7rem 0;

    line-height: 1.65;
}

.rs-law-investigation ul {
    margin: 0.35rem 0 0.9rem;
}

.rs-law-investigation li {
    margin: 0.3rem 0;
    line-height: 1.5;
}

.rs-law-investigation__label {
    margin-top: 1rem;
    margin-bottom: 0.35rem;

    color: #e5e9ef;
    font-weight: 700;
}

.rs-law-investigation__label + ul {
    margin: 0.2rem 0 0.55rem;
    padding: 10px 14px 10px 1.35rem;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid rgba(255, 59, 63, 0.24);
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.020),
            rgba(255, 255, 255, 0.013) 58%,
            rgba(255, 255, 255, 0.007)
        );

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

.rs-law-investigation__label + ul li {
    margin: 0.3rem 0;
    line-height: 1.56;
}


/* ---------- Investigation testimony ---------- */

.rs-law-investigation-note {
    max-width: 128ch;
    margin: 0.55rem 0 1rem;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid rgba(255, 59, 63, 0.24);
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.018),
            rgba(255, 255, 255, 0.012) 58%,
            rgba(255, 255, 255, 0.006)
        );

    line-height: 1.58;

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

.rs-law-investigation-note__secondary {
    position: relative;

    margin-top: 0.55rem;
    padding-top: 0.55rem;
    padding-left: 1.35rem;

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    color: rgba(226, 230, 237, 0.88);
}

.rs-law-investigation-note__secondary::before {
    content: "";
    position: absolute;
    top: 1.08rem;
    left: 0.35rem;

    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
}


/* ---------- Major section toggles ---------- */

.rs-law-section-toggle {
    cursor: pointer;
}

.rs-law-section-toggle::after {
    content: "";

    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;

    margin-left: 0.65rem;
    margin-bottom: 0.15rem;

    border-right: 2px solid rgba(226, 230, 237, 0.45);
    border-bottom: 2px solid rgba(226, 230, 237, 0.45);

    transform: rotate(45deg);

    transition: border-color 120ms ease;
}

.rs-law-section-toggle:hover::after {
    border-color: rgba(240, 243, 248, 0.82);
}

.rs-law .rs-law-section-content {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}

.rs-law .rs-law-section-content > .mw-collapsible-toggle {
    display: none !important;
}


/* ---------- Law index matrix ---------- */

.rs-law .rs-law-index {
    width: 100%;
    margin: 0.75rem 0 0.35rem !important;

    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-collapse: separate;
    border-spacing: 1px;

    background: rgba(7, 9, 12, 0.72) !important;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.14),
        inset 0 1px rgba(255, 255, 255, 0.018);
}

.rs-law .rs-law-index th {
    padding: 10px 8px;

    border: 0 !important;

    color: rgba(235, 238, 243, 0.92);
    font-weight: 700;
    line-height: 1.3;
}

.rs-law .rs-law-index td {
    padding: 0 !important;

    border: 0 !important;

    vertical-align: middle;

    transition: filter 100ms ease;
}

.rs-law .rs-law-index td > a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    box-sizing: border-box;
    padding: 7px 9px;

    line-height: 1.3;
    text-decoration: none;
}

.rs-law .rs-law-index td > a:hover {
    text-decoration: none;
}

.rs-law .rs-law-index td:hover {
    filter: brightness(1.08);
}

.rs-law .rs-law-index td:active {
    filter: brightness(0.98);
}

.rs-law .rs-law-index + .rs-law-section-toc + .rs-law-section {
    margin-top: 0 !important;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .rs-law .rs-law-index {
        min-width: 920px;
    }
}

@media (max-width: 760px) {
    .rs-law > p,
    .rs-law .rs-law-prose,
    .rs-law-rules,
    .rs-law-note-list,
    .rs-law-investigation {
        max-width: none;
    }

    .rs-law .rs-law-table {
        min-width: 680px;
    }

    .rs-law .rs-law-table--modifiers {
        min-width: 820px;
    }
}