:root {
    --bg: #101114;
    --panel: #17191f;
    --panel-soft: #1d2028;
    --text: #f3efe8;
    --muted: #b7afa4;
    --line: #2c303a;
    --accent: #d33f49;
    --accent-strong: #ff5964;
    --gold: #f59e0b;
    --gold-strong: #ffb020;
    --shadow: rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 78% 8%, rgba(245, 158, 11, 0.13), transparent 26rem),
        linear-gradient(180deg, rgba(211, 63, 73, 0.08), transparent 24rem),
        var(--bg);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.text-link {
    color: var(--accent-strong);
    font-weight: 700;
}

.text-link + .text-link {
    margin-left: 10px;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 17, 20, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.brand {
    display: grid;
    gap: 2px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
}

.brand span {
    font-size: 1.12rem;
}

.brand b {
    font-weight: 800;
}

.brand em {
    color: var(--gold-strong);
    font-style: normal;
}

.brand span small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand > small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
    border-color: var(--gold);
    color: var(--text);
    background: rgba(245, 158, 11, 0.1);
}

.main-content {
    padding: 56px 0;
}

.hero {
    max-width: 860px;
    padding: 28px 0 24px;
}

.hero-compact {
    max-width: 760px;
}

.eyebrow,
.card-kicker {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
}

h2 {
    margin-bottom: 0;
    font-size: 1.65rem;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.hero-copy {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-block {
    margin-top: 44px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.section-heading h2 {
    line-height: 1.15;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.status-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
    box-shadow: 0 18px 40px var(--shadow);
}

.card p,
.card span {
    color: var(--muted);
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.link-card:hover,
.link-card:focus {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.article-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.article-feed-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--panel);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article-feed-card:hover,
.article-feed-card:focus-within {
    border-color: rgba(255, 89, 100, 0.58);
    box-shadow: 0 18px 44px var(--shadow);
    transform: translateY(-2px);
}

.article-feed-card h3 {
    margin-bottom: 12px;
    font-size: 1.28rem;
    line-height: 1.22;
}

.article-feed-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-feed-card h3 a:hover,
.article-feed-card h3 a:focus {
    color: var(--accent-strong);
}

.article-feed-card p {
    color: var(--muted);
}

.article-feed-card > p:not(.card-kicker) {
    margin-bottom: 18px;
}

.article-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.related-article-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.notice-card {
    margin-top: 16px;
    min-height: auto;
}

.diagnostic-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 40px var(--shadow);
}

.diagnostic-row {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 14px 16px;
}

.diagnostic-row:first-child {
    border-top: 0;
}

.diagnostic-row-head {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--muted);
    font-size: 0.85rem;
}

.status-pill-ok {
    border-color: rgba(73, 191, 134, 0.45);
    color: #8ee0b3;
}

.status-pill-warning {
    border-color: rgba(255, 190, 91, 0.5);
    color: #ffd08a;
}

.role-pill-owner {
    border-color: rgba(245, 158, 11, 0.55);
    color: var(--gold-strong);
}

.role-pill-admin {
    border-color: rgba(73, 191, 134, 0.45);
    color: #8ee0b3;
}

.role-pill-publisher {
    border-color: rgba(106, 166, 255, 0.45);
    color: #9cc4ff;
}

.admin-session-note {
    color: var(--muted);
}

.admin-session-note a {
    color: var(--accent-strong);
}

.admin-hero {
    display: grid;
    gap: 12px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.admin-nav a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--muted);
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a:focus,
.admin-nav a.is-active {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(211, 63, 73, 0.12);
}

.auth-shell {
    display: grid;
    min-height: 58vh;
    place-items: center;
}

.auth-panel {
    width: min(460px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
    box-shadow: 0 18px 40px var(--shadow);
}

.auth-panel h1 {
    font-size: 2.4rem;
}

.signup-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.auth-form label {
    color: var(--muted);
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    background: #111318;
    font: inherit;
}

.auth-form input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(211, 63, 73, 0.22);
}

.auth-form button {
    margin-top: 10px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    background: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.auth-form button:hover,
.auth-form button:focus {
    background: var(--accent-strong);
}

.form-error {
    border: 1px solid rgba(255, 190, 91, 0.5);
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffd08a;
    background: rgba(255, 190, 91, 0.08);
}

.button-link,
.form-actions button,
.form-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text);
    background: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover,
.button-link:focus,
.form-actions button:hover,
.form-actions button:focus {
    background: var(--accent-strong);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    min-height: min(650px, calc(100vh - 90px));
    padding: 40px 0 32px;
}

.home-hero-copy {
    max-width: 780px;
}

.home-hero h1 {
    max-width: 780px;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: 0.92;
}

.home-hero .hero-copy {
    max-width: 660px;
    font-size: 1.16rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}

.home-hero-panel {
    display: grid;
    gap: 14px;
}

.home-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 18px 40px var(--shadow);
    object-fit: cover;
}

.home-stat-card,
.home-about-card,
.featured-card,
.recent-stack,
.coverage-card,
.coverage-area-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--panel);
    box-shadow: 0 22px 54px var(--shadow);
}

