:root {
  --forest: #4a7846; --forest-dark: #3a6630; --forest-deep: #2a4f22;
  --sage-pale: #ddeece; --bg: #eddfc8; --surface: #f8edda; --line: #d9c0a0;
  --brown: #2a1a0e; --brown-mid: #5c3d22; --tan: #c4a47c;
  --terra: #bf5030; --terra-dark: #9e3f22;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--brown); font: 16px/1.55 var(--sans); }
a { color: var(--forest-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--forest-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.35rem; margin-top: 1.6em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
main.narrow { max-width: 460px; }
.dev-banner { background: var(--terra); color: #fff; text-align: center; font-size: .85rem; padding: 4px; font-weight: 600; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--forest-deep); }
.topnav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topnav a { text-decoration: none; font-weight: 500; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--forest-dark); cursor: pointer; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field input, .field textarea, .field select, select { width: 100%; padding: 10px 12px; border: 1px solid var(--tan); border-radius: 10px; font: inherit; background: #fffdf8; color: var(--brown); }
.field input:focus, .field textarea:focus, select:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.btn { display: inline-block; background: var(--forest); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--forest-dark); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.topnav a.btn { color: #fff; }
.searchbar { margin-bottom: 14px; }
.searchbar input { max-width: 280px; padding: 8px 12px; border: 1px solid var(--tan); border-radius: 10px; font: inherit; background: #fffdf8; }
.danger-zone { border-color: var(--terra); }
.btn-light { background: transparent; color: var(--forest-dark); border: 1px solid var(--forest); }
.btn-light:hover { background: var(--sage-pale); }
.btn-danger { background: var(--terra); }
.btn-danger:hover { background: var(--terra-dark); }
.btn-block { width: 100%; }
.muted { color: var(--brown-mid); font-size: .92rem; }
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-info { background: #eef4ea; border-color: #b8d4a0; }
.flash-success { background: #e3f0db; border-color: #88b068; }
.flash-error { background: #f7e1d8; border-color: var(--terra); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brown-mid); }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.badge-pending { background: #fbe7c6; color: #7a4b00; }
.badge-active { background: var(--sage-pale); color: var(--forest-deep); }
.badge-disabled { background: #eadbd3; color: #6b3a28; }
.badge-admin { background: var(--forest-deep); color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--tan); }
.tabs a.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks label { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.foot { border-top: 1px solid var(--line); padding: 20px 0; color: var(--brown-mid); font-size: .9rem; }
pre.mail { white-space: pre-wrap; background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .9rem; }
.checks label { justify-content: flex-start; font-weight: 400; cursor: pointer; }
.field .checks input[type=checkbox], .checks input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--forest); }
.danger-zone input[type=text] { max-width: 200px; padding: 8px 12px; border: 1px solid var(--tan); border-radius: 10px; font: inherit; background: #fffdf8; }
.pagelist { list-style: none; padding: 0; margin: 0; }
.pagelist li { padding: 6px 0; }
.radio-row label { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-weight: 400; }
.radio-row input { width: auto; }
.class-title { margin-top: 0; font-size: 1.25rem; }
.class-title a { text-decoration: none; }
.prose { margin: 10px 0; }
fieldset.card { margin: 0 0 16px; }
legend { font-family: var(--serif); font-weight: 700; color: var(--forest-deep); padding: 0 6px; }
.inline-label { display: flex; align-items: center; gap: 10px; font-weight: 600; flex-wrap: wrap; }
.small-select { width: auto; min-width: 70px; padding: 6px 10px; }
.badge-open { background: var(--sage-pale); color: var(--forest-deep); }
.badge-draft, .badge-closed { background: #fbe7c6; color: #7a4b00; }
.badge-cancelled { background: #eadbd3; color: #6b3a28; }
table.compact th, table.compact td { padding: 6px 8px; font-size: .92rem; }
.reg-actions { margin-top: 12px; }
.reg-actions .checks { margin: 0; font-size: .9rem; }
.note-input { flex: 1; min-width: 200px; padding: 7px 10px; border: 1px solid var(--tan); border-radius: 10px; font: inherit; background: #fffdf8; }
.faded { opacity: .6; }
.indent { margin-left: 26px; }
.danger-link { color: var(--terra-dark); font-size: .9rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.topnav { gap: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.photo-grid figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photo-grid img { display: block; width: 100%; height: 170px; object-fit: cover; }
.photo-grid figcaption { padding: 6px 10px; font-size: .9rem; }
.photo-grid.admin form { padding: 8px; }
.photo-grid.admin .note-input { width: 100%; margin-bottom: 6px; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 12px; }
.total-line { font-size: 1.05rem; margin: 6px 0 14px; }
h3 { font-family: var(--serif); color: var(--forest-deep); }
.member-area { border-top: 2px solid var(--sage-light, #b8d4a0); margin-top: 24px; padding-top: 8px; }
.eyebrow-note { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--forest); margin: 8px 0 0; }
.card.has-cover { display: grid; grid-template-columns: 200px 1fr; column-gap: 20px; }
.card.has-cover .cover { grid-row: span 4; }
.card.has-cover .cover img { width: 200px; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 560px) { .card.has-cover { grid-template-columns: 1fr; } .card.has-cover .cover img { width: 100%; height: 180px; margin-bottom: 12px; } }
.whoami { font-size: .9rem; color: var(--brown-mid); padding-right: 12px; border-right: 1px solid var(--line); }
.whoami a { text-decoration: none; color: var(--forest-deep); }
@media (max-width: 640px) { .whoami { flex-basis: 100%; border-right: 0; padding-right: 0; } }
