:root {
  --ink: #071b33;
  --ink-soft: #0d3158;
  --paper: #f6f9fc;
  --paper-deep: #e7f0f8;
  --white: #ffffff;
  --blue: #185a91;
  --green: #3d91ca;
  --coral: #86bce8;
  --line: rgba(7, 27, 51, 0.15);
  --muted: #5f7286;
  --shadow: 0 24px 58px rgba(7, 27, 51, 0.14);
  --serif: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
}

h1,
h2,
.hand-note span,
.stats-grid strong {
  font-weight: 750;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.photo-slot {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end start;
  min-height: 320px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(7, 27, 51, 0.06), rgba(7, 27, 51, 0.58)),
    var(--slot-image),
    linear-gradient(145deg, #0d3158, #86bce8);
  background-position: center;
  background-size: cover;
}

.photo-slot span {
  max-width: 320px;
  margin: 22px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 27, 51, 0.7);
  border-left: 4px solid var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.photo-slot-hero {
  --slot-image: url("/assets/img/uploads/hero-meeting.png");
}

.photo-slot-learning {
  --slot-image: url("/assets/img/uploads/meeting-learning.png");
}

.photo-slot-member {
  --slot-image: url("/assets/img/uploads/member-profile.png");
}

.photo-slot-leadership {
  --slot-image: url("/assets/img/uploads/leadership-team.png");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px clamp(22px, 5vw, 64px);
  color: var(--white);
  background: rgba(7, 27, 51, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 168px;
}

.brand-logo {
  display: block;
  width: clamp(132px, 17vw, 210px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--coral);
}

.nav-action {
  color: var(--white) !important;
  border-bottom: 2px solid var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(30px, 5vw, 78px);
  min-height: auto;
  padding: clamp(64px, 8vw, 112px) clamp(22px, 5vw, 64px);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(231, 240, 248, 0.78), rgba(246, 249, 252, 1) 62%),
    var(--paper);
  background-size: auto;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.hero-dots {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(0px, 2vw, 34px);
  align-self: center;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-note {
  display: inline-grid;
  gap: 3px;
  margin-top: 26px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--white);
  border-left: 4px solid var(--green);
  box-shadow: 0 18px 42px rgba(7, 27, 51, 0.08);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 800;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 60px;
  padding: 16px 28px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.hero .button-outline {
  color: var(--ink);
  border-color: rgba(7, 27, 51, 0.22);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.meeting-orbit {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.meeting-orbit img {
  width: 100%;
}

.network-lines {
  display: none;
}

.network-lines::before,
.network-lines::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.42);
  transform-origin: left;
}

.network-lines::before {
  top: 126px;
  right: 120px;
  width: 300px;
  height: 2px;
  transform: rotate(16deg);
}

.network-lines::after {
  top: 250px;
  right: 70px;
  width: 340px;
  height: 2px;
  transform: rotate(-28deg);
}

.network-lines span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
}

.network-lines span:nth-child(1) { top: 94px; right: 320px; background: var(--green); }
.network-lines span:nth-child(2) { top: 140px; right: 70px; background: var(--blue); width: 44px; height: 44px; }
.network-lines span:nth-child(3) { top: 260px; right: 26px; background: var(--coral); width: 42px; height: 42px; }
.network-lines span:nth-child(4) { top: 285px; right: 330px; width: 14px; height: 14px; }
.network-lines span:nth-child(5) { top: 72px; right: 460px; width: 14px; height: 14px; }

.philosophy,
.rhythm,
.member-preview,
.referral-flow,
.leadership-section,
.visit-section {
  padding: clamp(64px, 8vw, 110px) clamp(22px, 5vw, 64px);
}

.philosophy {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.9fr) minmax(340px, 0.82fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.side-label,
.section-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.philosophy h2 {
  max-width: 760px;
}

.philosophy h2::after,
.member-copy h2::after,
.visit-copy h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-top: 18px;
  background: var(--green);
}

.philosophy p,
.member-copy p,
.leadership-copy p,
.visit-copy p {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.06rem;
}

.philosophy strong {
  display: block;
  margin-top: 24px;
}

.philosophy-art {
  position: relative;
  min-height: 370px;
}

.philosophy-art img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 440px);
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape.half {
  top: 10px;
  left: 16px;
  width: 170px;
  height: 260px;
  background: var(--green);
  border-radius: 170px 0 0 170px;
}

.shape.dot {
  top: 150px;
  left: 0;
  width: 98px;
  height: 98px;
  background: var(--coral);
}

.rhythm {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 0.8fr) minmax(260px, 0.72fr);
  padding-top: 0;
  padding-bottom: 0;
  background: var(--paper-deep);
}

.rhythm-panel,
.hand-note {
  min-height: 520px;
}

.rhythm-photo {
  align-self: stretch;
  margin-left: calc(clamp(22px, 5vw, 64px) * -1);
}

.rhythm-panel {
  padding: clamp(34px, 5vw, 58px);
  color: var(--white);
  background: var(--ink);
}

.rhythm-panel h2 {
  max-width: 440px;
  margin-top: 12px;
}

.meeting-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.meeting-details div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.meeting-details div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.meeting-details span {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meeting-details strong {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.rhythm-panel ul {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.rhythm-panel li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.rhythm-panel li::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 40%, rgba(61, 145, 202, 0.22));
}

.rhythm-panel strong,
.rhythm-panel span {
  display: block;
}

.rhythm-panel strong {
  color: var(--green);
}

.rhythm-panel span {
  max-width: 310px;
  color: rgba(255, 255, 255, 0.76);
}

.hand-note {
  position: relative;
  padding: clamp(36px, 5vw, 64px);
  background: var(--paper);
  overflow: hidden;
}

.hand-note span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1.03;
}

.hand-note span:last-of-type::after {
  content: "";
  display: block;
  width: 220px;
  height: 8px;
  margin-top: 8px;
  background: var(--blue);
  transform: rotate(-3deg);
}

.hand-note img {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 84%;
  opacity: 0.8;
}

.member-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(280px, 0.62fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: var(--paper);
}

.directory-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  padding: clamp(64px, 8vw, 110px) clamp(22px, 5vw, 64px);
  background: #e7f0f8;
}

.directory-section p {
  color: var(--muted);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.directory-grid article {
  min-height: 220px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.directory-grid strong,
.directory-grid span,
.directory-grid small {
  display: block;
}

.directory-grid strong {
  font-size: 1.12rem;
}

.directory-grid span {
  margin-top: 5px;
  color: var(--blue);
  font-weight: 700;
}

.directory-grid small {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
}

.member-image,
.leadership-image {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 62px rgba(7, 27, 51, 0.12);
}

.member-image {
  transform: rotate(-1.25deg);
  aspect-ratio: 4 / 3;
}

.portal-mockup {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(7, 27, 51, 0.16);
}

.portal-mockup aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 18px;
  background: #edf4fa;
  border-right: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 650;
}

.portal-mockup aside strong {
  color: var(--ink);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.portal-mockup aside span {
  color: var(--muted);
}

.portal-mockup aside .active {
  color: var(--blue);
}

.mock-content {
  padding: clamp(26px, 4vw, 44px);
}

.mock-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar,
.portrait {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.mock-profile strong,
.mock-profile span {
  display: block;
}

.mock-profile span {
  color: var(--muted);
}

.mock-content p {
  max-width: 330px;
  color: var(--muted);
}

.mock-content button {
  padding: 12px 16px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  font-weight: 700;
}

.activity {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.referral-flow {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(61, 145, 202, 0.2) 1px, transparent 1px),
    linear-gradient(var(--ink), var(--ink-soft));
  background-size: 64px 64px, auto;
}

.referral-flow h2 {
  max-width: 650px;
  margin-top: 10px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 6vw, 72px);
}

.flow-steps article {
  position: relative;
  min-height: 230px;
}

.flow-steps article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 52px;
  right: -24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 2.6rem;
}

.flow-steps span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.6rem;
}