.home-stat-card {
    display: grid;
    gap: 2px;
    padding: 22px;
}

.home-stat-card span {
    color: var(--gold-strong);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.home-stat-card strong {
    color: var(--text);
}

.home-about-card {
    padding: 22px;
}

.home-about-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 20px;
}

.featured-card {
    overflow: hidden;
}

.featured-media,
.coverage-thumb {
    display: block;
    overflow: hidden;
    background: var(--panel-soft);
}

.featured-media img,
.coverage-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 220ms ease;
}

.featured-media img {
    aspect-ratio: 21 / 9;
    max-height: 300px;
}

.featured-card:hover .featured-media img,
.coverage-card:hover .coverage-thumb img {
    transform: scale(1.025);
}

.featured-body {
    padding: clamp(22px, 4vw, 34px);
}

.featured-body h3 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

.featured-body h3 a,
.recent-item h3 a,
.coverage-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.featured-body h3 a:hover,
.featured-body h3 a:focus,
.recent-item h3 a:hover,
.recent-item h3 a:focus,
.coverage-card h3 a:hover,
.coverage-card h3 a:focus {
    color: var(--gold-strong);
}

.featured-body p,
.coverage-card-body p,
.recent-item p {
    color: var(--muted);
}

.recent-stack {
    display: grid;
    gap: 0;
    align-content: start;
    padding: 20px;
}

.recent-stack > .eyebrow {
    margin-bottom: 12px;
}

.recent-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.recent-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.recent-item:last-child {
    padding-bottom: 0;
}

.recent-item h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.recent-empty {
    display: grid;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.recent-empty strong {
    color: var(--text);
}

.recent-empty span {
    color: var(--muted);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.coverage-card {
    overflow: hidden;
}

.coverage-thumb img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
}

.coverage-card-body {
    padding: 18px;
}

.coverage-card h3 {
    font-size: 1.22rem;
    line-height: 1.22;
}

.coverage-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.coverage-area-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 20px;
}

.more-articles-section {
    margin-top: 26px;
}

.more-article-grid {
    margin-top: 16px;
}

.more-article-card {
    min-width: 0;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
    background: var(--panel);
    font-weight: 800;
    text-decoration: none;
}

.pagination-link:hover,
.pagination-link:focus {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.pagination-current {
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--bg);
    background: var(--gold-strong);
}

.coverage-area-card strong {
    color: var(--text);
    text-transform: capitalize;
}

.coverage-area-card span {
    color: var(--muted);
}

.button-link-warning {
    border-color: rgba(255, 190, 91, 0.5);
    color: #ffd08a;
    background: rgba(255, 190, 91, 0.08);
}

.button-link-warning:hover,
.button-link-warning:focus {
    color: var(--bg);
    background: #ffd08a;
}

.admin-form {
    display: grid;
    gap: 12px;
    max-width: 760px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
    box-shadow: 0 18px 40px var(--shadow);
}

