:root {
  --ink: #241b1d;
  --muted: #746b6d;
  --paper: #fbf8f5;
  --surface: #ffffff;
  --surface-soft: #f5efec;
  --line: #e7ded9;
  --red: #7c2432;
  --red-dark: #5d1824;
  --red-soft: #f5e7e9;
  --gold-soft: #f8f0dd;
  --green-soft: #e6f3eb;
  --green: #256b45;
  --blue-soft: #e8eef7;
  --blue: #345b88;
  --amber: #8a5a17;
  --shadow: 0 12px 34px rgba(47, 31, 34, 0.08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Monthly website analytics email reports */
.analytics-email-reports-panel {
  margin-top: 1rem;
}

.analytics-email-reports-head {
  align-items: flex-start;
  gap: 1rem;
}

.analytics-email-reports-head p {
  margin: .28rem 0 0;
}

.analytics-email-report-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1.1rem;
  background: var(--surface-soft);
}

.analytics-email-report-empty p {
  margin: .35rem 0 0;
  color: var(--muted);
}

.analytics-email-report-list {
  display: grid;
  gap: .75rem;
}

.analytics-email-report-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.analytics-email-report-main {
  min-width: 0;
}

.analytics-email-report-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.analytics-email-report-main > p {
  margin: .3rem 0 .6rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.analytics-email-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-size: .82rem;
  color: var(--muted);
}

.analytics-email-report-error {
  color: var(--red) !important;
  font-size: .84rem;
}

.analytics-email-report-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.analytics-email-report-note {
  margin: .9rem 0 0;
  font-size: .82rem;
}

.analytics-email-report-modal {
  width: min(680px, 92vw);
}

.analytics-email-report-modal select {
  width: 100%;
}

.analytics-email-report-schedule {
  border-radius: 10px;
  padding: .85rem 1rem;
  background: var(--surface-soft);
  color: var(--muted);
}

@media (max-width: 760px) {
  .analytics-email-report-row {
    display: block;
  }

  .analytics-email-report-actions {
    justify-content: flex-start;
    margin-top: .9rem;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 4% 0%, rgba(124, 36, 50, 0.06), transparent 26rem),
    var(--paper);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--red);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1rem;
}

small, .muted { color: var(--muted); }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--muted);
}

.brand-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  position: relative;
  flex: 0 0 auto;
  border-radius: 12px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20rx%3D%2214%22%20fill%3D%22%237c2432%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2211%22%20width%3D%2221%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%235d1824%22%20transform%3D%22rotate(-6%2020.5%2020)%22%2F%3E%3Crect%20x%3D%2232%22%20y%3D%229%22%20width%3D%2222%22%20height%3D%2219%22%20rx%3D%225%22%20fill%3D%22%23c7848e%22%20transform%3D%22rotate(6%2043%2018.5)%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2236%22%20width%3D%2222%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23a84f5d%22%20transform%3D%22rotate(5%2020%2045)%22%2F%3E%3Cpath%20d%3D%22M41%2022a14%2014%200%201%200%200%2020%22%20fill%3D%22none%22%20stroke%3D%22%23fbf8f5%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%2F%3E%3Crect%20x%3D%2235%22%20y%3D%2235%22%20width%3D%2222%22%20height%3D%2222%22%20rx%3D%226%22%20fill%3D%22%23f8f0dd%22%20transform%3D%22rotate(-5%2046%2046)%22%2F%3E%3Cpath%20d%3D%22m40%2045%204%204%208-9%22%20fill%3D%22none%22%20stroke%3D%22%237c2432%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  filter: drop-shadow(0 5px 12px rgba(76, 15, 27, .18));
}

.brand-mark span {
  display: none;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.auth-hero {
  padding: clamp(2rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(124,36,50,.97), rgba(76,22,32,.96)),
    var(--red);
  color: white;
  min-height: 100vh;
}

.auth-hero .eyebrow { color: rgba(255,255,255,.7); }
.auth-hero h1 { max-width: 680px; font-size: clamp(2.8rem, 6vw, 5.7rem); }
.auth-hero .lead { max-width: 620px; font-size: 1.15rem; color: rgba(255,255,255,.78); line-height: 1.7; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 650;
}

/* The full-colour cue mark is designed to work on the auth background. */

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  max-width: 720px;
}

.auth-point {
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 1rem;
  color: rgba(255,255,255,.8);
  font-size: .93rem;
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 6vw, 5rem);
}

.auth-card {
  width: min(440px, 100%);
  margin: 0 auto;
}

.auth-card .subtitle {
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.invite-notice {
  padding: 1rem 1.1rem;
  border: 1px solid #dbc2c7;
  background: var(--red-soft);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--red-dark);
}

.segmented {
  display: flex;
  padding: 4px;
  background: var(--surface-soft);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: .7rem;
  color: var(--muted);
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(40,25,28,.08);
}

.form-stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: .42rem;
  font-size: .88rem;
  color: #51484a;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: .78rem .9rem;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(124,36,50,.55);
  box-shadow: 0 0 0 3px rgba(124,36,50,.08);
}

textarea { resize: vertical; min-height: 100px; }

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .72rem 1rem;
  font-weight: 650;
  background: var(--surface);
  color: var(--ink);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-danger {
  background: #fff5f5;
  color: #8f2630;
  border-color: #f1ced2;
}

.btn-small { padding: .5rem .7rem; font-size: .86rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.error-text {
  color: #9a2833;
  background: #fff0f1;
  border: 1px solid #f2cdd1;
  border-radius: 10px;
  padding: .75rem .85rem;
  font-size: .9rem;
}

.success-text {
  color: var(--green);
  background: var(--green-soft);
  border-radius: 10px;
  padding: .75rem .85rem;
  font-size: .9rem;
}

.workspace-setup {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.workspace-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}

.workspace-card .brand-mark { margin: 0 0 1.25rem; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #2b2022;
  color: white;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  z-index: 4;
}

.logo {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .5rem .5rem 1.5rem;
}

.logo .brand-mark { width: 38px; height: 38px; margin: 0; border-radius: 10px; filter: none; }
.logo strong { display: block; letter-spacing: -.02em; }
.logo small { color: rgba(255,255,255,.52); }

.nav {
  display: grid;
  align-content: start;
  gap: .3rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: .35rem;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.42) transparent;
}