.flow-steps strong {
  display: block;
  margin-top: 22px;
  color: var(--green);
  font-size: 1.15rem;
}

.flow-steps p {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.76);
}

.referral-flow em {
  display: block;
  margin-top: 22px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 800;
}

.leadership-section {
  display: grid;
  grid-template-columns: 58px minmax(260px, 0.54fr) minmax(360px, 0.88fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.leadership-image {
  grid-column: 2 / -1;
  aspect-ratio: 16 / 7;
}

.role-line {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.role-line article {
  min-width: 0;
}

.portrait {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  font-size: 3rem;
  border-radius: 50%;
}

.role-line article:nth-child(2) .portrait {
  background: var(--green);
}

.role-line article:nth-child(3) .portrait {
  background: var(--blue);
}

.role-line article:nth-child(4) .portrait {
  background: var(--coral);
}

.role-line strong,
.role-line span {
  display: block;
}

.role-line strong {
  color: var(--blue);
}

.role-line span {
  color: var(--muted);
  font-size: 0.9rem;
}

.role-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.visit-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(400px, 1fr) minmax(220px, 0.45fr);
  gap: clamp(28px, 5vw, 56px);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.visit-copy {
  position: relative;
  z-index: 1;
}

.visit-copy p {
  color: rgba(255, 255, 255, 0.8);
}

.application-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: start;
  padding: 4px;
  background: var(--paper);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

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

.full,
.application-form button {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 6px 4px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
}

.notice.success {
  border-left: 8px solid var(--green);
}

.notice.error {
  border-left: 8px solid var(--coral);
}

.closing-note {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: 32px;
  color: var(--ink);
  background: var(--green);
}

.closing-note span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1.02;
}

.closing-note span:last-child::after {
  content: "";
  display: block;
  width: 210px;
  height: 7px;
  margin-top: 10px;
  background: var(--ink);
  transform: rotate(-3deg);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #06172a;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--green);
  font-weight: 700;
}

.portal-body {
  min-height: 100vh;
  color: var(--white);
  background: var(--ink);
}

.portal-app {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--ink);
  font-size: 14px;
  background:
    linear-gradient(180deg, #f8fbfe 0%, #edf5fb 100%);
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 24px 20px;
  color: var(--white);
  background: rgba(6, 26, 48, 0.97);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: 12px 0 44px rgba(7, 27, 51, 0.12);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
}

.portal-brand img {
  width: 150px;
  height: auto;
}

.portal-login-brand {
  display: inline-flex;
  justify-content: center;
}

.portal-login-brand img {
  width: min(240px, 72vw);
  height: auto;
}

.portal-sidebar nav {
  display: grid;
  align-content: start;
  gap: 4px;
}

.portal-sidebar nav a,
.portal-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  font-weight: 550;
  border-radius: 9px;
}

.portal-sidebar nav a i {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
}

.portal-sidebar nav a.active,
.portal-sidebar nav a:hover,
.portal-logout:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
}

.portal-sidebar nav a.active i,
.portal-sidebar nav a:hover i {
  color: var(--ink);
  background: var(--coral);
}

.portal-menu-toggle {
  display: none;
}

.portal-main {
  min-height: 100vh;
  margin-left: 264px;
  padding: clamp(18px, 3vw, 38px);
}

.portal-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.portal-topbar p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.portal-topbar > span {
  font-weight: 700;
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 650;
}

.portal-actions a,
.portal-actions button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 8px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.portal-actions span {
  color: var(--ink-soft);
}

.portal-grid {
  display: grid;
  gap: 10px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 10px;
}

.stats-grid article,
.portal-panel {
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(7, 27, 51, 0.1);
  border-radius: 0;
  box-shadow: none;
}

.stats-grid span,
.portal-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-grid strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.portal-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 8px;
}

.portal-panel h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.portal-list {
  display: grid;
  gap: 6px;
}

.portal-list a,
.portal-list > div,
.meeting-list article {
  display: block;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.09);
  border-radius: 0;
}

.crm-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 26, 48, 0.98), rgba(13, 49, 88, 0.94)),
    radial-gradient(circle at 88% 18%, rgba(134, 188, 232, 0.36), transparent 28rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(7, 27, 51, 0.14);
}

.crm-hero.compact {
  align-items: start;
}

.crm-hero span,
.panel-heading span {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.crm-hero h2 {
  max-width: 760px;
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.03;
}

.crm-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.crm-hero .portal-button {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
}

.crm-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-stats article {
  position: relative;
  overflow: hidden;
}

.crm-stats article::after {
  display: none;
}

.crm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px 32px;
  margin-top: 8px;
}

.crm-grid .wide {
  grid-column: span 1;
}

.crm-panel {
  display: grid;
  gap: 12px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.14rem, 1.55vw, 1.55rem);
  line-height: 1.12;
}

.panel-heading a {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.pipeline-row > div,
.pipeline-row > a {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.09);
  border-radius: 0;
}

.pipeline-row > a.active {
  border-color: rgba(24, 90, 145, 0.28);
  box-shadow: inset 3px 0 0 var(--blue);
  padding-left: 12px;
}

.pipeline-row span,
.donut-list span,
.detail-list span,
.crm-table span {
  color: var(--muted);
}

.pipeline-row strong {
  font-size: 1.52rem;
  line-height: 1;
}

.pipeline-row em,
.leaderboard em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 650;
}

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

.donut-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.1);
}

.donut-list strong {
  font-size: 1.25rem;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 170px;
}

.bar-chart div {
  display: grid;
  grid-template-rows: 1fr auto auto;
  flex: 1;
  min-width: 0;
  gap: 7px;
  height: 170px;
  text-align: center;
}

.bar-chart i {
  align-self: end;
  display: block;
  height: var(--bar-height);
  min-height: 8px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  border-radius: 8px 8px 2px 2px;
}

