/* ==========================================================================
   Moto Club : feuille de styles (mobile d'abord)
   ========================================================================== */

/* --------------------------------------------------------------------------
   COULEURS DU CLUB : tout se règle ici.
   -------------------------------------------------------------------------- */
:root {
    /* Couleur principale (jaune du logo) : boutons, menu actif, agenda */
    --accent: #e4dc3e;
    --accent-rgb: 228, 220, 62;   /* même couleur en R, G, B (pour les halos) */
    --accent-hover: #d2c92a;      /* boutons au survol */
    --accent-ink: #16181d;        /* texte posé SUR la couleur principale */
    --accent-strong: #6e6400;     /* version foncée lisible sur fond blanc : liens, petits textes */
    --accent-soft: #fbf8d6;       /* fond très pâle des encadrés */
    --accent-border: #ece58f;     /* bordure des encadrés pâles */

    /* Pour revenir à l'orange, remplacer le bloc ci-dessus par :
    --accent: #e8590c; --accent-rgb: 232, 89, 12; --accent-hover: #d9480f; --accent-ink: #ffffff;
    --accent-strong: #c2410c; --accent-soft: #fff1e8; --accent-border: #ffd8c2;
    */

    --bg: #f4f4f2;
    --surface: #ffffff;
    --ink: #1b1d22;
    --muted: #666a73;
    --line: #e2e2de;
    --asphalt: #16181d;
    --asphalt-2: #23262d;
    --ok: #2b8a3e;
    --warn: #b35c00;
    --danger: #c92a2a;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw + .5rem, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--asphalt);
    color: #fff;
    padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.brand img { border-radius: 11px; background: #fff; flex: 0 0 auto; }
.brand { min-width: 0; flex-shrink: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand-short { display: none; }
/* Nom complet trop long pour un petit écran : on affiche le nom court */
@media (max-width: 479px) { .brand-full { display: none; } .brand-short { display: inline; } }

.nav-toggle {
    width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: var(--asphalt-2); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; content: "";
    transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; right: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--asphalt);
    padding: .5rem 1.1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #e9e9ea; text-decoration: none; }
.main-nav ul a { display: block; padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 500; }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--accent); padding-left: .75rem; }
.nav-account { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; }
.nav-account form { margin: 0; }
.nav-user { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.avatar {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800;
}
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; text-align: center; font-weight: 700; }

@media (min-width: 1100px) {
    .nav-toggle { display: none; }
    .main-nav {
        display: flex !important; position: static; align-items: center; gap: 1.5rem;
        padding: 0; border: 0; box-shadow: none; background: transparent;
    }
    .main-nav ul { display: flex; gap: .25rem; }
    .main-nav ul a { border: 0; padding: .5rem .65rem; border-radius: 8px; white-space: nowrap; }
    .main-nav ul a:hover { background: var(--asphalt-2); }
    .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-left: .75rem; border-radius: 8px 8px 0 0; }
    .nav-account { padding: 0; }
    /* Menu complet sur ordinateur : nom court du club, avatar seul */
    .brand-full { display: none; }
    .brand-short { display: inline; }
    .nav-user-name { display: none; }
}
@media (min-width: 1400px) {
    .brand-full { display: inline; }
    .brand-short { display: none; }
    .nav-user-name { display: inline; }
}

/* ---------- Contenu ---------- */
.site-main { flex: 1; padding: 1.5rem 0 3rem; }
.page-header { margin: .5rem 0 1.5rem; }
.page-header.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-header.row h1 { margin-bottom: .1em; }
.page-header.row p { margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.back-link { text-decoration: none; font-weight: 600; font-size: .95rem; }

.hero {
    margin: -1.5rem 0 2rem;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(var(--accent-rgb),.22), transparent 60%),
        linear-gradient(180deg, var(--asphalt) 0%, var(--asphalt-2) 100%);
    color: #fff;
}
.hero-inner { padding: 2.5rem 1.1rem 3.25rem; display: grid; gap: 1.75rem; align-items: center; }
.hero-logo { justify-self: center; }
.hero-logo img {
    display: block; width: min(62vw, 240px); height: auto;
    background: #fff; border-radius: 28px; padding: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 4px rgba(var(--accent-rgb),.85);
    transform: rotate(-3deg);
}
@media (min-width: 820px) {
    .hero-inner { grid-template-columns: 1fr auto; padding: 3.5rem 1.1rem 3.75rem; }
    .hero-logo { order: 2; }
    .hero-logo img { width: 320px; border-radius: 34px; }
}
.hero h1 { font-size: clamp(2.2rem, 6vw + .5rem, 4rem); margin-bottom: .3em; }
.hero .lead { color: #c9cad0; font-size: 1.15rem; }
.hero .eyebrow { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-strong); margin-bottom: .75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }

