/* Page composition from the supplied Figma frames; business forms keep their hooks. */
.figma-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.figma-icon img {
  display: block;
  flex: none;
}
.brand picture {
  display: block;
  line-height: 0;
}
.sidebar-main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 0;
}
.sidebar-main nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-main .nav-item {
  margin: 0;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-account .account-name,
.sidebar-account .account-role {
  display: block;
}
.notification-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.notification-link.active {
  background: var(--green-light);
}
.notification-link .badge-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 20px;
  height: 20px;
  padding: 2px 4px;
  font-size: 10px;
}
.section-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 18px;
  margin: 0 0 16px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a,
.text-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.soft-panel {
  background: var(--green-light);
  border-radius: 20px;
  padding: 24px;
}
.soft-panel p:last-child {
  margin-bottom: 0;
}
.public-page {
  min-height: 100dvh;
}
.public-header,
.public-footer,
.home-content {
  max-width: 1440px;
  margin-inline: auto;
}
.public-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  font-size: 12px;
}
.public-policy-links a,
.auth-policy-links a {
  color: var(--muted);
}
.public-nav .public-kistik-link {
  color: var(--green);
}
.kistik-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.kistik-card > img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.kistik-card h3,
.kistik-card p {
  margin: 0;
  max-width: 38ch;
  overflow-wrap: anywhere;
}
.kistik-card h3 {
  font-size: 24px;
  line-height: 30px;
}
.kistik-card .text-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.kistik-public-content {
  width: 100%;
}
.kistik-page {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1040px;
  margin: 24px auto;
  padding: clamp(24px, 4vw, 56px);
  background: white;
  border-radius: 24px;
}
.kistik-page > * {
  min-width: 0;
}
.kistik-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}
.kistik-portrait img {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
}
.kistik-intro h1,
.kistik-intro p {
  overflow-wrap: anywhere;
}
.kistik-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}
.kistik-status {
  margin: 24px 0;
  padding: 20px;
  background: var(--cream);
  border-radius: 16px;
}
.kistik-status p {
  margin: 12px 0 0;
}
.kistik-intro .actions .button {
  flex: 1 1 200px;
}
.questionnaire-kistik {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .public-header .public-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px 20px;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .dashboard-side .kistik-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1199px) {
  .kistik-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .kistik-portrait img {
    width: 180px;
  }
}
.public-footer {
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 36px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}
.auth-policy-links {
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 24px auto 0;
  font-size: 12px;
}
.auth-form .section-kicker {
  margin-bottom: 24px;
}
.auth-form h1 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 20px;
}
.auth-form .auth-switch {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}
.auth-form .auth-switch + .auth-switch {
  border: 0;
  margin-top: 12px;
  padding-top: 0;
}
.auth-form .button.submit {
  min-height: 56px;
}
.otp-fieldset {
  border: 0;
  padding: 0;
  margin: 36px 0 20px;
}
.otp-fieldset legend {
  font-size: 14px;
  margin-bottom: 16px;
}
.otp-cells {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.otp-cell {
  width: 64px;
  height: 64px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--green);
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}
.otp-cell:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.verification-resend {
  flex-direction: column;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.verification-resend .button {
  border: 0;
  padding: 8px;
  min-height: 0;
}
.home-hero {
  position: relative;
}
.hero-photo {
  position: relative;
  height: clamp(580px, 53.264vw, 767px);
  overflow: hidden;
}
.hero-photo picture {
  display: block;
}
.hero-photo-image {
  position: absolute;
  left: 0;
  top: -32.44%;
  width: 100%;
  height: 132.39%;
  max-width: none;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
  pointer-events: none;
}
.hero-title {
  position: absolute;
  top: 44px;
  left: 56px;
  width: 620px;
  max-width: calc(100% - 112px);
}
.hero-title h1 {
  color: #f4f1e8;
  font-size: 72px;
  font-weight: 600;
  line-height: 78px;
  letter-spacing: -1.44px;
  margin: 0 0 10px;
}
.chalk {
  display: block;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.chalk-mint {
  width: 200px;
  height: 24px;
  background: #b8e9cd;
  mask-image: url("/assets/figma/brushstroke-hero.png");
  -webkit-mask-image: url("/assets/figma/brushstroke-hero.png");
  mask-size: 200px 66.831px;
  -webkit-mask-size: 200px 66.831px;
  mask-position: 0 -20.862px;
  -webkit-mask-position: 0 -20.862px;
}
.chalk-peach {
  width: 360px;
  max-width: 100%;
  height: 28.8px;
  background: #f2aa92;
  mask-image: url("/assets/figma/brushstroke-about.png");
  -webkit-mask-image: url("/assets/figma/brushstroke-about.png");
  mask-size: 360px 80.197px;
  -webkit-mask-size: 360px 80.197px;
  mask-position: 0 -25.034px;
  -webkit-mask-position: 0 -25.034px;
}
.hero-cta {
  position: absolute;
  right: 36px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 312px;
  max-width: calc(100% - 48px);
  height: 72px;
  padding: 14px 14px 14px 28px;
  background: var(--green);
  border-radius: 24px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 18px #0f2e2129;
}
.hero-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 50%;
}
.home-mobile-intro,
.home-mobile-story {
  display: none;
}
.home-about {
  display: grid;
  grid-template-columns: minmax(0, 500fr) minmax(0, 716fr);
  gap: 64px;
  padding: 64px 80px;
}
.home-about-heading .section-kicker {
  color: #7054a0;
  margin-bottom: 24px;
}
.home-about h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 56px;
  margin: 0 0 24px;
}
.home-about-body h3 {
  font-family: Manrope, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 44px;
  margin: 0 0 24px;
}
.home-about-body > p {
  font-family: Manrope, sans-serif;
  color: var(--muted);
  font-size: 16px;
  line-height: 25px;
  margin-bottom: 24px;
}
.home-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-values > div {
  padding: 16px 20px;
  border-radius: 16px;
  background: #dde3d9;
}
.home-values span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
.home-values strong {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.home-directions {
  padding: 56px 48px;
  border-top: 1px solid var(--line);
}
.home-directions .section-heading {
  margin-bottom: 32px;
}
.home-start {
  display: none;
  padding: 32px 48px 56px;
}
.home-page.show-start .home-start {
  display: block;
}
.home-start ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.home-start li {
  display: flex;
  gap: 14px;
}
.home-start li > span {
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--green-light);
  color: var(--green);
  border-radius: 12px;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
}
.home-start li p {
  color: var(--muted);
  margin: 4px 0 0;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.portal-event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.event-image-link {
  display: block;
}
.event-photo {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  flex: 1;
}
.event-card-body h3 {
  font-size: 24px;
  line-height: 29px;
  margin: 0;
}
.event-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.event-card-body p {
  margin: 0;
}
.event-card-body .section-kicker {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}
.event-card-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  display: grid;
  gap: 5px;
}
.event-card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.portal-filters {
  border: 0;
  padding: 0;
  background: transparent;
}
.portal-filters .filter-search {
  width: 100%;
}
.portal-filters .filter-search .field {
  margin-bottom: 4px;
}
.portal-filters select,
.portal-filters input[type="date"] {
  border-radius: 999px;
  min-height: 40px;
}
.portal-filters > .button {
  min-height: 40px;
  padding: 9px 20px;
}
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}
.inline-cta h2 {
  margin: 0;
}
.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.event-detail-photo {
  display: block;
  width: 100%;
  aspect-ratio: 700/330;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 28px;
}
.event-detail-main > .tags {
  margin-bottom: 30px;
}
.event-detail-main section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.event-detail-main section p {
  line-height: 25px;
}
.event-preparation {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}
.event-booking {
  padding: 28px;
}
.event-booking h2 {
  font-size: 36px;
  line-height: 44px;
  margin: 28px 0 6px;
}
.event-facts {
  border-block: 1px solid var(--line);
  margin: 24px 0;
  padding: 12px 0;
}
.event-facts p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.event-apply {
  margin-top: 28px;
  text-align: center;
}
.event-apply > .button {
  width: 100%;
}
.event-apply p {
  margin: 12px 0 0;
}
.roster-section {
  margin-top: 40px;
}
.dashboard-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 28px;
}
.dashboard-next > div {
  max-width: 700px;
}
.dashboard-next h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.dashboard-next > .button {
  flex: none;
}
.dashboard-stats,
.contribution-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-stats .stat,
.contribution-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat small {
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.dashboard-layout,
.learning-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 24px;
  align-items: start;
}
.dashboard-side,
.profile-sidebar {
  display: grid;
  gap: 24px;
}
.dashboard-meeting > img {
  display: block;
  width: 100%;
  aspect-ratio: 660/310;
  object-fit: cover;
  border-radius: 12px;
}
.dashboard-meeting-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}
.dashboard-meeting-body h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.dashboard-meeting-body p {
  font-size: 14px;
}
.learning-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 28px;
}
.learning-progress > div:first-child {
  flex: 1;
}
.learning-progress h3 {
  font-size: 20px;
  margin: 0 0 16px;
}
.learning-progress progress {
  height: 6px;
  width: 100%;
}
.learning-percent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 24px;
}
.learning-percent strong {
  font-size: 42px;
  color: var(--green);
}
.learning-percent span {
  color: var(--muted);
  font-size: 14px;
}
.required-learning {
  margin-bottom: 28px;
}
.required-learning summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.required-learning summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.required-learning summary strong {
  font-size: 24px;
  line-height: 32px;
}
.required-learning summary .section-kicker {
  margin-bottom: 12px;
}
.required-items {
  margin-top: 24px;
}
.required-learning-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.required-learning-item > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.learning-filter {
  background: transparent;
  padding: 0;
  border: 0;
}
.learning-cards {
  display: grid;
  gap: 24px;
}
.learning-card {
  padding: 0;
  overflow: hidden;
}
.learning-card-heading,
.learning-card-body {
  padding: 24px;
}
.learning-card-heading h2 {
  font-size: 24px;
  margin: 12px 0 0;
}
.learning-card-heading a {
  color: inherit;
  text-decoration: none;
}
.learning-card-heading .section-kicker {
  margin: 0;
}
.learning-photo {
  display: block;
  width: 100%;
  aspect-ratio: 660/340;
  object-fit: cover;
}
.learning-card-small .learning-photo {
  width: calc(100% - 48px);
  margin: 0 24px;
  border-radius: 12px;
  aspect-ratio: 2;
}
.learning-card-small .learning-card-heading .row {
  flex-wrap: wrap;
}
.learning-card-small .learning-card-body .button {
  width: 100%;
}
.lesson-body figure {
  margin: 24px 0;
}
.lesson-photo {
  display: block;
  width: 100%;
  aspect-ratio: 2.4;
  object-fit: cover;
  border-radius: 14px;
}
.lesson-body figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.lesson-resource .button {
  width: 100%;
}
.lesson-sidebar .soft-panel {
  margin: 24px 0;
  padding: 16px;
}
.lesson-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}
.lesson-actions > .button:last-child {
  flex: 1;
}
.contribution-history {
  margin-top: 28px;
}
.contribution-history .filters {
  padding: 0;
  border: 0;
}
.contribution-history .table-wrap {
  border: 0;
}
.confirmed-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  white-space: nowrap;
}
.contribution-total {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
}
.contribution-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.gratitude-card {
  background: var(--green-light);
}
.profile-editor h2 {
  font-size: 24px;
  margin: 0 0 20px;
}
.profile-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.profile-section .tags {
  margin-bottom: 20px;
}
.profile-section input[readonly],
.profile-section textarea[readonly] {
  background: #fff;
  color: var(--muted);
}
.profile-identity {
  background: var(--green-light);
}
.profile-identity .avatar {
  width: 72px;
  height: 72px;
  background: #fff;
  color: var(--green);
  font-size: 24px;
  margin-bottom: 22px;
}
.profile-identity h2 {
  font-size: 24px;
  margin: 0 0 12px;
}
.profile-milestones {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.profile-milestones li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-milestones a {
  color: inherit;
  text-decoration: none;
}
.notification-filters {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
}
.notification-filters button {
  cursor: pointer;
}
.notification-filters .selected {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}
.notification-list {
  display: grid;
  gap: 12px;
}
.notification {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  border: 0;
  margin: 0;
  border-radius: 20px;
  padding: 24px 20px;
  background: white;
}
.notification.unread {
  border: 0;
  background: #fff;
}
.notification-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 12px;
}
.notification-body .section-kicker {
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 10px;
}
.notification-body h3 {
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 6px;
}
.notification-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
  margin: 0;
}
.notification-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.notification-state {
  color: var(--green);
  font-size: 12px;
}
.notification-meta .button {
  padding: 10px 18px;
  min-height: 44px;
  font-size: 13px;
}
.notification-meta time {
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 1200px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-directions .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-about {
    padding: 48px;
    gap: 32px;
  }
  .home-about h2 {
    font-size: 40px;
    line-height: 48px;
  }
  .home-about-body h3 {
    font-size: 28px;
    line-height: 36px;
  }
  .home-values strong {
    font-size: 18px;
  }
  .dashboard-layout,
  .learning-layout,
  .profile-layout,
  .event-detail-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  }
  .notification {
    grid-template-columns: 36px minmax(0, 1fr) 180px;
    gap: 16px;
  }
  .notification-symbol {
    width: 36px;
    height: 36px;
  }
  .learning-percent {
    padding: 0;
  }
}
@media (max-width: 1050px) {
  .dashboard-layout,
  .learning-layout,
  .profile-layout,
  .event-detail-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-side,
  .profile-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-identity {
    grid-column: 1/-1;
  }
  .learning-layout > aside {
    max-width: 100%;
  }
  .dashboard-next {
    gap: 24px;
  }
  .dashboard-next .button {
    max-width: 40%;
  }
}
@media (max-width: 760px) {
  .public-header {
    position: relative;
    flex-wrap: wrap;
  }
  .public-header .brand img {
    width: 150px;
    height: 30px;
  }
  .public-header .public-nav,
  .public-header .public-login {
    display: none;
  }
  .public-header .public-menu {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: white;
    border: 0;
    border-radius: 12px;
    order: 2;
  }
  .public-header .brand {
    order: 1;
  }
  .public-header.menu-open .public-nav {
    display: flex;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    gap: 18px;
  }
  .public-header.menu-open .public-login {
    display: inline-flex;
    order: 4;
  }
  .sidebar-main {
    display: contents;
  }
  .sidebar-main nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 0 12px;
    border: 0;
  }
  .sidebar-bottom .sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sidebar-account .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .sidebar-account .account-name {
    max-width: 200px;
  }
  .sidebar-account .account-role {
    font-size: 11px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading a {
    font-size: 13px;
  }
  .home-mobile-intro {
    display: block;
    padding: 28px 24px 20px;
  }
  .home-mobile-intro h1 {
    font-size: 48px;
    line-height: 56px;
    font-weight: 500;
    letter-spacing: 0;
    margin: 20px 0;
  }
  .home-mobile-intro > p:last-child {
    font-size: 16px;
    line-height: 24px;
    color: var(--muted);
    margin-bottom: 0;
  }
  .hero-photo {
    height: auto;
    aspect-ratio: 342/406;
    margin: 0 24px 32px;
    border-radius: 20px;
  }
  .hero-photo-image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-shade,
  .hero-fade,
  .hero-title {
    display: none;
  }
  .hero-cta {
    right: 16px;
    bottom: 16px;
    padding: 16px 24px;
    width: auto;
    height: 52px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
  }
  .hero-cta-arrow {
    width: 20px;
    height: 20px;
    background: transparent;
  }
  .hero-cta-arrow img {
    display: none;
  }
  .hero-cta-arrow:after {
    content: "→";
  }
  .home-about {
    display: block;
    padding: 24px;
    background: white;
  }
  .home-about-heading,
  .home-about-body {
    display: none;
  }
  .home-mobile-story {
    display: block;
  }
  .home-mobile-story h2 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    margin: 16px 0;
  }
  .home-mobile-story > p:last-child {
    font-size: 16px;
    line-height: 24px;
    color: var(--muted);
    margin: 0;
  }
  .home-directions {
    padding: 28px 24px;
  }
  .home-start {
    display: block;
    padding: 28px 24px;
  }
  .home-start ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .home-start .button {
    width: 100%;
  }
  .home-content {
    display: flex;
    flex-direction: column;
  }
  .home-start {
    order: 3;
  }
  .home-directions {
    order: 4;
  }
  .home-about {
    order: 2;
  }
  .home-hero {
    order: 1;
  }
  .home-directions .event-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    flex-wrap: wrap;
    gap: 20px;
  }
  .public-footer > .button {
    width: 100%;
  }
  .auth-form h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .otp-cells {
    gap: 10px;
  }
  .otp-cell {
    width: 56px;
    height: 60px;
  }
  .event-card-body {
    padding: 24px;
  }
  .inline-cta,
  .dashboard-next,
  .dashboard-meeting-body {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-next .button {
    max-width: 100%;
  }
  .dashboard-stats,
  .contribution-stats {
    grid-template-columns: 1fr;
  }
  .dashboard-stats .stat,
  .contribution-stats .stat {
    padding: 24px;
  }
  .dashboard-side,
  .profile-sidebar,
  .contribution-bottom {
    grid-template-columns: 1fr;
  }
  .learning-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .learning-percent {
    flex-direction: row;
    align-items: center;
  }
  .learning-percent strong {
    font-size: 32px;
  }
  .required-learning summary strong {
    font-size: 20px;
    line-height: 28px;
  }
  .required-learning summary > .pill {
    display: none;
  }
  .notification {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 20px 16px;
  }
  .notification-meta {
    grid-column: 2;
    align-items: flex-start;
  }
  .notification-meta .button {
    width: 100%;
  }
  .contribution-total {
    flex-direction: column;
    gap: 8px;
  }
  .lesson-actions {
    flex-wrap: wrap;
  }
  .lesson-actions > .button {
    width: 100%;
  }
}