.nav::-webkit-scrollbar {
  width: 8px;
}

.nav::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.34);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.nav button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.66);
  padding: .78rem .82rem;
  border-radius: 11px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav button:hover, .nav button.active {
  background: rgba(255,255,255,.09);
  color: white;
}

.nav-count {
  min-width: 24px;
  padding: .1rem .38rem;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  text-align: center;
  font-size: .75rem;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem .5rem .25rem;
}

.sidebar-footer strong { font-size: .9rem; display: block; }
.sidebar-footer span { color: rgba(255,255,255,.52); font-size: .8rem; }

.main {
  min-width: 0;
  padding: 1.2rem clamp(1rem, 3.8vw, 3.5rem) 4rem;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.workspace-switcher {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.workspace-switcher select {
  width: auto;
  min-width: 180px;
  padding: .55rem .7rem;
  border-radius: 10px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.role-chip, .chip, .status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .32rem .62rem;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}

.role-chip { background: var(--red-soft); color: var(--red-dark); text-transform: capitalize; }
.chip { background: var(--surface-soft); color: var(--muted); }
.chip.high { background: var(--red-soft); color: var(--red-dark); }
.chip.medium { background: var(--gold-soft); color: var(--amber); }
.chip.low { background: var(--blue-soft); color: var(--blue); }

.status.pending, .status.approval { background: var(--gold-soft); color: var(--amber); }
.status.approved, .status.published { background: var(--green-soft); color: var(--green); }
.status.declined, .status.archived { background: #f4e9ea; color: #815159; }
.status.needs_info, .status.drafting { background: var(--blue-soft); color: var(--blue); }
.status.idea, .status.planned, .status.scheduled { background: var(--surface-soft); color: #5c5355; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.page-head p { margin-bottom: 0; color: var(--muted); max-width: 680px; line-height: 1.55; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: .45rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -.04em;
  margin: .25rem 0;
}

.stat-card small { line-height: 1.4; display: block; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 1.25rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-bottom: .8rem;
}

.panel-head h2, .panel-head h3 { margin: 0; }

.list {
  display: grid;
}

.list-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}

.list-row:first-child { border-top: 0; }

.date-tile {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--surface-soft);
  border-radius: 11px;
}

.date-tile strong { font-size: 1.1rem; line-height: 1; }
.date-tile span { font-size: .68rem; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.list-row p { margin: .18rem 0 0; color: var(--muted); font-size: .86rem; }
.list-row strong { font-size: .93rem; }

.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.empty strong { display: block; color: var(--ink); margin-bottom: .35rem; }

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-toolbar .month-title { font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; }
.toolbar-group { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.calendar {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.weekdays, .month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.weekdays div {
  padding: .65rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.day {
  min-height: 132px;
  padding: .52rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.day:nth-child(7n) { border-right: 0; }
.day.other-month { background: #fcfbfa; color: #aaa2a4; }
.day.today { box-shadow: inset 0 0 0 2px rgba(124,36,50,.32); }

.day-number {
  font-size: .78rem;
  font-weight: 750;
  margin-bottom: .4rem;
}

.calendar-item {
  display: block;
  width: 100%;
  border: 0;
  border-left: 3px solid var(--red);
  border-radius: 7px;
  background: var(--red-soft);
  padding: .38rem .42rem;
  margin: .3rem 0 0;
  text-align: left;
  color: var(--red-dark);
  font-size: .72rem;
  line-height: 1.25;
  overflow: hidden;
}

.calendar-item[data-type="event"] {
  border-left-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}
.calendar-item[data-type="content_idea"] {
  border-left-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.calendar-item[data-type="content_idea"][data-idea-kind="planning"] {
  border-left-color: var(--amber);
  background: var(--gold-soft);
  color: var(--amber);
}
.calendar-item[data-type="campaign"] { border-left-color: var(--green); background: var(--green-soft); color: var(--green); }
.calendar-item[data-type="fundraising_opportunity"] { border-left-color: #a56c17; background: var(--gold-soft); color: var(--amber); }

.cards {
  display: grid;
  gap: .85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); line-height: 1.5; margin-bottom: .5rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  color: var(--muted);
  font-size: .8rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

.board-column {
  min-width: 0;
}

.board-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem;
  margin-bottom: .65rem;
}

.content-card h3 { font-size: .94rem; margin-bottom: .4rem; }
.content-card p { font-size: .82rem; line-height: 1.45; color: var(--muted); }

.inline-select {
  width: auto;
  padding: .42rem .55rem;
  font-size: .78rem;
  border-radius: 9px;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 1rem;
}

.member-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}

.member-row:first-child { border-top: 0; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.invite-link {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.invite-link input { font-size: .8rem; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.integration {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface-soft);
  border-radius: 14px;
  margin-top: .7rem;
}

.modal {
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(37,20,24,.25);
}

.modal::backdrop { background: rgba(35,26,28,.48); backdrop-filter: blur(3px); }

.modal-inner { padding: 1.3rem; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-head h2 { margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .9rem;
}
.form-grid .full { grid-column: 1 / -1; }

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: grid;
  gap: .5rem;
  width: min(360px, calc(100vw - 2rem));
}

.toast {
  background: #2c2325;
  color: white;
  padding: .85rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease-out;
}

.toast.error { background: #8b2935; }

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-menu { display: none; }

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { min-height: auto; padding: 2rem; }
  .auth-hero h1 { font-size: 3rem; }
  .auth-points { margin-top: 2rem; }
  .auth-panel { min-height: 60vh; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2, .team-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .day { min-height: 112px; }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    padding: .7rem;
    flex-direction: row;
    align-items: center;
  }
  .sidebar .logo { padding: 0; margin-right: auto; }
  .sidebar .nav, .sidebar-footer { display: none; }
  .mobile-menu { display: inline-flex; }
  .main { padding: .8rem 1rem 3rem; }
  .topbar { min-height: auto; }
  .user-actions .role-chip { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .calendar { overflow-x: auto; }
  .weekdays, .month-grid { min-width: 700px; }
  .settings-grid, .board { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}

@media (max-width: 520px) {
  .auth-points { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-card .number { font-size: 1.6rem; }
  .workspace-switcher select { min-width: 120px; max-width: 160px; }
}


/* CommsCue identity refresh — coordinated content tiles */
.brand-lockup {
  display: block;
  height: auto;
  max-width: 100%;
}

.brand-lockup-light { width: min(290px, 78vw); }

.auth-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}

.auth-brand small {
  padding-left: 4.6rem;
  color: rgba(255,255,255,.64);
  letter-spacing: .02em;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 28px;
  pointer-events: none;
}

.auth-hero::before {
  width: 210px;
  height: 170px;
  right: -62px;
  top: 12%;
  background:
    linear-gradient(90deg, rgba(251,248,245,.08) 0 47%, transparent 47% 53%, rgba(199,132,142,.2) 53%);
  transform: rotate(7deg);
}

.auth-hero::after {
  width: 150px;
  height: 150px;
  left: 8%;
  bottom: -92px;
  background: rgba(248,240,221,.09);
  transform: rotate(-6deg);
}

.brand-lockup-setup {
  width: min(270px, 72vw);
  margin: 0 0 1.65rem;
}

.workspace-setup {
  background:
    linear-gradient(rgba(251,248,245,.9), rgba(251,248,245,.9)),
    radial-gradient(circle at 15% 20%, var(--red-soft), transparent 26rem),
    radial-gradient(circle at 90% 80%, var(--gold-soft), transparent 24rem);
}

.workspace-card {
  position: relative;
  overflow: hidden;
}

.workspace-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -38px;
  top: -38px;
  border-radius: 24px;
  background: var(--red-soft);
  transform: rotate(7deg);
  z-index: 0;
}

.workspace-card > * { position: relative; z-index: 1; }

.sidebar {
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, var(--ink) 0%, var(--red-dark) 115%);
}

.sidebar::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 128px;
  right: -86px;
  bottom: 12%;
  border-radius: 26px;
  background: rgba(199,132,142,.12);
  transform: rotate(7deg);
  z-index: -1;
}

.sidebar > * { position: relative; z-index: 1; }

.logo {
  display: block;
  padding: .35rem .45rem 1.65rem;
}

.brand-lockup-sidebar { width: 184px; }

.logo small {
  display: block;
  margin: .28rem 0 0 3.2rem;
  color: rgba(255,255,255,.54);
  font-size: .69rem;
}

.nav button {
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav button:hover {
  background: rgba(245,231,233,.1);
  color: white;
  transform: translateX(2px);
}

.nav button.active {
  background: var(--paper);
  color: var(--red);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 8px 22px rgba(24,12,15,.16);
}

.nav button.active .nav-count {
  background: var(--red-soft);
  color: var(--red);
}

.main {
  background:
    radial-gradient(circle at 100% 0%, rgba(245,231,233,.62), transparent 24rem),
    var(--paper);
}

.topbar {
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin: 0 .48rem .05rem 0;
  border-radius: 2px;
  background: #c7848e;
  transform: rotate(7deg);
}

.btn-primary {
  box-shadow: 0 7px 18px rgba(124,36,50,.16);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199,132,142,.32);
  outline-offset: 2px;
}

.card,
.workspace-card,
.auth-card {
  border-color: var(--line);
}

.card {
  box-shadow: 0 5px 18px rgba(47,31,34,.035);
}

.boot-wordmark,
.diagnostic-wordmark {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto .4rem;
}

@media (max-width: 760px) {
  .brand-lockup-sidebar { width: 160px; }
  .logo small { margin-left: 2.75rem; }
  .auth-brand small { padding-left: 3.85rem; }
}


/* Newsletter ideas — compact checklist actions */
.newsletter-idea-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
}

.newsletter-idea-actions {
  display: flex;
  align-items: center;
  gap: .32rem;
  padding-top: .02rem;
}

.newsletter-idea-action {
  min-height: 0;
  padding: .34rem .52rem;
  border-radius: 8px;
  font-size: .76rem;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: none;
}

.newsletter-idea-action:hover {
  transform: none;
}

/* Google Analytics — simple website performance dashboard */
.analytics-page-head {
  align-items: center;
}

.analytics-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

.analytics-range.segmented {
  width: auto;
  min-width: 370px;
  margin: 0;
}

.analytics-range.segmented button {
  padding: .58rem .72rem;
  white-space: nowrap;
}

.analytics-attention {
  margin-bottom: 1rem;
  border-color: #e0c897;
  background: var(--gold-soft);
}

.analytics-attention p:last-child {
  margin-bottom: 0;
}

.analytics-live-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem 1.45rem;
  margin-bottom: 1rem;
  border: 1px solid #c8dfd1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-soft), #fff 72%);
}

.analytics-live-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.analytics-live-number {
  margin: .05rem 0;
  color: var(--green);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.055em;
}

.analytics-live-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .2rem .45rem;
  min-width: 142px;
  padding: .75rem .85rem;
  border: 1px solid rgba(37, 107, 69, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.analytics-live-meta small {
  grid-column: 2;
}

.analytics-live-dot {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(37, 107, 69, .1);
}

.analytics-stats-grid {
  margin-bottom: 1.25rem;
}

.analytics-stat-card {
  min-width: 0;
}

.analytics-detail-grid {
  align-items: start;
}

.analytics-list {
  display: grid;
}

.analytics-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}

.analytics-list-row:first-child {
  border-top: 0;
}

.analytics-list-row strong {
  font-size: .92rem;
}

.analytics-list-row p {
  margin: .18rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.analytics-list-value {
  display: grid;
  min-width: 54px;
  text-align: right;
}

.analytics-list-value strong {
  color: var(--red);
  font-size: 1.05rem;
}

.analytics-list-value small {
  font-size: .7rem;
}

.analytics-empty {
  padding: 1.35rem .8rem;
}

.analytics-pages-actions {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.analytics-pages-actions .btn {
  width: 100%;
}

.analytics-page-search {
  margin: 1rem 0 .65rem;
}

.analytics-modal-result-count {
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .76rem;
}

.analytics-all-pages-list {
  max-height: 52vh;
  overflow-y: auto;
  padding-right: .35rem;
  scrollbar-gutter: stable;
}

.analytics-updated {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem .15rem 0;
  color: var(--muted);
  font-size: .76rem;
}

.analytics-social-panel {
  margin-top: 1.25rem;
  background: var(--surface-soft);
}

.analytics-social-panel p:last-child {
  margin-bottom: 0;
}

.analytics-social-panel > .panel-head > div > p {
  margin: .2rem 0 0;
}

.meta-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.meta-social-platform {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.meta-social-platform-head,
.meta-social-platform-head > div {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.meta-social-platform-head {
  justify-content: space-between;
}

.meta-social-platform-head h3,
.meta-social-platform-head p {
  margin: 0;
}

.meta-social-platform-head p {
  margin-top: .12rem;
  color: var(--muted);
  font-size: .76rem;
}

.meta-social-network {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1;
}

.meta-social-network.facebook {
  background: #1877f2;
}

.meta-social-network.instagram {
  background: linear-gradient(135deg, #6f3bc2 5%, #c13584 45%, #f77737 76%, #fcaf45);
}

.meta-social-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1rem;
}

.meta-social-metric {
  min-width: 0;
  padding: .72rem .75rem;
  border-radius: 11px;
  background: var(--surface-soft);
}

.meta-social-metric small,
.meta-social-metric span {
  display: block;
  color: var(--muted);
}

.meta-social-metric strong {
  display: block;
  margin: .12rem 0;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -.025em;
}

.meta-social-metric span {
  font-size: .68rem;
}

.meta-social-top {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.meta-social-top .panel-head {
  margin-bottom: .15rem;
}

.meta-social-top h4 {
  margin: 0;
  font-size: .9rem;
}

.meta-social-content-row a {
  color: inherit;
  text-decoration: none;
}

.meta-social-content-row a:hover strong {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meta-social-not-connected,
.meta-social-needs-attention {
  align-content: start;
}

.meta-social-not-connected > p,
.meta-social-needs-attention > p {
  margin: 1rem 0;
}

.meta-social-needs-attention {
  border-color: #e0c897;
  background: var(--gold-soft);
}

.meta-social-error {
  margin-top: .8rem;
  padding: .8rem .9rem;
  border: 1px solid #e0c897;
  border-radius: 12px;
  background: var(--gold-soft);
}

.meta-social-error p {
  margin: .2rem 0 0;
}

.meta-social-updated {
  margin-top: .3rem;
}

.meta-social-integration {
  align-items: flex-start;
}

.meta-social-integration-actions {
  margin-top: .65rem;
}

.meta-social-account-select {
  max-width: 24rem;
  margin-top: .7rem;
  font-size: .78rem;
}

.meta-social-account-select select {
  padding: .58rem .68rem;
  font-size: .82rem;
}

@media (max-width: 760px) {
  .analytics-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .analytics-live-card {
    align-items: flex-start;
  }

  .analytics-updated {
    flex-direction: column;
  }

  .meta-social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .analytics-controls,
  .analytics-live-card {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-range.segmented {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Visible profile selection, including accounts with one organisation. */
.workspace-switcher { min-width:0; flex:1; }
.workspace-profile-label { display:block; margin:0 0 .35rem; font-size:.875rem; color:var(--muted); }
.workspace-profile-controls { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.workspace-profile-controls select { width:auto; max-width:100%; min-width:180px; font-size:1rem; }
.workspace-profile-controls .btn { white-space:normal; }
@media (max-width:900px) {
  .topbar { align-items:flex-start; flex-wrap:wrap; gap:.8rem; }
  .workspace-switcher { flex-basis:100%; }
  .user-actions { flex-wrap:wrap; }
}
@media (max-width:560px) {
  .workspace-profile-controls { align-items:stretch; flex-direction:column; }
.workspace-profile-controls select { width:100%; min-width:0; }
}

/* Volunteer administration and ambassador training share the app stylesheet. */
.volunteer-tabs,.volunteer-checklist { margin:1rem 0 1.3rem; }
.volunteer-tabs { display:flex; gap:.6rem; flex-wrap:wrap; }
.volunteer-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1rem; }
.volunteer-metrics .panel { display:flex; flex-direction:column; gap:.35rem; }
.volunteer-metrics strong { font-size:2rem; font-weight:700; }
.volunteer-metrics span,.volunteer-meta { color:var(--muted); font-size:.9rem; line-height:1.45; }
.volunteer-meta { display:block; margin:.35rem 0 0; overflow-wrap:anywhere; }
.volunteer-table-wrap { overflow-x:auto; }
.volunteer-table { width:100%; border-collapse:collapse; text-align:left; font-size:1rem; }
.volunteer-table th,.volunteer-table td { padding:1rem .6rem; border-bottom:1px solid var(--line); vertical-align:middle; }
.volunteer-table td:last-child { text-align:right; }
.volunteer-table progress { display:block; width:8rem; height:.65rem; margin-top:.45rem; accent-color:var(--green); }
.volunteer-status { display:inline-block; border-radius:.45rem; padding:.35rem .55rem; background:var(--surface-soft); font-size:.875rem; }
.volunteer-status.is-complete { background:var(--green-soft); color:var(--green); }
.volunteer-module-list { display:grid; gap:.8rem; margin-top:1rem; }
.volunteer-module-row { display:flex; gap:1rem; align-items:center; border:1px solid var(--line); border-radius:.8rem; padding:1rem; }
.volunteer-module-row>div:not(.actions) { flex:1; min-width:0; }
.volunteer-module-row h3 { margin:0; font-size:1.1rem; }
.volunteer-module-row p { margin:.3rem 0 0; }
.volunteer-number { display:grid; place-items:center; flex:0 0 2.4rem; height:2.4rem; border-radius:50%; background:var(--red-soft); color:var(--red); font-weight:700; }
.volunteer-empty { padding:1.4rem 0; max-width:40rem; }
.volunteer-review,.volunteer-lesson-editor { width:min(740px,92vw); }
.volunteer-check { display:flex; align-items:flex-start; gap:.7rem; line-height:1.5; font-size:1rem; }
.volunteer-check input { width:1.1rem; height:1.1rem; flex:0 0 1.1rem; margin:.2rem 0 0; }
.volunteer-review ul { line-height:1.7; }
.volunteer-portal { max-width:1080px; margin:auto; padding:1.5rem; font-size:1rem; }
.volunteer-portal h1 { font-size:clamp(1.8rem,4vw,2.5rem); }
.volunteer-topbar { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding-bottom:1.3rem; border-bottom:1px solid var(--line); margin-bottom:1.5rem; }
.volunteer-brand { font-size:1.1rem; font-weight:700; color:var(--red); }
.volunteer-topbar .actions { flex-wrap:wrap; }
.volunteer-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(16rem,1fr); gap:1.2rem; align-items:start; }
.volunteer-layout .panel { margin:0 0 1rem; }
.volunteer-progress { width:100%; height:.8rem; accent-color:var(--green); margin:.8rem 0; }
.volunteer-portal .muted { color:#63595d; }
.volunteer-lesson { max-width:760px; margin:0 auto; }
.volunteer-lesson .lesson-text p { line-height:1.75; font-size:1rem; margin:0 0 1.2rem; }
.volunteer-quiz { margin-top:1.6rem; }
.volunteer-quiz fieldset { margin:1.2rem 0; border:1px solid var(--line); border-radius:.8rem; padding:1rem; min-width:0; }
.volunteer-quiz legend { font-weight:600; font-size:1rem; padding:0 .3rem; }
.volunteer-quiz label { display:flex; align-items:flex-start; gap:.7rem; padding:.5rem 0; line-height:1.5; font-size:1rem; }
.volunteer-quiz input { width:1rem; height:1rem; min-width:1rem; flex:0 0 1rem; padding:0; margin:.25rem 0 0; }
.volunteer-feedback { border-radius:.65rem; padding:1rem; background:var(--gold-soft); color:#63400e; margin:1rem 0; line-height:1.5; }
.volunteer-feedback.passed { background:var(--green-soft); color:var(--green); }
.volunteer-auth { max-width:480px; margin:2rem auto; }
.volunteer-auth h1 { font-size:1.9rem; }
.volunteer-portal .btn { min-height:42px; font-size:.95rem; }
.volunteer-portal input,.volunteer-portal textarea { font-size:1rem; }
.volunteer-signoff-list { padding-left:1.2rem; line-height:1.7; }
.volunteer-portal .panel { padding:1.3rem; }
.volunteer-portal a:not(.btn) { color:var(--red); text-decoration:underline; }
.volunteer-portal .sr-only,.volunteer-table .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:820px) { .volunteer-layout { grid-template-columns:1fr; } .volunteer-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .volunteer-portal { padding:1rem; } .volunteer-topbar { align-items:flex-start; flex-direction:column; } .volunteer-module-row { flex-wrap:wrap; } .volunteer-module-row>.btn,.volunteer-module-row>.actions { margin-left:3.4rem; } .volunteer-portal .volunteer-module-row>.btn { margin-left:0; } }

/* A welcoming home for volunteers, with learning kept on its own page. */
.volunteer-account-name { max-width:22rem; overflow-wrap:anywhere; }
.volunteer-nav { display:flex; gap:.4rem; flex-wrap:wrap; margin:-.3rem 0 1.6rem; }
.volunteer-portal .volunteer-nav a { display:block; padding:.7rem 1.1rem; border-radius:.7rem; font-weight:600; color:var(--muted); text-decoration:none; }
.volunteer-portal .volunteer-nav a:hover { background:var(--surface-soft); color:var(--red); }
.volunteer-portal .volunteer-nav a[aria-current="page"] { background:var(--red-soft); color:var(--red); }
.volunteer-nav a:focus-visible { outline:3px solid var(--red); outline-offset:3px; }
.volunteer-programme { max-width:30rem; margin-bottom:1.2rem; }
.volunteer-icon { display:grid; place-items:center; flex:0 0 2.9rem; width:2.9rem; height:2.9rem; border-radius:.85rem; background:var(--red-soft); color:var(--red); }
.volunteer-icon svg { width:1.55rem; height:1.55rem; }
.volunteer-welcome-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(20rem,1fr); gap:3.2rem; align-items:center; padding:1rem 0 2rem; }
.volunteer-welcome { padding:1.2rem .2rem; }
.volunteer-welcome h1 { font-size:clamp(2.2rem,5vw,3.4rem); line-height:1.1; letter-spacing:-.035em; margin:.9rem 0 1rem; }
.volunteer-welcome .volunteer-lead { font-size:1.2rem; font-weight:600; color:var(--red); line-height:1.5; }
.volunteer-welcome>p { max-width:34rem; line-height:1.65; }
.volunteer-welcome-features { display:grid; gap:1.4rem; margin-top:2rem; }
.volunteer-welcome-features>div { display:flex; gap:1rem; align-items:flex-start; }
.volunteer-welcome-features h2 { font-size:1.05rem; margin:.1rem 0 .35rem; }
.volunteer-welcome-features p { margin:0; font-size:.95rem; color:#63595d; line-height:1.5; }
.volunteer-welcome-layout .volunteer-auth { width:100%; max-width:none; margin:0; padding:1.7rem; box-shadow:var(--shadow); }
.volunteer-auth h2 { font-size:1.75rem; letter-spacing:-.025em; line-height:1.2; margin:.9rem 0; }
.volunteer-auth>p { line-height:1.55; }
.volunteer-auth .form-stack { margin:1.25rem 0; }
.volunteer-home-welcome { display:flex; justify-content:space-between; gap:1.5rem; align-items:center; margin-bottom:1.4rem; padding:1.8rem 2rem; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(115deg,var(--red-soft),var(--paper) 75%); }
.volunteer-home-welcome h1 { margin:.65rem 0; line-height:1.15; letter-spacing:-.03em; }
.volunteer-home-welcome p:last-child { max-width:40rem; margin:0; line-height:1.6; color:#63595d; }
.volunteer-home-welcome>.volunteer-icon { width:4.7rem; height:4.7rem; flex-basis:4.7rem; border-radius:1.4rem; background:var(--surface); }
.volunteer-home-welcome>.volunteer-icon svg { width:2.4rem; height:2.4rem; }
.volunteer-home-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:1.2rem; margin-bottom:1.2rem; }
.volunteer-portal .volunteer-next-step,.volunteer-portal .volunteer-home-progress { padding:1.6rem; }
.volunteer-next-step h2 { font-size:1.6rem; letter-spacing:-.02em; line-height:1.25; margin:.8rem 0; }
.volunteer-next-step>p:not(.eyebrow) { color:#63595d; line-height:1.65; }
.volunteer-next-lesson { display:flex; align-items:center; gap:.8rem; padding:1rem; margin:1.2rem 0; border:1px solid var(--line); border-radius:.8rem; }
.volunteer-next-lesson .volunteer-meta { margin:0 0 .2rem; }
.volunteer-next-lesson strong { line-height:1.45; }
.volunteer-next-step>.btn { margin-top:.4rem; }
.volunteer-home-progress .panel-head { align-items:flex-start; flex-wrap:wrap; gap:.6rem; }
.volunteer-home-progress h2 { font-size:1.2rem; }
.volunteer-progress-count { display:flex; flex-direction:column; gap:.35rem; margin:1.1rem 0 0; }
.volunteer-progress-count strong { font-size:3rem; color:var(--red); line-height:1; font-weight:700; }
.volunteer-progress-count span { color:#63595d; line-height:1.5; }
.volunteer-home-progress .btn { padding-left:0; }
.volunteer-home-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.2rem; margin-bottom:1.2rem; }
.volunteer-home-links .panel { display:flex; flex-direction:column; align-items:flex-start; }
.volunteer-home-links h2 { font-size:1.15rem; line-height:1.3; margin:1rem 0 .6rem; }
.volunteer-home-links p { color:#63595d; line-height:1.6; margin:0 0 1.2rem; }
.volunteer-home-links .btn { margin-top:auto; }
.volunteer-journey .panel-head { align-items:flex-start; flex-wrap:wrap; gap:.8rem; }
.volunteer-journey h2 { font-size:1.2rem; }
.volunteer-journey ol { list-style:none; padding:0; margin:1.4rem 0 .2rem; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.2rem; }
.volunteer-journey li { display:flex; align-items:flex-start; gap:.7rem; min-width:0; }
.volunteer-journey-marker { display:grid; place-items:center; width:1.7rem; height:1.7rem; flex:0 0 1.7rem; border-radius:50%; background:var(--surface-soft); color:var(--muted); font-size:.9rem; font-weight:700; }
.volunteer-journey li.is-complete .volunteer-journey-marker { color:var(--green); background:var(--green-soft); }
.volunteer-journey h3 { font-size:.95rem; margin:.15rem 0 .45rem; line-height:1.3; }
.volunteer-journey p { font-size:.875rem; line-height:1.5; color:#63595d; margin:0; }
.volunteer-support-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:1.2rem; margin-bottom:1.2rem; }
.volunteer-support-grid .panel { padding:1.5rem; }
.volunteer-support-grid h2,.volunteer-support-resources h2 { font-size:1.25rem; }
.volunteer-support-grid p,.volunteer-support-resources p { line-height:1.65; color:#63595d; }
.volunteer-contact .volunteer-icon { margin-bottom:1rem; }
.volunteer-support-grid details { border-bottom:1px solid var(--line); padding:1rem 0; }
.volunteer-support-grid details:last-child { border-bottom:0; }
.volunteer-support-grid summary { cursor:pointer; font-weight:600; line-height:1.5; }
.volunteer-support-grid details p { margin:.8rem 0 0; }
.volunteer-support-resources ul { line-height:1.8; padding-left:1.2rem; margin-bottom:1.2rem; }
#v-conduct,#v-review { scroll-margin-top:1rem; }

/* Guided volunteer learning, including a native full-screen and mobile focus view. */
#app.v-focus,#app:fullscreen { position:fixed; inset:0; width:100%; height:100%; z-index:1000; background:var(--paper); overflow-y:auto; overscroll-behavior:contain; }
.volunteer-course { max-width:1240px; min-height:100svh; margin:0 auto; padding:1.2rem 1.6rem 2rem; font-size:1rem; }
.v-course-top { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0 0 1.1rem; border-bottom:1px solid var(--line); margin-bottom:1.4rem; }
.v-course-programme { display:block; color:var(--muted); font-size:.82rem; margin-top:.3rem; line-height:1.4; }
.v-course-top .actions { flex-wrap:wrap; }
.v-course-top .btn,.v-learning-footer .btn { min-height:44px; }
.v-course-layout { display:grid; grid-template-columns:15.5rem minmax(0,1fr); gap:2.2rem; align-items:start; }
.v-course-sidebar { position:sticky; top:1rem; }
.v-course-summary h2 { margin:.7rem 0 .6rem; font-size:1.1rem; }
.v-course-summary p:not(.eyebrow) { font-size:.875rem; line-height:1.5; color:var(--muted); }
.v-course-summary progress { width:100%; height:.6rem; accent-color:var(--green); margin:0 0 1rem; }
.v-outline-toggle { display:none; }
.v-module-outline { display:grid; gap:.35rem; }
.v-module-outline button { display:flex; width:100%; align-items:flex-start; gap:.65rem; text-align:left; padding:.9rem .65rem; border-radius:.7rem; border:1px solid transparent; color:var(--muted); background:transparent; font:inherit; font-size:.9rem; line-height:1.4; cursor:pointer; }
.v-module-outline button:hover { background:var(--surface-soft); }
.v-module-outline button[aria-current="step"] { background:var(--red-soft); border-color:#ead1d6; color:var(--red); font-weight:600; }
.v-module-outline small { display:block; margin-top:.35rem; font-weight:400; font-size:.77rem; color:var(--muted); }
.v-outline-number { display:grid; place-items:center; width:1.55rem; height:1.55rem; flex:0 0 1.55rem; border-radius:50%; color:var(--muted); background:var(--surface); font-size:.8rem; font-weight:700; }
.v-outline-number.is-complete { background:var(--green-soft); color:var(--green); }
.v-course-main { min-width:0; max-width:800px; }
.v-module-meta { display:flex; gap:.6rem 1rem; flex-wrap:wrap; align-items:center; font-size:.85rem; color:var(--muted); line-height:1.4; }
.v-complete-label { color:var(--green); font-weight:600; }
.v-module-heading h1 { font-size:clamp(1.6rem,3.3vw,2.3rem); letter-spacing:-.025em; line-height:1.2; margin:.7rem 0 1.2rem; }
.v-stage-nav { display:flex; flex-wrap:wrap; gap:.35rem; border-bottom:1px solid var(--line); margin-bottom:1.4rem; padding-bottom:.7rem; }
.v-stage-nav button { display:flex; align-items:center; gap:.45rem; background:transparent; border:1px solid transparent; color:var(--muted); font:inherit; font-size:.9rem; font-weight:600; padding:.6rem .8rem; border-radius:.7rem; min-height:44px; cursor:pointer; }
.v-stage-nav button>span { display:grid; place-items:center; width:1.4rem; height:1.4rem; background:var(--surface-soft); border-radius:50%; font-size:.8rem; }
.v-stage-nav button[aria-current="step"] { background:var(--red-soft); border-color:#ead1d6; color:var(--red); }
.v-stage-nav button:hover { background:var(--surface-soft); }
.v-learning-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.8rem 2rem; margin-bottom:1rem; }
.v-learning-card h2 { font-size:1.5rem; line-height:1.3; letter-spacing:-.02em; margin:.8rem 0 1.1rem; }
.v-learning-point { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.6rem; color:var(--muted); font-size:.85rem; }
.v-learning-point progress { width:7rem; height:.4rem; accent-color:var(--red); }
.v-learning-text { font-size:1.08rem; line-height:1.8; color:#443b3d; white-space:normal; overflow-wrap:anywhere; }
.v-learning-text+.btn { margin-top:1.3rem; }
.v-learning-goals { background:var(--blue-soft); color:#294969; border:1px solid #d5e0ed; border-radius:1rem; padding:1.15rem 1.4rem; margin-bottom:1rem; }
.v-learning-goals h2 { font-size:1rem; line-height:1.5; margin:0 0 .6rem; }
.v-learning-goals ul { padding-left:1.2rem; margin:0; font-size:.95rem; line-height:1.65; }
.v-learning-footer { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.9rem 0; position:sticky; bottom:0; background:var(--paper); z-index:2; border-top:1px solid var(--line); }
.v-learning-footer>span { font-size:.9rem; color:var(--muted); white-space:nowrap; }
.v-learning-intro { color:#63595d; line-height:1.65; }
.v-scenario { border-left:4px solid var(--red); border-radius:0 .7rem .7rem 0; padding:1rem 1.2rem; background:var(--red-soft); line-height:1.7; margin:1.3rem 0; color:var(--red-dark); font-weight:500; }
.v-practice form>label { font-weight:600; margin-bottom:.5rem; }
.v-practice textarea { font-size:1rem; line-height:1.6; min-height:7rem; width:100%; resize:vertical; }
.v-example { padding:1.2rem 1.4rem; margin-top:1.3rem; border:1px solid #cadfcf; border-radius:.9rem; background:var(--green-soft); }
.v-example h3 { font-size:1.1rem; margin:0 0 .7rem; color:var(--green); }
.v-example p { line-height:1.7; margin:.5rem 0 0; }
.v-check-form fieldset { padding:0; border:0; margin:1.7rem 0 2rem; min-width:0; }
.v-check-form legend { font-size:1.05rem; line-height:1.6; font-weight:600; padding:0; margin-bottom:.9rem; }
.v-check-form legend>span { display:block; color:var(--muted); font-size:.82rem; font-weight:500; margin-bottom:.5rem; }
.v-answer-options { display:grid; gap:.7rem; }
.volunteer-course .v-answer { display:flex; align-items:flex-start; gap:.85rem; border:2px solid var(--line); border-radius:.85rem; padding:1rem 1.1rem; cursor:pointer; line-height:1.55; font-size:1rem; color:var(--ink); min-height:54px; margin:0; }
.v-answer:hover { border-color:#cfaeb5; background:var(--paper); }
.v-answer:has(input:checked) { border-color:var(--red); background:var(--red-soft); }
.v-answer:has(input:focus-visible) { outline:3px solid var(--red); outline-offset:3px; }
.volunteer-course .v-answer input[type="checkbox"] { width:1.2rem; height:1.2rem; min-width:1.2rem; flex:0 0 1.2rem; margin:.18rem 0 0; accent-color:var(--red); }
.v-quiz-submit { display:flex; align-items:center; justify-content:space-between; gap:1rem; border-top:1px solid var(--line); padding-top:1.2rem; }
.v-quiz-submit p { color:var(--muted); line-height:1.6; font-size:.875rem; margin:0; max-width:23rem; }
.v-quiz-submit .btn { min-height:48px; white-space:nowrap; }
.v-results-summary { display:flex; align-items:flex-start; gap:1rem; padding:1.5rem; border:1px solid #e8d4a5; border-radius:var(--radius); background:var(--gold-soft); margin-bottom:1.4rem; }
.v-results-summary.is-passed { background:var(--green-soft); border-color:#c8dfd0; }
.v-results-summary h2 { font-size:1.5rem; margin:.6rem 0; line-height:1.3; }
.v-results-summary p:not(.eyebrow) { line-height:1.65; margin:0; }
.v-results-mark { display:grid; place-items:center; width:2.7rem; height:2.7rem; flex:0 0 2.7rem; font-size:1.6rem; font-weight:700; color:var(--amber); background:var(--surface); border-radius:50%; }
.is-passed .v-results-mark { color:var(--green); }
.v-result-list { display:grid; gap:1rem; margin-bottom:1rem; }
.v-answer-result { border:1px solid var(--line); border-radius:var(--radius); padding:1.4rem 1.6rem; background:var(--surface); }
.v-result-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; color:var(--muted); font-size:.85rem; }
.v-result-heading strong { color:var(--amber); }
.is-correct .v-result-heading strong { color:var(--green); }
.v-answer-result h3 { font-size:1.1rem; line-height:1.6; margin:.9rem 0; }
.v-selected-answer { color:var(--muted); font-size:.95rem; line-height:1.6; }
.v-correct-answer { display:flex; align-items:flex-start; gap:.7rem; padding:.9rem 1rem; background:var(--green-soft); border-radius:.7rem; color:var(--green); }
.v-correct-answer>span { font-size:1.2rem; font-weight:700; }
.v-correct-answer p { margin:0; font-size:.95rem; line-height:1.6; }
.v-correct-answer strong { display:block; margin-bottom:.25rem; }
.v-answer-explanation h4 { margin:1.1rem 0 .45rem; font-size:.95rem; }
.v-answer-explanation p { margin:0; color:#63595d; line-height:1.7; font-size:.95rem; }
.volunteer-course button:focus-visible { outline:3px solid var(--red); outline-offset:3px; }
.volunteer-course .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#v-learning-content { scroll-margin-top:1rem; }
@media(max-width:900px) {
  .v-course-layout { grid-template-columns:12.5rem minmax(0,1fr); gap:1.3rem; }
  .v-course-top { align-items:flex-start; }
  .v-course-top .actions { justify-content:flex-end; }
  .v-learning-card { padding:1.5rem; }
}
@media(max-width:700px) {
  .volunteer-course { padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  .v-course-top { flex-direction:column; align-items:stretch; margin-bottom:1rem; }
  .v-course-top .actions { justify-content:space-between; }
  .v-course-programme { font-size:.8rem; }
  .v-course-layout { grid-template-columns:minmax(0,1fr); gap:1.1rem; }
  .v-course-sidebar { position:static; }
  .v-course-summary { display:none; }
  .v-outline-toggle { display:block; width:100%; min-height:44px; text-align:left; }
  .v-module-outline { display:none; margin-top:.7rem; padding:.5rem; border:1px solid var(--line); border-radius:.8rem; background:var(--surface); }
  .v-module-outline.is-open { display:grid; }
  .v-module-outline button { font-size:.95rem; }
  .v-stage-nav { flex-wrap:nowrap; gap:.2rem; padding-bottom:.6rem; }
  .v-stage-nav button { font-size:.78rem; gap:.35rem; padding:.6rem .45rem; flex:1; justify-content:center; }
  .v-stage-nav button>span { width:1.2rem; height:1.2rem; min-width:1.2rem; font-size:.75rem; }
  .v-learning-card { padding:1.2rem; border-radius:1rem; }
  .v-learning-card h2 { font-size:1.35rem; }
  .v-learning-text { font-size:1.02rem; line-height:1.75; }
  .v-learning-goals { padding:1rem 1.15rem; }
  .v-learning-footer { gap:.5rem; padding:.8rem 0 calc(.8rem + env(safe-area-inset-bottom)); }
  .v-learning-footer .btn { padding:.75rem .85rem; font-size:.875rem; }
  .v-learning-footer>span { display:none; }
  .volunteer-course .v-answer { padding:.9rem .85rem; font-size:1rem; }
  .v-quiz-submit { flex-direction:column; align-items:stretch; }
  .v-quiz-submit p { max-width:none; }
  .v-results-summary { padding:1.2rem; gap:.7rem; }
  .v-results-mark { width:2.2rem; height:2.2rem; flex-basis:2.2rem; font-size:1.25rem; }
  .v-answer-result { padding:1.2rem; }
}
@media(max-width:820px) {
  .volunteer-welcome-layout { grid-template-columns:1fr; gap:1.4rem; align-items:start; }
  .volunteer-welcome { padding:0; }
  .volunteer-welcome-features { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
  .volunteer-welcome-features>div { flex-direction:column; gap:.6rem; }
  .volunteer-home-grid,.volunteer-support-grid { grid-template-columns:1fr; }
  .volunteer-journey ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .volunteer-home-links { gap:.8rem; }
}
@media(max-width:560px) {
  .volunteer-topbar { gap:.8rem; }
  .volunteer-topbar .actions { width:100%; justify-content:space-between; }
  .volunteer-account-name { max-width:calc(100% - 6.5rem); font-size:.9rem; }
  .volunteer-nav { gap:.2rem; }
  .volunteer-portal .volunteer-nav a { padding:.7rem .9rem; }
  .volunteer-welcome-layout { padding:0 0 1rem; }
  .volunteer-welcome h1 { font-size:2.3rem; }
  .volunteer-welcome-features { grid-template-columns:1fr; gap:1rem; margin-top:1.4rem; }
  .volunteer-welcome-features>div { flex-direction:row; gap:.8rem; }
  .volunteer-welcome-layout .volunteer-auth { padding:1.3rem; }
  .volunteer-home-welcome { padding:1.3rem; }
  .volunteer-home-welcome>.volunteer-icon { display:none; }
  .volunteer-home-links,.volunteer-journey ol { grid-template-columns:1fr; }
  .volunteer-home-links .panel { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.7rem .9rem; }
  .volunteer-home-links h2 { margin:.7rem 0 0; }
  .volunteer-home-links p,.volunteer-home-links .btn { grid-column:2; margin:0; }
  .volunteer-home-links .btn { justify-self:start; }
}