.admin-form label {
    color: var(--muted);
    font-weight: 700;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    background: #111318;
    font: inherit;
}

.admin-form input[type="checkbox"] {
    width: auto;
}

.admin-form input[type="file"] {
    padding: 10px;
}

.admin-form textarea {
    resize: vertical;
}

.field-note {
    margin-top: -6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.field-note:empty {
    display: none;
}

.field-note-error {
    color: #ffd08a;
}

.field-label-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.field-label-row label {
    margin: 0;
}

.field-label-text {
    color: var(--muted);
    font-weight: 700;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(211, 63, 73, 0.22);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-actions form {
    margin: 0;
}

.button-link-compact {
    padding: 7px 10px;
    font-size: 0.9rem;
}

.button-link-secondary {
    border-color: var(--line);
    color: var(--muted);
    background: transparent;
}

.button-link-secondary:hover,
.button-link-secondary:focus {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(104, 166, 255, 0.08);
}

.button-link:disabled,
.button-link[disabled] {
    cursor: wait;
    opacity: 0.65;
}

.text-button {
    border: 0;
    padding: 0;
    color: var(--accent-strong);
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.text-button:hover,
.text-button:focus {
    color: var(--text);
}

.form-actions a {
    border-color: var(--line);
    color: var(--muted);
    background: transparent;
}

.form-panel {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.affiliate-link-list {
    display: grid;
    gap: 14px;
}

.affiliate-link-row {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
}

.affiliate-link-row legend {
    padding: 0 6px;
    color: var(--text);
    font-weight: 800;
}

.affiliate-link-controls {
    display: grid;
    gap: 10px;
}

.affiliate-delete-label {
    color: #ffd08a;
}

@media (min-width: 681px) {
    .affiliate-link-controls {
        grid-template-columns: auto minmax(120px, 180px) minmax(120px, 1fr);
        align-items: center;
    }
}

.form-message {
    max-width: 760px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
}

.form-message ul {
    margin-bottom: 0;
}

.form-message-error {
    border-color: rgba(255, 190, 91, 0.5);
    color: #ffd08a;
    background: rgba(255, 190, 91, 0.08);
}

.form-message-success {
    border-color: rgba(73, 191, 134, 0.45);
    color: #8ee0b3;
    background: rgba(73, 191, 134, 0.08);
}

.publish-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
}

.publish-panel p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
}

.publish-panel form,
.publish-actions form {
    margin: 0;
}

.publish-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-image-preview,
.current-upload-preview img {
    display: block;
    width: min(100%, 420px);
    max-height: 260px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    background: var(--panel-soft);
}

.section-card .admin-image-preview {
    width: 100%;
    margin-bottom: 14px;
}

.current-upload-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--panel);
}

.current-upload-preview p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 40px var(--shadow);
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
    box-shadow: 0 18px 40px var(--shadow);
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.section-card-list {
    display: grid;
    gap: 14px;
}

.section-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
    box-shadow: 0 18px 40px var(--shadow);
}

.section-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted);
}

.section-card p {
    color: var(--muted);
    white-space: pre-wrap;
}

.preview-shell {
    display: grid;
    gap: 24px;
}

.preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 40px);
    background: #14161b;
    box-shadow: 0 18px 40px var(--shadow);
}

.preview-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
}

.preview-header h1 {
    max-width: 900px;
}

.preview-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
}

.preview-slug,
.preview-dek,
.preview-muted {
    color: var(--muted);
}

.preview-dek {
    max-width: 820px;
    font-size: 1.15rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.preview-panel,
.preview-content-block,
.preview-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
}

.preview-definition-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.preview-definition-list dt {
    color: var(--muted);
    font-weight: 700;
}

.preview-definition-list dd {
    margin: 0 0 8px;
}

.preview-content-block {
    margin-top: 24px;
}

.readiness-checklist {
    margin-top: 0;
}

.readiness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.readiness-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.readiness-item h3 {
    margin: 10px 0 6px;
    font-size: 1rem;
}

