: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; }
}

.public-updates { color: var(--ink); background: #fffdf7; }
.public-updates .eyebrow,
.public-updates .public-section-number { color: #237f7d; }
.wordpress-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.wordpress-post-grid article { display: grid; align-content: start; gap: 10px; min-height: 240px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.wordpress-post-grid small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.wordpress-post-grid h3 { font-family: Georgia,serif; font-size: 24px; line-height: 1.15; }
.wordpress-post-grid p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.wordpress-post-grid a { align-self: end; color: var(--accent-strong); font-size: 10px; font-weight: 900; text-decoration: none; }
@media (max-width: 820px) { .wordpress-post-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); }

/* WordPress-managed gallery images retain the same readable overlay as the placeholders. */
.gallery-placeholder.has-image { background: #414141; }
.gallery-placeholder.has-image img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.8); }
.gallery-placeholder.has-image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(145deg, rgba(0,0,0,.06), rgba(0,0,0,.68)); }
.gallery-placeholder.has-image::before,
.gallery-placeholder.has-image span,
.gallery-placeholder.has-image small { z-index: 2; }

/* New Generation-inspired institutional layout: white space, green/orange identity, and editorial blocks. */
:root {
  --brand-green: #087d45;
  --brand-green-dark: #055c34;
  --brand-orange: #e87522;
  --brand-yellow: #f1c64b;
  --brand-paper: #ffffff;
  --brand-tint: #f2f7f3;
  --brand-tint-warm: #fff8e5;
  --brand-line: #e2e9e3;
  --ink: #2e302f;
  --ink-soft: #535855;
  --muted: #727773;
  --line: var(--brand-line);
  --line-strong: #bfd3c4;
  --paper: var(--brand-paper);
  --wash: #fafcf9;
  --canvas: #ffffff;
  --accent: var(--brand-green);
  --accent-strong: var(--brand-green-dark);
  --accent-soft: #e7f3ea;
  --gold: var(--brand-yellow);
  --gold-soft: #fff3c9;
  --radius-sm: 2px;
  --radius: 2px;
  --radius-lg: 2px;
  --shadow-sm: 0 8px 22px rgba(32, 61, 43, .06);
  --shadow-lg: 0 18px 45px rgba(32, 61, 43, .12);
}

