body.news-page {
    min-height: 100vh;
    padding-top: 5.25rem;
    background: #070707;
    color: #d2cfc9;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.news-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.055), transparent 34rem),
        linear-gradient(180deg, rgba(5, 5, 5, 0.88), #070707 42%),
        url("/assets/img/nml/hero-bg-7.jpg") center top / cover no-repeat;
    opacity: 0.86;
}

.news-main,
.news-article-shell,
.news-manage-shell,
.news-editor-shell {
    position: relative;
    z-index: 1;
    width: min(1380px, calc(100% - 3rem));
    margin: 0 auto;
}

.news-main,
.news-manage-shell {
    padding: clamp(3rem, 6vw, 6rem) 0 5rem;
}

.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.news-kicker {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.news-header h1,
.news-article-header h1 {
    margin: 0;
    color: #ebe8e2;
    font-size: clamp(2.3rem, 5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

body.news-page .news-header h1,
body.news-page .news-article-header h1,
body.news-page .news-card h2,
body.news-page .news-empty h2,
body.news-page .news-article-body h2,
body.news-page .news-article-body h3,
body.news-page .news-article-body h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.news-header > div > p:last-child {
    max-width: 680px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.7;
}

.news-admin-actions,
.news-head-controls,
.news-editor-submit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid #efefef;
    border-radius: 3px;
    background: #efefef;
    color: #090909;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.news-button:hover {
    transform: translateY(-1px);
    background: #fff;
}

.news-button-muted {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
}

.news-button-muted:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.news-button-danger {
    border-color: rgba(190, 75, 75, 0.72);
    background: rgba(129, 36, 36, 0.28);
    color: #e0aaa5;
}

.news-button-danger:hover {
    border-color: #c85f59;
    background: #a33e39;
    color: #fff;
}

.news-button-small {
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.news-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 4px;
    background: #101010;
}

.news-card-featured {
    grid-column: 1 / -1;
    min-height: clamp(430px, 58vw, 680px);
}

.news-card > a {
    position: absolute;
    inset: 0;
    display: block;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.08);
    transition: transform 0.55s cubic-bezier(.2,.8,.2,1), filter 0.4s ease;
}

.news-card:hover img {
    transform: scale(1.035);
    filter: saturate(0.95) contrast(1.04);
}

.news-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 18%, rgba(5, 5, 5, 0.35) 48%, rgba(5, 5, 5, 0.98) 100%);
}

.news-card-featured .news-card-shade {
    background: linear-gradient(90deg, rgba(4, 4, 4, 0.92) 0%, rgba(4, 4, 4, 0.55) 48%, rgba(4, 4, 4, 0.12) 100%),
        linear-gradient(0deg, rgba(4, 4, 4, 0.8), transparent 42%);
}

.news-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
}

.news-card-featured .news-card-content {
    top: 0;
    right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(720px, 62%);
    padding: clamp(2rem, 6vw, 5rem);
}