.login-method {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.login-method .button {
  color: var(--green);
  font-size: 14px;
  padding: 8px;
  min-height: 40px;
}

/* Tablet and desktop layouts. The existing phone rules above stay separate. */
@media (min-width: 768px) {
  /* Scale by width and keep the group at the bottom; crop only the roof above. */
  .hero-photo {
    height: clamp(580px, 53.264vw, 767px);
  }

  .hero-photo-image {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .hero-shade {
    width: min(100%, 1100px);
    height: clamp(240px, 25vw, 360px);
  }

  .hero-fade {
    left: 0;
    width: 100%;
    height: clamp(16px, 1.7vw, 24px);
    max-width: 100%;
    transform: none;
  }

  .home-content,
  .home-about > *,
  .home-values > *,
  .home-start li > div,
  .event-grid > *,
  .event-card-body,
  .event-detail-layout > *,
  .event-facts p > span,
  .dashboard-layout > *,
  .dashboard-side > *,
  .dashboard-meeting-body > *,
  .learning-layout > *,
  .learning-progress > *,
  .learning-card-heading,
  .learning-card-body,
  .required-learning summary > *,
  .required-learning-item > *,
  .profile-layout > *,
  .profile-sidebar > *,
  .profile-editor .field,
  .contribution-history,
  .contribution-bottom > *,
  .notification-list,
  .notification-body,
  .notification-meta {
    min-width: 0;
  }

  .home-content,
  .portal-event-card,
  .event-detail-main,
  .event-booking,
  .dashboard-next,
  .dashboard-layout,
  .dashboard-stats,
  .learning-progress,
  .learning-layout,
  .profile-layout,
  .contribution-stats,
  .contribution-bottom,
  .notification-list,
  .auth-form,
  .auth-policy-links {
    overflow-wrap: anywhere;
  }

  .section-heading {
    min-width: 0;
    flex-wrap: wrap;
  }

  .section-heading > * {
    min-width: 0;
    max-width: 100%;
  }

  .portal-event-card .button,
  .event-booking .button,
  .learning-layout .button,
  .profile-sidebar .button,
  .notification-meta .button,
  .auth-form .button {
    min-width: 0;
    max-width: 100%;
  }

  .portal-filters > .field,
  .learning-filter > .field {
    flex: 1 1 160px;
    min-width: 0;
  }

  .portal-filters .filter-search,
  .portal-filters input,
  .portal-filters select,
  .learning-filter input,
  .profile-editor input,
  .profile-editor select,
  .profile-editor textarea,
  .auth-form input,
  .auth-form select {
    min-width: 0;
    max-width: 100%;
  }

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

  .event-photo {
    height: auto;
    aspect-ratio: 7 / 4;
  }

  .home-directions .event-photo {
    aspect-ratio: 432 / 200;
  }

  .dashboard-next,
  .inline-cta,
  .dashboard-meeting-body,
  .contribution-total,
  .notification-filters,
  .lesson-actions {
    flex-wrap: wrap;
  }

  .dashboard-next > div {
    min-width: 0;
    flex: 1 1 320px;
  }

  .dashboard-next > .button,
  .inline-cta > .button,
  .dashboard-meeting-body > .button {
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
  }

  .dashboard-meeting-body > div {
    flex: 1 1 260px;
  }

  .learning-progress {
    gap: clamp(24px, 3vw, 60px);
  }

  .learning-progress > div:first-child {
    min-width: 0;
  }

  .learning-percent {
    flex: 0 0 auto;
    max-width: 35%;
  }

  .learning-card-heading .row {
    align-items: flex-start;
  }

  .learning-card-heading .pill,
  .profile-identity .pill {
    max-width: 100%;
    white-space: normal;
  }

  .required-learning-item > div {
    flex: 1 1 auto;
  }

  .required-learning-item > .button {
    flex: 0 0 auto;
  }

  .lesson-actions > .button {
    min-width: 0;
    flex: 1 1 220px;
  }

  .lesson-actions > .button:last-child {
    flex-basis: 280px;
  }

  .contribution-history .table-wrap,
  .roster-section .table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .contribution-history td.description-cell,
  .roster-section td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-stats .stat,
  .contribution-stats .stat {
    min-width: 0;
  }

  .dashboard-stats .stat strong,
  .contribution-stats .stat strong {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
  }

  .auth-form,
  .auth-policy-links {
    width: min(100%, 520px);
    min-width: 0;
  }

  .auth-form .check > span,
  .auth-form .form-error {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .auth-form .check input {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .dashboard-layout,
  .learning-layout,
  .profile-layout,
  .event-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-side,
  .profile-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-identity {
    grid-column: 1 / -1;
  }

  .dashboard-next {
    gap: 24px;
  }

  .dashboard-next .button {
    max-width: 100%;
  }

  .dashboard-stats,
  .contribution-stats {
    gap: 16px;
  }

  .dashboard-stats .stat,
  .contribution-stats .stat {
    padding: 20px;
  }

  .event-booking h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .notification {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px 20px;
  }

  .notification-meta {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }

  .notification-meta .button {
    width: auto;
    max-width: 100%;
  }

  .notification-state {
    flex-basis: 100%;
  }

  .notification-meta time {
    white-space: normal;
  }

  .required-learning summary strong {
    font-size: 22px;
    line-height: 30px;
  }

  .learning-layout > aside .learning-card-small {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
  }

  .learning-layout > aside .learning-card-small .learning-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    min-height: 240px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
  }

  .learning-layout > aside .learning-card-small .learning-card-heading {
    grid-column: 2;
    grid-row: 1;
  }

  .learning-layout > aside .learning-card-small .learning-card-body {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }

  .learning-card-small .learning-card-heading h2 {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (min-width: 768px) and (max-width: 1359px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card-body h3 {
    font-size: 22px;
    line-height: 29px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-photo {
    height: clamp(460px, 57vw, 580px);
  }

  .hero-title {
    top: 36px;
    left: 32px;
    width: 560px;
    max-width: calc(100% - 64px);
  }

  .hero-title h1 {
    font-size: clamp(52px, 6.5vw, 64px);
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .hero-cta {
    right: 32px;
    bottom: 24px;
  }

  .home-about {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 32px;
    gap: 32px;
  }

  .home-about h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .home-about-body h3 {
    font-size: 30px;
    line-height: 38px;
  }

  .home-values strong {
    font-size: 22px;
    line-height: 30px;
  }

  .home-directions,
  .home-start {
    padding: 40px 32px;
  }

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

  .home-start ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .home-start li > div {
    max-width: 600px;
  }

  .inline-cta {
    align-items: flex-start;
  }

  .learning-percent {
    padding: 0;
    max-width: 30%;
  }

  .learning-percent strong {
    font-size: 36px;
  }

  .contribution-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1359px) {
  .home-directions .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-about {
    gap: 40px;
    padding-inline: 48px;
  }

  .home-values > div {
    padding-inline: 16px;
  }

  .home-values strong {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (min-width: 1200px) {
  .dashboard-layout,
  .learning-layout,
  .profile-layout,
  .event-detail-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .notification {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 220px);
  }
}

@media (min-width: 1360px) {
  .event-grid,
  .home-directions .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Leave breathing room when the public menu moves to a home section. */
#home-about,
#home-directions,
#home-start {
  scroll-margin-block-start: 24px;
}

/* Explicit temporary code mode, supplied by /api/config. */
.demo-access-banner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px clamp(20px, 3.3vw, 48px);
  color: var(--ink);
  background: #f4e7cc;
  border-block: 1px solid #e7d8b8;
  font-size: 12px;
  line-height: 18px;
}
.demo-access-banner strong {
  font-weight: 700;
}
.demo-access-banner b {
  color: #53411d;
  letter-spacing: 0.14em;
}
.public-page > .demo-access-banner {
  width: 100%;
}
.opportunity-card {
  transition: box-shadow 160ms ease-out;
}
.opportunity-card:focus-within {
  box-shadow: 0 0 0 2px var(--green);
}
.opportunity-card .event-card-body h3 {
  font-weight: 600;
}
.opportunity-card .event-card-location {
  overflow-wrap: anywhere;
}
.event-card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}
.event-card-footer .event-card-capacity {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.event-card-footer .event-card-link {
  margin-top: 0;
}
@media (hover: hover) {
  .opportunity-card:hover {
    box-shadow: 0 10px 32px #213d350d;
  }
  .opportunity-card h3 a:hover {
    color: var(--green);
  }
}
@media (prefers-reduced-motion: reduce) {
  .opportunity-card {
    transition: none;
  }
}
