
/* Mock-up of the full member portal, matched to lewensentrum.org.za.
   Sample content only. Light is the default; the member chooses dark, remembered on the device. */
:root {
  --cream: #f4efe6; --paper: #fbf8f2; --forest: #0b3327; --forest-2: #164a3c;
  --clay: #b96943; --clay-ink: #fff8f1; --teal: #1d6b6a;
  --ink: #0b2a22; --muted: #56685f; --line: #ddd4c4;
  --bg: var(--cream); --surface: var(--paper); --header-bg: var(--cream);
  --hero-a: var(--forest); --hero-b: var(--forest-2); --hero-text: #f4efe6; --hero-accent: #d98a63;
  --brand-ink: var(--forest); --heading: var(--forest); --soft: #e7ece4; --done: #2f7a5f;
  --radius: 18px; --shadow: 0 1px 2px rgba(11,51,39,.06), 0 8px 22px rgba(11,51,39,.07);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1b2521; --surface: #232f2a; --ink: #ece7dc; --muted: #b1bdb6; --line: #34433c;
  --header-bg: #1b2521; --hero-a: #2c3f37; --hero-b: #36493f; --hero-text: #f4efe6; --hero-accent: #e2a07c;
  --brand-ink: #ece7dc; --heading: #f1ebdf; --clay: #d08a62; --clay-ink: #1d1410; --soft: #2c3b34; --done: #8fc9ab;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 96px; transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; }
.small { font-size: 13px; color: var(--muted); }
.more { font-size: 14px; font-weight: 700; color: var(--clay); text-decoration: none; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin: 0 -16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--header-bg); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: none; gap: 18px; align-items: center; font-size: 14px; font-weight: 700; margin-left: 12px; }
.nav a, .nav summary { text-decoration: none; color: var(--brand-ink); cursor: pointer; list-style: none; }
.nav a[aria-current="page"], .nav summary.on { color: var(--clay); }
.more-menu { position: relative; }
.more-menu .panel { position: absolute; top: 28px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 200px; z-index: 9; }
.more-menu .panel a { padding: 9px 12px; border-radius: 10px; }
.more-menu .panel a:hover { background: var(--soft); }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--brand-ink); background: transparent; color: var(--brand-ink); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--clay-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; border: 0; cursor: pointer; }
:root[data-theme="dark"] .avatar { background: var(--clay); color: var(--clay-ink); }

/* Hero */
.hero { margin: 0 -16px; padding: 36px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(90% 120% at 100% 0%, rgba(29,107,106,.45), transparent 60%), linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 100%); color: var(--hero-text); border-radius: 0 0 28px 28px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 12px; opacity: .92; }
.hero h1 { font-size: clamp(30px, 7vw, 52px); }
.hero h1 em { font-style: normal; color: var(--hero-accent); display: block; }
.hero p { margin: 12px 0 0; font-size: 16px; font-weight: 500; max-width: 46ch; opacity: .95; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid var(--clay); background: var(--clay); color: var(--clay-ink); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--hero-text); border-color: var(--hero-text); }
.btn.small-btn { min-height: 38px; font-size: 14px; padding: 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(244,239,230,.12); border: 1px solid rgba(244,239,230,.25); }

