:root {
    --news-ink: #271e18;
    --news-muted: #766b61;
    --news-paper: #fffdf8;
    --news-paper-deep: #f5eee2;
    --news-line: #ddcfbc;
    --news-accent: #9d421f;
    --news-accent-dark: #713018;
    --news-gold: #c5903d;
    --news-green: #326c4c;
    --news-shadow: 0 18px 50px rgba(54, 35, 22, .12);
    --news-radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e9e0d3; }
body.news-shell {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--news-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(197, 144, 61, .14), transparent 26rem),
        linear-gradient(180deg, #f5f0e8 0, #ebe3d7 100%);
    font: 14px/1.55 Inter, Arial, sans-serif;
    overflow-x: hidden;
}
body.news-shell::before,
body.news-shell::after {
    content: '';
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: .18;
    animation: newsAurora 14s ease-in-out infinite alternate;
}
body.news-shell::before { top: 18%; left: -180px; background: #b55d2d; }
body.news-shell::after { right: -170px; bottom: 5%; background: #d8a645; animation-delay: -7s; }

a { color: inherit; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

.news-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px max(24px, calc((100vw - 1380px) / 2));
    color: #f9f1e5;
    background: rgba(35, 25, 20, .97);
    border-bottom: 1px solid rgba(226, 181, 104, .35);
    box-shadow: 0 5px 24px rgba(25, 14, 8, .22);
    backdrop-filter: blur(12px);
}

.news-brand {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.news-brand__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(240, 199, 127, .75);
    border-radius: 50%;
    background: linear-gradient(145deg, #a84a24, #65220e);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), 0 4px 13px rgba(0,0,0,.25);
    font: 700 14px/1 Playfair Display, serif;
    letter-spacing: .08em;
    animation: newsEmblemGlow 4s ease-in-out infinite;
}
.news-brand__mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.news-brand small, .news-brand strong { display: block; }
.news-brand small { color: #d9b985; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.news-brand strong { font: 600 18px/1.2 Playfair Display, serif; }

.news-topbar__nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.news-topbar__nav a, .news-user-chip {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e9ded1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: .18s ease;
}
.news-topbar__nav a:hover, .news-topbar__nav a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.news-topbar__nav a.is-accent { color: #fff8ea; background: #8d3b1c; }
.news-user-chip { border: 1px solid rgba(225, 188, 128, .38); color: #efd3a4; }

.news-hero {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    display: flex;
    align-items: center;
    padding: 52px max(24px, calc((100vw - 1380px) / 2));
    color: #fff8ef;
    background:
        linear-gradient(90deg, rgba(45, 27, 18, .96), rgba(81, 42, 24, .83)),
        repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.022) 13px 14px);
    border-bottom: 4px solid #b27b34;
}
.news-hero::before,
.news-hero::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(239, 196, 117, .22);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(201, 123, 55, .13), inset 0 0 35px rgba(255,255,255,.04);
    animation: newsOrbit 16s linear infinite;
}
.news-hero::before { width: 330px; height: 330px; right: 8%; top: -190px; }
.news-hero::after { width: 170px; height: 170px; right: 23%; bottom: -120px; animation-direction: reverse; animation-duration: 11s; }
.news-hero > div { position: relative; z-index: 1; max-width: 780px; animation: newsReveal .7s ease both; }
.news-hero h1 { margin: 7px 0 8px; font: 700 clamp(34px, 5vw, 58px)/1.08 Playfair Display, Georgia, serif; }
.news-hero p { max-width: 700px; margin: 0; color: #dbcbbc; font-size: 16px; }
.news-eyebrow { color: var(--news-accent); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.news-hero .news-eyebrow { color: #e7bd74; }

.news-layout {
    width: min(1380px, calc(100% - 40px));
    margin: 34px auto 70px;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    animation: newsReveal .65s .08s ease both;
}

.news-sidebar {
    position: sticky;
    top: 94px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    background: rgba(255,253,248,.82);
    box-shadow: 0 12px 34px rgba(65, 44, 29, .08);
}
.news-sidebar__title { padding: 8px 12px 14px; font: 700 19px Playfair Display, serif; }
.news-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #544940;
    text-decoration: none;
    transition: .16s ease;
}
.news-category-link__label { min-width: 0; display: flex; align-items: center; gap: 9px; }
.news-category-link__label svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 0 transparent);
    transition: transform .22s ease, filter .22s ease;
}
.news-category-link:hover .news-category-link__label svg { transform: rotate(-6deg) scale(1.12); filter: drop-shadow(0 0 5px rgba(157,66,31,.55)); }
.news-category-link.is-active .news-category-link__label svg { filter: drop-shadow(0 0 5px rgba(255,214,137,.85)); }
.news-category-link:hover { background: #f2e8d9; transform: translateX(2px); }
.news-category-link.is-active { color: #fff; background: linear-gradient(135deg, #9f4825, #793117); }
.news-category-link.is-active { box-shadow: 0 7px 18px rgba(121,49,23,.24), inset 0 0 18px rgba(255,194,102,.1); }
.news-category-link b { min-width: 25px; padding: 2px 6px; border-radius: 10px; background: rgba(0,0,0,.08); text-align: center; font-size: 10px; }
.news-category-link.is-active b { background: rgba(255,255,255,.17); }
.news-sidebar__note { margin-top: 14px; padding: 16px; border-radius: 12px; color: #eadcc7; background: #39291f; }
.news-sidebar__note strong, .news-sidebar__note span { display: block; }
.news-sidebar__note strong { margin-bottom: 5px; font-family: Playfair Display, serif; }
.news-sidebar__note span { color: #cdbca9; font-size: 11px; line-height: 1.5; }

.news-content { min-width: 0; }
.news-feed-heading, .news-comments__heading, .news-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.news-feed-heading h2, .news-comments__heading h2, .news-section-heading h1, .news-section-heading h2 { margin: 2px 0 0; font: 700 27px/1.2 Playfair Display, serif; }
.news-feed-heading > span, .news-comments__heading > span { color: var(--news-muted); font-size: 12px; }

.news-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    background: var(--news-paper);
    box-shadow: 0 12px 35px rgba(58, 38, 25, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(213,154,73,.6), transparent 40%, rgba(157,66,31,.4));
    opacity: 0;
    filter: blur(9px);
    transition: opacity .25s ease;
}
.news-card:hover::after { opacity: .55; }
.news-card:nth-child(1) { animation: newsCardIn .55s .08s ease backwards; }
.news-card:nth-child(2) { animation: newsCardIn .55s .14s ease backwards; }
.news-card:nth-child(3) { animation: newsCardIn .55s .20s ease backwards; }
.news-card:nth-child(4) { animation: newsCardIn .55s .26s ease backwards; }
.news-card:nth-child(n+5) { animation: newsCardIn .55s .32s ease backwards; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--news-shadow); }
.news-card__image { height: 220px; display: block; overflow: hidden; background: #37271e; }
.news-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card__image img { transform: scale(1.025); }
.news-card__image.is-placeholder { display: grid; place-items: center; color: rgba(255,255,255,.85); background: radial-gradient(circle at 30% 25%, #a75a2b, #3b281d 65%); text-decoration: none; }
.news-card__image.is-placeholder span { width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 35px rgba(224,154,73,.2), inset 0 0 24px rgba(255,255,255,.05); animation: newsIconFloat 4s ease-in-out infinite; }
.news-card__image.is-placeholder svg { width: 39px; height: 39px; fill: none; stroke: #fff5e3; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 7px rgba(244,190,104,.75)); }
.news-card__content { padding: 21px 22px 23px; }
.news-card__meta { display: flex; justify-content: space-between; gap: 12px; color: #8b7b6c; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.news-card__meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--news-accent); }
.news-card__meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.news-card h3 { margin: 10px 0 9px; font: 700 22px/1.25 Playfair Display, serif; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--news-accent); }
.news-card p { min-height: 65px; margin: 0 0 16px; color: #685d54; }
.news-card__more { color: var(--news-accent); text-decoration: none; font-size: 12px; font-weight: 700; }
.news-card__more span { display: inline-block; margin-left: 4px; transition: transform .15s ease; }
.news-card__more:hover span { transform: translateX(4px); }

.news-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.news-pagination a { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--news-line); border-radius: 9px; color: #5d4e43; background: var(--news-paper); text-decoration: none; font-weight: 600; }
.news-pagination a:hover, .news-pagination a.is-current { color: #fff; border-color: var(--news-accent); background: var(--news-accent); }

.news-article, .news-comments, .news-state-card {
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    background: var(--news-paper);
    box-shadow: var(--news-shadow);
}
.news-back-link { display: inline-block; margin-bottom: 22px; color: var(--news-muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.news-back-link:hover { color: var(--news-accent); }
.news-category-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--news-accent); box-shadow: 0 5px 18px rgba(157,66,31,.24), inset 0 0 12px rgba(255,210,132,.12); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-category-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255,220,155,.8)); }
.news-article > h1 { max-width: 920px; margin: 13px 0 10px; font: 700 clamp(32px, 5vw, 52px)/1.12 Playfair Display, serif; }
.news-article__meta { display: flex; flex-wrap: wrap; gap: 8px; color: #8a7b6d; font-size: 12px; }
.news-article__cover { width: 100%; max-height: 610px; display: block; margin: 28px 0; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 28px rgba(45, 29, 18, .14); }
.news-preview-warning { margin: -16px -16px 24px; padding: 10px 14px; border-radius: 10px; color: #674500; background: #fff0b8; font-weight: 700; text-align: center; }

.news-body { color: #413831; font: 16px/1.8 Inter, Arial, sans-serif; overflow-wrap: anywhere; }
.news-body h2, .news-body h3, .news-body h4 { color: var(--news-ink); font-family: Playfair Display, Georgia, serif; line-height: 1.25; }
.news-body h2 { margin: 1.7em 0 .55em; font-size: 30px; }
.news-body h3 { margin: 1.5em 0 .5em; font-size: 24px; }
.news-body h4 { margin: 1.3em 0 .45em; font-size: 19px; }
.news-body p { margin: 0 0 1.05em; }
.news-body a { color: var(--news-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-body blockquote { margin: 1.5em 0; padding: 15px 20px; border-left: 4px solid var(--news-gold); color: #5c4d40; background: #f8f1e5; }
.news-body ul, .news-body ol { padding-left: 1.5em; }
.news-body li { margin: .35em 0; }
.news-body img, .news-body video { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 10px; }
.news-body figure.news-media, .news-body figure { margin: 1.6em 0; text-align: center; }
.news-body figcaption { margin-top: 8px; color: var(--news-muted); font-size: 12px; font-style: italic; }
.news-video-frame { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 12px; background: #171310; }
.news-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-body iframe { max-width: 100%; }
.news-body table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 14px; }
.news-body th, .news-body td { padding: 9px 11px; border: 1px solid #d7c8b5; text-align: left; }
.news-body th { background: #eee2d1; }
.news-body hr { height: 1px; margin: 2em 0; border: 0; background: var(--news-line); }

.news-comments { margin-top: 22px; padding-top: 30px; }
.news-comments__heading { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--news-line); }
.news-comments__heading > span { min-width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--news-accent); font-weight: 700; }
.news-comments-locked { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed #cdbb9f; border-radius: 13px; background: #f8f2e8; }
.news-comments-locked__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #eadbc4; font-size: 20px; }
.news-comments-locked__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--news-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(157,66,31,.28)); }
.news-comments-locked div { flex: 1; }
.news-comments-locked strong { font-family: Playfair Display, serif; font-size: 18px; }
.news-comments-locked p { margin: 3px 0 0; color: var(--news-muted); }
.news-comment { display: flex; gap: 13px; padding: 17px 0; border-bottom: 1px solid #ebe1d3; }
.news-comment__avatar { flex: 0 0 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #67402b; font-weight: 700; }
.news-comment__content { min-width: 0; flex: 1; }
.news-comment__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--news-muted); font-size: 11px; }
.news-comment__meta strong { color: var(--news-ink); font-size: 13px; }
.news-comment__meta small { color: var(--news-accent); }
.news-comment p { margin: 6px 0 0; white-space: normal; overflow-wrap: anywhere; }
.news-comment-form { margin-top: 22px; padding: 18px; border-radius: 13px; background: #f4ecdf; }
.news-comment-form label { display: block; margin-bottom: 7px; font-weight: 700; }
.news-comment-form textarea { width: 100%; resize: vertical; min-height: 95px; padding: 12px; border: 1px solid #cdbca7; border-radius: 10px; color: var(--news-ink); background: #fff; outline: none; }
.news-comment-form textarea:focus { border-color: var(--news-accent); box-shadow: 0 0 0 3px rgba(157, 66, 31, .12); }
.news-comment-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.news-comment-form small, .news-muted { color: var(--news-muted); }

.news-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: .16s ease;
}
.news-button.is-primary { color: #fff; border-color: var(--news-accent-dark); background: linear-gradient(180deg, #a84b25, #813417); box-shadow: 0 4px 10px rgba(113,48,24,.2); }
.news-button.is-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 7px 22px rgba(157,66,31,.35), 0 0 17px rgba(211,144,66,.2); }
.news-button.is-ghost { color: #5d4d41; border-color: #cdbda7; background: #fffaf2; }
.news-button.is-ghost:hover { border-color: var(--news-accent); color: var(--news-accent); }

.news-alert { margin: 0 0 18px; padding: 12px 15px; border-radius: 10px; font-weight: 600; }
.news-alert.is-success, .news-toast.is-success { color: #24533a; border: 1px solid #9ec7ac; background: #e9f6ec; }
.news-alert.is-error, .news-toast.is-error { color: #7b261e; border: 1px solid #d9a29c; background: #fdecea; }
.news-state-card { text-align: center; }
.news-state-card h1, .news-state-card h2 { margin-top: 0; font-family: Playfair Display, serif; }
.news-state-card code { padding: 2px 5px; border-radius: 4px; background: #ede4d6; }

.news-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100vw - 1380px) / 2)); color: #cdbbaa; background: #2d211b; font-size: 12px; }
.news-footer a { color: #efd09b; text-decoration: none; }

/* Административная часть */
.news-admin-page { width: min(1520px, calc(100% - 34px)); margin: 28px auto 60px; }
.news-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.news-admin-card { min-width: 0; padding: 24px; border: 1px solid var(--news-line); border-radius: var(--news-radius); background: var(--news-paper); box-shadow: var(--news-shadow); }
.news-admin-card--list { position: sticky; top: 92px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; }
.news-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.news-field { display: block; margin-bottom: 16px; }
.news-field--wide { grid-column: 1 / -1; }
.news-field > span { display: block; margin-bottom: 6px; color: #55473d; font-size: 12px; font-weight: 700; }
.news-field input[type="text"], .news-field input[type="file"], .news-field textarea, .news-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cdbda8;
    border-radius: 9px;
    color: var(--news-ink);
    background: #fff;
    outline: none;
}
.news-field input:focus, .news-field textarea:focus, .news-field select:focus { border-color: var(--news-accent); box-shadow: 0 0 0 3px rgba(157,66,31,.1); }
.news-cover-current { display: flex; align-items: center; gap: 15px; margin: 0 0 16px; padding: 10px; border-radius: 10px; background: #f2e9dc; }
.news-cover-current img { width: 110px; height: 65px; border-radius: 7px; object-fit: cover; }
.news-cover-current label { font-size: 12px; }
.news-publish-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--news-line); }
.news-toggle { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.news-toggle input { width: 18px; height: 18px; accent-color: var(--news-accent); }
.news-admin-actions { display: flex; gap: 8px; }

.news-editor { position: relative; overflow: hidden; border: 1px solid #bca98f; border-radius: 11px; background: #fff; }
.news-editor.is-dragging { outline: 4px solid rgba(157,66,31,.18); }
.news-editor.is-uploading::after { content: 'Загрузка файла…'; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; color: #fff; background: rgba(43,30,22,.78); font-weight: 700; }
.news-editor__toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 8px; border-bottom: 1px solid #d5c6b1; background: linear-gradient(#f8f2e8, #eee3d3); }
.news-editor__toolbar button, .news-editor__toolbar select { min-height: 31px; padding: 5px 8px; border: 1px solid #c8b69d; border-radius: 6px; color: #44362c; background: #fffdf8; cursor: pointer; font-size: 11px; }
.news-editor__toolbar button:hover { color: var(--news-accent); border-color: var(--news-accent); background: #fff; }
.news-editor__toolbar input[type="color"] { width: 31px; height: 31px; padding: 2px; border: 1px solid #c8b69d; border-radius: 6px; background: #fff; cursor: pointer; }
.news-editor__separator { width: 1px; height: 25px; margin: 0 3px; background: #cbbba5; }
.news-editor__status { padding: 5px 10px; color: #75685d; background: #faf6ef; font-size: 10px; }
.news-editor__surface, .news-editor__source { width: 100%; min-height: 520px; max-height: 72vh; overflow: auto; padding: 24px; border: 0; outline: 0; background: #fff; }
.news-editor__surface:empty::before { content: 'Начните писать статью…'; color: #aaa097; }
.news-editor__source { resize: vertical; color: #e8e8e8; background: #202020; font: 13px/1.55 Consolas, monospace; }
.news-editor.is-fullscreen { position: fixed; inset: 10px; z-index: 1000; border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.72); }
.news-editor.is-fullscreen .news-editor__surface, .news-editor.is-fullscreen .news-editor__source { max-height: calc(100vh - 110px); height: calc(100vh - 110px); }

.news-admin-list { overflow: auto; padding-right: 5px; }
.news-admin-list__item { padding: 14px 0; border-bottom: 1px solid #e7ddcf; }
.news-admin-list__item:first-child { padding-top: 0; }
.news-admin-list__meta { display: flex; justify-content: space-between; gap: 10px; color: #8b7d70; font-size: 9px; text-transform: uppercase; }
.news-admin-list__item h3 { margin: 6px 0 8px; font: 600 16px/1.3 Playfair Display, serif; }
.news-admin-list__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.news-admin-list__actions a, .news-link-button { padding: 0; border: 0; color: var(--news-accent); background: none; cursor: pointer; text-decoration: none; }
.news-link-button.is-danger { color: #a32d25; }
.news-status { padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.news-status.is-live { color: #28543b; background: #dff1e5; }
.news-status.is-draft { color: #735d2c; background: #f5eac9; }

.news-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.news-modal__backdrop { position: absolute; inset: 0; background: rgba(29,20,15,.76); backdrop-filter: blur(4px); }
.news-modal__dialog { position: relative; z-index: 1; width: min(980px, 96vw); max-height: 92vh; overflow: auto; }
.news-modal__close { position: absolute; top: 15px; right: 15px; width: 37px; height: 37px; border: 0; border-radius: 50%; color: #fff; background: #7b321b; cursor: pointer; font-size: 24px; }
.news-modal-open { overflow: hidden; }
.news-toast { position: fixed; top: 84px; right: 18px; z-index: 3000; max-width: min(420px, calc(100vw - 36px)); padding: 12px 15px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-weight: 700; }

@keyframes newsReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes newsCardIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes newsIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes newsEmblemGlow {
    0%, 100% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), 0 4px 13px rgba(0,0,0,.25), 0 0 0 rgba(212,145,67,0); }
    50% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.1), 0 4px 13px rgba(0,0,0,.25), 0 0 18px rgba(212,145,67,.38); }
}
@keyframes newsAurora {
    from { transform: translate3d(-20px,-15px,0) scale(.94); }
    to { transform: translate3d(35px,30px,0) scale(1.08); }
}
@keyframes newsOrbit {
    from { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(180deg) translateX(12px); }
    to { transform: rotate(360deg) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1100px) {
    .news-admin-grid { grid-template-columns: 1fr; }
    .news-admin-card--list { position: static; max-height: none; }
    .news-card__image { height: 190px; }
}

@media (max-width: 820px) {
    .news-topbar { position: static; align-items: flex-start; padding: 12px 16px; }
    .news-topbar__nav { gap: 2px; }
    .news-topbar__nav a, .news-user-chip { padding: 6px 8px; }
    .news-hero { min-height: 200px; padding: 38px 20px; }
    .news-layout { width: min(100% - 24px, 720px); grid-template-columns: 1fr; margin-top: 18px; }
    .news-sidebar { position: static; display: flex; gap: 5px; overflow-x: auto; border-radius: 12px; }
    .news-sidebar__title, .news-sidebar__note { display: none; }
    .news-category-link { min-width: max-content; margin: 0; }
    .news-card-grid { grid-template-columns: 1fr; }
    .news-comments-locked { align-items: flex-start; flex-wrap: wrap; }
    .news-comments-locked .news-button { width: 100%; }
}

@media (max-width: 560px) {
    .news-topbar { display: block; }
    .news-topbar__nav { justify-content: flex-start; margin-top: 10px; }
    .news-brand strong { font-size: 16px; }
    .news-article, .news-comments, .news-state-card, .news-admin-card { padding: 20px 16px; border-radius: 13px; }
    .news-form-grid { grid-template-columns: 1fr; }
    .news-field--wide { grid-column: auto; }
    .news-publish-row, .news-feed-heading, .news-section-heading { align-items: stretch; flex-direction: column; }
    .news-admin-actions { width: 100%; }
    .news-admin-actions .news-button { flex: 1; }
    .news-editor__surface, .news-editor__source { min-height: 390px; padding: 16px; }
    .news-editor__separator { display: none; }
    .news-comment__meta { display: block; }
    .news-comment-form > div { align-items: stretch; flex-direction: column; }
    .news-footer { align-items: flex-start; flex-direction: column; }
}
