/* Admin desk layout. Shares the public editorial palette. */

body.is-admin {
    margin: 0;
    background: #f3f3f1;
    color: #1c1c1c;
    font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
}

body.is-admin .site-main {
    max-width: none;
    margin: 0;
    padding: 28px 32px 48px;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-top {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-brand {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Playfair Display", Palatino, Georgia, serif;
    font-size: 22px;
    line-height: 1;
}

.admin-brand a {
    color: #161616;
    text-decoration: none;
}

.admin-brand img {
    display: block;
    height: 34px;
    width: auto;
    max-height: 34px;
}

.sw-logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-height: 52px;
    margin: 0 auto 4px;
}

.sw-logo-img--light {
    height: 48px;
    max-height: 48px;
    margin: 0;
}

.sw-logo-img--small {
    height: 32px;
    max-height: 32px;
    margin: 0;
}

.admin-brand span {
    margin-left: 0;
    font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c42324;
}

.admin-top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.admin-top-actions a {
    color: #333;
    text-decoration: none;
}

.admin-top-actions a:hover {
    color: #1a4f9c;
}

.admin-who {
    color: #666;
}

body.is-admin .admin-menu {
    display: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
    padding: 6px 10px;
    cursor: pointer;
    font: inherit;
}

body.is-admin .admin-top-actions button {
    border: 1px solid #1c1c1c;
    background: #1c1c1c;
    color: #fff;
    padding: 6px 12px;
    font: inherit;
    cursor: pointer;
}

.admin-frame {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.admin-side {
    width: 230px;
    flex: 0 0 230px;
    background: #1c1f24;
    color: #d5d5d5;
    padding: 22px 0 32px;
}

.admin-side-label {
    margin: 0 20px 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8d939b;
}

.admin-side nav {
    display: flex;
    flex-direction: column;
}

.admin-side a {
    color: #e8e8e8;
    text-decoration: none;
    padding: 10px 20px;
    border-left: 3px solid transparent;
}

.admin-side a:hover,
.admin-side a.is-active {
    background: #2a2e34;
    color: #fff;
    border-left-color: #c42324;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-main h1 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Palatino, Georgia, serif;
    font-size: 34px;
    font-weight: 600;
}

.admin-lead {
    margin: 0 0 22px;
    color: #666;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.stat-card {
    display: block;
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 18px 18px 16px;
    text-decoration: none;
    color: inherit;
}

.stat-card strong {
    display: block;
    font-family: "Playfair Display", Palatino, Georgia, serif;
    font-size: 32px;
    line-height: 1;
    color: #c42324;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: #555;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e7e7e7;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #eee;
    text-align: left;
    padding: 0.7rem 0.75rem;
    vertical-align: top;
}

.admin-table th {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
    font-weight: 650;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.admin-actions form {
    display: inline;
    margin: 0;
}

.admin-actions a {
    color: #1a4f9c;
    text-decoration: none;
}

.admin-date {
    white-space: nowrap;
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eee;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    text-transform: capitalize;
}

.status-published,
.status-approved {
    background: #e7f6ec;
    color: #1d6b3a;
}

.status-draft,
.status-pending {
    background: #fff3d6;
    color: #8a5a00;
}

.status-hidden {
    background: #f8e6e6;
    color: #8a1f1f;
}

.admin-btn {
    display: inline-block;
    background: #c42324;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
}

.admin-btn:hover {
    color: #fff;
    opacity: 0.9;
}

body.is-admin .admin-actions button {
    background: transparent;
    color: #8a1f1f;
    padding: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.admin-filters {
    display: flex;
    gap: 14px;
}

.admin-filters a {
    color: #555;
    text-decoration: none;
}

.admin-filters a.is-active {
    color: #1a4f9c;
    font-weight: 650;
}

.admin-flag {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    color: #1a4f9c;
}

.form-success {
    color: #1d6b3a;
}

body.is-admin form label {
    font-weight: 650;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

body.is-admin input[type="email"],
body.is-admin input[type="password"],
body.is-admin input[type="text"],
body.is-admin input[type="file"],
body.is-admin select,
body.is-admin textarea {
    width: 100%;
    max-width: 40rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d0d0d0;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

body.is-admin .admin-main > form {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 18px 18px 8px;
    max-width: 52rem;
}

.rte-field {
    margin: 0 0 1rem;
}

.rte-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

body.is-admin .rte-bar button,
.rte-upload {
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #222;
    padding: 4px 8px;
    font: inherit;
    cursor: pointer;
}

.rte-upload input {
    display: none;
}

.rte-area {
    min-height: 280px;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    line-height: 1.6;
}

.rte-area:focus {
    outline: 2px solid #9ec0ef;
}

.rte-area img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.75rem 0;
}

.rte-error {
    color: #8a1f1f;
    margin: 6px 0 0;
}

body.is-admin .admin-main > form button[type="submit"] {
    background: #c42324;
    color: #fff;
    border: 0;
    padding: 10px 16px;
    font: inherit;
    cursor: pointer;
}

body.is-admin .admin-main > form p:last-child a {
    margin-left: 12px;
    color: #333;
}

.admin-auth {
    max-width: 460px;
    margin: 24px auto;
}

.admin-auth h1 {
    text-align: left;
}

@media (max-width: 860px) {
    .admin-top {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .admin-brand {
        flex: 1;
        min-width: 0;
        font-size: 18px;
    }

    .admin-top-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    body.is-admin .admin-menu {
        display: inline-block;
    }

    .admin-who {
        display: none;
    }

    .admin-side {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        z-index: 30;
        transform: translateX(-100%);
    }

    body.admin-nav-open .admin-side {
        transform: none;
    }

    body.is-admin .site-main {
        padding: 20px 16px 36px;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

body.is-login {
    margin: 0;
    background: #f7f7f8;
    color: #1c1c1c;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.newsroom {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.newsroom-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    min-height: 0;
}

.newsroom-hero {
    color: #fff;
    background-color: #111;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 36px 22px;
    min-height: 640px;
}

.sw-logo {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 34px;
    line-height: 1;
    color: #111;
}

.sw-logo span {
    color: #e10600;
    position: relative;
}

.sw-logo span::before {
    content: "";
    position: absolute;
    left: 0.42em;
    top: -0.42em;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 9px solid #e10600;
}

.sw-logo--light {
    color: #fff;
    font-size: 42px;
}

.sw-logo--small {
    font-size: 18px;
}

.sw-kicker {
    margin: 8px 0 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #d7d7d7;
}

.sw-kicker--center {
    text-align: center;
    color: #8a8a8a;
    margin-bottom: 18px;
}

.newsroom-hero-top,
.newsroom-hero-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.newsroom-hero-links {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.newsroom-hero-links p {
    margin: 0;
}

.newsroom-script {
    letter-spacing: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 18px;
}

.newsroom-script em {
    color: #ff4d4d;
}

.newsroom-hero-copy h1 {
    margin: 18px 0 16px;
    max-width: 18ch;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.newsroom-hero-copy h1 span {
    color: #ff3b3b;
    font-weight: 650;
}

.newsroom-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 0;
    font-size: 14px;
}

.newsroom-pills a {
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.newsroom-pills a:first-child {
    padding-left: 0;
    border-left: 0;
}

.newsroom-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.newsroom-features strong,
.newsroom-features span {
    display: block;
}

.newsroom-features strong {
    font-size: 13px;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.newsroom-features span {
    color: #d5d5d5;
    font-size: 13px;
    line-height: 1.4;
}

.newsroom-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 32px 24px;
}

.newsroom-card {
    width: min(420px, 100%);
    max-width: 100%;
}

.newsroom-card .sw-logo,
.newsroom-card .sw-kicker {
    text-align: center;
}

.newsroom-card .sw-logo {
    font-size: 36px;
}

.newsroom-card h2 {
    margin: 0;
    text-align: center;
    font-size: 30px;
    font-weight: 750;
}

.newsroom-sub {
    margin: 6px 0 18px;
    text-align: center;
    color: #666;
}

.newsroom-card label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.newsroom-card .field {
    display: block;
    position: relative;
}

body.is-login .newsroom-card input[type="email"],
body.is-login .newsroom-card input[type="password"] {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 12px 44px 12px 14px;
    font: inherit;
}

.remember {
    font-weight: 500;
}

.newsroom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 14px 0 16px;
    font-size: 14px;
}

.newsroom-row a {
    color: #e10600;
    text-decoration: none;
}

body.is-login .newsroom-submit {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: #e10600;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 14px 16px;
    cursor: pointer;
}

body.is-login .pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    padding: 4px 6px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.newsroom-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    margin: 18px 0 10px;
}

.newsroom-or::before,
.newsroom-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.newsroom-help {
    text-align: center;
    color: #555;
}

.newsroom-help a {
    color: #1565c0;
}

.newsroom-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 28px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
}

.newsroom-foot p {
    margin: 0;
}

.newsroom-socials {
    display: flex;
    gap: 8px;
}

.newsroom-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
}

@media (max-width: 980px) {
    .newsroom-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .newsroom-panel,
    .newsroom-hero,
    .newsroom-card {
        min-width: 0;
    }

    .newsroom-row {
        flex-wrap: wrap;
    }

    .newsroom-help {
        overflow-wrap: anywhere;
    }

    .newsroom-hero {
        min-height: 0;
        order: 2;
    }

    .newsroom-features {
        grid-template-columns: 1fr 1fr;
    }

    .newsroom-hero-top {
        flex-direction: column;
    }

    .newsroom-hero-links {
        align-items: flex-start;
        text-align: left;
    }
}
