/* The section keeps the original landing height. Only this absolute content
   layer changes; neither the quote nor its controls can resize the section. */
[data-section-name="section1"].leo-students-section > .rrmc-homepage-carousel-copy,
[data-section-name="section1"].leo-students-section > picture {
  visibility: hidden;
  pointer-events: none;
}
[data-section-name="section1"].leo-students-section {
  background: #151419;
  background: linear-gradient(120deg, #212027, #111015 82%);
}
.leo-students {
  position: absolute;
  z-index: 3;
  inset: clamp(116px, 17vh, 190px) max(32px, 8vw) max(32px, 5vh);
  width: auto;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: clamp(14px, 2.4vh, 28px);
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  isolation: isolate; grid-template-rows: 48px minmax(0, 1fr) 56px 44px;
}
.leo-students *, .leo-students *::before, .leo-students *::after {
  box-sizing: border-box;
}
.leo-students .leo-students-title {
  margin: 0;
  align-self: center;
  color: #f8f7f5;
  font-family: inherit;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: .025em;
  text-transform: none;
  opacity: 1 !important;
  animation: none !important;
}
.leo-students-story {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 46px 32px;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.leo-students-quote-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-items: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2px 8px;
}
.leo-students .leo-students-quote {
  --quote-min-size: 22;
  width: 100%;
  max-width: 62ch;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 300;
  line-height: 1.48;
  letter-spacing: .006em;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-transform: none;
  opacity: 1 !important;
  animation: none !important;
}
.leo-students .leo-students-quote::before,
.leo-students .leo-students-quote::after { content: none; }
.leo-students .leo-students-measure {
  position: absolute;
  inset: 0 0 auto;
  height: auto;
  visibility: hidden;
  pointer-events: none;
}
.leo-students-author {
  display: block;
  align-self: center;
  width: 100%;
  color: #f8f7f5;
  font-size: clamp(14px, 1.3vw, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
}
.leo-students-author-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 25px;
}
.leo-students-identity-note {
  display: block;
  height: 18px;
  color: #c7c4cd;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .01em;
}
.leo-students-part {
  color: #c7c4cd;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: .035em;
}
.leo-students .leo-students-read-more {
  appearance: none;
  height: 32px;
  margin: 0;
  padding: 3px 12px;
  border: 0;
  border-bottom: 1px solid #827e8a;
  border-radius: 0;
  background: transparent;
  color: #f8f7f5;
  font: inherit;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: .025em;
  cursor: pointer;
}
.leo-students .leo-students-read-more[hidden] { display: none; }
.leo-students-read-more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.leo-students-controls {
  display: grid;
  grid-template-columns: minmax(112px, 174px) minmax(65px, 110px) minmax(112px, 174px);
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  min-width: 0;
}
.leo-students .leo-students-button,
.leo-students .leo-students-button:visited,
.leo-students .leo-students-button:hover,
.leo-students .leo-students-button:focus,
.leo-students .leo-students-button:active {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  min-width: 0;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #827e8a;
  border-radius: 999px;
  background: #222027 !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 150ms ease;
}
.leo-students .leo-students-button:hover { border-color: #fff; }
.leo-students .leo-students-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.leo-students .leo-students-button:disabled {
  opacity: .42;
  cursor: default;
}
.leo-students-count {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d7d4dc;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.leo-students .leo-students-jump {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 4ch;
  min-width: 0;
  height: 38px;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid #827e8a;
  border-radius: 0;
  outline-offset: 3px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: none;
}
.leo-students-jump::-webkit-inner-spin-button,
.leo-students-jump::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.leo-students-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .leo-students {
    inset: 112px 27px max(25px, 4vh);
    grid-template-rows: 58px minmax(0, 1fr) 50px;
    gap: 16px;
  }
  .leo-students .leo-students-quote { --quote-min-size: 18; font-size: 20px; line-height: 1.45; }
  .leo-students-story { gap: 10px; }
  .leo-students-controls { grid-template-columns: minmax(90px, 1fr) 66px minmax(90px, 1fr); gap: 8px; }
  .leo-students .leo-students-button { padding: 0 12px; font-size: 12px; }
  .leo-students .leo-students-jump { font-size: 16px; }
}
@media (max-width: 374px) {
  .leo-students { left: 20px; right: 20px; }
  .leo-students .leo-students-quote { font-size: 18px; }
}
@media (max-height: 600px) {
  .leo-students {
    top: 95px;
    bottom: 18px;
    grid-template-rows: 32px minmax(0, 1fr) 44px;
    gap: 9px;
  }
  .leo-students .leo-students-title { font-size: 22px; }
  .leo-students .leo-students-quote { --quote-min-size: 18; font-size: 18px; line-height: 1.35; }
  .leo-students-story { grid-template-rows: minmax(0, 1fr) 40px 28px; gap: 5px; }
  .leo-students-author-name { line-height: 22px; }
  .leo-students-author { font-size: 13px; }
  .leo-students-part { font-size: 11px; line-height: 20px; }
  .leo-students .leo-students-read-more { height: 28px; font-size: 12px; line-height: 20px; }
  .leo-students .leo-students-button { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .leo-students .leo-students-button { transition: none; }
}
@media (min-width: 768px) and (min-height: 421px) and (max-height: 600px) {
  .leo-students .leo-students-quote { font-size: 22px; line-height: 1.42; }
}

/* A reserved fourth row keeps the carousel height unchanged on every story. */
.leo-students-contribute { display: flex; justify-content: center; align-items: center; }
.leo-students .leo-students-contribute .leo-students-button { width: auto; min-width: 220px; height: 44px; border-color: #a9a4b0; background: transparent !important; }
@media (max-width: 767px) { .leo-students { grid-template-rows: 58px minmax(0, 1fr) 50px 44px; gap: 12px; } }
@media (max-height: 600px) { .leo-students { grid-template-rows: 32px minmax(0, 1fr) 44px 40px; gap: 7px; } .leo-students .leo-students-contribute .leo-students-button { height: 40px; } }

/* One card per student. The full text opens separately when it cannot fit. */
.leo-students-quote-slot .leo-students-quote { flex: 0 0 auto; margin-block: auto; }

.leo-student-reader {
  position: fixed;
  inset: 0;
  width: min(820px, calc(100vw - 40px));
  max-width: none;
  max-height: min(760px, calc(100vh - 48px));
  max-height: min(760px, calc(100dvh - 48px));
  margin: auto;
  padding: 30px 36px 20px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #68646e;
  border-radius: 20px;
  background: #19181e;
  color: #f8f7f5;
  font-family: inherit;
  box-shadow: 0 24px 90px #0008;
}
.leo-student-reader[open] { display: flex; flex-direction: column; gap: 22px; }
.leo-student-reader::backdrop { background: #07060bdd; backdrop-filter: blur(6px); }
.leo-student-reader-heading { display: flex; flex: 0 0 auto; gap: 20px; justify-content: space-between; align-items: flex-start; }
.leo-student-reader-heading p { margin: 0 0 8px; color: #c7c4cd; font-size: 13px; line-height: 1.4; }
.leo-student-reader-heading h2 { margin: 0; color: inherit; font: inherit; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.3; overflow-wrap: anywhere; text-transform: none; }
.leo-student-reader-heading button { appearance: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #827e8a; border-radius: 50%; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.leo-student-reader-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.leo-student-reader-body::-webkit-scrollbar { display: none; }
.leo-student-reader-body blockquote { margin: 0; padding: 0; border: 0; color: inherit; font: inherit; font-size: clamp(18px, 2vw, 24px); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; text-transform: none; }
.leo-student-reader-body blockquote::before, .leo-student-reader-body blockquote::after { content: none; }
.leo-student-reader-hint { margin: 0; flex: 0 0 auto; color: #c7c4cd; font-size: 12px; line-height: 1.4; text-align: center; }
.leo-student-reader-hint[hidden] { display: none; }
.leo-student-reader :focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 600px) {
  .leo-student-reader { width: calc(100vw - 24px); padding: 22px 20px 16px; border-radius: 16px; }
  .leo-student-reader[open] { gap: 18px; }
}