.readiness-item p {
    margin: 0;
    color: var(--muted);
}

.readiness-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.readiness-pass .readiness-badge {
    background: rgba(68, 186, 128, 0.16);
    color: #8ff0bc;
}

.readiness-warn .readiness-badge {
    background: rgba(230, 177, 77, 0.16);
    color: #ffd58a;
}

.readiness-fail .readiness-badge {
    background: rgba(229, 57, 53, 0.18);
    color: #ff9a96;
}

.readiness-not-available .readiness-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.workflow-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.workflow-filter-tabs a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.workflow-filter-tabs a:hover,
.workflow-filter-tabs a:focus,
.workflow-filter-tabs a.is-active {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(211, 63, 73, 0.12);
}

.workflow-card-list {
    display: grid;
    gap: 16px;
}

.workflow-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr) minmax(220px, 0.7fr);
    gap: 18px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
    box-shadow: 0 18px 40px var(--shadow);
}

.workflow-card h3 {
    margin-bottom: 6px;
}

.workflow-title-row,
.workflow-actions .inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.workflow-state-badge {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.workflow-state-ready .workflow-state-badge,
.workflow-state-published .workflow-state-badge {
    border-color: rgba(73, 191, 134, 0.45);
    color: #8ee0b3;
}

.workflow-state-needs-work .workflow-state-badge {
    border-color: rgba(255, 190, 91, 0.5);
    color: #ffd08a;
}

.workflow-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.workflow-meta-grid dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workflow-meta-grid dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.workflow-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-check {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.workflow-check-pass {
    border-color: rgba(73, 191, 134, 0.45);
    color: #8ee0b3;
}

.workflow-check-fail {
    border-color: rgba(255, 190, 91, 0.5);
    color: #ffd08a;
}

.workflow-actions {
    display: grid;
    gap: 12px;
}

.workflow-actions p {
    margin: 0;
    color: var(--muted);
}

.workflow-actions form {
    margin: 0;
}

.public-article,
.article-not-found {
    max-width: 1180px;
    margin: 0 auto;
}

.public-article-header {
    margin-bottom: 26px;
}

.public-article-dek {
    max-width: 840px;
    color: var(--muted);
    font-size: 1.22rem;
    line-height: 1.7;
}

.public-article-context {
    color: var(--muted);
    font-weight: 700;
}

.public-article-context span {
    color: var(--accent-strong);
    margin: 0 8px;
}

.public-article-block {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 24px;
}

.public-copy,
.public-section-list {
    display: grid;
    gap: 20px;
}

.public-article img,
.public-article-block img,
.public-copy img,
.public-section img,
.article-hero img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.public-copy p,
.public-section p {
    color: var(--text);
    font-size: 1.03rem;
    line-height: 1.8;
    white-space: normal;
}

@media (min-width: 681px) {
    .public-article-dek {
        line-height: 1.55;
    }

    .public-copy p,
    .public-section p {
        line-height: 1.5;
    }
}

.public-copy h3,
.public-section h3 {
    margin-top: 8px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.public-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        var(--panel);
}

.article-shell {
    display: block;
}

.article-hero {
    margin: 0 0 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 18px 40px var(--shadow);
}

.article-hero img {
    max-height: 430px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--panel-soft);
}

.article-hero figcaption,
.section-image figcaption {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.article-hero figcaption strong,
.section-image figcaption strong {
    color: var(--accent-strong);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
    gap: 32px;
    align-items: start;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.article-main {
    min-width: 0;
    max-width: none;
}

.article-section-card {
    padding: 24px;
}

.verdict-callout,
.sidebar-card {
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.11), rgba(255, 255, 255, 0.02)),
        var(--panel);
    box-shadow: 0 18px 42px var(--shadow);
}

.verdict-callout {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    padding: 22px;
}

.verdict-callout span {
    width: fit-content;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--gold-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verdict-callout p {
    margin: 0;
    color: var(--text);
    font-size: 1.06rem;
    line-height: 1.75;
}

@media (min-width: 681px) {
    .verdict-callout p {
        line-height: 1.6;
    }
}

.article-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.sidebar-card {
    padding: 18px;
}

.article-meta-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.article-meta-list div {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.article-meta-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.article-meta-list dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-meta-list dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 700;
}

.affiliate-brief-block {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.affiliate-brief-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.affiliate-brief-list .affiliate-brief-block {
    margin-top: 0;
}

.affiliate-merchant {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.affiliate-brief-link {
    display: inline-flex;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.46);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--bg);
    background: var(--gold-strong);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.affiliate-brief-link:hover,
.affiliate-brief-link:focus {
    background: var(--text);
}

.affiliate-disclosure {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.sidebar-latest-list {
    display: grid;
    gap: 0;
}

.sidebar-latest-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

.sidebar-latest-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.sidebar-latest-item:last-child {
    padding-bottom: 0;
}

.sidebar-latest-item h3 {
    font-size: 1rem;
    line-height: 1.24;
}

.sidebar-latest-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.sidebar-latest-item h3 a:hover,
.sidebar-latest-item h3 a:focus {
    color: var(--gold-strong);
}

.sidebar-latest-item time {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.section-image {
    width: min(260px, 34%);
    margin: 4px 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel);
}

.section-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--panel-soft);
}

.section-image-left .section-image {
    float: left;
    margin-right: 18px;
}

.section-image-right .section-image {
    float: right;
    margin-left: 18px;
}

.section-image-top .section-image,
.section-image-full .section-image {
    width: 100%;
    margin: 0 0 18px;
}

.section-image-top .section-image img,
.section-image-full .section-image img {
    max-width: 100%;
    max-height: 360px;
}

.section-image figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.section-copy {
    min-width: 0;
    display: flow-root;
}

.preview-copy,
.preview-section-list {
    display: grid;
    gap: 16px;
}

.preview-copy p,
.preview-section p {
    color: var(--muted);
    white-space: pre-wrap;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.12)),
        #0c0d11;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(150px, 0.55fr));
    gap: 18px;
    padding: 34px 0 24px;
}

