:root {
    color-scheme: dark;
    --bg: #061117;
    --bg-soft: #081820;
    --panel: rgba(9, 25, 33, .88);
    --panel-solid: #0a1b23;
    --panel-light: #0d222b;
    --line: rgba(91, 214, 224, .15);
    --line-strong: rgba(91, 214, 224, .34);
    --cyan: #55d7e0;
    --cyan-soft: #8ae8ee;
    --orange: #f3a13a;
    --text: #f5f8f9;
    --muted: #8ca0aa;
    --muted-dark: #607780;
    --danger: #ef6b5a;
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(85, 215, 224, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 215, 224, .025) 1px, transparent 1px),
        radial-gradient(circle at 78% 5%, rgba(85, 215, 224, .09), transparent 26%),
        radial-gradient(circle at 18% 0%, rgba(243, 161, 58, .07), transparent 21%),
        var(--bg);
    background-size: 56px 56px, 56px 56px, auto, auto, auto;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .08;
    pointer-events: none;
}

.ambient-one {
    top: 120px;
    right: -260px;
    background: var(--cyan);
}

.ambient-two {
    top: 850px;
    left: -330px;
    background: var(--orange);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 10px max(30px, calc((100vw - 1440px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(5, 15, 20, .83);
    backdrop-filter: blur(22px);
}

.site-header::before {
    position: absolute;
    bottom: -1px;
    left: max(30px, calc((100vw - 1440px) / 2));
    width: 82px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--orange), transparent);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    letter-spacing: .17em;
    font-size: 15px;
}

.brand-copy strong i {
    color: var(--orange);
    font-style: normal;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    letter-spacing: .2em;
    font-size: 8px;
    font-weight: 700;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.header-nav a {
    color: #a8bac2;
    letter-spacing: .12em;
    font-size: 10px;
    font-weight: 800;
    transition: color .2s ease;
}

.header-nav a:hover {
    color: var(--cyan);
}

.header-nav .document-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(85, 215, 224, .05);
    color: var(--cyan-soft);
}

.header-nav .document-link span {
    color: var(--orange);
    font-size: 15px;
}

main {
    display: block;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: center;
    width: min(1440px, calc(100% - 60px));
    min-height: 600px;
    margin: 0 auto;
    padding: 72px 70px 58px;
    overflow: hidden;
    border-right: 1px solid rgba(85, 215, 224, .08);
    border-left: 1px solid rgba(85, 215, 224, .08);
}

.hero::before {
    position: absolute;
    top: 0;
    right: 390px;
    width: 1px;
    height: 100%;
    content: "";
    background: linear-gradient(transparent, rgba(85, 215, 224, .11), transparent);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin-bottom: 31px;
    padding: 7px 12px;
    border: 1px solid rgba(85, 215, 224, .19);
    border-radius: 999px;
    background: rgba(9, 27, 35, .74);
    color: var(--muted);
    letter-spacing: .13em;
    font-size: 9px;
    font-weight: 800;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted-dark);
}

.eyebrow {
    margin: 0;
    color: var(--orange);
    letter-spacing: .24em;
    font-size: 10px;
    font-weight: 900;
}

.hero h1 {
    margin: 13px 0 20px;
    font-size: clamp(46px, 5.1vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero h1 span {
    color: var(--cyan);
    text-shadow: 0 0 40px rgba(85, 215, 224, .14);
}

.hero-intro {
    max-width: 650px;
    margin: 0 0 33px;
    color: #a5b5bc;
    font-size: 16px;
    line-height: 1.8;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: min(690px, 100%);
    min-height: 62px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(7, 22, 29, .92);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .24), inset 0 0 24px rgba(85, 215, 224, .025);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-box:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(85, 215, 224, .08), 0 15px 45px rgba(0, 0, 0, .26);
}

.search-icon {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 13px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    opacity: .75;
}

.search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    content: "";
    transform: rotate(45deg);
    border-radius: 4px;
    background: var(--cyan);
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 18px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

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

.search-box kbd {
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-bottom-color: rgba(255, 255, 255, .15);
    border-radius: 5px;
    background: #0c2029;
    color: #6e8791;
    font-family: inherit;
    font-size: 8px;
    font-weight: 800;
}

.search-box button {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    cursor: pointer;
}

.quick-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 23px;
    color: #617780;
    letter-spacing: .12em;
    font-size: 8px;
    font-weight: 800;
}