.bar-chart span {
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-chart strong {
  font-size: 0.82rem;
}

.leaderboard {
  display: grid;
  gap: 12px;
}

.leaderboard div {
  display: grid;
  gap: 7px;
}

.leaderboard strong,
.crm-table strong {
  display: block;
}

.leaderboard strong span,
.crm-table strong span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.leaderboard i {
  display: block;
  width: var(--bar-width);
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
}

.referral-pipeline {
  margin-bottom: 18px;
}

.referral-workspace {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.referral-list-panel {
  align-content: start;
}

.crm-filter {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.crm-filter label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.crm-filter select,
.crm-filter input {
  min-height: 38px;
  padding: 9px 10px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 51, 0.14);
  border-radius: 8px;
  font: inherit;
}

.crm-table {
  display: grid;
  gap: 0;
}

.crm-table a {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(180px, 1fr) 140px 90px;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.09);
  border-radius: 0;
}

.crm-table b {
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--ink);
  background: #eaf4fb;
  border: 1px solid rgba(24, 90, 145, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
  text-transform: capitalize;
}

.status-pill.finalised {
  color: #0f5132;
  background: #e7f5ee;
  border-color: rgba(15, 81, 50, 0.16);
}

.status-pill.did_not_proceed {
  color: #7a2e16;
  background: #fff0e8;
  border-color: rgba(122, 46, 22, 0.16);
}

.referral-detail-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-radius: 14px;
}

.referral-detail-hero h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.referral-detail-hero p,
.referral-detail-hero strong span {
  color: rgba(255, 255, 255, 0.72);
}

.referral-detail-hero > strong {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.referral-detail-hero > strong span {
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-list div {
  padding: 10px 0;
  background: transparent;
  border-bottom: 1px solid rgba(7, 27, 51, 0.09);
  border-radius: 0;
}

.detail-list .full {
  grid-column: 1 / -1;
}

.detail-list strong,
.detail-list p {
  display: block;
  margin: 4px 0 0;
}

.portal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.portal-form .full {
  grid-column: 1 / -1;
}

.portal-form select,
.portal-form input,
.portal-form textarea,
.rsvp-form select,
.rsvp-form input,
.admin-table select,
.admin-table input {
  min-height: 38px;
  padding: 9px 10px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 51, 0.14);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
}

.portal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.portal-check input {
  width: auto;
  min-height: 0;
}

.rsvp-form,
.admin-table form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table form {
  grid-template-columns: minmax(220px, 1fr) 150px 150px 160px auto;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.09);
}

.admin-table strong span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.meeting-hub {
  align-items: stretch;
}

.meeting-focus p {
  margin: 0 0 12px;
  color: var(--muted);
}

.meeting-focus p strong {
  color: var(--ink);
}

.meeting-card-row {
  display: grid;
  gap: 16px;
}

.meeting-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 20px;
  align-items: start;
}

.meeting-row-main strong,
.meeting-row-main span,
.meeting-assets a,
.meeting-assets span {
  display: block;
}

.meeting-assets {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.meeting-assets a {
  color: var(--blue);
  font-weight: 800;
}

.meeting-assets span {
  color: var(--muted);
  font-size: 0.92rem;
}

.meeting-admin-tools,
.meeting-upload-tools {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.meeting-admin-tools summary,
.meeting-upload-tools summary {
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.meeting-admin-tools .portal-form,
.meeting-upload-tools .portal-form {
  margin-top: 14px;
}

.portal-form input[type="file"] {
  padding-top: 9px;
}

.meeting-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--portal-line, var(--line));
  border-radius: 8px;
  background: var(--portal-surface, var(--white));
}

.meeting-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.meeting-table th,
.meeting-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--portal-line, var(--line));
}

.meeting-table th {
  color: var(--portal-muted, var(--muted));
  background: var(--portal-surface-soft, #f8fbfe);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.meeting-table tr:last-child td {
  border-bottom: 0;
}

.meeting-table td strong,
.meeting-table td span {
  display: block;
}

.meeting-table td strong {
  color: var(--portal-text, var(--ink));
  font-weight: 700;
}

.meeting-table td span {
  margin-top: 2px;
  color: var(--portal-muted, var(--muted));
  font-size: 0.8rem;
}

.meeting-table-rsvp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
  margin: 0;
}

.meeting-table-rsvp select,
.meeting-table-rsvp input {
  width: 100%;
}

.meeting-table .meeting-assets {
  justify-items: start;
  text-align: left;
}

.meeting-table .meeting-assets a {
  display: inline-flex;
}

.meeting-table .meeting-admin-tools,
.meeting-table .meeting-upload-tools {
  position: relative;
  padding: 0;
  border: 0;
}

.meeting-table .meeting-admin-tools + .meeting-upload-tools {
  margin-top: 7px;
}

.meeting-table .meeting-admin-tools summary,
.meeting-table .meeting-upload-tools summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: var(--portal-blue, var(--blue));
  background: var(--portal-blue-soft, #eaf4fb);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 680;
}

.meeting-table .meeting-admin-tools .portal-form,
.meeting-table .meeting-upload-tools .portal-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(620px, calc(100vw - 40px));
  padding: 16px;
  background: var(--portal-surface, var(--white));
  border: 1px solid var(--portal-line, var(--line));
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(7, 27, 51, 0.16);
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.help-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.help-search {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.help-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 27, 51, 0.14);
  border-radius: 12px;
  font: inherit;
}

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

.sop-card {
  display: grid;
  gap: 16px;
}

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

.sop-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sop-shots span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  color: var(--ink);
  background: #f8fbfe;
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(24, 90, 145, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.sop-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: sop;
  list-style: none;
}

.sop-steps li {
  position: relative;
  padding: 14px 14px 14px 50px;
  background: rgba(238, 246, 252, 0.72);
  border-radius: 12px;
}

.sop-steps li::before {
  counter-increment: sop;
  content: counter(sop);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.sop-steps strong,
.sop-steps span {
  display: block;
}

.sop-steps span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.portal-tour {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 48, 0.22);
}

.tour-card {
  position: fixed;
  z-index: 3;
  width: min(292px, calc(100vw - 28px));
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(7, 27, 51, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(7, 27, 51, 0.18);
  pointer-events: auto;
}

.tour-card h2 {
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
}

.tour-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tour-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.tour-card button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(7, 27, 51, 0.14);
  border-radius: 9px;
  background: var(--white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.tour-card [data-tour-next] {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.tour-count {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-pulse {
  position: fixed;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 145, 202, 0.56);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: tour-pulse 1.25s ease-out infinite;
}

.tour-pulse::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 2px solid rgba(134, 188, 232, 0.92);
  border-radius: inherit;
}

@keyframes tour-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 145, 202, 0.56);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(61, 145, 202, 0);
  }
}

.pwa-prompt {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 150;
  width: min(420px, calc(100vw - 28px));
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(7, 27, 51, 0.2);
}

.pwa-prompt span {
  display: block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pwa-prompt h2 {
  margin: 6px 30px 8px 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.pwa-prompt p {
  margin: 0;
  color: var(--muted);
}

.pwa-prompt-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: rgba(7, 27, 51, 0.06);
  border: 0;
  border-radius: 999px;
  font-size: 1.25rem;
}

.pwa-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pwa-prompt-actions .portal-button {
  margin: 0;
}

.pwa-prompt-actions .secondary {
  color: var(--blue);
  background: var(--white);
  border-color: rgba(24, 90, 145, 0.22);
}

.pwa-prompt-status {
  margin-top: 10px !important;
  font-size: 0.9rem;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-list div {
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.09);
}

.comment-list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 8px solid var(--blue);
  font-weight: 700;
}

