:root {
  --ink: #17201c;
  --muted: #5a665f;
  --surface: #ffffff;
  --surface-soft: #f5f7f2;
  --line: #dce4da;
  --evergreen: #194f3a;
  --moss: #6f8f3f;
  --gold: #d5a33d;
  --coral: #c8563b;
  --aqua: #217c81;
  --shadow: 0 20px 60px rgba(23, 32, 28, 0.14);
  --profile-card-photo-size: 74px;
  --profile-card-photo-radius: 8px;
  --profile-card-photo-border: 3px solid rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

a {
  color: inherit;
}

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

button,
.button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.nav-button,
.quiet-button {
  min-height: 38px;
  box-shadow: none;
}

.nav-button {
  color: #17201c;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 14px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(200, 86, 59, 0.24);
}

.mobile-menu-button span[aria-hidden="true"] {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.quiet-button {
  color: var(--evergreen);
  background: #e8f0e4;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(213, 163, 61, 0.65);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 14, 11, 0.82), rgba(8, 14, 11, 0.1));
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 182px;
}

.brand-logo-wrap {
  width: 182px;
  height: 54px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 4px 8px;
  flex: 0 0 auto;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header nav a.button.nav-button {
  color: #17201c;
}

.profile-menu {
  position: relative;
}

.profile-menu-button {
  width: 44px;
  min-height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  padding: 0;
  color: var(--evergreen);
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 14, 11, 0.18);
}

.profile-menu-button span:not(.sr-only) {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.profile-menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, 82vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-menu-popover p {
  margin: 0 0 4px;
  padding: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.profile-menu-popover button {
  min-height: 38px;
  justify-content: flex-start;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--evergreen);
  background: #f2f8ee;
  box-shadow: none;
}

.back-to-top-fab {
  position: fixed;
  z-index: 24;
  left: clamp(18px, 3vw, 34px);
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 28px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(8, 14, 11, 0.22);
}

.back-to-top-fab[hidden] {
  display: none;
}

.back-to-top-icon {
  width: 12px;
  height: 14px;
  display: grid;
  place-items: center;
  position: relative;
}

.back-to-top-icon::before,
.back-to-top-icon::after {
  content: "";
  display: block;
  background: currentColor;
  position: absolute;
}

.back-to-top-icon::before {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
  top: 2px;
}

.back-to-top-icon::after {
  width: 2px;
  height: 11px;
  border-radius: 999px;
  bottom: 1px;
}

.auth-panel {
  position: fixed;
  z-index: 30;
  inset: 0;
  padding: 92px 18px 24px;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  background: rgba(8, 14, 11, 0.66);
}

.auth-panel[hidden] {
  display: none;
}

.profile-detail-panel {
  position: fixed;
  z-index: 30;
  inset: 0;
  padding: 92px 18px 24px;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  background: rgba(8, 14, 11, 0.66);
}

.profile-detail-card {
  position: relative;
  width: min(960px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  min-height: 38px;
  color: var(--evergreen);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.profile-detail-hero {
  min-height: 164px;
  padding: 24px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 72px;
  gap: 18px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(25, 79, 58, 0.96), rgba(33, 124, 129, 0.88)),
    var(--evergreen);
}

.profile-detail-hero h2 {
  color: #fff;
}

.profile-detail-hero p:not(.eyebrow) {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--evergreen);
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.78);
  font-size: 1.3rem;
  font-weight: 900;
}

.detail-symbol {
  width: 72px;
  height: 72px;
}

.profile-detail-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-detail-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcf8;
}

.profile-detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.profile-detail-section p {
  margin: 0;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 2px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.detail-skills {
  min-height: 0;
  margin: 0;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions .icon-action {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--evergreen);
  background: #fff;
}

.detail-locked {
  min-height: 44px;
  border: 1px solid #cfd6cf;
  border-radius: 6px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  color: #565e59;
  background: #edf0ec;
  font-weight: 850;
}

.detail-recommendations {
  grid-column: 1 / -1;
}

.detail-recommendation-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.detail-recommendation {
  margin: 0;
  border-left: 3px solid #d8c79b;
  padding-left: 12px;
}

.detail-recommendation strong {
  display: block;
  margin-bottom: 6px;
  color: #6c3a12;
  font-size: 0.82rem;
}

.detail-recommendation p {
  color: var(--ink);
}

.detail-recommendation cite {
  display: block;
  margin-top: 8px;
  color: #6c3a12;
  font-size: 0.82rem;
  font-weight: 850;
  font-style: normal;
}

.detail-recommendation cite span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 760;
}

.auth-card {
  width: min(560px, 100%);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.auth-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 7px;
  font-weight: 760;
}

.auth-card input,
.auth-card select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}

