/* MORIAH shared stylesheet */

:root {
  /* MORIAH logo palette */
  --logo-pink:   #b4497b;
  --logo-yellow: #fdb913;
  --logo-teal:   #5a979c;
  --ink:         #1d2a33;
  --brand:      #33767b;   /* logo teal, deepened so white text stays readable */
  --brand-dark: #285c60;
  --brand-mid:  #5a979c;
  --accent:     #b4497b;   /* logo pink, a shade darker so white text on it meets WCAG AA */
  --accent-dark:#9a3d68;
  --highlight:  #fdb913;   /* logo yellow */
  --text:       #1d2a33;
  --muted:      #4a5e69;
  --border:     #cfe6ea;
  --bg:         #f7fafb;
  --card-bg:    #ffffff;
  --success:    #285c60;
  --error:      #a33000;
  --focus-ring: rgba(51,118,123,0.18);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

/* ── Navigation ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__logo {
  height: 34px;
  width: auto;
  display: block;
}

/* Fallback mark shown when logo image is unavailable */
.site-brand__mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

.site-brand__name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: #eef7f8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0 0.85rem;
  line-height: 60px;
  display: block;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover { color: #fff; }

.site-nav a.active {
  color: #fff;
  border-bottom: 2px solid var(--accent);
}

.site-nav a.nav-donate {
  background: var(--accent);
  color: #fff !important;
  line-height: normal;
  padding: 7px 14px;
  border-radius: 6px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.site-nav a.nav-donate:hover { background: var(--accent-dark); }

/* Admin nav gets a slightly darker teal to distinguish from public */
.site-header.admin-header { background: #285c60; }

/* ── Page wrapper ── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
}

/* ── Typography ── */
h1 { font-size: 1.55rem; margin: 0 0 0.35rem; color: var(--text); }
h2 { font-size: 1.15rem; margin: 0 0 0.35rem; color: var(--text); }

.muted   { color: var(--muted); font-size: 0.92rem; }
.success { color: var(--success); font-weight: 600; }
.error   { color: var(--error);   font-weight: 600; }
.hidden  { display: none; }

.required-mark { color: var(--error); margin-left: 2px; }

/* ── Form elements ── */
label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

textarea { resize: vertical; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover:not(:disabled) { background: var(--accent-dark); }

.btn-block { display: block; width: 100%; margin-top: 1.25rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Grid ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* ── Confirmation / detail box ── */
.detail-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: var(--bg);
  margin-top: 1rem;
}

.detail-box dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.detail-box dd {
  margin: 0;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

/* ── Checkbox row ── */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-row label {
  margin-top: 0;
  font-weight: normal;
}

/* ── Section heading within card ── */
.section-heading {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* ── Dashboard stat cards ── */
.dashboard-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
}

.dashboard-card .count {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}

.dashboard-card .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-green  { background: #e3eff0; color: #285c60; }
.badge-orange { background: #fff7dc; color: #854f0b; }
.badge-gray   { background: #f1efe8; color: #5f5e5a; }
.badge-red    { background: #fcebeb; color: #791f1f; }

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .page-content { padding: 1.25rem 1rem 2.5rem; }
  .site-nav a { padding: 0 0.5rem; font-size: 12px; }
  .site-brand__name { display: none; }
}

/* ── Admin sidebar layout ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #285c60;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar__brand {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.admin-sidebar__logo {
  height: 32px;
  width: auto;
}

.admin-sidebar__mark {
  width: 28px;
  height: 28px;
  background: #b4497b;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.admin-sidebar__nav {
  flex: 1;
  padding: .75rem 0;
}

.admin-sidebar__section {
  padding: .5rem 1rem .25rem;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .5rem;
}

.admin-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: .6rem 1rem;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.admin-sidebar__nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.admin-sidebar__nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-left-color: #b4497b;
}

.admin-sidebar__footer {
  padding: .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.admin-sidebar__footer a {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  text-decoration: none;
  display: block;
  padding: .35rem 0;
}

.admin-sidebar__footer a:hover { color: #fff; }

.admin-main {
  margin-left: 220px;
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
}

.admin-sidebar__toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: #285c60;
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar__toggle {
    display: flex;
  }
  .admin-main {
    margin-left: 0;
    padding: 1rem;
    padding-top: 3.5rem;
  }
  .admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99;
  }
  .admin-overlay.open { display: block; }
}

/* ── Admin shared patterns ── */

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  text-align: left;
  padding: 0.4rem 0.65rem;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  background: #fafafa;
}
.admin-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #f8fdfb; }

/* Button sizes */
.btn-sm {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  line-height: 1.4;
}
.btn-sm:hover { background: var(--bg); border-color: var(--brand-dark); }

.btn-primary-sm {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background 0.12s;
  line-height: 1.4;
}
.btn-primary-sm:hover { background: var(--brand-dark); }

.btn-danger-sm {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.83rem;
  border: 1px solid #e8b4b4;
  border-radius: 5px;
  background: #fff;
  color: #791f1f;
  cursor: pointer;
  transition: background 0.12s;
  line-height: 1.4;
}
.btn-danger-sm:hover { background: #fcebeb; }

/* Admin filter row */
.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 1rem 0;
}
.filter-row > * { flex: 1 1 160px; min-width: 0; }
.filter-row label { margin-top: 0; font-size: 0.88rem; }
.filter-row button { flex: 0 0 auto; }

/* Pagination controls */
.pagination-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.6rem 0;
  font-size: 0.88rem;
}
.pagination-row button { margin: 0; }
.pagination-row select { width: auto; min-width: 0; }

/* Admin badges */
.badge-active   { background: #e3eff0; color: #285c60; }
.badge-inactive { background: #f1efe8; color: #5f5e5a; }
.badge-pending  { background: #fff3cd; color: #856404; }
.badge-error    { background: #fcebeb; color: #791f1f; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.5;
}
.empty-state__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.empty-state__sub {
  font-size: 0.88rem;
}

/* ── Stat tiles (fundraising dashboards) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.stat-tile {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.stat-tile__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stat-tile__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.stat-tile__sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
.stat-delta--up   { color: var(--success); font-weight: 600; }
.stat-delta--down { color: var(--error);   font-weight: 600; }

/* ── Admin top header (fixed; built by js/admin-sidebar.js) ── */
:root { --topbar-h: 0px; }
body.has-topbar { --topbar-h: 64px; }
body.has-topbar .admin-main { padding-top: calc(var(--topbar-h) + 1.5rem); }
.admin-topbar {
  position: fixed; top: 0; left: 220px; right: 0; height: 64px; z-index: 90;
  display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.04); backdrop-filter: saturate(1.4) blur(6px);
}
.tb-search { position: relative; flex: 0 1 520px; display: flex; align-items: center; margin-left: auto; color: #687b86; }
.tb-search svg { position: absolute; left: .85rem; pointer-events: none; }
.tb-search input {
  width: 100%; margin: 0; height: 42px; padding: 0 2.4rem 0 2.6rem; font-size: .95rem;
  border: 1px solid #d7e2e6; border-radius: 10px; background: #fff;
}
.tb-search input:focus { outline: none; border-color: #33767b; box-shadow: 0 0 0 3px rgba(51,118,123,.15); }
.tb-search kbd { position: absolute; right: .7rem; font: 600 .72rem/1 inherit; color: #8797a1; border: 1px solid #d7e2e6; border-radius: 4px; padding: .15rem .35rem; }
.tb-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #d7e2e6; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: .35rem; max-height: 70vh; overflow-y: auto; }
.tb-group { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8797a1; padding: .45rem .6rem .2rem; }
.tb-hit { display: flex; flex-direction: column; padding: .45rem .6rem; border-radius: 6px; text-decoration: none; color: var(--text); font-size: .9rem; }
.tb-hit small { color: #687b86; font-size: .78rem; }
.tb-hit:hover, .tb-hit.on { background: #e8f6f8; }
.tb-none { padding: .7rem; color: #687b86; font-size: .88rem; }
.tb-right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.tb-menu-wrap { position: relative; }
.tb-icon {
  width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #d7e2e6; color: #34474f; cursor: pointer;
}
.tb-icon:hover, .tb-icon[aria-expanded="true"], .tb-icon.on { background: #e8f6f8; color: #285c60; border-color: #b3dce1; }
.tb-profile {
  display: flex; align-items: center; gap: .55rem; height: 46px; margin: 0; padding: 0 .9rem 0 .3rem;
  background: #fff; border: 1px solid #d7e2e6; border-radius: 999px; cursor: pointer; color: var(--text); font: inherit;
}
.tb-profile:hover, .tb-profile[aria-expanded="true"] { background: #f3f9fa; }
.tb-avatar { width: 36px; height: 36px; border-radius: 50%; background: #285c60; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.tb-avatar-lg { width: 44px; height: 44px; font-size: 1rem; }
.tb-name { font-weight: 700; font-size: .95rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-caret { font-size: .7rem; color: #687b86; }
.tb-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #fff; border: 1px solid #d7e2e6;
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: .4rem; z-index: 95;
}
.tb-menu a, .tb-signout {
  display: block; width: 100%; text-align: left; padding: .5rem .7rem; margin: 0; border-radius: 6px; border: none; background: none;
  color: var(--text); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer;
}
.tb-menu a:hover, .tb-signout:hover { background: #e8f6f8; }
.tb-menu a.on { background: #e8f6f8; color: #285c60; font-weight: 600; box-shadow: inset 3px 0 0 #b4497b; }
.tb-menu-title { font-weight: 700; padding: .45rem .7rem .2rem; font-size: .95rem; }
.tb-menu-section { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8797a1; padding: .6rem .7rem .2rem; }
.tb-who { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem .7rem; border-bottom: 1px solid #e6eef0; margin-bottom: .3rem; }
.tb-who strong { display: block; font-size: .95rem; }
.tb-who small { display: block; color: #687b86; font-size: .8rem; }
.tb-role { display: inline-block; margin-top: .25rem; background: #fff5d1; color: #6b5200; border-radius: 999px; padding: 0 .5rem; font-size: .72rem; font-weight: 600; }
.tb-meta { font-size: .78rem; color: #687b86; padding: .1rem .7rem .4rem; }
.tb-signout { color: #a33000; border-top: 1px solid #e6eef0 !important; border-radius: 0 0 6px 6px; margin-top: .3rem; }
@media (max-width: 768px) {
  .admin-topbar { left: 0; padding: 0 .75rem 0 3.6rem; gap: .5rem; }
  body.has-topbar .admin-main { padding-top: calc(var(--topbar-h) + 1rem); }
  .admin-sidebar__toggle { top: 14px; z-index: 120; }
  .tb-name, .tb-caret, .tb-search kbd { display: none; }
  .tb-profile { padding: 0 .3rem; }
}

/* ── Header: bell, Worklist; side menu home tile and collapse ── */
.tb-icon { position: relative; }
.tb-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #b4497b; color: #fff; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; }
.tb-dot[hidden] { display: none; }
.tb-worklist { display: flex; align-items: center; gap: .45rem; height: 42px; margin: 0; padding: 0 1rem; border: none; border-radius: 999px; background: #b4497b; color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 2px 6px rgba(232,25,125,.3); }
.tb-worklist:hover, .tb-worklist[aria-expanded="true"] { background: #9a3d68; }
.tb-worklist .tb-count { background: #fff; color: #9a3d68; }
.tb-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #b4497b; color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.tb-count[hidden] { display: none; }
.tb-menu-title small { font-weight: 400; color: #8797a1; font-size: .75rem; margin-left: .3rem; }
.tb-bell, .tb-work { min-width: 320px; max-height: 70vh; overflow-y: auto; }
.tb-work-item { display: flex !important; justify-content: space-between; align-items: center; gap: .75rem; }
.tb-act { display: flex !important; flex-direction: column; border-left: 3px solid transparent; }
.tb-act small { color: #8797a1; font-size: .75rem; }
.tb-act.new { border-left-color: #b4497b; background: #fff8f3; }
body.has-topbar .admin-sidebar__brand { display: none; }
.admin-sidebar__top { display: flex; align-items: center; justify-content: space-between; padding: .75rem .9rem; min-height: 64px; box-sizing: border-box; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-sidebar__home { width: 46px; height: 46px; border-radius: 12px; background: #b4497b; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.25); flex-shrink: 0; }
.admin-sidebar__home:hover { background: #9a3d68; }
.admin-sidebar__collapse { background: none; border: none; color: rgba(255,255,255,.75); font-size: 1.4rem; line-height: 1; cursor: pointer; margin: 0; padding: .2rem .4rem; border-radius: 6px; }
.admin-sidebar__collapse:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-sidebar { transition: width .2s ease; }
body.sidebar-collapsed .admin-sidebar { width: 76px; overflow-x: hidden; }
body.sidebar-collapsed .admin-sidebar__nav, body.sidebar-collapsed .admin-sidebar__footer { display: none; }
body.sidebar-collapsed .admin-sidebar__top { flex-direction: column; gap: .6rem; padding: .75rem .5rem; }
body.sidebar-collapsed .admin-main { margin-left: 76px; }
body.sidebar-collapsed .admin-topbar { left: 76px; }
@media (max-width: 768px) {
  .tb-worklist span:not(.tb-count) { display: none; }
  .tb-worklist { padding: 0 .7rem; }
  .tb-bell, .tb-work { position: fixed; left: .5rem; right: .5rem; top: 64px; min-width: 0; }
  body.sidebar-collapsed .admin-main { margin-left: 0; }
  body.sidebar-collapsed .admin-topbar { left: 0; }
  .admin-sidebar__collapse { display: none; }
}

/* ── Logo theme: ink side menu with pink / yellow / teal accents ── */
.admin-sidebar { background: var(--ink); }
.admin-sidebar__nav a.active { border-left-color: var(--logo-yellow); background: rgba(255,255,255,.1); }
.admin-sidebar__nav a:hover { border-left-color: rgba(20,181,193,.6); }
.admin-sidebar__section { color: var(--logo-teal); opacity: .85; }
.admin-sidebar__toggle { background: var(--ink); }
.tb-avatar { background: var(--logo-teal); }
.tb-role { background: #fff5d1; color: #6b5200; }
.tb-logo { display: flex; align-items: center; gap: .45rem; text-decoration: none; flex-shrink: 0; }
.tb-logo img { height: 40px; width: auto; }
.tb-wordmark { font-weight: 900; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; -webkit-text-stroke: .6px var(--ink); paint-order: stroke fill; }
.tb-wordmark .p { color: var(--logo-pink); } .tb-wordmark .y { color: var(--logo-yellow); } .tb-wordmark .t { color: var(--logo-teal); }
@media (max-width: 1100px) { .tb-wordmark { display: none; } }
@media (max-width: 768px) { .tb-logo { display: none; } }

/* ── Phone menu for .site-header pages (js/site-nav.js) ── */
.nav-toggle, .nav-donate-quick { display: none; }
@media (max-width: 760px) {
  .site-header { position: relative; gap: .5rem; padding-right: .75rem; }
  .site-brand { margin-right: auto; }
  .site-header .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin: 0; border: none; border-radius: 8px;
    background: rgba(255,255,255,.12); cursor: pointer;
  }
  .site-header .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .nav-donate-quick { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; line-height: 1; margin: 0; }
  .site-header .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 100; flex-direction: column; align-items: stretch;
    background: var(--brand-dark); padding: .4rem 0 .8rem; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header .site-nav a { line-height: 1.2; padding: .95rem 1.25rem; font-size: 1rem; border-bottom: none; }
  .site-header .site-nav a.active { background: rgba(255,255,255,.1); box-shadow: inset 4px 0 0 var(--accent); }
  .site-header .site-nav .nav-donate { display: none; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
}
.nav-donate-quick { text-decoration: none !important; }