.news-card time {
    display: block;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card-label {
    align-self: flex-start;
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-card h2 {
    margin: 0;
    color: #e8e5df;
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.13;
}

.news-card-featured h2 {
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 0.98;
}

.news-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card-featured p {
    max-width: 620px;
    font-size: 1rem;
    -webkit-line-clamp: 4;
}

.news-read-more {
    display: inline-block;
    margin-top: 1.15rem;
    color: #e5e2dc;
    font-size: 0.78rem;
    font-weight: 700;
}

.news-read-more span {
    display: inline-block;
    margin-left: 0.35rem;
    transition: transform 0.18s ease;
}

.news-card:hover .news-read-more span {
    transform: translateX(4px);
}

.news-empty {
    padding: clamp(4rem, 9vw, 8rem) 2rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(10, 10, 10, 0.86);
    text-align: center;
}

.news-empty span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.news-empty h2 {
    margin: 0.8rem 0 0;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.news-empty p {
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-empty.compact {
    padding: 3rem 1rem;
}

.news-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.8rem;
}

.news-pagination a:last-child {
    justify-self: end;
}

.news-pagination a:hover {
    color: #fff;
}

/* Artigo */
.news-article-shell {
    max-width: 1080px;
    padding: 2.25rem 0 6rem;
}

.news-article-nav,
.news-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

.news-article-nav > a:first-child:hover,
.news-editor-topbar > a:hover {
    color: #fff;
}

.news-article-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.news-draft-banner,
.news-save-banner,
.news-editor-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 3px solid #ca9f4e;
    background: rgba(14, 14, 14, 0.94);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.news-save-banner,
.news-editor-alert.success {
    border-left-color: #61a981;
}

.news-editor-alert.error {
    border-left-color: #bf5f5f;
}

.news-article {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.96);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.news-article-header {
    padding: clamp(2rem, 7vw, 5.5rem) clamp(1.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
}

.news-article-header h1 {
    max-width: 900px;
    font-size: clamp(2.3rem, 7vw, 5.8rem);
}

.news-article-header time {
    display: block;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-head-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    background: #111;
}

.news-head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-article-body {
    display: flow-root;
    padding: clamp(2.2rem, 7vw, 5.5rem);
    color: #c4c0b9;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.9;
}

.news-article-body > * + * {
    margin-top: 1.25em;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    clear: both;
    color: #e4e1db;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.news-article-body h2 { margin-top: 2.1em; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.news-article-body h3 { margin-top: 1.8em; font-size: clamp(1.35rem, 3vw, 2rem); }
.news-article-body h4 { margin-top: 1.6em; font-size: 1.2rem; }
.news-article-body ul,
.news-article-body ol { padding-left: 1.5rem; }
.news-article-body li + li { margin-top: 0.4rem; }
.news-article-body blockquote {
    padding: 0.8rem 0 0.8rem 1.4rem;
    border-left: 3px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.62);
    font-size: 1.08em;
}
.news-article-body a { color: #ddd9d1; text-decoration: underline; text-decoration-color: rgba(221, 217, 209, 0.58); text-underline-offset: 3px; }
.news-article-body a:hover { color: #f0ede7; text-decoration-color: currentColor; }
.news-article-body hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }

.news-inline-image {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
}

.news-image-size-small { width: 35%; }
.news-image-size-medium { width: 55%; }
.news-image-size-large { width: 75%; }
.news-image-size-full { width: 100%; }

.news-image-align-left { margin-right: auto; margin-left: 0; }
.news-image-align-center { margin-right: auto; margin-left: auto; }
.news-image-align-right { margin-right: 0; margin-left: auto; }
.news-image-wrap-left,
.news-image-wrap-right { clear: none; margin-top: 0.5rem; margin-bottom: 1.25rem; }
.news-image-wrap-left { float: left; margin-right: 2rem; margin-left: 0; }
.news-image-wrap-right { float: right; margin-right: 0; margin-left: 2rem; }

.news-text-left { text-align: left; }
.news-text-center { text-align: center; }
.news-text-right { text-align: right; }
.news-text-justify { text-align: justify; text-justify: inter-word; }

.news-inline-image img {
    display: block;
    width: 100%;
    max-height: 780px;
    object-fit: contain;
    background: #0c0c0c;
}

.news-inline-image figcaption {
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.news-signature {
    margin: 0 clamp(1.5rem, 7vw, 5.5rem) clamp(2.5rem, 7vw, 5.5rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.news-signature span,
.news-signature strong {
    display: block;
}

.news-signature span {
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-signature strong {
    color: #dedbd4;
    font-family: "Moon Dance", cursive;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 400;
}

/* Gestão */
.news-manage-shell { max-width: 1180px; }
.news-manage-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.94);
}
.news-manage-table-wrap { overflow-x: auto; }
.news-manage-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.news-manage-table th,
.news-manage-table td { padding: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.09); text-align: left; }
.news-manage-table th { color: rgba(255, 255, 255, 0.43); font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; }
.news-manage-table td { color: rgba(255, 255, 255, 0.75); }
.news-manage-table tbody tr:last-child td { border-bottom: 0; }
.news-status { display: inline-block; padding: 0.3rem 0.5rem; border: 1px solid; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; }
.news-status.published { border-color: rgba(92, 170, 127, 0.45); color: #8ed0ac; }
.news-status.draft { border-color: rgba(202, 159, 78, 0.45); color: #d7b572; }
.news-manage-actions { white-space: nowrap; }
.news-manage-actions a,
.news-manage-delete { margin-right: 0.75rem; color: #fff; font: inherit; font-weight: 700; }
.news-manage-actions a:hover { text-decoration: underline; }
.news-manage-delete {
    padding: 0;
    border: 0;
    background: transparent;
    color: #d88782;
    cursor: pointer;
}
.news-manage-delete:hover { color: #f0aaa5; text-decoration: underline; }

/* Editor */
.news-editor-shell { max-width: 1180px; padding: 2rem 0 6rem; }
.news-editor-topbar > span { color: rgba(255, 255, 255, 0.38); }
.news-editor-form { display: grid; gap: 1rem; }
.news-editor-card {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    background: rgba(9, 9, 9, 0.96);
}
.news-editor-label { display: block; margin-bottom: 0.65rem; color: rgba(255, 255, 255, 0.72); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.news-title-input,
.news-editor-card select,
.news-editor-card input[type="text"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: 0;
    background: #111;
    color: #fff;
    font: inherit;
    transition: border-color 0.18s ease;
}
.news-title-input { padding: 1rem; font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; }
.news-editor-card select,
.news-editor-card input[type="text"] { min-height: 2.8rem; padding: 0.65rem 0.75rem; font-size: 0.84rem; }
.news-title-input:focus,
.news-editor-card select:focus,
.news-editor-card input[type="text"]:focus { border-color: rgba(255, 255, 255, 0.46); }
.news-editor-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.news-editor-section-head p,
.news-option-field > p { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; line-height: 1.5; }
.news-head-preview { overflow: hidden; width: 100%; aspect-ratio: 16/9; border: 1px solid rgba(255, 255, 255, 0.1); background: #0b0b0b; }
.news-head-preview img { width: 100%; height: 100%; object-fit: cover; }
.news-upload-status { min-height: 1.3rem; margin-top: 0.65rem; color: rgba(255, 255, 255, 0.45); font-size: 0.76rem; }
.news-upload-status.success { color: #83c7a2; }
.news-upload-status.error { color: #d08383; }
.news-upload-status.loading { color: #d5b779; }
.news-editor-content-card { padding: 0; overflow: hidden; overflow: clip; }
.news-editor-content-card > .news-editor-label { padding: 1.5rem 1.5rem 0; }
.news-editor-controls {
    position: sticky;
    top: 5.25rem;
    z-index: 5;
    background: #0f0f0f;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 15, 0.98);
}
.news-toolbar button,
.news-toolbar select { min-width: 2.2rem; min-height: 2.15rem; padding: 0.35rem 0.55rem; border: 1px solid transparent; border-radius: 2px; background: transparent; color: rgba(255, 255, 255, 0.74); font: inherit; font-size: 0.75rem; cursor: pointer; }
.news-toolbar select { width: auto; min-width: 7.5rem; border-color: rgba(255, 255, 255, 0.1); background: #111; }
.news-toolbar button:hover,
.news-toolbar button:focus-visible { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; }
.news-toolbar-divider { width: 1px; height: 1.4rem; margin: 0 0.25rem; background: rgba(255, 255, 255, 0.13); }
.news-rich-editor {
    display: flow-root;
    min-height: 520px;
    padding: clamp(1.5rem, 6vw, 4rem);
    outline: 0;
    background: #f3f1ec;
    color: #181818;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}
.news-rich-editor:empty::before { content: attr(data-placeholder); color: #888; pointer-events: none; }
.news-rich-editor > * + * { margin-top: 1em; }
.news-rich-editor h2,
.news-rich-editor h3 { line-height: 1.15; letter-spacing: -0.035em; }
.news-rich-editor h2 { margin-top: 1.6em; font-size: 2rem; }
.news-rich-editor h3 { margin-top: 1.4em; font-size: 1.5rem; }
.news-rich-editor ul,
.news-rich-editor ol { padding-left: 1.5rem; }
.news-rich-editor blockquote { padding-left: 1rem; border-left: 3px solid #777; color: #555; }
.news-rich-editor a { text-decoration: underline; }
.news-rich-editor .news-inline-image { position: relative; margin-top: 1.5rem; margin-bottom: 1.5rem; cursor: pointer; transition: outline-color 0.15s ease; }
.news-rich-editor .news-inline-image.is-selected { outline: 3px solid #78603b; outline-offset: 4px; }
.news-rich-editor .news-inline-image img { max-width: 100%; max-height: 650px; object-fit: contain; }
.news-rich-editor .news-inline-image figcaption { min-height: 1.4rem; color: #666; font-size: 0.78rem; text-align: center; }
.news-editor-content-card > .news-upload-status { padding: 0 1.5rem 0.5rem; background: #f3f1ec; color: #555; }
.news-editor-content-card > .news-upload-status.error { color: #9e3838; }
.news-editor-content-card > .news-upload-status.success { color: #27734b; }
.news-editor-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.news-option-field { min-width: 0; }
.news-option-field input { margin-top: 0.6rem; }
.news-option-field > p { margin-top: 0.6rem; }
.news-editor-submit { justify-content: flex-end; padding-top: 0.4rem; }
.news-editor-submit button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.news-editor-submit .news-editor-delete { margin-right: auto; }

.news-image-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
}
.news-image-tools[hidden] { display: none; }
.news-image-tools strong { margin-right: 0.4rem; color: #d8d4cd; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.news-image-tools label { display: inline-flex; align-items: center; gap: 0.45rem; }
.news-editor-card .news-image-tools select {
    width: auto;
    min-width: 9rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.55rem;
    background: #151515;
    color: #d5d1ca;
    font-size: 0.75rem;
}
.news-image-tools button {
    min-height: 2.15rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    color: #d8d4cd;
    font: inherit;
    cursor: pointer;
}
.news-image-tools button:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.1); }

.news-link-dialog {
    width: min(520px, calc(100% - 2rem));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: #0c0c0c;
    color: #cecac3;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
}
.news-link-dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(3px); }
.news-link-dialog form { display: grid; gap: 0.7rem; padding: 1.35rem; }
.news-link-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.45rem; }
.news-link-dialog-head span { color: rgba(255, 255, 255, 0.4); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.news-link-dialog-head h2 { margin: 0.25rem 0 0; color: #e6e2dc; font-size: 1.35rem; letter-spacing: -0.035em; }
.news-link-dialog-head button {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}
.news-link-dialog-head button:hover { color: #fff; }
.news-link-dialog label { color: rgba(255, 255, 255, 0.62); font-size: 0.72rem; font-weight: 700; }
.news-link-dialog input {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 2px;
    outline: 0;
    background: #131313;
    color: #dedad3;
    font: inherit;
    font-size: 0.84rem;
}
.news-link-dialog input:focus { border-color: rgba(255, 255, 255, 0.48); }
.news-link-error { min-height: 1.2rem; margin: 0; color: #d08383; font-size: 0.74rem; line-height: 1.5; }
.news-link-dialog-actions { display: flex; justify-content: flex-end; gap: 0.65rem; }

.news-delete-dialog {
    width: min(520px, calc(100% - 2rem));
    padding: 0;
    border: 1px solid rgba(198, 82, 76, 0.46);
    border-radius: 4px;
    background: #0b0b0b;
    color: #cbc7c0;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.78);
}
.news-delete-dialog::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(3px); }
.news-delete-dialog form { display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 1.8rem); }
.news-delete-dialog-head { display: flex; align-items: center; gap: 0.85rem; }
.news-delete-dialog-head > span {
    display: grid;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid rgba(207, 89, 82, 0.6);
    border-radius: 50%;
    background: rgba(142, 43, 39, 0.18);
    color: #dc8e88;
    font-size: 1.15rem;
    font-weight: 800;
}
.news-delete-dialog-head p { margin: 0 0 0.2rem; color: rgba(255, 255, 255, 0.4); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.news-delete-dialog-head h2 { margin: 0; color: #e5e1da; font-size: 1.45rem; letter-spacing: -0.035em; }
.news-delete-description { margin: 0; color: #c7c3bc; font-size: 0.9rem; line-height: 1.7; }
.news-delete-description strong { color: #e7e3dc; overflow-wrap: anywhere; }
.news-delete-warning {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-left: 3px solid #a9433e;
    background: rgba(126, 39, 35, 0.12);
    color: rgba(232, 191, 187, 0.78);
    font-size: 0.76rem;
    line-height: 1.55;
}
.news-delete-dialog-actions { display: flex; justify-content: flex-end; gap: 0.65rem; padding-top: 0.25rem; }
.news-delete-dialog-actions .news-button:disabled { opacity: 0.55; cursor: wait; transform: none; }

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card-featured { grid-column: 1 / -1; }
    .news-card-featured .news-card-content { width: 78%; }
    .news-editor-options { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .news-main,
    .news-article-shell,
    .news-manage-shell,
    .news-editor-shell { width: min(100% - 1.25rem, 1380px); }
    .news-header,
    .news-editor-section-head { align-items: flex-start; flex-direction: column; }
    .news-admin-actions,
    .news-head-controls { width: 100%; flex-wrap: wrap; }
    .news-admin-actions .news-button { flex: 1; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card,
    .news-card-featured { grid-column: auto; min-height: 430px; }
    .news-card-featured .news-card-content { top: auto; width: 100%; padding: 1.5rem; }
    .news-card-featured .news-card-shade { background: linear-gradient(180deg, transparent 15%, rgba(5, 5, 5, 0.3) 42%, rgba(5, 5, 5, 0.98) 100%); }
    .news-card-featured h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
    .news-pagination { grid-template-columns: 1fr 1fr; }
    .news-pagination span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .news-article-nav { align-items: flex-start; gap: 1rem; }
    .news-article-admin-actions { flex-wrap: wrap; justify-content: flex-end; }
    .news-article-body { line-height: 1.75; }
    .news-toolbar-divider { display: none; }
    .news-rich-editor { min-height: 420px; padding: 1.25rem; }
    .news-image-size-small,
    .news-image-size-medium,
    .news-image-size-large,
    .news-image-size-full,
    .news-image-wrap-left,
    .news-image-wrap-right {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    .news-image-tools { align-items: stretch; }
    .news-image-tools strong { width: 100%; }
    .news-image-tools label { width: 100%; justify-content: space-between; }
    .news-editor-card .news-image-tools select { min-width: 0; max-width: 70%; }
    .news-link-dialog-actions .news-button { flex: 1; }
    .news-delete-dialog-actions .news-button { flex: 1; }
    .news-editor-submit .news-button { flex: 1; }
    .news-editor-submit .news-editor-delete { flex: 1 0 100%; margin-right: 0; }
}