.footer-brand-card,
.footer-link-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--panel);
}

.footer-brand {
    width: fit-content;
    margin-bottom: 16px;
}

.footer-brand-card p {
    max-width: 560px;
    margin-bottom: 0;
}

.footer-link-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-link-card a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.footer-link-card a:hover,
.footer-link-card a:focus {
    color: var(--gold-strong);
}

.footer-note {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0 22px;
}

.public-page-card {
    max-width: 860px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: clamp(24px, 5vw, 44px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--panel);
    box-shadow: 0 22px 54px var(--shadow);
}

.public-page-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.admin-public-notice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 10px 12px;
    color: #ffd08a;
    background: rgba(245, 158, 11, 0.08);
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-public-notice a {
    color: var(--gold-strong);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 680px) {
    .header-inner,
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .main-content {
        padding: 36px 0;
    }

    .card {
        min-height: auto;
    }

    .diagnostic-row {
        grid-template-columns: 1fr;
    }

    .workflow-card {
        grid-template-columns: 1fr;
    }

    .workflow-meta-grid {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .featured-layout {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        padding-top: 22px;
    }

    .home-hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.6rem);
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-actions .button-link {
        width: 100%;
    }

    .coverage-grid,
    .coverage-area-grid {
        grid-template-columns: 1fr;
    }

    .article-feed-grid {
        grid-template-columns: 1fr;
    }

    .public-article-header {
        margin-bottom: 28px;
    }

    .article-hero {
        margin-bottom: 28px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .article-sidebar {
        position: static;
    }

    .article-hero img,
    .public-article img {
        max-height: 360px;
    }

    .section-image,
    .section-image-left .section-image,
    .section-image-right .section-image,
    .section-image-top .section-image,
    .section-image-full .section-image {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }

    .section-image img {
        max-width: 100%;
        max-height: 360px;
    }
}
