:root {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --soft: #f4f4f4;
    --line: #d7d7d7;
    --muted: #666666;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: inherit; }
.container { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
    border-bottom: 2px solid var(--ink);
    padding: 10px 0;
    background: var(--paper);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 900;
    letter-spacing: -1.5px;
    text-decoration: none;
    white-space: nowrap;
}
.header-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    text-align: right;
}

.hero { padding: 72px 0 52px; border-bottom: 1px solid var(--line); }
.eyebrow {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}
h1 {
    max-width: 900px;
    margin: 0 0 26px;
    font-size: clamp(44px, 9vw, 94px);
    line-height: .92;
    letter-spacing: -4px;
    font-weight: 900;
}
.lead {
    max-width: 760px;
    margin: 0;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.45;
}
.hero-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 42px;
    border: 2px solid var(--ink);
}
.hero-note { padding: 22px; min-height: 124px; }
.hero-note + .hero-note { border-left: 2px solid var(--ink); }
.hero-note strong { display: block; font-size: 29px; line-height: 1; margin-bottom: 10px; }
.hero-note span { font-size: 14px; }

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    padding: 60px 0 80px;
}
.section-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -1px;
}
.section-copy { margin: 0 0 34px; color: #252525; max-width: 720px; }

form { margin: 0; }
.form-section { margin-bottom: 38px; }
.form-section h2 {
    font-size: 18px;
    margin: 0 0 18px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--ink);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
.required { font-weight: 900; }
input, select, textarea {
    width: 100%;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    border-radius: 0;
    padding: 13px 14px;
    font: inherit;
    min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }

.check-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    padding: 18px;
    border: 1.5px solid var(--ink);
    background: var(--soft);
}
.check-row input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; }
.check-row label { font-weight: 500; font-size: 13px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    min-height: 48px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 8px 12px; min-height: 36px; font-size: 13px; }
.btn.danger { border-style: solid; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.sidebar-card { border-top: 4px solid var(--ink); padding-top: 18px; margin-bottom: 38px; }
.sidebar-card h3 { margin: 0 0 12px; font-size: 18px; }
.sidebar-card p, .sidebar-card li { font-size: 14px; }
.sidebar-card ul { padding-left: 18px; }
.available-list { columns: 2; column-gap: 26px; padding-left: 18px; }
.available-list li { break-inside: avoid; margin-bottom: 4px; }

.notice {
    padding: 16px 18px;
    border: 2px solid var(--ink);
    margin: 0 0 26px;
    font-weight: 700;
}
.notice.success { background: var(--soft); }
.notice.error ul { margin: 8px 0 0 18px; padding: 0; }

.site-footer { border-top: 2px solid var(--ink); padding: 24px 0 36px; font-size: 12px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* Admin */
.admin-wrap { padding: 44px 0 70px; }
.admin-top { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.admin-top h1 { font-size: clamp(38px, 7vw, 68px); margin-bottom: 0; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); margin-bottom: 28px; }
.stat { padding: 18px; }
.stat + .stat { border-left: 2px solid var(--ink); }
.stat strong { display: block; font-size: 32px; line-height: 1; }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { background: var(--ink); color: var(--paper); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td a { word-break: break-all; }

.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.country-toggle { border: 1px solid var(--line); padding: 10px; display: flex; align-items: start; gap: 9px; }
.country-toggle input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; }
.country-toggle label { font-weight: 600; font-size: 13px; }
.country-toggle small { display: block; color: var(--muted); font-weight: 400; }

.auth-card { max-width: 560px; margin: 60px auto; border: 2px solid var(--ink); padding: 28px; }
.auth-card h1 { font-size: 42px; letter-spacing: -2px; margin-bottom: 10px; }
.auth-card .field { margin-bottom: 16px; }

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

@media (max-width: 860px) {
    .main-grid { grid-template-columns: 1fr; gap: 18px; }
    .hero-notes { grid-template-columns: 1fr; }
    .hero-note + .hero-note { border-left: 0; border-top: 2px solid var(--ink); }
    .country-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 2px solid var(--ink); }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1080px); }
    .header-row { align-items: flex-start; flex-direction: column; gap: 6px; }
    .header-kicker { text-align: left; }
    .hero { padding-top: 48px; }
    h1 { letter-spacing: -2.7px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .country-grid { grid-template-columns: 1fr; }
    .available-list { columns: 1; }
    .admin-top { align-items: flex-start; flex-direction: column; }
}

/* AFRICA.ROCKS real logo */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}
.site-logo {
    display: block;
    width: 96px;
    height: auto;
    max-height: 76px;
    object-fit: contain;
}
.country-toggle.is-locked {
    opacity: .48;
    background: var(--soft);
}
.country-toggle.is-locked input {
    cursor: not-allowed;
}
@media (max-width: 620px) {
    .site-logo { width: 84px; max-height: 68px; }
}