.password-modal-card {
  position: relative;
  width: min(620px, 100%);
}

.password-modal-card .profile-detail-close {
  color: var(--evergreen);
  border-color: var(--line);
}

.password-modal-card .form-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-support {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-support h3 {
  margin: 0;
  font-size: 1rem;
}

.auth-support p {
  margin: 0;
  color: var(--muted);
}

.auth-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-link-grid .quiet-button {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.account-choice-card {
  width: min(720px, 100%);
}

.account-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-choice-button {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fbf6;
  box-shadow: none;
  text-align: left;
}

.account-choice-button strong,
.account-choice-button span {
  display: block;
}

.account-choice-button strong {
  color: var(--evergreen);
  font-size: 1.25rem;
}

.account-choice-button span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.account-choice-button:hover,
.account-choice-button:focus-visible {
  border-color: rgba(200, 86, 59, 0.42);
  background: #fff;
}

.hero {
  min-height: 86vh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 112px clamp(18px, 5vw, 70px) 72px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 13, 10, 0.84) 0%, rgba(6, 13, 10, 0.6) 37%, rgba(6, 13, 10, 0.1) 72%),
    linear-gradient(0deg, rgba(6, 13, 10, 0.78), rgba(6, 13, 10, 0.02) 42%);
}

.hero-content {
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0;
  font-size: 0.76rem;
}

.hero .eyebrow {
  color: #f3c66d;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.1rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-copy {
  position: relative;
  margin: 18px 0 26px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 950;
  line-height: 0.98;
}

