:root {
    --blue: #062037;
    --red: #db262b;
    --yellow: #fbbf41;
    --green: #077540;
    --ink: #101827;
    --muted: #5b6673;
    --line: #d9dee5;
    --paper: #ffffff;
    --soft: #f8f5ef;
    --shadow: 0 18px 40px rgba(6, 32, 55, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Source Sans 3", Lato, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.narrow {
    max-width: 640px;
}

.topbar {
    background: var(--blue);
    color: #fff;
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.topbar nav,
.main-nav,
.site-footer a,
.admin-sidebar nav {
    display: flex;
    gap: 22px;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 96px;
}

.brand img {
    width: 220px;
}

.main-nav {
    flex: 1;
    justify-content: center;
    font-size: 15px;
}

.main-nav a {
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a.is-active,
.main-nav a:hover {
    color: var(--red);
    border-color: var(--red);
}

.icon-button,
.button,
button {
    border: 0;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 18px;
}

.button--ghost {
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--line);
}

.button--blue {
    background: var(--blue);
}

.hero,
.section,
.page-heading {
    padding: 42px 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 8px;
}

.feature-stack {
    display: grid;
    gap: 8px;
}

.feature-card {
    min-height: 210px;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(6, 32, 55, 0.88), rgba(6, 32, 55, 0.42)),
        linear-gradient(135deg, #0d3558, #2c5a74);
    display: flex;
    align-items: end;
}

.feature-card--large {
    min-height: 430px;
}

.feature-card h1,
.feature-card h2 {
    max-width: 680px;
    margin: 8px 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.06;
}

.feature-card h1 {
    font-size: clamp(34px, 5vw, 54px);
}

.feature-card h2 {
    font-size: 26px;
}

.eyebrow {
    color: var(--red);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow--yellow {
    color: var(--yellow);
}

.eyebrow--green {
    color: var(--green);
}

.meta {
    color: inherit;
    font-size: 13px;
    opacity: 0.82;
}

.meta--dark {
    color: var(--muted);
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.section-title h2,
.page-heading h1,
.admin-heading h1 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
}

.column-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.column-card,
.panel,
.metric-card,
.admin-panel,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.column-card {
    padding: 20px;
}

.column-card h3,
.list-card h2 {
    color: var(--blue);
    margin: 8px 0;
}

.newsletter {
    padding: 22px 0 48px;
}

.newsletter__inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 24px;
    align-items: center;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    padding: 26px 32px;
}

.newsletter h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.newsletter form,
.search-form {
    display: flex;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    padding: 12px 14px;
}

.newsletter input,
.search-form input {
    border-radius: 6px 0 0 6px;
}

.newsletter button,
.search-form button {
    border-radius: 0 6px 6px 0;
}

.site-footer {
    background: var(--blue);
    color: #fff;
    padding: 40px 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
}

.site-footer h2 {
    font-size: 14px;
    text-transform: uppercase;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.84);
    margin: 7px 0;
}

.footer-logo {
    width: 190px;
}

.breadcrumb,
.page-heading p,
.column-card p,
.list-card p,
.admin-heading p,
.admin-heading span,
.admin-topbar span,
.auth-card p {
    color: var(--muted);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.article-list {
    display: grid;
    gap: 18px;
}

.list-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.list-card__thumb {
    min-height: 150px;
    background: linear-gradient(135deg, #c9d4dc, #6f879b);
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.panel {
    padding: 20px;
}

.panel--dark {
    color: #fff;
    background: var(--blue);
}

.stacked-form,
.public-form {
    display: grid;
    gap: 12px;
}

.stacked-form {
    margin-top: 16px;
}

.stacked-form input,
.stacked-form button {
    border-radius: 6px;
}

.public-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
}

.public-form label {
    color: var(--blue);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--soft);
}

.auth-card {
    width: min(420px, calc(100% - 32px));
    padding: 34px;
    box-shadow: var(--shadow);
}

.auth-card img {
    width: 210px;
    margin-bottom: 28px;
}

.auth-card label {
    display: grid;
    gap: 8px;
    color: var(--blue);
    font-weight: 700;
    margin-top: 16px;
}

.auth-card .button {
    width: 100%;
    margin-top: 22px;
}

.alert {
    border-left: 4px solid var(--red);
    background: #fff4f4;
    padding: 10px 14px;
}

.admin-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: #f4f6f8;
}

.admin-sidebar {
    background: var(--blue);
    color: #fff;
    padding: 24px;
}

.admin-brand img {
    width: 190px;
    margin-bottom: 32px;
}

.admin-sidebar nav {
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar a {
    border-radius: 6px;
    padding: 11px 12px;
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-shell {
    min-width: 0;
}

.admin-topbar {
    min-height: 74px;
    padding: 16px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-topbar div,
.admin-topbar form {
    display: grid;
    gap: 2px;
}

.admin-content {
    padding: 30px;
}

.admin-heading {
    margin-bottom: 24px;
}

.admin-heading--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-heading h1 {
    margin: 0;
    font-size: 38px;
}

.metric-card,
.admin-panel {
    padding: 22px;
}

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

.metric-card strong {
    color: var(--blue);
    display: block;
    font-size: 42px;
    line-height: 1;
    margin-top: 12px;
}

.admin-panel {
    margin-top: 24px;
}

.notice {
    border-left: 4px solid var(--green);
    background: #edf8f2;
    color: var(--blue);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 18px 0;
}

.empty-public {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
}

.empty-public h2,
.empty-public h3 {
    color: var(--blue);
    margin-top: 0;
}

.empty-state h2 {
    color: var(--blue);
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

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

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

.admin-table th {
    color: var(--blue);
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.admin-table td span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.status-pill {
    display: inline-block;
    border: 1px solid rgba(219, 38, 43, 0.28);
    border-radius: 999px;
    background: #fff6f6;
    color: var(--red) !important;
    font-size: 12px !important;
    font-weight: 800;
    margin: 0 !important;
    padding: 4px 9px;
    text-transform: uppercase;
}

.table-action {
    color: var(--red);
    font-weight: 800;
}

.editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.editor-form label {
    color: var(--blue);
    display: grid;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 18px;
}

textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    padding: 12px 14px;
}

textarea {
    resize: vertical;
}

.check-row {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 10px !important;
}

.check-row input {
    width: auto;
}

.role-list {
    color: var(--blue);
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.settings-form {
    display: grid;
    gap: 22px;
}

.settings-section {
    margin-top: 0;
}

.settings-section h2 {
    color: var(--blue);
    margin-top: 0;
}

.settings-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid label {
    color: var(--blue);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.settings-grid__wide {
    grid-column: 1 / -1;
}

.settings-actions {
    background: #f4f6f8;
    border-top: 1px solid var(--line);
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 16px 0;
    position: sticky;
}

.editor-form__side {
    position: sticky;
    top: 20px;
}

.editor-form__side .button {
    width: 100%;
}

.form-help {
    color: var(--muted);
    font-size: 13px;
}

.form-divider {
    border-top: 1px solid var(--line);
    margin: 18px 0;
}

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

.review-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
}

.review-card h2 {
    color: var(--blue);
    margin: 10px 0 6px;
}

.review-card p {
    color: var(--muted);
    margin: 0 0 8px;
}

.review-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.review-article h2 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin: 8px 0 10px;
}

.lead {
    color: var(--muted);
    font-size: 20px;
}

.article-body {
    border-top: 1px solid var(--line);
    color: #202936;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.68;
    margin-top: 24px;
    padding-top: 24px;
}

.review-sidebar {
    display: grid;
    gap: 18px;
}

.review-sidebar h2 {
    color: var(--blue);
    font-size: 18px;
    margin-top: 0;
}

.review-action-form {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
}

.review-action-form label {
    color: var(--blue);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.comment-item,
.event-item {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 4px;
    padding: 12px 0;
}

.comment-item:first-of-type,
.event-item:first-of-type {
    border-top: 0;
}

.comment-item p {
    margin: 0;
}

.comment-item span,
.event-item span,
.event-item small {
    color: var(--muted);
    font-size: 13px;
}

.public-article {
    padding: 46px 0 20px;
}

.public-article__header {
    max-width: 980px;
}

.public-article__header h1 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.02;
    margin: 12px 0;
}

.article-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
}

.public-article__body {
    border-top: 1px solid var(--line);
    color: #202936;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.72;
    margin-top: 34px;
    max-width: 760px;
    padding-top: 30px;
}

@media (max-width: 900px) {
    .topbar__inner,
    .site-header__inner,
    .main-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header__inner {
        padding: 18px 0;
    }

    .main-nav {
        width: 100%;
        gap: 8px;
    }

    .hero__grid,
    .newsletter__inner,
    .content-layout,
    .site-footer__grid,
    .admin-page,
    .editor-form,
    .review-layout,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-heading--split {
        align-items: flex-start;
        flex-direction: column;
    }

    .column-grid,
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .review-card {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .column-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .newsletter form,
    .search-form {
        display: grid;
        gap: 10px;
    }

    .newsletter input,
    .newsletter button,
    .search-form input,
    .search-form button {
        border-radius: 6px;
    }
}
