/* Base skeleton, brand-neutral: real branding (logo, colors) is an admin setting (ADM-02). */
:root {
    --accent: #2f5d3a;
    --bg: #faf8f4;
    --text: #22241f;
    --muted: #5f6358;
    --border: #ddd8cf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background: var(--accent);
}

.site-header .site-name {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    padding: 0.9rem 0;
    font-size: 1.15rem;
}

main.container {
    padding: 1.5rem 1rem 3rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

a {
    color: var(--accent);
}

h1 {
    line-height: 1.25;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0 1rem;
}

.flash-success {
    background: #e6f4e6;
    border: 1px solid #9ccc9c;
}

.flash-error {
    background: #fbeaea;
    border: 1px solid #e0a1a1;
}

button,
.button {
    min-height: 44px;
    font-size: 1rem;
}

.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-danger {
    border-color: #a33;
    color: #a33;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    min-height: 0;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
}

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a,
.nav-button {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-button {
    text-decoration: underline;
}

.inline-form {
    display: inline;
}

.form {
    max-width: 28rem;
    margin: 1rem 0 2rem;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field input[type="url"],
.field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text);
}

.field-checkbox input {
    margin-right: 0.5rem;
}

.field-checkbox label {
    display: inline;
}

.field-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.field-error {
    color: #a03030;
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}

.device-list {
    list-style: none;
    padding: 0;
}

.device {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
}

.table th,
.table td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

/* Wide tables (start lists, standings, admin) scroll sideways instead of breaking the page. */
@media (max-width: 40rem) {
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.recovery-codes code {
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text);
}

[hidden] {
    display: none !important;
}

/* Events (M4) */
.event-cover {
    width: 100%;
    max-height: 20rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.event-logo {
    height: 2.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.event-thumb {
    display: block;
    max-width: 12rem;
    max-height: 6rem;
    margin: 0.5rem 0;
    border-radius: 0.35rem;
}

.fee-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
}

.fee-item-row label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--muted);
}

.fee-item-row input,
.fee-item-row select {
    min-width: 7rem;
}

.screen-block {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Registration wizard (M5) */
.wizard-progress {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.wizard-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    text-decoration: none;
}

.wizard-dot.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.wizard-dot.done {
    border-color: var(--accent);
    color: var(--accent);
}

.wizard-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.radio-row {
    display: block;
    padding: 0.25rem 0;
}

.declaration {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    margin: 1rem 0;
}

.edit-link {
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

.fee-total {
    font-size: 1.1rem;
}

.device.inactive {
    opacity: 0.6;
}

/* Rekenkamer (M6): big tablet-friendly inputs. */
.score-pad input[type="number"],
.score-pad input[type="text"] {
    font-size: 1.3rem;
    padding: 0.75rem;
    max-width: 9rem;
}

.score-pad legend {
    font-weight: 700;
}