.hero-copy::before {
  content: "4";
  position: absolute;
  left: -0.1em;
  top: 0.58em;
  z-index: 2;
  color: #ff493f;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1em;
  font-weight: 400;
  line-height: 1;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-four {
  display: none !important;
}

.hero-copy-stacked {
  display: inline-grid;
  gap: 0.12em;
  max-width: none;
}

.hero-copy-stacked span {
  display: block;
  white-space: nowrap;
}

.hero-quick-links {
  display: grid;
  gap: 8px;
  width: min(940px, 100%);
  margin: 14px 0 0;
}

.hero-quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-quick-links-row-verification {
  margin-top: 2px;
}

.hero-quick-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 238, 214, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  color: rgba(255, 244, 226, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-quick-links a:hover,
.hero-quick-links a:focus-visible {
  border-color: rgba(255, 238, 214, 0.46);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.hero-search {
  width: min(670px, 100%);
  margin-bottom: 18px;
}

.hero-search label,
.directory-search-panel label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 760;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.search-row input {
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 5px;
  padding: 0 14px;
  color: #fff;
  background: rgba(8, 14, 11, 0.42);
}

.search-row input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.directory-search-panel {
  width: min(760px, 100%);
  margin: 0 0 22px;
}

.directory-search-panel label {
  color: var(--muted);
}

.directory-search-row {
  border-radius: 8px 8px 0 0;
  border-color: var(--line);
  background: #f7fbf4;
  backdrop-filter: none;
}

.directory-search-row input {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.directory-search-row input::placeholder {
  color: #738079;
}

body:not(.directory-page) .directory-search-panel {
  display: none;
}

body.directory-page .directory-cta {
  display: none;
}

.search-row button,
.primary,
.submit-button {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 30px rgba(200, 86, 59, 0.28);
}

.secondary {
  color: #17201c;
  background: #fff;
}

.policy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.policy-strip article {
  min-height: 116px;
  padding: 24px clamp(18px, 3vw, 38px);
  background: #fff;
}

.policy-strip strong,
.policy-strip span {
  display: block;
}

.policy-strip strong {
  margin-bottom: 7px;
  font-size: 1rem;
}

.policy-strip span {
  color: var(--muted);
}

.network-purpose-section {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.network-purpose-section .section-heading {
  max-width: 1060px;
  margin-bottom: 0;
}

.network-purpose-section h2 {
  max-width: 900px;
}

.network-purpose-section p:not(.eyebrow) {
  max-width: 1040px;
}

.capstone-home-section {
  background: #fbfcf8;
}

.capstone-home-section .section-heading {
  max-width: 980px;
}

.capstone-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capstone-showcase {
  display: grid;
  gap: 12px;
}

.capstone-showcase h3 {
  margin: 0;
  color: var(--evergreen);
  font-size: 1.1rem;
}

.capstone-card {
  min-height: 118px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  font-weight: 760;
  overflow: hidden;
}

.capstone-card strong {
  position: relative;
  z-index: 1;
}

.capstone-image-grid .image-card {
  position: relative;
  min-height: 170px;
  padding: 18px;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(8, 18, 14, 0.08), rgba(8, 18, 14, 0.74)),
    var(--capstone-image);
  background-position: var(--capstone-position, center);
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.capstone-code {
  --capstone-image: url("/volunteers/assets/capstones/web-app-game-design.png");
  --capstone-position: center;
}

.capstone-robotics {
  --capstone-image: url("/volunteers/assets/capstones/robotics-prototypes.png");
  --capstone-position: center;
}

.capstone-ai {
  --capstone-image: url("/volunteers/assets/capstones/ai-models.png");
  --capstone-position: center;
}

.capstone-documentary {
  --capstone-image: url("/volunteers/assets/capstones/community-documentaries.png");
  --capstone-position: center;
}

.capstone-archive {
  --capstone-image: url("/volunteers/assets/capstones/local-history-archives.png");
  --capstone-position: center;
}

.capstone-research {
  --capstone-image: url("/volunteers/assets/capstones/stem-research.png");
  --capstone-position: center;
}

.capstone-workshops {
  --capstone-image: url("/volunteers/assets/capstones/educational-workshops.png");
  --capstone-position: center;
}

.capstone-campaigns {
  --capstone-image: url("/volunteers/assets/capstones/social-awareness-campaigns.png");
  --capstone-position: center;
}

.capstone-leadership {
  --capstone-image: url("/volunteers/assets/capstones/nonprofit-leadership-projects.png");
  --capstone-position: center;
}

.capstone-planning {
  --capstone-image: url("/volunteers/assets/capstones/community-focused-business-planning.png");
  --capstone-position: center;
}

section:not(.hero):not(.policy-strip) {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 70px);
}

section[id] {
  scroll-margin-top: 132px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.directory-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.directory-section,
.verification-section,
.organization-verification-section {
  background: #fff;
}

.verification-section,
.organization-verification-section {
  border-top: 1px solid var(--line);
  background: #fbfcf8;
}

body:not(.directory-results) .directory-section {
  padding-bottom: clamp(34px, 5vw, 54px);
}

body:not(.directory-results) .directory-meta {
  display: none;
}

.directory-tools {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.35fr)
    minmax(170px, 0.75fr)
    minmax(150px, 0.65fr)
    minmax(260px, 0.85fr);
  gap: 14px;
  margin-bottom: 18px;
  align-items: end;
}

.advanced-search-tools {
  margin: 0 0 12px;
  grid-template-columns: 1fr;
}

.advanced-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.directory-tools label,
.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 760;
}

.profile-form label:not(.manual-required):has(:required) > span::after {
  content: " required";
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-form label:has(.field-status):has(:required) > span::after {
  content: none;
}

.directory-tools span,
.profile-form span {
  font-size: 0.88rem;
}

.directory-tools input,
.directory-tools select,
.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.profile-form textarea {
  min-height: 132px;
  resize: vertical;
}

.bio-editor-field {
  display: grid;
  gap: 10px;
}

.bio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bio-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--evergreen);
  background: #f2f8ee;
  box-shadow: none;
  font-size: 0.86rem;
}

.bio-editor-field textarea {
  display: none;
}

.bio-rich-editor {
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
}

.bio-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(91, 105, 97, 0.7);
}

.bio-rich-editor:focus-visible {
  outline: 3px solid rgba(213, 163, 61, 0.65);
  outline-offset: 3px;
}

.bio-editor-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.bio-markdown-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf8;
}

.bio-markdown-preview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.9rem;
}

.bio-markdown-preview pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border-radius: 6px;
  padding: 12px;
  color: #26342e;
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 34, 27, 0.38);
}

.app-modal-panel {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.app-modal-panel h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.12rem;
}

.app-modal-panel form,
.app-modal-panel label {
  display: grid;
  gap: 10px;
}

.app-modal-panel label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.app-modal-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.markdown-content {
  color: var(--muted);
  line-height: 1.62;
}

.bio-rich-editor.markdown-content {
  color: var(--ink);
}

