/* Studio page — Our Story, Meet Our Instructors & Staff, FAQs.
   Ported verbatim from the mockup. */

/* First subsection on this page always uses the muted chevron color. */
#our-story .sc-chevron { color: var(--t2); }

/* ================================================================
   OUR STORY CONTENT
================================================================ */
.story-body p {
  font-size: 1rem; color: var(--t1); line-height: 1.7;
}
.story-body p + p { margin-top: 1.2rem; }

/* Story layout — text + side image */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.story-layout-img img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}

/* Ms. Diane subsection */
.ms-diane-block {
  margin-top: 2.75rem; padding-top: 2.75rem;
  border-top: 1px solid var(--b-dim);
  display: grid; grid-template-columns: 220px 1fr;
  gap: 2.5rem; align-items: start;
  scroll-margin-top: 1.5rem;
}
.ms-diane-photo-toggle {
  position: relative; width: 100%; aspect-ratio: 3/4;
  background: var(--bg-card); cursor: pointer; overflow: hidden;
  border: 1px solid var(--b-dim);
  transition: border-color var(--ease);
}
.ms-diane-photo-toggle:hover { border-color: var(--blue); }
.ms-diane-photo-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ms-diane-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.ms-diane-photo.is-visible { opacity: 1; }
.ms-diane-eyebrow {
  font-size: 0.9rem !important; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.5rem;
}
.ms-diane-text h3 {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.5vw, 2rem); font-weight: 600;
  color: var(--t1); line-height: 1; margin-bottom: 0.2rem;
}
.ms-diane-role {
  font-size: 0.9rem !important; color: var(--t1); font-weight: 500;
  letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.ms-diane-text p {
  font-size: 1rem; color: var(--t1); line-height: 1.7;
}
.ms-diane-text p + p { margin-top: 1rem; }

/* ================================================================
   TEACHER ROWS
================================================================ */
.teacher-list {
  display: flex; flex-direction: column;
}
.teacher-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem; align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--b-blue);
}
.teacher-row:first-child { padding-top: 0; }
.teacher-row:last-child { border-bottom: none; padding-bottom: 0; }

.teacher-photo-toggle {
  position: relative; width: 100%; aspect-ratio: 3/4;
  background: var(--bg-card); cursor: pointer; overflow: hidden;
  border: 1px solid var(--b-dim);
  transition: border-color var(--ease);
}
.teacher-photo-toggle:hover { border-color: var(--blue); }
.teacher-photo-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.teacher-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.teacher-photo.is-visible { opacity: 1; }

/* Single-photo variant (no crossfade) — used when a Teacher post has only
   a "today" photo and no "as a student" photo. */
.teacher-photo-static {
  position: relative; width: 100%; aspect-ratio: 3/4;
  background: var(--bg-card); overflow: hidden;
  border: 1px solid var(--b-dim);
}
.teacher-photo-static img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* No-photo variant — used when a Teacher post has neither photo. */
.teacher-row.no-photo { grid-template-columns: 1fr; }

.teacher-col-bio ul {
  margin: 1rem 0 0; padding-left: 1.25rem;
  color: var(--t1); font-size: 1rem; line-height: 1.7;
}
.teacher-col-bio ul li + li { margin-top: 0.35rem; }

.teacher-eyebrow {
  font-size: 0.9rem !important; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem;
}
.teacher-col-bio h3 {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.5vw, 2rem); font-weight: 600;
  color: var(--t1); line-height: 1; margin-bottom: 0.2rem;
}
.teacher-role {
  font-size: 0.9rem !important; color: var(--blue); font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 1rem;
}
.teacher-col-bio p {
  font-size: 1rem; color: var(--t2); line-height: 1.7;
}
.teacher-col-bio p + p { margin-top: 1rem; }

/* ================================================================
   FAQ ACCORDION
================================================================ */
.faq-intro {
  font-size: 1rem; color: var(--t2); line-height: 1.7;
  margin-bottom: 1.75rem;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--b-dim); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1.25rem; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  color: var(--t1); font-family: var(--sans); font-size: 1rem; font-weight: 600;
  transition: background var(--ease), color var(--ease);
}
.faq-q:hover,
.faq-item.is-open .faq-q { background: rgba(9,175,246,0.07); }

.faq-q-icon {
  font-size: 0.82rem; color: var(--t3); flex-shrink: 0;
  transition: transform 0.3s ease, color var(--ease);
}
.faq-item.is-open .faq-q-icon { transform: rotate(180deg); color: var(--blue); }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-text {
  padding: 1.25rem; font-size: 1rem; color: var(--t2); line-height: 1.7;
}

/* ================================================================
   COLORED CARD VARIANTS
================================================================ */

/* Blue — Teachers */
.sc-card.card-blue { background: var(--b-blue); }
.sc-card.card-blue.is-open { border-color: rgba(9,175,246,0.32); }
.sc-card.card-blue .sc-toggle:hover,
.sc-card.card-blue.is-open .sc-toggle { background: rgba(9,175,246,0.08); }
.sc-card.card-blue .sc-toggle-text p { color: var(--t1); }
.sc-card.card-blue .teacher-col-bio p { color: var(--t1); }

/* Purple — FAQs */
.sc-card.card-purple { background: var(--b-purple); }
.sc-card.card-purple.is-open { border-color: rgba(139,92,246,0.32); }
.sc-card.card-purple .sc-toggle:hover,
.sc-card.card-purple.is-open .sc-toggle { background: rgba(139,92,246,0.08); }
.sc-card.card-purple .sc-chevron { color: var(--purple); }
.sc-card.card-purple .sc-toggle-text p { color: var(--t1); }
.sc-card.card-purple .faq-intro,
.sc-card.card-purple .faq-a-text { color: var(--t1); }
.sc-card.card-purple .faq-q { color: var(--t1); }
.sc-card.card-purple .faq-q:hover,
.sc-card.card-purple .faq-item.is-open .faq-q { background: rgba(139,92,246,0.12); color: var(--t1); }
.sc-card.card-purple .faq-item.is-open .faq-q-icon { color: var(--purple); }

/* ================================================================
   NAME DIVIDER LINES — teachers + Ms. Diane
================================================================ */
.teacher-col-bio h3::after,
.ms-diane-text h3::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--t2), transparent);
  margin-right: 40%;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-layout-img { order: -1; }
  .story-layout-img img { aspect-ratio: 16/9; }

  .ms-diane-block {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .ms-diane-photo-toggle { max-width: 100%; }

  .teacher-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .teacher-row:first-child { padding-top: 0; }
  .teacher-photo-toggle { max-width: 100%; }
}
