/* Continuation checkpoint: narrow, non-destructive fixes after Work handoff. */

:root {
  --gb-cont-red: #e7232b;
  --gb-cont-line: rgba(255,255,255,.12);
  --gb-cont-ease: cubic-bezier(.22,1,.36,1);
}

/* Keep the approved mobile header inside the viewport without changing its content. */
@media (max-width: 1050px) {
  body.gb-editorial-home .site-header .header-inner {
    min-width: 0;
  }

  body.gb-editorial-home .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.gb-editorial-home .site-header .brand > span {
    min-width: 0;
  }

  body.gb-editorial-home .site-header .menu-toggle {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 10px 2px 10px 12px;
    white-space: nowrap;
  }
}

/* Editorial sections blend into one continuous dark composition instead of hard cuts. */
body.gb-editorial-home .gb-legacy-native,
body.gb-editorial-home .gb-intro-native,
body.gb-editorial-home .gb-school-native,
body.gb-editorial-home .gb-people-native,
body.gb-editorial-home .gb-professors-native,
body.gb-editorial-home .gb-schedule-native,
body.gb-editorial-home .gb-location-native,
body.gb-editorial-home .gb-faq-native {
  position: relative;
}

body.gb-editorial-home .gb-legacy-native::after,
body.gb-editorial-home .gb-intro-native::after,
body.gb-editorial-home .gb-people-native::after,
body.gb-editorial-home .gb-professors-native::after,
body.gb-editorial-home .gb-schedule-native::after,
body.gb-editorial-home .gb-location-native::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  height: clamp(46px, 6vw, 88px);
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.13));
}

body.gb-editorial-home .gb-editorial > .wrap {
  position: relative;
  z-index: 1;
}

/* A small, consistent red signature ties every rebuilt section to the approved Hero. */
body.gb-editorial-home .gb-editorial-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.gb-editorial-home .gb-editorial-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 30px;
  background: linear-gradient(90deg, var(--gb-cont-red), rgba(231,35,43,.15));
  box-shadow: 0 0 16px rgba(231,35,43,.18);
}

/* A ESCOLA stays in normal flow: label, headline, paragraph, then media. */
body.gb-editorial-home .gb-school-native > .wrap {
  position: relative;
  z-index: 1;
}

body.gb-editorial-home .gb-school-native .gb-school-heading {
  position: relative;
  z-index: 2;
}

body.gb-editorial-home .gb-school-native .gb-school-media {
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}

/* Decorative orbit only; it never owns layout space or overlaps interaction. */
body.gb-editorial-home .gb-school-native::before {
  z-index: 0;
  transform-origin: center;
  animation: gb-school-native-orbit 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Give the values enough hierarchy without turning them into generic boxed cards. */
body.gb-editorial-home .gb-school-values > div {
  position: relative;
  min-width: 0;
  transition: border-color .35s ease, transform .35s var(--gb-cont-ease);
}

body.gb-editorial-home .gb-school-values > div::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--gb-cont-red);
  opacity: .72;
}

/* Pessoas Reais: preserve the photography while making the mosaic feel intentional. */
body.gb-editorial-home .gb-people-native .mosaic figure {
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
  transition: transform .48s var(--gb-cont-ease), border-color .35s ease, box-shadow .48s var(--gb-cont-ease);
}

body.gb-editorial-home .gb-people-native .mosaic figcaption {
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Professors: premium framing only. Photos, biographies and order stay untouched. */
body.gb-editorial-home .gb-professors-native .professor-card {
  position: relative;
  isolation: isolate;
  box-shadow: 0 28px 82px rgba(0,0,0,.20) !important;
  transition: border-color .45s ease, box-shadow .45s var(--gb-cont-ease), transform .45s var(--gb-cont-ease) !important;
}

body.gb-editorial-home .gb-professors-native .professor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-left: 2px solid rgba(231,35,43,.54);
  background: linear-gradient(120deg, rgba(231,35,43,.035), transparent 30%);
}

body.gb-editorial-home .gb-professors-native .professor-media {
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.08);
}

body.gb-editorial-home .gb-professors-native #italo-seixas .professor-media {
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,.08);
}

body.gb-editorial-home .gb-professors-native .professor-rank {
  border-top: 1px solid rgba(255,255,255,.08);
}

body.gb-editorial-home .gb-professors-native .professor-bio summary {
  position: relative;
  padding-right: 26px !important;
}

body.gb-editorial-home .gb-professors-native .professor-bio summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff5961;
  font: 400 19px/1 "Manrope", Arial, sans-serif;
  transition: transform .28s var(--gb-cont-ease);
}

body.gb-editorial-home .gb-professors-native .professor-bio[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

/* Native schedule: clear hierarchy and better intermediate widths. */
body.gb-editorial-home .gb-schedule-day {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 18px 48px rgba(0,0,0,.11);
  transition: transform .38s var(--gb-cont-ease), border-color .3s ease, background .3s ease, box-shadow .38s var(--gb-cont-ease);
}

body.gb-editorial-home .gb-schedule-day::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gb-cont-red), transparent 78%);
  opacity: .66;
}

