.page-hero--post { padding-bottom: 0; }
.page-hero--post h1 { font-size: clamp(2.5rem, 6vw, 5.8rem); max-width: 18ch; }
.page-hero--post .page-hero__facts { margin-top: 24px; }
.page-hero--post .page-hero__img { aspect-ratio: 21 / 9; margin-top: clamp(28px, 4vw, 52px); }
@media (max-width: 719px) {
  .page-hero--post .crumbs li[aria-current] { display: none; }
  .page-hero--post .page-hero__img { aspect-ratio: 4 / 3; }
}

.post-section { padding-top: clamp(48px, 6vw, 88px); }
.post-section .post-program { margin: 0; }
.post-layout { display: grid; gap: clamp(48px, 6vw, 88px); }
.post-body { max-width: 70ch; }
.post-body > p:first-child { font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.55; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.post-body h2:first-of-type { margin-top: 1.2em; }
.post-body h2 { padding-top: 0.9em; border-top: 2px solid var(--ink); }
.post-body p strong { color: var(--ink); }

.post-program {
  display: grid; margin: 0; max-width: none; align-self: start;
  border-radius: var(--radius); overflow: hidden; background: var(--green); color: var(--white);
  box-shadow: 0 30px 60px -34px rgba(21, 48, 168, 0.8);
}
.post-program .frame { border-radius: 0; aspect-ratio: 4 / 3; margin: 0; background: var(--green-deep); }
.post-program .frame img { object-position: center 30%; }
.post-program__body { padding: clamp(24px, 3vw, 34px); }
.post-program__body .eyebrow { color: var(--white); margin-bottom: 14px; }
.post-program__body .h3 { color: var(--white); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 14px; }
.post-program__body p { color: rgba(255, 255, 255, 0.86); font-size: 1rem; }
.post-program__body .btn-row { margin-top: 22px; }
.post-program .btn { --btn-bg: var(--white); --btn-fg: var(--ink); box-shadow: none; }
.post-program .btn:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.post-program .link-arrow { color: var(--white); }
@media (min-width: 720px) and (max-width: 1099px) {
  .post-program { grid-template-columns: 0.8fr 1.2fr; }
  .post-program .frame { aspect-ratio: auto; min-height: 100%; }
}
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .post-body { justify-self: center; }
  .post-program { position: sticky; top: 104px; grid-template-columns: 1fr; }
  .post-program .frame { aspect-ratio: 4 / 3; height: auto; }
}

.page-hero--split { padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
.page-hero--split .page-hero__img { margin-top: 0; aspect-ratio: 4 / 3; }
.page-hero--split h1 { max-width: 14ch; }
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr 1fr; }
  .page-hero--split .page-hero__img { aspect-ratio: 5 / 4; }
}

.post-feature {
  display: grid; gap: 0; margin-top: 4px; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: var(--white); text-decoration: none;
}
.post-feature .frame { position: relative; border-radius: 0; clip-path: none; aspect-ratio: 16 / 10; }
.post-feature .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-feature .frame img { transition: transform 1s var(--ease); }
.post-feature:hover .frame img { transform: scale(1.03); }
.post-feature > div { padding: clamp(26px, 4vw, 56px); align-self: center; }
.post-feature .post-card__date { color: var(--sage); }
.post-feature .h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); margin: 12px 0 20px; color: var(--white); }
.post-feature .lede { color: rgba(255, 255, 255, 0.76); margin-bottom: 26px; }
.post-feature .link-arrow { color: var(--white); }
.post-feature:hover .h2 { color: #c4cfff; }
@media (min-width: 960px) {
  .post-feature, .post-feature.split { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; gap: 0; }
  .post-feature .frame { aspect-ratio: auto; min-height: 520px; }
}
.posts--all { row-gap: 48px; }
.posts--all .post-card h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }

.legal { display: grid; gap: 40px; }
.legal__aside { font-size: 0.95rem; color: var(--ink-soft); }
.legal__aside a { color: var(--green); text-decoration: none; font-weight: 600; }
.legal__aside .eyebrow { margin-bottom: 14px; }
.legal__links { list-style: none; display: grid; gap: 6px; margin-top: 22px; padding-top: 22px; border-top: 2px solid var(--ink); }
.legal__links a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.legal__links a:hover { background: var(--mat); }
.legal__links a[aria-current="page"] { background: var(--green); color: var(--white); }
.legal__text { max-width: 72ch; }
.legal__text > h2:first-child { margin-top: 0; }
.legal__text h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.legal__text p, .legal__text li { font-size: 1.02rem; }
@media (min-width: 1000px) {
  .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
  .legal__aside { position: sticky; top: 104px; }
}

