/* Wing Chun Tasmania — Ronin public site + Vuetify-style portal, admin and auth.
   Red is primary. Black, white and gold fill the brand where the layout allows. */

:root {
  --primary: #b71c1c;
  --primary-ink: #ffffff;
  --accent: #d32029;
  --gold: #c6a35a;
  --gold-deep: #8c6a2f;
  --secondary: #263238;
  --ink: #14171c;
  --ink-2: #0f1216;
  --text: rgba(0, 0, 0, 0.87);
  --muted: rgba(0, 0, 0, 0.6);
  --line: rgba(0, 0, 0, 0.12);
  --grey-bg: #f5f5f5;
  --card: #ffffff;
  --success: #2e7d32;
  --info: #0277bd;
  --warning: #ef6c00;
  --error: #c62828;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
  --font: "Roboto", system-ui, sans-serif;
  --barlow: "Barlow", system-ui, sans-serif;
  --oswald: "Oswald", "Barlow", system-ui, sans-serif;
  --radius: 4px;
  --header-h: 64px;
  --drawer-w: 256px;
  --bottom-nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.caption { font-size: 0.75rem; letter-spacing: 0.033em; }
.center { text-align: center; }
.wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.container { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.container-narrow { width: min(820px, calc(100% - 32px)); margin-inline: auto; }
.page-pad { padding: 40px 0 64px; }
.admin-pad, .portal-pad { padding: 8px 8px 32px; }
@media (min-width: 960px) {
  .admin-pad { padding: 8px 16px 40px; }
}

.row { display: flex; flex-wrap: wrap; margin: -12px; }
.col { padding: 12px; width: 100%; }
.col-6 { width: 50%; }
@media (min-width: 600px) {
  .col-sm-6 { width: 50%; }
}
@media (min-width: 960px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333%; }
  .col-md-5 { width: 41.666%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333%; }
  .col-md-8 { width: 66.666%; }
  .col-md-12 { width: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { text-decoration: none; filter: brightness(0.96); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-text { background: transparent; }
.btn-white { background: #fff; color: #b71c1c; }
.btn-error { color: var(--error); border-color: var(--error); }
.btn-lg { min-height: 44px; padding: 0 22px; }
.btn-xl { min-height: 52px; padding: 0 28px; font-size: 0.95rem; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.75rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  color: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.btn .mdi { font-size: 18px; }
.btn-sharp { border-radius: 0; font-family: var(--oswald); letter-spacing: 0.06em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: #eee;
  color: #616161;
}
.chip-success { background: #e8f5e9; color: #2e7d32; }
.chip-info { background: #e1f5fe; color: #0277bd; }
.chip-warning { background: #fff3e0; color: #ef6c00; }
.chip-error { background: #ffebee; color: #c62828; }
.chip-grey { background: #eeeeee; color: #616161; }
.chip-primary { background: #ffebee; color: #b71c1c; }
.chip .mdi { font-size: 14px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card-pad { padding: 16px; }
.card-title { font-size: 1.05rem; font-weight: 500; }
.card-sub { color: var(--muted); font-size: 0.875rem; }
.card-actions { display: flex; gap: 8px; padding: 8px 12px 12px; }
.hover-card { transition: box-shadow 0.15s ease; }
.hover-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #e3f2fd;
  color: #0d47a1;
}
.alert-success { background: #e8f5e9; color: #1b5e20; }
.alert-warning { background: #fff8e1; color: #e65100; }
.alert a { color: inherit; font-weight: 600; }

.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(0, 0, 0, 0.06);
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 4px 4px 0 0;
  padding: 22px 16px 8px;
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--muted);
  pointer-events: none;
  transition: 0.15s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label,
.field.is-filled label {
  top: 6px;
  font-size: 0.75rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom: 2px solid var(--primary);
  background: rgba(0, 0, 0, 0.08);
}
.field .hint { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); padding-left: 16px; }
.field-icon { position: relative; }
.field-icon .mdi {
  position: absolute;
  left: 12px;
  top: 18px;
  color: var(--muted);
}
.field-icon input { padding-left: 42px; }
.field-icon label { left: 42px; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
table.data th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}
table.data tr:hover td { background: #fafafa; }
table.data th.end, table.data td.end { text-align: right; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.list a.list-row, .list .list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.list .list-row:hover, .list .list-row.is-active { background: rgba(183, 28, 28, 0.06); }
.list .list-main { flex: 1; min-width: 0; }
.list .list-title { font-weight: 500; }
.list .list-sub { color: var(--muted); font-size: 0.875rem; }
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 500;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 44px; height: 44px; }
.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffebee;
  color: var(--primary);
  flex: 0 0 auto;
}
.icon-bubble.success { background: #e8f5e9; color: var(--success); }
.icon-bubble.info { background: #e1f5fe; color: var(--info); }
.icon-bubble.secondary { background: #eceff1; color: var(--secondary); }

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}
.empty .mdi { font-size: 56px; display: block; margin-bottom: 8px; }
.empty strong { display: block; color: var(--text); font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 2.125rem; letter-spacing: 0.007em; }
.page-header p { margin: 4px 0 0; }
.page-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a {
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.tabs a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.bar {
  height: 8px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}
.bar > span { display: block; height: 100%; border-radius: 99px; }
.bar-info { background: var(--info); }
.bar-warning { background: var(--warning); }
.bar-success { background: var(--success); }
.bar-grey { background: #9e9e9e; }
.bar-error { background: var(--error); }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.46);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: min(90vh, 860px);
  overflow: auto;
}
.modal-card header, .modal-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
}
.modal-card header h2 { font-size: 1.25rem; font-weight: 500; }
.modal-card .modal-body { padding: 0 20px 8px; }
.modal-card footer { justify-content: flex-end; }
.modal-wide { width: min(880px, 100%); }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 160px;
}
.bars .col-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.bars .col-bar i {
  display: block;
  width: 100%;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}

/* ---------- Public / Ronin ---------- */
body.tpl-ronin {
  font-family: var(--barlow);
  background: #fff;
  --header-h: 72px;
}
body.tpl-ronin h1,
body.tpl-ronin h2,
body.tpl-ronin h3,
body.tpl-ronin .display {
  font-family: var(--oswald);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}
body.tpl-ronin main h1:not(.tpl-bare)::after,
body.tpl-ronin main h2:not(.tpl-bare)::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  background: var(--accent);
}
body.tpl-ronin main .center h1::after,
body.tpl-ronin main .center h2::after { margin-inline: auto; }
body.tpl-ronin h2.plain,
body.tpl-ronin h3.plain {
  font-family: var(--barlow);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.gold { color: var(--gold); }

.ronin-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.brand-mark {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: none;
}
.ronin-brand {
  font-family: var(--oswald);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.ronin-brand:hover { text-decoration: none; color: #fff; }
@media (max-width: 520px) {
  .ronin-brand { font-size: 1.05rem; }
}
.ronin-links { display: none; align-items: center; margin-left: auto; }
.ronin-links a {
  color: #e7e9ed;
  text-decoration: none;
  font-family: var(--oswald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 8px 10px;
  font-size: 0.95rem;
}
.ronin-links a:hover, .ronin-links a.is-active { color: #fff; }
.ronin-links .btn { margin-left: 8px; }
.menu-btn {
  color: #fff;
  background: transparent;
  border: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
}
.menu-btn .mdi { font-size: 24px; }
.mobile-cta { margin-left: auto; }

@media (min-width: 1100px) {
  .ronin-links { display: flex; }
  .menu-btn, .mobile-cta { display: none; }
  .ronin-bar { padding-right: 16px; }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}
.drawer-backdrop[hidden] { display: none; }
.public-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 86vw);
  background: var(--ink);
  color: #fff;
  z-index: 60;
  padding: 16px 8px;
  transform: translateX(-105%);
  transition: transform 0.2s ease;
}
.public-drawer.open { transform: none; }
.public-drawer a.drawer-brand {
  display: block;
  margin: 8px 8px 12px;
  padding: 12px 8px;
  color: #fff;
  text-decoration: none;
  font-family: var(--oswald);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}
.public-drawer a.drawer-brand:hover { color: #fff; text-decoration: none; background: transparent; }
.public-drawer a {
  display: block;
  color: #e7e9ed;
  text-decoration: none;
  padding: 12px 16px;
  font-family: var(--oswald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.public-drawer a:hover, .public-drawer a.is-active { background: rgba(255, 255, 255, 0.06); }
.public-drawer hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 8px 12px; }

.ronin-footer {
  background: var(--ink-2);
  color: #fff;
  padding: 36px 0 28px;
  border-top: 4px solid var(--accent);
  box-shadow: inset 0 3px 0 var(--gold);
}
.footer-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-crest .brand-mark {
  width: 168px;
  height: 168px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--accent), 0 0 0 12px var(--gold);
}
@media (max-width: 860px) {
  .footer-crest .brand-mark { width: 148px; height: 148px; }
}
.footer-crest .ronin-brand { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.footer-social { margin-top: 8px; }
.ronin-footer p { color: #b9bec7; max-width: 460px; margin: 8px auto 0; }
.ronin-footer .places {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 12px 0 0;
}
.ronin-footer a.icon-link {
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}
.ronin-footer a.icon-link:hover { color: var(--gold); }
.ronin-footer .contact-lines { color: #d6dae0; font-size: 0.925rem; }
.ronin-footer .contact-lines div { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.ronin-footer .fine {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(198, 163, 90, 0.45);
  color: #7d838d;
  font-size: 0.75rem;
}

.hero {
  color: #fff;
  border-bottom: 4px solid var(--accent);
  box-shadow: inset 0 -3px 0 var(--gold);
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.78) 0%, rgba(15, 18, 22, 0.88) 60%, #0f1216 100%),
    var(--hero) center / cover no-repeat;
}
.hero-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 72px 0 80px;
}
.hero-badge {
  width: 312px;
  height: 312px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 11px var(--accent), 0 0 0 15px var(--gold), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin: 16px 0 20px;
}
@media (max-width: 860px) {
  .hero-layout { flex-direction: column; text-align: center; gap: 24px; padding: 36px 0 56px; }
  .hero-badge { width: min(240px, 72vw); height: auto; aspect-ratio: 1; }
  .hero-copy .wrap { justify-content: center; }
  .hero .sub { margin-inline: auto; }
  body.tpl-ronin main .hero h1::after { margin-inline: auto; }
}
.hero .sub {
  color: #d6dae0;
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 640px;
  margin: 0 0 32px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--barlow);
}
@media (max-width: 860px) {
  .hero .sub { margin-left: auto; margin-right: auto; }
}

.stat-band { background: var(--accent); color: #fff; padding: 28px 0; box-shadow: inset 0 3px 0 var(--gold); }
.stat-band .value {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}
.stat-band .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}

.about-band { background: var(--ink); color: #c3c8d0; }
.about-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.about-img { border: 1px solid #2a2f38; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pad-section { padding: 64px 0; }

.classes-band { background: var(--ink-2); }
.classes-band h2, .gallery-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.program-card {
  display: block;
  height: 100%;
  background: #191d23;
  border: 1px solid #262b32;
  padding: 26px 24px 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.program-card:hover { transform: translateY(-4px); border-color: var(--card-accent, var(--accent)); text-decoration: none; }
.program-card .bar { width: 44px; height: 4px; background: var(--card-accent, var(--accent)); margin-bottom: 18px; }
.program-card h3 {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.program-card p {
  color: #a9afb8;
  margin: 10px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.program-card .more {
  color: var(--card-accent, var(--accent));
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-band { background: var(--ink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid button {
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-grid button:hover img { transform: scale(1.06); }

.quotes-band { background: #f4f5f7; }
.quotes-band h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); }
.quote {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-top: 3px solid var(--accent);
  padding: 24px;
  height: 100%;
}
.quote .mdi { color: var(--primary); font-size: 36px; }
.quote p { color: #2a2f38; font-style: italic; margin: 10px 0 14px; }
.quote .who { font-weight: 600; color: var(--ink); }

.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p {
  color: #ffd9d9;
  font-size: 1.25rem;
  font-family: var(--barlow);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 16px 0 28px;
}

.inner-lead { max-width: 720px; color: var(--muted); }
.program-tile { height: 100%; background: #fff; }
.program-tile .accent { height: 5px; }
.program-tile .body { padding: 8px 16px 16px; }
.program-tile h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--oswald);
}
.program-tile p { color: var(--muted); font-size: 0.925rem; margin: 8px 0 0; }

.person { height: 100%; }
.person .who { padding: 16px 16px 0; display: flex; gap: 12px; align-items: center; }
.person h2 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; font-family: var(--barlow); font-weight: 600; }
.person .role { color: var(--gold-deep); font-size: 0.875rem; }
.person .avatar { width: 72px; height: 72px; background: var(--ink); font-family: var(--oswald); }
.person .bio { padding: 8px 16px 16px; color: var(--muted); font-size: 0.975rem; }
.person .bio p { margin: 0 0 12px; }
.person .bio h3 { margin: 8px 0; color: var(--ink); font-size: 1rem; }
.person .bio ol { margin: 0 0 12px; padding-left: 1.25rem; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.t-card {
  height: 100%;
  background: #e7eaec;
  color: var(--secondary);
  border-radius: var(--radius);
  padding: 16px;
}
.t-card .mdi { font-size: 28px; opacity: 0.6; }
.t-card p { margin: 8px 0; }
.faq-item { border-bottom: 1px solid var(--line); background: #fff; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item .faq-a { padding: 0 16px 16px; color: var(--text); }
.faq-item .faq-a p { margin: 0 0 12px; }
.faq-item .faq-a[hidden] { display: none; }

.contact-side {
  background: var(--secondary);
  color: #fff;
  height: 100%;
  border-radius: var(--radius);
  padding: 20px;
}
.contact-side a { color: #fff; }
.contact-side .row-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.contact-side hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 16px 0; }

.todo-flag {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #fff6df;
  border: 2px solid var(--gold-deep);
  color: #3d2a0d;
}
.todo-flag strong {
  flex: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--oswald);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  padding: 4px 8px;
}
.todo-flag p { margin: 2px 0 0; }

.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.section-nav a {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-family: var(--oswald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--ink);
  text-decoration: none;
}
.section-nav a.is-active,
.section-nav a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}

.kids-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 28px;
  background: #fff;
}
.copy-photo { width: 100%; height: auto; margin: 0 0 18px; }
.cal-frame { width: 100%; height: 780px; border: 1px solid var(--line); margin: 0 0 24px; background: #fff; }
.video-frame { position: relative; padding-top: 56.25%; background: #111; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.album-card { display: block; color: inherit; text-decoration: none; background: #111; }
.album-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.album-card span { display: block; padding: 10px 12px 14px; font-family: var(--oswald); text-transform: uppercase; letter-spacing: 0.04em; }
.album-card:hover { text-decoration: none; color: var(--primary); }
.copy-prose p { margin: 0 0 14px; }
.copy-prose h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.copy-prose h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.copy-prose ul { margin: 0 0 16px; padding-left: 1.2rem; }
.copy-prose li { margin: 4px 0; }
.copy-links { list-style: none; padding: 0; margin: 0 0 16px; }
.copy-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--oswald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.copy-links a:hover { color: var(--primary); }

.places-band { background: #fff; }
.places-band h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); }
.place-card {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 22px 20px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}
.place-card:hover { text-decoration: none; border-color: var(--accent); }
.place-card h3 { margin: 8px 0; font-size: 1.35rem; }
.place-card p { color: var(--muted); margin: 0 0 12px; }
.place-card .more {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-links { list-style: none; padding: 0; margin: 0 0 16px; }
.footer-links a {
  color: #d6dae0;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  font-size: 0.925rem;
}
.footer-links a:hover { color: var(--gold); }

/* ---------- Auth ---------- */
body.layout-auth { background: var(--grey-bg); min-height: 100vh; }
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 16px 20px;
}
.brand-mark-auth {
  width: 96px;
  height: 96px;
  margin: 8px auto 4px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(198, 163, 90, 0.85);
}
.auth-card h1 {
  text-align: center;
  font-size: 1.5rem;
  margin: 8px 0 16px;
  font-weight: 400;
}

/* ---------- Admin ---------- */
body.layout-admin { background: var(--grey-bg); }
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.bar-logo { display: flex; align-items: center; margin-right: 4px; }
.layout-admin .brand-mark,
.layout-portal .brand-mark {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(198, 163, 90, 0.8);
}
.admin-bar h1 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}
.admin-bar .spacer { margin-left: auto; display: flex; align-items: center; }
.admin-bar a, .admin-bar button { color: #fff; }
.admin-shell { display: flex; min-height: calc(100vh - 64px); }
.admin-drawer {
  width: var(--drawer-w);
  background: #fff;
  border-right: 1px solid var(--line);
  flex: 0 0 var(--drawer-w);
  padding-top: 8px;
}
.admin-drawer a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  margin: 2px 8px;
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
}
.admin-drawer a .mdi { font-size: 22px; color: #616161; width: 24px; }
.admin-drawer a.is-active, .admin-drawer a:hover {
  background: rgba(183, 28, 28, 0.12);
  color: var(--primary);
}
.admin-drawer a.is-active .mdi { color: var(--primary); }
.admin-main { flex: 1; min-width: 0; }
.admin-backdrop { display: none; }

@media (max-width: 959px) {
  .admin-drawer {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  body.drawer-open .admin-drawer { transform: none; }
  body.drawer-open .admin-backdrop { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(0, 0, 0, 0.4); z-index: 35; }
}
@media (min-width: 960px) {
  body.drawer-closed .admin-drawer { display: none; }
}

/* ---------- Portal ---------- */
body.layout-portal { background: var(--grey-bg); }
.portal-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.portal-bar h1 { font-size: 1.25rem; font-weight: 500; color: #fff; }
.portal-bar .spacer { margin-left: auto; }
.portal-bar a, .portal-bar button { color: #fff; }
.portal-main { padding-bottom: calc(var(--bottom-nav-h) + 16px); }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-nav-h);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 30;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #757575;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  min-width: 0;
}
.bottom-nav a .mdi { font-size: 22px; }
.bottom-nav a.is-active { color: var(--primary); }
.bottom-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-toolbar .range { font-weight: 500; margin: 0 8px; }
.cal-toggle { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.cal-toggle a {
  padding: 6px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-toggle a.is-active { background: var(--primary); color: #fff; }
.cal {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.cal-head {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
}
.cal-scroll {
  display: grid;
  grid-template-columns: 56px 1fr;
}
.cal-day .cal-head { grid-template-columns: 56px 1fr; }
.cal-corner, .cal-dayhead {
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  padding: 8px 4px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.cal-dayhead strong { display: block; color: var(--text); font-size: 0.95rem; }
.cal-dayhead.is-today { color: var(--primary); }
.cal-dayhead.is-today strong { color: var(--primary); }
.cal-hours { position: relative; }
.cal-hour {
  height: 52px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 2px 4px 0 0;
  text-align: right;
}
.cal-cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 51px, #eee 51px, #eee 52px);
}
.cal-day .cal-cols { grid-template-columns: 1fr; }
.cal-col { position: relative; min-height: 100%; border-left: 1px solid #f0f0f0; }
.cal-col.is-today { background: rgba(183, 28, 28, 0.03); }
.cal-event {
  position: absolute;
  left: 2px;
  right: 2px;
  border: 0;
  border-left: 3px solid var(--main);
  background: var(--container);
  color: var(--on);
  border-radius: 4px;
  text-align: left;
  padding: 3px 6px;
  cursor: pointer;
  overflow: hidden;
}
.cal-event strong { display: block; font-size: 0.75rem; line-height: 1.15; }
.cal-event em { font-style: normal; font-size: 0.68rem; }
.agenda { display: none; }
.agenda-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid var(--main);
  background: var(--container);
  color: var(--on);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
@media (max-width: 799px) {
  .cal-week { display: none; }
  .agenda { display: block; }
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: #424242;
  display: grid;
  place-items: center;
  color: #fff;
}
.video-thumb .mdi { font-size: 56px; }
.play-stage { background: #000; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
