:root {
    --nw-gold: var(--av-gold);
    --nw-gold-bright: var(--av-gold-strong);
    --nw-ivory: var(--av-text);
    --nw-muted: var(--av-muted);
    --nw-panel: var(--av-surface-strong);
    --nw-blue: var(--av-blue);
}

.nw-page {
    min-height: 100vh;
    padding: 72px 0 0;
    color: var(--nw-ivory);
    font-family: 'Cinzel', serif;
}

.nw-container {
    width: min(1480px, calc(100% - 48px));
    margin-inline: auto;
}

.nw-header {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
    text-align: center;
}

.nw-header__title {
    margin: 0;
    color: #e8bd6d;
    font-size: clamp(2.25rem, 3.1vw, 3rem);
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1.08;
    text-transform: uppercase;
    text-shadow: 0 2px 2px #000, 0 0 14px rgba(229, 172, 80, .2);
    text-wrap: balance;
}

.nw-header__ornament {
    width: min(692px, 58vw);
    height: 22px;
    margin-top: 1px;
    object-fit: fill;
}

.nw-header__sub {
    margin: 1px 0 0;
    color: #c4c4c6;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .07em;
    line-height: 1.5;
    text-transform: uppercase;
}

.nw-filters {
    width: 930px;
    height: 44px;
    display: grid;
    grid-template-columns: .82fr repeat(5, 1fr);
    margin: 0 0 -14px 106px;
    position: relative;
    z-index: 4;
}

[dir="rtl"] .nw-filters {
    margin-right: 106px;
    margin-left: 0;
}

.nw-filter {
    min-width: 0;
    min-height: 44px;
    display: grid;
    place-items: center;
    position: relative;
    color: #d9b66d;
    background: url('/images/news/reference/tab-inactive.png') center / 100% 100% no-repeat;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    transition: color .18s ease, filter .18s ease;
}

.nw-filter:hover,
.nw-filter:focus-visible {
    color: #fff0bc;
    filter: brightness(1.24);
    outline: none;
}

.nw-filter.is-active {
    color: #fff;
    background-image: url('/images/news/reference/tab-active.png');
    text-shadow: 0 0 8px rgba(51, 139, 255, .7);
}

.nw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1080px) 355px;
    gap: 14px;
    align-items: start;
}

.nw-main {
    min-width: 0;
    min-height: 686px;
    position: relative;
    padding: 33px 30px 18px;
    background: rgba(1, 8, 15, .94);
}

.nw-main__frame,
.nw-card__frame,
.nw-featured__frame,
.nw-side-panel__frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-style: solid;
    border-color: transparent;
    border-image-source: url('/images/news/v2/panel-frame.webp');
    border-image-slice: 90 fill;
    border-image-outset: 0;
    border-image-repeat: stretch;
    pointer-events: none;
}

.nw-main__frame {
    border-width: 25px;
    border-image-width: 25px;
}

.nw-card__frame,
.nw-featured__frame {
    border-width: 17px;
    border-image-width: 17px;
}

.nw-main > :not(.nw-main__frame),
.nw-card > :not(.nw-card__frame),
.nw-featured > :not(.nw-featured__frame),
.nw-side-panel > :not(.nw-side-panel__frame) {
    position: relative;
    z-index: 1;
}

.nw-featured {
    min-height: 266px;
    display: grid;
    grid-template-columns: 56.4% 43.6%;
    position: relative;
    margin-bottom: 13px;
    overflow: hidden;
    background: #020b14;
}

.nw-featured__media,
.nw-card__media {
    aspect-ratio: 16 / 9;
    min-height: 266px;
    display: block;
    overflow: hidden;
}

.nw-featured__media img,
.nw-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.nw-featured:hover .nw-featured__media img,
.nw-card:hover .nw-card__media img {
    transform: scale(1.035);
}

.nw-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 30px;
    background: #020b14;
}

.nw-card__meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 13px;
}

