:root {
    --club-black: #000;
    --background: #f5f5f5;
    --text: #111;
    --muted: #666;
    --border: #ddd;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* HEADER */

.site-header {
    background: #000;
    color: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 850px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-copy {
    min-width: 0;
}

.club-name {
    font-size: 17px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* MAIN LAYOUT */

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 15px;
}

.panel {
    background: white;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

h1, h2, h3 {
    margin-top: 0;
}

h1 {
    font-size: 25px;
    margin-bottom: 12px;
}

h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

h3 {
    font-size: 17px;
}

p {
    margin-top: 0;
}

.eyebrow {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

#fixture-details {
    color: #666;
    font-size: 14px;
}

/* FORMS */

.form-group {
    margin-bottom: 15px;
}

.form-group label,
.child-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 9px;
    font-size: 16px;
    background: white;
    color: #111;
}

input:focus, select:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

/* CHILD CARDS */

.child-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #111;
    border-radius: 10px;
    padding: 16px;
    margin: 18px 0;
}

.child-card h3 {
    margin-bottom: 14px;
    color: #111;
}

.child-card .form-group {
    margin-bottom: 15px;
}

/* BUTTONS */

button {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
}

#add-child {
    background: #e5e5e5;
    color: #111;
}

#submit-button {
    background: #000;
    color: white;
}

.remove-child {
    background: #c82333;
    color: white;
    padding: 10px 13px;
    font-size: 14px;
    border-radius: 9px;
}

button:disabled {
    opacity: .6;
    cursor: wait;
}

/* MESSAGES */

.success-message {
    color: #0f5132;
    font-weight: 700;
}

.error-message {
    color: #c82333;
    font-weight: 700;
}

