/* Clubs/TOs: sign in, registration and the club account area. Heritage green, copper and cream. */
.hero p:not(.eyebrow){max-width:760px;color:#d9e0dc;font-size:1.04rem;margin:18px 0 0}
.hero p:not(.eyebrow)+p{margin-top:10px}
.clubGate{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
.clubCard{padding:28px;min-width:0}
.clubMessage,#forgotCard,#passwordCard{grid-column:1/-1;max-width:640px;width:100%;justify-self:center}
.clubCardHead{display:flex;gap:16px;align-items:flex-start;margin-bottom:20px}
.clubIcon{flex:0 0 46px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#f3e6dc;color:#9a5a33;font-size:1.25rem;font-weight:800}
.clubCardHead h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:1.7rem;font-weight:500;color:var(--green)}
.clubCardHead p{margin:6px 0 0;color:var(--muted);font-size:.92rem}
.clubForm{display:grid;gap:16px}
.clubFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.clubFields label,.clubForm>label{align-content:start}
.clubFull{grid-column:1/-1}
.clubButton{width:100%;border-radius:999px;padding:14px 20px;font-weight:800;cursor:pointer;text-align:center;text-decoration:none;display:block}
.clubButton:disabled{opacity:.65;cursor:progress}
.linkButton{justify-self:start;border:0;background:none;padding:2px 0;color:#9a5a33;font-weight:750;font-size:.88rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.linkButton:hover{color:var(--green)}
.clubError{margin:0;padding:11px 14px;border-radius:12px;background:#f8e9e6;border:1px solid #e3b9b1;color:var(--danger);font-size:.88rem;font-weight:650}
.clubTrap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
[aria-invalid="true"]{border-color:var(--danger)!important}
.previewEmail{margin:4px 0 18px;border:1px dashed var(--copper);border-radius:14px;padding:14px;background:#fbf6f1;display:grid;gap:12px}
.previewHead{display:grid;gap:3px;font-size:.86rem}
.previewHead strong{color:#9a5a33}
.previewHead span{color:var(--muted);overflow-wrap:anywhere}
.previewEmail iframe{width:100%;height:470px;border:1px solid var(--line);border-radius:10px;background:#f5f3ee}
.previewLink{background:var(--green);color:#fff}
.clubAccount{display:grid;gap:22px;margin-bottom:28px}
.clubBanner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 32px;border-radius:18px;background:#23322c;color:#fff;box-shadow:0 7px 26px rgba(18,31,25,.12)}
.clubBanner .eyebrow{margin-bottom:6px}
.clubBanner h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.7rem,3.4vw,2.6rem);font-weight:500;line-height:1.08}
.clubBannerName{margin:10px 0 0;color:#e0a47e;font-size:1.15rem;font-weight:800}
.clubSignOut{flex:0 0 auto;border-radius:999px;padding:11px 20px;border:1px solid rgba(255,255,255,.4)!important;background:transparent!important;color:#fff!important;font-weight:800;cursor:pointer}
.clubSignOut:hover{background:rgba(255,255,255,.1)!important}
.clubNotice{margin:0;padding:14px 18px;border-radius:14px;background:#e8f1eb;border:1px solid #b9d3c2;color:#1f4d36;font-weight:700}
.clubAccountGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.clubPanel{padding:24px 26px;min-width:0}
.clubPanel h3{margin:0 0 12px;font-size:1.12rem;color:var(--green)}
.clubDetails{margin:0;display:grid;gap:12px}
.clubDetails div{display:grid;gap:2px}
.clubDetails dt{font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.clubDetails dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.clubDisclosure{margin-top:18px;border-top:1px solid #e4e5e1;padding-top:14px}
.clubDisclosure summary{cursor:pointer;color:#9a5a33;font-weight:800;font-size:.92rem}
.clubDisclosure[open] summary{margin-bottom:14px}
.clubEmails,.clubSubmissions{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.clubEmails li{display:grid;gap:8px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#f5f3ee}
.clubEmailWho{display:grid;gap:2px;min-width:0}
.clubEmailWho strong{overflow-wrap:anywhere}
.clubEmailWho span{color:var(--muted);font-size:.85rem}
.clubEmailTags,.clubEmailActions{display:flex;flex-wrap:wrap;gap:6px 14px}
.clubEmailTags{gap:6px}
.clubTag{display:inline-flex;padding:3px 9px;border-radius:999px;font-size:.7rem;font-weight:850;letter-spacing:.04em}
.clubTagOk{background:#e1eee6;color:#1f4d36}
.clubTagWait{background:#f6e7d6;color:#8a4f24}
.clubTagMain{background:#23322c;color:#fff}
.clubTagYou{background:#fff;border:1px solid var(--line);color:#36423d}
.clubHistoryHead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.clubHistoryHead h3{margin:0}
.clubCount{padding:5px 12px;border-radius:999px;background:#23322c;color:#fff;font-weight:800;font-size:.82rem;white-space:nowrap}
.clubSubmissions li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f5f3ee}
.clubSubmissions li div{display:grid;gap:2px;min-width:0}
.clubSubmissions li span{color:var(--muted);font-size:.84rem}
.clubSubmissions code{flex:0 0 auto;padding:4px 9px;border-radius:8px;background:#fff;border:1px solid var(--line);font-size:.8rem;font-weight:700}
.clubSubmissions .clubEmpty{display:block;color:var(--muted);font-size:.9rem}
.clubVenue{margin:0;padding:14px 16px 16px;border:1px solid var(--line);border-radius:14px;display:grid;gap:12px}
.clubVenue legend{padding:0 6px;font-weight:800;color:var(--green)}
.clubVenue textarea{width:100%;resize:vertical}
.clubSave{justify-self:start;width:auto;padding:11px 26px}
.clubVenues{display:grid;gap:4px}
.clubVenues h3{margin-bottom:2px}
.clubDiary p{margin:0 0 12px;color:#36423d}
.clubDiary .hint{color:var(--muted)}
.clubCode{display:grid;gap:12px;margin:4px 0 14px}
.clubCode pre{margin:0;padding:14px 16px;border-radius:12px;background:#f5ece2;border:1px solid #e3c9b0;color:#23322c;font-weight:600;font-size:.8rem;line-height:1.5;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere}
.clubCode pre:focus{outline:3px solid rgba(184,115,74,.5)}
.clubCopy{justify-self:start;width:auto;padding:11px 22px}
.clubGuide{display:inline-block;color:#9a5a33;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.clubFormIntro{margin-top:8px}
.clubFormIntro h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:2rem;font-weight:500;color:var(--green)}
.clubFormIntro p:last-child{margin:6px 0 0;color:var(--muted)}
#form input[readonly]{background:#f1f2ef;color:#36423d}
@media(max-width:900px){.clubGate,.clubAccountGrid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.clubCard,.clubPanel{padding:20px 18px}.clubFields{grid-template-columns:minmax(0,1fr)}.clubBanner{flex-direction:column;align-items:flex-start;padding:24px 20px}.clubSubmissions li{flex-direction:column;align-items:flex-start}.previewEmail iframe{height:520px}}
.eventChoice{margin:0 0 22px;padding:14px 16px 16px;border:1px solid var(--line);border-radius:14px;display:grid;gap:10px}
.eventChoice legend{padding:0 6px;font-weight:800;color:var(--green)}
.eventChoice .choice{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f5f3ee;cursor:pointer;grid-template-columns:none}
.eventChoice .choice input{width:auto;margin-top:4px;accent-color:#23322c}
.eventChoice .choice span{display:grid;gap:2px}
.eventChoice .choice small{color:var(--muted);font-weight:500;font-size:.84rem}
.eventChoice .choice:has(input:checked){border-color:var(--copper);background:#fff}
/* The custom club diary heading is copper (Dean, 8 October 2026). */
.clubDiary h3{color:var(--copper)}
.clubBannerActions{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
.clubAddEvent{border:0;border-radius:999px;padding:11px 20px;background:#b8734a;color:#fff;font-weight:800;cursor:pointer}
.clubAddEvent:hover,.clubAddEvent:focus-visible{background:#a3603a;outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.35)}
#addEventForm{scroll-margin-top:100px}
.hero a.heroLink{color:#e0a47e;font-weight:800;text-decoration:underline;text-underline-offset:3px}
/* One club login (Dean, 12 October 2026): the prompt to add a club website. */
.clubPrompt{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#fbf6f1;border:1px solid #e6c9b3;color:#7a4526;font-weight:700;font-size:.9rem}
/* Delete my account (Dean, 14 October 2026). */
.clubDangerZone>summary{color:var(--danger)}
.clubDangerNote{margin:0 0 12px;color:#7a2e25;font-size:.9rem;line-height:1.5}
.clubDeleteBtn{width:auto;justify-self:start;padding:12px 22px;border:0;border-radius:999px;background:var(--danger);color:#fff;font-weight:800;cursor:pointer}
.clubDeleteBtn:hover:not(:disabled),.clubDeleteBtn:focus-visible:not(:disabled){background:#7f2a20;outline:none}
.clubDeleteBtn:disabled{opacity:.5;cursor:not-allowed}

/* Dark theme for the club account area. */
html[data-theme="dark"] .hero p:not(.eyebrow){color:#c6cdc7}
html[data-theme="dark"] .clubIcon{background:rgba(205,138,96,.18);color:#e0a77f}
html[data-theme="dark"] .linkButton,html[data-theme="dark"] .clubDisclosure summary,html[data-theme="dark"] .clubGuide{color:#e0a77f}
html[data-theme="dark"] .clubError{background:rgba(142,52,41,.28);border-color:#7a3a30;color:#f0b0a6}
html[data-theme="dark"] .previewEmail{background:rgba(255,255,255,.04);border-color:#7a4e36}
html[data-theme="dark"] .previewHead strong{color:#e0a77f}
html[data-theme="dark"] .previewEmail iframe{background:#1a201d;border-color:#2b332f}
html[data-theme="dark"] .clubNotice{background:rgba(31,77,54,.3);border-color:#2f6b4d;color:#bfe3cc}
html[data-theme="dark"] .clubEmails li,html[data-theme="dark"] .clubSubmissions li,html[data-theme="dark"] .eventChoice .choice{background:rgba(255,255,255,.04);border-color:#2b332f}
html[data-theme="dark"] .clubTagOk{background:rgba(31,77,54,.35);color:#a7cfb7}
html[data-theme="dark"] .clubTagWait{background:rgba(138,79,36,.3);color:#e0a77f}
html[data-theme="dark"] .clubTagYou{background:#1a201d;border-color:#2b332f;color:#c6cdc7}
html[data-theme="dark"] .clubSubmissions code{background:#111814;border-color:#2b332f;color:#cdd4ce}
html[data-theme="dark"] .clubDiary p{color:#c6cdc7}
html[data-theme="dark"] .clubCode pre{background:#111814;border-color:#3a4a3f;color:#cdd4ce}
html[data-theme="dark"] #form input[readonly]{background:#161d19;color:#9aa49d}
html[data-theme="dark"] .eventChoice .choice:has(input:checked){border-color:var(--copper);background:rgba(205,138,96,.12)}
html[data-theme="dark"] .clubPrompt{background:rgba(205,138,96,.12);border-color:#7a4e36;color:#e0a77f}
html[data-theme="dark"] .clubDangerNote{color:#f0b0a6}

/* AUTO DARK: generated light-background overrides */
html[data-theme="dark"] .topbar{background:#1a201d}
html[data-theme="dark"] .card{background:#1a201d}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#1a201d}
html[data-theme="dark"] .roundButton{background:#1a201d}
html[data-theme="dark"] .roundMenu{background:#1a201d}
html[data-theme="dark"] .check{background:#1a201d}
html[data-theme="dark"] .consent{background:#1a201d}
html[data-theme="dark"] .secondary{background:#1a201d}
html[data-theme="dark"] .error{background:#1a201d}
html[data-theme="dark"] .side .flowItem{background:#1a201d}
html[data-theme="dark"] .clubIcon{background:rgba(205,138,96,.15)}
html[data-theme="dark"] .clubError{background:rgba(205,138,96,.15)}
html[data-theme="dark"] .previewEmail{background:#1a201d}
html[data-theme="dark"] .previewEmail iframe{background:#1a201d}
html[data-theme="dark"] .clubNotice{background:#1a201d}
html[data-theme="dark"] .clubEmails li{background:#1a201d}
html[data-theme="dark"] .clubTagOk{background:#1a201d}
html[data-theme="dark"] .clubTagWait{background:rgba(205,138,96,.15)}
html[data-theme="dark"] .clubTagYou{background:#1a201d}
html[data-theme="dark"] .clubSubmissions li{background:#1a201d}
html[data-theme="dark"] .clubSubmissions code{background:#1a201d}
html[data-theme="dark"] .clubCode pre{background:rgba(205,138,96,.15)}
html[data-theme="dark"] #form input[readonly]{background:#1a201d}
html[data-theme="dark"] .eventChoice .choice{background:#1a201d}
html[data-theme="dark"] .eventChoice .choice:has(input:checked){background:#1a201d}
html[data-theme="dark"] /* One club login (Dean,html[data-theme="dark"] 12 October 2026): the prompt to add a club website. */
.clubPrompt{background:#1a201d}

/* Dark: sign-in / register headings use var(--green) as text -> light */
html[data-theme="dark"] .clubCardHead h2,html[data-theme="dark"] .clubFormIntro h2{color:#e8ece6}
