/* PAC · Классы объектов
   Отдельная таблица стилей страницы anomaly-classes.html */

:root {
    --pac-ink: #172536;
    --pac-ink-soft: #33465b;
    --pac-navy: #172a3e;
    --pac-navy-light: #243d56;
    --pac-blue: #397aa5;
    --pac-blue-soft: #eaf2f8;
    --pac-paper: #f3f5f7;
    --pac-card: #ffffff;
    --pac-line: #d8e0e7;
    --pac-muted: #657587;
    --pac-shadow: 0 12px 34px rgba(25, 42, 59, .08);
    --pac-radius: 16px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 85% 0%, rgba(86, 133, 169, .09), transparent 28rem),
        var(--pac-paper);
    color: var(--pac-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.62;
}
.page-navigation{display:flex;justify-content:space-between;gap:15px;margin-top:22px}.page-nav-link{display:flex;align-items:center;gap:11px;padding:10px 13px;border:1px solid #cbd4db;border-radius:5px;color:#304656;text-decoration:none;background:#f8fafb;min-width:190px}.page-nav-link:hover{background:#e8eff3;border-color:#9fb4c1}.page-nav-link>span:first-child:last-child{font-size:18px}.page-nav-link>span{font-size:18px}.page-nav-link small{display:block;font-size:8px;color:#82909a;font-weight:800;letter-spacing:.1em}.page-nav-link strong{display:block;font-size:11px}.page-nav-link.next{margin-left:auto;text-align:right}.page-nav-link.next>span:last-child{font-size:18px}.access-screen,.access-modal,.emblem-modal{position:fixed;inset:0;z-index:1000;background:rgba(9,17,24,.84);display:grid;place-items:center;padding:20px}.access-screen[hidden].page-nav-link{min-width:0;flex:1;padding:9px}.page-navigation{gap:8px}

.logo-image {
    display: block;
    width: 68px;
    height: 62px;
    object-fit: contain;
    margin: 0;
    border: 0;
    transition: transform .25s ease, filter .25s ease;
}

.logo-image:hover {
    transform: scale(1.045);
    filter: drop-shadow(0 4px 9px rgba(255, 255, 255, .2));
}

.user-info {
    position: relative;
    text-align: right;
    cursor: pointer;
    font-size: .9rem;
    color: rgba(255, 255, 255, .9);
}

.user-info p {
    margin: 2px 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 205px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    background: #223950;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
    z-index: 1000;
}

.user-info:hover .dropdown-menu,
.user-info:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 13px;
    border-radius: 7px;
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background .18s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, .1);
}

/* Общая компоновка */

.container {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    align-items: start;
    gap: 0;
    min-height: calc(100vh - 86px);
}


.object-link {
    display: block;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #34485b;
    background: transparent;
    font-size: .91rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.object-link:hover {
    color: #173149;
    background: #fff;
    border-color: #d8e1e8;
    transform: translateX(2px);
}

.main-content {
    width: 100%;
    max-width: 1540px;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(24px, 3.2vw, 48px) clamp(20px, 3.4vw, 54px) 112px;
}

/* Заголовок и вводная часть */

.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin: 0 0 25px;
}

.page-eyebrow,
.section-eyebrow {
    color: #668096;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
}

