:root {
  --ink: #16181d;
  --ink-soft: #3c4038;
  --muted: #6f675d;
  --paper: #f4f0e7;
  --paper-2: #e8e2d6;
  --card: #fffdf8;
  --line: #e4d9c8;
  --copper: #c4512c;
  --copper-deep: #8f3518;
  --sage: #1c6b4a;
  --shadow: 0 20px 50px rgba(36, 28, 18, 0.08);
  --radius: 22px;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 42% at 100% -8%, rgba(196, 81, 44, 0.13), transparent 52%),
    radial-gradient(ellipse 55% 36% at -8% 12%, #efe2cf, transparent 58%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.lede { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.num { font-variant-numeric: tabular-nums; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 240, 231, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand strong { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.04em; line-height: 1; }
.brand small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mark { width: 28px; height: 28px; display: grid; place-items: center; }
.mark svg { width: 28px; height: 28px; }
.nav-end { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 550; font-size: 15px; }
.nav-links a:hover { color: var(--copper-deep); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger, .nav-login-link { display: none; }
.sample-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 620;
  line-height: 1;
  background: white;
}
.btn-dark { background: var(--ink); color: #f7f2ea; }
.btn-dark:hover { background: #000; }
.btn-copper { background: var(--copper); color: white; }
.btn-copper:hover { background: var(--copper-deep); }
.btn-ghost { background: transparent; border-color: #cfc6b8; }
.btn-ghost:hover { background: white; }
.btn-ghost.light { border-color: rgba(255,255,255,0.7); color: white; }
.btn-ghost.light:hover { background: rgba(255,255,255,0.12); }
.btn-small { padding: 8px 12px; font-size: 13px; }
.btn[disabled], .btn.is-done { opacity: 0.55; cursor: default; }

.hero { padding: 28px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: end; }
.hero-grid > *, .about-grid > *, .section-head > *, .rate > *, .footer-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(46px, 5.6vw, 78px); max-width: 11ch; }
.hero .lede { margin-top: 16px; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.body-copy { margin-top: 14px; color: var(--ink-soft); max-width: 62ch; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.about-grid img { width: 100%; height: 480px; object-fit: cover; border-radius: 28px 28px 8px 28px; }
.section-tight { padding-top: 10px; }
.centre-links { margin-top: 10px; }
.centre-links a { color: var(--copper-deep); }
.hero-points { display: flex; gap: 22px; list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.hero-points strong { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }
.hero-points span { color: var(--muted); font-size: 13px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: min(72vh, 680px); object-fit: cover; border-radius: 28px 28px 8px 28px; }
.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 280px;
  background: rgba(255, 253, 248, 0.94);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
}

.cred { padding: 10px 0 8px; }
.cred-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
.cred-row strong { color: var(--ink); }

.section { padding: 72px 0; }
#about, #training, #centres, #membership { scroll-margin-top: 84px; }
.section-shade { background: #ebe4d6; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head h2, .band h2 { font-size: clamp(32px, 4vw, 52px); max-width: 14ch; }
.section-head p { max-width: 36ch; color: var(--ink-soft); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { background: var(--card); border-radius: 20px; overflow: hidden; border: 0; box-shadow: 0 10px 28px rgba(48, 32, 16, 0.08); min-height: 100%; }
.service-card img { width: 100%; height: 230px; object-fit: cover; }
.service-card div { padding: 16px 16px 18px; }
.service-card h3 { font-size: 24px; margin-bottom: 6px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

.band { background: var(--ink); color: #f6f1e8; padding: 72px 0; }
.band .eyebrow { color: #f0b59a; }
.band .section-head p, .band-copy { color: #c9c2b6; }
.band-inner { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.band-copy { margin-top: 14px; max-width: 42ch; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.12); }
.feature { padding: 26px 22px 30px; border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
.feature:nth-child(3n) { border-right: 0; }
.feature span { display: block; color: #f0b59a; font-size: 13px; letter-spacing: 0.12em; margin-bottom: 14px; }
.feature h3 { font-size: 28px; margin-bottom: 10px; }
.feature p { color: #d5cec3; font-size: 15px; }

.wide-photo { margin: 0; }
.wide-photo img { width: 100%; height: 420px; object-fit: cover; }

.snapshot { padding: 72px 0; }
.snap-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.snap-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.snap-card .stats { margin-bottom: 14px; }

.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.place { position: relative; min-height: 480px; border-radius: 28px; overflow: hidden; color: #f7f2ea; }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 22px 22px;
  background: linear-gradient(to top, rgba(16, 14, 12, 0.9) 10%, rgba(16, 14, 12, 0.28) 72%, transparent);
}
.place-tag { margin: 0 0 6px; font-size: 12px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: #f0b59a; }
.place h3 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 6px; }
.place-copy > p { color: #efe8de; max-width: 34ch; }
.place-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.place-links a {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.place-links a:hover { background: rgba(255, 255, 255, 0.14); }

.rate {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: center;
  background: var(--card);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(48, 32, 16, 0.09);
}
.rate-intro h2 { font-size: clamp(34px, 4vw, 52px); max-width: 10ch; }
.rate-intro > p { margin-top: 14px; color: var(--ink-soft); max-width: 34ch; }
.rate-intro .btn { margin-top: 22px; }
.rate-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
}
.rate-list article > div { min-width: 0; }
.rate-list article:first-child { border-top: 0; padding-top: 0; }
.rate-list h3 { font-size: 24px; margin-bottom: 4px; }
.rate-list article p { color: var(--muted); font-size: 15px; }
.rate-list article .price { margin: 0; font-family: var(--display); font-size: 36px; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.rate-list .best {
  background: var(--ink);
  color: #f6f1e8;
  border-radius: 18px;
  border-top: 0;
  margin-top: 8px;
  padding: 18px 16px;
}
.rate-list .best p, .rate-list .best .price { color: #f6f1e8; }
.rate-list .best p { color: #d5cec3; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.note a { color: var(--copper-deep); }

.footer { background: var(--ink); color: #efe8de; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.85fr; gap: 32px; align-items: start; }
.footer .brand { color: #f7f2ea; }
.footer .brand small { color: #b7b0a4; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; color: #c9c2b6; font-size: 15px; }
.footer-label { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: #f0b59a; }
.footer-grid p { margin: 0; color: #efe8de; font-size: 15px; line-height: 1.5; }
.footer-grid a { display: block; margin-top: 12px; color: #f7f2ea; text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: #f0b59a; }
.footer-grid a.footer-phone { font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; margin-top: 0; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-base p { margin: 0; color: #b7b0a4; font-size: 14px; }
.footer-base a { color: #f0b59a; text-decoration: none; }
.footer-base a:hover { color: white; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 680; white-space: nowrap; }
.pill.today { background: #f8e3c4; color: #8a4b08; }
.pill.overdue { background: #f8d6d1; color: #8d2218; }
.pill.soon { background: #e3eaf8; color: #1d3f86; }
.pill.active { background: #d9f0e4; color: #0f6b45; }
.pill.neutral { background: var(--paper-2); color: var(--ink-soft); }

.app { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  background: var(--ink);
  color: #f3eee6;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar .brand small, .side-label { color: #b7b0a4; }
.side-label { margin: 8px 12px 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link, .side-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  color: #efe8de;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 560;
}
.side-link.active, .side-link:hover, .side-button:hover { background: rgba(255,255,255,0.08); }
.side-link.active { background: rgba(196, 81, 44, 0.28); color: white; }
.badge { margin-left: auto; background: var(--copper); color: white; border-radius: 99px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.side-foot { margin-top: auto; }
.scrim { display: none; }
.menu-btn { display: none; }

.app-main { min-width: 0; overflow-x: clip; }
.layout, .split, .remind-layout, .attend-grid, .portal-grid, .stats { min-width: 0; }
.layout > *, .split > *, .attend-grid > * { min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(244, 240, 231, 0.94);
  backdrop-filter: blur(14px);
  z-index: 5;
}
.topbar h1 { font-size: 18px; }
.topbar .when { color: var(--muted); font-size: 13px; }
.centre-switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.view { padding: 22px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.page-head h2 { font-size: clamp(32px, 4vw, 44px); }
.page-head p, .panel p.quiet, .quiet { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--card); border: 0; border-radius: 18px; padding: 16px; box-shadow: 0 8px 22px rgba(48, 32, 16, 0.06); }
.stat p { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin: 8px 0 4px; font-family: var(--display); font-size: 32px; letter-spacing: -0.04em; }
.stat span { color: var(--ink-soft); font-size: 13px; }
.stat.dark { background: var(--ink); color: #f6f1e8; }
.stat.dark p, .stat.dark span { color: #cfc6b8; }

.layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; margin-top: 12px; }
.panel { background: var(--card); border: 0; border-radius: 18px; padding: 16px; box-shadow: 0 8px 22px rgba(48, 32, 16, 0.06); }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.panel h3 { font-size: 22px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 99px; margin-right: 5px; }
.legend .s { background: var(--ink); }
.legend .m { background: var(--copper); }

.chart { display: flex; align-items: end; gap: 8px; min-height: 196px; }
.chart .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stack-wrap { height: 150px; width: 100%; display: flex; align-items: end; justify-content: center; }
.stack { width: min(100%, 28px); border-radius: 8px 8px 3px 3px; overflow: hidden; display: flex; flex-direction: column; background: #efeae1; }
.stack i { display: block; width: 100%; }
.stack i.s { background: var(--ink); }
.stack i.m { background: var(--copper); }
.chart .col em, .chart .col span { font-style: normal; font-size: 11px; color: var(--muted); }
.mode-row { display: grid; gap: 8px; }
.mode-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.mode-bar { height: 8px; background: #efeae1; border-radius: 99px; overflow: hidden; }
.mode-bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }

.filters, .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs button, .chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
}
.tabs button.on, .chip.on { background: var(--ink); color: white; border-color: var(--ink); }
input[type="search"], input[type="text"], select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%2316181d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 8px 10px; white-space: nowrap; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table a { text-decoration: none; font-weight: 650; }
.table a:hover { color: var(--copper-deep); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pager-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager-btns button {
  border: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  box-shadow: 0 4px 12px rgba(48, 32, 16, 0.06);
}
.pager-btns button.on { background: var(--ink); color: #f7f2ea; }
.pager-btns button[disabled] { opacity: 0.4; cursor: default; }
.directory { background: var(--card); border-radius: 20px; box-shadow: 0 10px 28px rgba(48, 32, 16, 0.06); overflow: hidden; }
.member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 14px;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}
.member-row:first-child { border-top: 0; }
.member-row:hover { background: #faf6ef; }
.member-who strong { display: block; }
.member-who .quiet { font-size: 13px; }
.member-facts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.fact { font-size: 14px; color: var(--ink); }
.fact em { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.roster { display: grid; gap: 8px; }
.roster-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(48, 32, 16, 0.06);
  text-decoration: none;
  color: inherit;
}
.roster-main { min-width: 0; }
.roster-main strong, .roster-main a { display: block; text-decoration: none; font-weight: 650; }
.roster-main a:hover { color: var(--copper-deep); }
.roster-main .quiet { display: block; font-size: 13px; }
.roster-side { display: flex; align-items: center; gap: 12px; text-align: right; }
.roster-side .quiet { font-size: 13px; line-height: 1.35; }
.pay-card { grid-template-columns: minmax(0, 1fr) auto auto; }
.pay-amount { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: white; font-size: 12px; font-weight: 700; flex: none;
}
.id { display: block; color: var(--muted); font-weight: 450; font-size: 12px; }
.empty { padding: 28px 8px; color: var(--muted); }

.back { display: inline-block; margin-bottom: 12px; text-decoration: none; color: var(--muted); font-size: 14px; }
.detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.detail-head .avatar { width: 64px; height: 64px; font-size: 20px; }
.detail-head h2 { font-size: 40px; }
.detail-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.detail-meta article { background: var(--card); border: 0; border-radius: 16px; padding: 12px; box-shadow: 0 8px 18px rgba(48, 32, 16, 0.05); }
.detail-meta span { display: block; color: var(--muted); font-size: 12px; }
.detail-meta strong { display: block; margin-top: 4px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.remind-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: 12px; align-items: start; }
.remind-list { min-width: 0; }
.remind-list .pager { margin-top: 4px; }
.remind-preview { position: sticky; top: 84px; }
.remind-row {
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(48, 32, 16, 0.06);
  padding: 12px;
  margin-bottom: 8px;
}
.remind-row.on { background: #efe8dc; box-shadow: none; }
.remind-row strong { display: block; }
.bubble { background: #e5f6ec; border-radius: 16px 16px 16px 6px; padding: 14px; line-height: 1.45; }
.channels { display: flex; gap: 6px; margin: 10px 0; }
.channel { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 8px; background: var(--paper); }
.channel.wa { color: #067647; }
.channel.sms { color: #1d3f86; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.rules article { background: var(--card); border: 0; border-radius: 16px; padding: 12px; box-shadow: 0 8px 18px rgba(48, 32, 16, 0.05); }
.rules strong { display: block; margin-bottom: 4px; }

.attend-grid { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
.scanner { background: var(--ink); color: #f6f1e8; border-radius: 22px; padding: 18px; }
.scanner p { color: #d9d1c6; font-size: 14px; }
.finder { width: 168px; height: 168px; margin: 12px auto; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.finder svg { width: 120px; height: 120px; fill: white; }
.scanner form { display: flex; flex-direction: column; gap: 8px; }
.scanner input { background: #fffdf8; color: var(--ink); }
.tap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tap {
  text-align: left;
  border: 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(48, 32, 16, 0.06);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tap small { display: block; color: var(--muted); }
.tap.done { background: #f3faf6; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span, .cal i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-style: normal; font-size: 13px; }
.cal .dow { aspect-ratio: auto; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.cal .day { background: #f6f2eb; }
.cal .day.on { background: var(--ink); color: white; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--copper); }
.cal .day.future { background: transparent; color: #c8c0b4; }
.cal .gap { background: transparent; }
.visit-list { list-style: none; padding: 0; margin: 12px 0 0; }
.visit-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 70;
  max-width: min(520px, calc(100% - 24px));
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 14, 0.46);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card { width: min(520px, 100%); background: var(--card); border-radius: 18px; padding: 18px; border: 0; box-shadow: 0 18px 50px rgba(28, 20, 12, 0.18); }
.choice { display: flex; gap: 8px; margin: 12px 0; }
.choice label { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 8px; align-items: center; }
.receipt { background: white; color: var(--ink); }
.receipt header { display: flex; justify-content: space-between; align-items: start; }
.receipt h2 { font-size: 28px; margin: 8px 0; }
.receipt dl { display: grid; gap: 8px; margin: 12px 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.receipt dt { color: var(--muted); }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-top: 8px; }
.receipt-total strong { font-family: var(--display); font-size: 36px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.portal-body { background: var(--paper); }
.portal-switch { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 18px; }
.portal-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 280px; margin-top: 14px; color: white; }
.portal-hero img { width: 100%; height: 320px; object-fit: cover; filter: brightness(0.55); }
.portal-hero div { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.portal-hero h2 { font-size: clamp(32px, 4vw, 48px); max-width: 18ch; }
.portal-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 12px; margin: 12px 0 28px; }
.portal-grid > * { min-width: 0; }
.fee-list { list-style: none; margin: 0; padding: 0; }
.fee-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.fee-list li:first-child { border-top: 0; padding-top: 0; }
.fee-list li > span:first-child strong { display: block; }
.fee-side { display: flex; align-items: center; gap: 10px; flex: none; }
.fee-side strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.due-card { background: var(--ink); color: #f6f1e8; border-radius: 22px; padding: 20px; border: 0; }
.due-card strong { display: block; font-family: var(--display); font-size: 52px; letter-spacing: -0.04em; margin: 8px 0; }
.code-card { display: flex; gap: 14px; align-items: center; }
.code-card svg { width: 96px; height: 96px; background: white; border-radius: 12px; fill: var(--ink); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

@media (max-width: 1100px) {
  .layout, .split, .remind-layout, .attend-grid, .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero-grid, .about-grid, .service-grid, .detail-meta, .stats, .rules { grid-template-columns: 1fr 1fr; }
  .rate { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  .place { min-height: 400px; }
  .hero-photo img { height: 420px; }
  .feature:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.12); }
  .hero-photo img { height: 420px; }
  .nav { background: #f4f0e7; backdrop-filter: none; }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfc6b8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 650;
    background: white;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 25;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 16px 14px;
    background: #f4f0e7;
    border-bottom: 1px solid var(--line);
  }
  .nav-login { display: none; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a, .nav-login-link { display: block; width: 100%; padding: 12px 4px; }
  .portal-body .portal-nav { display: flex; position: static; width: auto; padding: 0; background: transparent; border: 0; }
  .portal-body .portal-nav a { display: inline-flex; width: auto; padding: 8px 12px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-105%); transition: 0.2s ease; width: 260px; }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 25; }
  .menu-btn { display: inline-flex; }
  .wide-photo img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .wrap { width: min(1160px, calc(100% - 28px)); }
  .hero-grid, .about-grid, .service-grid, .place-grid, .layout, .split, .remind-layout, .attend-grid, .portal-grid, .rules { grid-template-columns: 1fr; }
  .stats, .detail-meta { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 26px; }
  .hero-grid { align-items: start; }
  .hero h1 { font-size: 40px; max-width: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head h2, .band h2 { max-width: none; }
  .hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-points strong { font-size: 20px; }
  .hero-photo { overflow: hidden; }
  .hero-photo figcaption { right: 12px; max-width: none; }
  .rate { padding: 18px; }
  .rate-list article .price { font-size: 26px; }
  .place { min-height: 340px; }
  .about-grid img, .hero-photo img { height: 280px; }
  .footer-base, .band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .topbar, .view { padding-left: 14px; padding-right: 14px; }
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
  }
  .centre-switch { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .centre-switch select, .portal-switch select, .filters input, .filters select { width: 100%; min-width: 0; }
  .filters { display: grid; }
  .detail-head { align-items: flex-start; }
  .detail-head h2 { font-size: 32px; }
  .member-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .remind-preview { position: static; }
  .portal-switch { align-items: stretch; flex-direction: column; }
  .portal-switch label { display: grid; gap: 6px; }
  .portal-hero { min-height: 0; }
  .portal-hero img { height: 220px; }
  .portal-hero h2 { font-size: 28px; }
  .due-card strong { font-size: 42px; }
  .fee-list li { align-items: flex-start; }
  .fee-side { flex-direction: column; align-items: flex-end; gap: 6px; }
  .roster-card { grid-template-columns: auto minmax(0, 1fr); }
  .roster-side { grid-column: 2; justify-content: space-between; text-align: left; }
  .pay-card { grid-template-columns: minmax(0, 1fr) auto; }
  .pay-card .btn { grid-column: 1 / -1; justify-self: start; }
}

@page { margin: 0; size: auto; }
@media print {
  * { box-shadow: none !important; text-shadow: none !important; }
  body, body.print-sheet, body.print-report { background: white !important; background-image: none !important; }
  body.print-sheet .app, body.print-sheet .nav, body.print-sheet .footer, body.print-sheet .toast, body.print-sheet .no-print { display: none !important; }
  body.print-sheet .modal-back { position: static; background: white; padding: 0; display: block; }
  body.print-sheet .modal-card { width: 100%; box-shadow: none !important; border-radius: 0; padding: 0; background: white; }
  body.print-report .sidebar, body.print-report .topbar, body.print-report .attend-grid, body.print-report .page-head, body.print-report .toast, body.print-report .filters, body.print-report .scrim { display: none !important; }
  body.print-report .app { display: block; }
  body.print-report .view { padding: 16mm; }
}
