:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #19202a;
    --muted: #667085;
    --line: #dde3ee;
    --brand: #1f4fa3;
    --brand-dark: #173b7a;
    --success: #0f8a4b;
    --danger: #b42318;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.site-header {
    background: #0f1722;
    color: #fff;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.site-header h1 { margin: 0; font-size: 24px; }
.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
}
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.welcome { font-size: 14px; color: #d7e0ef; }
main.container { padding: 24px 0 48px; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 24px rgba(16, 24, 40, 0.05);
}
.hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.hero h2, .card h2, .card h3 { margin-top: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}
.toc { position: sticky; top: 20px; height: fit-content; }
.toc ol { padding-left: 20px; margin: 0; }
.content { display: grid; gap: 16px; }
.section-card {
    display: grid;
    grid-template-columns: 29px 1fr;
    gap: 18px;
}
.section-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--brand);
    margin-top:-5px;
}
.rich-text p:first-child { margin-top: 0; }
.rich-text p:last-child { margin-bottom: 0; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.button.secondary { background: #fff; color: var(--brand); }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.button.ghost2 { background: transparent; color: var(--brand); border-color: rgba(255,255,255,.25); }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.small { padding: 8px 10px; font-size: 13px; }
.login-card, .narrow-card { max-width: 520px; margin: 40px auto; }
label span { display: block; margin-bottom: 6px; font-weight: 700; }
input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c7d0dd;
    border-radius: 10px;
    background: #fff;
}
.stack { display: grid; gap: 14px; }
.note, .muted { color: var(--muted); }
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert.success { background: #edfdf3; color: #067647; border-color: #abe6c4; }
.alert.error { background: #fef3f2; color: #b42318; border-color: #f5b5b0; }
.status-badge {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}
.status-badge.success { background: #edfdf3; color: #067647; }
.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
}
th { font-size: 14px; color: var(--muted); }
.inline-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}
.footer-inner { padding: 20px 0; color: var(--muted); font-size: 14px; }
.print-body { background: #fff; }
.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: center;
}
.print-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 22px 60px;
}
.print-header { margin-bottom: 24px; }
.print-section {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    break-inside: avoid;
}
@media (max-width: 960px) {
    .layout, .grid-two, .hero, .header-inner { grid-template-columns: 1fr; display: block; }
    .toc { position: static; margin-bottom: 20px; }
    .hero-actions { align-items: flex-start; margin-top: 16px; }
    .nav-actions { margin-top: 14px; }
}
@media print {
    .no-print, .site-header, .site-footer { display: none !important; }
    body { background: #fff; }
    .print-container { max-width: 100%; padding: 0; }
    .print-section { page-break-inside: avoid; }
}
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c7d0dd;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    line-height: 1.5;
}
.alert.warning { background: #fffaeb; color: #b54708; border-color: #f7d184; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.stat-card .big-number {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin: 8px 0;
}
.stat-card .big-number.small { font-size: 26px; word-break: break-word; }
.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.top-gap { margin-top: 16px; }
.admin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.admin-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.edit-layout { align-items: start; }
code {
    background: #eef2f8;
    border-radius: 6px;
    padding: 2px 6px;
}
@media (max-width: 960px) {
    .dashboard-grid, .admin-stats { grid-template-columns: 1fr; }
    .admin-list li { flex-direction: column; align-items: flex-start; }
}

.logo {
  display:block;
  width:100px;
  height:auto;
}