.page-intro h1 {
    margin: 8px 0 3px;
    color: #172a3e;
    font-size: clamp(2rem, 3.7vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.page-lead {
    margin: 9px 0 0;
    color: #607184;
    font-size: 1.05rem;
}

.methodology-link {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 345px;
    flex: 0 0 auto;
    padding: 13px 15px;
    border: 1px solid #c9d9e5;
    border-radius: 12px;
    color: #1c405d;
    background: linear-gradient(135deg, #fff, #edf5fa);
    box-shadow: 0 5px 16px rgba(30, 65, 92, .07);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.methodology-link:hover {
    transform: translateY(-2px);
    border-color: #8fb1c8;
    box-shadow: 0 10px 24px rgba(30, 65, 92, .12);
}

.methodology-link__icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #fff;
    background: #294e6b;
    font-family: Georgia, serif;
    font-size: 1.45rem;
}

.methodology-link strong,
.methodology-link small {
    display: block;
}

.methodology-link strong {
    font-size: .87rem;
}

.methodology-link small {
    margin-top: 2px;
    color: #687d8f;
    font-size: .72rem;
    line-height: 1.35;
}

.methodology-link__arrow {
    margin-left: auto;
    color: #547b98;
    font-size: 1.2rem;
}

/* Предупреждение и общие секции */

.notice-card {
    position: relative;
    margin: 0 0 34px;
    padding: 22px 26px 19px;
    overflow: hidden;
    border: 1px solid #d7e0e7;
    border-left: 4px solid #587f9c;
    border-radius: var(--pac-radius);
    background: linear-gradient(110deg, #fff, #f8fafb);
    box-shadow: var(--pac-shadow);
}

.notice-card__label {
    color: #6d879a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.notice-card blockquote {
    margin: 12px 0 10px;
    color: #354a5e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.35vw, 1.17rem);
    font-style: italic;
    line-height: 1.65;
}

.notice-card__signature {
    color: #718294;
    font-size: .83rem;
    text-align: right;
}

.classification-overview,
.classification-section {
    margin: 0 0 42px;
}

.section-heading {
    max-width: 880px;
    margin: 0 0 20px;
}

.section-heading h2 {
    margin: 7px 0 8px;
    color: #1c3044;
    font-size: clamp(1.55rem, 2.45vw, 2.05rem);
    line-height: 1.22;
    letter-spacing: -.025em;
}

.section-heading > p {
    max-width: 860px;
    margin: 0;
    color: #617286;
    font-size: .98rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.overview-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 21px;
    border: 1px solid var(--pac-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(25, 42, 59, .045);
}

.overview-card__number {
    color: #8196a8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.overview-card h3 {
    margin: 0 0 6px;
    color: #20384e;
    font-size: 1.06rem;
}

.overview-card p {
    margin: 0;
    color: #647588;
    font-size: .9rem;
}

.overview-card--containment {
    border-top: 3px solid #66859e;
}

.overview-card--hazard {
    border-top: 3px solid #b16b54;
}

.principle-note {
    margin-top: 13px;
    padding: 13px 16px;
    border-radius: 10px;
    color: #52687b;
    background: #e8eef3;
    font-size: .88rem;
}

.classification-section {
    padding-top: 5px;
}

.subsection-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 25px 0 13px;
}

.subsection-heading h3 {
    margin: 0;
    color: #253b50;
    font-size: 1.12rem;
}

.subsection-heading p {
    margin: 0;
    color: #738395;
    font-size: .84rem;
}

.subsection-heading--spaced {
    margin-top: 34px;
}

/* Карточки классов содержания */

.class-grid {
    display: grid;
    gap: 14px;
}

.class-grid--core {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-grid--special {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-grid--statuses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.class-card {
    min-width: 0;
    padding: 19px 20px 20px;
    border: 1px solid #dbe3e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(23, 42, 62, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.class-card:hover {
    transform: translateY(-2px);
    border-color: #c3d1dc;
    box-shadow: 0 13px 28px rgba(23, 42, 62, .085);
}

.class-card__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.class-index {
    color: #8b9aa8;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.class-kind {
    padding: 4px 8px;
    border-radius: 999px;
    color: #687c8e;
    background: #eff3f6;
    font-size: .66rem;
    font-weight: 700;
}

.class-card__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}

.class-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #fff;
    background: #435d73;
    font-size: 1.35rem;
}

.class-card h3 {
    margin: 0;
    color: #203449;
    font-size: 1.15rem;
    line-height: 1.2;
}

.class-alias {
    display: block;
    margin-top: 4px;
    color: #91a0ad;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.class-card > p {
    margin: 0;
    color: #596d80;
    font-size: .88rem;
    line-height: 1.65;
}

.containment-card--cold { border-top: 3px solid #82a9c3; }
.containment-card--warm { border-top: 3px solid #c6a16a; }
.containment-card--fire { border-top: 3px solid #c77b55; }
.containment-card--blaze { border-top: 3px solid #a94d42; }

.containment-card--cold .class-symbol { background: #668da8; }
.containment-card--warm .class-symbol { background: #a98959; }
.containment-card--fire .class-symbol { background: #b76e4b; }
.containment-card--blaze .class-symbol { background: #93483e; }

.special-card--dark { border-top: 3px solid #47515d; }
.special-card--death { border-top: 3px solid #8c4145; }
.special-card--doom { border-top: 3px solid #6e658f; }
.special-card--dread { border-top: 3px solid #242c35; }

.special-card--dark .class-symbol { background: #454f5c; }
.special-card--death .class-symbol { background: #8b4146; }
.special-card--doom .class-symbol { background: #6e668a; }
.special-card--dread .class-symbol { background: #27313b; }

.class-card__footnote {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #e8edf1;
    color: #718293;
    font-size: .76rem;
}

.restricted-description {
    margin: 0;
}

.restricted {
    display: inline-block;
    color: #9b3c42;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.restricted:hover {
    color: #762a30;
}

.restricted:focus-visible {
    outline: 3px solid rgba(155, 60, 66, .24);
    outline-offset: 3px;
    border-radius: 3px;
}

.restricted-content {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px dashed #c7a2a4;
    border-radius: 9px;
    color: #6f4448;
    background: #fbf4f4;
    font-size: .85rem;
}
.page-nav-link small { font-size: 10px; }
.page-nav-link strong { font-size: 13px; }
.status-card {
    background: #fbfcfd;
}

.status-card .class-card__title {
    margin-bottom: 12px;
}

.status-card--ash { border-top: 3px solid #82919d; }
.status-card--dust { border-top: 3px solid #b69b73; }
.status-card--wind { border-top: 3px solid #77a6a2; }

.status-card--ash .class-symbol { background: #687b89; }
.status-card--dust .class-symbol { background: #9c8664; }
.status-card--wind .class-symbol { background: #638e8a; }

/* КИУ и классы опасности */

.kiu-panel {
    margin: 20px 0 17px;
    padding: 22px 23px 17px;
    border: 1px solid #cbd9e3;
    border-radius: 16px;
    background: linear-gradient(120deg, #1b3045 0%, #294962 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(25, 49, 70, .14);
}

.kiu-panel__main {
    text-align: center;
}

.kiu-panel__label {
    color: #a9c1d2;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.kiu-formula {
    margin: 8px 0 4px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: .015em;
}

.kiu-formula sub {
    font-size: .58em;
}

.kiu-panel__main p {
    margin: 0;
    color: #c0d0dc;
    font-size: .83rem;
}

.kiu-panel__components {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 20px auto 0;
}

.kiu-panel__components > div {
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    text-align: center;
}

.kiu-panel__components strong,
.kiu-panel__components span,
.kiu-panel__components small {
    display: block;
}

.kiu-panel__components strong {
    color: #fff;
    font-size: 1.35rem;
}

.kiu-panel__components span {
    margin-top: 2px;
    color: #edf4f8;
    font-size: .82rem;
    font-weight: 700;
}

.kiu-panel__components small {
    margin-top: 3px;
    color: #a9bfce;
    font-size: .7rem;
}

.kiu-panel__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 17px auto 0;
    color: #d9eaf5;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
}

.kiu-panel__link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hazard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hazard-card {
    padding: 19px 20px 20px;
    border: 1px solid #dbe3e9;
    border-left: 4px solid #8295a5;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(23, 42, 62, .045);
}

.hazard-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-bottom: 11px;
}

.hazard-card__level {
    display: block;
    margin-bottom: 4px;
    color: #8796a3;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.hazard-card h3 {
    margin: 0;
    color: #25394c;
    font-size: 1.08rem;
}

.hazard-range {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 10px;
    border: 1px solid #e0e6eb;
    border-radius: 8px;
    color: #34485c;
    background: #f5f7f9;
    font-size: .79rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hazard-card > p {
    margin: 0;
    color: #5c6f81;
    font-size: .88rem;
    line-height: 1.65;
}

.hazard-card--zero { border-left-color: #a7b2ba; }
.hazard-card--low { border-left-color: #5f987d; }
.hazard-card--medium { border-left-color: #c3a34d; }
.hazard-card--high { border-left-color: #c17c45; }
.hazard-card--highest { border-left-color: #a94e52; }

.hazard-card--zero .hazard-range { background: #f1f3f5; }
.hazard-card--low .hazard-range { color: #35694f; background: #edf6f0; border-color: #d5e8dc; }
.hazard-card--medium .hazard-range { color: #80671d; background: #faf6e8; border-color: #eee3bd; }
.hazard-card--high .hazard-range { color: #8a4e25; background: #fbf1e9; border-color: #efd8c5; }
.hazard-card--highest .hazard-range { color: #873d43; background: #faeeee; border-color: #efd2d4; }

.rules-panel {
    margin-top: 18px;
    padding: 21px 23px;
    border: 1px solid #d9e1e7;
    border-radius: 14px;
    background: #edf2f5;
}

.rules-panel h3 {
    margin: 0 0 11px;
    color: #2a4054;
    font-size: 1.02rem;
}

.rules-panel ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 21px;
    color: #5c6f80;
    font-size: .86rem;
}

.rules-panel li {
    padding-left: 3px;
}

.rules-panel strong {
    color: #344b60;
}

/* Итоговое предупреждение */

.final-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 35px 0 0;
    padding: 17px 20px;
    border: 1px solid #e4d7c6;
    border-radius: 13px;
    background: #fbf7f1;
}

.final-warning__mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #a47742;
    font-weight: 900;
}

.final-warning strong {
    color: #79572f;
    font-size: .74rem;
    letter-spacing: .1em;
}

.final-warning p {
    margin: 4px 0 0;
    color: #705f4c;
    font-size: .86rem;
}

/* Навигация страницы */

.prev-button,
.next-button {
    position: fixed;
    bottom: 18px;
    z-index: 1000;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #fff;
    background: #203a52;
    box-shadow: 0 8px 24px rgba(18, 36, 53, .22);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.prev-button {
    left: 265px;
}

.next-button {
    right: 18px;
}

.prev-button:hover,
.next-button:hover {
    transform: translateY(-2px);
    background: #315674;
    box-shadow: 0 11px 26px rgba(18, 36, 53, .28);
}

/* Модальное окно */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 20, 31, .68);
    backdrop-filter: blur(5px);
}

.modal.hidden,
.hidden {
    display: none !important;
}

.modal-content {
    position: relative;
    width: min(100%, 390px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    color: #fff;
    background: #20384f;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .32);
    animation: pacModalIn .22s ease-out;
}

@keyframes pacModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 11px;
    right: 15px;
    color: #c9d4dc;
    cursor: pointer;
    font-size: 1.5rem;
}

.modal-content h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-icon {
    margin: 14px 0;
    color: #e3ad62;
    font-size: 2.8rem;
    text-align: center;
}

.modal-content > p {
    color: #d3dde5;
    font-size: .9rem;
}

.access-comparison {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin: 20px 0;
}

.access-item {
    min-width: 110px;
    padding: 12px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .17);
    text-align: center;
}

.access-label {
    display: block;
    color: #bdcbd6;
    font-size: .76rem;
}

.required-level {
    color: #ff8585;
    font-size: 1.1rem;
    font-weight: 800;
}

.user-level {
    color: #f4c66d;
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-hint {
    color: #aab9c5 !important;
    font-size: .76rem !important;
    text-align: center;
}

/* Экран ограничения доступа */

.censored-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #fff;
    background: #111a23;
    text-align: center;
}

.censored-icon {
    margin-bottom: 20px;
    color: #d65c5c;
    font-size: 4.2rem;
}

.censored-message {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: .035em;
}

.censored-button {
    padding: 12px 20px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #294760;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.censored-button:hover {
    background: #3a617f;
}

/* Адаптация */

@media (max-width: 1120px) {
    .container {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .main-content {
        padding-right: 25px;
        padding-left: 25px;
    }

    .prev-button {
        left: 226px;
    }

    .class-grid--statuses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    header {
        min-height: 72px;
        padding: 10px 18px;
    }

    .logo-image {
        width: 58px;
        height: 52px;
    }

    .container {
        display: block;
    }

    .left-sidebar {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 13px 16px;
        border-right: 0;
        border-bottom: 1px solid #dbe2e8;
    }

    .left-sidebar h3 {
        margin-bottom: 8px;
        padding-bottom: 7px;
    }

    .left-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .object-link {
        padding: 8px 10px;
        font-size: .8rem;
    }

    .main-content {
        padding: 25px 20px 100px;
    }

    .page-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .methodology-link {
        width: 100%;
        max-width: none;
    }

    .prev-button {
        left: 12px;
    }
}

@media (max-width: 620px) {
    .user-info {
        font-size: .76rem;
    }

    .overview-grid,
    .class-grid--core,
    .class-grid--special,
    .class-grid--statuses,
    .hazard-grid {
        grid-template-columns: 1fr;
    }

    .notice-card {
        padding: 18px;
    }

    .overview-card {
        padding: 17px;
    }

    .class-card,
    .hazard-card {
        padding: 17px;
    }

    .kiu-panel {
        padding: 19px 15px 15px;
    }

    .kiu-panel__components {
        grid-template-columns: 1fr 1fr;
    }

    .rules-panel {
        padding: 18px;
    }

    .prev-button,
    .next-button {
        bottom: 10px;
        width: calc(50% - 18px);
        min-height: 42px;
        padding: 8px 9px;
        font-size: .72rem;
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }
    
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .page-nav-link small { font-size: 8px; }
    .page-nav-link strong { font-size: 11px; }
}