html, body { background: #fff; }
body { color: var(--ink); background: #fff; }
body::before { display: none; }

/* Shared reference-style header */
.site-strip {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--brand-line);
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 12px rgba(25, 68, 40, .05);
}
.site-strip-inner {
  width: min(1260px, calc(100% - 48px));
  min-height: 84px;
  gap: 30px;
}
.site-identity { gap: 14px; }
.site-mark {
  width: 62px;
  height: 58px;
  min-width: 62px;
  max-width: 62px;
  min-height: 58px;
  max-height: 58px;
  padding: 3px;
  border: 1px solid var(--brand-line);
  border-radius: 0;
  background: #fff;
}
.site-mark img,
.site-mark img[alt] {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain;
  background: #fff;
}
.site-identity strong { color: var(--brand-green-dark); font-size: 14px; letter-spacing: -.01em; }
.site-identity small { color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.site-strip nav { gap: 0; }
.site-strip nav a {
  border-radius: 0;
  padding: 13px 14px;
  color: #4d514e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-strip nav a:hover,
.site-strip nav a.is-current {
  color: #fff;
  background: var(--brand-green);
}
.site-strip nav a.public-login-link,
.site-strip nav a.public-login-link:hover,
.site-strip nav a.public-login-link.is-current {
  margin-left: 10px;
  color: #fff;
  background: var(--brand-orange);
}
.logout-form button {
  min-height: 36px;
  border-radius: 0;
  border-color: var(--brand-line);
  color: var(--brand-green-dark);
  background: #fff;
  font-size: 10px;
}

/* Homepage */
.public-home { background: #fff; }
.public-home .public-site-strip { border-bottom-color: var(--brand-line); }
.public-home .public-anchor-nav a { color: #4d514e; }
.public-home .public-anchor-nav a:hover,
.public-home .public-anchor-nav a.is-current { color: #fff; background: var(--brand-green); }
.public-home .public-anchor-nav a.public-login-link,
.public-home .public-anchor-nav a.public-login-link:hover { background: var(--brand-orange); }
.public-hero-crest { display: none; }
.public-landing {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 585px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 72px;
  padding: 72px max(24px, calc((100% - 1260px) / 2)) 92px;
  background: linear-gradient(90deg, #fff 0%, #fff 58%, var(--brand-tint) 58%, var(--brand-tint) 100%);
}
.public-landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 5%;
  top: 12%;
  width: 340px;
  height: 340px;
  border: 22px solid rgba(232,117,34,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(8,125,69,.07), 0 0 0 42px rgba(241,198,75,.08);
}
.public-landing-copy { max-width: 760px; }
.public-landing-copy::after { display: none; }
.public-landing h1 {
  max-width: 720px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(54px, 7vw, 98px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.065em;
}
.public-landing h1 span {
  display: block;
  color: var(--brand-green);
  font-size: .72em;
  letter-spacing: -.045em;
}
.public-landing-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}
.public-landing .hero-actions { margin-top: 30px; }
.public-landing .public-next-event {
  position: relative;
  min-height: 360px;
  justify-content: flex-end;
  padding: 38px;
  border-radius: 0;
  background: var(--brand-green-dark);
  box-shadow: 17px 17px 0 var(--brand-orange);
  overflow: hidden;
}
.public-landing .public-next-event::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -65px;
  top: -55px;
  border: 16px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.06), 0 0 0 38px rgba(241,198,75,.1);
}
.public-landing .public-next-event .eyebrow,
.public-landing .public-next-event > a { color: var(--brand-yellow); }
.public-landing .public-next-date { margin-bottom: 27px; border-color: rgba(255,255,255,.26); }
.public-landing .public-next-event h2 { font-family: Arial, Helvetica, sans-serif; font-size: 27px; font-weight: 800; }
.public-landing .public-next-event > p:not(.eyebrow) { color: rgba(255,255,255,.72); }

.public-section {
  padding-block: 92px;
  border-top: 1px solid rgba(8,125,69,.12);
}
.public-section-heading { margin-bottom: 54px; }
.public-section-heading h2 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(34px, 4vw, 58px); font-weight: 800; }
.public-section-number { color: var(--brand-orange); font-weight: 800; }
.public-about { background: var(--brand-tint); }
.public-about .public-aim-grid { border-color: #cfe0d3; }
.public-about .public-aim-grid article { background: rgba(255,255,255,.74); border-color: #cfe0d3; }
.public-aim-grid h3,
.public-structure-grid h3,
.public-council-grid h3,
.public-document-grid h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 800; }
.public-aim-grid h3 { margin-top: 48px; font-size: 21px; }
.public-structure-grid article { border-top: 3px solid var(--brand-green); border-radius: 0; background: #fff; }
.public-structure-grid article:nth-child(2) { border-top-color: var(--brand-orange); }
.public-structure-grid article:nth-child(3) { border-top-color: var(--brand-yellow); }
.public-events { background: #fff; }
.public-events .home-event-card { border-top: 3px solid var(--brand-green); background: var(--brand-tint); }
.public-events .home-event-card:nth-child(2) { border-top-color: var(--brand-orange); }
.public-events .home-event-card:nth-child(3) { border-top-color: var(--brand-yellow); }
.public-updates { background: var(--brand-tint-warm); }
.public-updates .wordpress-post-grid article { border-top: 3px solid var(--brand-orange); border-radius: 0; box-shadow: none; }
.public-gallery { background: var(--brand-green-dark); }
.public-gallery .eyebrow,
.public-gallery .public-section-number { color: var(--brand-yellow); }
.public-gallery .gallery-placeholder { border: 1px solid rgba(255,255,255,.17); }
.public-council { background: var(--brand-tint-warm); }
.public-council-grid article { border-top: 3px solid var(--brand-green); border-radius: 0; }
.public-council-grid article:nth-child(2) { border-top-color: var(--brand-orange); }
.public-documents { background: #fff; }
.public-document-grid { border-color: #cfe0d3; }
.public-document-grid a { border-color: #cfe0d3; }
.public-document-grid a:hover { background: var(--brand-tint); }
.public-contact { background: var(--brand-green-dark); }
.public-contact .eyebrow,
.public-contact-details small { color: var(--brand-yellow); }
.public-footer { border-top: 1px solid #cfe0d3; background: #fff; }
.public-footer a { color: var(--brand-green); }

/* Public service pages */
.service-shell,
.finance-shell,
.toolkits-shell,
.auth-shell,
.invoice-shell {
  width: min(1260px, calc(100% - 48px));
  padding-top: 62px;
  padding-bottom: 92px;
}
.service-header,
.finance-heading,
.toolkits-heading {
  padding-bottom: 32px;
  border-bottom: 4px solid var(--brand-green);
}
.service-header h1,
.finance-heading h1,
.toolkits-heading h1,
.auth-heading h1 { font-family: Arial, Helvetica, sans-serif; font-weight: 800; letter-spacing: -.055em; }
.service-header .back-link { color: var(--brand-green-dark); }
.service-badge { border-radius: 0; border-color: #b9d7c1; background: var(--brand-tint); }
.service-badge strong { color: var(--brand-green); }
.service-notice { border-radius: 0; border-left: 4px solid var(--brand-orange); background: var(--brand-tint-warm); }
.service-panel,
.surface,
.receipt-paper {
  border-radius: 0;
  border-color: var(--brand-line);
  box-shadow: none;
  background: #fff;
}
.panel-heading { border-bottom-color: var(--brand-line); }
.panel-count { border-radius: 0; background: var(--brand-tint-warm); color: var(--brand-green-dark); }
.schedule-highlight {
  border-radius: 0;
  background: var(--brand-green-dark);
  box-shadow: 14px 14px 0 var(--brand-orange);
}
.schedule-highlight .eyebrow,
.schedule-highlight p:last-child,
.schedule-highlight .date-block span { color: var(--brand-yellow); }
.schedule-list .schedule-row { border-bottom-color: var(--brand-line); }
.document-list .document-row { border-bottom-color: var(--brand-line); }

/* Secure workspaces use the same visual language without changing their workflows. */
.finance-page .finance-tabs,
.invoice-page .tabs { border-radius: 0; box-shadow: none; background: #fff; }
.finance-tabs button.is-active,
.tab.is-active { border-radius: 0; background: var(--brand-green); }
.finance-stat,
.toolkit-access-card,
.auth-card,
.member-auth-card,
.admin-auth-card,
.invoice-editor { border-radius: 0; box-shadow: none; }
.finance-stat { border-top-color: var(--brand-green); }
.finance-stat:nth-child(2) { border-top-color: var(--brand-orange); }
.finance-stat:nth-child(3) { border-top-color: var(--brand-yellow); }
.finance-stat:nth-child(4) { border-top-color: var(--brand-green-dark); }
.toolkit-access-card { border-top-color: var(--brand-green); }
.toolkit-access-card:nth-child(2) { border-top-color: var(--brand-orange); }
.toolkit-access-card:nth-child(3) { border-top-color: var(--brand-yellow); }
.toolkit-access-card:hover { border-color: var(--brand-green); box-shadow: var(--shadow-sm); }
.toolkit-access-card .admin-tool-icon { border-radius: 0; background: var(--brand-green); }
.toolkit-access-card .admin-tool-icon.muted { color: var(--brand-orange); background: var(--brand-tint-warm); }
.auth-card { border-top: 5px solid var(--brand-green); }
.admin-auth-card { border-top-color: var(--brand-orange); }
.member-auth-card { border-color: #b9d7c1; }
.auth-lock { border-radius: 0; background: var(--brand-green-dark); }
.invoice-editor { border-top-color: var(--brand-orange); }

@media (max-width: 900px) {
  .site-strip-inner { min-height: 74px; flex-wrap: wrap; padding-block: 12px; }
  .site-strip nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .site-strip nav a { flex: 0 0 auto; }
  .public-landing { grid-template-columns: 1fr; gap: 52px; min-height: 0; background: linear-gradient(180deg, #fff 0%, #fff 56%, var(--brand-tint) 56%, var(--brand-tint) 100%); }
  .public-landing::before { top: 58%; right: 10%; width: 230px; height: 230px; }
  .public-landing .public-next-event { width: min(100%, 620px); }
  .service-shell, .finance-shell, .toolkits-shell, .auth-shell, .invoice-shell { width: min(100% - 32px, 720px); padding-top: 42px; }
  .service-header, .finance-heading, .toolkits-heading { align-items: flex-start; gap: 26px; }
}

@media (max-width: 560px) {
  .site-strip-inner { width: calc(100% - 28px); }
  .site-mark { width: 52px; height: 48px; min-width: 52px; max-width: 52px; min-height: 48px; max-height: 48px; }
  .site-mark img { width: 43px !important; height: 43px !important; max-width: 43px !important; max-height: 43px !important; }
  .site-identity strong { font-size: 12px; }
  .site-identity small { font-size: 8px; }
  .site-strip nav a { padding: 10px 11px; font-size: 9px; }
  .site-strip nav a.public-login-link { margin-left: 2px; }
  .public-landing { width: 100%; padding: 54px 20px 72px; }
  .public-landing h1 { font-size: clamp(48px, 15vw, 74px); }
  .public-landing .public-next-event { min-height: 320px; padding: 28px; box-shadow: 10px 10px 0 var(--brand-orange); }
  .public-section { padding: 68px 20px; }
  .public-section-heading { grid-template-columns: 34px minmax(0, 1fr); gap: 15px; }
  .public-section-heading h2 { font-size: 34px; }
  .public-section-intro { grid-column: 1 / -1; }
  .service-shell, .finance-shell, .toolkits-shell, .auth-shell, .invoice-shell { width: calc(100% - 24px); padding-top: 30px; }
  .service-header, .finance-heading, .toolkits-heading { padding-bottom: 24px; }
  .service-header h1, .finance-heading h1, .toolkits-heading h1 { font-size: 42px; }
}

/* Higher-specificity corrections for the legacy subpage palette. */
body:not(.public-home) {
  background: #fff;
}
body:not(.public-home)::before { display: none; }
body:not(.public-home) .site-strip nav a.is-current {
  color: #fff;
  background: var(--brand-green);
}
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: var(--brand-orange);
}
body:not(.public-home) .service-badge {
  border-color: #b9d7c1;
  color: var(--brand-green-dark);
  background: var(--brand-tint);
}
body:not(.public-home) .schedule-highlight {
  color: #fff;
  background: var(--brand-green-dark);
  box-shadow: 14px 14px 0 var(--brand-orange);
}
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: var(--brand-yellow); }
body:not(.public-home) .service-notice {
  border-color: #f2d286;
  border-left-color: var(--brand-orange);
  background: var(--brand-tint-warm);
}
body:not(.public-home) .upload-drop { border-color: #8fc5a0; background: var(--brand-tint); }
body:not(.public-home) .file-mark { color: var(--brand-orange); background: #fff0df; }
@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; }
}

/* Final reference-style overrides kept at the end so legacy compatibility rules cannot change the visual system. */
body:not(.public-home) {
  background: #fff;
}
body:not(.public-home)::before { display: none; }
body:not(.public-home) .site-strip nav a.is-current {
  color: #fff;
  background: var(--brand-green);
}
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: var(--brand-orange);
}
body:not(.public-home) .service-badge {
  border-color: #b9d7c1;
  color: var(--brand-green-dark);
  background: var(--brand-tint);
}
body:not(.public-home) .schedule-highlight {
  color: #fff;
  background: var(--brand-green-dark);
  box-shadow: 14px 14px 0 var(--brand-orange);
}
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: var(--brand-yellow); }
body:not(.public-home) .service-notice {
  border-color: #f2d286;
  border-left-color: var(--brand-orange);
  background: var(--brand-tint-warm);
}
.auth-card,
.unified-login-card { border-top-color: var(--brand-green); }
.unified-login-card .auth-lock { background: var(--brand-yellow); }
.toolkit-access-card,
.toolkit-access-card:nth-child(2),
.toolkit-access-card:nth-child(3) { border-top-color: var(--brand-green); }
.finance-stat,
.finance-stat:nth-child(2),
.finance-stat:nth-child(3),
.finance-stat:nth-child(4) { border-top-color: var(--brand-green); }
.invoice-sidebar > section:first-child,
.invoice-sidebar > section:nth-child(2) { border-top-color: var(--brand-green); }
.coming-card { border-top-color: var(--brand-orange); }

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

@media (max-width: 560px) {
  .site-strip nav { scrollbar-width: none; }
  .site-strip nav::-webkit-scrollbar { display: none; }
  .public-home .public-anchor-nav .public-login-link { order: -1; }
}

/* HKU SOConnect-inspired layout */
:root {
  --so-green: #005847;
  --so-green-deep: #004739;
  --so-olive: #cfceb0;
  --so-olive-light: #e8e7d8;
  --so-cream: #f7f7f2;
  --so-line: #dedfd7;
  --brand-green: var(--so-green);
  --brand-green-dark: var(--so-green-deep);
  --brand-orange: var(--so-olive);
  --brand-yellow: #e7e4c8;
  --brand-paper: #fff;
  --brand-tint: var(--so-cream);
  --brand-tint-warm: #f2f1e7;
  --brand-line: var(--so-line);
  --accent: var(--so-green);
  --accent-strong: var(--so-green-deep);
  --accent-soft: var(--so-olive-light);
  --gold: var(--so-olive);
  --gold-soft: #efeee0;
  --line: var(--so-line);
  --line-strong: #c9ccb9;
  --shadow-sm: 0 9px 24px rgba(0, 71, 57, .08);
  --shadow-lg: 0 18px 48px rgba(0, 71, 57, .14);
}

body { background: #fff; }
.eyebrow {
  color: var(--so-green);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  letter-spacing: .11em;
}
button {
  min-height: 42px;
  border-radius: 999px;
  border-color: var(--so-green);
  background: var(--so-green);
}
button:hover:not(:disabled) { border-color: var(--so-green-deep); background: var(--so-green-deep); }
button.secondary { border-color: var(--so-olive); color: var(--so-green); background: var(--so-olive-light); }
input, select, textarea { border-radius: 12px; }

/* Header and navigation */
.site-strip {
  border-top: 4px solid var(--so-olive);
  border-bottom: 0;
  box-shadow: 0 3px 18px rgba(0, 71, 57, .06);
  background: rgba(255,255,255,.985);
}
.site-strip-inner { width: min(1180px, calc(100% - 48px)); min-height: 86px; }
.site-mark {
  width: 52px;
  height: 54px;
  min-width: 52px;
  max-width: 52px;
  min-height: 54px;
  max-height: 54px;
  border: 0;
  background: transparent;
}
.site-mark img,
.site-mark img[alt] {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  background: transparent;
}
.site-identity { gap: 12px; }
.site-identity strong {
  color: var(--so-green);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: -.02em;
}
.site-identity small { color: #8a8b7a; letter-spacing: .06em; }
.site-strip nav { gap: 8px; }
.site-strip nav a {
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--so-green-deep);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.site-strip nav a:hover,
.site-strip nav a.is-current,
.public-home .public-anchor-nav a:hover,
.public-home .public-anchor-nav a.is-current,
body:not(.public-home) .site-strip nav a.is-current:not(.public-login-link) {
  color: var(--so-green);
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--so-olive);
}
.site-strip nav a.public-login-link,
.site-strip nav a.public-login-link:hover,
.site-strip nav a.public-login-link.is-current,
.public-home .public-anchor-nav a.public-login-link,
.public-home .public-anchor-nav a.public-login-link:hover,
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 {
  margin-left: 6px;
  color: var(--so-green-deep);
  background: var(--so-olive-light);
  box-shadow: none;
}
.logout-form button { border-radius: 999px; border-color: var(--so-olive); background: var(--so-olive-light); }

/* Visual-first homepage hero */
.public-landing {
  min-height: 610px;
  grid-template-columns: minmax(500px, 1.2fr) minmax(340px, .8fr);
  gap: 68px;
  padding-top: 78px;
  padding-bottom: 86px;
  background: #fff;
}
.public-landing::before { display: none; }
.public-landing-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: 480px;
}
.public-landing h1 {
  max-width: 480px;
  color: #252928;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(48px, 5.2vw, 74px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}
.public-landing h1 span { display: inline; color: var(--so-green); font-size: 1em; letter-spacing: inherit; }
.public-landing-copy > p:not(.eyebrow) { margin-top: 23px; font-size: 15px; line-height: 1.65; }
.public-landing .hero-actions { gap: 10px; margin-top: 25px; }
.public-landing .hero-actions a {
  border-radius: 999px;
  padding: 13px 22px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 12px;
}
.public-landing .hero-primary,
.public-landing .hero-primary:hover { border-color: var(--so-olive); color: var(--so-green-deep); background: var(--so-olive-light); }
.public-landing .hero-secondary { border-color: var(--so-line); color: var(--so-green); background: #fff; }
.public-landing .public-next-event {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-height: 430px;
  padding: 44px 48px;
  border: 0;
  border-radius: 52px 0 58px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.14) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 29%, rgba(255,255,255,.1) 0 3px, transparent 4px),
    linear-gradient(135deg, var(--so-green) 0 68%, var(--so-olive) 68% 100%);
  background-size: 35px 35px, 31px 31px, auto;
  box-shadow: -14px -10px 28px rgba(0,71,57,.15), 15px 15px 0 var(--so-olive-light);
}
.public-landing .public-next-event::before {
  width: 230px;
  height: 230px;
  right: -42px;
  top: -48px;
  border: 18px solid rgba(255,255,255,.1);
  box-shadow: 0 0 0 20px rgba(255,255,255,.05), 0 0 0 42px rgba(255,255,255,.035);
}
.public-landing .public-next-event::after {
  content: "CULTURE  •  COMMUNITY  •  HKU";
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(0,71,57,.58);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.public-landing .public-next-event .eyebrow,
.public-landing .public-next-event > a { color: var(--brand-yellow); }
.public-landing .public-next-date { border-radius: 18px 0 24px 0; }
.public-landing .public-next-event h2 { max-width: 440px; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 34px; }

/* Public content sections and cards */
.public-section { padding-block: 88px; border-top: 0; }
.public-section-heading { grid-template-columns: minmax(0, 1fr) minmax(280px, 470px); gap: 44px; align-items: center; }
.public-section-number { display: none; }
.public-section-heading h2 {
  color: var(--so-green-deep);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(38px, 4.3vw, 60px);
  font-weight: 700;
}
.public-section-intro { color: #6f746f; }
.public-about { background: #fff; }
.public-aim-grid { gap: 16px; border: 0; }
.public-about .public-aim-grid article {
  min-height: 230px;
  border: 1px solid var(--so-line);
  border-radius: 28px 0 38px 0;
  background: var(--so-cream);
}
.public-aim-grid h3,
.public-structure-grid h3,
.public-council-grid h3,
.public-document-grid h3 { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; }
.public-structure-grid article {
  min-height: 180px;
  border: 0;
  border-radius: 26px 0 36px 0;
  background: var(--so-olive-light);
}
.public-structure-grid article:nth-child(n) { border-top: 0; }
.public-events {
  color: #fff;
  background: var(--so-green-deep);
}
.public-events .eyebrow,
.public-events .public-section-heading h2,
.public-events .public-section-number { color: #fff; }
.public-events .public-section-intro { color: rgba(255,255,255,.7); }
.public-events .home-event-card,
.public-events .home-event-card:nth-child(n) {
  min-height: 250px;
  border: 0;
  border-radius: 28px 0 44px 0;
  color: var(--so-green-deep);
  background: #fff;
  box-shadow: 8px 8px 0 var(--so-olive);
}
.public-events .public-section-link { color: var(--brand-yellow); }
.public-updates { background: #fff; }
.public-updates .wordpress-post-grid article {
  border: 1px solid var(--so-line);
  border-radius: 26px 0 38px 0;
  box-shadow: var(--shadow-sm);
}
.public-gallery { color: var(--so-green-deep); background: var(--so-olive); }
.public-gallery .eyebrow,
.public-gallery .public-section-number,
.public-gallery .public-section-heading h2 { color: var(--so-green-deep); }
.public-gallery .public-section-intro { color: rgba(0,71,57,.7); }
.gallery-placeholder { border-radius: 28px 0 42px 0; }
.public-council { background: #fff; }
.public-council-grid article {
  border: 1px solid var(--so-line);
  border-radius: 32px 0 48px 0;
  background: var(--so-cream);
  box-shadow: var(--shadow-sm);
}
.public-council-grid article:nth-child(n) { border-top: 1px solid var(--so-line); }
.public-documents { background: var(--so-cream); }
.public-document-grid { gap: 16px; border: 0; }
.public-document-grid a {
  border: 1px solid var(--so-line);
  border-radius: 28px 0 42px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.public-document-grid a:last-child { border-right: 1px solid var(--so-line); }
.public-document-grid a:hover { background: var(--so-olive-light); }
.public-contact { background: var(--so-green-deep); }
.public-contact .eyebrow,
.public-contact-details small { color: var(--brand-yellow); }
.public-footer { color: var(--so-green-deep); background: var(--so-olive); }

/* Subpages, login, member and administrator workspaces */
body:not(.public-home) { background: #fff; }
.service-header,
.finance-heading,
.toolkits-heading { border-bottom: 0; }
.service-header h1,
.finance-heading h1,
.toolkits-heading h1,
.auth-heading h1,
.access-heading h1 {
  color: var(--so-green-deep);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
}
body:not(.public-home) .service-badge {
  border-color: var(--so-line);
  border-radius: 22px 0 30px 0;
  color: var(--so-green-deep);
  background: var(--so-olive-light);
}
body:not(.public-home) .service-notice {
  border: 0;
  border-radius: 22px 0 30px 0;
  background: var(--so-olive-light);
}
body:not(.public-home) .schedule-highlight {
  border-radius: 28px 0 42px 0;
  background: var(--so-green-deep);
  box-shadow: 10px 10px 0 var(--so-olive);
}
.service-panel,
.surface {
  border-radius: 28px 0 42px 0;
  border-color: var(--so-line);
  box-shadow: var(--shadow-sm);
}
.panel-count,
.admin-label { border-radius: 999px; color: var(--so-green-deep); background: var(--so-olive-light); }
.finance-page .finance-tabs,
.invoice-page .tabs { border-radius: 999px; padding: 5px; }
.finance-tabs button,
.tab { border-radius: 999px; }
.finance-tabs button.is-active,
.tab.is-active { border-radius: 999px; background: var(--so-green); }
.finance-stat,
.toolkit-access-card,
.auth-card,
.unified-login-card,
.member-auth-card,
.admin-auth-card {
  border: 1px solid var(--so-line);
  border-radius: 28px 0 42px 0;
  box-shadow: var(--shadow-sm);
}
.finance-stat:nth-child(n),
.toolkit-access-card:nth-child(n),
.auth-card,
.unified-login-card { border-top-color: var(--so-line); }
.toolkit-access-card:hover { border-color: var(--so-olive); box-shadow: var(--shadow-lg); }
.toolkit-access-card .admin-tool-icon { border-radius: 18px 0 24px 0; color: #fff; background: var(--so-green); }
.toolkit-access-card .admin-tool-icon.muted { color: var(--so-green-deep); background: var(--so-olive-light); }
.unified-login-card .auth-lock,
.auth-lock { border-radius: 18px 0 24px 0; color: var(--so-green-deep); background: var(--so-olive-light); }
.unified-login-help { border-radius: 20px 0 28px 0; }
.invoice-editor { border-radius: 28px 0 42px 0; border-top-color: var(--so-olive); }

@media (max-width: 900px) {
  .public-landing {
    grid-template-columns: 1fr;
    gap: 48px;
    background: #fff;
  }
  .public-landing .public-next-event { grid-column: 1; grid-row: 1; width: 100%; }
  .public-landing-copy { grid-column: 1; grid-row: 2; max-width: 650px; text-align: center; justify-self: center; }
  .public-landing h1 { margin-inline: auto; }
  .public-landing-copy > p:not(.eyebrow) { margin-inline: auto; }
  .public-landing .hero-actions { justify-content: center; }
}

@media (max-width: 700px) {
  .site-strip-inner { gap: 10px; }
  .site-strip nav { padding: 7px 0 2px; }
  .site-strip nav a { padding: 9px 12px; font-size: 11px; }
  .public-home .public-anchor-nav .public-login-link { order: -1; }
  .public-landing { padding-top: 42px; padding-bottom: 68px; }
  .public-landing .public-next-event { min-height: 330px; padding: 30px; border-radius: 34px 0 42px 0; box-shadow: 9px 9px 0 var(--so-olive-light); }
  .public-landing .public-next-event::after { right: 16px; font-size: 8px; }
  .public-landing h1 { font-size: clamp(45px, 14vw, 66px); }
  .public-section-heading { grid-template-columns: 1fr; gap: 18px; }
  .public-section-intro { grid-column: 1; }
  .public-events .home-event-card { box-shadow: 6px 6px 0 var(--so-olive); }
  .service-panel, .surface, .auth-card, .toolkit-access-card { border-radius: 22px 0 32px 0; }
}

/* Normal, highly readable typography across every portal surface. */
html,
body,
button,
input,
select,
textarea {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-stretch: normal;
}

body * {
  font-family: inherit !important;
  font-stretch: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-identity strong,
.site-strip nav a,
.public-anchor-nav a,
.button-link,
button {
  letter-spacing: normal !important;
}

/* White-and-amber association theme. */
:root {
  --so-green: #c97800;
  --so-green-deep: #8a4b00;
  --so-olive: #e9a62c;
  --so-olive-light: #fff1cf;
  --so-cream: #fffaf1;
  --so-line: #ead9b9;
  --brand-yellow: #fff4d6;
  --brand-tint-warm: #fff7e8;
  --line-strong: #ddc28f;
  --shadow-sm: 0 9px 24px rgba(138, 75, 0, .08);
  --shadow-lg: 0 18px 48px rgba(138, 75, 0, .14);
}

body { color: #332b20; background: #fff; }
.site-strip {
  border-top-color: var(--so-olive);
  box-shadow: 0 3px 18px rgba(138, 75, 0, .07);
}
.site-identity strong,
.site-strip nav a,
.public-landing h1 span,
.public-section-heading h2,
.service-heading h1,
.finance-heading h1,
.toolkits-heading h1,
.auth-heading h1,
.access-heading h1 { color: var(--so-green-deep); }

/* A lighter, information-first next-event panel. */
.public-landing .public-next-event {
  color: #332b20;
  border: 1px solid var(--so-line);
  background:
    radial-gradient(circle at 18% 22%, rgba(201,120,0,.08) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 29%, rgba(201,120,0,.05) 0 3px, transparent 4px),
    linear-gradient(135deg, #fff 0 68%, var(--so-olive-light) 68% 100%);
  background-size: 35px 35px, 31px 31px, auto;
  box-shadow: -14px -10px 28px rgba(138,75,0,.06), 15px 15px 0 var(--so-olive-light);
}
.public-landing .public-next-event::before {
  border-color: rgba(201,120,0,.10);
  box-shadow: 0 0 0 20px rgba(201,120,0,.05), 0 0 0 42px rgba(201,120,0,.025);
}
.public-landing .public-next-event::after { color: var(--so-green-deep); }
.public-landing .public-next-event .eyebrow,
.public-landing .public-next-event > a { color: var(--so-green-deep); }
.public-landing .public-next-date { color: #fff; background: var(--so-green); }
.public-landing .public-next-date strong,
.public-landing .public-next-date span { color: #fff; }

/* Keep content areas predominantly white, with amber used as an accent. */
.public-events { color: #332b20; background: #fffaf1; }
.public-events .eyebrow,
.public-events .public-section-heading h2,
.public-events .public-section-number { color: var(--so-green-deep); }
.public-events .public-section-intro { color: #766956; }
.public-events .home-event-card,
.public-events .home-event-card:nth-child(n) {
  border: 1px solid var(--so-line);
  color: #332b20;
  background: #fff;
  box-shadow: 8px 8px 0 var(--so-olive-light);
}
.public-events .public-section-link { color: var(--so-green-deep); }

.public-gallery {
  color: #332b20;
  border-top: 1px solid var(--so-line);
  border-bottom: 1px solid var(--so-line);
  background: #fff;
}
.public-gallery .eyebrow,
.public-gallery .public-section-number,
.public-gallery .public-section-heading h2 { color: var(--so-green-deep); }
.public-gallery .public-section-intro { color: #766956; }
.public-gallery .gallery-placeholder {
  border-color: var(--so-line);
  background: var(--so-cream);
}

.public-contact { background: var(--so-green-deep); }
.public-footer { color: #5e4b2f; background: var(--so-olive-light); }

/* Dedicated public content pages and focused homepage. */
.public-home-focused .public-landing { min-height: 570px; }
.public-home-events { padding-top: 72px; padding-bottom: 82px; }
.home-promotion-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.public-page-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 66px;
  border-bottom: 1px solid var(--so-line);
}
.public-page-hero > p:last-child { max-width: 720px; margin-top: 20px; color: #766956; font-size: 17px; line-height: 1.7; }
.public-page-hero h1 {
  max-width: 850px;
  margin-top: 10px;
  color: var(--so-green-deep);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
}
.public-inner-page .public-section { padding-top: 68px; }
.public-inner-page .public-footer { margin-top: 0; }
.public-gallery-page { border-top: 0; }
.public-page-cta { margin-top: 34px; }
.events-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
  gap: 70px;
  align-items: center;
}
.events-page-hero > div > p:last-child { max-width: 650px; margin-top: 20px; color: #766956; font-size: 17px; line-height: 1.7; }
.events-page-hero .public-next-event {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--so-line);
  border-radius: 36px 0 46px 0;
  color: #332b20;
  background: linear-gradient(135deg, #fff 0 70%, var(--so-olive-light) 70% 100%);
  box-shadow: 12px 12px 0 var(--so-olive-light);
}
.events-page-hero .public-next-event .eyebrow,
.events-page-hero .public-next-event > a { color: var(--so-green-deep); }
.events-page-hero .public-next-event h2 { margin-top: 22px; font-size: 31px; line-height: 1.1; }
.events-page-hero .public-next-event > p:not(.eyebrow) { margin-top: 12px; color: #766956; }
.events-page-hero .public-next-event > a { display: inline-block; margin-top: 24px; font-weight: 700; }
.events-page-list { border-top: 0; }

@media (max-width: 900px) {
  .events-page-hero { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .public-page-hero { width: min(100% - 32px, 1180px); padding: 58px 0 44px; }
  .public-page-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .public-inner-page .public-section { padding-top: 48px; }
  .events-page-hero .public-next-event { min-height: 310px; padding: 28px; }
}

/* White-first navigation and restrained amber accents. */
:root {
  --so-green: #b86b00;
  --so-green-deep: #2d2a26;
  --so-olive: #d98a16;
  --so-olive-light: #fff6e7;
  --so-cream: #fff;
  --so-line: #e8e3da;
  --brand-yellow: #f4b64f;
  --brand-tint: #fff;
  --brand-tint-warm: #fffaf3;
  --line-strong: #d8d0c4;
  --shadow-sm: 0 9px 24px rgba(45, 42, 38, .07);
  --shadow-lg: 0 18px 48px rgba(45, 42, 38, .11);
}

body,
body:not(.public-home),
.public-landing,
.public-events,
.public-gallery,
.public-council,
.public-documents,
.public-updates { background: #fff; }

.site-strip {
  overflow: visible;
  border-top: 3px solid var(--so-olive);
  border-bottom: 1px solid var(--so-line);
  box-shadow: none;
  background: rgba(255,255,255,.98);
}
.site-identity strong,
.public-landing h1 span,
.public-section-heading h2,
.public-page-hero h1,
.service-heading h1,
.finance-heading h1,
.toolkits-heading h1,
.auth-heading h1,
.access-heading h1 { color: #2d2a26; }
.eyebrow { color: var(--so-green); }

.site-strip nav { overflow: visible; }
.site-strip nav a,
.site-strip nav .nav-menu > summary {
  display: block;
  padding: 11px 15px;
  border-radius: 999px;
  color: #4b4741;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-strip nav .nav-menu > summary { list-style: none; }
.site-strip nav .nav-menu > summary::-webkit-details-marker { display: none; }
.site-strip nav .nav-menu > summary::after { content: "⌄"; margin-left: 7px; color: var(--so-green); }
.site-strip nav > a:hover,
.site-strip nav > a.is-current,
.site-strip nav .nav-menu:hover > summary,
.site-strip nav .nav-menu:focus-within > summary,
.site-strip nav .nav-menu.is-current > summary {
  color: #2d2a26;
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--so-olive);
}
.nav-menu { position: relative; }
.nav-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% - 1px);
  left: 0;
  width: max-content;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--so-line);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  box-shadow: 0 16px 35px rgba(45,42,38,.12);
  background: #fff;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown,
.nav-menu[open] .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.site-strip nav .nav-dropdown a {
  padding: 11px 13px;
  border-radius: 10px;
  color: #4b4741;
  font-size: 13px;
  box-shadow: none;
}
.site-strip nav .nav-dropdown a:hover,
.site-strip nav .nav-dropdown a.is-current {
  color: #2d2a26;
  background: var(--so-olive-light);
  box-shadow: none;
}
.site-strip nav a.public-login-link,
.site-strip nav a.public-login-link:hover,
.site-strip nav a.public-login-link.is-current {
  color: #fff;
  background: var(--so-green);
  box-shadow: none;
}
.site-strip nav .login-menu > summary.public-login-link,
.site-strip nav .login-menu:hover > summary.public-login-link,
.site-strip nav .login-menu:focus-within > summary.public-login-link,
.site-strip nav .login-menu.is-current > summary.public-login-link {
  color: #fff;
  background: var(--so-green);
  box-shadow: none;
}
.nav-dropdown-right { right: 0; left: auto; }
.portal-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--so-line);
  color: #746d64;
  text-align: center;
}
.portal-switch a { color: var(--so-green-deep); font-weight: 800; }

.public-landing .public-next-event {
  border: 1px solid var(--so-line);
  border-left: 5px solid var(--so-olive);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.public-landing .public-next-event::before { display: none; }
.public-landing .public-next-event::after { color: #8a8278; }
.public-events .home-event-card,
.public-events .home-event-card:nth-child(n) { box-shadow: var(--shadow-sm); }
.public-gallery { border-color: var(--so-line); }
.public-contact,
.public-contact-page { color: #2d2a26; background: #fff; }
.public-contact .eyebrow,
.public-contact-details small { color: var(--so-green); }
.public-contact-details strong { color: #2d2a26; }
.public-footer {
  color: #625c54;
  border-top: 1px solid var(--so-line);
  background: #fff;
}
body:not(.public-home) .schedule-highlight {
  color: #2d2a26;
  border: 1px solid var(--so-line);
  border-left: 5px solid var(--so-olive);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
body:not(.public-home) .schedule-highlight .eyebrow,
body:not(.public-home) .schedule-highlight h2,
body:not(.public-home) .schedule-highlight p { color: inherit; }

.public-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.public-profile-grid article,
.public-feature-card {
  padding: 30px;
  border: 1px solid var(--so-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.public-profile-grid small { color: var(--so-green); font-weight: 800; text-transform: uppercase; }
.public-profile-grid h3,
.public-feature-card h2 { margin-top: 30px; color: #2d2a26; font-size: 25px; }
.public-profile-grid p,
.public-feature-card p:last-child { margin-top: 12px; color: #746d64; line-height: 1.65; }
.interhall-next-event {
  max-width: 760px;
  margin: 34px 0;
  padding: 28px;
  border: 1px solid var(--so-line);
  border-left: 5px solid var(--so-olive);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.interhall-next-event h2 { margin-top: 16px; color: #2d2a26; }
.interhall-next-event > p:not(.eyebrow) { margin-top: 8px; color: #746d64; }

@media (max-width: 700px) {
  .public-site-strip .site-strip-inner { align-items: center; }
  .public-anchor-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  .site-strip nav a,
  .site-strip nav .nav-menu > summary { padding: 9px 8px; text-align: center; font-size: 11px; }
  .nav-dropdown { min-width: 210px; text-align: left; }
  .site-strip nav .nav-dropdown a { text-align: left; }
  .public-profile-grid { grid-template-columns: 1fr; }
}

.public-page-hero .constitution-note {
  display: inline-block;
  width: auto;
  margin-top: 24px;
  padding: 9px 13px;
  border-left: 3px solid var(--so-olive);
  color: #685f55;
  font-size: 13px;
  line-height: 1.5;
  background: #fffaf3;
}
.exco-role-grid article { min-height: 230px; }

/* Shared CMS-managed contact footer. */
.global-contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 34px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--so-line);
  color: #625c54;
  background: #fff;
}
.global-contact-footer-created { margin-top: 72px; }
.global-contact-info {
  order: -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 24px;
  width: 100%;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--so-line);
}
.global-contact-heading,
.global-contact-item { display: grid; gap: 7px; align-content: start; }
.global-contact-info small {
  color: var(--so-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.global-contact-heading strong { color: #2d2a26; font-size: 19px; }
.global-contact-item span,
.global-contact-item a { color: #625c54; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.global-contact-item a { font-weight: 700; }

@media (max-width: 800px) {
  .global-contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-contact-heading { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .global-contact-footer { align-items: flex-start; flex-direction: column; }
  .global-contact-info { grid-template-columns: 1fr; }
}

/* Authenticated administrator and participant dashboard shell. */
body.authenticated-dashboard {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
  background: #f7f6f3;
}
body.authenticated-dashboard > .site-strip { display: none; }
.portal-sidebar {
  position: sticky;
  z-index: 80;
  top: 0;
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  width: 276px;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid #e6e1d8;
  background: #fff;
  overflow-y: auto;
}
.portal-sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 25px; border-bottom: 1px solid var(--so-line); }
.portal-sidebar-brand img { width: 42px !important; height: 42px !important; object-fit: contain; }
.portal-sidebar-brand span { display: grid; gap: 3px; }
.portal-sidebar-brand strong { color: #2d2a26; font-size: 13px; line-height: 1.2; }
.portal-sidebar-brand small { color: #81796f; font-size: 10px; text-transform: uppercase; }
.portal-sidebar-nav { display: grid; gap: 4px; padding: 20px 0; }
.portal-sidebar-subnav { display: grid; gap: 2px; margin: -1px 0 8px 41px; padding: 2px 0 4px 12px; border-left: 1px solid #e4ddd1; }
.portal-sidebar-subnav a { min-height: 30px; padding: 6px 9px; border-radius: 8px; font-size: 10px; font-weight: 700; }
.portal-sidebar-subnav a.is-active { box-shadow: none; color: #6f531e; background: #fff7e8; }
.admin-dashboard .finance-tabs { display: none; }
.portal-sidebar a,
.portal-sidebar button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  color: #5b554d;
  background: transparent;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
}
.portal-sidebar a > span,
.portal-sidebar button > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: #8d6a2d;
  background: #fff7e8;
  font-size: 10px;
  font-weight: 900;
}
.portal-sidebar a strong,
.portal-sidebar button strong { font-size: 12px; font-weight: 700; }
.portal-sidebar a:hover,
.portal-sidebar a.is-active,
.portal-sidebar button:hover { color: #2d2a26; background: #f7f4ee; }
.portal-sidebar a.is-active { box-shadow: inset 3px 0 0 var(--so-olive); }
.portal-sidebar-section { padding-top: 16px; border-top: 1px solid var(--so-line); }
.portal-sidebar-section > small { display: block; margin: 0 11px 7px; color: #8d857c; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-sidebar-footer { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--so-line); }
.portal-sidebar-footer form { margin: 0; }
.portal-sidebar-footer button { cursor: pointer; }
.portal-dashboard-main {
  grid-column: 2;
  width: min(100% - 56px, 1380px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-top: 42px !important;
  padding-bottom: 72px !important;
}
body.authenticated-dashboard > .global-contact-footer { grid-column: 2; }
.portal-mobile-toggle,
.portal-sidebar-overlay { display: none; }

.portal-overview-header { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.portal-overview-header h1 { margin-top: 7px; color: #2d2a26; font-size: clamp(34px, 4vw, 52px); }
.portal-overview-header p:last-child { max-width: 680px; margin-top: 10px; color: #746d64; line-height: 1.65; }
.portal-user-card { min-width: 230px; padding: 18px 20px; border: 1px solid var(--so-line); border-radius: 18px; background: #fff; }
.portal-user-card small { color: var(--so-green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.portal-user-card strong { display: block; margin-top: 7px; color: #2d2a26; font-size: 17px; }
.portal-user-card span { display: block; margin-top: 3px; color: #81796f; font-size: 12px; }
.portal-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-overview-card { min-height: 155px; padding: 23px; border: 1px solid var(--so-line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.portal-overview-card span { color: #81796f; font-size: 11px; font-weight: 700; }
.portal-overview-card strong { display: block; margin-top: 20px; color: #2d2a26; font-size: 34px; }
.portal-overview-card small { display: block; margin-top: 8px; color: #928a80; font-size: 10px; }
.portal-overview-panels { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 20px; }
.portal-overview-panel { padding: 25px; border: 1px solid var(--so-line); border-radius: 20px; background: #fff; }
.portal-overview-panel h2 { color: #2d2a26; font-size: 22px; }
.portal-overview-panel > p { margin-top: 8px; color: #746d64; line-height: 1.55; }
.portal-priority-list { display: grid; gap: 11px; margin-top: 20px; }
.portal-priority-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--so-line); color: #5f584f; }
.portal-priority-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--so-olive); }
.portal-quick-links { display: grid; gap: 9px; margin-top: 18px; }
.portal-quick-links a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 11px; color: #453f38; background: #f8f6f1; text-decoration: none; font-weight: 700; }
.member-overview-grid { margin-bottom: 24px; }
.member-portal-section { margin-top: 38px; scroll-margin-top: 32px; }
#admin-overview-status { margin-top: 18px; }

@media (max-width: 1050px) {
  body.authenticated-dashboard { grid-template-columns: 238px minmax(0, 1fr); }
  .portal-sidebar { width: 238px; padding-inline: 13px; }
  .portal-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.authenticated-dashboard { display: block; }
  .portal-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 276px; transition: transform .2s ease; box-shadow: 14px 0 35px rgba(45,42,38,.16); }
  body.portal-menu-open .portal-sidebar { transform: translateX(0); }
  .portal-mobile-toggle { position: fixed; z-index: 95; top: 14px; left: 14px; display: grid; width: 44px; height: 44px; min-height: 44px; padding: 11px; place-content: center; gap: 4px; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(45,42,38,.14); }
  .portal-mobile-toggle span { display: block; width: 20px; height: 2px; background: #2d2a26; }
  .portal-sidebar-overlay { position: fixed; z-index: 70; inset: 0; display: block; visibility: hidden; opacity: 0; border: 0; background: rgba(36,32,27,.38); transition: opacity .2s ease, visibility .2s ease; }
  body.portal-menu-open .portal-sidebar-overlay { visibility: visible; opacity: 1; }
  .portal-dashboard-main { width: min(100% - 32px, 1380px) !important; padding-top: 78px !important; }
  .portal-overview-header { flex-direction: column; }
  .portal-user-card { width: 100%; }
  .portal-overview-panels { grid-template-columns: 1fr; }
  body.authenticated-dashboard > .global-contact-footer { grid-column: auto; }
}

@media (max-width: 560px) {
  .portal-overview-grid { grid-template-columns: 1fr; }
}

/* Plain-text public navigation and bilingual association identity. */
.site-identity > span:last-child { gap: 3px; }
.site-identity strong {
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
}
.site-identity small {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.site-strip nav > a,
.site-strip nav .nav-menu > summary,
.site-strip nav a.public-login-link,
.site-strip nav .login-menu > summary.public-login-link,
.site-strip nav > a:hover,
.site-strip nav > a.is-current,
.site-strip nav .nav-menu:hover > summary,
.site-strip nav .nav-menu:focus-within > summary,
.site-strip nav .nav-menu.is-current > summary,
.site-strip nav a.public-login-link:hover,
.site-strip nav a.public-login-link.is-current,
.site-strip nav .login-menu:hover > summary.public-login-link,
.site-strip nav .login-menu:focus-within > summary.public-login-link,
.site-strip nav .login-menu.is-current > summary.public-login-link {
  border: 0 !important;
  border-radius: 0 !important;
  color: #4b4741 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.site-strip nav > a:hover,
.site-strip nav > a.is-current,
.site-strip nav .nav-menu:hover > summary,
.site-strip nav .nav-menu:focus-within > summary,
.site-strip nav .nav-menu.is-current > summary,
.site-strip nav .login-menu:hover > summary.public-login-link,
.site-strip nav .login-menu:focus-within > summary.public-login-link,
.site-strip nav .login-menu.is-current > summary.public-login-link {
  color: #a56d00 !important;
}
.site-strip nav .nav-dropdown a,
.site-strip nav .nav-dropdown a:hover,
.site-strip nav .nav-dropdown a.is-current {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.site-strip nav .nav-dropdown a:hover,
.site-strip nav .nav-dropdown a.is-current { color: #a56d00 !important; }
.portal-sidebar-brand strong {
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: .03em;
}
.portal-sidebar-brand small { text-transform: none; letter-spacing: 0; line-height: 1.25; }

@media (max-width: 700px) {
  .site-identity strong { font-size: 12px; }
  .site-identity small { max-width: 230px; font-size: 8px; }
}

/* HKU-inspired institutional header: white space, strong identity, text-only navigation. */
.site-strip {
  border-top: 0;
  border-bottom: 1px solid #dedbd5;
  background: rgba(255, 255, 255, .99);
}
.site-strip-inner {
  width: min(1280px, calc(100% - 56px));
  max-width: 1280px;
  min-height: 96px;
  gap: 44px;
}
.site-identity { flex: 1 1 auto; gap: 16px; }
.site-mark {
  width: 54px;
  height: 64px;
  min-width: 54px;
  max-width: 54px;
  min-height: 64px;
  max-height: 64px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.site-mark img {
  width: 50px !important;
  height: 60px !important;
  max-width: 50px !important;
  max-height: 60px !important;
  background: transparent;
}
.site-identity-copy {
  display: flex !important;
  flex-direction: column;
  gap: 1px !important;
  min-width: 0;
  color: #20201e;
}
.site-identity .site-university-name,
.portal-sidebar-brand .site-university-name {
  color: #66635d;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: none;
}
.site-identity .site-association-name,
.portal-sidebar-brand .site-association-name {
  color: #252421;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.site-identity .site-chinese-name,
.portal-sidebar-brand .site-chinese-name {
  color: #8a5a05;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
}
.site-strip nav { gap: 30px; }
.site-strip nav > a,
.site-strip nav .nav-menu > summary,
.site-strip nav a.public-login-link,
.site-strip nav .login-menu > summary.public-login-link {
  padding: 12px 0;
  border: 0 !important;
  border-radius: 0 !important;
  color: #34332f !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
}
.site-strip nav .nav-menu > summary::after { margin-left: 6px; color: #9a6a12; }
.site-strip nav > a:hover,
.site-strip nav > a.is-current,
.site-strip nav .nav-menu:hover > summary,
.site-strip nav .nav-menu:focus-within > summary,
.site-strip nav .nav-menu.is-current > summary,
.site-strip nav .login-menu:hover > summary.public-login-link,
.site-strip nav .login-menu:focus-within > summary.public-login-link,
.site-strip nav .login-menu.is-current > summary.public-login-link {
  color: #a56d00 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-dropdown {
  top: calc(100% + 3px);
  padding: 15px 18px;
  border-color: #e4e0d8;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(31, 30, 27, .1);
}
.site-strip nav .nav-dropdown a,
.site-strip nav .nav-dropdown a:hover,
.site-strip nav .nav-dropdown a.is-current {
  padding: 9px 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
}
.portal-sidebar-brand { align-items: flex-start; }
.portal-sidebar-brand .site-identity-copy { gap: 1px !important; }
.portal-sidebar-brand .site-association-name { font-size: 14px; }
.portal-sidebar-brand .site-chinese-name { font-size: 9px; }

@media (max-width: 900px) {
  .site-strip-inner { width: min(100% - 32px, 1280px); min-height: 88px; gap: 24px; }
  .site-strip nav { gap: 19px; }
  .site-strip nav > a,
  .site-strip nav .nav-menu > summary { font-size: 12px; }
}

@media (max-width: 700px) {
  .site-strip-inner { width: min(100% - 28px, 1280px); padding: 14px 0 9px; }
  .site-identity { align-self: center; }
  .site-mark { width: 44px; height: 53px; min-width: 44px; min-height: 53px; }
  .site-mark img { width: 42px !important; height: 51px !important; }
  .site-identity .site-university-name { font-size: 7px; }
  .site-identity .site-association-name { font-size: 15px; }
  .site-identity .site-chinese-name { font-size: 9px; }
  .site-strip nav { gap: 22px; padding-top: 11px; }
  .site-strip nav > a,
  .site-strip nav .nav-menu > summary { padding: 8px 0; font-size: 11px; }
}

/* Restrained institutional treatment across public pages. */
.public-site-main,
.public-inner-page { color: #2a2926; background: #fff; }
.public-section,
.public-page-hero,
.public-events,
.public-council,
.public-documents,
.public-gallery { border-color: #e3e0da; background: #fff; }
.public-section-heading h2,
.public-page-hero h1,
.events-page-hero h1 { color: #22211f; letter-spacing: -.025em; }
.public-profile-grid article,
.public-feature-card,
.public-landing .public-next-event,
.events-page-hero .public-next-event,
.interhall-next-event {
  border: 1px solid #dfdcd5;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}
.public-landing .public-next-event,
.events-page-hero .public-next-event,
.interhall-next-event { border-left: 4px solid #c88919; }
.eyebrow,
.public-profile-grid small { color: #986511; }
.public-page-hero .constitution-note { border-left-color: #c88919; background: #fbf8f2; }
.global-contact-footer { border-top-color: #dcd8d0; color: #605e58; background: #f8f7f4; }
.global-contact-heading strong { color: #252421; }

/* Homepage: event banner followed only by the latest events. */
.public-home-focused {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
}
.home-event-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  background: #292722;
}
.home-banner-track { position: absolute; inset: 0; }
.home-banner-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 820px);
  gap: 44px;
  align-content: end;
  align-items: end;
  padding: 80px max(40px, calc((100% - 1280px) / 2));
  visibility: hidden;
  opacity: 0;
  transform: scale(1.015);
  background:
    linear-gradient(90deg, rgba(31, 29, 25, .96), rgba(31, 29, 25, .66)),
    radial-gradient(circle at 83% 24%, rgba(215, 151, 38, .58), transparent 31%),
    url("../images/association-crest-transparent.png") no-repeat 84% 48% / 300px auto,
    #3b3933;
  transition: opacity .65s ease, transform 1s ease, visibility .65s;
}
.home-banner-slide:nth-child(2) { background-color: #493f2e; }
.home-banner-slide:nth-child(3) { background-color: #34312c; }
.home-banner-slide:nth-child(4) { background-color: #4a453b; }
.home-banner-slide.is-active { visibility: visible; opacity: 1; transform: scale(1); }
.home-banner-date {
  display: grid;
  min-height: 146px;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
}
.home-banner-date strong { font-size: 72px; font-weight: 300; line-height: .9; }
.home-banner-date span { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.home-banner-copy { padding-bottom: 3px; }
.home-banner-copy small { color: #f1bf64; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-banner-copy h1 { max-width: 920px; margin: 12px 0 14px; color: #fff; font-size: clamp(42px, 5.4vw, 76px); font-weight: 550; line-height: 1.03; letter-spacing: -.035em; }
.home-banner-copy p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.home-banner-controls {
  position: absolute;
  z-index: 5;
  right: max(40px, calc((100% - 1280px) / 2));
  bottom: 34px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.home-banner-controls > button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: 21px;
}
.home-banner-dots { display: flex; gap: 7px; }
.home-banner-dots button {
  width: 22px;
  height: 3px;
  min-height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .34);
  box-shadow: none;
}
.home-banner-dots button.is-active { background: #e1a743; }
.home-banner-empty { display: grid; min-height: 520px; place-items: center; color: #fff; }
.home-latest-events {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 76px 0 92px;
}
.home-latest-events > h2 { margin: 0 0 36px; color: #22211f; font-size: clamp(32px, 4vw, 50px); font-weight: 550; letter-spacing: -.03em; }
.home-latest-events .home-event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-latest-events .home-event-card {
  min-height: 185px;
  padding: 26px;
  border: 1px solid #dedbd5;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.home-latest-events .home-event-date { border-radius: 0; color: #8d5e0a; background: #f8f3e9; }
.home-latest-events .home-event-copy h3 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #282723; font-size: 20px; font-weight: 650; }
.home-latest-events .category-tag { color: #95640e; background: transparent; }

@media (max-width: 900px) {
  .home-event-banner { min-height: 470px; }
  .home-banner-slide { grid-template-columns: 115px minmax(0, 1fr); gap: 28px; padding: 64px 32px 78px; background-size: auto, auto, 230px auto, auto; }
  .home-banner-date { min-height: 118px; }
  .home-banner-date strong { font-size: 55px; }
  .home-banner-controls { right: 30px; bottom: 25px; }
  .home-latest-events { width: min(100% - 40px, 1280px); }
  .home-latest-events .home-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .home-event-banner { min-height: 430px; }
  .home-banner-slide { grid-template-columns: 1fr; gap: 22px; align-content: end; padding: 48px 22px 84px; background-size: auto, auto, 170px auto, auto; }
  .home-banner-date { width: 76px; min-height: 82px; }
  .home-banner-date strong { font-size: 38px; }
  .home-banner-date span { margin-top: 7px; font-size: 9px; }
  .home-banner-copy h1 { font-size: clamp(34px, 11vw, 48px); }
  .home-banner-copy p { font-size: 11px; line-height: 1.5; }
  .home-banner-controls { right: 18px; bottom: 22px; }
  .home-latest-events { width: min(100% - 32px, 1280px); padding: 52px 0 66px; }
  .home-latest-events > h2 { margin-bottom: 26px; }
  .home-latest-events .home-event-list { grid-template-columns: 1fr; }
}