.markdown-content > *:first-child {
  margin-top: 0;
}

.markdown-content > *:last-child {
  margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 0.8em 0 0.35em;
  color: var(--ink);
  font-size: 1.1rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote {
  margin: 0.55em 0;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.25rem;
}

.markdown-content blockquote {
  border-left: 3px solid #d8c79b;
  padding-left: 12px;
  color: #6c3a12;
}

.markdown-content a {
  color: var(--evergreen);
  font-weight: 800;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 760;
}

.segmented {
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.segmented label {
  min-width: 0;
  display: grid;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 800;
  border-left: 1px solid var(--line);
}

.segmented label:first-child span {
  border-left: 0;
}

.segmented input:checked + span {
  color: #fff;
  background: var(--evergreen);
}

.directory-meta {
  min-height: 44px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.directory-filter-buttons {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #f7faf3;
}

.directory-filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--evergreen);
  background: #fff;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 680;
}

.directory-filter-button.is-custom {
  color: #fff;
  border-color: var(--evergreen);
  background: var(--evergreen);
}

.directory-filter-card {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(8, 14, 11, 0.22);
}

.directory-filter-card h2 {
  font-size: clamp(1.15rem, 2.5vw, 2rem);
}

.filter-search-field {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 760;
}

.filter-search-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.filter-options-list {
  max-height: min(52vh, 430px);
  margin-top: 16px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.filter-option-row {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
  background: #fbfcf8;
  cursor: pointer;
}

.filter-option-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--evergreen);
}

.filter-option-row span {
  overflow-wrap: anywhere;
}

.filter-option-all {
  color: var(--evergreen);
  background: #eef5ea;
  font-weight: 760;
}

.filter-dialog-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.directory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#saveSearchButton,
#resetFilters {
  color: var(--evergreen);
  background: #e8f0e4;
  box-shadow: none;
}

#saveSearchButton {
  background: #f2f8ee;
}

.client-workspace {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcf8;
}

.client-workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.client-workspace-header h3 {
  font-size: 1.2rem;
}

.client-workspace-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.client-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.client-workspace-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.client-workspace-column h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-soft);
}

.saved-item strong,
.saved-item span {
  display: block;
  min-width: 0;
}

.saved-item strong {
  overflow-wrap: anywhere;
}

.saved-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.saved-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.saved-item-actions button {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--evergreen);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 0.82rem;
}

.recommendation-form {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.recommendation-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 760;
}

.recommendation-form input,
.recommendation-form select,
.recommendation-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}

.recommendation-form textarea {
  min-height: 96px;
  resize: vertical;
}

.recommendation-form .recommendation-confirm {
  align-items: flex-start;
  font-weight: 700;
}

.recommendation-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-mini {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  grid-auto-rows: auto;
}

.volunteer-card {
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 28, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.directory-loader {
  min-height: 72px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--evergreen);
  font-weight: 850;
}

.directory-loader span {
  width: 24px;
  height: 24px;
  border: 3px solid #cfe0d2;
  border-top-color: var(--evergreen);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.card-top {
  min-height: 132px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(25, 79, 58, 0.96), rgba(33, 124, 129, 0.86)),
    var(--evergreen);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: var(--profile-card-photo-size);
  height: var(--profile-card-photo-size);
  border-radius: var(--profile-card-photo-radius);
  object-fit: cover;
  background: #fff;
  color: var(--evergreen);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
  border: var(--profile-card-photo-border);
}

.identity {
  min-width: 0;
}

.identity h3 {
  overflow-wrap: anywhere;
}

.identity p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.93rem;
}

.profile-symbol {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(8, 14, 11, 0.18);
}

.profile-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px;
  display: block;
  flex: 0 0 auto;
}

