:root {
    --wp-rules-gold: #d8a94e;
    --wp-rules-gold-bright: #edc66f;
    --wp-rules-gold-muted: #876334;
    --wp-rules-ink: rgba(5, 9, 14, 0.91);
    --wp-rules-copy: #d8ceb4;
}

.wp-rules-new-page {
    background: #05070b;
}

.wp-rules-new-page .wp-bg::after {
    background:
        radial-gradient(circle at 68% 9%, rgba(27, 43, 61, 0.12), transparent 35%),
        linear-gradient(90deg, rgba(3, 5, 8, 0.16), rgba(3, 6, 10, 0.46));
}

.wp-rules-main {
    min-width: 0;
}

.wp-rules-new-page .wp-profile-concept-topbar {
    border-bottom: 0;
    background: transparent;
}

.wp-rules-new-page .wp-academy.wp-rules-new {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 14px 10px;
    color: var(--wp-rules-copy);
}

.wp-rules-new .wp-academy__inner,
.wp-rules-new .wp-section-stack,
.wp-rules-new .wp-academy-panel {
    min-width: 0;
    min-height: 0;
}

.wp-rules-new .wp-academy__inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.wp-rules-new .wp-academy__header {
    min-height: clamp(98px, 13vh, 124px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 20px 8px;
    text-align: center;
}

.wp-rules-new .wp-academy__eyebrow {
    display: none;
}

.wp-rules-new .wp-academy__title {
    margin: 0;
    color: var(--wp-rules-gold);
    font-family: 'Cinzel', serif;
    font-size: clamp(27px, 2.7vw, 40px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 2.6px;
    text-shadow: 0 0 18px rgba(216, 169, 78, 0.12);
    text-transform: uppercase;
}

.wp-rules-new .wp-academy__lead {
    margin: 5px 0 0;
    color: #e3d8b8;
    font-family: 'EB Garamond', serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-style: italic;
    line-height: 1.15;
}

.wp-rules-new .wp-academy__header::after {
    width: min(290px, 68%);
    aspect-ratio: 290 / 22;
    margin-top: 5px;
    background: url('../images/page-title-divider.png') center / contain no-repeat;
    content: '';
}

.wp-rules-new .wp-section-stack {
    position: relative;
    height: 100%;
}

.wp-rules-new .wp-academy-panel {
    --wp-rules-index-width: clamp(258px, 23.4vw, 340px);
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: var(--wp-rules-index-width) minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    background: linear-gradient(
        118deg,
        rgba(6, 8, 12, 0.9),
        rgba(8, 9, 14, 0.84) 54%,
        rgba(12, 9, 16, 0.88)
    );
    box-shadow: inset 0 0 65px rgba(0, 0, 0, 0.28), 0 12px 35px rgba(0, 0, 0, 0.28);
}

.wp-rules-new .wp-academy-panel::after {
    position: absolute;
    inset: 0;
    z-index: 20;
    box-sizing: border-box;
    border: 38px 44px solid transparent;
    border-image-source: url('../../profile/images/photos/frames/photo-gallery-panel-frame.png');
    border-image-slice: 38 44;
    border-image-width: 38px 44px;
    border-image-repeat: stretch;
    background: none;
    content: '';
    pointer-events: none;
}

.wp-rules-new .wp-corner,
.wp-rules-new .doc-section > .corner {
    display: none;
}

.wp-rules-new .doc-nav {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    display: block;
    margin: 0;
    padding: 29px 24px 25px 31px;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 0;
    background: transparent;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wp-rules-new .doc-nav::after {
    position: absolute;
    top: 12px;
    right: 0;
    bottom: 12px;
    width: 15px;
    z-index: 4;
    background: url('../images/index-column-divider.png') center / 15px 100% no-repeat;
    content: '';
    filter: brightness(1.28) drop-shadow(0 0 2px rgba(216, 169, 78, 0.18));
    pointer-events: none;
}

.wp-rules-index-head {
    margin: 0 0 12px;
    text-align: center;
}

.wp-rules-index-head h2 {
    margin: 0;
    color: #d6aa55;
    font-family: 'Cinzel', serif;
    font-size: clamp(15px, 1.18vw, 18px);
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.wp-rules-index-head img {
    width: min(166px, 82%);
    height: 16px;
    margin: 3px auto 0;
    display: block;
    object-fit: fill;
}

.wp-rules-index-search {
    width: 100%;
    height: 44px;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    padding: 0 12px;
    border: 1px solid rgba(155, 104, 41, 0.76);
    border-radius: 7px;
    background: rgba(7, 10, 15, 0.84);
    box-shadow: inset 0 1px 0 rgba(244, 203, 115, 0.035);
}

.wp-rules-index-search:focus-within {
    border-color: rgba(216, 169, 78, 0.9);
    box-shadow: 0 0 13px rgba(216, 169, 78, 0.1), inset 0 1px 0 rgba(244, 203, 115, 0.06);
}

.wp-rules-index-search svg {
    width: 23px;
    height: 23px;
    color: #d8a94e;
}

.wp-rules-index-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e3d8b8;
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    font-style: italic;
}

.wp-rules-index-search input::placeholder {
    color: rgba(227, 216, 184, 0.62);
}

.wp-rules-index-group {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 11px;
}

.wp-rules-index-group::after {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    width: min(275px, 100%);
    aspect-ratio: 275 / 16;
    margin: auto;
    background: url('../images/rule-entry-divider.png') center / contain no-repeat;
    content: '';
}

.wp-rules-index-group:last-of-type {
    margin-bottom: 0;
}

.wp-rules-index-group:last-of-type::after {
    display: none;
}

.wp-rules-index-group h3 {
    margin: 0 0 6px 5px;
    color: #c89c4c;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.wp-rules-new .doc-nav .wp-rules-index-group a {
    min-height: 39px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 1px 0;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #cfc3a7;
    font-family: 'EB Garamond', serif;
    font-size: 17.5px;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-rules-new .doc-nav .wp-rules-index-group a img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(216, 169, 78, 0.12));
}

.wp-rules-new .doc-nav .wp-rules-index-group a:hover,
.wp-rules-new .doc-nav .wp-rules-index-group a:focus-visible {
    color: #f0ddaf;
    outline: 0;
    background: rgba(126, 82, 27, 0.1);
    transform: translateX(2px);
}

.wp-rules-new .doc-nav .wp-rules-index-group a.active {
    border-color: rgba(205, 148, 56, 0.75);
    color: #f0dfb4;
    background: linear-gradient(90deg, rgba(127, 80, 23, 0.27), rgba(78, 50, 22, 0.13));
    box-shadow: inset 0 0 16px rgba(184, 119, 35, 0.08), 0 0 12px rgba(190, 119, 31, 0.08);
}

.wp-rules-new [hidden] {
    display: none !important;
}

.wp-rules-search-empty {
    margin: 16px 4px;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'EB Garamond', serif;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.wp-rules-new .doc-section {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(18px, 2.6vh, 30px) clamp(28px, 4vw, 58px) 32px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wp-rules-new .doc-section.active {
    display: block;
    animation: wp-rules-section-in 190ms ease both;
}

.wp-rules-new .doc-section:focus {
    outline: none;
}

.wp-rules-new .doc-section:focus-visible {
    outline: 1px solid rgba(216, 169, 78, 0.42);
    outline-offset: -1px;
}

@keyframes wp-rules-section-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-rules-new .doc-section::-webkit-scrollbar,
.wp-rules-new .doc-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.wp-rules-new .section-title {
    margin: 0;
    color: var(--wp-rules-gold);
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 2.05vw, 30px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1.6px;
    text-align: center;
    text-transform: uppercase;
}

.wp-rules-new .section-title::before {
    width: clamp(82px, 6.4vw, 96px);
    height: clamp(82px, 6.4vw, 96px);
    display: block;
    margin: 0 auto 5px;
    background: url('../images/code-section-emblem.webp') center / contain no-repeat;
    content: '';
    filter: drop-shadow(0 0 7px rgba(216, 169, 78, 0.1));
}

.wp-rules-new .section-title::after,
.wp-rules-new .wp-rules-section-subtitle::after {
    width: min(290px, 66%);
    aspect-ratio: 290 / 22;
    display: block;
    margin: 5px auto 11px;
    background: url('../images/section-title-divider.png') center / contain no-repeat;
    content: '';
}

.wp-rules-new .wp-rules-section-subtitle {
    margin: 6px 0 0;
    color: #e3d8b8;
    font-family: 'EB Garamond', serif;
    font-size: clamp(14.5px, 1.18vw, 17px);
    font-style: italic;
    text-align: center;
}

.wp-rules-new #codice > .section-title::after {
    display: none;
}

.wp-rules-new .wp-document {
    width: min(100%, 76ch);
    margin: 0 auto;
    color: #d9cfb6;
    font-family: 'EB Garamond', serif;
    font-size: clamp(15.6px, 1.08vw, 17px);
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: 0.08px;
    font-variant-ligatures: common-ligatures contextual;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-align: left;
}

.wp-rules-new .wp-document > div,
.wp-rules-new .wp-document .space-y-6,
.wp-rules-new .wp-document .space-y-6 > div,
.wp-rules-new .wp-document div[class*="bg-"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wp-rules-new .wp-document > div {
    margin: 0 0 22px;
    padding: 0;
}

.wp-rules-new .wp-document > div:first-child {
    margin-bottom: 22px;
    padding: 0 0 17px;
    border-bottom: 0;
}

.wp-rules-new .wp-document > div:first-child::after {
    display: block;
    clear: both;
    content: '';
}

.wp-rules-new #codice .wp-document > div:first-child {
    border-bottom: 0;
}

.wp-rules-new .wp-document .wp-rules-intro {
    display: flow-root;
    margin-bottom: 14px;
    color: #e8dcbe;
    font-family: 'Cinzel', serif;
    font-size: 0.94em;
    font-weight: 400;
    font-variant-caps: small-caps;
    letter-spacing: 0.35px;
    line-height: 1.68;
}

.wp-rules-new .wp-rules-drop-cap {
    box-sizing: border-box;
    width: 56px;
    height: 57px;
    float: left;
    display: grid;
    place-items: center;
    margin: 1px 9px 2px 0;
    padding: 0 0 1px;
    border: 0;
    outline: 0;
    background: url('../images/ornate-drop-cap-frame.png') center / 100% 100% no-repeat;
    box-shadow: none;
    color: #efc66d;
    font-family: 'Cinzel', serif;
    font-size: 31px;
    font-weight: 400;
    font-variant-caps: normal;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 0 10px rgba(216, 169, 78, 0.2);
}

.wp-rules-new .wp-document p {
    margin: 0 0 13px;
    color: #d9cfb6;
}

.wp-rules-new .wp-document > div:first-child > p {
    font-size: 1.02em;
}

.wp-rules-new .wp-document strong {
    color: #ead6a5;
    font-weight: 500;
}

.wp-rules-new .wp-document em {
    color: #e2d3ab;
}

.wp-rules-new .wp-document h2 {
    margin: 24px 0 15px;
    padding: 0 0 7px;
    border-bottom: 1px solid rgba(170, 120, 48, 0.62);
    color: #e0b45c;
    font-family: 'Cinzel', serif;
    font-size: clamp(16px, 1.4vw, 21px);
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.26;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 18px rgba(216, 169, 78, 0.14);
}

.wp-rules-new .wp-document h2::after {
    display: none;
}

.wp-rules-new .wp-document h2 i {
    margin-right: 0.5em;
    font-size: 0.86em;
    vertical-align: 1px;
}

.wp-rules-new .wp-document .wp-rules-primary-chapter::before {
    display: none;
}

.wp-rules-new .wp-document h3 {
    margin: 0 0 6px;
    color: #e6bd6e;
    font-family: 'Cinzel', serif;
    font-size: clamp(13.6px, 1.02vw, 15.6px);
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.32;
    text-align: left;
}

.wp-rules-new .wp-document h3 span[class*="d6ae56"] {
    margin-right: 0.35em;
    color: #b8842f;
    font-weight: 700;
}

.wp-rules-new .wp-document .space-y-6 {
    display: grid;
    gap: 14px;
}

.wp-rules-new .wp-document .space-y-6 > div {
    position: relative;
    margin: 0;
    padding: 14px 18px 15px 20px;
    border-left: 1px solid rgba(181, 127, 48, 0.44);
    background: linear-gradient(100deg, rgba(121, 84, 32, 0.09), rgba(8, 12, 17, 0) 72%);
}

.wp-rules-new .wp-document .space-y-6 > div + div {
    padding-top: 14px;
}

.wp-rules-new .wp-document .space-y-6 > div + div::before,
.wp-rules-new .wp-document .space-y-6 > div + div::after {
    display: none;
}

.wp-rules-new .wp-document .space-y-6 > div[class*="border-l-4"] {
    margin: 0 0 10px;
    padding: 12px 0 12px 16px;
    border-left: 2px solid rgba(178, 126, 50, 0.7);
    background: linear-gradient(90deg, rgba(122, 85, 34, 0.14), rgba(122, 85, 34, 0));
}

.wp-rules-new .wp-document .space-y-6 > div[class*="border-l-4"] + div::before,
.wp-rules-new .wp-document .space-y-6 > div[class*="border-l-4"] + div::after,
.wp-rules-new .wp-document .space-y-6 > div + div[class*="border-l-4"]::before,
.wp-rules-new .wp-document .space-y-6 > div + div[class*="border-l-4"]::after {
    display: none;
}

.wp-rules-new .wp-document .space-y-6 > div div[class*="border-l-4"],
.wp-rules-new .wp-document .space-y-6 > div div[class*="border-[#ffffff10]"] {
    margin: 13px 0 4px;
    padding: 11px 15px 9px;
    border-left: 2px solid rgba(186, 133, 52, 0.7);
    border-radius: 0 4px 4px 0;
    background: linear-gradient(100deg, rgba(126, 88, 35, 0.17), rgba(126, 88, 35, 0.03));
}

.wp-rules-new .wp-document .space-y-6 > div[class*="border-red-400"],
.wp-rules-new .wp-document .space-y-6 > div div[class*="border-red-400"] {
    border-left-color: rgba(190, 79, 66, 0.85);
}

.wp-rules-new .wp-document .space-y-6 > div[class*="border-orange-400"],
.wp-rules-new .wp-document .space-y-6 > div div[class*="border-orange-400"] {
    border-left-color: rgba(199, 125, 49, 0.85);
}

.wp-rules-new .wp-document .space-y-6 > div[class*="border-yellow-400"],
.wp-rules-new .wp-document .space-y-6 > div div[class*="border-yellow-400"] {
    border-left-color: rgba(205, 173, 63, 0.85);
}

.wp-rules-new .wp-document div[class*="border-l-4"] > p:last-child,
.wp-rules-new .wp-document div[class*="border-[#ffffff10]"] > p:last-child {
    margin-bottom: 0;
}

.wp-rules-new .wp-document p[class*="Klarissa"] {
    margin: 0 0 6px;
    color: #e2b660;
    font-family: 'Cinzel', serif;
    font-size: 0.86em;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
}

.wp-rules-new .wp-document p[class*="d6ae56"][class*="italic"] {
    position: relative;
    margin: 17px 0 3px;
    padding: 4px 24px 6px;
    border-top: 0;
    color: #e9c47a;
    font-family: 'EB Garamond', serif;
    font-size: 1.08em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.1px;
    line-height: 1.48;
    text-align: center;
    text-transform: none;
}

.wp-rules-new #codice .wp-document > div:first-child > p[class*="d6ae56"][class*="italic"] {
    padding-bottom: 25px;
}

.wp-rules-new #codice .wp-document > div:first-child > p[class*="d6ae56"][class*="italic"]::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(473px, 82%);
    aspect-ratio: 473 / 21;
    margin: auto;
    background: url('../images/primary-chapter-divider.png') center / contain no-repeat;
    content: '';
    opacity: 0.9;
}

.wp-rules-new .wp-document ul,
.wp-rules-new .wp-document ol {
    margin: 9px 0 13px;
    padding-left: 22px;
}

.wp-rules-new .wp-document ul {
    list-style: none;
}

.wp-rules-new .wp-document ul > li {
    position: relative;
}

.wp-rules-new .wp-document ul > li::before {
    position: absolute;
    top: 0.46em;
    left: -15px;
    width: 5px;
    height: 5px;
    background: linear-gradient(140deg, #e2b45f, #8d6127);
    content: '';
    transform: rotate(45deg);
}

.wp-rules-new .wp-document li {
    margin-bottom: 7px;
}

.wp-rules-new .wp-document table {
    width: 100%;
    margin: 13px 0 6px;
    border-collapse: collapse;
    font-size: 0.94em;
}

.wp-rules-new .wp-document th {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(170, 120, 48, 0.6);
    color: #e0b45c;
    font-family: 'Cinzel', serif;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
}

.wp-rules-new .wp-document td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(135, 99, 52, 0.22);
    text-align: left;
    vertical-align: top;
}

.wp-rules-new .wp-document tbody tr:nth-child(odd) {
    background: rgba(216, 169, 78, 0.03);
}

.wp-rules-new .wp-document i {
    color: #c5943e;
}

.wp-rules-new[data-rules-locked] .doc-nav {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wp-rules-new[data-rules-locked] .wp-rules-index-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wp-rules-new[data-rules-locked] .wp-rules-index-scroll::-webkit-scrollbar {
    width: 0;
    display: none;
}

.wp-rules-new .wp-academy-actions {
    flex: 0 0 auto;
    margin: 0 !important;
    padding-top: 16px;
}

.wp-rules-new .wp-academy-actions::before {
    display: block;
    width: min(275px, 100%);
    aspect-ratio: 275 / 16;
    margin: 0 auto 15px;
    background: url('../images/rule-entry-divider.png') center / contain no-repeat;
    content: '';
}

.wp-rules-new .wp-academy-actions .wp-academy-btn {
    width: 100%;
    min-width: 0;
}

.wp-rules-accept-hint {
    margin: 0 0 11px;
    color: rgba(216, 169, 78, 0.82);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.3px;
    text-align: center;
}

.wp-rules-new .wp-academy-btn {
    min-width: 214px;
    min-height: 44px;
    padding: 11px 26px;
    border: 1px solid rgba(230, 195, 111, 0.82);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(133, 96, 36, 0.5), rgba(9, 12, 17, 0.96));
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(246, 227, 163, 0.14);
    color: #f0d693;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.9px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wp-rules-new .wp-academy-btn:hover,
.wp-rules-new .wp-academy-btn:focus-visible {
    border-color: #f6e3a3;
    outline: 0;
    color: #ffeec2;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(216, 169, 78, 0.32);
    transform: translateY(-1px);
}

.wp-rules-new .wp-academy-btn:disabled {
    cursor: wait;
    opacity: 0.65;
    box-shadow: none;
    transform: none;
}

.wp-rules-new .wp-academy-btn.is-nudged {
    animation: wp-rules-nudge 0.9s ease-in-out 3;
    border-color: #e6c36f;
    box-shadow: 0 0 0 1px rgba(230, 195, 111, 0.35), 0 0 18px rgba(216, 169, 78, 0.55);
}

@keyframes wp-rules-nudge {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
    60% { transform: translateY(0); }
    80% { transform: translateY(-2px); }
}

.wp-rules-lock-notice {
    position: fixed;
    left: 50%;
    bottom: clamp(14px, 4vh, 36px);
    z-index: 1000;
    width: min(calc(100vw - 24px), 520px);
    margin: 0;
    padding: 12px 18px;
    border: 1px solid rgba(216, 169, 78, 0.7);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(119, 76, 23, 0.28), rgba(8, 11, 16, 0.96));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    color: #e6c36f;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-align: center;
    transform: translateX(-50%);
    animation: wp-rules-notice-in 0.25s ease-out;
}

.wp-rules-lock-notice strong {
    color: #f3dc9a;
    font-weight: 700;
}

.wp-rules-lock-notice[hidden] {
    display: none;
}

@keyframes wp-rules-notice-in {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .wp-rules-new .wp-academy-btn.is-nudged,
    .wp-rules-lock-notice {
        animation: none;
    }
}

@media (min-width: 981px) {
    html.wp-rules-new-root,
    .wp-rules-new-page {
        overflow: hidden;
    }

    html.wp-rules-new-root:has(.wp-rules-new:not(.wp-documentazione-new)),
    .wp-rules-new-page:has(.wp-rules-new:not(.wp-documentazione-new)) {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .wp-rules-main {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        display: grid;
        grid-template-rows: 61px minmax(0, 1fr) 63px;
        overflow: visible;
    }

    .wp-rules-main:has(> .wp-rules-new:not(.wp-documentazione-new)) {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        grid-template-rows: 61px auto 63px;
    }

    .wp-rules-main > .wp-rules-new:not(.wp-documentazione-new) {
        --wp-indexed-panel-min-height: calc(100dvh - 258px);
        height: auto;
        min-height: 0;
        max-height: none;
        align-self: start;
        overflow: visible;
    }

    .wp-rules-main > .wp-page-footer {
        grid-row: 3;
    }

    .wp-rules-new:not(.wp-documentazione-new) .wp-academy__inner,
    .wp-rules-new:not(.wp-documentazione-new) .wp-section-stack,
    .wp-rules-new:not(.wp-documentazione-new) .wp-academy-panel {
        height: auto;
    }

    .wp-rules-new:not(.wp-documentazione-new) .wp-academy__inner {
        grid-template-rows: auto auto;
    }

    .wp-rules-new:not(.wp-documentazione-new) .wp-academy-panel {
        min-height: max(410px, var(--wp-indexed-panel-min-height));
        align-items: stretch;
        overflow: hidden;
    }

    .wp-rules-new .doc-nav {
        grid-column: 1;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .wp-rules-new .doc-section {
        position: absolute;
        inset:
            18px
            18px
            18px
            var(--wp-rules-index-width);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: auto;
    }
}

@media (min-width: 981px) and (max-height: 850px) {
    .wp-rules-main > .wp-rules-new:not(.wp-documentazione-new) {
        --wp-indexed-panel-min-height: calc(100dvh - 216px);
    }

    .wp-rules-new .wp-academy__header {
        min-height: 82px;
        padding-top: 1px;
        padding-bottom: 4px;
    }

    .wp-rules-new .wp-academy__title {
        font-size: 29px;
    }

    .wp-rules-new .wp-academy__lead {
        margin-top: 3px;
        font-size: 14px;
    }

    .wp-rules-new .wp-academy__header::after {
        width: min(250px, 62%);
        margin-top: 2px;
    }

    .wp-rules-new .doc-nav {
        padding-top: 18px;
        padding-bottom: 17px;
    }

    .wp-rules-index-head {
        margin-bottom: 8px;
    }

    .wp-rules-index-head h2 {
        font-size: 15px;
    }

    .wp-rules-index-head img {
        height: 14px;
        margin-top: 1px;
    }

    .wp-rules-index-search {
        height: 38px;
        margin-bottom: 9px;
    }

    .wp-rules-index-search input {
        font-size: 15.5px;
    }

    .wp-rules-index-group {
        margin-bottom: 7px;
        padding-bottom: 7px;
    }

    .wp-rules-index-group h3 {
        margin-bottom: 3px;
        font-size: 11.5px;
    }

    .wp-rules-new .doc-nav .wp-rules-index-group a {
        min-height: 32px;
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 8px;
        padding-top: 2px;
        padding-bottom: 2px;
        font-size: 16px;
    }

    .wp-rules-new .doc-nav .wp-rules-index-group a img {
        width: 22px;
        height: 22px;
    }

    .wp-rules-new .doc-section {
        padding-top: 14px;
    }

    .wp-rules-new .section-title::before {
        width: 70px;
        height: 70px;
    }

    .wp-rules-new .wp-document {
        font-size: 15.2px;
        line-height: 1.54;
    }
}

@media (min-width: 981px) and (max-height: 650px) {
    .wp-rules-main > .wp-rules-new:not(.wp-documentazione-new) {
        --wp-indexed-panel-min-height: calc(100dvh - 203px);
    }

    .wp-rules-new-page .wp-academy.wp-rules-new {
        padding-bottom: 7px;
    }

    .wp-rules-new .wp-academy__header {
        min-height: 72px;
        padding-bottom: 2px;
    }

    .wp-rules-new .wp-academy__title {
        font-size: 27px;
        letter-spacing: 2px;
    }

    .wp-rules-new .wp-academy__lead {
        margin-top: 2px;
        font-size: 13px;
    }

    .wp-rules-new .wp-academy__header::after {
        width: 220px;
        margin-top: 1px;
    }

    .wp-rules-new .doc-nav {
        padding: 13px 18px 12px 25px;
    }

    .wp-rules-index-head {
        margin-bottom: 6px;
    }

    .wp-rules-index-head h2 {
        font-size: 14px;
    }

    .wp-rules-index-head img {
        width: 148px;
        height: 14px;
        margin-top: 1px;
    }

    .wp-rules-index-search {
        height: 32px;
        margin-bottom: 7px;
    }

    .wp-rules-index-search svg {
        width: 17px;
        height: 17px;
    }

    .wp-rules-index-search input {
        font-size: 14.5px;
    }

    .wp-rules-index-group {
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    .wp-rules-index-group h3 {
        margin-bottom: 2px;
        font-size: 10.5px;
    }

    .wp-rules-new .doc-nav .wp-rules-index-group a {
        min-height: 26px;
        grid-template-columns: 21px minmax(0, 1fr);
        gap: 7px;
        margin: 0;
        padding: 1px 8px;
        font-size: 14.5px;
    }

    .wp-rules-new .doc-nav .wp-rules-index-group a img {
        width: 20px;
        height: 20px;
    }

    .wp-rules-new .doc-section {
        padding: 10px 34px 22px 39px;
    }

    .wp-rules-new .section-title::before {
        width: 60px;
        height: 60px;
        margin-bottom: 3px;
    }

    .wp-rules-new .section-title {
        font-size: 23px;
        letter-spacing: 1.25px;
    }

    .wp-rules-new .wp-rules-section-subtitle {
        margin-top: 3px;
        font-size: 13px;
    }

    .wp-rules-new .section-title::after,
    .wp-rules-new .wp-rules-section-subtitle::after {
        width: 220px;
        margin-top: 3px;
        margin-bottom: 7px;
    }

    .wp-rules-new .wp-document {
        width: min(100%, 76ch);
        font-size: 14.5px;
        line-height: 1.5;
    }

    .wp-rules-new .wp-document > div,
    .wp-rules-new .wp-document > div:first-child {
        margin-bottom: 15px;
    }

    .wp-rules-new .wp-document > div:first-child {
        padding-bottom: 11px;
    }

    .wp-rules-new .wp-document p {
        margin-bottom: 8px;
    }

    .wp-rules-new .wp-document h2 {
        margin-top: 16px;
        margin-bottom: 11px;
        font-size: 17px;
        letter-spacing: 1.2px;
    }

    .wp-rules-new .wp-document h3 {
        font-size: 13.2px;
    }

    .wp-rules-new .wp-document .space-y-6 > div + div {
        padding-top: 15px;
    }

    .wp-rules-new .wp-document .space-y-6 > div div[class*="border-l-4"],
    .wp-rules-new .wp-document .space-y-6 > div div[class*="border-[#ffffff10]"] {
        margin-top: 10px;
        padding: 9px 12px 7px;
    }
}

@media (max-width: 1180px) {
    .wp-rules-new .wp-academy-panel {
        --wp-rules-index-width: 250px;
    }

    .wp-rules-new .doc-nav {
        padding-right: 18px;
        padding-left: 22px;
    }

    .wp-rules-new .doc-section {
        padding-right: 28px;
        padding-left: 34px;
    }
}

@media (max-width: 980px) {
    .wp-rules-main {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .wp-rules-new-page .wp-academy.wp-rules-new {
        flex: 1 0 auto;
        padding-right: 10px;
        padding-left: 10px;
    }

    .wp-rules-new .wp-academy__inner {
        min-height: 760px;
    }

    .wp-rules-new .wp-academy-panel {
        --wp-rules-index-width: 225px;
        min-height: 610px;
    }

    .wp-rules-new .doc-nav {
        padding-right: 14px;
        padding-left: 18px;
    }

    .wp-rules-new .doc-section {
        padding-right: 24px;
        padding-left: 28px;
    }
}

@media (max-width: 720px) {
    .wp-rules-new .wp-academy__header {
        min-height: 112px;
    }

    .wp-rules-new .wp-academy__title {
        font-size: clamp(23px, 5vw, 30px);
        letter-spacing: 1.5px;
    }

    .wp-rules-new .wp-academy-panel {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;
        padding-bottom: 20px;
    }

    .wp-rules-new .doc-nav {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 24px 22px 18px;
    }

    .wp-rules-new .doc-nav::after {
        display: none;
    }

    .wp-rules-index-head,
    .wp-rules-index-search,
    .wp-rules-search-empty {
        grid-column: 1 / -1;
    }

    .wp-rules-index-search {
        width: min(100%, 420px);
    }

    .wp-rules-index-group {
        margin: 0;
    }

    .wp-rules-new .doc-section {
        min-height: 560px;
        overflow: visible;
        padding: 26px 25px 34px;
    }
}

@media (max-width: 560px) {
    .wp-rules-new-page .wp-profile-concept-brand > span {
        display: none;
    }

    .wp-rules-new .wp-academy__lead {
        max-width: 90%;
    }

    .wp-rules-new .doc-nav {
        grid-template-columns: repeat(3, 170px);
        padding-right: 18px;
        padding-left: 18px;
    }

    .wp-rules-new .doc-section {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wp-rules-new .wp-document {
        font-size: 15.2px;
        line-height: 1.58;
    }
}

body .wp-rules-index-group h3 {
    font-size: 12px;
}
body .wp-rules-new .wp-academy-btn {
    font-size: 12px;
}

@media (max-width: 560px) {
    .wp-rules-new .doc-nav {
        grid-template-columns: minmax(0, 1fr);
        overflow-x: hidden;
    }

    .wp-rules-index-head {
        width: 100%;
        min-width: 0;
    }

    .wp-rules-index-head h2 {
        white-space: normal;
    }

    .wp-rules-index-search {
        width: 100%;
    }
}