body.gb-editorial-home .gb-schedule-day time {
  letter-spacing: -.015em;
}

body.gb-editorial-home .gb-schedule-legend summary {
  transition: color .25s ease;
}

/* Trial / closing flow: integrate the CTA with the dark editorial language. */
body.gb-editorial-home .trial-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.gb-editorial-home .trial-band::before {
  content: "";
  position: absolute;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  right: -18%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.045);
  box-shadow: 0 0 0 70px rgba(255,255,255,.012), 0 0 120px rgba(190,13,39,.10);
  pointer-events: none;
}

body.gb-editorial-home .trial-band > * {
  position: relative;
  z-index: 1;
}

/* Location and footer finish. */
body.gb-editorial-home .gb-location-native .location-visual {
  box-shadow: 0 26px 70px rgba(0,0,0,.17);
}

body.gb-editorial-home .gb-footer-native {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

body.gb-editorial-home .gb-footer-native::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(34vw, 420px);
  height: 1px;
  background: linear-gradient(90deg, var(--gb-cont-red), transparent);
  opacity: .72;
}

body.gb-editorial-home .gb-footer-native::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -230px;
  bottom: -290px;
  border-radius: 50%;
  border: 1px solid rgba(231,35,43,.08);
  box-shadow: 0 0 0 70px rgba(231,35,43,.018);
  pointer-events: none;
}

body.gb-editorial-home .gb-footer-native .footer-grid {
  position: relative;
  z-index: 1;
}

@keyframes gb-school-native-orbit {
  from { transform: translate3d(0,0,0) scale(.985); opacity: .62; }
  to { transform: translate3d(-12px,8px,0) scale(1.018); opacity: .9; }
}

/* Desktop-only tactile polish; no sticky hover behavior on touch devices. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.gb-editorial-home .gb-school-values > div:hover {
    transform: translateY(-3px);
    border-color: rgba(231,35,43,.42) !important;
  }

  body.gb-editorial-home .gb-people-native .mosaic figure:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.24) !important;
    box-shadow: 0 34px 90px rgba(0,0,0,.24);
  }

  body.gb-editorial-home .gb-professors-native .professor-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(231,35,43,.30) !important;
    box-shadow: 0 38px 104px rgba(0,0,0,.28) !important;
  }

  body.gb-editorial-home .gb-schedule-day:hover {
    transform: translateY(-4px);
    border-color: rgba(231,35,43,.34);
    background: rgba(255,255,255,.035);
    box-shadow: 0 26px 66px rgba(0,0,0,.17);
  }

  body.gb-editorial-home .gb-schedule-legend summary:hover {
    color: #fff;
  }
}

/* Tablet is intentionally composed, not a squeezed five-column desktop schedule. */
@media (min-width: 900px) and (max-width: 1199px) {
  body.gb-editorial-home .gb-schedule-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
  }

  body.gb-editorial-home .gb-schedule-grid .gb-schedule-day:last-child {
    grid-column: 1 / -1;
  }

  body.gb-editorial-home .gb-professors-native .professors-heading {
    gap: 44px;
  }
}

@media (max-width: 899px) {
  body.gb-editorial-home .gb-school-native .gb-school-heading {
    margin-bottom: 30px;
  }

  body.gb-editorial-home .gb-school-native .gb-school-heading p {
    margin-bottom: 0;
  }

  body.gb-editorial-home .gb-school-native::before {
    width: min(82vw, 430px);
    right: -34vw;
    top: 72px;
    opacity: .52;
  }

  body.gb-editorial-home .gb-editorial-kicker {
    gap: 10px;
  }

  body.gb-editorial-home .gb-editorial-kicker::before {
    width: 24px;
    flex-basis: 24px;
  }

  body.gb-editorial-home .gb-people-native .mosaic figure,
  body.gb-editorial-home .gb-professors-native .professor-card,
  body.gb-editorial-home .gb-schedule-day {
    box-shadow: 0 18px 46px rgba(0,0,0,.13) !important;
  }

  body.gb-editorial-home .gb-professors-native .professor-media,
  body.gb-editorial-home .gb-professors-native #italo-seixas .professor-media {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  body.gb-editorial-home .trial-band::before {
    width: 88vw;
    right: -58vw;
    opacity: .72;
  }

  body.gb-editorial-home .gb-footer-native::after {
    width: 280px;
    height: 280px;
    right: -190px;
    bottom: -190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gb-editorial-home .gb-school-native::before {
    animation: none !important;
  }

  body.gb-editorial-home .gb-school-values > div,
  body.gb-editorial-home .gb-people-native .mosaic figure,
  body.gb-editorial-home .gb-professors-native .professor-card,
  body.gb-editorial-home .gb-schedule-day,
  body.gb-editorial-home .gb-professors-native .professor-bio summary::after {
    transition: none !important;
  }
}