.badge-row {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge,
.skill-tag {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.badge {
  min-height: 28px;
  padding: 0 10px;
}

.badge.email-verified,
.badge.verified {
  color: #173c2d;
  background: #e7f4d8;
}

.badge.gold-verified {
  color: #5b3b05;
  background: #ffe7a8;
}

.badge.pending-verified {
  color: #565e59;
  background: #edf0ec;
  border: 1px solid #cfd6cf;
}

.badge.unverified {
  color: #6c3a12;
  background: #fff0d2;
}

.badge.social {
  color: #17515f;
  background: #dff1f0;
}

.badge.rating {
  color: #6c3a12;
  background: #fff3cf;
}

.badge.rating.warning,
.badge.paused {
  color: #8a1f1b;
  background: #ffe3df;
}

.badge.rating.muted {
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.card-bio {
  margin-top: 8px;
  line-height: 1.5;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.skill-tag {
  min-height: 0;
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--muted);
  background: transparent;
  border: 1px solid #d9e1d7;
  font-size: 0.76rem;
  font-weight: 760;
}

.availability-panel {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  background: #f2f8ee;
}

.availability-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--evergreen);
  font-size: 0.94rem;
}

.availability-panel.unavailable {
  border-color: #f0d8c7;
  background: #fff7ef;
}

.availability-panel.unavailable strong,
.availability-panel.paused strong {
  color: #8a431e;
}

.availability-panel.unavailable p,
.availability-panel.paused p {
  margin: 0;
  color: #6c3a12;
  font-weight: 720;
}

.availability-panel.paused {
  border-color: #f0b8af;
  background: #fff1ef;
}

.availability-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-pill {
  min-height: 26px;
  min-width: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfe0d2;
  font-size: 0.76rem;
  font-weight: 850;
}

.day-pill.muted {
  color: var(--muted);
  min-width: 112px;
}

.score-card {
  margin-top: 10px;
  width: fit-content;
  text-align: left;
  color: var(--muted);
}

.score-card span,
.score-card strong {
  display: block;
}

.score-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: none;
}

.score-card strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.score-card.warning {
  color: #8a1f1b;
}

.score-card.warning strong {
  color: #8a1f1b;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-actions a,
.card-actions button,
.card-actions > span {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--evergreen);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 10px;
}

.card-actions .icon-action {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.card-actions .icon-action:hover,
.card-actions .icon-action:focus-visible {
  border-color: #b9c8b5;
  background: #f2f8ee;
}

.card-actions .favorite-action.active {
  color: #8a431e;
  border-color: #f0d8c7;
  background: #fff7ef;
}

.card-actions .review-action {
  min-width: 100%;
  padding: 0 12px;
  cursor: not-allowed;
  color: #8a1f1b;
  background: #fff1ef;
  border-color: #f0b8af;
}

.action-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.card-actions .edit-action {
  min-width: 118px;
  padding: 0 12px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed #b9c8b5;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
  background: #fbfcf8;
}

.create-section,
.organization-section {
  min-height: 100vh;
  padding-top: 132px;
  background:
    linear-gradient(180deg, #f5f7f2 0%, #eef3ea 100%);
}

body:not(.create-page) .create-section,
body:not(.organization-page) .organization-section {
  display: none;
}

body.create-page .hero,
body.create-page .network-purpose-section,
body.create-page .policy-strip,
body.create-page .capstone-home-section,
body.create-page .directory-section,
body.create-page .verification-section,
body.create-page .organization-verification-section,
body.create-page .notice-section,
body.create-page .organization-section {
  display: none;
}

body.directory-page .hero,
body.directory-page .network-purpose-section,
body.directory-page .policy-strip,
body.directory-page .capstone-home-section,
body.directory-page .create-section,
body.directory-page .organization-section,
body.directory-page .verification-section,
body.directory-page .organization-verification-section,
body.directory-page .notice-section {
  display: none;
}

body.create-page .create-section,
body.organization-page .organization-section,
body.directory-page .directory-section {
  min-height: 100vh;
  padding-top: 132px;
}

body.organization-page .hero,
body.organization-page .network-purpose-section,
body.organization-page .policy-strip,
body.organization-page .capstone-home-section,
body.organization-page .create-section,
body.organization-page .directory-section,
body.organization-page .verification-section,
body.organization-page .organization-verification-section,
body.organization-page .notice-section {
  display: none;
}

.organization-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.organization-account-form {
  width: 100%;
}

.organization-verification-panel {
  display: grid;
  gap: 18px;
}

.compact-heading {
  margin-bottom: 0;
}

.back-home-link {
  display: inline-flex;
  min-height: 38px;
  margin-bottom: 18px;
  align-items: center;
  color: var(--evergreen);
  font-weight: 850;
  text-decoration: none;
}

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.profile-loading-state {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--muted);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.08);
}

body.auth-loading.create-page .profile-loading-state {
  display: block;
}

body.auth-loading.create-page .profile-workspace {
  display: none;
}

body.auth-loading.signed-in-header [data-auth-open],
body.auth-loading.signed-in-header [data-account-create-open],
body.auth-loading:not(.signed-in-header) .profile-menu {
  display: none !important;
}