.nw-tag {
    width: max-content;
    display: inline-flex;
    padding: 4px 7px;
    color: #d9e5ff;
    border: 1px solid #365e9e;
    background: #102a59;
    font-size: .56rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.nw-tag--event { color: #c6e9a1; border-color: #486925; background: #1d3b13; }
.nw-tag--server { color: #f1c7ff; border-color: #6c2678; background: #3a1045; }
.nw-tag--maintenance { color: #f4c5e9; border-color: #713563; background: #39142f; }
.nw-tag--guide { color: #f0d897; border-color: #74591b; background: #3c2c08; }
.nw-tag--news { color: #e5dcbf; border-color: #685b3d; background: #292319; }

.nw-featured time,
.nw-card time {
    color: #aaa8a4;
    font-size: .6rem;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.nw-featured h2 {
    margin: 0 0 10px;
    color: #e6b45e;
    font-size: 1.52rem;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1.25;
    text-transform: uppercase;
    text-wrap: balance;
}

.nw-featured p {
    max-width: 43ch;
    margin: 0 0 16px;
    color: #bbb9b5;
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.5;
}

.nw-button {
    width: 204px;
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 8px 23px;
    color: #e8e0e0;
    background: url('/images/news/v2/button.webp') center / 100% 100% no-repeat;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
    transition: filter .18s ease, transform .18s ease;
}

.nw-button:hover,
.nw-button:focus-visible {
    color: #fff;
    filter: brightness(1.22);
    transform: translateY(-1px);
    outline: none;
}

.nw-button span {
    color: #efd28f;
    font-size: 1rem;
}

.nw-button--small {
    width: 154px;
    min-height: 35px;
    padding: 6px 16px;
    font-size: .58rem;
}

.nw-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.nw-card {
    min-width: 0;
    min-height: 313px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 9px 10px 11px;
    background: #020b14;
}

.nw-card__media {
    aspect-ratio: 1.51;
    display: block;
    overflow: hidden;
}

.nw-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 7px 2px;
}

.nw-card__body time {
    margin-top: 7px;
}

.nw-card h2 {
    min-height: 40px;
    margin: 7px 0 4px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.nw-card h2 a {
    color: #dfb15f;
    text-decoration: none;
}

.nw-card p {
    flex: 1;
    min-height: 55px;
    margin: 0 0 8px;
    color: #b9b6b1;
    font-family: 'Rajdhani', sans-serif;
    font-size: .79rem;
    font-weight: 500;
    line-height: 1.45;
}

.nw-card .nw-button {
    align-self: center;
}

.nw-sidebar {
    display: grid;
    gap: 10px;
}

.nw-side-panel {
    position: relative;
    padding: 20px 25px 17px;
    background: rgba(2, 11, 20, .95);
}

.nw-side-panel__frame {
    border-width: 20px;
    border-image-width: 20px;
}

.nw-side-panel h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #dfb76c;
    text-align: center;
    text-transform: uppercase;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.1;
}

.nw-side-panel h2::before,
.nw-side-panel h2::after {
    width: 36px;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, #4775a8);
}

.nw-side-panel h2::after {
    transform: scaleX(-1);
}

.nw-events-panel {
    min-height: 276px;
    padding-bottom: 40px;
}

.nw-events-list {
    display: grid;
    gap: 7px;
}

.nw-event-row {
    min-height: 83px;
    display: grid;
    grid-template-columns: 76px 1fr;
    border: 1px solid rgba(171, 130, 62, .34);
    background: #06101a;
}

.nw-event-row__icon {
    display: grid;
    place-items: center;
    color: var(--event-accent);
    border-right: 1px solid rgba(171, 130, 62, .28);
    background: radial-gradient(circle, color-mix(in srgb, var(--event-accent) 18%, #06101a), #06101a 70%);
    font-size: 1.7rem;
    text-shadow: 0 0 13px color-mix(in srgb, var(--event-accent) 62%, transparent);
}

.nw-event-row__copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 8px 12px;
}

.nw-event-row strong {
    overflow: hidden;
    color: #d9ad60;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nw-event-row small {
    color: #9e9ea0;
    font-size: .55rem;
    text-transform: uppercase;
}

.nw-event-row time {
    color: #e6bc70;
    font-size: .86rem;
    letter-spacing: .08em;
}

.nw-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #59a8ef;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .56rem;
    font-weight: 600;
    line-height: 1;
}

.nw-events-panel > .nw-panel-link {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
}

.nw-panel-link:hover,
.nw-panel-link:focus-visible {
    color: #bfe4ff;
    outline: none;
}

.nw-panel-link span {
    color: #e0b364;
    font-size: .9rem;
}

.nw-patch {
    min-height: 138px;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    align-items: center;
    padding-block: 15px;
}

.nw-patch > img {
    width: 78px;
    height: 74px;
    object-fit: contain;
}

.nw-patch h2 {
    justify-content: flex-start;
    margin-bottom: 5px;
    text-align: left;
}

.nw-patch h2::before,
.nw-patch h2::after {
    display: none;
}

.nw-patch strong,
.nw-patch small {
    display: block;
    text-transform: uppercase;
}

.nw-patch strong {
    color: #ddb15f;
    font-size: .72rem;
    line-height: 1.25;
}

.nw-patch small {
    margin-top: 3px;
    color: #b8b6b1;
    font-family: 'Rajdhani', sans-serif;
    font-size: .68rem;
    line-height: 1.2;
}

.nw-patch a {
    width: 170px;
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    color: #e1c88b;
    background: url('/images/news/v2/button.webp') center / 100% 100% no-repeat;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .55rem;
    font-weight: 600;
}

.nw-status {
    min-height: 119px;
    padding-block: 16px 13px;
    text-align: center;
}

.nw-status h2 {
    margin-bottom: 10px;
}

.nw-status p {
    margin: 0 0 5px;
    color: #8ec34a;
    font-size: .64rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.nw-status p.has-warning {
    color: #d7a54d;
}

.nw-status small {
    display: block;
    margin-bottom: 7px;
    color: #aaa8aa;
    font-size: .58rem;
    line-height: 1;
}

.nw-status__light {
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 9px;
    border-radius: 50%;
    background: #79ef3d;
    box-shadow: 0 0 10px #61df32;
}

.nw-quick {
    min-height: 130px;
    padding: 16px 25px 14px;
}

.nw-quick h2 {
    margin-bottom: 11px;
}

.nw-quick__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.nw-quick__grid a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 7px;
    color: #cda55d;
    text-decoration: none;
    transition: color .18s ease, filter .18s ease;
}

.nw-quick__icon {
    width: 54px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(189, 141, 66, .43);
    background: #07121d;
}

.nw-quick__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.nw-quick__grid a:hover,
.nw-quick__grid a:focus-visible {
    color: #f0cf83;
    filter: brightness(1.22);
    outline: none;
}

.nw-quick__grid a > span:last-child {
    overflow: hidden;
    max-width: 100%;
    font-size: .47rem;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nw-side-panel__empty {
    margin: 28px 0;
    color: #999ca0;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: .8rem;
}

.nw-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
}

.nw-pagination a,
.nw-pagination span {
    width: 39px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #d1a65a;
    background: url('/images/news/reference/pager.png') center / 100% 100% no-repeat;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
}

.nw-pagination a:hover,
.nw-pagination a.is-active,
.nw-pagination a:focus-visible {
    color: #fff;
    filter: brightness(1.32) saturate(1.25);
    outline: none;
}

.nw-pagination .is-disabled {
    opacity: .38;
}

.nw-empty {
    grid-column: 1 / -1;
    min-height: 600px;
    display: grid;
    place-content: center;
    gap: 12px;
    color: #9ca1aa;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: .95rem;
}

.nw-empty i {
    color: #1783ed;
    font-size: 2.2rem;
}

.nw-article-back,
.nw-article__footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nw-gold);
    text-decoration: none;
}

.nw-article {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(190, 143, 69, .42);
    background: rgba(2, 11, 20, .96);
}

.nw-article__hero img {
    width: 100%;
    max-height: 430px;
    display: block;
    object-fit: cover;
}

.nw-article__inner {
    padding: clamp(24px, 5vw, 52px);
}

.nw-article__title {
    margin: 0;
    color: var(--nw-gold-bright);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.nw-article__content {
    color: #cbc8c3;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
}

.nw-article__footer {
    padding-block: 20px;
    text-align: center;
}

@media (max-width: 1490px) {
    .nw-filters {
        width: 75%;
        margin-left: 7%;
    }

    [dir="rtl"] .nw-filters {
        margin-right: 7%;
    }

    .nw-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1050px) {
    .nw-page {
        background-attachment: scroll;
    }

    .nw-filters {
        width: 100%;
        margin-inline: 0;
    }
}

@media (max-width: 800px) {
    .nw-page {
        padding-top: 72px;
    }

    .nw-container {
        width: min(100% - 24px, 720px);
    }

    .nw-header {
        min-height: 132px;
    }

    .nw-header__title {
        font-size: clamp(1.65rem, 7vw, 2.45rem);
    }

    .nw-header__ornament {
        width: 82vw;
    }

    .nw-filters {
        height: auto;
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: -10px;
    }

    .nw-featured {
        grid-template-columns: 1fr;
    }

    .nw-featured__media {
        min-height: 230px;
    }

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

    .nw-empty {
        min-height: 380px;
    }

    .nw-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nw-page {
        padding-top: 64px;
    }

    .nw-header {
        min-height: 125px;
        padding-top: 16px;
    }

    .nw-header__title {
        font-size: 1.5rem;
    }

    .nw-header__sub {
        max-width: 330px;
        font-size: .58rem;
    }

    .nw-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .nw-main {
        min-height: 520px;
        padding: 25px 20px 18px;
    }

    .nw-featured__body {
        padding: 22px 18px;
    }

    .nw-featured h2 {
        font-size: 1.15rem;
    }

    .nw-grid {
        grid-template-columns: 1fr;
    }

    .nw-card {
        min-height: 360px;
    }

    .nw-quick__icon {
        width: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nw-featured__media img,
    .nw-card__media img,
    .nw-button,
    .nw-quick__grid a {
        transition: none;
    }
}