.portal-flash.success {
  border-color: var(--green);
}

.portal-flash.error {
  border-color: var(--coral);
}

.portal-login {
  display: grid;
  align-content: center;
  place-items: center;
  gap: 24px;
  min-height: 100vh;
  padding: 28px;
}

.portal-login .brand {
  position: fixed;
  top: 28px;
  left: 28px;
}

.login-card {
  width: min(100%, 560px);
  padding: clamp(30px, 5vw, 52px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.login-card p {
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-card button:disabled,
.login-card input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero,
  .philosophy,
  .rhythm,
  .member-preview,
  .directory-section,
  .leadership-section,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .side-label {
    writing-mode: horizontal-tb;
    transform: none;
    justify-self: start;
  }

  .rhythm-photo {
    margin-left: 0;
  }

  .rhythm-photo,
  .rhythm-panel,
  .hand-note {
    min-height: 420px;
  }

  .role-line,
  .directory-grid,
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-image,
  .role-line {
    grid-column: auto;
  }

  .flow-steps article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: 82px;
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-action {
    color: var(--green) !important;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 42px 18px 46px;
    overflow: hidden;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 9.6vw, 3.65rem);
    line-height: 1.04;
  }

  .hero-dots {
    display: none;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 26px;
  }

  .network-lines {
    display: none;
  }

  .meeting-orbit {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .photo-slot {
    min-height: 280px;
  }

  .philosophy,
  .rhythm,
  .member-preview,
  .directory-section,
  .referral-flow,
  .leadership-section,
  .visit-section {
    padding: 52px 18px;
  }

  h2 {
    font-size: clamp(2.35rem, 9.8vw, 3.45rem);
    line-height: 1;
  }

  .philosophy h2::after,
  .member-copy h2::after,
  .visit-copy h2::after {
    width: min(210px, 64vw);
    height: 6px;
  }

  .philosophy-art {
    display: none;
  }

  .rhythm {
    padding-top: 0;
    padding-bottom: 0;
    background: var(--paper);
  }

  .rhythm-photo {
    min-height: 250px;
  }

  .rhythm-panel,
  .hand-note {
    min-height: auto;
  }

  .rhythm-panel {
    padding: 34px 24px;
    border-radius: 0 0 26px 26px;
  }

  .meeting-details {
    gap: 0;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .meeting-details div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
    border-top: 0;
  }

  .meeting-details div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .meeting-details div:last-child {
    border-bottom: 0;
  }

  .meeting-details strong {
    font-size: 1rem;
  }

  .rhythm-panel ul {
    gap: 14px;
    margin-top: 24px;
  }

  .rhythm-panel li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 16px;
    border-left: 3px solid var(--green);
  }

  .rhythm-panel li::before {
    display: none;
  }

  .hand-note {
    padding: 38px 24px;
  }

  .hand-note span,
  .closing-note span {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
    line-height: 1.02;
  }

  .hand-note img {
    position: static;
    width: 100%;
    margin-top: 20px;
  }

  .portal-mockup,
  .application-form,
  .role-line,
  .directory-grid,
  .flow-steps,
  .crm-grid,
  .portal-two,
  .stats-grid,
  .crm-stats,
  .portal-form,
  .rsvp-form,
  .admin-table form,
  .meeting-row-main,
  .referral-workspace,
  .crm-filter,
  .crm-table a {
    grid-template-columns: 1fr;
  }

  .crm-hero,
  .panel-heading,
  .referral-detail-hero {
    align-items: start;
    flex-direction: column;
  }

  .crm-hero {
    padding: 22px;
  }

  .crm-hero h2 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .pipeline-row {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    min-height: 180px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .bar-chart div {
    min-width: 74px;
    height: 180px;
  }

  .crm-table b,
  .referral-detail-hero > strong {
    text-align: left;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .meeting-assets {
    justify-items: start;
    text-align: left;
  }

  .member-image {
    transform: none;
  }

  .portal-mockup {
    min-height: 0;
  }

  .portal-mockup aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-steps article {
    min-height: auto;
  }

  .leadership-image {
    aspect-ratio: 4 / 3;
  }

  .role-line {
    gap: 28px;
  }

  .portrait {
    width: 96px;
    height: 96px;
    font-size: 2.2rem;
  }

  .visit-section {
    overflow: visible;
  }

  .application-form {
    padding: 14px;
  }

  .closing-note {
    min-height: auto;
    padding: 30px 24px;
  }

  .portal-sidebar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    width: 100%;
    margin: 0;
    padding: 10px 12px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(7, 27, 51, 0.16);
  }

  .portal-brand {
    align-self: center;
  }

  .portal-brand img {
    width: 112px;
  }

  .portal-menu-toggle {
    position: relative;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px 8px 38px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .portal-menu-toggle span {
    display: block;
    position: absolute;
    left: 14px;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }

  .portal-menu-toggle span:nth-child(1) {
    top: 12px;
  }

  .portal-menu-toggle span:nth-child(2) {
    top: 18px;
  }

  .portal-menu-toggle span:nth-child(3) {
    top: 24px;
  }

  .portal-menu-toggle b {
    font: inherit;
  }

  .portal-sidebar nav {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transition: max-height 180ms ease, opacity 180ms ease, padding 180ms ease;
  }

  .portal-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .portal-sidebar.is-open nav {
    max-height: 420px;
    padding-top: 8px;
    opacity: 1;
  }

  .portal-sidebar nav a,
  .portal-logout {
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .portal-logout {
    grid-column: 1 / -1;
    justify-self: end;
    display: none;
    width: 100%;
    text-align: center;
  }

  .portal-sidebar.is-open .portal-logout {
    display: block;
  }

  .portal-main {
    margin-left: 0;
    padding: 86px 14px 28px;
  }

  .portal-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .portal-topbar p {
    margin-bottom: 5px;
    font-size: 0.7rem;
  }

  .portal-topbar h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 0.98;
  }

  .portal-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .portal-actions a,
  .portal-actions button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  .portal-actions span {
    flex-basis: 100%;
    font-size: 0.92rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .stats-grid article,
  .portal-panel {
    padding: 14px 0;
    border-radius: 0;
  }

  .stats-grid strong {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .portal-two {
    gap: 12px;
    margin-top: 12px;
  }

  .portal-list {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 126px;
  }

  .brand-logo {
    width: 126px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.12rem, 9vw, 2.75rem);
    line-height: 1.06;
  }

  .hero-copy p {
    margin-top: 22px;
    font-size: 1rem;
  }

  .hero-note {
    width: 100%;
    margin-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
  }

  .button {
    flex: 1 1 0;
    min-height: 52px;
    padding: 14px 12px;
  }

  h2 {
    font-size: clamp(2.08rem, 9.6vw, 2.85rem);
    line-height: 1.03;
  }

  .philosophy h2::after,
  .member-copy h2::after,
  .visit-copy h2::after {
    width: min(180px, 58vw);
  }

  .photo-slot {
    min-height: 240px;
  }

  .rhythm-photo {
    min-height: 210px;
  }

  .rhythm-panel {
    padding: 30px 18px;
  }

  .meeting-details div {
    padding: 14px;
  }

  .rhythm-panel ul {
    margin-top: 20px;
  }

  .site-nav {
    right: 12px;
    left: 12px;
  }

  .flow-steps span {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }

  .application-form,
  .login-card,
  .portal-panel,
  .stats-grid article {
    padding: 22px 18px;
  }

  .portal-login .brand {
    position: static;
    margin-bottom: 26px;
  }
}

@media (max-width: 420px) {
  .pwa-prompt {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    padding: 16px;
    border-radius: 14px;
  }

  .pwa-prompt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pwa-prompt-actions .portal-button {
    width: 100%;
  }

  .portal-sidebar {
    padding: 9px 10px 10px;
  }

  .portal-brand img {
    width: 104px;
  }

  .portal-sidebar nav a,
  .portal-logout {
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .portal-main {
    padding: 82px 12px 24px;
  }

  .stats-grid article,
  .portal-panel {
    padding: 12px 0;
    border-radius: 0;
  }

  .portal-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(1.32rem, 7vw, 1.72rem);
  }

  .portal-topbar h1 {
    font-size: clamp(1.9rem, 11vw, 2.45rem);
  }
}

/* Portal product redesign */
.portal-app {
  --portal-bg: #f5f8fb;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f9fbfd;
  --portal-text: #071b33;
  --portal-muted: #627183;
  --portal-line: #dfe7ef;
  --portal-blue: #185a91;
  --portal-blue-deep: #0b2d4e;
  --portal-blue-soft: #eaf4fb;
  --portal-green: #2f8c95;
  --portal-danger: #a34b2d;
  min-height: 100vh;
  color: var(--portal-text);
  background: var(--portal-bg);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.48;
}

.portal-app * {
  letter-spacing: 0;
}

.portal-sidebar {
  width: 246px;
  gap: 22px;
  padding: 22px 16px;
  color: var(--portal-text);
  background: var(--portal-surface);
  border-right: 1px solid var(--portal-line);
  box-shadow: none;
}

.portal-brand img {
  width: 142px;
}

.portal-sidebar nav {
  gap: 2px;
}

.portal-sidebar nav a,
.portal-logout {
  gap: 11px;
  min-height: 38px;
  padding: 8px 10px;
  color: #536373;
  background: transparent;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.2;
}

.portal-sidebar nav a:hover,
.portal-logout:hover {
  color: var(--portal-blue-deep);
  background: var(--portal-blue-soft);
}

.portal-sidebar nav a.active {
  color: var(--portal-blue-deep);
  background: #f0f6fb;
  box-shadow: inset 3px 0 0 var(--portal-blue);
}

.portal-nav-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: currentColor;
}

.portal-sidebar nav a i {
  display: none;
}

.portal-main {
  margin-left: 246px;
  padding: 28px clamp(24px, 3.8vw, 56px) 42px;
}

.portal-topbar {
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-topbar p {
  margin: 0 0 3px;
  color: var(--portal-blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.portal-topbar h1,
.portal-panel h2,
.crm-hero h2,
.referral-detail-hero h2,
.login-card h1 {
  font-family: "DM Sans", Arial, sans-serif;
}

.portal-topbar h1 {
  color: var(--portal-text);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 760;
  line-height: 1.06;
}

.portal-actions {
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 560;
}

.portal-actions a,
.portal-actions button {
  min-height: 32px;
  padding: 7px 10px;
  color: var(--portal-blue-deep);
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 620;
  box-shadow: 0 1px 2px rgba(7, 27, 51, 0.04);
}

.portal-actions span {
  color: #34495d;
  font-size: 0.88rem;
  font-weight: 620;
}

.crm-hero,
.referral-detail-hero {
  align-items: end;
  margin: 0 0 20px;
  padding: 0 0 22px;
  color: var(--portal-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--portal-line);
  border-radius: 0;
  box-shadow: none;
}

.crm-hero span,
.panel-heading span {
  color: var(--portal-blue);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.crm-hero h2 {
  max-width: 720px;
  margin: 4px 0 5px;
  color: var(--portal-text);
  font-size: clamp(1.45rem, 2.3vw, 2.18rem);
  font-weight: 760;
  line-height: 1.08;
}

.crm-hero p,
.referral-detail-hero p,
.referral-detail-hero strong span {
  max-width: 640px;
  color: var(--portal-muted);
  font-size: 0.95rem;
}

.crm-hero .portal-button {
  color: var(--white);
  background: var(--portal-blue);
}

.portal-button {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--portal-blue);
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(7, 27, 51, 0.08);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 22px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.stats-grid article {
  padding: 17px 18px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--portal-line);
  border-radius: 0;
}

.stats-grid article:nth-child(4n),
.stats-grid article:last-child {
  border-right: 0;
}

.stats-grid span,
.portal-list span,
.pipeline-row span,
.donut-list span,
.detail-list span,
.crm-table span,
.meeting-assets span,
.admin-table strong span,
.comment-list span {
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.stats-grid strong {
  margin-top: 7px;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--portal-text);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 760;
}

.portal-panel {
  padding: 18px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: none;
}

.portal-panel h2 {
  margin: 0 0 12px;
  color: var(--portal-text);
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  font-weight: 720;
  line-height: 1.18;
}

.crm-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.portal-two {
  gap: 18px;
  margin-top: 18px;
}

.panel-heading {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--portal-line);
}

.panel-heading h2 {
  margin-top: 2px;
  font-size: 1.06rem;
  font-weight: 720;
}

.panel-heading a {
  color: var(--portal-blue);
  font-size: 0.84rem;
  font-weight: 650;
}

.pipeline-row {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.pipeline-row > div,
.pipeline-row > a {
  padding: 14px 16px;
  background: var(--portal-surface);
  border: 0;
  border-right: 1px solid var(--portal-line);
  border-radius: 0;
}

.pipeline-row > div:last-child,
.pipeline-row > a:last-child {
  border-right: 0;
}

.pipeline-row > a.active {
  padding-left: 16px;
  background: var(--portal-blue-soft);
  border-color: var(--portal-line);
  box-shadow: inset 0 -3px 0 var(--portal-blue);
}

.pipeline-row strong {
  color: var(--portal-text);
  font-size: 1.35rem;
  font-weight: 760;
}

.pipeline-row em,
.leaderboard em {
  color: #46596c;
  font-size: 0.82rem;
  font-weight: 580;
}

.donut-list div,
.detail-list div,
.comment-list div,
.portal-list a,
.portal-list > div,
.meeting-list article {
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--portal-line);
  border-radius: 0;
}

.donut-list div:first-child,
.detail-list div:first-child,
.comment-list div:first-child,
.portal-list a:first-child,
.portal-list > div:first-child {
  padding-top: 0;
}

.donut-list strong {
  font-size: 1.05rem;
  font-weight: 720;
}

.bar-chart {
  min-height: 156px;
  gap: 10px;
}

.bar-chart div {
  height: 156px;
  gap: 6px;
}

.bar-chart i {
  background: linear-gradient(180deg, #2f8c95, #185a91);
  border-radius: 4px 4px 1px 1px;
}

.bar-chart span {
  font-size: 0.72rem;
}

.bar-chart strong {
  font-size: 0.76rem;
  font-weight: 680;
}

.leaderboard {
  gap: 14px;
}

.leaderboard div {
  gap: 6px;
}

.leaderboard strong,
.crm-table strong {
  color: var(--portal-text);
  font-weight: 700;
}

.leaderboard strong span,
.crm-table strong span {
  margin-top: 1px;
  font-size: 0.8rem;
  font-weight: 500;
}

.leaderboard i {
  height: 5px;
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-green));
}

.referral-pipeline {
  margin-bottom: 18px;
}

.referral-workspace {
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
}

.crm-filter {
  grid-template-columns: minmax(140px, 0.28fr) minmax(220px, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.crm-filter label,
.portal-form label,
.rsvp-form label,
.admin-table label {
  color: #415367;
  font-size: 0.8rem;
  font-weight: 650;
}

.crm-filter select,
.crm-filter input,
.portal-form select,
.portal-form input,
.portal-form textarea,
.rsvp-form select,
.rsvp-form input,
.admin-table select,
.admin-table input,
.help-search input {
  min-height: 36px;
  padding: 8px 10px;
  color: var(--portal-text);
  background: var(--portal-surface);
  border: 1px solid #cad6e2;
  border-radius: 6px;
  font-size: 0.86rem;
  box-shadow: inset 0 1px 2px rgba(7, 27, 51, 0.03);
}

.portal-form textarea {
  min-height: 104px;
}

.portal-form {
  gap: 12px;
}

.crm-table {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.crm-table a {
  grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 0.9fr) minmax(116px, 0.45fr) 86px;
  gap: 12px;
  padding: 13px 14px;
  background: var(--portal-surface);
  border-bottom: 1px solid var(--portal-line);
}

.crm-table a:hover {
  background: var(--portal-surface-soft);
}

.crm-table a:last-child {
  border-bottom: 0;
}

.crm-table b {
  color: var(--portal-text);
  font-size: 0.9rem;
  font-weight: 720;
}

.status-pill {
  min-height: 24px;
  padding: 4px 9px;
  color: #7a5b05;
  background: #fff6d7;
  border-color: #f2d675;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 760;
}

.status-pill.finalised {
  color: #126246;
  background: #e8f6f1;
  border-color: #b9dfd0;
}

.status-pill.open {
  color: #7a5b05;
  background: #fff6d7;
  border-color: #f2d675;
}

.status-pill.did_not_proceed {
  color: var(--portal-danger);
  background: #fff0e9;
  border-color: #f1c8b8;
}

.traffic-badge {
  display: inline-flex !important;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px !important;
  padding: 4px 9px;
  border: 1px solid #f2d675;
  border-radius: 999px;
  color: #7a5b05;
  background: #fff6d7;
  font-size: 0.68rem !important;
  font-weight: 760;
  line-height: 1.1;
}

.traffic-badge.attending,
.traffic-badge.completed,
.traffic-badge.finalised,
.traffic-badge.active,
.traffic-badge.good {
  color: #126246;
  background: #e8f6f1;
  border-color: #b9dfd0;
}

.traffic-badge.substitute,
.traffic-badge.unsure,
.traffic-badge.open,
.traffic-badge.pending,
.traffic-badge.scheduled,
.traffic-badge.new,
.traffic-badge.contacted,
.traffic-badge.watch {
  color: #7a5b05;
  background: #fff6d7;
  border-color: #f2d675;
}

.traffic-badge.apology,
.traffic-badge.cancelled,
.traffic-badge.inactive,
.traffic-badge.did_not_proceed,
.traffic-badge.declined,
.traffic-badge.danger {
  color: var(--portal-danger);
  background: #fff0e9;
  border-color: #f1c8b8;
}

.traffic-dot {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  margin: 0 7px 0 0 !important;
  border-radius: 999px;
  vertical-align: 1px;
}

.traffic-dot.good {
  background: #1f9d64;
}

.traffic-dot.watch {
  background: #d99a12;
}

.traffic-dot.danger {
  background: #c45b3b;
}

.traffic-select.is-good,
.traffic-select.is-watch,
.traffic-select.is-danger {
  border-width: 1px;
  font-weight: 650;
}

.traffic-select.is-good {
  color: #126246;
  background: #f3fbf8;
  border-color: #94d1ba;
}

.traffic-select.is-watch {
  color: #7a5b05;
  background: #fffaf0;
  border-color: #e8ca61;
}

.traffic-select.is-danger {
  color: var(--portal-danger);
  background: #fff6f2;
  border-color: #e7b49f;
}

.referral-detail-hero > strong {
  color: var(--portal-text);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 760;
}

.detail-list {
  gap: 0 18px;
}

.meeting-row-main {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.32fr);
}

.meeting-row-main strong {
  color: var(--portal-text);
  font-weight: 700;
}

.meeting-assets a,
.meeting-admin-tools summary,
.meeting-upload-tools summary {
  color: var(--portal-blue);
  font-weight: 680;
}

.admin-table {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.admin-table form {
  grid-template-columns: minmax(200px, 1fr) 135px 135px 150px auto;
  margin: 0;
  padding: 13px 14px;
  background: var(--portal-surface);
  border-bottom: 1px solid var(--portal-line);
}

.admin-table form:last-child {
  border-bottom: 0;
}

.help-hero {
  align-items: center;
}

.help-grid {
  gap: 14px;
}

.sop-card {
  gap: 12px;
}

.sop-steps li {
  padding: 12px 12px 12px 44px;
  background: var(--portal-surface-soft);
  border: 1px solid var(--portal-line);
  border-radius: 7px;
}

.sop-steps li::before {
  top: 12px;
  left: 12px;
  background: var(--portal-blue);
}

.sop-shots span {
  min-height: 32px;
  padding: 6px 9px;
  background: var(--portal-surface);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: none;
}

.portal-flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-left: 4px solid var(--portal-blue);
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 650;
}

.tour-card,
.pwa-prompt {
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(7, 27, 51, 0.16);
}

.tour-card h2,
.pwa-prompt h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 760;
}

.portal-body {
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 140, 149, 0.2), transparent 28rem),
    linear-gradient(135deg, #071b33, #0d3158 68%, #185a91);
}

.portal-login {
  padding: 26px;
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(28px, 4vw, 42px);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.login-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 760;
  line-height: 1.02;
}

.login-card p {
  color: var(--portal-muted);
  font-size: 0.95rem;
}

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

  .stats-grid article:nth-child(2n) {
    border-right: 0;
  }

  .stats-grid article:nth-child(-n + 6) {
    border-bottom: 1px solid var(--portal-line);
  }
}

@media (max-width: 820px) {
  .portal-app {
    font-size: 13px;
  }

  .portal-sidebar {
    grid-template-columns: auto auto;
    gap: 8px 12px;
    width: 100%;
    padding: calc(9px + env(safe-area-inset-top)) 14px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--portal-line);
    box-shadow: 0 8px 24px rgba(7, 27, 51, 0.08);
  }

  .portal-brand img {
    width: 118px;
  }

  .portal-menu-toggle {
    min-height: 34px;
    padding: 7px 12px 7px 36px;
    color: var(--portal-blue-deep);
    background: var(--portal-surface);
    border: 1px solid var(--portal-line);
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 650;
  }

  .portal-menu-toggle span {
    left: 13px;
    width: 15px;
    height: 1.5px;
  }

  .portal-menu-toggle span:nth-child(1) {
    top: 10px;
  }

  .portal-menu-toggle span:nth-child(2) {
    top: 16px;
  }

  .portal-menu-toggle span:nth-child(3) {
    top: 22px;
  }

  .portal-sidebar nav {
    gap: 1px;
    background: var(--portal-surface);
  }

  .portal-sidebar.is-open nav {
    max-height: 520px;
    padding-top: 6px;
  }

  .portal-sidebar nav a,
  .portal-logout {
    min-height: 36px;
    padding: 8px 10px;
    color: #4a5b6c;
    border-radius: 6px;
    font-size: 0.86rem;
    white-space: normal;
  }

  .portal-logout {
    justify-content: flex-start;
    text-align: left;
  }

  .portal-main {
    margin-left: 0;
    padding: calc(74px + env(safe-area-inset-top)) 14px 28px;
  }

  .portal-topbar {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .portal-topbar h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .portal-actions {
    gap: 7px;
  }

  .portal-actions a,
  .portal-actions button {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 0.8rem;
  }

  .crm-hero,
  .referral-detail-hero {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .crm-hero h2 {
    font-size: clamp(1.32rem, 6.2vw, 1.85rem);
  }

  .crm-hero p {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
  }

  .stats-grid article {
    padding: 13px 12px;
  }

  .stats-grid strong {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }

  .portal-panel {
    padding: 15px;
    border-radius: 8px;
  }

  .portal-panel h2 {
    font-size: 1.05rem;
  }

  .crm-grid,
  .portal-two,
  .portal-form,
  .rsvp-form,
  .admin-table form,
  .meeting-row-main,
  .referral-workspace,
  .crm-filter,
  .crm-table a,
  .detail-list,
  .help-hero,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-row {
    grid-template-columns: 1fr;
  }

  .pipeline-row > div,
  .pipeline-row > a {
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .pipeline-row > div:last-child,
  .pipeline-row > a:last-child {
    border-bottom: 0;
  }

  .crm-table a {
    gap: 6px;
  }

  .crm-table b {
    text-align: left;
  }

  .status-pill {
    justify-self: start;
  }

  .bar-chart {
    min-height: 150px;
  }

  .bar-chart div {
    min-width: 68px;
    height: 150px;
  }

  .meeting-assets {
    justify-items: start;
    text-align: left;
  }

  .meeting-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .meeting-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .meeting-table thead {
    display: none;
  }

  .meeting-table,
  .meeting-table tbody,
  .meeting-table tr,
  .meeting-table td {
    display: block;
    width: 100%;
  }

  .meeting-table tr {
    background: var(--portal-surface);
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    overflow: hidden;
  }

  .meeting-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--portal-line);
  }

  .meeting-table td:last-child {
    border-bottom: 0;
  }

  .meeting-table td::before {
    content: attr(data-label);
    color: var(--portal-muted);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .meeting-table-rsvp {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .meeting-table .meeting-admin-tools .portal-form,
  .meeting-table .meeting-upload-tools .portal-form {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .portal-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .portal-brand img {
    width: 108px;
  }

  .stats-grid {
    border-radius: 7px;
  }

  .stats-grid article {
    padding: 12px 10px;
  }

  .portal-panel {
    padding: 14px;
  }

  .portal-topbar h1 {
    font-size: clamp(1.55rem, 9vw, 2rem);
  }

  .meeting-table td {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Public website refresh */
.public-site {
  --site-max: 1180px;
  --site-gutter: clamp(18px, 4vw, 54px);
  --deep: #061a30;
  --blue-soft: #eef6fc;
  --blue-mist: #dcecf7;
  --blue-line: rgba(24, 90, 145, 0.18);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbff 46%, #ffffff 100%);
}

.public-site .site-header {
  min-height: 82px;
  padding: 14px var(--site-gutter);
  color: var(--white);
  background: rgba(6, 26, 48, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 40px rgba(7, 27, 51, 0.14);
}

.public-site .brand {
  min-width: 150px;
}

.public-site .brand-logo {
  width: clamp(132px, 13vw, 184px);
}

.public-site .site-nav {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
}

.public-site .site-nav a:hover {
  color: var(--coral);
}

.public-site .nav-action {
  color: var(--white) !important;
  border-bottom-color: var(--green);
}

.public-site .menu-toggle {
  border-color: rgba(255, 255, 255, 0.24);
}

.public-site .menu-toggle span {
  background: var(--white);
}

.public-site .button {
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 7px;
  font-weight: 800;
}

.public-site .button-primary {
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(24, 90, 145, 0.2);
}

.public-site .button-outline {
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(24, 90, 145, 0.24);
}

.clean-hero,
.intro-strip,
.members-section,
.speakers-section,
.portal-section,
.leadership-clean,
.clean-visit {
  width: min(var(--site-max), calc(100% - (var(--site-gutter) * 2)));
  margin: 0 auto;
}

.clean-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 5.4vw, 76px);
  align-items: center;
  padding: clamp(58px, 8vw, 110px) 0 clamp(44px, 7vw, 82px);
}

.hero-content {
  max-width: 750px;
}

.clean-hero h1,
.intro-copy h2,
.section-heading h2,
.speaker-intro h2,
.portal-copy h2,
.visit-copy h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 760;
  letter-spacing: 0;
  color: var(--ink);
}

.clean-hero h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 6vw, 6.25rem);
  line-height: 0.95;
}

.clean-hero p,
.intro-copy p,
.section-heading p,
.speaker-intro p,
.portal-copy p,
.visit-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.68;
}

.clean-hero .hero-actions {
  margin-top: 30px;
}

.hero-rhythm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 760px;
  margin-top: clamp(32px, 5vw, 52px);
  overflow: hidden;
  background: var(--blue-line);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
}

.hero-rhythm div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-rhythm strong,
.hero-rhythm span {
  display: block;
}

.hero-rhythm strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.hero-rhythm span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.36;
}

