:root {
    --ink: #171514;
    --muted: #6e6861;
    --paper: #f5f0e6;
    --paper-light: #fbf8f1;
    --red: #a1121d;
    --red-dark: #761018;
    --rule: #c9c0b2;
    --green: #1f6c4d;
    --shadow: 0 18px 55px rgba(40, 31, 24, .12);
    --serif: "Libre Caslon Text", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 99; padding: 12px 18px; color: white; background: var(--red); }
.skip-link:focus { top: 16px; }

.utility-bar { color: #eee9df; background: #171514; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-inner p { margin: 0; }
.utility-inner p span { margin: 0 8px; color: #b6aa9c; }
.utility-actions { display: flex; gap: 18px; align-items: center; }
.utility-actions a { border-bottom: 1px solid transparent; }
.utility-actions a:hover { border-color: currentColor; }
.signed-in { color: #bcb3a7; text-transform: none; }

.masthead { position: relative; min-height: 134px; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid var(--ink); }
.brand { display: grid; grid-template-columns: 58px auto; grid-template-rows: auto auto; align-items: center; column-gap: 13px; }
.brand-mark { grid-row: 1 / 3; width: 58px; height: 58px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50% 50% 46% 54%; font: italic 700 2.55rem/1 Georgia, serif; transform: rotate(-4deg); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 5px rgba(255,255,255,.75); }
.brand-name { font: 400 clamp(2rem, 5vw, 3.8rem)/.83 var(--serif); letter-spacing: -.065em; }
.brand-name b { color: var(--red); font-weight: 700; }
.brand-tagline { align-self: end; color: var(--muted); font-size: .65rem; letter-spacing: .24em; text-transform: uppercase; }
.masthead-badge { position: absolute; right: 0; text-align: center; color: var(--muted); font: .65rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.masthead-badge strong { color: var(--ink); font: 700 1.1rem/1 var(--serif); }
.menu-toggle { display: none; }

.main-nav { border-bottom: 1px solid var(--ink); background: var(--paper); }
.nav-inner { display: flex; justify-content: center; gap: clamp(20px, 4vw, 52px); }
.nav-inner a { position: relative; padding: 13px 0 11px; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.nav-inner a::after { content: ""; position: absolute; right: 0; bottom: 6px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.nav-inner a:hover::after { transform: scaleX(1); }

.flash { padding: 11px 0; color: white; font-size: .86rem; }
.flash-success { background: var(--green); }
.flash-error { background: var(--red); }

.edition-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 32px 0 13px; border-bottom: 4px double var(--ink); }
.edition-kicker { display: block; margin-bottom: 4px; color: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.edition-heading h1 { margin: 0; font: 700 clamp(1.7rem, 4vw, 3rem)/1 var(--serif); letter-spacing: -.04em; }
.edition-heading p { max-width: 360px; margin: 0; color: var(--muted); text-align: right; font: italic .84rem/1.5 var(--serif); }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 28px; padding: 24px 0 30px; border-bottom: 1px solid var(--ink); }
.lead-story { padding-right: 28px; border-right: 1px solid var(--rule); }
.story-visual { position: relative; min-height: 410px; display: flex; align-items: end; overflow: hidden; background: #272220; isolation: isolate; }
.story-visual::before { content: "W"; position: absolute; inset: auto -20px -95px auto; z-index: -1; color: rgba(255,255,255,.07); font: italic 700 31rem/1 Georgia, serif; transform: rotate(-8deg); }
.story-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 15%, rgba(161,18,29,.75), transparent 43%), linear-gradient(120deg, transparent 30%, rgba(0,0,0,.72)); }
.story-visual.has-image { background-position: center; background-size: cover; }
.story-visual.has-image::after { background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 75%); }
.lead-content { padding: 34px; color: white; }
.category-label { display: inline-block; margin-bottom: 13px; color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.story-visual .category-label { padding: 6px 9px; color: white; background: var(--red); }
.lead-content h2 { max-width: 760px; margin: 0 0 13px; font: 700 clamp(2rem, 5vw, 4.25rem)/.98 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.lead-content p { max-width: 680px; margin: 0; color: #e5ded5; font: 1rem/1.6 var(--serif); }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 17px; color: var(--muted); font-size: .72rem; }
.story-visual .story-meta { color: #cfc6bb; }
.story-meta span + span::before { content: "•"; margin-right: 7px; }

.side-stories { display: flex; flex-direction: column; }
.side-stories h2, .section-rule h2 { margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--ink); font: 700 1rem/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.side-card { flex: 1; padding: 21px 0; border-bottom: 1px solid var(--rule); }
.side-card:last-child { border-bottom: 0; }
.side-card h3 { margin: 0 0 9px; font: 700 clamp(1.2rem, 2.2vw, 1.65rem)/1.18 var(--serif); letter-spacing: -.025em; }
.side-card p { margin: 0; color: var(--muted); font: .82rem/1.5 var(--serif); }
.side-card:hover h3, .news-card:hover h3 { color: var(--red); }

.section-rule { display: flex; justify-content: space-between; align-items: end; padding: 34px 0 0; }
.section-rule h2 { flex: 1; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-bottom: 60px; }
.news-card { padding: 25px 25px 25px 0; border-bottom: 1px solid var(--rule); }
.news-card:nth-child(3n+2) { padding-left: 25px; border-right: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.news-card:nth-child(3n) { padding-right: 0; padding-left: 25px; }
.card-number { display: block; margin-bottom: 28px; color: #b5ab9f; font: italic 2.5rem/1 var(--serif); }
.news-card h3 { margin: 0 0 10px; font: 700 1.42rem/1.2 var(--serif); letter-spacing: -.025em; }
.news-card p { margin: 0; color: var(--muted); font: .85rem/1.55 var(--serif); }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state h2 { margin: 0 0 8px; font: 700 2rem var(--serif); }
.empty-state p { color: var(--muted); }

.article-page { background-color: #e8e1d5; background-image: repeating-linear-gradient(0deg, rgba(75,55,38,.018) 0, rgba(75,55,38,.018) 1px, transparent 1px, transparent 4px); }
.article-sheet { width: min(1020px, calc(100% - 32px)); margin: 42px auto 70px; padding: clamp(28px, 6vw, 74px); background: var(--paper-light); box-shadow: var(--shadow); }
.article-breadcrumb { margin-bottom: 38px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.article-breadcrumb a:hover { color: var(--red); }
.draft-banner { margin: -74px -74px 50px; padding: 10px; color: white; background: #c47a08; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-header { max-width: 840px; margin: 0 auto; text-align: center; }
.article-header h1 { margin: 7px 0 20px; font: 700 clamp(2.5rem, 7vw, 5.4rem)/.98 var(--serif); letter-spacing: -.06em; text-wrap: balance; }
.article-subtitle { max-width: 740px; margin: 0 auto 24px; color: #514b45; font: italic clamp(1rem, 2.3vw, 1.35rem)/1.6 var(--serif); }
.article-byline { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--muted); font-size: .75rem; }
.article-byline strong { color: var(--ink); }
.article-cover { position: relative; height: min(56vw, 530px); margin: 42px 0; overflow: hidden; background: #26211f; background-position: center; background-size: cover; }
.article-cover:not(.has-image)::before { content: "W"; position: absolute; inset: -80px auto auto 50%; color: rgba(255,255,255,.08); font: italic 700 34rem/1 Georgia, serif; transform: translateX(-50%) rotate(-6deg); }
.article-cover:not(.has-image)::after { content: "WEAZEL NEWS"; position: absolute; top: 50%; left: 50%; color: rgba(255,255,255,.7); font: 700 .7rem var(--sans); letter-spacing: .55em; transform: translate(-50%,-50%); }
.article-body { max-width: 760px; margin: 0 auto; color: #292522; font: 1.06rem/1.9 var(--serif); }
.article-body p { margin: 0 0 1.6em; }
.article-body p:first-child::first-letter { float: left; margin: .12em .12em 0 0; color: var(--red); font: 700 5.2rem/.72 var(--serif); }
.article-body h2 { margin: 1.7em 0 .65em; font: 700 1.8rem/1.2 var(--serif); letter-spacing: -.025em; }
.article-body h3 { margin: 1.5em 0 .6em; font: 700 1.4rem/1.25 var(--serif); }
.article-body blockquote { margin: 2em 0; padding: .25em 0 .25em 1.25em; border-left: 4px solid var(--red); color: #514b45; font-size: 1.15rem; font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 1.6em; padding-left: 1.7em; }
.article-body li { margin-bottom: .45em; }
.article-body figure { margin: 2.2em 0; text-align: center; }
.article-body figure img { width: auto; max-width: 100%; max-height: 760px; margin: 0 auto; object-fit: contain; }
.article-body figcaption { margin-top: 9px; color: var(--muted); font: italic .78rem/1.5 var(--serif); }
.article-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--ink); }
.article-end { width: 70px; margin: 45px auto 0; border: 0; border-top: 5px double var(--ink); }
.article-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

.site-footer { color: #d9d1c7; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 60px; padding: 55px 0 40px; }
.footer-brand { color: white; font: 700 1.55rem var(--serif); letter-spacing: -.04em; }
.footer-brand b { color: #cf2936; }
.footer-grid p { max-width: 370px; color: #9f978e; font: italic .9rem/1.6 var(--serif); }
.footer-grid h2 { margin: 0 0 15px; color: white; font-size: .69rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-grid a, .footer-grid span { display: block; margin: 8px 0; color: #aaa198; font-size: .8rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { padding: 13px 20px; border-top: 1px solid #393432; color: #756f69; text-align: center; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 10px 18px; border: 1px solid var(--ink); color: white; background: var(--ink); cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.button:hover { color: white; background: var(--red); border-color: var(--red); }
.button-outline { color: var(--ink); background: transparent; }
.button-danger { background: var(--red); border-color: var(--red); }
.button-small { min-height: 34px; padding: 7px 12px; font-size: .68rem; }
.button:disabled { opacity: .4; cursor: not-allowed; }
.button:disabled:hover { color: white; background: var(--red); }

.auth-layout { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-story { position: relative; display: flex; align-items: end; padding: clamp(35px, 7vw, 100px); overflow: hidden; color: white; background: #1e1a19; isolation: isolate; }
.auth-story::before { content: "W"; position: absolute; z-index: -1; top: -100px; left: 5%; color: rgba(161,18,29,.55); font: italic 700 38rem Georgia, serif; transform: rotate(-9deg); }
.auth-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #171514 5%, transparent 70%); }
.auth-story h1 { max-width: 650px; margin: 0 0 18px; font: 700 clamp(2.6rem, 6vw, 5.2rem)/.98 var(--serif); letter-spacing: -.05em; }
.auth-story p { max-width: 520px; margin: 0; color: #d5cec5; font: italic 1rem/1.6 var(--serif); }
.auth-panel { display: grid; place-items: center; padding: 50px; background: var(--paper-light); }
.auth-box { width: min(100%, 400px); }
.auth-box .category-label { margin-bottom: 6px; }
.auth-box h2 { margin: 0 0 8px; font: 700 2rem var(--serif); }
.auth-box > p { margin: 0 0 30px; color: var(--muted); font-size: .84rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.form-group label span { color: var(--muted); font-weight: 400; }
.form-control { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #afa69a; border-radius: 0; outline: 0; color: var(--ink); background: white; }
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(161,18,29,.12); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.article-editor { min-height: 360px; font-family: var(--serif); }
.rich-editor-ui { display: none; }
.rich-editor.is-enhanced .rich-editor-ui { display: block; }
.rich-editor.is-enhanced .rich-editor-source { display: none; }
.rich-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px; border: 1px solid #afa69a; border-bottom: 0; background: #eee8dd; }
.rich-editor-toolbar button, .rich-editor-select, .toolbar-color { min-height: 34px; border: 1px solid #b9b0a5; color: var(--ink); background: white; }
.rich-editor-toolbar button { min-width: 35px; padding: 6px 9px; cursor: pointer; font-size: .75rem; }
.rich-editor-toolbar button:hover, .rich-editor-toolbar button:focus-visible, .rich-editor-select:focus-visible, .toolbar-color:focus-within { border-color: var(--red); color: var(--red); outline: 0; }
.rich-editor-select { width: auto; padding: 5px 28px 5px 8px; font-size: .72rem; }
.rich-editor-size { max-width: 105px; }
.toolbar-group { display: inline-flex; gap: 3px; }
.toolbar-group[aria-label="Alignement"] button:nth-child(1) { text-align: left; }
.toolbar-group[aria-label="Alignement"] button:nth-child(2) { text-align: center; }
.toolbar-group[aria-label="Alignement"] button:nth-child(3) { text-align: right; }
.rich-editor-toolbar .toolbar-color { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; margin: 0; cursor: pointer; font: 700 .8rem var(--serif); letter-spacing: normal; }
.rich-editor-toolbar .toolbar-color > span { color: var(--ink); font-weight: 700; }
.toolbar-color input { position: absolute; right: 4px; bottom: 3px; width: 28px; height: 5px; padding: 0; border: 0; cursor: pointer; }
.rich-editor-image-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rich-editor-upload-status { display: block; min-height: 24px; padding: 5px 9px; border-right: 1px solid #afa69a; border-left: 1px solid #afa69a; color: var(--muted); background: #f8f4ec; font-size: .68rem; }
.rich-editor-content { min-height: 360px; padding: 18px; overflow-y: auto; border: 1px solid #afa69a; outline: 0; color: var(--ink); background: white; font: 1rem/1.65 var(--serif); }
.rich-editor-content:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(161,18,29,.12); }
.rich-editor-content.is-invalid { border-color: var(--red); }
.rich-editor-content p { margin: 0 0 1em; }
.rich-editor-content h2 { margin: 1.2em 0 .5em; font-size: 1.65rem; line-height: 1.2; }
.rich-editor-content h3 { margin: 1em 0 .45em; font-size: 1.3rem; line-height: 1.25; }
.rich-editor-content blockquote { margin: 1.2em 1em; padding-left: 16px; border-left: 3px solid var(--red); color: var(--muted); font-style: italic; }
.rich-editor-content figure { position: relative; margin: 1.5em 0; padding: 10px; border: 1px dashed #b9b0a5; background: #f8f4ec; text-align: center; }
.rich-editor-content figure img { width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; object-fit: contain; }
.rich-editor-content figure:hover { border-color: var(--red); }
.rich-editor-content figcaption { margin-top: 7px; color: var(--muted); font-size: .78rem; font-style: italic; }
.rich-editor-content a { color: var(--red); text-decoration: underline; }
.rich-editor-error { display: none; margin: 7px 0 0; color: var(--red); font-size: .72rem; }
.rich-editor-error.is-visible { display: block; }
.form-error { margin: -10px 0 16px; color: var(--red); font-size: .76rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-box .button { width: 100%; }
.discord-login-button { gap: 10px; color: white; background: #5865f2; border-color: #5865f2; }
.discord-login-button:hover { background: #4752c4; border-color: #4752c4; }
.discord-login-button[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.discord-mark { font-size: .72rem; }
.auth-privacy { margin-top: 16px !important; text-align: center; font-size: .72rem !important; }

.admin-main { padding: 38px 0 70px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 22px; border-bottom: 4px double var(--ink); }
.admin-heading h1 { margin: 4px 0 0; font: 700 clamp(2rem, 5vw, 3.5rem)/1 var(--serif); letter-spacing: -.04em; }
.admin-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.stat-card { padding: 20px; border: 1px solid var(--rule); background: var(--paper-light); }
.stat-card strong { display: block; font: 700 2rem var(--serif); }
.stat-card span { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-card { margin-top: 25px; border: 1px solid var(--rule); background: var(--paper-light); }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--rule); }
.admin-card-header h2 { margin: 0; font: 700 1.15rem var(--serif); }
.admin-card-header p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
.status-tabs { display: flex; gap: 8px; }
.status-tabs a { padding: 6px 10px; color: var(--muted); font-size: .72rem; }
.status-tabs a.active { color: white; background: var(--ink); }
.article-table { width: 100%; border-collapse: collapse; }
.article-table th { padding: 11px 16px; color: var(--muted); background: #eee8dd; text-align: left; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.article-table td { padding: 15px 16px; border-top: 1px solid #ded7cc; font-size: .8rem; vertical-align: middle; }
.article-table td:first-child { width: 48%; }
.article-table strong { display: block; margin-bottom: 4px; font: 700 1rem var(--serif); }
.article-table small { color: var(--muted); }
.table-actions { display: flex; gap: 7px; justify-content: flex-end; }
.badge { display: inline-block; padding: 5px 8px; color: #81530c; background: #f1dfbd; font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.badge-published { color: #18593f; background: #d7eadf; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 26px; }
.editor-panel { padding: 24px; border: 1px solid var(--rule); background: var(--paper-light); }
.editor-panel h2 { margin: 0 0 20px; font: 700 1.15rem var(--serif); }
.editor-sidebar { position: sticky; top: 18px; }
.editor-help { color: var(--muted); font-size: .75rem; line-height: 1.55; }
.image-preview { margin-top: 12px; max-height: 170px; object-fit: cover; }
.cover-image-current { transition: opacity .2s ease; }
.cover-image-current.is-marked-for-removal .image-preview { opacity: .3; filter: grayscale(1); }
.form-group .cover-remove-option { justify-content: flex-start; align-items: center; gap: 8px; margin: 10px 0 0; padding: 9px 10px; border: 1px solid #d4c8ba; color: var(--red); background: #f8eee9; cursor: pointer; letter-spacing: normal; }
.form-group .cover-remove-option span { color: inherit; font-weight: 600; }
.cover-remove-option input { margin: 0; }
.category-manager { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 26px; }
.category-form-panel { position: sticky; top: 18px; }
.category-list-card { margin-top: 0; }
.category-table th:first-child { width: 125px; }
.category-table th:nth-child(3) { width: 90px; }
.category-order-cell { display: flex; align-items: center; gap: 8px; }
.category-order { width: 62px; min-height: 36px; padding: 6px 8px; text-align: center; }
.direction-role-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--red); background: var(--paper-light); }
.direction-role-banner p { margin: 6px 0 0; color: var(--muted); }
.permission-manager { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.permission-create-panel { position: sticky; top: 18px; }
.permission-role-list { display: grid; gap: 18px; }
.permission-role-card { margin-top: 0; }
.permission-role-card .admin-card-header { align-items: start; }
.permission-role-name { max-width: 360px; font-weight: 700; }
.permission-checklist { display: grid; gap: 10px; margin: 0; padding: 18px 20px; border: 0; }
.permission-checklist legend { padding-top: 18px; font-weight: 700; }
.permission-checklist label { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; cursor: pointer; }
.permission-checklist input { margin-top: 3px; accent-color: var(--red); }
.permission-role-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 20px; }
.drag-handle { color: var(--muted); cursor: grab; font-size: 1.25rem; letter-spacing: -5px; user-select: none; }
.sortable-row { transition: opacity .15s ease, background-color .15s ease; }
.sortable-row.is-dragging { opacity: .35; background: #eadfce; }
.order-changed { box-shadow: inset 3px 0 var(--red); }

@media (max-width: 820px) {
    .shell { width: min(100% - 28px, 680px); }
    .utility-inner p, .signed-in, .masthead-badge { display: none; }
    .utility-inner { justify-content: flex-end; }
    .masthead { min-height: 100px; }
    .brand { grid-template-columns: 45px auto; }
    .brand-mark { width: 45px; height: 45px; font-size: 2rem; }
    .brand-name { font-size: clamp(1.55rem, 7vw, 2.2rem); }
    .menu-toggle { position: absolute; left: 0; display: grid; gap: 4px; padding: 8px; border: 0; background: transparent; }
    .menu-toggle > span:not(.sr-only) { width: 22px; height: 2px; background: var(--ink); }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .nav-inner { align-items: center; flex-direction: column; gap: 0; padding: 12px 0; }
    .nav-inner a { width: 100%; text-align: center; }
    .edition-heading { align-items: start; flex-direction: column; }
    .edition-heading p { text-align: left; }
    .lead-grid { grid-template-columns: 1fr; }
    .lead-story { padding: 0; border: 0; }
    .story-visual { min-height: 480px; }
    .side-card { padding: 21px 0; }
    .article-grid { grid-template-columns: 1fr 1fr; }
    .news-card, .news-card:nth-child(3n+2), .news-card:nth-child(3n) { padding: 22px; border: 0; border-bottom: 1px solid var(--rule); }
    .news-card:nth-child(even) { border-left: 1px solid var(--rule); }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-story { min-height: 390px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .editor-layout { grid-template-columns: 1fr; }
    .editor-sidebar { position: static; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .category-manager, .permission-manager { grid-template-columns: 1fr; }
    .category-form-panel, .permission-create-panel { position: static; }
    .article-table thead { display: none; }
    .article-table, .article-table tbody, .article-table tr, .article-table td { display: block; width: 100%; }
    .article-table tr { padding: 12px 0; border-top: 1px solid var(--rule); }
    .article-table td { padding: 5px 16px; border: 0; }
    .article-table td:first-child { width: 100%; }
    .table-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .story-visual { min-height: 430px; }
    .lead-content { padding: 25px; }
    .article-grid { grid-template-columns: 1fr; }
    .news-card, .news-card:nth-child(3n+2), .news-card:nth-child(3n), .news-card:nth-child(even) { padding: 22px 0; border-left: 0; }
    .article-sheet { width: 100%; margin: 0; padding: 32px 20px 48px; box-shadow: none; }
    .draft-banner { margin: -32px -20px 32px; }
    .article-cover { height: 62vw; margin: 30px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid > div:first-child { grid-column: auto; }
    .auth-panel { padding: 45px 25px; }
    .admin-heading { align-items: start; flex-direction: column; }
    .admin-heading-actions { width: 100%; justify-content: flex-start; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-card-header { align-items: start; flex-direction: column; gap: 12px; }
}
