/* member.css — styles for the community member area: the public account pages
   (register, login, set password) and the portal under /my/.

   Loaded alongside shared.css, which carries the nav and footer. The :root block
   is repeated here (rather than inline per page, as the hand built pages do) so
   every member page stays a thin shell with no inline <style>. Values match
   about.html exactly. */

:root{
  --teal:#40565F; --teal-mid:#4A7178; --teal-btn:#5b7f85;
  --cream-bg:#F3F0EA; --card-bg:#E8E4DC; --white:#FFFFFF;
  --text-h:#40565F; --text-body:#4a5a5c; --text-muted:#7a8a8c;
  --border:#d5cfc5; --coral:#D87158;
  --amber:#b5892f; --amber-bg:#fdf6e6; --green:#4d7c5a; --green-bg:#eef5ef;
  --font-title:'Assistant',sans-serif; --font-title-en:'Forum',serif;
  --font-body:'Rubik',sans-serif;
}
*{ margin:0; padding:0; box-sizing:border-box; }
body{ font-family:var(--font-body); background:var(--cream-bg); color:var(--text-body); line-height:1.7; font-size:16px; }

/* Page frame — clears the 72px fixed nav. */
.m-page{ max-width:760px; margin:0 auto; padding:112px 24px 72px; }
.m-page-wide{ max-width:1180px; }

.m-title{ font-family:var(--font-title); font-size:34px; font-weight:700; color:var(--text-h); line-height:1.2; margin-bottom:10px; }
[lang="en"] .m-title, [lang="ru"] .m-title{ font-family:var(--font-title-en); }
.m-intro{ font-size:16px; font-weight:300; color:var(--text-body); margin-bottom:28px; max-width:56ch; }

