/* Menstrual Health Society — styles */
:root {
  /* Brand colours taken from the logo */
  --ink: #2b0a47;          /* text */
  --ink-2: #5d4b70;        /* secondary text */
  --purple: #6a1fa8;       /* emblem purple */
  --purple-deep: #3d0a64;  /* wordmark purple */
  --magenta: #e5157a;      /* drop pink, main buttons */
  --magenta-deep: #c00f63;
  --teal: #0092b2;         /* "Society" teal */
  --teal-soft: #e0f3f7;
  --red: #cc1a1e;          /* Flow with Pride red */
  --red-soft: #fdecec;
  --lilac: #f7f1fc;
  --lilac-2: #ede2f7;
  --paper: #ffffff;
  --line: #e2d6ee;
  --ok: #0d7a55;
  --err: #b4233c;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--magenta-deep); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 760; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.lede { font-size: 1.22rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-deep); color: #fff; }
.btn-secondary { background: var(--purple); color: #fff; }
.btn-secondary:hover { background: var(--purple-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--purple); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #8d1a2e; color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row form { margin: 0; }
.spaced { margin: 18px 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--purple); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish.danger, .danger { color: var(--err); }
.text-link { font-weight: 600; }

/* Parent strip + header */
.parent-strip { background: var(--lilac); color: var(--ink-2); font-size: .86rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.parent-strip .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.parent-strip a { display: inline-flex; align-items: center; }
.parent-strip img { height: 30px; width: auto; }
.site-head { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple-deep); font-weight: 760; line-height: 1.05; font-size: 1.02rem; }
.brand-logo { height: 70px; width: auto; }
.brand-panel img { width: 38px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 560; }
.site-nav a:not(.btn):hover { background: var(--lilac); color: var(--purple); }
.site-nav a[aria-current="page"] { color: var(--magenta-deep); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; font: inherit; font-weight: 650; background: var(--lilac); color: var(--purple-deep); border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-m); margin: 16px 0; border: 1px solid; }
.alert-ok { background: #e8f6f0; border-color: #a9dcc6; color: #0b5a3f; }
.alert-err { background: #fdecef; border-color: #f2b8c3; color: #8d1a2e; }
.notice { margin: 0 0 18px; }
code.pw { font-size: 1.15rem; background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid #a9dcc6; user-select: all; }

/* ---------- HERO: the club timetable ---------- */
.hero { background: linear-gradient(180deg, var(--lilac) 0%, #fff 100%); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 780; letter-spacing: -0.03em; color: var(--purple-deep); max-width: 15ch; }
.hero .lede { margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.9rem; font-weight: 760; color: var(--purple); line-height: 1; }
.hero-facts span { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }

.timetable { position: relative; background: #fff; border-radius: var(--radius-l); padding: 28px 28px 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(61,10,100,.35), 0 2px 0 var(--lilac-2); transform: rotate(1.2deg); }
.timetable::before { content: ""; position: absolute; top: -12px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff5aa5, var(--magenta) 60%, var(--magenta-deep)); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.tt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.tt-head h2 { font-size: 1.25rem; margin: 0; }
.tt-head span { color: var(--ink-2); font-size: .9rem; }
.tt-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.tt-row:last-child { border-bottom: 0; }
.tt-day { font-weight: 600; font-size: .95rem; }
.tt-club { color: var(--ink); font-weight: 520; }
.tt-time { font-size: .88rem; }
.tt-row.is-ours { margin: 6px -14px; padding: 16px 14px; border: 0; border-radius: var(--radius-m); background: var(--purple); color: #e9dcf7; }
.tt-row.is-ours .tt-club { color: #fff; font-weight: 720; font-size: 1.12rem; }
.tt-stamp { background: var(--magenta); color: #fff; font-weight: 760; font-size: .82rem; padding: 5px 12px; border-radius: 999px; transform: rotate(-6deg); box-shadow: 0 6px 14px -4px rgba(229,21,122,.55); }
@media (prefers-reduced-motion: no-preference) {
  .timetable .tt-row.is-ours { animation: slotIn .7s .35s cubic-bezier(.2,.8,.2,1) both; }
  .tt-stamp { animation: stampIn .45s 1s cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes slotIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
  @keyframes stampIn { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--lilac); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.12rem; }

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.contrast > div { padding: 34px 36px; }
.contrast .was { background: #fff; color: var(--ink-2); }
.contrast .now { background: var(--purple-deep); color: #e9dcf7; }
.contrast h3 { font-size: 1.35rem; }
.contrast .now h3 { color: #fff; }
.contrast ul { margin: 0; padding: 0; list-style: none; }
.contrast li { padding: 10px 0; border-top: 1px solid var(--line); }
.contrast .now li { border-color: rgba(255,255,255,.15); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pillar { border-top: 4px solid var(--purple); padding-top: 18px; }
.pillar:nth-child(2) { border-color: var(--magenta); }
.pillar:nth-child(3) { border-color: var(--teal); }
.pillar:nth-child(4) { border-color: var(--purple-deep); }
.pillar p { color: var(--ink-2); margin: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 720; font-size: .95rem; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps-row li { padding: 54px 0 0; }
.steps-row li::before { top: 0; width: 40px; height: 40px; font-size: 1.05rem; }
.steps-row li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: 8px; border-top: 2px dashed var(--line); }
.steps-row strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.steps-row span { color: var(--ink-2); }

/* Schools */
.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.school-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.school-card:hover { border-color: var(--purple); color: var(--ink); }
.school-card h3 { margin: 0; }
.school-card .meta { color: var(--ink-2); font-size: .94rem; }
.school-card .count { margin-top: auto; padding-top: 12px; font-weight: 650; color: var(--teal); }
.empty-public { padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius-l); text-align: center; background: #fff; }
.empty-public p { max-width: 52ch; margin: 0 auto 20px; color: var(--ink-2); }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--lilac-2); aspect-ratio: 4/3; }
.photo-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figure button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.photo-grid figure button:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(30,8,50,.75)); }
.photo-grid.home { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; }
.photo-grid.home figure { aspect-ratio: auto; }
.photo-grid.home figure:first-child { grid-row: span 2; }
.placeholder-note { color: var(--ink-2); font-size: .92rem; margin-top: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(20,6,34,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; flex-direction: column; gap: 12px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; }
.lightbox p { color: #fff; margin: 0; }
.lightbox button { position: absolute; top: 16px; right: 16px; font: inherit; font-weight: 650; background: #fff; color: var(--ink); border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }

/* Foundation band */
.parent-band { background: var(--lilac); padding: 72px 0; border-top: 1px solid var(--line); }
.parent-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.parent-band h2 { color: var(--purple-deep); }
.parent-band p { font-size: 1.1rem; color: var(--ink-2); }
.parent-band .btn-row { justify-content: flex-start; }
.parent-card { background: #fff; border-radius: var(--radius-l); padding: 32px 30px; border-top: 6px solid var(--red); display: flex; flex-direction: column; gap: 18px; }
.parent-card img { width: 100%; max-width: 420px; height: auto; }
.parent-quote { border-left: 4px solid var(--red); padding-left: 18px; font-size: 1.15rem; color: var(--ink); font-weight: 520; line-height: 1.45; margin: 0; }
.btn-foundation { background: var(--red); color: #fff; }
.btn-foundation:hover { background: #a51418; color: #fff; }

.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto .4em; }
.cta-band p { color: var(--ink-2); max-width: 54ch; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* Page intro */
.page-intro { padding-top: 56px; padding-bottom: 32px; }
.page-intro h1 { color: var(--purple-deep); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.side-card { background: var(--lilac); border-radius: var(--radius-l); padding: 28px; position: sticky; top: 100px; }
.roles-list { list-style: none; padding: 0; margin: 0; }
.roles-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.roles-list strong { color: var(--purple); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* School profile */
.profile-head { background: var(--lilac); padding: 52px 0 40px; }
.profile-head .crumb { margin-bottom: 8px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.contact-card .big-phone { display: inline-block; font-size: 1.5rem; font-weight: 720; text-decoration: none; margin: 4px 0 14px; color: var(--purple); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 18px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 560; }
.privacy-note { font-size: .92rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .96rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .filter-bar input, .filter-bar select, .danger-zone input {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 13px; border: 1.5px solid #cdbde0; border-radius: var(--radius-s); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--purple); outline: 3px solid rgba(106,31,168,.18); outline-offset: 0; }
.form .check, .check-inline { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 450; }
.check-inline { display: inline-flex; align-items: center; }
.form input[type=checkbox], .check-inline input { width: 20px; height: 20px; accent-color: var(--magenta); flex: none; margin-top: 2px; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .88rem; }
.field-err { color: var(--err); font-weight: 500; font-size: .9rem; }
.form-wide { grid-template-columns: 1fr 1fr; }
.form-wide .span-2, .form-wide fieldset, .form-wide > .alert, .form-wide > button { grid-column: 1 / -1; }
.form-wide > button { justify-self: start; }
fieldset { border: 0; border-top: 2px solid var(--ink); margin: 8px 0 0; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
legend { font-weight: 740; font-size: 1.25rem; padding-right: 12px; color: var(--purple-deep); }
.fieldset-note { margin: 0; color: var(--ink-2); font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.join-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-bottom: 80px; align-items: start; }
.join-aside { background: var(--lilac); padding: 28px; border-radius: var(--radius-l); position: sticky; top: 100px; }
.join-aside h2 { font-size: 1.3rem; }
.confirm-card { background: var(--lilac); padding: 40px; border-radius: var(--radius-l); margin-bottom: 80px; border-top: 6px solid var(--magenta); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding-bottom: 80px; }

/* Footer */
.site-foot { background: var(--ink); color: #cbbddc; padding: 64px 0 24px; font-size: .96rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid h2 { font-size: 1rem; color: #fff; margin: 0 0 6px; }
.foot-brand img { background: #fff; border-radius: 14px; padding: 16px 18px; width: 290px; margin-bottom: 8px; }
.foot-parent .btn { align-self: flex-start; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .88rem; }

/* ---------- Auth pages ---------- */
.auth-page { background: var(--lilac); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { background: #fff; width: 100%; max-width: 440px; padding: 36px; border-radius: var(--radius-l); border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.8rem; color: var(--purple-deep); }
.auth-logo { width: 220px; margin-bottom: 18px; }
.auth-foot { margin: 20px 0 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- Dashboards ---------- */
.panel-body { background: #faf7fd; }
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.panel-side { background: var(--ink); color: #cbbddc; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand-panel { color: #fff; }
.brand-panel img { background: #fff; border-radius: 10px; padding: 4px; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a, .panel-nav .linkish { color: #e4d8f1; text-decoration: none; padding: 10px 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-weight: 520; width: 100%; text-align: left; }
.panel-nav a:hover, .panel-nav .linkish:hover { background: rgba(255,255,255,.08); color: #fff; }
.panel-nav a[aria-current="page"] { background: var(--purple); color: #fff; }
.panel-nav-site { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0 !important; padding-top: 16px !important; }
.badge { background: var(--magenta); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.panel-who { margin-top: auto; font-size: .88rem; }
.panel-who strong { color: #fff; }
.panel-toggle { display: none; }
.panel-main { padding: 32px 40px 60px; max-width: 1180px; width: 100%; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-head h1 { font-size: 2rem; margin-bottom: 4px; color: var(--purple-deep); }
.panel-head p { margin: 0; }
.crumb { font-size: .92rem; margin: 0 0 4px !important; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; margin-bottom: 20px; }
.panel-card h2 { font-size: 1.2rem; }
.panel-card.attention { border-left: 5px solid var(--magenta); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h2 { margin: 0; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.card-form h2 { font-size: 1.2rem; margin: 8px 0 0; }
.narrow-form { max-width: 460px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.panel-grid .panel-card { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; display: flex; flex-direction: column; }
.stat-n { font-size: 2.1rem; font-weight: 760; color: var(--purple); line-height: 1.05; }
.stat-l { color: var(--ink-2); font-size: .94rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.plain-list li:first-child { border-top: 0; }
.plain-list form { margin: 0; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(90px, 1.5fr) 1fr 32px; gap: 12px; align-items: center; padding: 6px 0; font-size: .95rem; }
.bars li > :first-child { line-height: 1.3; }
.bars a { text-decoration: none; }
.bars a:hover { text-decoration: underline; }
.bars li > :last-child { text-align: right; font-weight: 650; }
.bar { height: 10px; background: var(--lilac); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--purple); border-radius: 99px; }
.empty-state { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius-m); padding: 32px; margin-bottom: 22px; }
.empty-state h2 { font-size: 1.3rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-bar input[type=search] { flex: 1 1 240px; width: auto; }
.filter-grid select { width: auto; flex: 1 1 150px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th { text-align: left; font-weight: 650; color: var(--ink-2); background: var(--lilac); padding: 11px 14px; white-space: nowrap; }
.data td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data tr.is-left td { color: #9a8cac; }
.row-actions { white-space: nowrap; display: flex; gap: 14px; }
.row-actions form { margin: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: #eee6f4; color: var(--ink-2); }
.tag-role { background: var(--teal-soft); color: #0a6570; }
.status { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 8px; }
.status-pending { background: #fff1d6; color: #8a5a00; }
.status-approved { background: #e3f6ee; color: #0b5a3f; }
.status-rejected { background: #f1edf4; color: #6e5f80; }
.status-suspended { background: #fdecef; color: #8d1a2e; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--ink); background: #fff; border: 1px solid var(--line); font-weight: 560; font-size: .94rem; }
.tabs a span { color: var(--ink-2); margin-left: 4px; }
.tabs a[aria-current="page"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.tabs a[aria-current="page"] span { color: #e4d8f1; }
.motivation { margin: 0 0 16px; padding: 14px 18px; background: var(--lilac); border-radius: var(--radius-s); border-left: 4px solid var(--purple); }
.danger-zone { margin-top: 28px; padding: 20px 24px; border: 1px solid #f2b8c3; border-radius: var(--radius-m); background: #fff; }
.danger-zone input { max-width: 320px; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; padding: 18px 0; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.admin-photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.admin-photo img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; width: 100%; }
.admin-photo .form { gap: 8px; }
.message.is-read { opacity: .72; }
.msg-from { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .two-col, .parent-band .wrap, .profile-grid, .contact-layout, .join-layout { grid-template-columns: 1fr; }
  .timetable { transform: none; max-width: 520px; }
  .pillars, .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row li:not(:last-child)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side-card, .join-aside { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(42,17,69,.3); }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
  .site-head { position: sticky; }
  .brand-logo { height: 54px; }
  .head-row { position: static; }
  .panel { grid-template-columns: 1fr; }
  .panel-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 12px 16px; }
  .panel-toggle { display: inline-block; }
  .panel-nav { display: none; width: 100%; }
  .panel-nav.open { display: flex; }
  .panel-who { display: none; }
  .panel-main { padding: 22px 16px 48px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .contrast, .pillars, .steps-row, .form-wide, fieldset, .foot-grid { grid-template-columns: 1fr; }
  .photo-grid.home { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .photo-grid.home figure:first-child { grid-column: span 2; grid-row: span 1; }
  .tt-row { grid-template-columns: 88px 1fr; gap: 8px; }
  .tt-row.is-ours { grid-template-columns: 88px 1fr auto; }
  .tt-head span { display: none; }
  .hero-facts { gap: 18px 24px; }
  .tt-time { display: none; }
  .timetable { padding: 24px 18px 16px; }
  .roles-list li { grid-template-columns: 1fr; gap: 2px; }
  .contrast > div { padding: 26px 22px; }
  .confirm-card, .auth-card { padding: 26px 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* v4 additions */
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
a.stat { text-decoration: none; color: inherit; transition: border-color .15s; }
a.stat:hover { border-color: var(--purple); color: inherit; }
.stat-alert { border-color: var(--magenta); background: #fff5fa; }
.stat-alert .stat-n { color: var(--magenta-deep); }
.stat-foot { margin: -10px 0 20px; }
.kv-compact { gap: 6px 18px; margin-bottom: 18px; font-size: .96rem; }
.kv-compact dd { font-weight: 500; }
.recipients { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; grid-template-columns: none; }
.recipient-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.email-log li { align-items: flex-start; }
@media (max-width: 640px) { .recipient-pickers { grid-template-columns: 1fr; } }
.codebox { background: #2b0a47; color: #f3e9ff; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: .85rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.check-list li { align-items: flex-start; }
details summary { cursor: pointer; font-weight: 600; margin: 12px 0 8px; }