.profile-form,
.profile-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.08);
}

.profile-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.profile-form-header,
.signed-in-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-form-header h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.signed-in-banner {
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  padding: 12px;
  color: var(--evergreen);
  background: #f2f8ee;
  font-weight: 760;
}

.signed-in-banner[hidden] {
  display: none;
}

.password-workspace,
.email-card {
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #f2f8ee;
}

.password-workspace h4,
.email-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.password-workspace[hidden],
.mail-preview[hidden] {
  display: none;
}

.email-card {
  border-color: #d8c79b;
  background: #fffaf0;
}

.email-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.email-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.email-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.email-card dt {
  color: var(--muted);
  font-weight: 800;
}

.email-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.email-card code {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d8c79b;
  border-radius: 6px;
  padding: 10px 12px;
  display: block;
  overflow-wrap: anywhere;
  color: #6c3a12;
  background: #fff;
  font-weight: 900;
}

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

.signup-password-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-password-fields[hidden],
.existing-password-action[hidden] {
  display: none;
}

.existing-password-action {
  grid-column: 1 / -1;
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: #f2f8ee;
}

.existing-password-action span {
  display: block;
  color: var(--ink);
  font-weight: 760;
}

.existing-password-action p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-preview-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.photo-preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: fit-content;
  min-width: 116px;
  justify-self: start;
  background:
    linear-gradient(135deg, rgba(25, 79, 58, 0.96), rgba(33, 124, 129, 0.86)),
    var(--evergreen);
}

.photo-preview-frame {
  position: relative;
  width: var(--profile-card-photo-size);
  height: var(--profile-card-photo-size);
  border: var(--profile-card-photo-border);
  border-radius: var(--profile-card-photo-radius);
  overflow: hidden;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 14, 11, 0.18);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.photo-preview-frame.is-dragging {
  cursor: grabbing;
}

.photo-preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.photo-preview-frame span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.photo-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.photo-preview-actions button {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  color: var(--evergreen);
  background: #fff;
  font-size: 0.84rem;
}

.photo-preview-actions button:disabled {
  cursor: default;
  opacity: 0.48;
  transform: none;
}

.photo-save-button {
  gap: 7px;
}

.photo-save-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  display: inline-block;
}

.photo-save-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}

.photo-save-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.photo-save-message {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

.photo-save-message.warning {
  color: #ffe1d5;
}

.photo-save-message[hidden] {
  display: none;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 760;
}

.label-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.password-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.password-help-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid #c8d8ca;
  border-radius: 6px;
  padding: 0;
  color: var(--evergreen);
  background: #eef3ed;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.password-help-button:hover {
  transform: none;
}