.quick-stats span {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.quick-stats strong {
    color: #dbe5e8;
    letter-spacing: 0;
    font-size: 14px;
}

.hero-emblem {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 430px;
    height: 430px;
    justify-self: end;
}

.hero-emblem::before,
.hero-emblem::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(85, 215, 224, .08);
    border-radius: 50%;
}

.hero-emblem::before {
    inset: 20px;
}

.hero-emblem::after {
    inset: 66px;
    border-color: rgba(243, 161, 58, .09);
}

.hero-emblem img {
    position: relative;
    z-index: 3;
    width: 365px;
    height: 365px;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .42));
}

.emblem-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 161, 58, .21), rgba(85, 215, 224, .08) 38%, transparent 70%);
    filter: blur(18px);
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(85, 215, 224, .14);
    border-radius: 50%;
}

.orbit-one {
    inset: 0;
    animation: orbit 38s linear infinite;
}

.orbit-two {
    inset: 45px;
    border-color: rgba(243, 161, 58, .14);
    animation: orbit 24s linear infinite reverse;
}

.emblem-label {
    position: absolute;
    right: 5px;
    bottom: 76px;
    z-index: 4;
    padding-left: 10px;
    border-left: 2px solid var(--orange);
    color: #82959e;
    letter-spacing: .18em;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.5;
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

.notice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(1300px, calc(100% - 60px));
    margin: 0 auto 50px;
    padding: 18px 22px;
    border: 1px solid rgba(243, 161, 58, .22);
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(243, 161, 58, .075), rgba(10, 27, 35, .86) 33%, rgba(10, 27, 35, .86));
}

.notice-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(243, 161, 58, .4);
    border-radius: 10px;
    background: rgba(243, 161, 58, .1);
    color: var(--orange);
    font-size: 18px;
    font-weight: 900;
}

.notice strong {
    color: #f3b765;
    letter-spacing: .13em;
    font-size: 10px;
}

.notice p {
    margin: 2px 0 0;
    color: #8fa3ab;
    font-size: 12px;
}

.notice > a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cyan-soft);
    letter-spacing: .12em;
    font-size: 9px;
    font-weight: 900;
}

.notice > a span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.content-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 30px;
    width: min(1300px, calc(100% - 60px));
    margin: 0 auto 90px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 102px;
    max-height: calc(100vh - 124px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(7, 20, 27, .84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.sidebar-heading {
    position: relative;
    padding: 23px 22px 18px;
    border-bottom: 1px solid var(--line);
}

.sidebar-heading::before {
    position: absolute;
    top: 0;
    left: 22px;
    width: 42px;
    height: 2px;
    content: "";
    background: var(--orange);
    box-shadow: 0 0 10px rgba(243, 161, 58, .5);
}

.sidebar-heading h2 {
    display: inline;
    margin: 0;
    font-size: 20px;
}

.sidebar-heading > span {
    float: right;
    margin-top: 6px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 800;
}

.category-nav {
    max-height: calc(100vh - 330px);
    padding: 12px 10px;
    overflow-y: auto;
    scrollbar-color: rgba(85, 215, 224, .25) transparent;
    scrollbar-width: thin;
}

.category-link {
    position: relative;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 45px;
    margin: 2px 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #81969f;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.category-link:hover {
    background: rgba(85, 215, 224, .045);
    color: #cad7dc;
}

.category-link.is-active {
    background: linear-gradient(90deg, rgba(85, 215, 224, .11), rgba(85, 215, 224, .025));
    color: var(--cyan-soft);
}

.category-link.is-active::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 2px;
    content: "";
    border-radius: 3px;
    background: var(--cyan);
    box-shadow: 0 0 9px rgba(85, 215, 224, .62);
}

.category-index {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid rgba(85, 215, 224, .13);
    border-radius: 7px;
    background: rgba(85, 215, 224, .035);
    color: #66808a;
    font-size: 8px;
    font-weight: 900;
}

.category-link.is-active .category-index {
    border-color: rgba(85, 215, 224, .32);
    color: var(--cyan);
}

.category-name {
    overflow: hidden;
    letter-spacing: .035em;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-total {
    color: #4f666f;
    font-size: 8px;
    font-weight: 800;
}

.sidebar-help {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 13px;
    padding: 12px;
    border: 1px solid rgba(243, 161, 58, .15);
    border-radius: 11px;
    background: rgba(243, 161, 58, .045);
}

.sidebar-help > span {
    display: grid;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: rgba(243, 161, 58, .11);
    color: var(--orange);
    font-weight: 900;
}

.sidebar-help strong {
    color: #d9b37a;
    letter-spacing: .09em;
    font-size: 8px;
}

.sidebar-help p {
    margin: 1px 0 0;
    color: #677b84;
    font-size: 9px;
    line-height: 1.35;
}

.rules-column {
    min-width: 0;
}

.search-summary {
    margin-bottom: 15px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(85, 215, 224, .045);
    color: #93a8b0;
    font-size: 12px;
}

.search-summary strong {
    color: var(--cyan-soft);
}

.rules-content {
    display: grid;
    gap: 24px;
}

.rules-section {
    scroll-margin-top: 102px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(11, 30, 39, .94), rgba(7, 20, 27, .93));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .18);
}

