:root {
  color-scheme: light;
  --ink: #414141;
  --ink-soft: #555752;
  --muted: #716f67;
  --line: #d8e6e1;
  --line-strong: #b9d5ce;
  --paper: #ffffff;
  --wash: #fffaf0;
  --canvas: #fff8e7;
  --accent: #2faeab;
  --accent-strong: #237f7d;
  --accent-soft: #ddf4f2;
  --gold: #ecbf57;
  --gold-soft: #fff0c7;
  --danger: #c95e58;
  --danger-soft: #fbe4e2;
  --shadow-sm: 0 8px 24px rgba(65, 65, 65, 0.08);
  --shadow-lg: 0 24px 70px rgba(65, 65, 65, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(231, 190, 72, 0.26), transparent 28rem),
    linear-gradient(145deg, #fffdf7 0%, var(--canvas) 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(rgba(96, 70, 12, 0.11) 0.65px, transparent 0.65px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}

/* Shared site navigation */
.site-strip {
  position: relative;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: 0 3px 12px rgba(71, 54, 16, 0.06);
}
.site-strip-inner {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin: 0 auto;
}
.site-identity {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.site-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  min-height: 42px;
  max-height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}
.site-mark img {
  width: 32px !important;
  height: 34px !important;
  max-width: 32px !important;
  max-height: 34px !important;
  display: block;
  object-fit: contain;
  background: #ffffff;
}
.site-identity > span:last-child { min-width: 0; display: grid; gap: 2px; }
.site-identity strong { font-size: 12px; }
.site-identity small { color: var(--muted); font-size: 9px; }
.site-strip nav {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
}
.site-strip nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.site-strip nav a:hover,
.site-strip nav a.is-current {
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.site-strip nav a.public-login-link {
  margin-left: 6px;
  padding-inline: 15px;
  color: #fff;
  background: var(--accent-strong);
}
.site-strip nav a.public-login-link:hover,
.site-strip nav a.public-login-link.is-current {
  color: #fff;
  background: var(--accent);
}
.logout-form { margin: 0; }
.logout-form button {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 10px;
}
.logout-form button:hover:not(:disabled) {
  color: var(--danger);
  border-color: #e5b7b2;
  background: var(--danger-soft);
  box-shadow: none;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  min-height: 44px;
  padding: 0 17px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(96, 70, 12, 0.2);
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(152, 113, 24, 0.28);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: 0.48; }
button.secondary {
  background: var(--paper);
  color: var(--accent-strong);
  border-color: var(--line-strong);
}
button.secondary:hover:not(:disabled) { background: var(--accent-soft); border-color: #d0b75d; }
button.danger { background: var(--paper); color: var(--danger); border-color: #e5b7b2; }
button.danger:hover:not(:disabled) { background: var(--danger-soft); border-color: #d99b94; box-shadow: none; }
button.small-button { min-height: 38px; padding: 0 13px; font-size: 13px; white-space: nowrap; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.page-heading { display: grid; gap: 18px; }
.page-title-row { display: flex; gap: 18px; align-items: center; }
.mini-brand {
  width: 64px;
  height: 64px;
  padding: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}
.mini-brand img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow {
  color: var(--accent);
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.back-link {
  width: fit-content;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.back-link:hover { color: var(--accent); }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
h3 { margin: 0; }
.page-summary { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}
.tab {
  border: 0;
  border-radius: 9px;
  min-width: 102px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.tab:hover:not(.is-active) { background: var(--wash); color: var(--ink); box-shadow: none; transform: none; }
.tab.is-active { background: var(--ink); color: #fff; }
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}
.surface, .receipt-paper {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 208, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-stack { overflow: hidden; }
.form-section { padding: 24px; border-bottom: 1px solid var(--line); }
.form-section-head {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
}
.form-section-head p, .admin-intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}
.step-number {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.form-row { display: grid; gap: 14px; }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-fields { margin-top: 14px; }
label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
input:hover, select:hover, textarea:hover { border-color: #d0b75d; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(152, 113, 24, 0.11);
  outline: 0;
}
input:disabled { color: var(--muted); background: var(--wash); cursor: not-allowed; }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  margin-right: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 88px; }
.items-head { justify-content: space-between; }
.section-title-with-step { display: flex; gap: 13px; align-items: center; }
.items { display: grid; gap: 10px; }
.item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 76px 116px 98px 38px;
  gap: 10px;
  align-items: end;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--wash);
}
.item-total {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.item-row .remove {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  margin-bottom: 3px;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}
.item-row .remove:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: transparent;
  box-shadow: none;
}
.message { min-height: 20px; margin: 0; color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.message.error { color: var(--danger); }
details.officer-details {
  margin: 20px 24px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  background: var(--wash);
}
details.officer-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 15px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}
details.officer-details summary small { color: var(--muted); font-weight: 700; }
details.officer-details[open] { padding-bottom: 14px; }
details.officer-details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
details.officer-details .form-row + .form-row { margin-top: 12px; }
.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px 12px;
}
.actions { display: flex; gap: 10px; align-items: center; }
.form-stack > .message { padding: 0 24px 18px; }
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  cursor: pointer;
}
.mode-toggle > span:first-child { display: grid; gap: 2px; }
.mode-toggle strong { font-size: 12px; }
.mode-toggle small { color: var(--muted); font-size: 10px; font-weight: 700; }
.mode-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-slider {
  order: -1;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--line-strong);
  border-radius: 999px;
  position: relative;
  transition: 0.2s;
}
.toggle-slider::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 5px rgba(24, 36, 33, 0.2);
  transition: 0.2s;
}
.mode-toggle input:checked + .toggle-slider { background: var(--accent); }
.mode-toggle input:checked + .toggle-slider::after { left: 21px; }

.preview-column { position: sticky; top: 20px; }
.preview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.preview-label > div { display: flex; align-items: center; gap: 7px; }
.live-dot, .note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a57e;
  box-shadow: 0 0 0 4px rgba(40, 165, 126, 0.12);
}
.receipt-paper {
  position: relative;
  padding: 28px;
  min-height: 560px;
  overflow: hidden;
  border-radius: 4px;
}
.receipt-paper::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  right: -92px;
  bottom: -88px;
  border: 26px solid var(--accent-soft);
  opacity: 0.5;
}
.receipt-brand {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.receipt-brand img { width: 34px; height: 34px; object-fit: contain; }
.receipt-title {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 28px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}
.receipt-title strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 8px;
  border-radius: 5px;
}
.receipt-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.receipt-meta > div { display: grid; gap: 4px; }
.receipt-meta > div:last-child { text-align: right; }
.receipt-meta small, .preview-table-head {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.receipt-meta span { color: var(--ink); font-size: 13px; font-weight: 800; }
.preview-table-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 18px 0 8px;
}
.preview-lines { position: relative; display: grid; gap: 13px; padding: 7px 0 20px; min-height: 130px; }
.preview-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.preview-line span { color: var(--ink-soft); }
.preview-line span small { display: block; margin-top: 2px; color: var(--muted); }
.preview-line strong { white-space: nowrap; }
.totals { position: relative; display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.totals strong { color: var(--ink); }
.totals .grand {
  align-items: center;
  margin-top: 5px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}
.totals .grand strong { color: var(--accent-strong); font-size: 20px; }
.receipt-footer-note {
  position: relative;
  margin-top: 28px;
  max-width: 250px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.preview-help { margin: 10px 6px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hidden { display: none !important; }

.admin-intro { margin: 6px 0 18px; }
.admin-intro h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.admin-tools {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-tools label { min-width: min(330px, 100%); }
.admin-tools .message { align-self: center; margin-left: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover:not(.empty-row) { background: rgba(244, 247, 245, 0.7); }
td { color: var(--ink-soft); font-size: 13px; }
td:first-child { color: var(--ink); font-weight: 900; }
td:last-child { text-align: right; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions button { min-height: 34px; padding: 0 10px; font-size: 11px; }
.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
  font-size: 10px;
  text-transform: capitalize;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.status-pill.status-draft { background: var(--gold-soft); color: #735115; }
.status-pill.status-void { background: var(--danger-soft); color: var(--danger); }
.empty-row td { padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Toolkit hub */
.hub-page { background: var(--canvas); }
.hub-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 24px; }
.hub-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center;
  gap: 48px;
  padding: 44px 48px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .62), transparent 15rem),
    linear-gradient(135deg, #fff3bd 0%, #efd47d 72%);
  box-shadow: var(--shadow-lg);
}
.hub-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -230px;
  border: 55px solid rgba(96, 70, 12, .06);
  border-radius: 50%;
}
.hub-intro { position: relative; z-index: 1; max-width: 650px; }
.hub-intro .eyebrow { color: var(--accent-strong); }
.hub-intro h1 { font-size: clamp(42px, 5vw, 64px); }
.hub-intro h1 span { color: #875f08; }
.hero-copy { max-width: 610px; margin: 18px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; gap: 9px; margin-top: 24px; }
.hero-actions a {
  min-height: 40px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(96, 70, 12, .24);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
}
.hero-actions .hero-primary { color: #fff; background: var(--accent-strong); }
.hero-actions .hero-secondary:hover { background: rgba(255,255,255,.42); }
.hero-service-panel {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid #d8bd62;
  border-radius: 17px;
  background: rgba(255, 248, 217, .88);
  backdrop-filter: blur(10px);
}
.hero-service-panel .eyebrow { color: var(--accent-strong); margin-bottom: 8px; }
.hero-service-panel > a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(96, 70, 12, .15);
  color: var(--ink);
  text-decoration: none;
}
.hero-service-panel > a > span:nth-child(2) { display: grid; gap: 2px; }
.hero-service-panel strong { font-size: 10px; }
.hero-service-panel small { color: var(--muted); font-size: 8px; }
.quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #624510;
  background: var(--gold-soft);
  font-family: Georgia, serif;
  font-weight: 700;
}
.quick-icon.schedule { color: var(--accent-strong); background: var(--accent-soft); }
.portal-section { padding: 48px 0; scroll-margin-top: 20px; }
.member-portal-section { padding-bottom: 42px; }
.admin-portal-section { padding-top: 42px; border-top: 1px solid var(--line); }
.audience-nav {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: -34px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(24, 36, 33, 0.14);
  backdrop-filter: blur(12px);
}
.audience-nav a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.audience-nav a:hover { background: var(--wash); transform: translateY(-1px); }
.audience-nav a > span:nth-child(2) { display: grid; gap: 2px; }
.audience-nav strong { font-size: 13px; }
.audience-nav small { color: var(--muted); font-size: 10px; }
.audience-nav a > span:last-child { color: var(--muted); font-size: 14px; }
.audience-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.audience-icon.member { color: #684a16; background: var(--gold-soft); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 22px; }
.section-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 38px; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.public-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.public-service-card {
  position: relative;
  min-height: 210px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 19px;
  align-items: start;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.public-service-card:hover { transform: translateY(-3px); border-color: #d0b75d; box-shadow: 0 18px 40px rgba(71, 54, 16, .12); }
.public-service-card.featured { border-color: #dbc66f; background: #fffdf5; }
.service-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #624510;
  background: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}
.service-card-icon.schedule { color: #fff; background: var(--accent); }
.service-card-copy h3 { margin-top: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.service-card-copy p { max-width: 390px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.service-card-arrow { align-self: center; color: var(--accent); font-size: 20px; }
.admin-section-intro { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 18px; }
.admin-section-intro h2 { font-family: Georgia, "Times New Roman", serif; font-size: 31px; }
.admin-section-intro p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.admin-label { padding: 7px 10px; border-radius: 999px; color: var(--muted); background: #f5e9bc; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.admin-tool-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.admin-entry-list { grid-template-columns: minmax(0, 680px); }
.admin-tool-list > a {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.68);
  text-decoration: none;
}
.admin-tool-list > a:hover { border-color: #d0b75d; background: #fffdf5; }
.admin-tool-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--accent); font-family: Georgia, serif; font-weight: 700; }
.admin-tool-icon.muted { color: var(--muted); background: #f5e9bc; }
.admin-tool-list > a > span:nth-child(2) { display: grid; gap: 3px; }
.admin-tool-list strong { font-size: 11px; }
.admin-tool-list small { color: var(--muted); font-size: 9px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-grid, .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-section { padding-top: 48px; border-top: 1px solid var(--line); }
.member-card .tool-icon { color: #624510; background: var(--gold-soft); box-shadow: 0 9px 18px rgba(198, 146, 62, 0.16); }
.schedule-card .tool-icon { color: #fff; background: var(--ink-soft); box-shadow: 0 9px 18px rgba(24, 36, 33, 0.18); }
.tool-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.tool-card:hover { transform: translateY(-5px); border-color: #d0b75d; box-shadow: 0 20px 46px rgba(71, 54, 16, .13); }
.tool-card-featured { background: #fffdf5; border-color: #dbc66f; }
.tool-card-top { display: flex; justify-content: space-between; align-items: center; }
.tool-number { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; }
.availability {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #72521b;
  background: var(--gold-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.availability.is-ready { color: var(--accent-strong); background: var(--accent-soft); }
.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 40px 0 22px;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 9px 18px rgba(18, 108, 92, 0.22);
}
.tool-icon.large { width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 20px; font-size: 30px; }
.tool-copy h3 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.tool-copy p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.tool-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--accent-strong); font-size: 12px; font-weight: 900; }
.hub-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 3px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* Public homepage */
.public-hero { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.public-next-event {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 24px;
  border: 1px solid #d8bd62;
  border-radius: 18px;
  background: rgba(255, 253, 245, .9);
  box-shadow: var(--shadow-sm);
}
.public-next-event .eyebrow { color: var(--accent-strong); }
.public-next-date {
  width: 68px;
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  margin: 18px 0;
  border-radius: 16px;
  color: #fff;
  background: var(--accent-strong);
}
.public-next-date strong { font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: .9; }
.public-next-date span { margin-top: 5px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.public-next-event h2 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.12; }
.public-next-event > p:not(.eyebrow) { margin: 9px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.public-next-event > a,
.public-section-link {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
}
.public-events-section { padding-bottom: 42px; }
.public-highlights-section { padding-top: 42px; border-top: 1px solid var(--line); }
.home-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-event-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-sm);
}
.home-event-date {
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.home-event-date strong { font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: .95; }
.home-event-date span { margin-top: 5px; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.home-event-copy { min-width: 0; }
.home-event-copy h3 { margin: 8px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.15; }
.home-event-copy p { margin: 3px 0; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; line-height: 1.45; }
.home-event-copy small { display: block; margin-top: 10px; color: #72551f; font-size: 9px; font-weight: 800; }
.home-event-loading {
  grid-column: 1 / -1;
  padding: 45px 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  text-align: center;
}
.public-section-link { margin-top: 18px; }

/* Coming soon pages */
.coming-page { display: block; padding: 0; }
.coming-shell { position: relative; z-index: 1; width: min(560px, calc(100% - 40px)); margin: 42px auto; }
.coming-shell > .back-link { display: inline-block; margin-bottom: 18px; }
.coming-card {
  position: relative;
  overflow: hidden;
  padding: 62px 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}
.coming-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  bottom: -100px;
  border: 28px solid var(--accent-soft);
  border-radius: 50%;
}
.coming-number { position: absolute; top: 24px; right: 26px; color: var(--line-strong); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.coming-card h1 { font-size: clamp(38px, 7vw, 54px); }
.coming-card > p:not(.eyebrow) { max-width: 420px; margin: 20px auto 26px; color: var(--muted); line-height: 1.7; }
.coming-card .availability { margin: 0 auto; }

/* Member service pages */
.service-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 64px;
}
.service-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.service-header .back-link { display: inline-block; margin-bottom: 20px; }
.service-summary { max-width: 630px; margin: 15px 0 0; color: var(--muted); line-height: 1.65; }
.service-badge {
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid #dbc66f;
  border-radius: 18px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  text-align: right;
}
.service-badge span { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.service-badge strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.service-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 17px 19px;
  border: 1px solid #d7c291;
  border-radius: 14px;
  background: #fbf5e8;
}
.notice-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font-family: Georgia, serif;
  font-weight: 700;
}
.service-notice strong { font-size: 12px; }
.service-notice p { margin: 4px 0 0; color: #735d37; font-size: 12px; line-height: 1.5; }
.document-member-link { display: inline-block; margin-top: 8px; }
.document-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.document-download-only { grid-template-columns: 1fr; }
.service-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.panel-count {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--wash);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.document-list { display: grid; }
.document-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.document-row:last-child { border-bottom: 0; }
.document-row:hover { background: var(--wash); }
.file-mark {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 14px 8px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 9px;
  font-weight: 900;
}
.document-row h3 { font-size: 14px; }
.document-row p { margin: 5px 0; color: var(--muted); font-size: 11px; }
.document-row div > span { color: #89938f; font-size: 9px; font-weight: 700; }
.document-action { min-height: 36px; font-size: 10px; }
.upload-panel { position: sticky; top: 20px; }
.upload-drop { margin: 20px; padding: 32px 20px; border: 1px dashed #d0b75d; border-radius: 14px; background: var(--wash); text-align: center; }
.upload-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 20px;
  font-weight: 900;
}
.upload-drop strong { display: block; font-size: 13px; }
.upload-drop p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.requirement-list { display: grid; gap: 15px; padding: 0 20px 22px; }
.requirement-list > div { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: flex-start; }
.requirement-list > div > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); font-size: 10px; font-weight: 900; }
.requirement-list p { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: 10px; }
.requirement-list strong { color: var(--ink-soft); font-size: 11px; }
.schedule-highlight {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 26px 30px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #f7df8d, #e8c65c);
  box-shadow: var(--shadow-sm);
}
.schedule-highlight .eyebrow { color: var(--accent-strong); }
.schedule-highlight h2 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.schedule-highlight p:last-child { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; }
.date-block { min-width: 110px; display: grid; place-items: center; padding-left: 26px; border-left: 1px solid rgba(96, 70, 12, .2); }
.date-block strong { font-family: Georgia, "Times New Roman", serif; font-size: 46px; line-height: 1; }
.date-block span { color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.schedule-list { display: grid; }
.schedule-row {
  display: grid;
  grid-template-columns: 64px 115px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row:hover { background: var(--wash); }
.schedule-date { display: grid; place-items: center; padding: 8px 4px; border-radius: 10px; color: var(--accent-strong); background: var(--accent-soft); }
.schedule-date strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1; }
.schedule-date span { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.schedule-time { display: grid; gap: 3px; }
.schedule-time strong { font-size: 14px; }
.schedule-time span { color: var(--muted); font-size: 9px; }
.category-tag { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.schedule-event h3 { margin-top: 4px; font-size: 14px; }
.schedule-event p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.schedule-status { padding: 5px 8px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-soft); font-size: 9px; font-weight: 900; }
.schedule-disclaimer { margin: 12px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.schedule-deadline { margin-top: 8px !important; color: #72551f !important; }
.schedule-deadline strong { color: #72551f; }
.schedule-empty { padding: 45px 25px; color: var(--muted); text-align: center; }
.schedule-row.is-cancelled { opacity: .62; }
.schedule-row.is-cancelled .schedule-event h3 { text-decoration: line-through; }

@media (max-width: 980px) {
  .panel-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .item-row { grid-template-columns: minmax(150px, 1fr) 70px 105px 38px; }
  .item-total-wrap { display: none; }
  .hub-hero { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; padding: 38px; }
  .admin-tool-list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-strip-inner {
    width: min(calc(100% - 24px), 680px);
    min-height: 64px;
    gap: 12px;
  }
  .site-strip nav { gap: 1px; }
  .site-strip nav a { padding: 8px 7px; font-size: 9px; }
  .shell, .hub-shell { width: min(calc(100% - 24px), 680px); }
  .topbar, .section-heading { align-items: stretch; flex-direction: column; }
  .tabs { width: 100%; }
  .panel-grid, .form-row.two, .form-row.three { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  .receipt-paper { min-height: auto; }
  .item-row { grid-template-columns: 1fr 1fr 38px; }
  .item-row label:first-child { grid-column: 1 / -1; }
  .item-row .remove { grid-column: 3; grid-row: 2; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .actions { width: 100%; }
  .actions button { flex: 1; }
  .hub-hero { min-height: auto; grid-template-columns: 1fr; padding: 34px 30px; text-align: left; }
  .hub-intro { margin: 0; }
  .hero-copy { margin-left: 0; margin-right: 0; }
  .hero-service-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .hero-service-panel > .eyebrow { grid-column: 1 / -1; }
  .tool-grid, .admin-grid, .member-grid { grid-template-columns: 1fr; }
  .public-service-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 280px; }
  .tool-icon { margin-top: 30px; }
  .section-heading > p { text-align: left; }
  .service-header { align-items: flex-start; flex-direction: column; }
  .service-badge { width: 100%; text-align: left; }
  .document-layout { grid-template-columns: 1fr; }
  .upload-panel { position: static; }
  .schedule-row { grid-template-columns: 54px 100px minmax(0, 1fr); }
  .schedule-status { display: none; }
  .home-event-list { grid-template-columns: 1fr; }
  .home-event-card { grid-template-columns: 62px minmax(0, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-strip-inner {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 9px;
  }
  .site-identity { align-self: flex-start; }
  .site-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    min-height: 38px;
    max-height: 38px;
  }
  .site-mark img {
    width: 28px !important;
    height: 30px !important;
    max-width: 28px !important;
    max-height: 30px !important;
  }
  .site-strip nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }
  .site-strip nav a { padding: 8px 3px; text-align: center; }
  .site-strip nav a.public-login-link { margin-left: 0; padding-inline: 6px; }
  .logout-form button { width: 100%; min-height: 31px; padding: 0 4px; }
}
@media (max-width: 560px) {
  .shell { padding-top: 20px; }
  .page-title-row { align-items: flex-start; }
  .mini-brand { width: 52px; height: 52px; border-radius: 14px; }
  h1 { font-size: 36px; }
  .form-section { padding: 20px 16px; }
  details.officer-details { margin: 16px 16px 0; }
  .form-footer { padding: 20px 16px 12px; }
  .form-stack > .message { padding: 0 16px 16px; }
  .items-head { align-items: flex-start; }
  .item-row { grid-template-columns: minmax(0, 1fr) 38px; }
  .item-row label { grid-column: 1 / -1; }
  .item-row .remove { grid-column: 2; grid-row: 3; }
  .actions { flex-direction: column-reverse; }
  .actions button { width: 100%; }
  .receipt-paper { padding: 22px; }
  .hub-shell { padding-top: 12px; }
  .hub-hero { border-radius: 18px; padding: 28px 20px; }
  .hub-intro h1 { font-size: 39px; }
  .public-hero .hub-intro h1 { font-size: 35px; }
  .public-hero .hub-intro h1 br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-service-panel { grid-template-columns: 1fr; }
  .hero-service-panel > .eyebrow { grid-column: auto; }
  .audience-nav { width: calc(100% - 20px); grid-template-columns: 1fr; }
  .portal-section { padding: 38px 0; }
  .public-service-card { grid-template-columns: 48px 1fr; padding: 21px; }
  .service-card-icon { width: 46px; height: 46px; border-radius: 13px; }
  .service-card-arrow { display: none; }
  .admin-section-intro { align-items: flex-start; flex-direction: column; }
  .admin-tool-list > a { grid-template-columns: 38px 1fr auto; }
  .admin-tool-list > a .availability { display: none; }
  .tool-section { padding-top: 44px; }
  .hub-footer { flex-direction: column; }
  .coming-card { padding: 54px 22px; }
  .service-shell { width: calc(100% - 24px); padding-top: 22px; }
  .document-row { grid-template-columns: 42px 1fr; padding: 18px 16px; }
  .document-action { grid-column: 1 / -1; width: 100%; }
  .schedule-highlight { align-items: flex-start; padding: 22px; }
  .date-block { min-width: 72px; padding-left: 16px; }
  .schedule-row { grid-template-columns: 48px 1fr; gap: 13px; padding: 18px 16px; }
  .schedule-time { text-align: right; }
  .schedule-event { grid-column: 1 / -1; padding-left: 61px; }
  .public-next-event { padding: 20px; }
  .public-next-event h2 { overflow-wrap: anywhere; }
  .public-next-date { width: 60px; min-height: 60px; }
  .home-event-card { padding: 18px 16px; }
  .access-shell { width: calc(100% - 24px); padding-top: 34px; }
  .access-grid .auth-card { padding: 28px 20px; }
}
@media print {
  body { background: #fff; }
  body::before, .site-strip, .topbar, .form-stack, #admin-panel, .preview-label, .preview-help { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .panel-grid { display: block; }
  .preview-column { position: static; }
  .receipt-paper { border: 0; box-shadow: none; min-height: auto; }
}

/* Schedule administration */
.compact-link { width: fit-content; padding: 0 16px; }
.schedule-admin-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 18px; align-items: start; }
.schedule-form-head, .schedule-admin-list-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.schedule-form-head button { min-height: 34px; padding: 0 10px; font-size: 9px; }
.schedule-admin-list { padding: 25px; }
.schedule-admin-list-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.schedule-admin-list-head h2 { font-family: Georgia, serif; font-size: 27px; }
.schedule-admin-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 15px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.schedule-admin-item h3 { margin-top: 5px; font-size: 14px; }
.schedule-admin-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.schedule-admin-item p strong { color: var(--ink-soft); }
@media (max-width: 880px) {
  .schedule-admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .schedule-admin-item { grid-template-columns: 1fr auto; }
  .schedule-admin-item .finance-actions { grid-column: 1 / -1; }
}

/* Document-first invoice and receipt editor */
.invoice-page {
  background:
    radial-gradient(circle at 12% 0, rgba(201, 155, 37, .15), transparent 25rem),
    var(--canvas);
}
.invoice-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 60px;
}
.invoice-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 10px 2px 18px;
}
.invoice-section-bar {
  min-height: 56px;
  margin-bottom: 16px;
  padding: 0 2px;
}
.invoice-section-bar > div { display: grid; gap: 2px; }
.invoice-section-bar > div .eyebrow { margin: 0; }
.invoice-section-bar > div strong { font-size: 14px; }
.invoice-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 900px) 290px;
  gap: 22px;
  align-items: start;
  justify-content: center;
}
.invoice-editor {
  width: 100%;
  min-width: 0;
  min-height: 1080px;
  padding: 54px 58px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(24, 36, 33, .13);
}
.document-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 32px;
}
.document-identity { display: grid; justify-items: start; }
.document-logo {
  width: 92px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
}
.document-logo img { width: 100%; height: 100%; display: block; object-fit: contain; background: #ffffff; }
.plain-field { display: block; }
.plain-field input {
  min-height: 30px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}
.plain-field input:hover { border-bottom-color: var(--line); }
.plain-field input:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}
.business-name-field input {
  width: min(380px, 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}
.document-identity p { margin: 4px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.document-type { display: grid; justify-items: end; gap: 12px; }
.document-type > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
}
.document-type label { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.document-type strong { min-width: 78px; color: var(--accent-strong); font-size: 11px; text-align: right; }
.document-parties {
  display: grid;
  grid-template-columns: 1fr 1fr 210px;
  gap: 32px;
  padding: 25px 0 30px;
  border-top: 2px solid var(--ink);
}
.party-block { min-width: 0; }
.document-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.party-block .plain-field input { width: 100%; color: var(--muted); font-size: 11px; }
.party-block .plain-field.prominent input { color: var(--ink); font-size: 14px; font-weight: 800; }
.document-meta { display: grid; gap: 8px; }
.document-meta label {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.document-meta input, .document-meta select {
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 10px;
  text-transform: none;
}
.line-items-section { margin-top: 4px; }
.item-table-labels {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 82px 118px 104px 30px;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.invoice-items { gap: 0; }
.invoice-items .item-row {
  grid-template-columns: minmax(180px, 1fr) 82px 118px 104px 30px;
  gap: 8px;
  min-height: 57px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.invoice-items .item-field-label { display: none; }
.invoice-items .item-total-wrap { display: grid; }
.invoice-items .item-row input {
  min-height: 36px;
  padding: 6px 7px;
  border-color: transparent;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
}
.invoice-items .item-row input:hover { border-color: var(--line); background: var(--wash); }
.invoice-items .item-row input:focus { border-color: var(--accent); background: #fff; }
.invoice-items .item-total {
  min-height: 36px;
  padding: 0;
  font-size: 11px;
}
.invoice-items .item-row .remove { width: 30px; min-width: 30px; min-height: 30px; margin: 3px 0 0; }
.add-line-button {
  min-height: 34px;
  margin-top: 11px;
  padding: 0 11px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 11px;
}
.add-line-button:hover:not(:disabled) { color: var(--accent-strong); background: var(--accent-soft); box-shadow: none; transform: none; }
.document-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 54px;
  align-items: start;
  padding-top: 35px;
}
.document-notes { display: grid; gap: 18px; }
.document-notes label { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.document-notes textarea {
  min-height: 76px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 11px;
  text-transform: none;
}
.document-notes textarea:focus { box-shadow: none; border-color: var(--accent); }
.document-notes input[type="file"] { min-height: 38px; padding: 4px; font-size: 9px; text-transform: none; }
.document-totals { display: grid; gap: 11px; }
.document-totals > div, .document-totals > label {
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.document-totals strong { color: var(--ink); }
.inline-money { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.inline-money input {
  width: 72px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 5px;
  text-align: right;
  font-size: 10px;
}
.inline-money small { font-size: 9px; }
.document-grand-total {
  margin-top: 5px;
  padding-top: 15px;
  border-top: 2px solid var(--ink);
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 900;
}
.document-grand-total strong { color: var(--accent-strong); font-size: 21px; }
.document-signature { width: 250px; display: grid; gap: 7px; margin-top: 80px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.document-signature div { height: 24px; border-bottom: 1px solid var(--ink); }
.document-signature small { font-size: 8px; text-transform: none; }
.invoice-sidebar { position: sticky; top: 18px; width: 100%; min-width: 0; display: grid; gap: 14px; }
.sidebar-primary, .sidebar-settings {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
.sidebar-primary h1 { margin: 7px 0 13px; font-size: 31px; line-height: 1.03; }
.sidebar-primary > p:not(.eyebrow):not(.message) { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.sidebar-primary button { width: 100%; margin-top: 8px; }
.sidebar-primary .message { margin-top: 12px; font-size: 11px; }
.sidebar-settings { display: grid; gap: 18px; }
.setting-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.setting-row > span { display: grid; gap: 3px; }
.setting-row strong { font-size: 11px; }
.setting-row small { color: var(--muted); font-size: 9px; }
.compact-toggle { display: block; }
.compact-toggle .toggle-slider { display: block; }
.sidebar-field { color: var(--ink-soft); font-size: 10px; }
.sidebar-field select { min-height: 38px; font-size: 10px; }
.sidebar-tip { padding: 14px; border-radius: 10px; color: #72551f; background: var(--gold-soft); }
.sidebar-tip strong { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-tip p { margin: 6px 0 0; font-size: 9px; line-height: 1.55; }
.invoice-admin { padding-top: 12px; }
.session-tools > div { display: grid; gap: 3px; }
.session-tools > div strong { font-size: 12px; }
.session-tools > div small { color: var(--muted); font-size: 10px; }

/* Administrator authentication and toolkit access */
.auth-page, .toolkits-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0, rgba(201, 155, 37, .17), transparent 25rem),
    var(--canvas);
}
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 520px);
  margin: 0 auto;
  padding: 72px 0;
}
.auth-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.auth-intro { text-align: center; }
.auth-lock {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}
.auth-intro h1 { font-size: 40px; }
.auth-intro h2 { font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1.08; }
.auth-intro > p:last-child { margin: 15px auto 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.auth-form { display: grid; gap: 16px; margin-top: 30px; }
.auth-form button { width: 100%; }
.auth-form .message { margin: -4px 0 0; }
.auth-card > .back-link { display: block; margin: 24px auto 0; text-align: center; }
.access-shell { width: min(calc(100% - 40px), 920px); padding: 54px 0 70px; }
.access-heading { max-width: 650px; margin: 0 auto 30px; text-align: center; }
.access-heading h1 { margin-top: 8px; font-size: clamp(38px, 5vw, 54px); }
.access-heading > p:last-child { margin: 14px auto 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.access-grid .auth-card { display: flex; flex-direction: column; }
.access-grid .auth-form { margin-top: auto; padding-top: 28px; }
.member-auth-card { border-color: #dbc66f; background: #fffdf5; }
.member-lock { color: var(--accent-strong); background: var(--accent-soft); }
.access-back-link { display: block; width: fit-content; margin: 26px auto 0; }

.toolkits-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}
.toolkits-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.toolkits-heading h1 { font-size: clamp(40px, 5vw, 58px); }
.toolkits-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.toolkit-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.toolkit-access-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.toolkit-access-card:hover { transform: translateY(-2px); border-color: #d0b75d; box-shadow: var(--shadow-lg); }
.toolkit-access-card .admin-tool-icon { width: 50px; height: 50px; }
.toolkit-access-card > span:nth-child(2) { display: grid; gap: 7px; }
.toolkit-access-card small { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.toolkit-access-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.08; }
.toolkit-access-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.toolkit-access-card > span:last-child { color: var(--accent); font-size: 20px; }

@media (max-width: 760px) {
  .auth-shell { padding: 34px 0; }
  .access-shell { width: calc(100% - 24px); }
  .access-grid { grid-template-columns: 1fr; }
  .toolkits-shell { width: calc(100% - 24px); padding-top: 32px; }
  .toolkits-heading { align-items: flex-start; flex-direction: column; }
  .toolkit-access-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-intro h1 { font-size: 34px; }
  .access-heading h1 { font-size: 35px; }
  .auth-intro h2 { font-size: 29px; }
  .toolkit-access-card { grid-template-columns: 44px 1fr; min-height: 0; padding: 22px 18px; }
  .toolkit-access-card .admin-tool-icon { width: 44px; height: 44px; }
  .toolkit-access-card > span:last-child { display: none; }
}

/* Financial management */
.finance-page { background: var(--canvas); }
.finance-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.finance-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 25px; }
.finance-heading h1 { font-size: clamp(38px, 5vw, 58px); }
.finance-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.finance-tabs { display: flex; gap: 5px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.finance-tabs button { flex: 1; min-height: 40px; border: 0; color: var(--muted); background: transparent; box-shadow: none; }
.finance-tabs button.is-active { color: #fff; background: var(--ink); }
.finance-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.finance-stat { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.finance-stat span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.finance-stat strong { font-family: Georgia, serif; font-size: 25px; }
.workflow-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--line);
}
.workflow-guide > div { min-height: 125px; display: grid; align-content: start; gap: 6px; padding: 22px; background: #fffdf5; }
.workflow-guide span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent-strong); font-size: 10px; font-weight: 900; }
.workflow-guide strong { font-family: Georgia, serif; font-size: 17px; }
.workflow-guide small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.finance-table-wrap { padding: 24px; overflow-x: auto; }
.finance-table-wrap > h2 { margin-bottom: 18px; font-family: Georgia, serif; font-size: 25px; }
.table-intro { margin: -9px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.finance-table { min-width: 650px; }
.finance-tr { display: grid; grid-template-columns: 1.1fr 1.4fr .9fr .8fr 1fr; gap: 14px; align-items: center; padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.finance-tr > span { min-width: 0; }
.finance-tr small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.finance-th { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.member-row { grid-template-columns: .7fr 1.2fr 1.5fr .6fr; }
.finance-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.finance-actions a, .finance-actions button { min-height: 30px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-strong); background: #fff; box-shadow: none; font-size: 9px; font-weight: 900; text-decoration: none; }
.finance-actions button.danger { color: var(--danger); }
.finance-two-column { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 18px; align-items: start; }
.finance-form { display: grid; gap: 14px; padding: 24px; }
.finance-form h2 { margin-bottom: 4px; font-family: Georgia, serif; font-size: 25px; }
.finance-form-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.finance-form-heading button { min-height: 32px; padding: 0 10px; font-size: 9px; }
.finance-form label > small { margin-left: 4px; color: var(--muted); font-size: 8px; font-weight: 500; text-transform: none; }
#member-password-help { display: block; margin: 7px 0 0; line-height: 1.45; }
.finance-form textarea { min-height: 75px; }
.authorization-fields { display: grid; gap: 12px; margin: 2px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-soft); }
.authorization-fields legend { padding: 0 6px; color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.authorization-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.authorization-note strong { color: var(--ink-soft); }
.invoice-item-builder { display: grid; gap: 10px; margin: 2px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-soft); }
.invoice-item-builder legend { padding: 0 6px; color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.invoice-item-head, .finance-invoice-item { display: grid; grid-template-columns: minmax(170px,2fr) minmax(80px,.65fr) minmax(115px,1fr) auto; gap: 8px; align-items: end; }
.invoice-item-head { padding: 0 2px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.finance-invoice-item { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.finance-invoice-item label span { display: none; }
.finance-invoice-item input { min-width: 0; }
.remove-finance-item { min-height: 38px; padding: 7px 9px; font-size: 8px; }
.invoice-item-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 2px; }
.invoice-item-footer button { min-height: 36px; padding: 7px 12px; }
.invoice-item-footer strong { color: var(--ink); font-size: 11px; white-space: nowrap; }
#finance-invoices .finance-two-column { grid-template-columns: minmax(500px,.9fr) minmax(0,1.1fr); }
.report-controls { display: flex; gap: 12px; align-items: flex-end; padding: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.report-controls label { min-width: 170px; }
.report-sheet { min-height: 400px; padding: 34px; }
.report-title { display: flex; justify-content: space-between; align-items: end; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.report-title h2 { font-family: Georgia, serif; font-size: 30px; }
.compact-heading { margin-top: 34px; margin-bottom: 14px; }
.compact-heading h2 { font-family: Georgia, serif; font-size: 28px; }
.transaction-amount { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compact-action { min-height: 30px; padding: 5px 9px; font-size: 9px; }
.empty-finance { padding: 35px; color: var(--muted); text-align: center; }
.member-invoice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.member-invoice-card { padding: 25px; }
.invoice-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.invoice-card-head small { color: var(--accent); font-size: 9px; font-weight: 900; }
.invoice-card-head h2 { margin-top: 5px; font-family: Georgia, serif; font-size: 25px; }
.invoice-card-meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin: 20px 0; padding: 14px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.invoice-card-meta strong { color: var(--ink); font-size: 15px; }
.member-invoice-card ul { display: grid; gap: 10px; padding: 0; margin: 0 0 20px; list-style: none; }
.member-invoice-card li { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.member-workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; margin-bottom: 20px; overflow: hidden; background: var(--line); }
.member-workflow > span { display: flex; gap: 9px; align-items: center; padding: 15px; color: var(--ink-soft); background: #fffdf5; font-size: 10px; font-weight: 800; }
.member-workflow strong { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--accent-strong); font-size: 9px; }
.member-invoice-guidance { margin: 15px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.member-document-actions { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.member-document-actions .button-link { min-height: 36px; padding-inline: 14px; }
.secondary-link { color: var(--accent-strong); background: #fff; border: 1px solid var(--line-strong); }
.proof-form { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-note { padding: 13px; border-radius: 9px; color: #72551f; background: var(--gold-soft); font-size: 10px; }
.button-link { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: var(--accent); font-size: 11px; font-weight: 900; text-decoration: none; }
.status-proof_submitted { color: #72551f; background: var(--gold-soft); }
.status-issued { color: var(--accent-strong); background: var(--accent-soft); }

@media (max-width: 860px) {
  .finance-shell { width: calc(100% - 24px); padding-top: 28px; }
  .finance-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .finance-two-column { grid-template-columns: 1fr; }
  #finance-invoices .finance-two-column { grid-template-columns: 1fr; }
  .member-invoice-grid { grid-template-columns: 1fr; }
  .workflow-guide, .member-workflow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .invoice-item-head { display: none; }
  .finance-invoice-item { grid-template-columns: 1fr 1fr; }
  .finance-invoice-item label:first-child { grid-column: 1 / -1; }
  .finance-invoice-item label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 800; }
  .remove-finance-item { grid-column: 1 / -1; }
  .invoice-item-footer { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
  .finance-heading { align-items: flex-start; flex-direction: column; }
  .finance-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .finance-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .finance-stat { padding: 16px; }
  .finance-stat strong { font-size: 19px; }
  .invoice-card-meta { grid-template-columns: 1fr 1fr; }
  .invoice-card-meta strong { grid-column: 1 / -1; }
  .report-sheet { padding: 20px 14px; }
  .workflow-guide, .member-workflow { grid-template-columns: 1fr; }
  .workflow-guide > div { min-height: 0; }
  .member-document-actions { align-items: stretch; flex-direction: column; }
}

@media print {
  .finance-page .site-strip, .finance-page .finance-heading, .finance-page .finance-tabs, .finance-page #finance-message, .report-controls { display: none !important; }
  .finance-shell { width: 100%; padding: 0; }
  .finance-panel { display: none !important; }
  #finance-reports { display: block !important; }
  .report-sheet { border: 0; box-shadow: none; }
}

@media (max-width: 1050px) {
  .invoice-workspace { grid-template-columns: minmax(0, 800px) 250px; gap: 16px; }
  .invoice-editor { padding: 42px 38px; }
  .document-parties { grid-template-columns: 1fr 1fr; }
  .document-meta { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .invoice-shell { width: min(calc(100% - 20px), 720px); }
  .invoice-topbar { align-items: stretch; flex-direction: column; }
  .invoice-workspace { grid-template-columns: 1fr; }
  .invoice-sidebar { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; }
  .sidebar-primary h1 { font-size: 27px; }
  .invoice-editor { min-height: 0; }
}
@media (max-width: 620px) {
  .invoice-sidebar { grid-template-columns: 1fr; }
  .invoice-editor { padding: 28px 18px; }
  .document-heading { align-items: flex-end; }
  .document-type > span { font-size: 31px; }
  .document-logo { width: 70px; height: 58px; }
  .business-name-field input { font-size: 17px; }
  .document-parties { grid-template-columns: 1fr; gap: 20px; }
  .document-meta { grid-column: auto; grid-template-columns: 1fr; }
  .item-table-labels { display: none; }
  .invoice-items { gap: 10px; }
  .invoice-items .item-row {
    grid-template-columns: 1fr 1fr 34px;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--wash);
  }
  .invoice-items .item-field-label { display: inline; }
  .invoice-items .item-row label:first-child { grid-column: 1 / -1; }
  .invoice-items .item-total-wrap { display: grid; }
  .invoice-items .item-row .remove { grid-column: 3; grid-row: 2; }
  .document-bottom { grid-template-columns: 1fr; gap: 28px; }
  .document-signature { margin-top: 50px; }
}

@media print {
  .site-strip, .invoice-topbar, .invoice-sidebar { display: none !important; }
  .invoice-shell { width: 100%; padding: 0; }
  .invoice-workspace { display: block; }
  .invoice-editor { min-height: 0; padding: 0; border: 0; box-shadow: none; }
  .add-line-button, .item-row .remove { display: none !important; }
}

/* Sample receipt format alignment */
.invoice-editor {
  min-height: 1110px;
  padding: 36px 38px 70px;
}
.document-heading {
  min-height: 205px;
  padding: 0 4px;
}
.document-logo {
  width: 92px;
  height: 112px;
  margin-bottom: 8px;
}
.business-name-field input {
  width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.document-type { padding: 7px 18px 0 0; }
.document-type > span {
  color: #333;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: .01em;
}
.document-type label {
  gap: 5px;
  color: #777;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.document-type strong { min-width: 0; color: #777; font-size: 15px; font-weight: 400; }
.document-parties {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 55px;
  min-height: 185px;
  padding: 8px 10px 25px;
  border-top: 0;
  align-items: start;
}
.document-label {
  margin-bottom: 5px;
  color: #777;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.party-block .plain-field.prominent input { color: #333; font-size: 14px; font-weight: 900; }
.party-block .plain-field input { font-size: 11px; }
.document-meta { gap: 5px; padding-top: 0; }
.document-meta label {
  grid-template-columns: 105px 1fr;
  gap: 10px;
  color: #777;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  text-align: right;
}
.document-meta input, .document-meta select {
  border-color: transparent;
  color: #333;
  background: transparent;
  font-size: 12px;
  text-align: right;
}
.document-meta input:hover, .document-meta select:hover { border-color: var(--line); }
.balance-due-row {
  display: grid;
  grid-template-columns: 1fr 135px;
  gap: 18px;
  align-items: center;
  margin-top: 5px;
  padding: 9px 13px;
  border-radius: 6px;
  color: #333;
  background: #f1f1f1;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}
.balance-due-row strong { font-size: 14px; }
.item-table-labels {
  grid-template-columns: minmax(180px, 1fr) 90px 130px 130px 30px;
  padding: 9px 14px;
  border-radius: 5px;
  background: #333;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.item-table-labels span:not(:first-child) { text-align: right; }
.invoice-items .item-row {
  grid-template-columns: minmax(180px, 1fr) 90px 130px 130px 30px;
  min-height: 58px;
  padding: 8px 14px;
}
.invoice-items .item-description { font-weight: 900; }
.invoice-items .item-quantity, .invoice-items .item-price { text-align: right; }
.invoice-items .item-total { font-size: 12px; font-weight: 400; }
.document-bottom {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  padding: 62px 18px 0;
}
.document-notes { opacity: .8; }
.document-totals { gap: 16px; }
.document-totals > div, .document-totals > label { color: #777; font-size: 13px; }
.document-totals strong { font-weight: 400; }
.document-grand-total {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #777 !important;
  font-size: 13px !important;
  font-weight: 400;
}
.document-grand-total strong { color: #333; font-size: 13px; }
.amount-paid-row strong { color: #333; }
.sidebar-details { border-top: 1px solid var(--line); padding-top: 14px; }
.sidebar-details summary { cursor: pointer; color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.sidebar-details label { margin-top: 10px; font-size: 9px; }
.sidebar-details input { min-height: 36px; font-size: 10px; }

@media (max-width: 1050px) {
  .document-parties { grid-template-columns: minmax(0, 1fr) 320px; }
  .document-meta { grid-column: auto; grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .document-heading { min-height: 175px; }
  .document-logo { width: 70px; height: 86px; }
  .document-type { padding-right: 0; }
  .document-type > span { font-size: 30px; }
  .document-parties { grid-template-columns: 1fr; min-height: 0; gap: 22px; }
  .balance-due-row { grid-template-columns: 1fr auto; }
  .document-bottom { grid-template-columns: 1fr; padding: 35px 4px 0; }
}

/* Public one-page association site */
.public-home {
  background: #fffdf7;
}
.public-home::before { display: none; }
.public-site-strip {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 247, .97);
  backdrop-filter: blur(12px);
}
.public-site-strip .site-strip-inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 76px;
}
.public-site-strip .site-identity strong { font-size: 13px; }
.public-site-strip .site-identity small { font-size: 9px; }
.public-anchor-nav a { letter-spacing: .02em; }
.public-site-main { position: relative; z-index: 1; }
.public-landing {
  width: min(1320px, calc(100% - 48px));
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 70px;
  align-items: center;
  margin: 0 auto;
  padding: 86px 0 100px;
}
.public-landing-copy { position: relative; min-width: 0; }
.public-landing-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  top: 50%;
  right: 5%;
  border-radius: 50%;
  background: #fff1ad;
  transform: translateY(-50%);
}
.public-landing h1 {
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(64px, 8.4vw, 126px);
  line-height: .8;
  letter-spacing: -.065em;
}
.public-landing h1 span {
  color: var(--accent);
  font-size: .66em;
  letter-spacing: -.045em;
}
.public-landing-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 35px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.public-landing .hero-actions { margin-top: 34px; }
.public-landing .public-next-event {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  border: 0;
  border-radius: 0;
  color: #fffdf7;
  background: var(--ink);
  box-shadow: 22px 22px 0 #f2d66d;
}
.public-landing .public-next-event .eyebrow { color: #f2d66d; }
.public-landing .public-next-date {
  width: 94px;
  height: 100px;
  margin: 5px 0 32px;
  border-color: rgba(255,255,255,.2);
  color: var(--ink);
  background: #fffdf7;
}
.public-landing .public-next-event h2 {
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.public-landing .public-next-event > p:not(.eyebrow) { color: rgba(255,255,255,.67); }
.public-landing .public-next-event > a { color: #f2d66d; }

.public-section {
  scroll-margin-top: 76px;
  padding: 110px max(24px, calc((100% - 1320px) / 2));
}
.public-section-heading {
  display: grid;
  grid-template-columns: 72px minmax(260px, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: end;
  margin-bottom: 65px;
}
.public-section-heading.compact { margin-bottom: 45px; }
.public-section-number {
  align-self: start;
  margin: 5px 0 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}
.public-section-heading h2 {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.public-section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.public-about { background: #f8e89e; }
.public-aim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(96,70,12,.3);
  border-bottom: 1px solid rgba(96,70,12,.3);
}
.public-aim-grid article { min-height: 250px; padding: 30px 28px; border-right: 1px solid rgba(96,70,12,.3); }
.public-aim-grid article:last-child { border-right: 0; }
.public-aim-grid span { color: var(--accent); font-family: Georgia, serif; font-size: 16px; }
.public-aim-grid h3 { margin-top: 55px; font-family: Georgia, serif; font-size: 24px; }
.public-aim-grid p { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.public-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 50px;
}
.public-structure-grid article { padding: 30px; background: rgba(255,255,255,.45); }
.public-structure-grid small, .public-council-grid span, .public-document-grid small {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.public-structure-grid h3 { margin-top: 26px; font-family: Georgia, serif; font-size: 25px; }
.public-structure-grid p { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }

.public-events { background: #fffdf7; }
.public-events .home-event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.public-events .home-event-card {
  min-height: 220px;
  grid-template-columns: auto 1fr;
  align-content: start;
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
}
.public-events .home-event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.public-events .public-section-link { margin-top: 32px; }

.public-gallery { color: #fffdf7; background: var(--ink); }
.public-gallery .eyebrow, .public-gallery .public-section-number { color: #f2d66d; }
.public-gallery .public-section-intro { color: rgba(255,255,255,.62); }
.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.gallery-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(52,44,24,.05), rgba(52,44,24,.72)),
    repeating-linear-gradient(135deg, #d8b94e 0, #d8b94e 16px, #e6ce76 16px, #e6ce76 32px);
}
.gallery-placeholder::before {
  content: "+";
  position: absolute;
  top: 25px;
  right: 27px;
  color: rgba(255,255,255,.8);
  font-size: 28px;
  font-weight: 200;
}
.gallery-placeholder span { font-family: Georgia, serif; font-size: 25px; }
.gallery-placeholder small { margin-top: 6px; color: rgba(255,255,255,.65); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.public-council { background: #f8e89e; }
.public-council-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.public-council-grid article { min-height: 270px; display: flex; flex-direction: column; padding: 38px; background: #fffdf7; }
.public-council-grid h3 { margin-top: 60px; font-family: Georgia, serif; font-size: 32px; }
.public-council-grid p { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.public-council-grid small { margin-top: auto; color: var(--accent); font-weight: 800; }

.public-documents { background: #fffdf7; }
.public-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.public-document-grid a { min-height: 230px; display: flex; flex-direction: column; padding: 34px; border-right: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.public-document-grid a:last-child { border-right: 0; }
.public-document-grid a:hover { background: var(--accent-soft); }
.public-document-grid h3 { max-width: 270px; margin-top: 48px; font-family: Georgia, serif; font-size: 26px; }
.public-document-grid span { margin-top: auto; color: var(--accent); font-size: 10px; font-weight: 900; }

.public-contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 90px;
  color: #fffdf7;
  background: var(--accent-strong);
}
.public-contact .eyebrow { color: #f2d66d; }
.public-contact h2 { font-family: Georgia, serif; font-size: clamp(39px, 5vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.public-contact-details { display: grid; gap: 0; }
.public-contact-details div { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.public-contact-details small { color: #f2d66d; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.public-contact-details strong { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.public-footer {
  min-height: 105px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding: 25px max(24px, calc((100% - 1320px) / 2));
  color: var(--muted);
  background: #fffdf7;
  font-size: 10px;
}
.public-footer strong { color: var(--ink); font-size: 12px; }
.public-footer a { color: var(--accent-strong); font-weight: 900; text-decoration: none; }

@media (max-width: 1050px) {
  .public-site-strip .site-strip-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .public-anchor-nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .public-landing { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 55px; padding-top: 70px; }
  .public-landing-copy::after { right: 2%; }
  .public-landing .public-next-event { width: min(100%, 600px); max-width: 100%; min-height: 340px; }
  .public-section { scroll-margin-top: 120px; padding-block: 85px; }
  .public-section-heading { grid-template-columns: 50px 1fr; }
  .public-section-intro { grid-column: 2; max-width: 650px; }
  .public-aim-grid { grid-template-columns: repeat(2, 1fr); }
  .public-aim-grid article:nth-child(2) { border-right: 0; }
  .public-aim-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(96,70,12,.3); }
  .public-events .home-event-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .public-home { width: 100%; overflow-x: hidden; }
  .public-site-strip .site-strip-inner { width: calc(100% - 28px); }
  .public-site-strip .site-identity strong { font-size: 11px; }
  .public-site-strip .site-identity small { display: block; }
  .public-site-strip nav { display: flex; grid-template-columns: none; }
  .public-site-strip nav a { padding: 8px 10px; font-size: 9px; }
  .public-site-strip nav a.public-login-link { margin-left: 2px; }
  .public-landing { width: 100%; max-width: 100%; margin: 0; padding: 50px 14px 75px; }
  .public-landing h1 { font-size: clamp(55px, 19vw, 82px); }
  .public-landing h1 span { display: inline-block; font-size: .55em; line-height: 1.05; }
  .public-landing-copy::after { width: 210px; height: 210px; top: 25%; }
  .public-landing-copy > p:not(.eyebrow) { font-size: 13px; }
  .public-landing .hero-actions { align-items: stretch; flex-direction: column; }
  .public-landing .hero-actions a { justify-content: center; }
  .public-landing .public-next-event { min-height: 320px; padding: 30px 25px; box-shadow: 10px 10px 0 #f2d66d; }
  .public-landing .public-next-event h2 { font-size: 25px; }
  .public-section { padding: 68px 20px; }
  .public-section-heading { grid-template-columns: 35px minmax(0, 1fr); gap: 16px; margin-bottom: 42px; }
  .public-section-heading h2 { font-size: 35px; }
  .public-section-intro { grid-column: 1 / -1; }
  .public-aim-grid, .public-structure-grid, .public-council-grid, .public-document-grid { grid-template-columns: 1fr; }
  .public-aim-grid article { min-height: 205px; border-right: 0; border-bottom: 1px solid rgba(96,70,12,.3); }
  .public-aim-grid article:last-child { border-bottom: 0; }
  .public-aim-grid h3 { margin-top: 35px; }
  .public-structure-grid { gap: 10px; }
  .public-events .home-event-card { padding: 23px 18px; }
  .public-gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
  .gallery-wide, .gallery-tall { grid-column: auto; grid-row: auto; }
  .public-council-grid article { min-height: 245px; padding: 28px; }
  .public-document-grid a { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .public-document-grid a:last-child { border-bottom: 0; }
  .public-contact { grid-template-columns: 1fr; gap: 50px; }
  .public-contact h2 { font-size: 39px; }
  .public-footer { grid-template-columns: 1fr auto; }
  .public-footer span { display: none; }
}

/* Reference-inspired public palette and transparent crest treatment */
.site-mark {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.site-mark img {
  width: 38px !important;
  height: 42px !important;
  max-width: 38px !important;
  max-height: 42px !important;
  background: transparent;
}
.public-home {
  --reference-teal: #4dcac7;
  --reference-coral: #f0817d;
  --reference-yellow: #ecbf57;
  --reference-charcoal: #414141;
}
.public-home .public-site-strip { border-bottom-color: rgba(65, 65, 65, .14); }
.public-home .public-anchor-nav a:nth-child(1),
.public-home .public-anchor-nav a:nth-child(6) { color: #218f8d; }
.public-home .public-anchor-nav a:nth-child(2),
.public-home .public-anchor-nav a:nth-child(5) { color: #a67812; }
.public-home .public-anchor-nav a:nth-child(3),
.public-home .public-anchor-nav a:nth-child(4) { color: #c94f4a; }
.public-home .public-anchor-nav a:hover { color: var(--reference-charcoal); background: rgba(77, 202, 199, .18); }
.public-home .public-anchor-nav .public-login-link,
.public-home .public-anchor-nav .public-login-link:hover { color: #fff; background: var(--reference-charcoal); }
.public-landing-copy { isolation: isolate; }
.public-hero-crest {
  position: absolute;
  z-index: -1;
  width: min(43vw, 500px);
  height: min(48vw, 560px);
  top: 48%;
  right: -4%;
  object-fit: contain;
  opacity: .12;
  transform: translateY(-50%);
  pointer-events: none;
}
.public-landing-copy::after { background: rgba(77, 202, 199, .27); }
.public-landing h1 span { color: #c95e58; }
.public-landing .hero-primary { background: var(--reference-charcoal); border-color: var(--reference-charcoal); }
.public-landing .hero-primary:hover { background: #292929; }
.public-landing .public-next-event { background: var(--reference-charcoal); box-shadow: 22px 22px 0 var(--reference-coral); }
.public-landing .public-next-event .eyebrow,
.public-landing .public-next-event > a { color: #f6d577; }
.public-about { background: #ddf4f2; }
.public-about .eyebrow,
.public-about .public-section-number,
.public-about .public-aim-grid span { color: #218f8d; }
.public-about .public-aim-grid { border-color: rgba(33, 143, 141, .35); }
.public-about .public-aim-grid article { border-color: rgba(33, 143, 141, .35); }
.public-about .public-structure-grid article { background: rgba(255, 255, 255, .62); }
.public-events { background: #fff8e7; }
.public-events .eyebrow,
.public-events .public-section-number { color: #a67812; }
.public-events .home-event-card { border-top: 4px solid var(--reference-yellow); }
.public-gallery { color: #fff; background: var(--reference-coral); }
.public-gallery .eyebrow,
.public-gallery .public-section-number { color: #fff4c9; }
.public-gallery .public-section-intro { color: rgba(255, 255, 255, .84); }
.gallery-placeholder {
  background:
    linear-gradient(145deg, rgba(65, 65, 65, .04), rgba(65, 65, 65, .68)),
    repeating-linear-gradient(135deg, #4dcac7 0, #4dcac7 16px, #77d9d6 16px, #77d9d6 32px);
}
.gallery-placeholder:nth-child(2),
.gallery-placeholder:nth-child(4) {
  background:
    linear-gradient(145deg, rgba(65, 65, 65, .04), rgba(65, 65, 65, .68)),
    repeating-linear-gradient(135deg, #d8aa42 0, #d8aa42 16px, #ecbf57 16px, #ecbf57 32px);
}
.public-council { background: #f4d77f; }
.public-council .eyebrow,
.public-council .public-section-number { color: #9a3f3b; }
.public-documents { background: #e7f7f6; }
.public-documents .eyebrow,
.public-documents .public-section-number { color: #218f8d; }
.public-document-grid a:hover { background: rgba(77, 202, 199, .22); }
.public-contact { background: var(--reference-charcoal); }
.public-contact .eyebrow,
.public-contact-details small { color: var(--reference-yellow); }

@media (max-width: 700px) {
  .public-hero-crest {
    width: 285px;
    height: 320px;
    top: 38%;
    right: -70px;
    opacity: .1;
  }
  .public-landing .public-next-event { box-shadow: 10px 10px 0 var(--reference-coral); }
}

/* Shared subpage palette synchronized with the public homepage */
body:not(.public-home) {
  background:
    radial-gradient(circle at 4% 0, rgba(77, 202, 199, .19), transparent 25rem),
    radial-gradient(circle at 100% 18%, rgba(240, 129, 125, .13), transparent 22rem),
    linear-gradient(145deg, #fffdf7 0%, #fff8e7 100%);
}
body:not(.public-home)::before {
  opacity: .2;
  background-image: radial-gradient(rgba(65, 65, 65, .1) .6px, transparent .6px);
}
body:not(.public-home) .site-strip {
  border-bottom-color: rgba(65, 65, 65, .14);
  background: rgba(255, 253, 247, .97);
}
body:not(.public-home) .site-strip nav a:hover,
body:not(.public-home) .site-strip nav a.is-current {
  color: #237f7d;
  background: #ddf4f2;
}
body:not(.public-home) .site-strip nav a.public-login-link,
body:not(.public-home) .site-strip nav a.public-login-link:hover,
body:not(.public-home) .site-strip nav a.public-login-link.is-current {
  color: #fff;
  background: #414141;
}
body:not(.public-home) .eyebrow { color: #237f7d; }
body:not(.public-home) .service-badge {
  border-color: rgba(77, 202, 199, .5);
  color: #237f7d;
  background: #ddf4f2;
}
body:not(.public-home) .service-notice {
  border-color: rgba(236, 191, 87, .58);
  background: #fff4d4;
}
body:not(.public-home) .service-notice p { color: #675a3f; }
body:not(.public-home) .schedule-highlight {
  color: #fff;
  background: linear-gradient(135deg, #414141, #565656);
  box-shadow: 14px 14px 0 #f0817d;
}
body:not(.public-home) .schedule-highlight .eyebrow,
body:not(.public-home) .schedule-highlight p:last-child,
body:not(.public-home) .schedule-highlight .date-block span { color: #f6d577; }
body:not(.public-home) .schedule-highlight .date-block { border-left-color: rgba(255, 255, 255, .22); }
body:not(.public-home) .schedule-deadline,
body:not(.public-home) .schedule-deadline strong { color: #9a3f3b !important; }
body:not(.public-home) .upload-drop { border-color: #4dcac7; background: #f1fbfa; }
body:not(.public-home) .file-mark { color: #b94f4a; background: #fbe4e2; }

.auth-page,
.toolkits-page,
.finance-page { background: transparent; }
.auth-card { border-top: 5px solid #f0817d; }
.member-auth-card { border-color: #b9d5ce; border-top-color: #4dcac7; background: #f7fdfc; }
.admin-auth-card { border-top-color: #f0817d; }
.auth-lock { background: #414141; }
.member-lock { color: #237f7d; background: #ddf4f2; }
.admin-label { color: #7f5d14; background: #fff0c7; }
.toolkit-access-card { border-top: 4px solid #4dcac7; }
.toolkit-access-card:nth-child(2) { border-top-color: #f0817d; }
.toolkit-access-card:nth-child(3) { border-top-color: #ecbf57; }
.toolkit-access-card:hover { border-color: #4dcac7; }
.toolkit-access-card .admin-tool-icon { background: #237f7d; }
.toolkit-access-card .admin-tool-icon.muted { color: #9a3f3b; background: #fbe4e2; }

.finance-stat { border-top: 4px solid #4dcac7; }
.finance-stat:nth-child(2) { border-top-color: #f0817d; }
.finance-stat:nth-child(3) { border-top-color: #ecbf57; }
.finance-stat:nth-child(4) { border-top-color: #414141; }
.finance-tabs button.is-active,
.tab.is-active { background: #414141; }
.workflow-guide > div,
.member-workflow > span { background: #f7fdfc; }
.workflow-guide span,
.member-workflow strong { background: #237f7d; }
.review-note,
.sidebar-tip { color: #675a3f; background: #fff0c7; }

.invoice-page {
  background:
    radial-gradient(circle at 0 0, rgba(77, 202, 199, .17), transparent 25rem),
    linear-gradient(145deg, #fffdf7, #fff8e7);
}
.invoice-sidebar > section:first-child { border-top: 4px solid #4dcac7; }
.invoice-sidebar > section:nth-child(2) { border-top: 4px solid #f0817d; }
.invoice-editor { border-top: 5px solid #ecbf57; }
.invoice-editor .document-logo img { background: #fff; }

.coming-card { border-top: 5px solid #f0817d; }
.coming-card::after { border-color: rgba(77, 202, 199, .18); }

@media print {
  .invoice-editor { border-top: 0; }
}

/* Reduced-color hierarchy: charcoal + teal, with pale yellow as the association accent */
.public-home .public-anchor-nav a:nth-child(n) { color: #5f615d; }
.public-home .public-anchor-nav a:hover,
.public-home .public-anchor-nav a.is-current {
  color: #237f7d;
  background: #ddf4f2;
}
.public-home .public-anchor-nav a.public-login-link,
.public-home .public-anchor-nav a.public-login-link:hover {
  color: #fff;
  background: #414141;
}
.public-landing-copy::after { background: rgba(236, 191, 87, .28); }
.public-landing h1 span { color: #a67812; }
.public-landing .public-next-event { box-shadow: 22px 22px 0 #ecbf57; }
.public-about { background: #fff4d4; }
.public-about .eyebrow,
.public-about .public-section-number,
.public-about .public-aim-grid span { color: #237f7d; }
.public-about .public-aim-grid,
.public-about .public-aim-grid article { border-color: rgba(65, 65, 65, .2); }
.public-events { background: #fffdf7; }
.public-gallery { color: #fff; background: #414141; }
.public-gallery .eyebrow,
.public-gallery .public-section-number { color: #f6d577; }
.public-gallery .public-section-intro { color: rgba(255, 255, 255, .7); }
.gallery-placeholder,
.gallery-placeholder:nth-child(2),
.gallery-placeholder:nth-child(4) {
  background:
    linear-gradient(145deg, rgba(65, 65, 65, .08), rgba(65, 65, 65, .72)),
    repeating-linear-gradient(135deg, #cda747 0, #cda747 16px, #ddc270 16px, #ddc270 32px);
}
.public-council { background: #f4e4aa; }
.public-council .eyebrow,
.public-council .public-section-number { color: #237f7d; }
.public-documents { background: #fffdf7; }
.public-documents .eyebrow,
.public-documents .public-section-number { color: #237f7d; }

/* Administrator portal modules */
.toolkit-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-section { margin-top: 22px; }
.management-grid, .website-management-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.website-management-grid #site-content-fields { display: grid; gap: 14px; }
.publishing-links { padding: 26px; }
.publishing-links > p { margin: 8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.publishing-links a { display: grid; gap: 6px; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.publishing-links a span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.calculator-result { display: grid; gap: 7px; padding: 24px; border-radius: 14px; color: #fff; background: var(--ink); }
.calculator-result span, .calculator-result small { color: rgba(255,255,255,.68); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.calculator-result strong { font-family: Georgia,serif; font-size: 38px; }
.member-document-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.7fr); gap: 22px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.member-document-card h3 { margin: 9px 0 5px; }
.member-document-card p, .member-document-card small { color: var(--muted); font-size: 10px; }
.member-document-card form { display: grid; gap: 7px; width: 100%; }
.finance-actions select { min-height: 30px; max-width: 130px; border-color: var(--line); }
@media (max-width: 820px) {
  .toolkit-access-grid, .management-grid, .website-management-grid { grid-template-columns: 1fr; }
  .member-document-card { grid-template-columns: 1fr; }
}

body:not(.public-home) {
  background:
    radial-gradient(circle at 4% 0, rgba(77, 202, 199, .13), transparent 25rem),
    linear-gradient(145deg, #fffdf7 0%, #fff8e7 100%);
}
body:not(.public-home) .schedule-highlight { box-shadow: 14px 14px 0 #ecbf57; }
.auth-card,
.admin-auth-card { border-top-color: #ecbf57; }
.member-auth-card { border-top-color: #4dcac7; }
.toolkit-access-card,
.toolkit-access-card:nth-child(2),
.toolkit-access-card:nth-child(3) { border-top-color: #4dcac7; }
.toolkit-access-card .admin-tool-icon.muted { color: #237f7d; background: #ddf4f2; }
.finance-stat,
.finance-stat:nth-child(2),
.finance-stat:nth-child(3),
.finance-stat:nth-child(4) { border-top-color: #4dcac7; }
.invoice-sidebar > section:first-child,
.invoice-sidebar > section:nth-child(2) { border-top-color: #4dcac7; }
.coming-card { border-top-color: #ecbf57; }

@media (max-width: 700px) {
  .public-landing .public-next-event { box-shadow: 10px 10px 0 #ecbf57; }
}

/* Unified administrator and member login */
.unified-access-shell { width: min(calc(100% - 32px), 560px); }
.unified-login-card { border-top-color: #4dcac7; }
.unified-login-card .auth-lock {
  width: 58px;
  height: 58px;
  color: #414141;
  background: #f4e4aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.unified-login-card .auth-form { margin-top: 26px; }
.unified-login-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}
.unified-login-help span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--muted);
  background: #fffdf7;
  font-size: 9px;
  text-align: center;
}
.unified-login-help strong { color: var(--ink); font-size: 10px; }

@media (max-width: 480px) {
  .unified-access-shell { width: calc(100% - 24px); }
  .unified-login-help { grid-template-columns: 1fr; }
}