.password-help-text {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: min(260px, 72vw);
  transform: translateX(-50%);
  border: 1px solid #c8d8ca;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.14);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.password-help:hover .password-help-text,
.password-help:focus-within .password-help-text {
  opacity: 1;
  visibility: visible;
}

.field-status {
  display: inline;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field-status.required {
  color: var(--coral);
  background: transparent;
}

.field-status.optional {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.social-links-field,
.social-link-list {
  display: grid;
  gap: 10px;
}

.form-grid > .social-links-field {
  grid-column: 1 / -1;
}

.social-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.social-link-remove,
.social-link-add {
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.social-link-add {
  justify-self: start;
}

.password-live-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.password-live-message.warning {
  color: var(--coral);
}

.password-live-message.success {
  color: var(--evergreen);
}

.symbol-fieldset {
  display: grid;
  gap: 10px;
}

.skill-tags-fieldset {
  display: grid;
  gap: 12px;
}

.skill-tags-fieldset label {
  display: grid;
  gap: 7px;
}

.skill-tags-fieldset select {
  min-height: 148px;
}

.symbol-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.symbol-picker label {
  min-width: 0;
  cursor: pointer;
}

.symbol-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.symbol-option {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.symbol-option img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cfded4;
  background: #fff;
}

.symbol-option strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.symbol-picker input:checked + .symbol-option {
  border-color: var(--evergreen);
  background: #f2f8ee;
  box-shadow: inset 0 0 0 2px var(--evergreen);
}

.symbol-picker input:focus-visible + .symbol-option {
  outline: 3px solid rgba(213, 163, 61, 0.65);
  outline-offset: 3px;
}

.availability-fieldset {
  display: grid;
  gap: 14px;
}

.availability-toggle {
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  background: #f2f8ee;
}

.availability-inputs {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 0.7fr);
  gap: 16px;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.profile-form .day-picker label {
  min-width: 0;
  display: grid;
  cursor: pointer;
}

.day-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-picker span {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  font-weight: 850;
}

.day-picker input:checked + span {
  color: #fff;
  border-color: var(--evergreen);
  background: var(--evergreen);
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-form .checkbox-row input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--evergreen);
}

.checkbox-row label {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.35;
}

.adult-confirm-field {
  min-height: 46px;
  align-self: end;
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  padding: 12px;
  background: #f2f8ee;
}

.parent-guardian-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid #d8c79b;
  border-radius: 8px;
  padding: 16px;
  background: #fffaf0;
}

.parent-guardian-fields[hidden] {
  display: none;
}

.submit-button {
  width: fit-content;
}

.form-note {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-note.success {
  color: var(--evergreen);
}

.form-note.warning {
  color: #8a431e;
}

.profile-preview {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.profile-preview ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.profile-preview li + li {
  margin-top: 12px;
}

.capstone-examples {
  margin-top: 20px;
  border: 1px solid #d8c79b;
  border-radius: 8px;
  padding: 14px;
  color: #6c3a12;
  background: #fffaf0;
}

.capstone-examples h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.capstone-examples p {
  margin: 0;
  color: #6c3a12;
  font-size: 0.92rem;
}

.verification-note {
  margin-top: 18px;
  border: 1px solid #d8c79b;
  border-radius: 8px;
  padding: 16px;
  color: #6c3a12;
  background: #fffaf0;
  font-weight: 760;
}

.verification-note strong {
  color: #6c3a12;
}

.verification-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.verification-steps article {
  position: relative;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.verification-steps span {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--aqua);
  font-weight: 900;
}

.verification-steps p {
  color: var(--muted);
}

.verification-steps .paid-verification {
  border-color: #d8c79b;
  background: #fffaf0;
  box-shadow: inset 0 4px 0 #b9842c;
}

.verification-steps .orange-status {
  border-color: rgba(200, 86, 59, 0.38);
  background: #fff4ef;
}

.verification-steps .orange-status span {
  background: var(--coral);
}

.verification-steps .orange-status h3,
.verification-steps .orange-status p {
  color: #6c3a12;
}

.verification-steps .paid-verification em {
  display: inline-block;
  margin-bottom: 14px;
  color: #6c3a12;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.verification-steps .paid-verification span {
  background: #b9842c;
}

.verification-steps .paid-verification h3,
.verification-steps .paid-verification p {
  color: #6c3a12;
}

.notice-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 30px;
  color: #fff;
  background: var(--ink);
}

.notice-section .eyebrow {
  color: #f3c66d;
}

.notice-section p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.legal-hero {
  padding-top: 134px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(25, 79, 58, 0.94), rgba(33, 124, 129, 0.9)),
    var(--evergreen);
}

.legal-hero .eyebrow {
  color: #f3c66d;
}

.legal-hero h1 {
  max-width: 880px;
  margin-top: 10px;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.legal-hero p:not(.eyebrow) {
  max-width: 860px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: start;
}

.legal-toc,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.08);
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.legal-toc h2 {
  font-size: 1rem;
}

.legal-toc a {
  display: block;
  margin-top: 10px;
  color: var(--evergreen);
  font-weight: 800;
  text-decoration: none;
}

.legal-card {
  padding: clamp(20px, 4vw, 38px);
}

.legal-card section + section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-callout {
  border: 1px solid #d8c79b;
  border-radius: 8px;
  padding: 16px;
  color: #6c3a12;
  background: #fffaf0;
  font-weight: 760;
}

.site-footer {
  padding: clamp(34px, 6vw, 64px) clamp(18px, 5vw, 70px) 26px;
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(150px, 0.65fr));
  gap: clamp(24px, 4vw, 42px);
  color: rgba(255, 255, 255, 0.78);
  background: #123a2c;
}

.footer-main {
  max-width: 420px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer-logo {
  width: min(320px, 76vw);
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-main p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav h2 {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.footer-bottom p {
  max-width: 720px;
}

.footer-copyright-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 260px;
  text-align: center;
}

.footer-copyright-brand a {
  display: inline-flex;
  border-radius: 7px;
}

.footer-copyright-brand img {
  width: 150px;
  height: 74px;
  border-radius: 7px;
  padding: 7px 9px;
  object-fit: contain;
  background: #fff;
  flex: 0 0 auto;
}

@media (max-width: 1040px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    max-width: none;
  }

  .capstone-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volunteer-grid,
  .verification-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-tools,
  .client-workspace-grid,
  .profile-detail-grid,
  .profile-workspace,
  .legal-layout,
  .notice-section {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .profile-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    min-height: 88px;
    align-items: center;
    padding: 12px 18px;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-content: center;
    gap: 4px;
    align-items: center;
    margin-left: auto;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% - 6px);
    right: 18px;
    width: min(310px, calc(100vw - 36px));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 10px;
    display: none;
    align-items: stretch;
    gap: 6px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.mobile-nav-open .site-header nav {
    display: grid;
  }

  body.signed-in-header .mobile-menu-button {
    display: none;
  }

  body.signed-in-header .site-header nav {
    position: static;
    width: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: none;
  }

  .site-header nav > a,
  .site-header nav > .nav-button {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 12px;
    color: var(--evergreen);
    background: #f2f8ee;
  }

  .site-header nav > .nav-button {
    justify-content: flex-start;
    width: 100%;
    color: #fff;
    background: var(--coral);
  }

  .auth-link-grid {
    grid-template-columns: 1fr;
  }

  .account-choice-grid {
    grid-template-columns: 1fr;
  }

  .photo-preview-field,
  .photo-preview-card {
    grid-template-columns: 1fr;
  }

  .photo-preview-frame {
    width: var(--profile-card-photo-size);
    height: var(--profile-card-photo-size);
  }

  .account-choice-button {
    min-height: 118px;
  }

  .brand {
    min-width: 0;
  }

  .profile-detail-card {
    width: 100%;
  }

  .profile-detail-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 70px 18px 18px;
  }

  .detail-avatar,
  .detail-symbol {
    width: 72px;
    height: 72px;
  }

  .detail-symbol {
    display: none;
  }

  .profile-detail-grid {
    padding: 16px;
  }

  .hero {
    min-height: 82vh;
    padding: 104px 18px 40px;
  }

  .hero-media {
    object-position: 24% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 13, 10, 0.9) 0%, rgba(6, 13, 10, 0.62) 56%, rgba(6, 13, 10, 0.28) 100%),
      linear-gradient(0deg, rgba(6, 13, 10, 0.84), rgba(6, 13, 10, 0.2) 52%);
  }

  .hero-content {
    width: 100%;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .hero-copy {
    margin: 18px 0 22px;
    width: calc(100% - 24px);
    max-width: 100%;
    margin-left: 12px;
    font-size: clamp(2.1rem, 9.5vw, 3.4rem);
    line-height: 1.04;
  }

  .hero-copy::before {
    left: -0.08em;
    top: 0.7em;
    font-size: 0.82em;
    transform: rotate(-7deg);
  }

  .hero-copy-stacked {
    width: max-content;
    max-width: calc(100% - 24px);
  }

  .hero-quick-links {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 14px 0 0;
  }

  .hero-quick-links-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-quick-links-row-verification {
    margin-top: 0;
  }

  .hero-quick-links a {
    min-height: 34px;
    justify-content: center;
    padding: 5px 10px;
    border-color: rgba(255, 238, 214, 0.26);
    text-align: center;
    font-size: clamp(0.78rem, 3.3vw, 0.9rem);
    line-height: 1.1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  h1 {
    font-size: 3.4rem;
  }

  .search-row,
  .form-grid,
  .signup-password-fields,
  .symbol-picker,
  .availability-inputs,
  .day-picker,
  .capstone-home-grid,
  .policy-strip,
  .volunteer-grid,
  .verification-steps {
    grid-template-columns: 1fr;
  }

  .search-row button,
  .submit-button {
    width: 100%;
  }

  .existing-password-action {
    align-items: stretch;
    flex-direction: column;
  }

  .existing-password-action .quiet-button {
    width: 100%;
  }

  .directory-filter-buttons {
    grid-template-columns: 1fr;
  }

  .directory-meta,
  .client-workspace-header,
  .profile-form-header,
  .signed-in-banner,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-actions,
  .saved-item-actions {
    justify-content: flex-start;
  }

  .saved-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-copyright-brand {
    justify-content: start;
    align-items: start;
    text-align: left;
  }

  .brand {
    min-width: 156px;
  }

  .brand-logo-wrap {
    width: 156px;
    height: 48px;
    padding: 4px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