.m-card{ background:var(--white); border:1px solid var(--border); border-radius:16px; padding:32px 28px; margin-bottom:20px; }
.m-card-title{ font-family:var(--font-title); font-size:20px; font-weight:700; color:var(--text-h); margin-bottom:6px; }
[lang="en"] .m-card-title, [lang="ru"] .m-card-title{ font-family:var(--font-title-en); }
.m-card-sub{ font-size:14px; font-weight:300; color:var(--text-muted); margin-bottom:20px; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.m-field{ margin-bottom:18px; }
.m-row{ display:flex; gap:16px; flex-wrap:wrap; }
.m-row > .m-field{ flex:1 1 220px; }
.m-label{ display:block; font-size:13px; font-weight:600; color:var(--text-h); margin-bottom:6px; letter-spacing:0.01em; }
.m-label .m-req{ color:var(--coral); margin-inline-start:3px; }
.m-hint{ font-size:12.5px; font-weight:300; color:var(--text-muted); margin-top:5px; }
/* The .m-terms-* panel that held the inline Terms placeholder is gone: the
   Terms page is published in all three languages and the consent block links
   to it exactly as it links to the Privacy Policy. */

/* A field that stopped the submit. The message alone is not enough on a long
   form, where it can sit above the fold while the person looks at the button. */
.m-invalid{ border-color:var(--coral) !important; box-shadow:0 0 0 3px rgba(216,113,88,0.14); }
.m-check input.m-invalid{ outline:2px solid var(--coral); outline-offset:2px; box-shadow:none; }

/* ── Registered events on the dashboard ────────────────────────────────── */
.my-ev-group + .my-ev-group{ margin-top:22px; }
.my-ev-group-title{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
  color:var(--text-muted); margin:0 0 10px;
}
/* Past and cancelled are context, not commitments: present but stepped back so
   what someone is actually going to reads first. */
.my-ev-group.muted{ opacity:.72; }
.my-ev-row{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:13px 14px; margin-bottom:8px; border:1px solid var(--border);
  border-radius:10px; background:var(--white); text-decoration:none !important;
  transition:border-color .15s, transform .15s;
}
.my-ev-row:hover{ border-color:var(--teal-btn); transform:translateY(-1px); }
/* The gap between rows belongs between rows. On the last one it was adding to
   the card's own padding and giving this card more air at the bottom than every
   other card has. Group separation is handled by .my-ev-group + .my-ev-group. */
.my-ev-row:last-child{ margin-bottom:0; }
.my-ev-main{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.my-ev-title{ font-weight:600; color:var(--text-h); font-size:15px; }
.my-ev-date{ font-size:13px; font-weight:300; color:var(--text-muted); }
.my-ev-side{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.my-ev-go{ font-size:13px; color:var(--teal-btn); white-space:nowrap; }
@media (max-width:520px){
  .my-ev-row{ flex-direction:column; align-items:flex-start; }
  .my-ev-go{ display:none; }        /* the whole row is the link on a phone */
}

/* The three registration states. Registered reuses the green of an open event;
   outstanding is amber, the site's colour for something unfinished. */
.status-badge.ev-b-ok{ background:#dff0e2; color:#2a7a4a; border:1px solid #b6dcc0; }
.status-badge.ev-b-owed{ background:#fdf6e6; color:#8a6a24; border:1px solid #ecdcb4; }
.status-badge.ev-b-cancelled{ background:#ececec; color:#777; border:1px solid #d8d8d8; }

/* Detail view */
.my-ses{ list-style:none; margin:0; padding:0; }
.my-ses li{ display:flex; flex-direction:column; padding:7px 0; border-bottom:1px solid var(--border); }
.my-ses li:last-child{ border-bottom:none; }
.my-ses span{ font-size:13px; font-weight:300; color:var(--text-muted); }
.my-atts{ list-style:none; margin:0; padding:0; }
.my-att{
  display:grid; grid-template-columns:1fr auto; gap:2px 12px;
  padding:11px 0; border-bottom:1px solid var(--border);
}
.my-att:last-child{ border-bottom:none; }
.my-att-name{ font-weight:600; color:var(--text-h); font-size:14.5px; }
.my-att-tier{ font-weight:400; color:var(--text-muted); font-size:12.5px; margin-inline-start:8px; }
.my-att-extra{ grid-column:1; font-size:12.5px; font-weight:300; color:var(--text-muted); }
.my-att-amt{ grid-row:1; grid-column:2; font-weight:600; color:var(--text-h); }
.my-hist{ list-style:none; margin:0; padding:0; }
.my-hist li{ display:flex; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); font-size:13.5px; font-weight:300; }
.my-hist li:last-child{ border-bottom:none; }
.my-hist-when{ color:var(--text-muted); white-space:nowrap; }
.my-hist-what{ flex:1; }
.my-hist-amt{ font-weight:600; color:var(--text-h); }

/* ── Wallet card ───────────────────────────────────────────────────────── */
.wal-balance{
  font-family:var(--font-title); font-size:26px; font-weight:700;
  color:var(--teal); margin:2px 0 4px;
}
[lang="en"] .wal-balance, [lang="ru"] .wal-balance{ font-family:var(--font-title-en); }
/* The balance is the whole card until somebody asks for more. Styled as a row
   rather than a button so it reads as a figure you can open, not a control. */
.wal-toggle{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; padding:0; margin:2px 0 4px; background:none; border:none;
  cursor:pointer; text-align:inherit; font:inherit; color:inherit;
}
.wal-toggle .wal-chev{
  font-size:24px; line-height:1; color:var(--text-muted);
  transition:transform .18s; flex-shrink:0;
}
[dir="rtl"] .wal-toggle .wal-chev{ transform:scaleX(-1); }
.wal-toggle.open .wal-chev{ transform:rotate(90deg); }
[dir="rtl"] .wal-toggle.open .wal-chev{ transform:scaleX(-1) rotate(90deg); }
.wal-toggle:hover .wal-balance{ color:var(--teal-btn); }
.wal-toggle:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(91,127,133,0.25); border-radius:8px; }
.wal-detail[hidden]{ display:none; }
.wal-more{ cursor:default; }

.wal-list{ list-style:none; margin:14px 0 0; padding:14px 0 0; border-top:1px solid var(--border); }
.wal-row{ display:flex; align-items:baseline; gap:12px; padding:6px 0; font-size:13.5px; font-weight:300; }
.wal-when{ color:var(--text-muted); white-space:nowrap; font-size:12.5px; }
.wal-what{ flex:1; }
.wal-amt{ font-weight:600; white-space:nowrap; }
/* Money in is worth noticing; money out is just a record. */
.wal-amt.is-credit{ color:#3d6b4c; }
.wal-amt.is-debit{ color:var(--text-muted); }

/* ── Registration updates ──────────────────────────────────────────────── */
/* The credit choice and the wallet toggle sit inside the totals card, between
   the figures they change, so the effect of picking one is visible in the same
   glance. Cream on white, matching how the site marks a block within a page. */
.ev-credit, .ev-wallet{
  margin:14px 0; padding:14px 16px; background:var(--cream-bg);
  border:1px solid var(--border); border-radius:10px;
}
.ev-credit .m-label{ margin-bottom:10px; }
/* A chip that has been chosen must not look like one that merely can be. The
   tick carries it as much as the fill does, because two teal-ish states next to
   each other are easy to misread. */
.ev-credit .ev-chip.on{ font-weight:600; }
.ev-credit .ev-chip:not(.on):hover{ border-color:var(--teal-btn); color:var(--teal-btn); }
.ev-wallet .m-check{ margin-bottom:0; }
.ev-wallet .ev-total-row{ margin-top:10px; }

.ev-cancel-list{ list-style:none; margin:0; padding:0; }
.ev-cancel-list li{ padding:5px 0; border-bottom:1px solid var(--border); font-size:14.5px; }
.ev-cancel-list li:last-child{ border-bottom:none; }
/* Coral, because this is the one screen where the consequence is irreversible
   from the member's side and should read that way. */
.ev-cancel-note{
  margin:14px 0 4px; padding:12px 14px; border-radius:10px;
  background:rgba(216,113,88,0.08); border:1px solid rgba(216,113,88,0.35);
  color:var(--text-body); font-size:14px; line-height:1.7;
}

/* A hint that is telling you something is unfinished, not just explaining. */
.m-hint-warn{ color:var(--coral); font-weight:400; }

.m-input, .m-select, .m-textarea{
  width:100%; padding:11px 14px; font-family:var(--font-body); font-size:15px;
  color:var(--text-body); background:var(--white);
  border:1px solid var(--border); border-radius:8px; transition:border-color .15s, box-shadow .15s;
}
.m-textarea{ min-height:96px; resize:vertical; line-height:1.6; }
.m-input:focus, .m-select:focus, .m-textarea:focus{
  outline:none; border-color:var(--teal-btn); box-shadow:0 0 0 3px rgba(91,127,133,0.15);
}
.m-input:disabled, .m-input[readonly]{ background:var(--cream-bg); color:var(--text-muted); cursor:not-allowed; }

/* Hebrew date line under a date of birth. Derived on read, so it is presented
   as supporting information rather than an editable field. */
.m-heb{ margin-top:6px; font-size:13px; line-height:1.5; }
.m-heb[hidden]{ display:none; }
.m-heb-label{ color:var(--text-muted); }
.m-heb-value{ color:var(--teal); font-weight:600; }

/* Password field with a reveal toggle, mirroring the admin login. The eye is
   positioned with inset-inline-end so it lands on the correct side in Hebrew
   (RTL) as well as English and Russian. */
.m-pw-wrap{ position:relative; }
.m-pw-wrap .m-input{ padding-inline-end:44px; }
.m-pw-eye{
  position:absolute; top:50%; transform:translateY(-50%); inset-inline-end:6px;
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
  background:none; border:none; cursor:pointer; color:var(--text-muted);
  border-radius:50%; padding:0;
}
.m-pw-eye:hover{ color:var(--teal); background:rgba(64,86,95,0.06); }
.m-pw-eye:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(91,127,133,0.25); }
.m-pw-eye svg{ width:19px; height:19px; }

.m-check{ display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; font-size:14.5px; font-weight:300; cursor:pointer; }
.m-check input{ width:17px; height:17px; margin-top:4px; accent-color:var(--teal-btn); flex-shrink:0; cursor:pointer; }

/* The honeypot: in the page for a bot to fill in, invisible to a person.
   Hidden by clipping, NOT by parking it at left:-9999px. In a right to left
   page that offset is not off screen at all: left is the scrolling direction,
   so the browser grows the document ten thousand pixels wide and lands the
   reader on empty ground with the form somewhere off to the side. Every other
   page on the site hid that with html,body{overflow-x:hidden}; the member
   pages do not carry it, which is why the join form was the one that broke.
   display:none is not the alternative: a bot that skips hidden fields would
   skip this one too, and then it catches nothing. */
.m-hp{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }

/* Dietary tag pills — a checkbox styled as a toggle. */
.m-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.m-tag{ position:relative; }
.m-tag input{ position:absolute; opacity:0; pointer-events:none; }
.m-tag span{
  display:inline-block; padding:7px 15px; border-radius:20px; font-size:13.5px; font-weight:500;
  background:var(--white); color:var(--text-body); border:1px solid var(--border);
  cursor:pointer; transition:all .15s; user-select:none;
}
.m-tag input:checked + span{ background:var(--teal-btn); border-color:var(--teal-btn); color:var(--white); }
.m-tag input:focus-visible + span{ box-shadow:0 0 0 3px rgba(91,127,133,0.25); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.m-btn{
  display:inline-block; font-family:var(--font-body); font-size:15px; font-weight:600;
  padding:12px 32px; border-radius:26px; border:1px solid transparent; cursor:pointer;
  text-decoration:none; text-align:center; transition:all .18s;
}
.m-btn-primary{ background:var(--teal-btn); color:var(--white); }
.m-btn-primary:hover:not(:disabled){ background:var(--teal); }
.m-btn-ghost{ background:transparent; color:var(--teal); border-color:var(--border); }
.m-btn-ghost:hover:not(:disabled){ background:var(--cream-bg); border-color:var(--teal-btn); }
.m-btn-sm{ padding:8px 18px; font-size:13.5px; }
.m-btn:disabled{ opacity:.55; cursor:not-allowed; }
.m-btn-link{ background:none; border:none; padding:0; color:var(--teal-btn); font:inherit; font-size:14px; cursor:pointer; text-decoration:underline; }
/* Ordinary links inside the member area. There was no rule for a bare <a> at
   all, so every one of them fell back to browser blue: the sign up link on the
   login page, the back to login link on the reset screen, and the privacy link
   on the join form. Matches .m-btn-link, which is a <button> that has always
   been teal, so the two read the same. Anchors wearing .m-btn keep their button
   styling and are excluded. */
#m-root a:not(.m-btn){ color:var(--teal-btn); text-decoration:underline; }
#m-root a:not(.m-btn):hover{ color:var(--teal); }
.m-actions{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:24px; }

/* ── Messages ──────────────────────────────────────────────────────────── */
.m-msg{ padding:13px 17px; border-radius:10px; font-size:14.5px; font-weight:300; margin-bottom:18px; }
.m-msg-error{ background:#fdf1ef; color:#a04434; border:1px solid #f0d4cd; }
.m-msg-ok{ background:var(--green-bg); color:var(--green); border:1px solid #cfe0d4; }
.m-msg-info{ background:var(--cream-bg); color:var(--text-body); border:1px solid var(--border); }
.m-msg[hidden]{ display:none; }

/* A standing announcement inside a card, under the form it relates to. Amber
   like .m-banner, because this is a heads up and not a failure, and it keeps
   the same accent edge that flips side under RTL. */
.m-notice{ background:var(--amber-bg); border:1px solid #ecdcb4; border-left:4px solid var(--amber);
  border-radius:12px; padding:16px 18px; margin-bottom:20px; }
[dir="rtl"] .m-notice{ border-left:1px solid #ecdcb4; border-right:4px solid var(--amber); }
.m-notice p{ font-size:14px; font-weight:300; line-height:1.65; color:#7a6330; }
.m-notice p + p{ margin-top:8px; }
.m-notice a{ color:#8a6a24; font-weight:500; text-decoration:underline; }
.m-notice a:hover{ color:var(--coral); }

/* ── Dashboard ─────────────────────────────────────────────────────────── */
.m-hello{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:26px; }

.m-banner{ background:var(--amber-bg); border:1px solid #ecdcb4; border-left:4px solid var(--amber); border-radius:12px; padding:22px 24px; margin-bottom:24px; }
[dir="rtl"] .m-banner{ border-left:1px solid #ecdcb4; border-right:4px solid var(--amber); }
.m-banner-title{ font-weight:600; color:#8a6a24; font-size:16.5px; margin-bottom:6px; }
.m-banner-body{ font-size:14.5px; font-weight:300; color:#7a6330; margin-bottom:14px; }

.m-progress{ height:7px; background:#ece2ca; border-radius:4px; overflow:hidden; margin-bottom:8px; max-width:320px; }
.m-progress-bar{ height:100%; background:var(--amber); border-radius:4px; transition:width .4s ease; }
.m-progress-text{ font-size:13px; color:#8a6a24; font-weight:500; margin-bottom:14px; }

/* The same 20px every .m-card carries, so the card below the grid is separated
   from it exactly as the cards below that are separated from each other. The
   events card used to sit 20px tighter than the wallet card purely because the
   grid had no bottom margin. */
.m-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin-bottom:20px; }
.m-stat{ background:var(--white); border:1px solid var(--border); border-radius:12px; padding:20px 22px; }
.m-stat-label{ font-size:12.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); margin-bottom:6px; }
.m-stat-value{ font-family:var(--font-title); font-size:26px; font-weight:700; color:var(--text-h); }
[lang="en"] .m-stat-value, [lang="ru"] .m-stat-value{ font-family:var(--font-title-en); }

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.m-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:26px; flex-wrap:wrap; }
.m-tab{
  background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-1px;
  padding:11px 18px; font-family:var(--font-body); font-size:14.5px; font-weight:500;
  color:var(--text-muted); cursor:pointer; transition:all .15s; position:relative;
}
.m-tab:hover{ color:var(--text-h); }
.m-tab.active{ color:var(--teal); border-bottom-color:var(--teal-btn); font-weight:600; }
.m-tab .m-tab-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--amber); margin-inline-start:7px; vertical-align:middle; }
.m-panel[hidden]{ display:none; }

/* ── Family member rows ────────────────────────────────────────────────── */
.m-person{ background:var(--cream-bg); border:1px solid var(--border); border-radius:12px; padding:20px; margin-bottom:14px; position:relative; }
.m-person-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.m-person-name{ font-weight:600; color:var(--text-h); font-size:15.5px; }
.m-person-age{ font-size:13px; color:var(--text-muted); font-weight:300; margin-inline-start:8px; }
.m-remove{ background:none; border:none; color:var(--coral); font-size:13.5px; cursor:pointer; padding:4px 8px; border-radius:6px; }
.m-remove:hover{ background:#fdf1ef; }
.m-empty{ text-align:center; padding:32px 20px; color:var(--text-muted); font-weight:300; font-size:14.5px; }

/* ── Onboarding walkthrough ────────────────────────────────────────────── */
.m-ob-backdrop{ position:fixed; inset:0; background:rgba(30,42,46,0.45); z-index:900; }
.m-ob-backdrop[hidden]{ display:none; }
/* The step being explained is lifted above the backdrop so the highlight reads
   as "this bit", without moving anything in the layout. */
.m-ob-spotlight{ position:relative; z-index:910; border-radius:14px; box-shadow:0 0 0 5px rgba(255,255,255,0.9), 0 12px 40px rgba(0,0,0,0.28); }

.m-ob-pop{
  position:fixed; z-index:920; max-width:360px; width:calc(100% - 40px);
  background:var(--white); border-radius:14px; padding:22px 24px;
  box-shadow:0 16px 48px rgba(0,0,0,0.24); border:1px solid var(--border);
}
.m-ob-pop[hidden]{ display:none; }
.m-ob-step{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--teal-btn); font-weight:600; margin-bottom:8px; }
.m-ob-title{ font-family:var(--font-title); font-size:19px; font-weight:700; color:var(--text-h); margin-bottom:8px; }
[lang="en"] .m-ob-title, [lang="ru"] .m-ob-title{ font-family:var(--font-title-en); }
.m-ob-body{ font-size:14.5px; font-weight:300; margin-bottom:18px; }
.m-ob-actions{ display:flex; gap:10px; align-items:center; justify-content:space-between; }
.m-ob-dots{ display:flex; gap:6px; }
.m-ob-dot{ width:7px; height:7px; border-radius:50%; background:var(--border); }
.m-ob-dot.on{ background:var(--teal-btn); }

/* ── Event registration ────────────────────────────────────────────────── */
/* One row per person. Removing somebody dims the row rather than deleting it,
   so the action is undoable and the household stays recognisable. */
.ev-row{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--border); }
.ev-row:last-child{ border-bottom:none; }
.ev-row-main{ flex:1 1 auto; min-width:0; }
.ev-row-name{ font-weight:600; color:var(--text-h); font-size:15.5px; }
.ev-row-meta{ font-size:13px; color:var(--text-muted); font-weight:300; margin-top:2px; }
/* What we hold on this person, inline under their name. Rendered only when
   there is something: an empty state repeated down a household of six was the
   bulk of what the old second card showed. */
.ev-row-detail{ font-size:13px; font-weight:300; color:var(--teal); margin-top:3px; line-height:1.5; }
/* Accessibility is recorded for the household, not per person, so it sits once
   under the list rather than against a name. */
.ev-house-note{ margin-top:14px; padding:11px 14px; background:var(--cream-bg); border-radius:8px; font-size:13.5px; font-weight:300; }
.ev-house-label{ font-weight:600; color:var(--text-h); }
.ev-row-price{ font-size:15.5px; color:var(--text-h); white-space:nowrap; }
.ev-row-btn{
  background:none; border:1px solid var(--border); border-radius:20px; color:var(--text-muted);
  font-family:var(--font-body); font-size:15px; line-height:1; cursor:pointer;
  min-width:32px; height:32px; padding:0 12px; flex-shrink:0;
}
.ev-row-btn:hover{ border-color:var(--coral); color:var(--coral); }
.ev-row-off{ opacity:.5; }
.ev-row-off .ev-row-btn{ font-size:13px; border-color:var(--teal-btn); color:var(--teal-btn); }

.ev-detail{ padding:11px 0; border-bottom:1px solid var(--border); }
.ev-detail:last-child{ border-bottom:none; }
.ev-detail-name{ font-weight:600; color:var(--text-h); font-size:14.5px; }
.ev-detail-body{ font-size:14px; font-weight:300; color:var(--text-body); }

.ev-total-row{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:11px 0; font-size:15.5px; }
.ev-total-row + .ev-total-row{ border-top:1px solid var(--border); }
.ev-total-grand{ border-top:2px solid var(--teal-btn); margin-top:6px; padding-top:16px; font-size:18px; color:var(--text-h); }
.ev-total-grand strong{ font-family:var(--font-title); font-size:26px; color:var(--teal); }
[lang="en"] .ev-total-grand strong, [lang="ru"] .ev-total-grand strong{ font-family:var(--font-title-en); }

.ev-donation{ padding:16px 0 6px; border-top:1px solid var(--border); }
.ev-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 4px; }
.ev-chip{
  padding:8px 17px; border-radius:20px; font-family:var(--font-body); font-size:14px; font-weight:500;
  background:var(--white); color:var(--text-body); border:1px solid var(--border); cursor:pointer; transition:all .15s;
}
.ev-chip:hover{ border-color:var(--teal-btn); }
.ev-chip.on{ background:var(--teal-btn); border-color:var(--teal-btn); color:var(--white); }

/* Add someone: a dialog over the page, so the list underneath is not lost. */
.ev-modal{ position:fixed; inset:0; z-index:950; display:flex; align-items:center; justify-content:center; padding:20px; }
.ev-modal-backdrop{ position:absolute; inset:0; background:rgba(30,42,46,0.45); }
.ev-modal-card{
  position:relative; background:var(--white); border:1px solid var(--border); border-radius:16px;
  padding:26px 24px; width:100%; max-width:520px; max-height:calc(100vh - 40px); overflow-y:auto;
  box-shadow:0 16px 48px rgba(0,0,0,0.24);
}
.ev-modal-card .m-tabs{ margin-bottom:20px; }

/* The .nav-account chip is styled in shared.css, not here: nav.js injects it on
   every page on the site, and member.css only loads on the member pages. */

@media (max-width:640px){
  .m-page{ padding:96px 18px 56px; }
  .m-card{ padding:24px 20px; }
  .m-title{ font-size:27px; }
  .m-row{ gap:0; }
  .m-row > .m-field{ flex:1 1 100%; }
  .m-tabs{ gap:0; }
  .m-tab{ padding:10px 12px; font-size:13.5px; }
  .m-btn{ width:100%; }
  .m-actions .m-btn-link{ width:auto; }
}

/* The early price caveat, under the attendee total on the payment page. The
   amount is decided at checkout, so a household that saw one number here has
   no way of knowing it will be another when they come back. Quiet but not
   hidden: it sits against the number it qualifies. */
.ev-early-note{ font-size:12.5px; font-weight:300; line-height:1.6; color:var(--text-muted,#7a8a8c); margin:2px 0 10px; }

/* A registration on the waiting list. Not an error and not a cancellation:
   the place is not being held right now, and it may well be given back. */
.status-badge.ev-b-wait{ background:#f6e4de; color:#9a4a33; }

/* The free text box under the city select, shown only while Other is chosen.
   margin-top rather than a gap, because it is a second control inside one
   .m-field and the label above belongs to the select. */
.m-city-other { margin-top: 8px; }
.m-city-other[hidden] { display: none; }
