.regulation-page {
    padding: 38px 72px 68px;
    color: #17243b;
    background: #f4f7fb;
}

.regulation-search-panel,
.regulation-layout {
    width: min(1420px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.regulation-search-panel {
    position: relative;
    z-index: 8;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(7, 30, 84, .08);
}

.regulation-search-panel__heading,
.regulation-search-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.regulation-search-panel__heading span,
.regulation-reader__intro span,
.rule-part__header > div > p:first-child,
.regulation-index__head > span {
    color: #dd3300;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.regulation-search-panel__heading h2 {
    margin: 4px 0 0;
    color: #071e54;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 29px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.regulation-search-panel__heading > p {
    margin: 0;
    color: #66758d;
    font-size: 14px;
    font-weight: 700;
}

.regulation-search {
    position: relative;
    margin-top: 20px;
}

.regulation-search > i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #0d448c;
    font-size: 18px;
    transform: translateY(-50%);
}

.regulation-search input {
    width: 100%;
    height: 56px;
    padding: 0 54px;
    color: #13223c;
    background: #f8fafc;
    border: 1px solid #cbd6e5;
    border-radius: 7px;
    font: 600 16px/1.2 "Manrope", sans-serif;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.regulation-search input:focus {
    background: #fff;
    border-color: #1b5fcc;
    box-shadow: 0 0 0 3px rgba(27, 95, 204, .12);
}

.regulation-search input::placeholder {
    color: #8794a8;
}

.regulation-search input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.regulation-search__clear {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #4f617b;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.regulation-search__clear:hover,
.regulation-search__clear:focus {
    color: #071e54;
    background: #eaf0f8;
    outline: 0;
}

.regulation-filters {
    display: flex;
    gap: 0;
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
    scrollbar-width: none;
}

.regulation-filters::-webkit-scrollbar {
    display: none;
}

.regulation-filters button {
    min-height: 40px;
    flex: 1 0 auto;
    padding: 0 13px;
    color: #4f6078;
    background: #fff;
    border: 0;
    border-right: 1px solid #d8e1ed;
    font: 800 13px/1.2 "Manrope", sans-serif;
    cursor: pointer;
}

.regulation-filters button:last-child {
    border-right: 0;
}

.regulation-filters button:hover,
.regulation-filters button:focus {
    color: #071e54;
    background: #f0f4fa;
    outline: 0;
}

.regulation-filters button[aria-pressed="true"] {
    color: #fff;
    background: #0b3d79;
}

.regulation-search-meta {
    align-items: center;
    margin-top: 13px;
}

.regulation-search-meta p,
.regulation-search-meta span {
    margin: 0;
    color: #69778e;
    font-size: 13px;
    line-height: 1.5;
}

.regulation-search-meta span {
    flex: 0 0 auto;
    font-weight: 800;
}

.regulation-search-meta i {
    margin-right: 5px;
    color: #dd3300;
}

.regulation-results {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
}

.regulation-results__list {
    max-height: 390px;
    overflow-y: auto;
}

.regulation-result {
    width: 100%;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: #17243b;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e1e7f0;
    text-align: left;
    cursor: pointer;
}

.regulation-result:last-child {
    border-bottom: 0;
}

.regulation-result:hover,
.regulation-result:focus {
    background: #f4f7fb;
    outline: 0;
}

.regulation-result__page {
    color: #0d448c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.regulation-result__copy {
    min-width: 0;
}

.regulation-result__copy strong,
.regulation-result__copy span {
    display: block;
}

.regulation-result__copy strong {
    color: #071e54;
    font-size: 14px;
    font-weight: 900;
}

.regulation-result__copy span {
    margin-top: 4px;
    overflow: hidden;
    color: #5d6d84;
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.regulation-result > i {
    color: #9aa7b8;
}

.regulation-result mark {
    padding: 0 2px;
    color: #071e54;
    background: #ffe690;
    border-radius: 2px;
}

.regulation-empty-results {
    margin: 0;
    padding: 24px;
    color: #65748b;
    font-size: 13px;
    text-align: center;
}

.regulation-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}

.regulation-index {
    position: sticky;
    top: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 8px;
}

.regulation-index__head {
    padding: 19px 18px 14px;
    border-bottom: 1px solid #e1e7f0;
}

.regulation-index__head h2 {
    margin: 4px 0 0;
    color: #071e54;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.regulation-index nav a {
    min-height: 48px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #42546e;
    border-bottom: 1px solid #e8edf4;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.regulation-index nav a:hover,
.regulation-index nav a:focus {
    color: #071e54;
    background: #f2f6fb;
    outline: 0;
}

.regulation-index nav a span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #0d448c;
    background: #edf3fb;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.regulation-index__note {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding: 15px;
    color: #718097;
    background: #f8fafc;
}

.regulation-index__note i {
    color: #dd3300;
    font-size: 15px;
}

.regulation-index__note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.regulation-reader {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 8px;
}

.regulation-reader__intro {
    padding: 28px 34px;
    background: #f8fafc;
    border-bottom: 1px solid #dce4ef;
}

.regulation-reader__intro h2 {
    margin: 5px 0 0;
    color: #071e54;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.regulation-reader__intro p {
    margin: 9px 0 0;
    color: #63728a;
    font-size: 12px;
    line-height: 1.55;
}

.rule-part[hidden] {
    display: none;
}

.rule-part + .rule-part {
    border-top: 10px solid #f4f7fb;
}

.rule-part__header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 32px 34px 25px;
    border-bottom: 1px solid #e0e7f0;
}

.rule-part__header > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #0b3d79;
    border-radius: 50%;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.rule-part__header h2 {
    margin: 4px 0 0;
    color: #071e54;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 29px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.rule-part__header > div > p:last-child {
    max-width: 760px;
    margin: 9px 0 0;
    color: #65758c;
    font-size: 15px;
    line-height: 1.55;
}

.rule-chapter {
    border-bottom: 1px solid #dfe6ef;
}

.rule-chapter:last-child {
    border-bottom: 0;
}

.rule-chapter > summary {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 18px;
    padding: 13px 34px;
    color: #13223c;
    background: #fff;
    cursor: pointer;
    list-style: none;
}

.rule-chapter > summary::-webkit-details-marker {
    display: none;
}

.rule-chapter > summary:hover,
.rule-chapter > summary:focus {
    background: #f8fafc;
    outline: 0;
}

.rule-chapter > summary span {
    font-size: 15px;
    font-weight: 900;
}

.rule-chapter > summary small {
    color: #74839a;
    font-size: 13px;
    font-weight: 800;
}

.rule-chapter > summary i {
    color: #0d448c;
    transition: transform .18s ease;
}

.rule-chapter[open] > summary i {
    transform: rotate(180deg);
}

.rule-chapter__content {
    border-top: 1px solid #e4eaf2;
}

.rule-page {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 28px 34px 30px 22px;
    background: #fff;
}

.rule-page + .rule-page {
    border-top: 1px solid #e4eaf2;
}

.rule-page__number {
    align-self: start;
    color: #8a98ab;
    text-align: center;
}

.rule-page__number span,
.rule-page__number strong {
    display: block;
}

.rule-page__number span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rule-page__number strong {
    margin-top: 2px;
    color: #0d448c;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 20px;
    font-weight: 900;
}

.rule-page__body {
    min-width: 0;
    max-width: 920px;
}

.rule-block {
    scroll-margin-top: 24px;
}

.rule-block--heading {
    margin: 23px 0 12px;
    color: #071e54;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.rule-block--heading:first-child {
    margin-top: 0;
}

.rule-block--article,
.rule-block--paragraph,
.rule-block--list-item {
    margin: 0 0 12px;
    color: #25344a;
    font-size: 16px;
    line-height: 1.7;
}

.rule-block--article {
    color: #17243b;
    font-weight: 600;
}

.rule-block--list-item {
    padding-left: 18px;
}

.rule-block.is-search-target {
    margin-right: -8px;
    margin-left: -8px;
    padding: 8px;
    background: #fff4bd;
    border-radius: 5px;
    box-shadow: inset 3px 0 #dd3300;
}

.rule-technical-figure {
    margin: 24px 0 4px;
    padding-top: 20px;
    border-top: 1px solid #e1e7f0;
}

.rule-technical-figure img {
    width: min(100%, 760px);
    height: auto;
    display: block;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 6px;
}

.rule-technical-figure figcaption {
    margin-top: 9px;
    color: #6e7d93;
    font-size: 12px;
    line-height: 1.4;
}

.regulation-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: #0b3d79;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(7, 30, 84, .22);
    cursor: pointer;
}

.regulation-back-to-top:hover,
.regulation-back-to-top:focus {
    background: #dd3300;
    outline: 0;
}

@media (max-width: 1180px) {
    .regulation-page {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 900px) {
    .regulation-layout {
        grid-template-columns: 1fr;
    }

    .regulation-index {
        position: static;
    }

    .regulation-index nav {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .regulation-index nav::-webkit-scrollbar {
        display: none;
    }

    .regulation-index nav a {
        min-width: 190px;
        flex: 0 0 auto;
        border-right: 1px solid #e8edf4;
        border-bottom: 0;
    }

    .regulation-index__note {
        display: none;
    }
}

@media (max-width: 620px) {
    .regulation-page {
        padding: 24px 18px 44px;
    }

    .regulation-search-panel {
        padding: 18px;
    }

    .regulation-search-panel__heading,
    .regulation-search-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .regulation-search-panel__heading h2 {
        font-size: 24px;
    }

    .regulation-search input {
        height: 52px;
        padding-left: 46px;
        font-size: 15px;
    }

    .regulation-search > i {
        left: 15px;
    }

    .regulation-result {
        grid-template-columns: 62px minmax(0, 1fr) 14px;
        gap: 9px;
        padding: 12px;
    }

    .regulation-reader__intro {
        padding: 22px 18px;
    }

    .regulation-reader__intro h2 {
        font-size: 23px;
    }

    .rule-part__header {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        padding: 24px 18px 20px;
    }

    .rule-part__header > span {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .rule-part__header h2 {
        font-size: 23px;
    }

    .rule-chapter > summary {
        grid-template-columns: minmax(0, 1fr) 15px;
        gap: 10px;
        padding: 13px 18px;
    }

    .rule-chapter > summary small {
        display: none;
    }

    .rule-page {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 23px 18px 26px;
    }

    .rule-page__number {
        display: flex;
        align-items: baseline;
        gap: 4px;
        text-align: left;
    }

    .rule-page__number strong {
        font-size: 16px;
    }

    .rule-block--article,
    .rule-block--paragraph,
    .rule-block--list-item {
        font-size: 16px;
        line-height: 1.68;
    }

    .regulation-back-to-top {
        right: 16px;
        bottom: 16px;
    }
}