.edit-link {
    overflow-wrap: anywhere;
    padding: 12px;
    background: #eee;
    border-radius: 9px;
    display: block;
    margin: 12px 0;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 520px) {
    .container {
        padding: 10px;
    }

    .panel {
        border-radius: 12px;
        padding: 15px;
    }

    h1 {
        font-size: 23px;
    }

    .club-name {
        font-size: 16px;
    }

    .club-logo {
        width: 44px;
        height: 44px;
    }

    .child-card {
        padding: 14px;
    }
}
/* CENTRAL PARENT HOME */
.event-card h2{margin-bottom:8px}.event-card p{margin-bottom:7px}.event-groups{color:#666;font-size:14px}
.response-status{display:inline-block;padding:5px 10px;border-radius:20px;font-size:13px;font-weight:700}
.status-done{background:#e5f3e9;color:#14532d}.status-pending{background:#e8f1fb;color:#174a78}
.secondary-button{background:#e5e5e5;color:#111}input[readonly],select:disabled{background:#f1f1f1;color:#555}

/* CURRENT SEASON CALENDAR */
.calendar-event{border-left:5px solid #777}
.calendar-match{border-left-color:#2f855a}
.calendar-training{border-left-color:#805ad5}
.calendar-other{border-left-color:#dd8b32}
.calendar-holiday{border-left-color:#d6a928}
.calendar-cancelled{border-left-color:#999;opacity:.78}


/* Parent form feedback and calendar event colours */
.form-feedback{padding:11px 13px;margin:10px 0 14px;border-radius:9px;background:#f8d7da;color:#842029;font-size:14px;font-weight:600}
.calendar-match-home{border-left-color:#198754}
.calendar-match-away{border-left-color:#0d6efd}
/* Keep each parent-card heading in the same colour as its side stripe. */
.calendar-match:not(.calendar-match-home):not(.calendar-match-away) .eyebrow{color:#2f855a}
.calendar-match-home .eyebrow{color:#198754}
.calendar-match-away .eyebrow{color:#0d6efd}
.calendar-training .eyebrow{color:#8960ad}
.calendar-other .eyebrow{color:#d97706}
.calendar-holiday .eyebrow{color:#d6a900}
.calendar-cancelled .eyebrow{color:#777}
.calendar-training{border-left-color:#8960ad}
.calendar-other{border-left-color:#d97706}
.calendar-holiday{border-left-color:#d6a900}
.calendar-cancelled{border-left-color:#999;opacity:.78}


/* Parent Home usability */
.parent-home-intro .secondary-button{width:auto;min-width:150px;padding:10px 16px;margin-top:4px}
.home-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.summary-item{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px;text-align:center;display:flex;flex-direction:column;gap:2px}
.summary-item strong{font-size:23px;line-height:1.2}
.summary-item span{font-size:12px;color:var(--muted)}
.event-filter-bar{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;margin-bottom:4px}
.event-filter-bar .event-filter{width:auto;white-space:nowrap;flex:0 0 auto;margin:0;padding:9px 14px;border:1px solid var(--border);background:#fff;color:#222;font-size:14px;border-radius:22px}
.event-filter-bar .event-filter.active{background:#111;color:#fff;border-color:#111}
.event-count{font-size:13px;color:var(--muted);margin:0 2px 10px}
.event-card{position:relative}
.event-card h2{overflow-wrap:anywhere}
.event-card button:not(.secondary-button){max-width:320px}
@media(max-width:520px){.home-summary{gap:7px}.summary-item{padding:10px 5px}.summary-item strong{font-size:21px}.summary-item span{font-size:11px}.event-filter-bar .event-filter{font-size:13px;padding:9px 12px}.event-card button:not(.secondary-button){max-width:none}}


/* Parent response form refinements */
.child-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.child-card-heading h3{margin:0}
.child-card .remove-child{width:auto;margin:0;padding:6px 10px;background:#f3e4e4;color:#842029;border:1px solid #e6caca;font-size:13px;border-radius:7px;flex:0 0 auto}
.form-navigation{display:flex;justify-content:flex-end;margin-bottom:12px}
.form-navigation button{width:auto;min-width:90px;margin:0;padding:9px 16px}
#cancel-form{background:#e5e5e5;color:#111}
.success-modal[hidden]{display:none}
.success-modal{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:20px}
.success-modal-card{width:min(100%,380px);background:#fff;border-radius:14px;padding:24px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.success-modal-card h2{font-size:21px;margin-bottom:10px}
.success-modal-card p{margin-bottom:18px}
.success-modal-card button{margin:0;background:#000;color:#fff}


/* Compact parent event cards; only differing age-group options are emphasised */
.event-card.panel{padding:12px 14px;margin-bottom:10px;border-radius:11px}
.event-card h2{font-size:19px;line-height:1.25;margin-bottom:5px}
.event-card p{margin-bottom:4px}
.event-card .event-groups{font-size:13px}
.event-card .event-groups-different{display:inline-block;padding:2px 7px;border-radius:6px;background:#fff1c2;color:#704f00;font-weight:800}
@media(max-width:520px){.event-card.panel{padding:11px 12px;margin-bottom:9px}.event-card h2{font-size:18px}}

/* Small parent-site release number */
.app-version{font-size:11px;color:#888;margin:4px 0 0;letter-spacing:.4px}


/* New members link on the parent landing page */
.new-members-prompt{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px;padding:15px;background:#f5f5f5;border:1px solid #ddd;border-radius:11px}
.new-members-prompt strong{display:block;margin-bottom:3px}
.new-members-prompt p{margin:0;color:#666;font-size:14px}
.new-members-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:42px;padding:10px 16px;border-radius:9px;background:#000;color:#fff;text-decoration:none;font-weight:700;font-size:14px}
@media(max-width:420px){.new-members-prompt{align-items:stretch;flex-direction:column}.new-members-link{width:100%}}


/* MINI SECTION LANDING PAGE */
.landing-page{max-width:850px;margin:0 auto;padding:16px 15px 24px}
.landing-hero{position:relative;overflow:hidden;background:#111;color:#fff;border-radius:18px;padding:30px 26px;margin-bottom:16px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.landing-hero:after{content:"";position:absolute;width:190px;height:190px;border:1px solid rgba(255,255,255,.15);border-radius:50%;right:-55px;top:-70px;box-shadow:0 0 0 22px rgba(255,255,255,.035),0 0 0 46px rgba(255,255,255,.025)}
.landing-kicker,.footer-kicker{font-size:11px;letter-spacing:1.8px;font-weight:800;color:#bbb;margin:0 0 15px}
.landing-hero h1{font-size:clamp(34px,7vw,49px);line-height:1.02;letter-spacing:-1.4px;margin:0 0 14px;max-width:550px}
.landing-hero h1 span{color:#cfcfcf}
.landing-intro{font-size:16px;color:#e1e1e1;max-width:470px;margin:0}
.landing-rule{height:3px;width:48px;background:#fff;margin:22px 0 12px}
.landing-note{font-size:13px;color:#bbb;margin:0;letter-spacing:.2px}
.landing-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.landing-card{background:#fff;border:1px solid #ddd;border-radius:16px;padding:20px;box-shadow:0 2px 9px rgba(0,0,0,.045);display:flex;flex-direction:column}
.landing-card .eyebrow{margin:0;font-size:10px;letter-spacing:1px}
.landing-card h2{font-size:23px;margin:0 0 7px}
.landing-card>p:not(.eyebrow){font-size:14px;color:#666;margin:0 0 15px}
.landing-card .form-group{margin-bottom:12px}
.landing-card label{font-size:13px}
.landing-card input{padding:12px;border-radius:9px}
.landing-card button,.landing-card .new-members-link{width:100%;min-height:48px;margin-top:3px;display:flex;align-items:center;justify-content:center;gap:8px;background:#111;color:#fff;text-decoration:none;border-radius:9px;font-weight:700;padding:12px 16px}
.landing-card .new-members-link{margin-top:auto}
.new-rugby-card{background:#f0f0f0;border-color:#e2e2e2}
.new-rugby-footnote{font-size:12px;color:#666;margin-top:14px}
.site-footer{background:#111;color:#fff;text-align:center;margin-top:8px;padding:27px 18px 18px}
.sponsor-thanks{max-width:600px;margin:0 auto 20px}
.sponsor-thanks .footer-kicker{margin-bottom:6px}
.sponsor-thanks h2{font-size:19px;margin:0 0 7px}
.sponsor-thanks>p:last-child{font-size:13px;color:#bbb;margin:0}
.footer-club{border-top:1px solid #333;padding-top:14px;color:#aaa;font-size:12px}
.site-footer .app-version{color:#777}
@media(max-width:620px){.landing-options{grid-template-columns:1fr}.landing-hero{padding:25px 21px}.landing-card{padding:18px}.landing-card .new-members-link{margin-top:6px}}