.section-header {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(85, 215, 224, .04), transparent 64%);
}

.section-header::before {
    position: absolute;
    top: 0;
    left: 25px;
    width: 58px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.section-number {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(85, 215, 224, .22);
    border-radius: 12px;
    background: rgba(85, 215, 224, .055);
    color: var(--cyan);
    letter-spacing: .07em;
    font-size: 13px;
    font-weight: 900;
}

.section-title-wrap .eyebrow {
    margin-bottom: 3px;
    font-size: 8px;
}

.section-title-wrap h2 {
    margin: 0;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.2;
}

.section-rule-count {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: #6b838d;
    letter-spacing: .1em;
    font-size: 8px;
    font-weight: 900;
}

.section-body {
    padding: 13px;
}

.section-intro {
    margin: 0 8px 12px;
    padding: 16px 18px;
    border-left: 2px solid rgba(243, 161, 58, .56);
    border-radius: 0 10px 10px 0;
    background: rgba(243, 161, 58, .035);
    color: #9caeb5;
}

.section-intro p {
    margin: 0 0 9px;
}

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

.section-intro ul,
.rule-card ul {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.section-intro li,
.rule-card li {
    position: relative;
    padding-left: 17px;
}

.section-intro li::before,
.rule-card li::before {
    position: absolute;
    top: .68em;
    left: 1px;
    width: 5px;
    height: 5px;
    content: "";
    transform: translateY(-50%) rotate(45deg);
    background: var(--orange);
}

.rules-list {
    display: grid;
    gap: 8px;
}

.rule-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 17px;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(3, 13, 18, .31);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.rule-card:hover {
    transform: translateX(2px);
    border-color: rgba(85, 215, 224, .15);
    background: rgba(85, 215, 224, .03);
}

.rule-number {
    display: block;
    align-items: flex-start;
    padding-top: 1px;
    color: var(--danger);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
}

.rule-number::before {
    display: none;
    content: none;
}

.rule-copy {
    min-width: 0;
    color: #b8c5ca;
    font-size: 13px;
    line-height: 1.72;
}

.rule-copy p {
    margin: 0 0 8px;
}

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

.rule-card.is-important {
    border-color: rgba(239, 107, 90, .15);
    background: rgba(239, 107, 90, .025);
}

.loading-state,
.no-results {
    display: grid;
    min-height: 320px;
    place-items: center;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    color: var(--muted);
    text-align: center;
}

.loading-state > span {
    width: 34px;
    height: 34px;
    margin-bottom: 17px;
    border: 2px solid rgba(85, 215, 224, .12);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: orbit .8s linear infinite;
}

.loading-state strong {
    color: var(--cyan-soft);
    letter-spacing: .13em;
    font-size: 10px;
}

.loading-state small {
    margin-top: 4px;
}

.no-results > span {
    color: var(--cyan);
    font-size: 48px;
}

.no-results h2 {
    margin: 8px 0 0;
}

.no-results p {
    margin: 4px 0 20px;
}

.no-results button {
    padding: 11px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(85, 215, 224, .08);
    color: var(--cyan-soft);
    letter-spacing: .1em;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.mobile-category-bar {
    display: none;
}

.site-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    min-height: 120px;
    padding: 24px max(30px, calc((100vw - 1300px) / 2));
    border-top: 1px solid var(--line);
    background: rgba(4, 14, 19, .74);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-brand img {
    object-fit: contain;
}

.footer-brand span {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    letter-spacing: .13em;
    font-size: 10px;
}

.footer-brand small {
    color: var(--orange);
    letter-spacing: .18em;
    font-size: 7px;
    font-weight: 800;
}

.site-footer p {
    margin: 0;
    color: #657a83;
    font-size: 10px;
    text-align: center;
}

.site-footer > a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--cyan-soft);
    letter-spacing: .12em;
    font-size: 9px;
    font-weight: 900;
}

.site-footer > a span {
    color: var(--orange);
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 330px;
        padding-right: 35px;
        padding-left: 35px;
    }

    .hero-emblem {
        width: 330px;
        height: 330px;
    }

    .hero-emblem img {
        width: 280px;
        height: 280px;
    }

    .hero::before {
        right: 300px;
    }

    .content-layout {
        grid-template-columns: 255px minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 860px) {
    html {
        scroll-padding-top: 84px;
    }

    .site-header {
        min-height: 68px;
        padding: 8px 18px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .brand-copy strong {
        font-size: 12px;
    }

    .header-nav > a:first-child {
        display: none;
    }

    .header-nav .document-link {
        min-height: 36px;
        padding: 0 11px;
        font-size: 8px;
    }

    .hero {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        min-height: auto;
        padding: 64px 14px 47px;
        border: 0;
    }

    .hero::before {
        display: none;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-emblem {
        position: absolute;
        top: 8px;
        right: -130px;
        width: 420px;
        height: 420px;
        opacity: .16;
    }

    .hero h1 {
        font-size: clamp(43px, 11vw, 68px);
    }

    .notice {
        grid-template-columns: 42px minmax(0, 1fr);
        width: calc(100% - 32px);
        margin-bottom: 24px;
    }

    .notice > a {
        display: none;
    }

    .mobile-category-bar {
        position: sticky;
        top: 67px;
        z-index: 40;
        display: block;
        width: calc(100% - 32px);
        margin: 0 auto 14px;
    }

    .mobile-category-bar button {
        display: grid;
        grid-template-columns: 22px auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 50px;
        padding: 0 14px;
        border: 1px solid var(--line-strong);
        border-radius: 11px;
        background: rgba(7, 21, 28, .96);
        color: var(--cyan-soft);
        letter-spacing: .1em;
        font-size: 8px;
        font-weight: 900;
        text-align: left;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .25);
    }

    .menu-lines,
    .menu-lines::before,
    .menu-lines::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--cyan);
    }

    .menu-lines {
        position: relative;
    }

    .menu-lines::before,
    .menu-lines::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .menu-lines::before { top: -6px; }
    .menu-lines::after { top: 6px; }

    .mobile-current {
        overflow: hidden;
        color: #738993;
        font-weight: 700;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-layout {
        display: block;
        width: calc(100% - 32px);
        margin-bottom: 55px;
    }

    .sidebar {
        position: fixed;
        top: 126px;
        right: 16px;
        left: 16px;
        z-index: 45;
        display: none;
        max-height: calc(100vh - 145px);
    }

    .sidebar.is-open {
        display: block;
    }

    .category-nav {
        max-height: calc(100vh - 340px);
    }

    .rule-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    .brand-copy small,
    .header-nav .document-link {
        display: none;
    }

    .hero {
        padding-top: 48px;
    }

    .status-line {
        max-width: 100%;
        font-size: 7px;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .search-box {
        min-height: 57px;
    }

    .search-box kbd {
        display: none;
    }

    .quick-stats {
        gap: 15px;
        flex-wrap: wrap;
    }

    .notice {
        padding: 15px;
    }

    .notice p {
        line-height: 1.5;
    }

    .section-header {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 20px 17px;
    }

    .section-number {
        width: 43px;
        height: 43px;
    }

    .section-rule-count {
        display: none;
    }

    .section-body {
        padding: 8px;
    }

    .rule-card {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 14px;
    }

    .rule-number {
        width: max-content;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
        gap: 18px;
        min-height: 100px;
        padding: 20px 18px;
    }

    .site-footer p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