/* Views */
.view { margin-top: 24px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 880px) { .grid.two { grid-template-columns: 1.4fr 1fr; } .nav { display: flex; } .tabs { display: none; } body { padding-bottom: 32px; } }
.stack { display: grid; gap: 18px; min-width: 0; align-content: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card h2 { font-size: 22px; color: var(--heading); }
.card h3 { font-size: 16px; color: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.verse { font-size: 21px; font-weight: 600; line-height: 1.45; margin: 0 0 12px; }
.ref { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.tag.done { background: var(--done); color: #fff; }
:root[data-theme="dark"] .tag.done { color: #0f1d17; }
.tag.clay { background: var(--clay); color: var(--clay-ink); }
.bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.bar span { display: block; height: 100%; background: var(--forest); border-radius: 999px; }
:root[data-theme="dark"] .bar span { background: #8fb9a3; }
.bar.clay span { background: var(--clay); }

/* Course tiles */
.courses { display: grid; gap: 12px; }
@media (min-width: 580px) { .courses.two { grid-template-columns: 1fr 1fr; } }
.course { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; text-decoration: none; }
.thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--forest); color: #f4efe6; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
:root[data-theme="dark"] .thumb { background: #3d5248; color: var(--ink); }
.thumb.clay { background: var(--clay); color: var(--clay-ink); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg); }
.badge.locked { opacity: .55; }
.badge .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 800; margin-bottom: 8px; color: var(--forest); }
:root[data-theme="dark"] .badge .ico { color: var(--ink); }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.stages span { text-align: center; font-size: 11px; font-weight: 700; padding: 8px 2px; border-radius: 10px; background: var(--soft); color: var(--muted); }
.stages span.on { background: var(--forest); color: #f4efe6; }
:root[data-theme="dark"] .stages span.on { background: var(--clay); color: var(--clay-ink); }

/* Events */
.events { list-style: none; padding: 0; margin: 0; display: grid; }
.event { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; padding-top: 0; }
.date { text-align: center; background: var(--forest); color: #f4efe6; border-radius: 12px; padding: 7px 0 6px; line-height: 1.1; }
:root[data-theme="dark"] .date { background: #3d5248; color: var(--ink); }
.date b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.date span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.event strong { display: block; font-weight: 700; }

/* Budget */
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.pos { color: var(--done); }
.neg { color: var(--clay); }

/* Sermon */
.video { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--forest) 70%); display: grid; place-items: center; }
:root[data-theme="dark"] .video { background: linear-gradient(135deg, #2c4a50, #2c3f37 70%); }
.play { width: 60px; height: 60px; border-radius: 50%; background: var(--cream); color: var(--forest); display: grid; place-items: center; font-size: 20px; }

/* Profile */
.profile-head { display: flex; gap: 16px; align-items: center; }
.big-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--clay-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
:root[data-theme="dark"] .big-avatar { background: var(--clay); color: var(--clay-ink); }
.switch { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); }
.switch.on { background: var(--forest); }
:root[data-theme="dark"] .switch.on { background: var(--clay); }
.switch.on::after { left: 23px; }

/* Leader area */
.queue .row { grid-template-columns: 1fr auto auto; }

/* Bottom tab bar (phones) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--forest); padding-bottom: env(safe-area-inset-bottom, 0px); }
:root[data-theme="dark"] .tabs { background: #141d19; border-top: 1px solid var(--line); }
.tabs a, .tabs button { text-decoration: none; text-align: center; padding: 10px 2px 12px; font-size: 11px; font-weight: 700; color: #cfd9d3; min-height: 60px; background: none; border: 0; cursor: pointer; }
.tabs [aria-current="page"], .tabs button.on { color: var(--hero-accent); }
.tabs i { display: block; width: 20px; height: 20px; margin: 0 auto 4px; border-radius: 7px; border: 2px solid currentColor; }

.spot { margin-top: 24px; }
.spot .card { display: grid; gap: 10px; align-content: start; }
.spot .lbl { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.spot h3 { font-size: 20px; color: var(--heading); }
dialog.pop { border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); width: min(520px, 92vw); padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.pop::backdrop { background: rgba(10,25,20,.55); }
dialog.pop .sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
dialog.pop .sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.pop-check { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.foot { margin-top: 30px; padding: 22px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Real WordPress data, with the supplied logo and accessible controls. */
.lsl-app main,.lsl-app .top,.lsl-app .portal-footer{max-width:1120px;margin-left:auto;margin-right:auto}
.lsl-app .top{flex-wrap:nowrap;justify-content:flex-start;padding-left:0;padding-right:0}
.lsl-app .ref-top .nav{width:auto;margin:0 0 0 12px;gap:18px;flex-wrap:nowrap;font-size:14px}
.lsl-app .brand::before{width:34px;height:34px;flex-basis:34px}
.lsl-app .hero h1{font-size:clamp(30px,7vw,52px);color:var(--hero-text)}
.lsl-app .hero .eyebrow{color:var(--hero-text);font-size:12px}
.ref-view .card{margin-top:0}.ref-view .grid{margin-top:0}.ref-view .spot{margin-top:24px}.ref-view .dashboard-grid{margin-top:24px}
.ref-view .hero .btn.ghost{color:var(--hero-text)!important;border-color:var(--hero-text)}
.ref-view .courses h3{font-size:16px}.ref-view .course h3{overflow-wrap:anywhere}
.lsl-app .tabs{max-width:none;margin:0;gap:0;justify-content:normal}
.lsl-app .tabs a{min-width:0;font-size:11px}.lsl-app .tabs i{border-radius:6px}
.lsl-app .ref-top .tools{gap:8px}.lsl-app .ref-top .avatar{text-decoration:none;min-width:38px;color:var(--clay-ink)}
.lsl-app .ref-top .theme-btn{min-height:44px}
.lsl-app .more-menu summary{padding:8px 0;min-height:44px;display:flex;align-items:center}
.lsl-app .more-menu .panel a{min-height:44px}
.lsl-app{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
.ref-view .lsl{margin:0}.ref-view .lsl .lsl-card{margin:0}
@media(min-width:880px){.lsl-app{padding-bottom:32px}.lsl-app .tabs{display:none}.lsl-app .ref-top .nav{display:flex}}
@media(max-width:879px){.lsl-app .ref-top .nav{display:none}.lsl-app .top{flex-wrap:wrap}.lsl-app .ref-top .tools{margin-left:auto}.lsl-app .ref-top .theme-btn{font-size:12px;padding:0 10px}.lsl-app .brand{font-size:18px}.lsl-app .top nav a{padding:8px}.lsl-app .ref-top .lang{padding:8px;font-size:12px}}
@media(max-width:480px){.ref-view .card{padding:18px}.ref-view .courses.two{grid-template-columns:1fr}.lsl-app .hero{margin:0 -12px}.lsl-app .ref-top .tools{flex-wrap:wrap}.lsl-app .hero h1{font-size:clamp(30px,7vw,52px)}}

.ref-profile{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))}.ref-profile .auth-card{max-width:none;margin:0}.ref-view .row a{overflow-wrap:anywhere}.ref-view .row>div{min-width:0}

.calendar-save{display:inline-flex;align-items:center;min-height:44px;white-space:normal}.ref-view>.card+.card{margin-top:18px}.events .event>div:last-child{min-width:0}

.calendar-month{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.calendar-month label{margin:0}.calendar-month select{width:auto;max-width:100%;margin:0;flex:1;min-width:160px}.calendar-preferences{margin-bottom:18px}.calendar-preferences .card{box-shadow:none;margin:0 0 14px}
@media(min-width:880px) and (max-width:1000px){.lsl-app .ref-top .nav{display:none}.lsl-app .tabs{display:grid}.lsl-app{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}}
@media(max-width:600px){.lsl-app .ref-top{flex-wrap:nowrap;gap:8px}.lsl-app .ref-top .brand{font-size:17px;gap:6px;white-space:nowrap}.lsl-app .ref-top .brand::before{width:28px;height:28px;flex-basis:28px}.lsl-app .ref-top .tools{flex-wrap:nowrap;gap:6px}.lsl-app .ref-top .theme-btn{width:44px;min-width:44px;height:44px;padding:0;font-size:0}.lsl-app .ref-top .theme-btn::before{content:'◐';font-size:24px}.lsl-app .ref-top .lang{font-size:0;min-width:32px;min-height:44px;padding:8px;display:inline-flex;align-items:center;justify-content:center}.lsl-app .ref-top .lang::after{content:'EN';font-size:11px}:root[lang=en] .lsl-app .ref-top .lang::after{content:'AF'}.lsl-app .ref-top .avatar{width:34px;height:34px;min-width:34px}}

/* Parent-managed Kideas; the existing app palette and card layout are retained. */
.lsl-kids-switch{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.lsl-kids-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.6}
.lsl-kids-consent input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin-top:2px}
.lsl-kids-consent span{min-width:0;overflow-wrap:anywhere}
.lsl-kids details>summary{cursor:pointer;padding:12px 0;font-weight:700}
