:root {
  --teal: #159aa8;
  --teal-dark: #0f7a86;
  --teal-600: #12868f;
  --teal-soft: #eef8f9;
  /* Community events: a deliberately off-teal accent so member-proposed events
     read as a different kind of thing at a glance. --community on white is
     ~7.4:1, so it clears AA for normal text (SI 5568 / WCAG 2.0 AA). Colour only
     reinforces here — the section heading and the card badge carry the meaning. */
  --community: #6b3fa0;
  --community-dark: #57327f;
  --community-soft: #f6f1fc;
  --community-line: #e2d5f2;
  --ink: #1a2632;
  --ink-soft: #3d4d59;
  --muted: #6d7c86;
  --line: #eaeef1;
  --line-strong: #dce3e7;
  --bg: #ffffff;
  --bg-alt: #f8fafb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 50, 0.04), 0 1px 3px rgba(16, 40, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 60, 70, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 60, 70, 0.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

/* The browser's own [hidden] { display: none } lives in the UA stylesheet, and
   ANY author declaration beats it regardless of specificity — so .field and
   .grid-2 below (both display: grid) silently defeat the hidden attribute on the
   elements that carry them. Every `hidden` toggle in admin.js relies on this
   working: #f-id-field, #f-register-field and #f-contact-field are all
   .field/.grid-2. !important rather than source order, so a future #id rule
   setting display can't reintroduce the bug. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

/* ---------- Accessibility: keyboard focus + skip link ---------- */
:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  right: 0;
  top: -60px;
  z-index: 100;
  background: var(--teal-dark);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.muted { color: var(--muted); }

/* ---------- Header / title bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand b { color: var(--teal); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 20%, transparent 21%),
    conic-gradient(from 210deg, var(--teal), var(--teal-dark), #34b6c2, var(--teal));
  box-shadow: 0 2px 6px rgba(21, 154, 168, 0.4);
}
.site-nav { display: flex; align-items: center; gap: .4rem; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .98rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }

/* Hamburger toggle — hidden on desktop, shown on mobile via media query */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--teal-soft) 0%, transparent 60%),
    #fff;
  overflow: hidden;
}
.hero-inner { max-width: 760px; position: relative; }
.hero-kicker {
  display: inline-block;
  letter-spacing: .2em;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: .78rem;
  background: var(--teal-soft);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin: 0 0 1.1rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
  color: var(--ink);
}
.hero-tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--teal-dark);
  font-weight: 500;
  margin: 0 0 .15rem;
}
.hero-tagline-en {
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: .03em;
  margin: 0 0 1.6rem;
  direction: ltr;
  text-transform: uppercase;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  margin: 0 0 2rem;
  font-weight: 400;
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .72rem 1.7rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, box-shadow .18s ease, transform .1s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 154, 168, 0.28);
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 6px 20px rgba(21, 154, 168, 0.36); }
.btn-primary[aria-disabled="true"] {
  background: #cdd9dd;
  color: #fff;
  box-shadow: none;
  cursor: default;
}
.btn-primary[aria-disabled="true"]:active { transform: none; }
.btn-ghost {
  background: #fff;
  color: var(--teal-dark);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-lg { padding: .95rem 2.3rem; font-size: 1.08rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.section-lead {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}
.about {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.about p { max-width: 68ch; }

/* ---------- Events list ---------- */
.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.event-name { margin: 0 0 .6rem; font-size: 1.28rem; font-weight: 700; line-height: 1.3; }
.event-name a { color: var(--ink); }
.event-name a:hover { color: var(--teal-dark); }
.event-meta {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .92rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.event-faculty { color: var(--teal-dark); font-weight: 600; }
.event-location { color: var(--ink-soft); }
.event-cost { color: var(--ink); font-weight: 700; }
.event-dot { color: var(--line-strong); }
.event-summary { margin: 0 0 1.4rem; color: var(--ink-soft); flex: 1; }
.event-actions { margin-top: auto; }
.event-actions .btn { width: 100%; }

/* ---------- Community-event cards ---------- */
/* Same .event-card structure, recoloured: a violet left edge (inline-start, so
   it sits on the right in RTL), violet faculty/CTA, violet-tinted hover. The
   "אירועי קהילה" section heading states the grouping in words, so the colour is
   never the only signal. */
.event-card-community {
  border-color: var(--community-line);
  border-inline-start: 4px solid var(--community);
  background: linear-gradient(180deg, var(--community-soft) 0%, #fff 42%);
}
.event-card-community:hover { border-color: var(--community); }
.event-card-community .event-name a:hover { color: var(--community-dark); }
.event-card-community .event-faculty { color: var(--community-dark); }
.event-card-community .faculty-avatar-empty { background: var(--community-soft); }
.event-card-community .btn-primary {
  background: var(--community);
  box-shadow: 0 4px 14px rgba(107, 63, 160, 0.28);
}
.event-card-community .btn-primary:hover {
  background: var(--community-dark);
  box-shadow: 0 6px 20px rgba(107, 63, 160, 0.36);
}
/* The section heading, so the grouping is signalled before any card is read.
   (The cards carry no per-card badge — the heading above them says it once.) */
.section-title-community { color: var(--community-dark); }

/* ---------- Event detail page ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 1.8rem 0 1rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.back-link:hover { color: var(--teal-dark); }
.event-detail { padding-bottom: 4rem; max-width: 780px; }
.event-detail-head {
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.event-detail-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: .3rem 0 1rem;
}
.event-meta-lg { font-size: 1.05rem; }
.event-detail-body p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.event-detail-body h2,
.event-detail-body h3,
.event-detail-body h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.6rem 0 .6rem;
}
.event-detail-body h2 { font-size: 1.5rem; }
.event-detail-body h3 { font-size: 1.25rem; }
.event-detail-body h4 { font-size: 1.1rem; }
.event-detail-body ul,
.event-detail-body ol {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  padding-inline-start: 1.4rem;
}
.event-detail-body li { margin-bottom: .4rem; }
.event-detail-body a { color: var(--teal-dark); text-decoration: underline; }
.field-hint { font-size: .82rem; margin: -.4rem 0 0; }
.field-hint code {
  background: var(--bg-alt);
  padding: .05rem .35rem;
  border-radius: 5px;
  direction: ltr;
  display: inline-block;
}
.event-detail-cta {
  margin-top: 2.4rem;
  padding: 1.8rem;
  background: var(--teal-soft);
  border-radius: var(--radius);
  text-align: center;
}
.cost-badge {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 2rem;
  padding: .7rem 1.4rem;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(21, 154, 168, 0.28);
}
.cost-badge-label { font-size: .95rem; font-weight: 500; opacity: .9; }
.cost-badge-value { font-size: 1.35rem; font-weight: 700; }
.reg-badge {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .3rem .9rem;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
/* Same pill, sized to sit inline inside .event-meta on the events list. */
.reg-badge-inline { margin-bottom: 0; padding: .2rem .7rem; font-size: .8rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 2.2rem 0;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--teal-dark); }

/* ---------- Legal pages (accessibility / privacy) ---------- */
.legal { padding: 2.5rem 0 4rem; max-width: 820px; }
.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 .6rem;
}
.legal p, .legal li { color: var(--ink-soft); font-size: 1.05rem; }
.legal ul { padding-inline-start: 1.4rem; }
.legal li { margin-bottom: .4rem; }
.legal .back-link { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .events-list { grid-template-columns: 1fr; }

  /* Show hamburger; collapse nav into a dropdown panel. */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .6rem clamp(1.1rem, 4vw, 2rem) 1rem;
    /* hidden until toggled */
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem .6rem; border-radius: 8px; }
  .auth-slot {
    justify-content: space-between;
    padding-top: .6rem;
    margin-top: .3rem;
    border-top: 1px solid var(--line);
  }
  .auth-name { max-width: none; }
}
@media (max-width: 480px) {
  .header-inner { height: 58px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 26px; height: 26px; }
  .hero-kicker { font-size: .72rem; }
  .event-detail-cta { padding: 1.4rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .event-card:hover { transform: none; }
}

/* ---------- Auth (header) ---------- */
.auth-slot { display: inline-flex; align-items: center; gap: .6rem; }
.auth-name {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }

/* ---------- Forms (registration + admin) ---------- */
.reg-form, .admin-form { display: grid; gap: 1rem; text-align: start; max-width: 640px; margin-inline: auto; }
.admin-form { max-width: none; margin-inline: 0; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(21, 154, 168, 0.15);
}
.field input[readonly] { background: var(--bg-alt); color: var(--muted); }
.field input:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.field textarea { resize: vertical; }
/* Checkbox field: inline row instead of the default stacked label. */
.field-check { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center;
  justify-content: start; gap: .5rem; }
.field-check input { width: auto; }
.field-check > span { font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
.inline-form .grow { min-width: 0; }
.reg-status { margin: 0; font-size: .92rem; color: var(--teal-dark); }
.reg-status-err { color: #c0392b; }

/* Hide an element visually but keep it operable and reachable by a screen reader
   (display:none / visibility:hidden would remove it from the tree). Nothing uses
   it since the transfer-proof upload was removed; kept as the one correct way to
   do it, so the next place that needs it doesn't invent a broken version.
   `input.visually-hidden` is listed too: such an input inside a .field would
   otherwise have `.field input` above out-specify the width/padding here. */
.visually-hidden,
input.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Admin lists ---------- */
.admin-list { display: grid; gap: .6rem; }
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
}
/* Granting a per-person discount, inside the same .admin-list as the grants it adds
   to. Boxed like an .admin-row so the panel reads as one thing, but a grid rather
   than a flex row: it holds .field/.grid-2 grids, which a flex row would squash.
   --bg-alt rather than #fff so the form is told apart from the grants above it. */
.discount-form {
  display: grid;
  gap: .6rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
}
.discount-form .btn { justify-self: start; }

/* .reg-group-head too: an event block shows its id there, the same way an admin
   row used to. */
.admin-row code, .reg-group-head code {
  background: var(--bg-alt);
  padding: .1rem .4rem;
  border-radius: 6px;
  font-size: .85em;
  direction: ltr;
  display: inline-block;
}

/* ---------- Faculty photos ---------- */
.faculty-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
/* Placeholder holding the avatar's space while the cached list paints without
   photos (app.js strips them from localStorage). Same box, no image yet. */
.faculty-avatar-empty {
  display: inline-block;
  background: var(--teal-soft);
}
.event-faculty-wrap { display: inline-flex; align-items: center; gap: .4rem; }
.faculty-block { display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .8rem; }
.faculty-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal-soft);
}
.photo-preview {
  width: 96px; height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  margin-bottom: .5rem;
}
#photo-preview-wrap { display: block; }

/* ---------- Admin thumbnails ---------- */
.admin-row-main { display: flex; align-items: center; gap: .8rem; }
.admin-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.admin-thumb-empty { background: var(--bg-alt); border: 1px dashed var(--line-strong); }
.admin-row-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-title { margin-top: 2rem; }
.note-sm { font-size: .88rem; }

/* A section heading with its own control beside it — the console's "load this on
   request" buttons. Same shape as .reg-group-head, minus the rule underneath, and
   `wrap` so a long Hebrew label drops below the heading on a narrow screen instead
   of squeezing it. Note the heading keeps its own bottom margin, so the button
   aligns with the text rather than the gap. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

/* ---------- Registration groups ---------- */
.reg-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
  background: #fff;
}
.reg-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.reg-group-head h3 { margin: 0; font-size: 1.15rem; }
.reg-count { color: var(--muted); font-weight: 400; font-size: .95rem; }

/* The admin console's within-section headings — deleted events, orphan
   registrations. An h3 under the section's h2, so the heading order stays correct
   for a screen reader; hidden entirely when its list is empty. */
.subsection-title {
  font-size: 1.1rem;
  margin: 1.8rem 0 .8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

/* ---------- Receipts, transfer proofs, community-event status ---------- */
/* Receipt state on an admin registration row. Text carries the meaning; the
   colour only reinforces it (no colour-only information — SI 5568 / WCAG AA). */
.receipt-flag { font-weight: 600; }
.receipt-yes { color: var(--teal); }
.receipt-no { color: var(--muted); }

/* A transfer screenshot, revealed inside its row on demand. Historical rows only —
   the site takes no new transfer proofs — but the ones on file are financial
   evidence and the admin console still shows them. */
.proof-slot { flex-basis: 100%; margin-top: .6rem; }
.proof-img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
/* The row wraps so the proof can occupy a full-width line below the actions. */
.admin-row-stack { flex-wrap: wrap; }

/* Pending/published pill, same shape as .reg-badge. */
.status-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.status-published { background: var(--teal); color: #fff; }
.status-pending { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line-strong); }
/* "This is a community event" on the detail page — violet, matching the cards,
   rather than the teal .status-published pill it used to borrow. */
.status-community { background: var(--community); color: #fff; }
/* "Payment is arranged privately" in the admin event list. Deliberately not the
   teal .status-published pill: this is a property of the event, not a state
   someone moved it into — and it has to be scannable in a list where every other
   row says nothing. #8a4b00 is a dark amber, ~7:1 on white, reading as "note
   this" rather than as an error. */
.status-private { background: #fff5e6; color: #8a4b00; border: 1px solid #e0b070; }

/* The private-payment notice on the event page. A callout, not a warning: the
   participant hasn't done anything wrong, there's simply one more step that
   doesn't happen on this site. border-inline-start keeps the accent bar on the
   leading edge under dir="rtl". */
.pay-private {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  background: var(--bg-alt);
  border-inline-start: 4px solid var(--teal);
  border-radius: 8px;
}
.pay-private h4 { margin: 0 0 .4rem; font-size: 1rem; color: var(--teal-dark); }
.pay-private p { margin: .4rem 0; }
.pay-private .event-actions { margin-top: .6rem; }

/* ---------- Card payments ---------- */
/* Payment state, on the event page and the return page. As with .receipt-flag,
   the words carry the meaning and the colour only reinforces it — no
   colour-only information (SI 5568 / WCAG AA). */
/* --teal-dark rather than --teal (which .receipt-flag uses): this is body-size
   text on white in the one place a participant is told their money arrived, and
   the darker shade is already the link colour, so it clears AA contrast without
   introducing a colour. */
.pay-state { font-weight: 600; margin: .6rem 0; }
.pay-state-ok { color: var(--teal-dark); }
/* "Not paid yet" is an action-needed state, not a footnote, so it does NOT use
   --muted: on the registrations list it sits among muted detail lines and would
   read as one of them. #8a4b00 is a dark amber — ~7:1 on white, so it clears AA
   even at this weight, and it reads as "attention" without reading as "error"
   (the payment may simply not have been attempted yet). */
.pay-state-due { color: #8a4b00; }
.pay-state-err { color: #c0392b; }
/* A discount granted to this person for this event. Same --teal-dark as
   .pay-state-ok: it is good news, and it must not read as an error or as an
   action-needed state. The old price is inside a .muted <span> and the words say
   "instead of", so the two amounts are told apart by text, not by colour. */
.pay-discount { color: var(--teal-dark); }

@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  /* .reg-group-head too: an event block's head now carries up to four buttons
     (edit, delete, show registrations, CSV) beside the name. */
  .admin-row, .reg-group-head { flex-direction: column; align-items: stretch; }
}
