:root {
    color-scheme: light;
    --bg: #f4f8f6;
    --panel: #ffffff;
    --text: #1f2a30;
    --muted: #66757d;
    --line: #dbe6e2;
    --brand: #176f4d;
    --brand-dark: #0f5138;
    --accent: #f0a202;
    --danger: #b42318;
    --shadow: 0 16px 40px rgba(29, 39, 57, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar__inner,
.wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero {
    padding: 52px 0 30px;
    position: relative;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1::after {
    content: '';
    display: block;
    width: 84px;
    height: 6px;
    margin-top: 18px;
    background: var(--accent);
    border-radius: 999px;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

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

.card,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
    border-left: 5px solid var(--brand);
}

.card h2,
.card h3 {
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: 0;
}

.meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.body-text {
    white-space: pre-wrap;
}

.panel {
    padding: 22px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.school-note {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.button,
button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 16px;
}

.button:hover,
button:hover {
    background: var(--brand-dark);
    text-decoration: none;
}

.button.secondary,
button.secondary {
    background: #eef2f6;
    color: var(--text);
}

.button.danger,
button.danger {
    background: var(--danger);
}

form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 12px 13px;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

.hint,
.empty {
    color: var(--muted);
}

.flash {
    border-radius: 8px;
    padding: 13px 15px;
    background: #eaf7f2;
    border: 1px solid #b8dfd0;
    color: #0f4c43;
}

.flash.error {
    background: #fff0ed;
    border-color: #f4b8ac;
    color: var(--danger);
}

.admin-grid {
    display: grid;
    gap: 18px;
    padding-bottom: 56px;
}

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

.inline-form {
    display: inline;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 24px 0;
}

@media (max-width: 760px) {
    .topbar__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px 0;
    }

    .layout,
    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 34px;
    }
}

