:root {
    --bwfc-blue: #0d2440;
    --bwfc-gold: #c7a145;
    --bwfc-red: #c8102e;
    --text: #16202a;
    --muted: #6c7784;
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #dfe5ee;
    --success: #0f7b43;
    --danger: #b42318;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Satoshi', Arial, Helvetica, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { color: var(--bwfc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6, .brand {
    font-family: 'Nippo', 'Satoshi', Arial, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-top: 0;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p, li, td, th, input, select, textarea, button, .btn, label, .small, .help, .notice, .pill {
    font-family: 'Satoshi', Arial, Helvetica, sans-serif;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.topbar {
    background: linear-gradient(135deg, var(--bwfc-blue) 0%, #153458 100%);
    color: #fff;
    border-bottom: 4px solid var(--bwfc-red);
    box-shadow: 0 8px 20px rgba(13, 36, 64, 0.15);
}
.topbar .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand {
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
}
.nav { display:flex; flex-wrap:wrap; gap:12px; }
.nav a {
    color:#fff;
    opacity:.96;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 10px;
}
.nav a:hover {
    opacity:1;
    text-decoration:none;
    background: rgba(255,255,255,0.08);
}
.hero, .card {
    background: var(--card);
    border:1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(18, 35, 58, 0.06);
}
.hero {
    padding: 28px;
    margin: 24px 0;
    border-top: 4px solid var(--bwfc-red);
}
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { padding: 20px; }
.btn {
    display:inline-block;
    background: var(--bwfc-blue);
    color:#fff;
    padding: 11px 16px;
    border-radius: 10px;
    border:0;
    cursor:pointer;
    font-weight: 700;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-decoration:none;
}
.btn:hover {
    background: #163a67;
    text-decoration:none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 36, 64, 0.18);
}
.btn.alt { background: var(--bwfc-gold); color:#111; }
.btn.alt:hover { background: #d5b15b; }
.btn.ghost { background: #eef3fb; color: var(--bwfc-blue); }
.btn.ghost:hover { background: #e3ecf9; }
label { display:block; font-weight:700; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
    width:100%;
    padding: 12px 14px;
    border:1px solid var(--border);
    border-radius: 10px;
    background:#fff;
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}
input[type=date] {
    min-height: 52px;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=datetime-local]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6c8fbe;
    box-shadow: 0 0 0 3px rgba(13,36,64,0.1);
}
textarea { min-height: 140px; resize: vertical; }
.help { color: var(--muted); font-size: .92rem; margin: -8px 0 14px; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.notice.success { background: #eaf7ef; color: var(--success); }
.notice.error { background: #fff0ef; color: var(--danger); }
.notice.info { background: #eef3fb; color: var(--bwfc-blue); }
.pill { display:inline-block; padding: 6px 10px; background:#eef3fb; border-radius: 999px; font-size:.9rem; }
table { width:100%; border-collapse: collapse; }
th, td { text-align:left; padding: 12px; border-bottom:1px solid var(--border); vertical-align: top; }
th { font-weight: 700; }
.split { display:grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.checkbox {
    display:flex;
    align-items:flex-start;
    gap:14px;
    margin: 0 0 18px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    min-width: 52px;
    height: 32px;
    flex: 0 0 52px;
    margin-top: 1px;
}
.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.switch-slider {
    position: absolute;
    inset: 0;
    background: #c8d2df;
    border-radius: 999px;
    transition: background .18s ease, box-shadow .18s ease;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(13,36,64,0.08);
}
.switch-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transition: transform .18s ease;
}
.switch input:checked + .switch-slider {
    background: var(--bwfc-blue);
}
.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}
.switch input:focus-visible + .switch-slider {
    box-shadow: 0 0 0 3px rgba(13,36,64,0.18);
}
.switch input:disabled + .switch-slider {
    opacity: .55;
    cursor: not-allowed;
}
.checkbox .checkbox-copy {
    display:block;
    margin: 0;
    flex: 1;
    line-height: 1.45;
}
.checkbox .checkbox-copy strong {
    display:block;
    margin-bottom: 2px;
}
.small { font-size: .9rem; color: var(--muted); }
.footer { color: var(--muted); font-size: .92rem; padding-bottom: 36px; }
.kpi {
    font-family: 'Nippo', 'Satoshi', Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}
.actions { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width: 800px){ .split { grid-template-columns: 1fr; } .topbar .wrap { align-items:flex-start; flex-direction:column; } }

.lede { font-size: 1.05rem; color: var(--muted); margin-top: -4px; margin-bottom: 22px; }
.content-body h2, .content-body h3, .content-body h4 { margin-top: 24px; }
.content-body p:last-child { margin-bottom: 0; }

.admin-kpis { margin-top: 20px; }
.sponsor-card {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfd 0%, #f3f6fb 100%);
}
.sponsor-card-compact { padding: 12px; }
.sponsor-card-head { margin-bottom: 10px; }
.sponsor-logo-wrap { margin-bottom: 10px; }
.sponsor-logo { display:block; max-width: 180px; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.sponsor-message { margin: 0 0 12px; color: var(--text); }
.metric-row { display:grid; grid-template-columns: 70px 1fr 48px; gap: 12px; align-items:center; margin: 0 0 10px; }
.metric-label, .metric-value { font-weight: 700; }
.metric-bar { height: 12px; border-radius: 999px; background: #e8eef8; overflow:hidden; }
.metric-bar span { display:block; height:100%; background: linear-gradient(90deg, var(--bwfc-blue) 0%, #2f5f96 100%); border-radius: 999px; }

.readonly-link { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