.hero-room {
  position: relative;
  min-width: 0;
}

.hero-room::before {
  content: "";
  position: absolute;
  inset: 22px -18px -20px 42px;
  z-index: -1;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 18px;
}

.hero-photo {
  min-height: clamp(430px, 46vw, 620px);
  margin: 0;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(7, 27, 51, 0.16);
}

.hero-photo.photo-slot {
  place-items: end stretch;
}

.hero-photo.photo-slot span {
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  border-left: 0;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(7, 27, 51, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.next-card {
  position: absolute;
  right: clamp(-18px, -2vw, -10px);
  bottom: clamp(18px, 4vw, 36px);
  width: min(290px, calc(100% - 36px));
  padding: 20px;
  color: var(--white);
  background: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 52px rgba(7, 27, 51, 0.25);
}

.next-card small,
.next-card strong,
.next-card time {
  display: block;
}

.next-card small {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-card strong {
  margin-top: 10px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.next-card time {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--green);
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) 0;
  border-top: 1px solid rgba(7, 27, 51, 0.1);
}

.intro-photo {
  min-height: 460px;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(7, 27, 51, 0.13);
}

.intro-copy h2,
.section-heading h2,
.speaker-intro h2,
.portal-copy h2,
.visit-copy h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.02;
}

.principles {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid rgba(7, 27, 51, 0.12);
}

.principles article {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(7, 27, 51, 0.12);
}

.principles strong,
.portal-preview strong,
.leadership-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.principles span,
.portal-preview span,
.leadership-grid span,
.leadership-grid small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.members-section,
.portal-section,
.leadership-clean,
.clean-visit {
  padding: clamp(58px, 8vw, 98px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.66fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-heading h2 {
  margin-top: 0;
}

.section-heading p {
  margin-top: 0;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading.compact p {
  margin-top: 18px;
}

.member-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.member-story {
  position: sticky;
  top: 110px;
  padding: clamp(22px, 3vw, 30px);
  color: var(--white);
  background: var(--deep);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(7, 27, 51, 0.13);
}

.member-story strong,
.member-story span {
  display: block;
}

.member-story strong {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.member-story p {
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.member-story span {
  color: var(--coral);
  font-weight: 850;
}

.member-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.member-cloud article {
  flex: 1 1 230px;
  min-width: min(100%, 230px);
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 14px;
}

.member-cloud small,
.member-cloud strong,
.member-cloud span {
  display: block;
}

.member-cloud small {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-cloud strong {
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.member-cloud span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.speakers-section {
  width: 100%;
  max-width: none;
  padding: clamp(58px, 8vw, 98px) var(--site-gutter);
  background:
    linear-gradient(135deg, rgba(6, 26, 48, 0.97), rgba(13, 49, 88, 0.94)),
    var(--blue);
}

.speaker-board {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 4vw, 54px);
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  color: var(--white);
}

.speaker-intro {
  align-self: start;
}

.speaker-intro .eyebrow {
  color: var(--coral);
}

.speaker-intro h2,
.speaker-intro p {
  color: var(--white);
}

.speaker-intro p {
  color: rgba(255, 255, 255, 0.78);
}

.next-meeting-panel {
  align-self: start;
  padding: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.next-meeting-panel span,
.next-meeting-panel strong,
.next-meeting-panel p,
.next-meeting-panel small {
  display: block;
}

.next-meeting-panel span {
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-meeting-panel strong {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.next-meeting-panel p {
  margin: 16px 0 0;
  color: var(--white);
  font-weight: 750;
}

.next-meeting-panel small {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
}

.speaker-ledger {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.speaker-ledger article {
  display: grid;
  grid-template-columns: minmax(92px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.speaker-ledger article.is-next {
  background: rgba(134, 188, 232, 0.22);
}

.speaker-ledger time,
.speaker-ledger strong {
  display: block;
  min-width: 0;
}

.speaker-ledger time {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
}

.speaker-ledger strong {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.25;
}

.speaker-portal-note {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.portal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.portal-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(7, 27, 51, 0.12);
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 14px;
}

.portal-preview article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.portal-preview span {
  margin-top: 8px;
}

.leadership-clean {
  padding-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid rgba(7, 27, 51, 0.1);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(7, 27, 51, 0.12);
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 14px;
}

.leadership-grid article {
  min-width: 0;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.92);
}

.leadership-grid strong {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.leadership-grid span {
  margin-top: 22px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 780;
  line-height: 1.15;
}

.leadership-grid small {
  margin-top: 8px;
  font-size: 0.9rem;
}

.clean-visit {
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  color: var(--ink);
  background: transparent;
  overflow: visible;
  border-top: 1px solid rgba(7, 27, 51, 0.1);
}

.clean-visit .visit-copy p {
  color: var(--muted);
}

.clean-visit .application-form {
  padding: clamp(18px, 2.5vw, 24px);
  background: var(--white);
  border: 1px solid rgba(7, 27, 51, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(7, 27, 51, 0.09);
}

.public-site label {
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.public-site input,
.public-site textarea {
  border-radius: 7px;
}

.public-site .text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 850;
}

.public-site .site-footer {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1100px) {
  .clean-hero,
  .intro-strip,
  .portal-section,
  .clean-visit {
    grid-template-columns: 1fr;
  }

  .hero-room {
    max-width: 720px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-heading p {
    margin-top: 0;
  }

  .speaker-board {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .public-site .site-header {
    min-height: 76px;
    padding: 12px 18px;
  }

  .public-site .site-nav {
    top: 76px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(7, 27, 51, 0.1);
    border-radius: 14px;
  }

  .clean-hero,
  .intro-strip,
  .members-section,
  .speakers-section,
  .portal-section,
  .leadership-clean,
  .clean-visit {
    width: calc(100% - 36px);
  }

  .clean-hero {
    padding: 34px 0 38px;
  }

  .clean-hero h1 {
    font-size: clamp(2.62rem, 10.4vw, 4.3rem);
    line-height: 0.98;
  }

  .intro-copy h2,
  .section-heading h2,
  .speaker-intro h2,
  .portal-copy h2,
  .visit-copy h2 {
    font-size: clamp(2rem, 8.2vw, 3.1rem);
    line-height: 1.04;
  }

  .clean-hero p,
  .intro-copy p,
  .section-heading p,
  .speaker-intro p,
  .portal-copy p,
  .visit-copy p {
    font-size: 1rem;
  }

  .clean-hero .hero-actions {
    flex-direction: row;
    gap: 10px;
  }

  .clean-hero .button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-rhythm {
    grid-template-columns: 1fr;
  }

  .hero-rhythm div {
    padding: 15px 16px;
  }

  .hero-room::before {
    inset: 18px -8px -14px 28px;
  }

  .hero-photo,
  .intro-photo {
    min-height: 330px;
  }

  .next-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -42px 16px 0;
  }

  .principles article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .speaker-ledger,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .speaker-ledger article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .member-showcase,
  .help-hero,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .member-story {
    position: static;
  }

  .speakers-section {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .clean-visit .application-form {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .clean-hero,
  .intro-strip,
  .members-section,
  .portal-section,
  .leadership-clean,
  .clean-visit {
    width: calc(100% - 28px);
  }

  .public-site .brand-logo {
    width: 122px;
  }

  .clean-hero h1 {
    font-size: clamp(2.42rem, 12vw, 3.25rem);
  }

  .clean-hero .hero-actions {
    flex-direction: column;
  }

  .clean-hero .button {
    width: 100%;
    font-size: 0.92rem;
  }

  .hero-photo,
  .intro-photo {
    min-height: 290px;
    border-radius: 12px;
  }

  .hero-photo.photo-slot span,
  .photo-slot span {
    font-size: 0.7rem;
  }

  .next-card,
  .speaker-ledger,
  .portal-preview,
  .leadership-grid,
  .clean-visit .application-form {
    border-radius: 12px;
  }

  .speaker-ledger article,
  .portal-preview article,
  .leadership-grid article {
    padding: 16px;
  }
}