.portal-login { position: relative; display: grid; gap: 0; padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 104px); background: var(--paper); }
.portal-login::after { display: none; }
.portal-login > .wrap { display: grid; gap: 16px; }
.portal-login__photo { position: relative; inset: auto; z-index: auto; order: 2; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.portal-login__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.portal-card {
  width: 100%; max-width: none; margin: 0; padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius); background: var(--white); box-shadow: none;
}
.portal-card__peak { width: 64px; fill: var(--green); margin-bottom: 24px; }
.portal-card__title { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; margin-bottom: 14px; }
.portal-card__sub { color: var(--ink-soft); margin-bottom: 26px; }
.portal-form { display: grid; gap: 14px; }
.portal-form__input--error { border-color: #c8102e !important; box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12) !important; }
.portal-form__error { margin: 0; font-size: 0.92rem; font-weight: 600; color: #c8102e; }
.portal-form .btn { margin-top: 6px; min-height: 58px; --btn-bg: var(--green); }
.portal-card__back { margin-top: 26px; }
@media (min-width: 960px) {
  .portal-login { min-height: calc(100svh - var(--header-h)); align-items: center; }
  .portal-login > .wrap { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .portal-login__photo { aspect-ratio: auto; min-height: 520px; }
}

.portal-hero .btn-row { margin-top: 28px; }
.portal-logout svg { width: 18px; height: 18px; }
.portal-info { padding-block: clamp(32px, 4vw, 56px); }
.portal-facts { margin-top: 0; }
.portal-facts dd { font-size: 1.2rem; overflow-wrap: anywhere; }
.student-schedule__export { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.student-schedule__export-btn { min-height: 46px; padding: 0 20px; font-size: 0.9rem; }
.student-schedule__export-btn svg { width: 16px; height: 16px; }
.student-schedule__wrapper { background: var(--white); border: 0; border-radius: var(--radius); padding: clamp(18px, 2.4vw, 32px); }
.student-schedule__note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 22px; }
.student-schedule__grid { display: grid; gap: 14px; }
.student-schedule__day { display: grid; gap: 8px; align-content: start; }
.student-schedule__day-header { font-family: var(--font); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.student-schedule__day-list { display: grid; gap: 8px; }
.student-schedule__block { display: grid; gap: 2px; padding: 12px 12px 12px 14px; border-radius: 12px; border-left: 4px solid currentColor; }
.student-schedule__block-time { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.student-schedule__block-name { font-family: var(--display); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.student-schedule__block-sub { font-size: 0.76rem; color: var(--ink-soft); }
.student-schedule__block--bjj { background: #e3eadb; color: var(--green); }
.student-schedule__dot--bjj { background: var(--green); }
.student-schedule__block--panda1 { background: #fff3d6; color: #a86d00; }
.student-schedule__dot--panda1 { background: #a86d00; }
.student-schedule__block--panda2 { background: #dff3f0; color: #0f7a6c; }
.student-schedule__dot--panda2 { background: #0f7a6c; }
.student-schedule__block--combo { background: #efe6f7; color: #6b3fa0; }
.student-schedule__dot--combo { background: #6b3fa0; }
.student-schedule__block--teens { background: #e9e2d2; color: var(--ink); }
.student-schedule__dot--teens { background: var(--ink); }
.student-schedule__block--boxing { background: #fde4e7; color: #c8102e; }
.student-schedule__dot--boxing { background: #c8102e; }
.student-schedule__block--openmat { background: var(--paper); color: var(--ink-soft); }
.student-schedule__dot--openmat { background: var(--ink-soft); }
.student-schedule__block--yoga { background: #fbe7ef; color: #a23d68; }
.student-schedule__dot--yoga { background: #a23d68; }
.student-schedule__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 0.86rem; font-weight: 600; }
.student-schedule__legend-item { display: inline-flex; align-items: center; gap: 8px; }
.student-schedule__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
@media (min-width: 640px) { .student-schedule__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .student-schedule__grid { grid-template-columns: repeat(7, 1fr); } }
.portal-yoga { margin-top: 20px; font-size: 0.94rem; color: var(--ink-soft); }
.portal-yoga a { color: var(--green); font-weight: 600; }
.portal-boards { display: grid; gap: 18px; }
.portal-board { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--white); }
.portal-board .h3 { margin-bottom: 18px; }
.portal-empty { display: grid; justify-items: start; gap: 12px; padding: 24px; border-radius: 14px; background: var(--paper); color: var(--ink-soft); }
.portal-empty svg { width: 32px; height: 32px; color: var(--green); }
@media (min-width: 900px) { .portal-boards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.legal__links a { text-transform: none; letter-spacing: -0.01em; font-size: 0.98rem; }
