/* The "Why" School. Mobile first; the desktop layout (matching the original at 1440 px) starts at 1200 px.
   Tabs use the shared component (05-tabs.css). Curriculum and year-tab styles are shared in 06-school.css. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');

:root { --why-navy: #00346E; --why-orange: #E97250; --why-indigo: #272561; }

/* ---------- Banner ---------- */
.why-banner { height: min(62.5vw, 300px); background: var(--why-navy); overflow: hidden; }
.why-banner__img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }

/* ---------- Tab frame ---------- */
.why-school { padding: 0 0 24px; }
.why-frame { max-width: 1060px; margin: 0 auto; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.why-frame .tabs__more { background: var(--white); border-left: 1px solid #ddd; }
.why-tabs { gap: 0; }
.why-frame > .tabs__bar .tabs__tab {
  padding: 22px 18px 18px;
  border-top: 5px solid transparent;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--black);
  font-family: var(--font-helvetica);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 19px;
}
.why-frame > .tabs__bar .tabs__tab[aria-selected="true"] {
  border-top-color: var(--white);
  border-bottom-color: var(--black);
  background: var(--why-navy);
  color: var(--off-white);
}
.why-frame > .tabs__bar .tabs__tab:hover:not([aria-selected="true"]) { color: var(--why-navy); }

/* ---------- Tab 1: inspiration and vision ---------- */
.why-inspiration { font-family: var(--font-body); font-size: 17px; line-height: 1.55; letter-spacing: 0.1em; }
.why-inspiration__vision { padding: 36px 24px 40px; background: var(--why-navy); color: var(--white); }
.why-inspiration__vision-text { font-size: 20px; line-height: 1.55; letter-spacing: 0.1em; }
.why-inspiration__story { padding: 22px 20px 8px; }
.why-inspiration__how {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.05em;
  color: var(--why-orange);
}
.why-inspiration__sa { margin-top: 22px; font-family: var(--font-title); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: 0; color: var(--navy); }
.why-inspiration__edu { margin-top: 18px; font-family: var(--font-title); font-size: 17px; font-weight: 500; font-style: italic; line-height: 1.26; letter-spacing: 0; color: var(--teal); }
.why-inspiration__body { margin-top: 22px; }
.why-inspiration__sub { margin-top: 28px; font-size: 17px; font-weight: 700; line-height: 1.55; }
.why-inspiration__sub + .why-inspiration__body { margin-top: 28px; }
.why-inspiration__video-row { display: grid; gap: 16px; padding: 12px 20px 0; }
.why-inspiration__video { aspect-ratio: 16 / 9; background: #000; }
.why-inspiration__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.why-inspiration__whatif { padding: 22px 16px; background: var(--why-navy); color: var(--white); font-weight: 700; line-height: 1.55; }
.why-inspiration__closing { padding: 20px 20px 30px; }

/* ---------- Tab 2: curriculum inside the tab ---------- */
.curriculum--tab .journeys { background: #F7F9F8; }
.curriculum--tab .missions { background: none; border: 0; }
.curriculum--tab .missions__rule { border-top-color: var(--light-teal); }

/* ---------- Tab 3: where to from here, with the nested year tabs ---------- */
.why-where { padding: 8px 16px 28px; }
.why-where__lead { padding: 12px 0 18px; font-size: 17px; line-height: 1.6; letter-spacing: 0.05em; }
.year-tabs--why .tabs__list { border-color: var(--teal); }
.year-tabs--why .tabs__tab { font-family: var(--font-helvetica); font-size: 12px; letter-spacing: 0.12em; }
.year-tabs--why .tabs__tab[aria-selected="true"] { background: var(--why-indigo); color: var(--white); }
.year-tabs--why .year-tabs__panel { border-bottom: 1px solid var(--black); font-size: 17px; }
.year-tabs--why .year-tabs__panel p + p { margin-top: 0; }
.why-where__dream { margin-top: 28px; text-align: center; font-family: var(--font-light); font-weight: 300; font-size: 22px; line-height: 1.6; }

@media (min-width: 760px) {
  .why-banner { height: 216px; }
  .why-frame > .tabs__bar .tabs__tab { padding: 30px; font-size: 16px; letter-spacing: 0.2em; }
  .why-inspiration { font-size: 18px; }
  .why-inspiration__vision-text { font-size: 24px; }
  .why-inspiration__how { font-size: 27px; line-height: 1.25; }
  .why-inspiration__video-row { grid-template-columns: 1fr 1fr; }
  .why-inspiration__closing { padding: 24px 44px 36px; }
  .why-where { padding: 16px 44px 36px; }
  .why-where__dream { font-size: 28px; line-height: 1.7; }
  .year-tabs--why .tabs__tab { font-size: 15px; letter-spacing: 0.2em; }
}

@media (min-width: 1200px) {
  .why-banner { margin-bottom: 9px; }
  .why-school { padding-bottom: 22px; }
  .why-frame { border-bottom-width: 1px; }
  .why-tabs { gap: 89px; padding-left: 39px; overflow: visible; }
  .why-frame .tabs__more { display: none; }

  .why-inspiration { padding-bottom: 36px; font-size: 18px; line-height: 27.9px; }
  .why-inspiration__top { display: grid; grid-template-columns: 395px 1fr; column-gap: 14px; margin: 0 40px; }
  .why-inspiration__vision { padding: 104px 20px 0 77px; }
  .why-inspiration__vision-text { font-size: 27px; line-height: 41.85px; letter-spacing: 2.7px; }
  .why-inspiration__story { padding: 12px 4px 0 0; }
  .why-inspiration__how { max-width: 553px; font-size: 27px; line-height: 33.75px; letter-spacing: 1.35px; }
  .why-inspiration__sa { margin-top: 26px; font-size: 23px; line-height: 27.6px; }
  .why-inspiration__edu { margin-top: 24px; font-size: 18px; line-height: 22.68px; }
  .why-inspiration__body { margin-top: 21px; letter-spacing: 1.8px; }
  .why-inspiration__sub { margin-top: 32px; font-size: 18px; letter-spacing: 1.8px; }
  .why-inspiration__sub + .why-inspiration__body { margin-top: 33px; }
  .why-inspiration__video-row { grid-template-columns: 479px 484px; gap: 16px; margin: 35px 40px 0; padding: 0; }
  .why-inspiration__video { height: 199px; aspect-ratio: auto; }
  .why-inspiration__whatif { padding: 21px 14px; font-size: 20px; line-height: 31px; letter-spacing: 2px; }
  .why-inspiration__closing { margin: 20px 40px 0 54px; padding: 0 6px 0 0; letter-spacing: 1.8px; }

  .curriculum--tab .journeys { padding-left: 0; padding-right: 0; }
  .curriculum--tab .journeys__inner { grid-template-columns: 380px 1fr; padding: 0 20px; }
  .curriculum--tab .journeys__title { margin-top: 200px; }
  .curriculum--tab .missions { padding-bottom: 40px; }
  .curriculum--tab .matrix__table tbody th, .curriculum--tab .matrix__table tbody td { height: 70px; }
  .curriculum--tab .matrix__table tbody th { font-size: 14px; }

  .why-where { padding: 16px 0 0; }
  .why-where__lead { padding: 0 0 0 56px; max-width: 1004px; margin-bottom: 30px; font-size: 18px; line-height: 29.5px; }
  .year-tabs--why .tabs__tab { padding: 20px; font-size: 16px; letter-spacing: 3.2px; }
  .year-tabs--why .year-tabs__panel { min-height: 341px; padding: 48px 47px 40px; font-size: 23px; line-height: 43.5px; }
  .why-where__dream { max-width: 900px; margin: 30px auto 0; padding-bottom: 8px; font-size: 33px; line-height: 55px; }
}