.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.35rem;
    margin-bottom: 1rem;
}
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.card-accent { background: var(--accent-soft); border-color: var(--accent-border); }
.card-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.features { margin-bottom: 2.5rem; }
.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1.3fr 1fr; } }

a.tile { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.tile p { color: var(--muted); margin-bottom: .5rem; }
.tile.is-soon { opacity: .75; }

.install-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.install-card p { margin: 0; color: var(--muted); }

/* ---------- Tags, alertes ---------- */
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eee; color: var(--muted); }
.tag-ok { background: #e6f4ea; color: var(--ok); }
.tag-warn { background: #fff3e0; color: var(--warn); }
.tag-muted { background: #eee; color: #888; }

.alert { padding: .9rem 1.1rem; border-radius: 10px; margin: 0 0 1.25rem; border: 1px solid; font-weight: 500; }
.alert-success { background: #e9f6ec; border-color: #b7e1c1; color: #1e5f2c; }
.alert-info { background: #eef4ff; border-color: #c7d8fb; color: #1d3f86; }
.alert-error { background: #fdecec; border-color: #f4c2c2; color: #8a1c1c; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 46px; padding: .65rem 1.2rem;
    border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn-ghost:hover { background: rgba(0,0,0,.04); }
.site-header .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-sm { min-height: 36px; padding: .35rem .8rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.req { color: var(--accent-strong); }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
    width: 100%; font: inherit; font-size: 16px; /* 16px : évite le zoom auto sur iPhone */
    padding: .75rem .85rem; border: 1px solid #cfcfca; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb),.6); outline-offset: 1px; border-color: var(--accent-strong);
}
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: .875rem; margin: .35rem 0 0; font-weight: 500; }
.hint { color: var(--muted); font-size: .875rem; margin: .35rem 0 0; font-weight: 400; }
.field.checkbox { display: flex; align-items: flex-start; gap: .6rem; }
.field.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); }
.field.checkbox label { font-weight: 600; margin: 0; }
input.captcha-input { max-width: 8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.auth-box { max-width: 440px; padding-top: 1rem; }
.auth-logo { border-radius: 20px; margin-bottom: .75rem; box-shadow: 0 0 0 3px var(--accent-soft); }

.info-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0 0 1rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; word-break: break-word; }

.temp-password .password-display { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.temp-password code { font-size: 1.35rem; font-weight: 700; background: #fff; padding: .4rem .8rem; border-radius: 8px; border: 1px dashed var(--accent-strong); letter-spacing: .06em; }

/* ---------- Tableau (devient des cartes sur mobile) ---------- */
.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafaf8; }
.table th, .table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; }
.table tr.is-inactive td { color: #999; }

@media (max-width: 760px) {
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
    .table td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; }
    .table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
    .table td.actions { justify-content: flex-end; padding-top: .5rem; }
    .table td.actions::before { content: none; }
}

/* ---------- Messages ---------- */
.message-list { list-style: none; margin: 0; padding: 0; }
.message-row { display: flex; align-items: stretch; gap: .5rem; }
.message-row .message-item { flex: 1; min-width: 0; }
.message-check { display: flex; align-items: center; padding: 0 .35rem; cursor: pointer; margin-bottom: 1rem; }
.message-check input, .bulk-all input { width: 20px; height: 20px; accent-color: var(--accent-strong); }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; padding: 0 .35rem; }
.bulk-all { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.message-item { display: block; color: inherit; text-decoration: none; }
.message-item:hover { border-color: var(--accent); }
.message-item.is-unread { border-left: 4px solid var(--accent); }
.message-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.message-subject { font-weight: 600; margin: .2rem 0; display: flex; align-items: center; gap: .45rem; }
.message-item p { margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.message-body { white-space: normal; padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); }

/* ---------- Erreurs ---------- */
.error-page { text-align: center; padding-top: 2rem; }
.error-code { font-size: 4rem; font-weight: 900; color: var(--accent-strong); margin: 0; line-height: 1; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--asphalt); color: #9a9ca3; padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-inner p { margin: 0; }
.footer-credit { color: #7d8089; font-size: .85rem; }
@media (max-width: 639px) { .footer-inner { flex-direction: column; align-items: center; text-align: center; } .footer-credit { order: 3; } }
.site-footer a { color: #d0d1d5; }
.site-header a.btn-primary, .site-header .btn-primary { color: var(--accent-ink); }

/* Appli installée (PWA) : on masque le pied de page pour un rendu plus "appli" */
@media (display-mode: standalone) {
    .site-footer { display: none; }
}

/* ==========================================================================
   Événements
   ========================================================================== */
input[type=url], input[type=number], input[type=datetime-local] {
    width: 100%; font: inherit; font-size: 16px;
    padding: .75rem .85rem; border: 1px solid #cfcfca; border-radius: 10px; background: #fff; color: var(--ink);
}
input[type=datetime-local] { min-height: 48px; }

.tabs { display: flex; gap: .25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .badge { vertical-align: 1px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.next-events { margin-bottom: 2rem; }

.event-list { display: grid; gap: .75rem; }
.event-card { display: flex; gap: 1rem; align-items: flex-start; color: inherit; text-decoration: none; margin: 0; transition: border-color .15s, transform .15s; }
.event-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.event-card h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.event-card.is-cancelled h2 { text-decoration: line-through; color: var(--muted); }
.event-date {
    flex: 0 0 58px; text-align: center; border-radius: 12px; background: var(--asphalt); color: #fff;
    padding: .45rem 0 .5rem; line-height: 1.1;
}
.event-day { display: block; font-size: 1.55rem; font-weight: 800; }
.event-month { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.event-body { min-width: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: .15rem 1rem; color: var(--muted); font-size: .92rem; margin: 0 0 .5rem; }
.event-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.tag-danger { background: #fdecec; color: var(--danger); }

.register-box { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.register-box form { margin: 0; flex: 1 1 200px; }
.register-box form .btn { width: 100%; }
.register-status { margin: 0; font-weight: 700; color: var(--ok); flex-basis: 100%; }
.prose { margin-bottom: 1rem; }

.participants { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 640px) { .participants { grid-template-columns: 1fr 1fr; } }
.participants li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-row form { margin: 0; }
.btn-danger { background: transparent; color: var(--danger); border-color: #f0b8b8; }
.btn-danger:hover { background: #fdecec; }

/* ==========================================================================
   Agenda
   ========================================================================== */
.calendar-card { padding: 1rem; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.calendar-nav h2 { margin: 0; font-size: 1.25rem; }
.calendar-today-link { margin: -.25rem 0 .75rem; font-size: .9rem; }
.calendar-today-link a { font-weight: 600; text-decoration: none; }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-head { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .25rem 0; }
.calendar-day {
    min-height: 54px; border-radius: 8px; background: #fafaf8; padding: .25rem;
    display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0;
}
.calendar-day.is-other-month { background: transparent; }
.calendar-day.is-other-month .calendar-date { color: #bbb; }
.calendar-day.is-past .calendar-date { color: #999; }
.calendar-date { font-size: .85rem; font-weight: 600; line-height: 1.6; width: 1.7em; height: 1.7em; text-align: center; border-radius: 50%; }
.calendar-day.is-today .calendar-date { background: var(--accent); color: var(--accent-ink); }

.calendar-event { display: flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); max-width: 100%; }
.calendar-event-label { display: none; }
.calendar-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #9aa0aa; }
.calendar-dot.is-registered, .is-registered .calendar-dot { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent-strong); }
.calendar-dot.is-cancelled, .is-cancelled .calendar-dot { background: transparent; border: 2px solid var(--danger); width: 9px; height: 9px; }
.calendar-event.is-cancelled .calendar-event-label { text-decoration: line-through; color: var(--muted); }
/* Sur mobile, le point est la zone cliquable : on l'agrandit */
@media (max-width: 699px) {
    .calendar-event { padding: 4px; margin: -2px; }
}

@media (min-width: 700px) {
    .calendar-card { padding: 1.35rem; }
    .calendar { gap: 4px; }
    .calendar-day { min-height: 96px; align-items: stretch; padding: .35rem; }
    .calendar-date { align-self: flex-end; }
    .calendar-event { font-size: .78rem; padding: 2px 6px; border-radius: 6px; background: #eef0f3; }
    .calendar-event:hover { background: #e2e5ea; }
    .calendar-event.is-registered { background: var(--accent-soft); }
    .calendar-event-label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.calendar-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.calendar-legend li { display: flex; align-items: center; gap: .4rem; }

.month-events { margin: 1.5rem 0; }
.subscribe-card .copy-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.subscribe-card code { font-size: .78rem; background: #f3f3f0; padding: .4rem .6rem; border-radius: 6px; word-break: break-all; flex: 1 1 260px; }
.subscribe-help { margin: 0 0 1rem; }
.subscribe-help summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); margin-bottom: .5rem; }
.subscribe-help ul { padding-left: 1.1rem; }
.subscribe-help li { margin-bottom: .35rem; }
