@charset "UTF-8";

:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-raised: #f4effa;
    --surface-soft: #faf8fd;
    --text: #271c34;
    --muted: #695d77;
    --subtle: #7a6a88;
    --accent: #8051bf;
    --accent-bright: #7040af;
    --accent-deep: #6832ad;
    --line: #e8e1ef;
    --line-strong: #d0c1df;
    --success: #176b4b;
    --warning: #85600e;
    --danger: #b72443;
    --radius: 18px;
    --shadow: 0 18px 50px rgb(56 28 82 / 9%);
    --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --editorial-font: Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #100b19;
    --surface: #191222;
    --surface-raised: #21182e;
    --surface-soft: #160f20;
    --text: #f3eef9;
    --muted: #b4a9c4;
    --subtle: #8e809f;
    --accent: #af85f8;
    --accent-bright: #c6a5ff;
    --accent-deep: #7742d0;
    --line: #30253e;
    --line-strong: #4a395f;
    --success: #8ddab8;
    --warning: #e8c681;
    --danger: #f3a2b2;
    --shadow: 0 18px 50px rgb(0 0 0 / 14%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-size: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
svg { flex-shrink: 0; }
button svg, .icon-button svg { width: 21px; height: 21px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.035em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.18rem; }
strong { font-weight: 650; }
small { font-size: .79rem; }
ul, ol { padding-left: 1.35em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }
::selection { background: #8353c5; color: #fff; }
::placeholder { color: #94879f; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 150; left: 16px; top: 10px; padding: 12px 20px; background: var(--accent-bright); color: var(--bg); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.preserve-lines { white-space: pre-line; }
.eyebrow { display: block; color: var(--accent-bright); font-size: .68rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; margin: 0 9px 3px 0; background: currentColor; }
.brand-dot { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; background: var(--accent-bright); color: #211135; font-weight: 650; font-size: .87rem; line-height: 1.3; text-align: center; transition: background .18s, border-color .18s, color .18s; }
.button:hover { background: #d7bdff; }
.button-secondary { background: var(--surface-raised); border-color: var(--line-strong); color: var(--text); }
.button-secondary:hover { background: #30223f; border-color: #7a5a9d; }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover { background: var(--surface-raised); color: var(--text); }
.button-danger { background: transparent; border-color: #6d3949; color: var(--danger); }
.button-danger:hover { background: #3c1d2b; border-color: #af6479; }
.button-small { min-height: 38px; padding: 9px 14px; font-size: .77rem; border-radius: 8px; }
.button:disabled { opacity: .6; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button-row.right { justify-content: flex-end; }
.text-link, .read-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-bright); font-size: .84rem; font-weight: 600; }
.text-link:hover, .read-link:hover { color: #e1ceff; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: .8rem; }
.text-button:hover { color: var(--text); }
.text-danger { color: var(--danger); }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; padding: 0; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 10px; }
.icon-button:hover { background: var(--surface-raised); border-color: var(--line-strong); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-header h2, .card h2 { font-size: 1.08rem; letter-spacing: -.02em; }
.card-header p, .card-intro { margin-top: 5px; font-size: .84rem; color: var(--muted); }
.card-body { padding-top: 20px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-small { display: flex; flex-direction: column; gap: 10px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 9px; border: 1px solid #49365f; border-radius: 6px; background: #2b1e3b; color: #d3b8fc; font-size: .68rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge-success, .badge-published, .badge-completed, .badge-active { background: #16372c; border-color: #2a5945; color: var(--success); }
.badge-warning, .badge-review, .badge-scheduled, .badge-pending, .badge-processing { background: #372c1b; border-color: #5b4930; color: var(--warning); }
.badge-error, .badge-failed { background: #3b1d2a; border-color: #66394a; color: var(--danger); }
.badge-draft, .badge-archived, .badge-inactive { background: #292231; border-color: #493e56; color: #c0b4cd; }
.alert { padding: 16px 20px; margin-bottom: 22px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: .88rem; background: var(--surface-raised); }
.alert ul { margin: 8px 0 0; }
.alert-success { background: #142b23; border-color: #2c5543; color: #b6e9cf; }
.alert-error { background: #331a26; border-color: #714253; color: #fac3cf; }
.alert-info { background: #221a32; border-color: #4b3a67; color: #dbcaef; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { display: block; color: var(--text); font-weight: 600; font-size: .81rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .search-form input, .filter-form input, .filter-form select, .input { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: #120d1c; line-height: 1.5; outline-offset: 2px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:read-only { color: var(--muted); background: #1b1424; }
.field input[type="file"] { padding: 9px; font-size: .8rem; cursor: pointer; }
.field input[type="file"]::file-selector-button { padding: 8px 12px; border: 0; border-radius: 5px; color: var(--text); background: #38264d; margin-right: 12px; cursor: pointer; }
.field small, .field-help { color: var(--muted); font-size: .76rem; line-height: 1.55; }
.field-error { color: var(--danger); font-size: .78rem; }
.field textarea.editor-textarea { min-height: 440px; font: .91rem/1.85 var(--font); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: .83rem; cursor: pointer; }
.checkbox input { margin: 3px 0 0; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); }
.checkbox small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.review-check { padding: 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: #21172f; }
.field-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field-heading label { font-size: .81rem; font-weight: 600; }
.divider { height: 1px; border: 0; background: var(--line); margin: 4px 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 52px 24px; text-align: center; }
.empty-state p { max-width: 520px; color: var(--muted); font-size: .9rem; }
.empty-state h2, .empty-state h3 { font-size: 1.25rem; }
.empty-state .button { margin-top: 5px; }
.empty-symbol { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line-strong); border-radius: 16px; background: #261a37; color: var(--accent); font-size: 1.5rem; }
.empty-symbol svg { width: 27px; height: 27px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; font-size: .8rem; }
.pagination a, .pagination > span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.pagination a:hover { background: var(--surface-raised); border-color: var(--line-strong); }
.pagination .active, .pagination [aria-current="page"] { background: var(--accent-bright); color: #251735; border-color: var(--accent-bright); }
.pagination [aria-disabled="true"], .pagination .disabled { opacity: .45; }
.pagination-summary { width: 100%; text-align: center; color: var(--muted); margin-top: 5px; }

/* Public pages */
.public-body { background-image: radial-gradient(ellipse at 78% 0, #201132 0, transparent 550px); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(16 11 25 / 95%); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 85px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font: 600 1.6rem/1 var(--editorial-font); letter-spacing: -.055em; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.desktop-nav { display: flex; gap: 25px; align-items: center; margin-left: auto; }
.desktop-nav a { font-size: .8rem; font-weight: 500; color: var(--muted); padding-block: 30px; }
.desktop-nav a:hover, .desktop-nav .active { color: var(--accent-bright); }
.desktop-nav .active { box-shadow: inset 0 -2px var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-button, .admin-menu-button { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 20px 0; background: var(--surface-soft); }
.search-form { display: flex; gap: 10px; align-items: stretch; }
.search-form input { min-width: 0; }
.search-form .button { flex-shrink: 0; }
.mobile-menu { padding-block: 8px 20px; }
.mobile-menu a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hero-section { padding-top: 28px; }
.hero { position: relative; display: flex; align-items: center; min-height: 450px; overflow: hidden; border: 1px solid #3a2750; border-radius: 22px; background: #1c102e; isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -3; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #160e23 0%, rgb(22 14 35 / 97%) 21%, rgb(22 14 35 / 80%) 42%, rgb(22 14 35 / 5%) 76%); }
.hero-content { width: min(620px, 60%); padding: 55px 54px; }
.hero h1 { margin-top: 13px; font: 500 clamp(3.2rem, 6vw, 5.3rem)/1.1 var(--editorial-font); letter-spacing: -.055em; }
.hero-content > p { margin-top: 22px; max-width: 410px; font-size: 1.03rem; line-height: 1.7; color: #d2c6df; }
.hero-content .button-row { margin-top: 30px; gap: 8px; }
.section-block { margin-top: 58px; margin-bottom: 58px; }
.section-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { font-size: 1.7rem; font-weight: 650; }
.section-heading .text-link { flex-shrink: 0; }
.section-line { height: 1px; background: var(--line); flex: 1; margin-top: 20px; }
.category-pills { display: flex; gap: 9px; overflow-x: auto; padding: 0 0 12px; margin-bottom: 20px; scrollbar-width: thin; }
.category-pill { padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.category-pill:hover { border-color: var(--line-strong); color: var(--text); }
.category-pill.active { background: #2d1d43; border-color: #65488b; color: #d7baff; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .18s; }
.article-card:hover { border-color: #594372; }
.article-card-image { display: block; overflow: hidden; aspect-ratio: 16/10; background: #22142f; }
.article-card-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.article-card:hover .article-card-image > img { transform: scale(1.025); }
.article-cover-placeholder { height: 100%; display: grid; place-items: center; background: radial-gradient(ellipse, #45276b 0%, #1b1129 68%); }
.article-cover-placeholder img { width: 100px; height: 100px; object-fit: contain; opacity: .7; }
.article-card-body { padding: 23px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; font-size: .68rem; color: var(--muted); }
.category-label { color: var(--accent-bright); font-size: .68rem; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.category-label:hover { color: #e1ceff; }
.article-card h3 { font-size: 1.17rem; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.article-card h3 a:hover { color: var(--accent-bright); }
.article-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font-size: .82rem; line-height: 1.75; color: var(--muted); }
.article-card .read-link { margin-top: 21px; font-size: .77rem; }
.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: stretch; }
.featured-grid .article-card:first-child { grid-row: span 2; }
.featured-grid .article-card:first-child .article-card-image { aspect-ratio: 16/8.3; }
.featured-grid .article-card:first-child h3 { font-size: 1.55rem; }
.featured-grid .article-card:not(:first-child) { display: grid; grid-template-columns: 37% 1fr; }
.featured-grid .article-card:not(:first-child) .article-card-image { height: 100%; aspect-ratio: auto; }
.featured-grid .article-card:not(:first-child) .article-card-body { padding: 20px; }
.featured-grid .article-card:not(:first-child) h3 { font-size: 1.05rem; }
.featured-grid .article-card:not(:first-child) p { -webkit-line-clamp: 2; }
.public-empty { min-height: 370px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 50% 10%, #2c1a40 0, var(--surface) 65%); gap: 17px; }
.public-empty .empty-portal { width: 82px; height: 82px; object-fit: contain; margin-bottom: 2px; }
.public-empty h3 { font: 500 clamp(1.8rem, 3vw, 2.45rem)/1.25 var(--editorial-font); letter-spacing: -.03em; }
.public-empty p { max-width: 460px; line-height: 1.8; }
.public-empty.compact { min-height: 320px; }
.public-empty.compact h2 { font-size: 1.5rem; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.offer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.offer-image { height: 215px; background: #23182e; }
.offer-image img { height: 100%; width: 100%; object-fit: contain; padding: 15px; }
.offer-placeholder { display: grid; place-items: center; color: #9871c5; }
.offer-body { padding: 23px; gap: 13px; }
.offer-body .article-meta { margin-bottom: 0; }
.offer-body p { font-size: .83rem; }
.offer-body .button { margin-top: 4px; }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.offer-price strong { font-size: 1.4rem; color: var(--text); }
.offer-price del { font-size: .8rem; color: var(--muted); }
.coupon-button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; background: #1e1628; border: 1px dashed #5c4775; border-radius: 8px; color: var(--muted); font-size: .78rem; }
.coupon-button strong { color: var(--text); margin-left: 4px; }
.coupon-button [data-copy-label] { color: var(--accent-bright); font-weight: 600; }
.affiliate-note { color: var(--subtle); font-size: .72rem; }
.partner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.partner-strip a { display: grid; place-items: center; min-height: 110px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.partner-strip img { width: auto; max-width: 150px; max-height: 70px; object-fit: contain; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.partner-card { display: flex; flex-direction: column; gap: 18px; }
.partner-card p { font-size: .88rem; }
.partner-card .text-link { margin-top: auto; }
.partner-logo { display: grid; place-items: center; height: 130px; padding: 10px; border-bottom: 1px solid var(--line); }
.partner-logo img { width: auto; max-width: 210px; height: auto; max-height: 100px; object-fit: contain; }
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; border: 1px solid #4a3263; border-radius: 18px; background: linear-gradient(110deg, #281939, #1c1329); }
.support-banner h2 { margin: 8px 0 9px; font: 500 1.9rem/1.3 var(--editorial-font); }
.support-banner p { color: var(--muted); font-size: .85rem; }
.support-banner .button { flex-shrink: 0; }
.site-footer { margin-top: 70px; background: #0c0812; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.65fr 1fr 1fr 1fr; gap: 40px; padding-block: 50px 42px; }
.footer-brand p { max-width: 270px; margin-top: 18px; font-size: .8rem; line-height: 1.8; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: .8rem; color: var(--muted); }
.footer-column h2 { margin-bottom: 3px; color: var(--text); font-size: .82rem; letter-spacing: 0; }
.footer-column a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .72rem; }
.footer-bottom > div { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--text); }
.page-intro { padding-top: 42px; }
.page-intro .eyebrow { margin: 36px 0 12px; }
.page-intro h1 { font-family: var(--editorial-font); font-weight: 500; }
.page-intro > p { margin-top: 18px; max-width: 710px; color: var(--muted); line-height: 1.8; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--subtle); font-size: .72rem; }
.breadcrumbs a:hover { color: var(--accent-bright); }
.page-search { max-width: 650px; margin-top: 28px; }
.article-page { padding-top: 38px; }
.article-header { max-width: 950px; margin-top: 37px; }
.article-header h1 { margin-top: 16px; font: 500 clamp(2.1rem, 4.5vw, 3.5rem)/1.2 var(--editorial-font); letter-spacing: -.032em; }
.article-deck { margin-top: 22px; color: #c9bed8; max-width: 850px; font-size: 1.15rem; line-height: 1.7; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 25px; color: var(--muted); font-size: .77rem; }
.article-byline strong { color: var(--text); }
.article-updated { margin-top: 8px; color: var(--muted); font-size: .74rem; }
.article-cover { margin-top: 35px; border-radius: 16px; overflow: hidden; background: var(--surface); }
.article-cover img { display: block; width: 100%; max-height: 650px; object-fit: cover; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(230px, 1fr); gap: 65px; margin-top: 40px; }
.reading-column { min-width: 0; }
.prose { overflow-wrap: anywhere; color: #dfd7ea; font-size: 1.04rem; line-height: 1.95; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; color: var(--text); line-height: 1.35; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: #e1ceff; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 16px 24px; border-left: 3px solid var(--accent); background: #21172e; border-radius: 0 10px 10px 0; color: #dccbf0; }
.prose li + li { margin-top: .5em; }
.prose code { padding: 2px 6px; background: #2c203b; border-radius: 4px; font-size: .86em; }
.prose pre { max-width: 100%; padding: 18px; overflow-x: auto; background: #0b0810; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; }
.prose pre code { padding: 0; background: transparent; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .88rem; }
.prose th, .prose td { padding: 11px 15px; border: 1px solid var(--line-strong); text-align: left; }
.prose img { border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 32px; }
.article-attachments, .article-links { margin-top: 34px; }
.article-attachment-image { overflow: hidden; }
.article-attachment-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article-attachment-image figcaption, .article-attachment-video figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.article-attachment-video video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #0b0810; border-radius: 12px; }
.article-attachment-video figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; }
.article-attachment-video figcaption .text-link { font-size: .78rem; }
.document-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.document-icon { display: grid; place-items: center; width: 44px; height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--accent-bright); background: var(--surface-raised); }
.document-icon svg { width: 26px; height: 26px; }
.document-card h2 { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.document-card p { margin-top: 5px; font-size: .77rem; color: var(--muted); }
.external-link-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.embed-placeholder { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 32px 24px; text-align: center; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.embed-placeholder > strong { font-size: 1rem; }
.embed-placeholder p { max-width: 440px; font-size: .8rem; line-height: 1.7; color: var(--muted); }
.embed-symbol { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised); color: var(--accent-bright); }
.embed-symbol svg { width: 26px; height: 26px; }
.embed-mount { width: 100%; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.embed-mount iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: var(--surface); }
.embed-mount-instagram iframe { min-height: 650px; aspect-ratio: auto; }
.external-link-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.external-link-body h2 { font-size: 1.2rem; line-height: 1.4; overflow-wrap: anywhere; }
.external-link-body > p { font-size: .9rem; line-height: 1.75; color: var(--muted); }
.external-link-body > .embed-fallback-note { font-size: .72rem; line-height: 1.65; }
.source-note { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; padding: 21px 24px; background: #21172d; border: 1px solid var(--line-strong); border-radius: 12px; font-size: .85rem; overflow-wrap: anywhere; }
.source-note a:hover { color: var(--accent-bright); }
.article-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8rem; }
.article-share > span { margin-right: auto; color: var(--muted); }
.support-mini { position: sticky; top: 115px; padding: 24px; }
.support-mini h2 { margin-top: 18px; font: 500 1.4rem/1.35 var(--editorial-font); }
.support-mini p { margin-top: 14px; font-size: .83rem; }
.support-mini .text-link { margin-top: 22px; }
.institutional-page { padding: 34px 38px; }
.support-page { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 48px; text-align: center; }
.support-page h2 { font: 500 1.8rem/1.3 var(--editorial-font); }
.support-page p { max-width: 520px; }

/* Administrative pages */
.admin-body { background: #100c17; font-size: 14px; }
.admin-sidebar { position: fixed; z-index: 65; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; background: #130c1e; border-right: 1px solid var(--line); }
.admin-brand { padding: 30px 23px 24px; font-size: 1.55rem; }
.admin-brand small { display: block; margin-top: 8px; color: var(--subtle); font: 400 .65rem/1 var(--font); letter-spacing: .025em; }
.admin-navigation { padding: 6px 15px 22px; overflow-y: auto; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 24px; }
.nav-group-label { display: block; margin: 0 13px 7px; color: #9583a7; font-size: .61rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 10px 12px; border-radius: 8px; color: #b9acc9; font-size: .78rem; margin-top: 3px; }
.nav-item:hover { color: var(--text); background: #21162d; }
.nav-item.active { color: #decbff; background: #312044; box-shadow: inset 2px 0 #ac78ee; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: #a992c5; }
.nav-item.active .nav-icon { color: #c6a1f7; }
.admin-account { display: flex; align-items: center; gap: 10px; padding: 20px 19px; margin-top: auto; border-top: 1px solid var(--line); }
.account-avatar { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border-radius: 10px; color: #ddc8fb; background: #39234f; font-size: .8rem; font-weight: 650; }
.admin-account > div { min-width: 0; flex: 1; }
.admin-account strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.admin-account > div > span { display: block; color: var(--subtle); font-size: .63rem; }
.admin-account form { flex-shrink: 0; }
.admin-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 18px; min-height: 98px; padding: 21px 38px; background: #140e1d; border-bottom: 1px solid var(--line); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title .eyebrow { color: var(--subtle); font-size: .58rem; margin-bottom: 7px; }
.topbar-title h1 { font-size: 1.42rem; letter-spacing: -.03em; }
.admin-content { flex: 1; padding: 32px 38px 48px; width: 100%; max-width: 1600px; margin-inline: auto; }
.admin-footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 38px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .65rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading h2 { font-size: 1.25rem; }
.page-heading p { color: var(--muted); font-size: .83rem; margin-top: 7px; }
.page-heading .button-row { flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { position: relative; padding: 21px 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #20162d, #181020); overflow: hidden; }
.stat-label { display: block; color: var(--muted); font-size: .76rem; }
.stat-number { display: block; margin-top: 12px; font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.06em; }
.stat-card .nav-icon { position: absolute; right: 20px; bottom: 24px; width: 25px; height: 25px; color: #78549a; }
.stat-card a { display: inline-flex; gap: 6px; margin-top: 15px; color: var(--accent-bright); font-size: .66rem; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.dashboard-welcome { position: relative; display: flex; align-items: center; gap: 22px; padding: 28px; margin-bottom: 26px; border: 1px solid #4d3266; border-radius: 17px; background: linear-gradient(110deg, #2a193b, #191021); }
.dashboard-welcome img { width: 65px; height: 65px; object-fit: contain; }
.dashboard-welcome h2 { font: 500 1.75rem/1.25 var(--editorial-font); }
.dashboard-welcome p { color: #c1b2d0; margin-top: 8px; font-size: .85rem; }
.dashboard-welcome .button-row { margin-left: auto; flex-shrink: 0; }
.table-card { padding: 0; overflow: hidden; }
.table-card > .card-header { padding: 23px 25px 0; }
.table-card > .pagination { padding: 0 22px 23px; margin-top: 23px; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8rem; }
.table th { padding: 13px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #17101f; color: #a493b7; font-size: .63rem; font-weight: 650; text-transform: uppercase; letter-spacing: .075em; white-space: nowrap; }
.table td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgb(96 64 126 / 5%); }
.table .title-cell { min-width: 230px; max-width: 440px; }
.table .title-cell a { display: block; color: var(--text); font-weight: 600; line-height: 1.5; }
.table .title-cell a:hover { color: var(--accent-bright); }
.table .title-cell small { display: block; color: var(--muted); margin-top: 6px; font-size: .68rem; font-weight: 400; }
.table .table-date { white-space: nowrap; color: var(--muted); font-size: .72rem; }
.table-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: .73rem; }
.table-actions a { color: var(--accent-bright); }
.table-actions .text-button { font-size: .73rem; }
.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #251831; }
.table-entity { display: flex; gap: 14px; align-items: center; }
.table-entity > div { min-width: 0; }
.filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.filter-form input { max-width: 370px; flex: 1 1 220px; min-width: 0; }
.filter-form select { width: auto; min-width: 165px; }
.filter-form .button { min-height: 45px; }
.article-filter-form { padding: 22px; }
.article-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.article-filter-search { grid-column: span 2; }
.article-filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.article-filter-actions > .field-help { max-width: 530px; }
.article-filter-actions > .button-row { flex-shrink: 0; }
.article-filter-status { min-height: 22px; margin: 10px 3px 12px; color: var(--muted); font-size: .78rem; }
.article-filter-status.is-loading { color: var(--accent-bright); }
.article-filter-status.is-error { color: var(--danger); }
.article-results { scroll-margin-top: 25px; transition: opacity .15s; }
.article-results[aria-busy="true"] { opacity: .65; }
.article-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; }
.article-results-heading h2 { display: flex; align-items: center; gap: 10px; }
.article-results-heading h2 > span { padding: 3px 8px; border-radius: 6px; font-size: .75rem; color: var(--accent-bright); background: var(--surface-raised); }
.article-results-heading p { color: var(--muted); font-size: .74rem; }
.article-management-table { font-size: .77rem; }
.article-management-table th, .article-management-table td { padding-inline: 16px; }
.article-list-title-cell { min-width: 245px; max-width: 420px; }
.article-list-entity { display: flex; align-items: center; gap: 13px; }
.article-list-entity > div { min-width: 0; }
.article-list-thumbnail { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 56px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--accent-bright); background: var(--surface-raised); }
.article-list-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.article-list-thumbnail svg { width: 25px; height: 25px; }
.article-list-title { display: block; color: var(--text); font-weight: 600; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.article-list-title:hover { color: var(--accent-bright); }
.article-list-entity small { display: block; margin-top: 5px; font-size: .67rem; color: var(--muted); line-height: 1.5; }
.article-actor-cell { min-width: 145px; max-width: 210px; font-size: .72rem; }
.article-actor-cell time, .article-actor-cell > strong, .article-actor-cell small { display: block; }
.article-actor-cell time { white-space: nowrap; }
.article-actor-cell small { margin-top: 4px; font-size: .67rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.article-history-link { display: inline-block; margin-top: 8px; color: var(--accent-bright); font-size: .7rem; }
.article-list-actions-cell .table-actions { flex-wrap: wrap; gap: 9px 14px; min-width: 92px; max-width: 155px; }
.article-mobile-label { display: none; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.form-layout > .stack { min-width: 0; }
.form-aside { position: sticky; top: 24px; }
.editor-help { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.75; }
.attachment-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 380px; overflow-y: auto; padding: 4px; }
.attachment-option { display: grid; grid-template-columns: 18px 48px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface-soft); }
.attachment-option:has(input:checked) { border-color: var(--accent); background: var(--surface-raised); }
.attachment-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.attachment-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; background: var(--surface-raised); color: var(--accent-bright); overflow: hidden; }
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.attachment-thumb svg { width: 26px; height: 26px; }
.attachment-label { min-width: 0; }
.attachment-label strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .76rem; line-height: 1.5; }
.attachment-label small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.article-link-fields { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.article-link-fields legend { padding-inline: 6px; color: var(--text); font-weight: 600; font-size: .79rem; }
.article-link-fields .field textarea { min-height: 80px; }
.link-row-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.revision-summary { display: inline-flex; width: calc(100% - 22px); justify-content: space-between; align-items: flex-start; gap: 18px; vertical-align: top; }
.revision-summary > span:first-child { min-width: 0; }
.revision-summary strong { display: block; overflow-wrap: anywhere; font-size: .94rem; }
.revision-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 9px; color: var(--muted); font-size: .74rem; font-weight: 400; }
.revision-details > .stack { padding-top: 20px; border-top: 1px solid var(--line); }
.revision-details h3 { font-size: .87rem; }
.revision-body { max-height: 580px; margin: 0; padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-soft); white-space: pre-wrap; overflow-wrap: anywhere; font: .86rem/1.9 var(--font); }
.revision-link { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.revision-url { overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions .muted { margin-right: auto; font-size: .76rem; }
.details-section > summary { cursor: pointer; color: var(--text); font-size: .83rem; font-weight: 600; }
.details-section[open] > summary { margin-bottom: 22px; }
.preview-image { display: block; max-height: 160px; max-width: 100%; margin-top: 12px; border-radius: 9px; object-fit: contain; }
.category-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.category-edit-row { padding: 22px; border-bottom: 1px solid var(--line); }
.category-edit-row:last-child { border-bottom: 0; }
.category-edit-row .row-actions { display: flex; gap: 15px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.media-upload-card { margin-bottom: 26px; }
.media-upload-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.media-upload-actions { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 22px; }
.media-upload-actions .checkbox { max-width: 630px; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.media-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; }
.media-preview { height: 180px; display: grid; place-items: center; background: #120d1a; border-bottom: 1px solid var(--line); color: var(--accent); }
.media-preview img { width: 100%; height: 100%; object-fit: contain; }
.media-preview .file-kind { text-align: center; }
.file-kind svg { display: block; width: 40px; height: 40px; margin: 0 auto 8px; }
.file-kind span { font-size: .7rem; }
.media-info { padding: 19px; }
.media-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; font-weight: 600; }
.media-info > small { display: block; margin-top: 6px; color: var(--muted); font-size: .67rem; }
.media-info details { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.media-info details summary { color: var(--accent-bright); font-size: .74rem; cursor: pointer; }
.media-info details form { margin-top: 12px; }
.media-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; font-size: .72rem; }
.media-card-actions a { color: var(--accent-bright); }
.media-card-actions .text-button { font-size: .72rem; }
.media-delivery-state { margin-top: 10px; }
.media-retry-form { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.media-retry-form .text-button { color: var(--accent-bright); font-size: .72rem; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 24px; margin-bottom: 27px; }
.steps-list { display: flex; flex-direction: column; gap: 21px; padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps-list li { display: flex; gap: 13px; counter-increment: steps; }
.steps-list li::before { content: counter(steps); display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #5a3e78; border-radius: 8px; background: #2c1c3e; color: #d5b8fc; font-size: .73rem; font-weight: 650; }
.steps-list strong { display: block; font-size: .81rem; }
.steps-list p { color: var(--muted); font-size: .77rem; line-height: 1.7; margin-top: 5px; }
.import-error { display: block; margin-top: 7px; max-width: 380px; color: var(--danger); font-size: .71rem; line-height: 1.6; overflow-wrap: anywhere; }
.import-note-divider { margin-top: 23px; margin-bottom: 18px; }
.import-note { font-size: .78rem; }
.table-subline { display: block; margin-top: 5px; }
.preview-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.preview-notice p { margin-top: 5px; font-size: .8rem; }
.auth-frame { width: min(100%, 470px); }
.auth-frame .auth-card { width: 100%; }
.auth-eyebrow { margin: 0 0 14px; font-size: .6rem; }
.auth-alert { margin-top: 22px; margin-bottom: 25px; font-size: .8rem; }
.auth-card .auth-help-link { font-size: .71rem; }
.auth-card > p { line-height: 1.8; font-size: .85rem; }
.auth-form-link { display: block; color: var(--accent-bright); text-align: center; font-size: .8rem; }
.auth-secondary-form { margin-top: 23px; text-align: center; }
.auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 13px; padding: 20px 5px; color: var(--subtle); font-size: .69rem; }
.auth-footer a { color: var(--muted); }
.auth-footer a:hover { color: var(--accent-bright); }
.auth-recovery { margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--line); }
.auth-recovery summary { color: var(--accent-bright); font-size: .82rem; cursor: pointer; }
.auth-recovery > p { font-size: .79rem; line-height: 1.8; margin: 16px 0 19px; }
.field input.otp-input { max-width: 240px; text-align: center; font-size: 1.4rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.settings-privacy-note { border-top: 1px solid var(--line); padding-top: 17px; color: #c9b4df; font-size: .8rem; line-height: 1.75; }
.security-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; align-items: start; }
.security-card-heading { display: flex; gap: 15px; align-items: flex-start; }
.security-card-heading p { margin-top: 8px; font-size: .8rem; line-height: 1.7; }
.security-icon { display: grid; flex-shrink: 0; place-items: center; width: 43px; height: 43px; border: 1px solid #563c72; border-radius: 12px; background: #2d1b40; }
.security-icon .nav-icon { width: 24px; height: 24px; color: #c9a9f2; }
.security-state { padding: 19px; border: 1px solid #2b5343; border-radius: 11px; background: #14271f; }
.security-state p { margin-top: 13px; color: #b5d5c6; font-size: .82rem; line-height: 1.75; }
.qr-code { align-self: center; max-width: 100%; width: fit-content; padding: 18px; background: #fff; border-radius: 13px; }
.qr-code svg { display: block; width: min(224px, 100%); height: auto; }
.setup-key-details { border: 1px solid var(--line-strong); border-radius: 10px; padding: 15px; }
.setup-key-details p { font-size: .79rem; line-height: 1.7; }
.setup-key { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #100b17; overflow-wrap: anywhere; word-break: break-all; font-size: .82rem; line-height: 1.9; letter-spacing: .05em; }
.recovery-details { padding: 18px; border: 1px solid var(--line-strong); border-radius: 11px; background: #15101d; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.recovery-code-grid li { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #21182c; text-align: center; }
.recovery-code-grid code { font-size: .78rem; overflow-wrap: anywhere; }
.recovery-details .button { margin-top: 15px; }
.security-reset-card { border-color: #583243; }
.security-layout > .stack > .card > p { font-size: .82rem; line-height: 1.75; }
.pagination .pagination-ellipsis { border-color: transparent; padding-inline: 2px; min-width: 20px; color: var(--subtle); }
.category-permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-permission { padding: 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: #171020; }
.category-permission:has(input:checked) { border-color: #8e65bd; background: #2b1c3d; }
.badge-fit { align-self: flex-start; }
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.recent-item:first-child { padding-top: 0; }
.recent-item:last-child { padding-bottom: 0; border-bottom: 0; }
.recent-item strong { display: block; font-size: .78rem; line-height: 1.5; }
.recent-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .67rem; }
.recent-item .badge { flex-shrink: 0; }
.note-card { font-size: .82rem; }
.note-card h2 { margin-bottom: 10px; }
.note-card .text-link { margin-top: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.auth-shell, .auth-page { display: grid; min-height: 100vh; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 50% 0, #392151, #100b19 65%); }
.auth-card { width: min(100%, 460px); padding: 35px; border: 1px solid var(--line-strong); border-radius: 20px; background: #191222; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 12px; }
.auth-card > p { color: var(--muted); margin-bottom: 24px; }
.auth-card .brand { margin-bottom: 30px; }
.auth-card .button { width: 100%; }
.auth-card .field + .field { margin-top: 18px; }
.drawer-overlay { position: fixed; inset: 0; z-index: 60; border: 0; background: rgb(5 3 10 / 75%); backdrop-filter: blur(3px); }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 120; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 13px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: #312044; color: var(--text); box-shadow: var(--shadow); font-size: .83rem; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
.auth-card { position: relative; }
.auth-tools { position: absolute; right: 26px; top: 29px; }
.auth-card > .brand { padding-right: 38px; }
.category-dot { display: inline-block; width: 10px; height: 10px; flex-shrink: 0; }
.desktop-nav > a, .category-label, .category-pill { display: inline-flex; align-items: center; gap: 7px; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; }
.mobile-install-button { width: 100%; margin-top: 18px; }
.editorial-dropdown { position: relative; color: var(--muted); font-size: .8rem; }
.editorial-dropdown summary { cursor: pointer; padding-block: 25px; white-space: nowrap; }
.editorial-dropdown[open] summary { color: var(--accent-bright); }
.editorial-dropdown-panel { position: absolute; top: 100%; right: -15px; min-width: 215px; max-height: 60vh; overflow-y: auto; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.editorial-dropdown-panel a { display: flex; gap: 9px; align-items: center; padding: 12px; border-radius: 7px; }
.editorial-dropdown-panel a:hover { background: var(--surface-raised); }
.hero h1 { color: #fff; }
.hero .eyebrow, .hero .brand-dot { color: #cba7ff; }
.hero .button { background: #c6a5ff; color: #211135; }
.hero .button:hover { background: #dcc4ff; }
.hero .button-ghost { background: transparent; color: #e3d4f4; }
.hero .button-ghost:hover { background: #2e1d42; }
.hero-compact { min-height: 220px; }
.hero-compact .hero-content { padding-block: 28px; }
.hero-compact h1 { font-size: 3.1rem; }
.hero-compact .hero-content > p { margin-top: 13px; font-size: .9rem; }
.lead-section { margin-top: 35px; }
.featured-grid-1 { display: block; }
.featured-grid-1 .article-card:first-child { display: grid; grid-template-columns: 1fr 1fr; }
.featured-grid-1 .article-card:first-child .article-card-image { height: 100%; min-height: 260px; aspect-ratio: auto; }
.featured-grid-1 .article-card:first-child .article-card-body { padding: 35px; align-self: center; }
.featured-grid-1 .article-card:first-child h3 { font-size: 1.85rem; }
.featured-grid-2 .article-card:first-child { grid-row: auto; }
.featured-grid-2 .article-card:not(:first-child) { display: block; }
.featured-grid-2 .article-card:not(:first-child) .article-card-image { display: block; height: auto; aspect-ratio: 16/8.3; }

/* The default white reading surface preserves violet as the brand accent. */
html:not([data-theme="dark"]) ::placeholder { color: #796c86; }
html:not([data-theme="dark"]) .public-body { background: #fff; background-image: radial-gradient(ellipse at 80% 0, #f4eefb 0, transparent 500px); }
html:not([data-theme="dark"]) .site-header { background: rgb(255 255 255 / 96%); }
html:not([data-theme="dark"]) .button { background: var(--accent-bright); color: #fff; }
html:not([data-theme="dark"]) .button:hover { background: #582994; }
html:not([data-theme="dark"]) .button-secondary { background: #f4effa; color: #5d367e; border-color: #d8c9e8; }
html:not([data-theme="dark"]) .button-secondary:hover { background: #eae0f6; border-color: #b898d6; }
html:not([data-theme="dark"]) .button-ghost { background: transparent; color: var(--muted); }
html:not([data-theme="dark"]) .button-ghost:hover { background: #f2edf7; color: var(--text); }
html:not([data-theme="dark"]) .button-danger { background: #fff8fa; color: #ae2644; border-color: #e5b3bf; }
html:not([data-theme="dark"]) .button-danger:hover { background: #fdebf0; border-color: #cc8397; }
html:not([data-theme="dark"]) .hero .button { background: #c6a5ff; color: #211135; }
html:not([data-theme="dark"]) .hero .button:hover { background: #ddc6ff; }
html:not([data-theme="dark"]) .hero .button-ghost { background: transparent; color: #e3d4f4; }
html:not([data-theme="dark"]) .hero .button-ghost:hover { background: #2e1d42; }
html:not([data-theme="dark"]) .card { box-shadow: 0 4px 18px rgb(57 30 86 / 3%); }
html:not([data-theme="dark"]) .category-label { color: #5b3c76; }
html:not([data-theme="dark"]) .category-pill.active { background: #f0e7fc; border-color: #d3bbef; color: #653697; }
html:not([data-theme="dark"]) .article-card { box-shadow: 0 5px 20px rgb(49 27 74 / 3%); }
html:not([data-theme="dark"]) .article-card:hover { border-color: #b99bd5; }
html:not([data-theme="dark"]) .public-empty { background: radial-gradient(ellipse at 50% 5%, #f2e9fb, #fff 75%); }
html:not([data-theme="dark"]) .offer-image { background: #f6f3f9; }
html:not([data-theme="dark"]) .offer-placeholder { color: #8660ab; }
html:not([data-theme="dark"]) .coupon-button { background: #faf7fd; border-color: #bfa3d8; color: var(--muted); }
html:not([data-theme="dark"]) .support-banner { background: linear-gradient(110deg, #f4ebfc, #fcfaff); border-color: #ddcbea; }
html:not([data-theme="dark"]) .site-footer { background: #faf8fd; }
html:not([data-theme="dark"]) .article-deck { color: #6b5a79; }
html:not([data-theme="dark"]) .prose { color: #362c40; }
html:not([data-theme="dark"]) .prose blockquote { background: #f6f0fc; color: #5b3c76; }
html:not([data-theme="dark"]) .prose code { background: #eee6f7; }
html:not([data-theme="dark"]) .prose pre { background: #f8f5fc; }
html:not([data-theme="dark"]) .source-note { background: #f9f5fd; }
html:not([data-theme="dark"]) .badge { background: #f0e7fb; border-color: #dbc8ed; color: #6d3d98; }
html:not([data-theme="dark"]) .badge-success, html:not([data-theme="dark"]) .badge-published, html:not([data-theme="dark"]) .badge-completed, html:not([data-theme="dark"]) .badge-active { background: #e8f6ee; border-color: #b9ddc9; color: #1e6b4b; }
html:not([data-theme="dark"]) .badge-warning, html:not([data-theme="dark"]) .badge-review, html:not([data-theme="dark"]) .badge-scheduled, html:not([data-theme="dark"]) .badge-pending, html:not([data-theme="dark"]) .badge-processing { background: #fff5df; border-color: #ead59f; color: #805a0d; }
html:not([data-theme="dark"]) .badge-error, html:not([data-theme="dark"]) .badge-failed { background: #fdeef2; border-color: #ecc1cd; color: #a92b46; }
html:not([data-theme="dark"]) .badge-draft, html:not([data-theme="dark"]) .badge-archived, html:not([data-theme="dark"]) .badge-inactive { background: #f1eef5; border-color: #dbd2e4; color: #6c5d7a; }
html:not([data-theme="dark"]) .alert-success { background: #eaf7ef; border-color: #b9ddc9; color: #216747; }
html:not([data-theme="dark"]) .alert-error { background: #fff0f3; border-color: #ecc0cc; color: #a92b46; }
html:not([data-theme="dark"]) .alert-info { background: #f5effd; border-color: #d9c6ef; color: #61417d; }
html:not([data-theme="dark"]) .field input:not([type="checkbox"]):not([type="radio"]), html:not([data-theme="dark"]) .field select, html:not([data-theme="dark"]) .field textarea, html:not([data-theme="dark"]) .search-form input, html:not([data-theme="dark"]) .filter-form input, html:not([data-theme="dark"]) .filter-form select, html:not([data-theme="dark"]) .input { background: #fff; }
html:not([data-theme="dark"]) .field input:read-only { background: #f6f3f9; }
html:not([data-theme="dark"]) .field input[type="file"]::file-selector-button { background: #eee4f9; color: #613882; }
html:not([data-theme="dark"]) .review-check { background: #f6f0fc; }
html:not([data-theme="dark"]) .empty-symbol { background: #f1e8fb; }
html:not([data-theme="dark"]) .admin-body { background: #f7f5fa; }
html:not([data-theme="dark"]) .admin-sidebar, html:not([data-theme="dark"]) .admin-topbar { background: #fff; }
html:not([data-theme="dark"]) .nav-group-label { color: #7d6b8c; }
html:not([data-theme="dark"]) .nav-item { color: #6e5f7b; }
html:not([data-theme="dark"]) .nav-item:hover { background: #f6f0fb; color: #532b75; }
html:not([data-theme="dark"]) .nav-item.active { background: #eee3fa; color: #663890; box-shadow: inset 2px 0 #8750c2; }
html:not([data-theme="dark"]) .nav-icon { color: #8b6da6; }
html:not([data-theme="dark"]) .nav-item.active .nav-icon { color: #7444a4; }
html:not([data-theme="dark"]) .account-avatar { background: #efe2fa; color: #75449d; }
html:not([data-theme="dark"]) .dashboard-welcome { background: linear-gradient(110deg, #f0e4fb, #fcfaff); border-color: #d8c1ec; }
html:not([data-theme="dark"]) .dashboard-welcome p { color: #796289; }
html:not([data-theme="dark"]) .stat-card { background: linear-gradient(135deg, #fff, #faf6fe); }
html:not([data-theme="dark"]) .stat-card .nav-icon { color: #aa8bc6; }
html:not([data-theme="dark"]) .table th { background: #faf7fd; color: #7c688c; }
html:not([data-theme="dark"]) .table tbody tr:hover { background: #fcfaff; }
html:not([data-theme="dark"]) .table-thumb { background: #f0e9f7; }
html:not([data-theme="dark"]) .media-preview { background: #f6f2fa; }
html:not([data-theme="dark"]) .steps-list li::before { background: #f0e4fb; border-color: #d2b5e8; color: #734197; }
html:not([data-theme="dark"]) .auth-shell, html:not([data-theme="dark"]) .auth-page { background: radial-gradient(ellipse at 50% 0, #eee1fb, #fbf9fd 65%); }
html:not([data-theme="dark"]) .auth-card { background: #fff; }
html:not([data-theme="dark"]) .settings-privacy-note { color: #755a86; }
html:not([data-theme="dark"]) .security-icon { background: #f1e5fb; border-color: #d5b9e8; }
html:not([data-theme="dark"]) .security-icon .nav-icon { color: #80509f; }
html:not([data-theme="dark"]) .security-state { background: #edf8f1; border-color: #bfdec9; }
html:not([data-theme="dark"]) .security-state p { color: #3b6a50; }
html:not([data-theme="dark"]) .setup-key { background: #f8f4fc; }
html:not([data-theme="dark"]) .recovery-details { background: #fcf9ff; }
html:not([data-theme="dark"]) .recovery-code-grid li { background: #f3edf9; }
html:not([data-theme="dark"]) .security-reset-card { border-color: #e4c4cf; }
html:not([data-theme="dark"]) .category-permission { background: #faf7fd; }
html:not([data-theme="dark"]) .category-permission:has(input:checked) { background: #eee2fa; border-color: #b493d4; }
html:not([data-theme="dark"]) .toast { background: #fff; }
html:not([data-theme="dark"]) .text-link:hover, html:not([data-theme="dark"]) .read-link:hover, html:not([data-theme="dark"]) .category-label:hover, html:not([data-theme="dark"]) .prose a:hover { color: #4e237e; }
html:not([data-theme="dark"]) .pagination .active, html:not([data-theme="dark"]) .pagination [aria-current="page"] { color: #fff; }

@media (min-width: 1500px) {
    .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1250px) {
    .desktop-nav { gap: 18px; }
    .desktop-nav { gap: 15px; }
    .admin-content { padding-inline: 26px; }
    .admin-topbar { padding-inline: 26px; }
    .form-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
    .form-layout .card { padding: 22px; }
    .dashboard-welcome .button-row { flex-direction: column; align-items: stretch; }
    .stats-grid { gap: 12px; }
    .stat-card { padding: 19px 16px; }
    .stat-card .nav-icon { right: 16px; }
    .category-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .article-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .article-filter-actions { align-items: flex-start; }
    .article-management-table, .article-management-table tbody { display: block; }
    .article-management-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .article-management-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 20px; gap: 15px 22px; border-top: 1px solid var(--line); }
    .article-management-table td { min-width: 0; max-width: none; padding: 0; border: 0; }
    .article-list-title-cell, .article-list-status-cell, .article-list-actions-cell { grid-column: 1/-1; }
    .article-list-actions-cell .table-actions { max-width: none; padding-top: 11px; border-top: 1px solid var(--line); }
    .article-mobile-label { display: block; margin-bottom: 6px; color: var(--subtle); font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; }
    .container { width: calc(100% - 44px); }
    .header-inner { gap: 20px; }
    .desktop-nav { gap: 18px; }
    .desktop-nav { display: none; }
    .mobile-menu-button { display: inline-flex; }
    .hero-content { padding: 40px; width: 64%; }
    .hero-content .button-row { align-items: flex-start; flex-direction: column; gap: 5px; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-grid .article-card:not(:first-child) { display: block; }
    .featured-grid .article-card:not(:first-child) .article-card-image { display: none; }
    .article-grid, .offer-grid, .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reading-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 250px; }
    .footer-grid { gap: 25px; grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-column:last-child { grid-column: 2; }
    .admin-sidebar { width: 235px; }
    .admin-main { margin-left: 235px; }
    .dashboard-columns, .form-layout, .import-layout, .category-layout { grid-template-columns: minmax(0, 1fr); }
    .security-layout { grid-template-columns: minmax(0, 1fr); }
    .form-aside { position: static; }
    .form-aside > .card { max-width: none; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card { padding: 22px; }
    .stat-card .nav-icon { right: 23px; }
    .dashboard-welcome { flex-wrap: wrap; }
    .dashboard-welcome .button-row { margin-left: 87px; flex-direction: row; }
}
@media (max-width: 850px) {
    .desktop-nav { display: none; }
    .mobile-menu-button, .admin-menu-button { display: inline-flex; }
    .header-actions { margin-left: auto; }
    .hero { min-height: 410px; }
    .hero-content { padding: 32px; width: 70%; }
    .hero-shade { background: linear-gradient(90deg, #160e23 0%, rgb(22 14 35 / 94%) 28%, rgb(22 14 35 / 70%) 52%, rgb(22 14 35 / 5%) 100%); }
    .hero-content > p { max-width: 330px; font-size: .93rem; }
    .hero h1 { font-size: 3.7rem; }
    .reading-layout { grid-template-columns: minmax(0, 1fr); }
    .reading-aside { display: none; }
    .reading-column { max-width: 760px; }
    .admin-sidebar { width: 270px; transform: translateX(-100%); transition: transform .2s ease; }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-topbar { min-height: 86px; padding: 18px 22px; }
    .admin-content { padding: 26px 22px 40px; }
    .topbar-title h1 { font-size: 1.25rem; }
    .admin-footer { padding-inline: 22px; }
    .dashboard-welcome .button-row { margin-left: auto; }
    .page-heading { align-items: flex-start; }
}
@media (max-width: 600px) {
    body { font-size: 14px; }
    .container { width: calc(100% - 32px); }
    .header-inner { min-height: 72px; gap: 10px; }
    .brand { font-size: 1.45rem; gap: 7px; }
    .brand img { width: 39px; height: 39px; }
    .header-actions { gap: 7px; }
    .icon-button { width: 39px; height: 39px; border-radius: 9px; }
    .pwa-install { min-height: 36px; padding: 8px 10px; font-size: .7rem; }
    .hero-section { padding-top: 16px; }
    .hero { min-height: 460px; align-items: flex-end; border-radius: 17px; }
    .hero-art { object-position: 75% center; }
    .hero-shade { background: linear-gradient(0deg, #160e23 0%, rgb(22 14 35 / 96%) 24%, rgb(22 14 35 / 75%) 45%, rgb(22 14 35 / 4%) 100%); }
    .hero-content { width: 100%; padding: 26px; }
    .hero h1 { font-size: 3.2rem; margin-top: 9px; }
    .hero-content > p { font-size: .88rem; max-width: 320px; margin-top: 15px; }
    .hero-content .button-row { flex-direction: row; flex-wrap: wrap; margin-top: 23px; gap: 5px; }
    .hero-content .button { padding: 11px 14px; min-height: 43px; font-size: .76rem; }
    .hero-content .eyebrow { font-size: .61rem; }
    .hero-compact { min-height: 235px; }
    .hero-compact .hero-content { padding: 23px; }
    .hero-compact h1 { font-size: 2.65rem; }
    .hero-compact .hero-content > p { max-width: 270px; font-size: .82rem; }
    .pwa-install-header { display: none !important; }
    .section-block { margin-top: 40px; margin-bottom: 40px; }
    .section-heading { margin-bottom: 22px; gap: 15px; align-items: flex-end; }
    .section-heading h2 { font-size: 1.45rem; }
    .section-heading .eyebrow { font-size: .6rem; margin-bottom: 7px; }
    .section-heading .text-link { font-size: .73rem; }
    .category-pills { margin-bottom: 14px; }
    .category-pill { padding: 8px 12px; font-size: .72rem; }
    .article-grid, .offer-grid, .partner-grid, .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .article-card-body { padding: 21px; }
    .article-card h3 { font-size: 1.2rem; }
    .featured-grid .article-card:first-child { grid-row: auto; }
    .featured-grid-1 .article-card:first-child { display: block; }
    .featured-grid-1 .article-card:first-child .article-card-image { height: 210px; min-height: 0; }
    .featured-grid-1 .article-card:first-child .article-card-body { padding: 23px; }
    .featured-grid-1 .article-card:first-child h3 { font-size: 1.4rem; }
    .featured-grid .article-card:first-child h3 { font-size: 1.3rem; }
    .featured-grid .article-card:not(:first-child) { display: grid; grid-template-columns: 32% 1fr; }
    .featured-grid .article-card:not(:first-child) .article-card-image { display: block; }
    .featured-grid .article-card:not(:first-child) .article-card-body { padding: 16px; }
    .featured-grid .article-card:not(:first-child) p { display: none; }
    .featured-grid .article-card:not(:first-child) h3 { font-size: .99rem; }
    .featured-grid .article-card:not(:first-child) .read-link { margin-top: 12px; }
    .featured-grid .article-card:not(:first-child) .article-meta time { display: none; }
    .public-empty { padding: 35px 22px; min-height: 350px; }
    .public-empty p { font-size: .82rem; }
    .public-empty .empty-portal { width: 70px; height: 70px; }
    .offer-image { height: 225px; }
    .support-banner { align-items: flex-start; flex-direction: column; padding: 27px; gap: 22px; }
    .support-banner h2 { font-size: 1.65rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 36px; gap: 30px 24px; }
    .footer-brand { grid-column: 1/-1; }
    .footer-brand p { max-width: 330px; margin-top: 12px; }
    .footer-column:last-child { grid-column: auto; }
    .footer-column { font-size: .76rem; gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 13px; padding-block: 21px; }
    .site-footer { margin-top: 45px; }
    .page-intro { padding-top: 27px; }
    .page-intro .eyebrow { margin-top: 27px; }
    .page-intro h1 { font-size: 2.3rem; }
    .page-intro > p { font-size: .9rem; margin-top: 16px; }
    .article-page { padding-top: 27px; }
    .article-header { margin-top: 27px; }
    .article-header h1 { font-size: 2.1rem; line-height: 1.25; }
    .article-deck { font-size: 1rem; margin-top: 17px; }
    .article-byline { margin-top: 22px; flex-direction: column; gap: 5px; font-size: .73rem; }
    .article-cover { margin-top: 26px; border-radius: 12px; }
    .reading-layout { margin-top: 28px; }
    .document-card { grid-template-columns: 40px minmax(0, 1fr); padding: 20px; gap: 14px; }
    .document-card .button { grid-column: 1/-1; justify-self: start; }
    .external-link-body { padding: 21px; }
    .embed-placeholder { padding: 28px 20px; }
    .revision-summary { flex-direction: column; gap: 12px; }
    .prose { font-size: 1rem; line-height: 1.9; }
    .prose h2 { font-size: 1.4rem; }
    .prose blockquote { padding: 14px 18px; }
    .article-share > span { width: 100%; }
    .institutional-page { padding: 25px 22px; }
    .support-page { padding: 33px 25px; }
    .card { padding: 22px; border-radius: 14px; }
    .admin-topbar { padding: 17px 16px; gap: 11px; }
    .admin-topbar > .button { font-size: .69rem; padding: 8px 10px; }
    .topbar-title .eyebrow { font-size: .52rem; letter-spacing: .08em; }
    .topbar-title h1 { font-size: 1.1rem; }
    .admin-content { padding: 23px 16px 35px; }
    .admin-footer { padding: 18px 16px; font-size: .6rem; }
    .admin-footer span:last-child { display: none; }
    .dashboard-welcome { padding: 23px; gap: 15px; }
    .dashboard-welcome img { width: 46px; height: 46px; }
    .dashboard-welcome > div:not(.button-row) { flex: 1; }
    .dashboard-welcome h2 { font-size: 1.45rem; }
    .dashboard-welcome p { font-size: .77rem; }
    .dashboard-welcome .button-row { margin-left: 0; width: 100%; }
    .dashboard-welcome .button-row .button { flex: 1; font-size: .74rem; }
    .stats-grid { gap: 12px; margin-bottom: 22px; }
    .stat-card { padding: 18px; border-radius: 12px; }
    .stat-number { font-size: 1.9rem; }
    .stat-card .nav-icon { right: 17px; bottom: 23px; width: 21px; height: 21px; }
    .stat-label { font-size: .69rem; }
    .page-heading { flex-direction: column; gap: 18px; margin-bottom: 22px; }
    .page-heading h2 { font-size: 1.2rem; }
    .page-heading p { font-size: .8rem; }
    .page-heading .button-row { width: 100%; }
    .page-heading .button-row .button { flex: 1; }
    .grid-2, .grid-3, .grid-4, .settings-grid { grid-template-columns: minmax(0, 1fr); }
    .span-2 { grid-column: auto; }
    .filter-form { gap: 9px; }
    .article-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .article-filter-actions { flex-direction: column; align-items: stretch; gap: 14px; }
    .article-filter-actions .button-row .button { flex: 1; }
    .article-results-heading { padding: 18px 20px; }
    .article-results-heading h2 { font-size: 1rem; }
    .article-results-heading p { font-size: .68rem; }
    .filter-form input { max-width: none; flex-basis: 100%; }
    .filter-form select { min-width: 0; flex: 1; }
    .table-card { padding: 0; }
    .table-card > .card-header { padding: 22px 20px 0; }
    .table th, .table td { padding-inline: 17px; }
    .table .title-cell { min-width: 220px; }
    .table-actions { gap: 15px; }
    .form-layout .card { padding: 22px; }
    .form-aside { position: static; }
    .form-actions { justify-content: stretch; }
    .form-actions .button { flex: 1; }
    .form-actions .muted { width: 100%; margin-right: 0; }
    .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .search-form input, .filter-form input, .filter-form select { font-size: 16px; }
    .field textarea.editor-textarea { min-height: 360px; font-size: 16px; }
    .media-upload-fields { grid-template-columns: minmax(0, 1fr); }
    .attachment-picker { grid-template-columns: minmax(0, 1fr); }
    .media-upload-actions { flex-direction: column; align-items: stretch; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .media-preview { height: 125px; }
    .media-info { padding: 14px; }
    .media-card-actions { flex-wrap: wrap; gap: 9px; }
    .media-info details summary { font-size: .7rem; }
    .media-name { font-size: .73rem; }
    .recent-item { gap: 10px; }
    .recent-item .badge { font-size: .6rem; padding: 4px 6px; }
    .auth-card { padding: 27px 24px; }
    .auth-footer { justify-content: center; text-align: center; }
    .auth-footer > span { width: 100%; }
    .security-card-heading { gap: 12px; }
    .security-icon { width: 38px; height: 38px; }
    .recovery-details { padding: 15px; }
    .recovery-code-grid { grid-template-columns: minmax(0, 1fr); }
    .pagination { gap: 6px; }
    .pagination a, .pagination > span { min-width: 36px; min-height: 38px; padding: 8px 10px; }
    .category-permissions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 370px) {
    .pwa-install { display: none !important; }
    .header-actions { gap: 5px; }
    .hero-content { padding: 23px; }
    .hero-content .button-ghost { padding-inline: 0; }
    .media-grid { grid-template-columns: minmax(0, 1fr); }
    .media-preview { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
    body { color: #000; background: #fff; }
    .site-header, .site-footer, .reading-aside, .article-share, .support-banner, .admin-sidebar, .admin-topbar, .admin-footer { display: none; }
    .container, .narrow { width: 100%; max-width: 100%; }
    .article-page, .article-header, .reading-layout { margin: 0; padding: 0; display: block; max-width: 100%; }
    .prose, .article-deck, .article-byline, .muted { color: #222; }
    .prose a { color: #222; }
    .article-cover { max-width: 70%; }
    .source-note { border-color: #ccc; color: #222; background: #fff; }
    .admin-main { margin: 0; }
}

/* Homepage editorial hierarchy. Shared article cards keep their listing styles. */
.newsroom-home .hero-compact { min-height: 164px; border-radius: 14px; }
.newsroom-home .hero-compact .hero-art { left: auto; width: 66%; object-position: right 24%; }
.newsroom-home .hero-compact .hero-shade { background: linear-gradient(90deg, #160e23 0%, #160e23 30%, rgb(22 14 35 / 88%) 45%, rgb(22 14 35 / 8%) 78%); }
.newsroom-home .hero-compact .hero-content { width: 67%; padding: 25px 34px; }
.newsroom-home .hero-compact h1 { margin-top: 7px; font-size: 2.7rem; }
.newsroom-home .hero-compact .hero-content > p { max-width: 520px; margin-top: 9px; font-size: .86rem; line-height: 1.55; }
.newsroom-home .hero-compact .eyebrow { font-size: .6rem; }
.newsroom-home .section-block { margin-block: 44px 52px; }
.newsroom-home .newsroom-lead { margin-top: 32px; }
.newsroom-heading { gap: 20px; margin-bottom: 25px; }
.newsroom-heading h2 { font-size: 1.55rem; letter-spacing: -.04em; }
.newsroom-heading .eyebrow { margin-bottom: 6px; font-size: .6rem; }
.newsroom-heading .section-line { margin-top: 12px; }
.newsroom-section-link { font-size: .77rem; }
.newsroom-section-link > span { font-size: 1.1rem; }
.newsroom-lead-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.newsroom-secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 22px; align-items: start; padding-left: 28px; border-left: 1px solid var(--line); }
.newsroom-home .article-card.newsroom-card { min-width: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.newsroom-card .article-card-image { display: block; aspect-ratio: 16/9; border-radius: 8px; }
.newsroom-card .article-card-body { padding: 14px 0 0; }
.newsroom-card .article-meta { justify-content: flex-start; gap: 8px 13px; margin-bottom: 9px; font-size: .65rem; }
.newsroom-card .category-label { font-size: .63rem; letter-spacing: .045em; }
.newsroom-card .article-card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.32; letter-spacing: -.026em; overflow-wrap: anywhere; }
.newsroom-card .article-card-title a:hover { color: var(--accent-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.newsroom-card p { margin-top: 11px; -webkit-line-clamp: 2; font-size: .85rem; line-height: 1.65; }
.newsroom-card-lead .article-card-title { font-size: clamp(1.6rem, 2.35vw, 2.05rem); line-height: 1.18; letter-spacing: -.037em; }
.newsroom-card-lead .article-card-body { padding-top: 18px; }
.newsroom-card-lead .article-meta { margin-bottom: 11px; }
.newsroom-card-lead p { max-width: 62ch; font-size: .91rem; }
.newsroom-card-secondary .article-card-body { padding-top: 11px; }
.newsroom-card-secondary .article-meta { gap: 5px 10px; margin-bottom: 7px; }
.newsroom-card-secondary .article-card-title { font-size: 1.03rem; line-height: 1.32; }
.newsroom-card-secondary .article-meta time { font-size: .61rem; }
.newsroom-lead-count-1 { display: block; }
.newsroom-lead-count-1 > .newsroom-card-lead { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.newsroom-lead-count-1 > .newsroom-card-lead .article-card-body { padding: 0; }
.newsroom-lead-count-1 > .newsroom-card-lead .article-card-title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.newsroom-lead-count-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.newsroom-lead-count-2 .newsroom-secondary-grid, .newsroom-lead-count-3 .newsroom-secondary-grid { grid-template-columns: minmax(0, 1fr); }
.newsroom-lead-count-2 .newsroom-card-secondary .article-card-title { font-size: 1.35rem; }
.newsroom-lead-count-3 .newsroom-card-secondary { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 16px; }
.newsroom-lead-count-3 .newsroom-card-secondary .article-card-body { padding: 0; }
.newsroom-lead-count-3 .newsroom-card-secondary + .newsroom-card-secondary { padding-top: 24px; border-top: 1px solid var(--line); }
.newsroom-lead-count-4 .newsroom-card-secondary:last-child { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.newsroom-lead-count-4 .newsroom-card-secondary:last-child .article-card-body { padding: 0; }
.newsroom-home .newsroom-editorias, .newsroom-home .newsroom-latest { padding-top: 34px; border-top: 1px solid var(--line); }
.newsroom-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.newsroom-category-count-1 { grid-template-columns: minmax(0, 1fr); }
.newsroom-category-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.newsroom-category-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.newsroom-category { min-width: 0; }
.newsroom-category-heading { margin-bottom: 19px; }
.newsroom-category-accent { display: block; width: 100%; height: 3px; margin-bottom: 15px; border-radius: 2px; }
.newsroom-category-heading h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.newsroom-category-heading h3 a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.newsroom-category-heading h3 a:hover { color: var(--accent-bright); }
.newsroom-category-heading h3 span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.newsroom-card-section-lead .article-card-body { padding-top: 11px; }
.newsroom-card-section-lead .article-card-title { font-size: 1.07rem; line-height: 1.35; }
.newsroom-card-section-lead .article-meta { margin-bottom: 7px; }
.newsroom-category-followups { margin-top: 19px; }
.newsroom-home .newsroom-card-compact { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 16px; border-top: 1px solid var(--line); }
.newsroom-card-compact .article-card-image { aspect-ratio: 4/3; border-radius: 5px; }
.newsroom-card-compact .article-card-body { padding: 0; }
.newsroom-card-compact .article-card-title { font-size: .88rem; line-height: 1.4; letter-spacing: -.018em; }
.newsroom-card-compact .article-cover-placeholder img { width: 42px; height: 42px; }
.newsroom-category-more { display: flex; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 17px; border-top: 1px solid var(--line); font-size: .74rem; }
.newsroom-category-more:hover, .newsroom-section-link:hover { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 4px; }
.newsroom-category-count-1 .newsroom-category-stories { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.newsroom-category-count-1 .newsroom-category-followups { margin-top: 0; }
.newsroom-category-count-1 .newsroom-card-compact:first-child { padding-top: 0; border-top: 0; }
.newsroom-category-count-1 .newsroom-card-compact { grid-template-columns: 122px minmax(0, 1fr); padding-block: 19px; }
.newsroom-category-count-1 .newsroom-card-compact .article-card-title { font-size: 1.05rem; }
.newsroom-category-count-1 .newsroom-category-single { display: block; }
.newsroom-category-count-1 .newsroom-category-single .newsroom-card-section-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 26px; align-items: center; }
.newsroom-category-count-1 .newsroom-category-single .article-card-body { padding: 0; }
.newsroom-category-count-1 .newsroom-card-section-lead .article-card-title { font-size: 1.35rem; }
.newsroom-latest-grid { gap: 30px 28px; }
.newsroom-home .newsroom-card-latest { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.newsroom-card-latest .article-card-title { font-size: 1.12rem; }
.newsroom-card-latest p { font-size: .82rem; }

@media (max-width: 1100px) {
    .newsroom-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
    .newsroom-category-count-1 { grid-template-columns: minmax(0, 1fr); }
    .newsroom-lead-grid { gap: 24px; }
    .newsroom-secondary-grid { padding-left: 22px; gap: 22px 18px; }
    .newsroom-card-secondary .article-card-title { font-size: .98rem; }
    .newsroom-home .newsroom-card-compact { grid-template-columns: 94px minmax(0, 1fr); }
    .newsroom-card-compact .article-card-title { font-size: .95rem; }
}
@media (max-width: 850px) {
    .newsroom-home .hero-compact { min-height: 164px; }
    .newsroom-home .hero-compact .hero-content { padding: 24px 28px; }
    .newsroom-home .hero-compact .hero-content > p { max-width: 370px; }
    .newsroom-lead-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; }
    .newsroom-secondary-grid { padding: 23px 0 0; border-left: 0; border-top: 1px solid var(--line); gap: 23px; }
    .newsroom-card-lead .article-card-title { font-size: 1.9rem; }
    .newsroom-card-secondary .article-card-title { font-size: 1.13rem; }
    .newsroom-lead-count-1 > .newsroom-card-lead { gap: 25px; }
    .newsroom-lead-count-1 > .newsroom-card-lead .article-card-title { font-size: 1.7rem; }
    .newsroom-lead-count-2 .newsroom-card-secondary { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 23px; }
    .newsroom-lead-count-2 .newsroom-card-secondary .article-card-body { padding: 0; }
    .newsroom-lead-count-3 .newsroom-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .newsroom-lead-count-3 .newsroom-card-secondary { display: block; }
    .newsroom-lead-count-3 .newsroom-card-secondary .article-card-body { padding-top: 12px; }
    .newsroom-lead-count-3 .newsroom-card-secondary + .newsroom-card-secondary { padding-top: 0; border-top: 0; }
}
@media (max-width: 600px) {
    .newsroom-home .hero-compact { min-height: 155px; align-items: center; border-radius: 12px; }
    .newsroom-home .hero-compact .hero-art { width: 90%; object-position: right 20%; }
    .newsroom-home .hero-compact .hero-shade { background: linear-gradient(90deg, #160e23 0%, rgb(22 14 35 / 95%) 30%, rgb(22 14 35 / 48%) 67%, rgb(22 14 35 / 8%) 100%); }
    .newsroom-home .hero-compact .hero-content { width: 75%; padding: 21px; }
    .newsroom-home .hero-compact h1 { font-size: 2.25rem; }
    .newsroom-home .hero-compact .hero-content > p { max-width: 240px; margin-top: 8px; font-size: .77rem; }
    .newsroom-home .hero-compact .eyebrow { font-size: .56rem; }
    .newsroom-home .section-block { margin-block: 32px 38px; }
    .newsroom-home .newsroom-lead { margin-top: 26px; }
    .newsroom-heading { gap: 15px; margin-bottom: 20px; }
    .newsroom-heading h2 { font-size: 1.4rem; }
    .newsroom-heading .eyebrow { font-size: .55rem; }
    .newsroom-heading .newsroom-section-link { max-width: 110px; font-size: .7rem; text-align: right; }
    .newsroom-lead-count-1 > .newsroom-card-lead { display: block; }
    .newsroom-lead-count-1 > .newsroom-card-lead .article-card-body { padding-top: 15px; }
    .newsroom-card-lead .article-card-title, .newsroom-lead-count-1 > .newsroom-card-lead .article-card-title { font-size: 1.72rem; }
    .newsroom-card-lead p { font-size: .88rem; }
    .newsroom-secondary-grid { gap: 22px 17px; }
    .newsroom-card-secondary .article-card-title { font-size: 1rem; line-height: 1.38; }
    .newsroom-card-secondary .article-meta { gap: 4px 10px; }
    .newsroom-card-secondary .category-label { font-size: .59rem; }
    .newsroom-lead-count-2 .newsroom-card-secondary { grid-template-columns: 34% minmax(0, 1fr); gap: 16px; }
    .newsroom-lead-count-2 .newsroom-card-secondary .article-card-title { font-size: 1.08rem; }
    .newsroom-lead-count-4 .newsroom-card-secondary:last-child { grid-template-columns: 34% minmax(0, 1fr); gap: 16px; }
    .newsroom-home .newsroom-editorias, .newsroom-home .newsroom-latest { padding-top: 27px; }
    .newsroom-category-grid { grid-template-columns: minmax(0, 1fr); gap: 33px; }
    .newsroom-category-heading { margin-bottom: 17px; }
    .newsroom-category-heading h3 { font-size: 1.2rem; }
    .newsroom-card-section-lead .article-card-title { font-size: 1.25rem; line-height: 1.3; }
    .newsroom-home .newsroom-card-compact { grid-template-columns: 96px minmax(0, 1fr); gap: 15px; padding-block: 17px; }
    .newsroom-card-compact .article-card-title { font-size: 1rem; line-height: 1.4; }
    .newsroom-category-count-1 .newsroom-category-stories, .newsroom-category-count-1 .newsroom-category-single .newsroom-card-section-lead { display: block; }
    .newsroom-category-count-1 .newsroom-category-followups { margin-top: 19px; }
    .newsroom-category-count-1 .newsroom-card-compact:first-child { padding-top: 17px; border-top: 1px solid var(--line); }
    .newsroom-category-count-1 .newsroom-category-single .article-card-body { padding-top: 11px; }
    .newsroom-category-more { margin-top: 12px; font-size: .78rem; }
    .newsroom-latest-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
    .newsroom-home .newsroom-card-latest { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 16px; padding-bottom: 23px; }
    .newsroom-card-latest .article-card-image { aspect-ratio: 4/3; border-radius: 6px; }
    .newsroom-card-latest .article-card-body { padding: 0; }
    .newsroom-card-latest .article-card-title { font-size: 1.05rem; line-height: 1.36; }
    .newsroom-card-latest .article-meta { gap: 5px 9px; margin-bottom: 8px; }
    .newsroom-card-latest .category-label { font-size: .59rem; }
    .newsroom-card-latest p { margin-top: 8px; font-size: .79rem; }
    .newsroom-card-latest .article-cover-placeholder img { width: 52px; height: 52px; }
}
