/*
 * Shared RISE mobile contract.
 * Loaded after the legacy page styles so every RISE page uses one header,
 * menu, and footer system without changing tablet or desktop layouts.
 */

@media (max-width: 600px),
  (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.rise-product-page {
    overflow-x: hidden;
  }

  body.rise-product-page .rise-boundlearn-header > .hide-sm,
  body.rise-product-page .rise-program-header > .hide-sm {
    display: none !important;
  }

  body.rise-product-page .rise-boundlearn-header #bl-toggle,
  body.rise-product-page .rise-program-header #rn-toggle {
    display: none !important;
  }

  body.rise-product-page .rise-boundlearn-header .bl-mnav-mobile-unified {
    display: none !important;
  }

  body.rise-product-page
    .rise-boundlearn-header
    #bl-toggle:checked
    ~ .bl-mnav-mobile-unified {
    display: flex !important;
  }

  body.rise-product-page .rise-program-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 280 !important;
    min-height: 62px !important;
    padding: 10px 20px !important;
    background: rgba(244, 242, 236, 0.98) !important;
    border-bottom: 1px solid rgba(19, 85, 58, 0.16) !important;
    backdrop-filter: blur(12px) !important;
    transform: none !important;
  }

  body.rise-product-page .rise-program-header > a:first-child {
    display: inline-flex !important;
    min-width: 0 !important;
    align-items: center !important;
  }

  body.rise-product-page .rise-program-header > a:first-child img {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    max-width: 190px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body.rise-product-page .rise-program-header .burger {
    display: inline-flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(19, 85, 58, 0.24) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #133a2b !important;
  }

  body.rise-product-page #rn-toggle:checked ~ .burger {
    background: #13553a !important;
    color: #fff !important;
    border-color: #13553a !important;
  }

  body.rise-product-page .rise-mobile-menu-system {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    display: none !important;
    width: min(350px, calc(100vw - 24px)) !important;
    max-height: calc(100svh - 148px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 14px 18px 18px !important;
    border: 1px solid rgba(19, 85, 58, 0.16) !important;
    border-radius: 14px !important;
    background: #f8f6f0 !important;
    box-shadow: 0 22px 44px rgba(18, 45, 34, 0.2) !important;
    color: #153c2e !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    text-align: left !important;
    z-index: 420 !important;
  }

  body.rise-product-page #rn-toggle:checked ~ .rise-mobile-menu-system {
    display: grid !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-brand {
    grid-column: 1 / -1;
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    margin: 0 0 3px !important;
    padding: 0 2px 9px !important;
    border-bottom: 1px solid rgba(19, 85, 58, 0.12) !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-brand img {
    display: block !important;
    width: auto !important;
    height: 28px !important;
    max-width: 180px !important;
    object-fit: contain !important;
  }

  body.rise-product-page .rise-mobile-menu-system > a:not(.rise-menu-action),
  body.rise-product-page .rise-mobile-menu-system > details > summary {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(19, 85, 58, 0.1) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #153c2e !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
  }

  body.rise-product-page .rise-mobile-menu-system > details {
    min-width: 0 !important;
  }

  body.rise-product-page .rise-mobile-menu-system > details > summary {
    cursor: pointer;
    list-style: none;
  }

  body.rise-product-page .rise-mobile-menu-system > details > summary::-webkit-details-marker {
    display: none;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-caret {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    transition: transform 0.2s ease;
  }

  body.rise-product-page .rise-mobile-menu-system details[open] .rise-menu-caret {
    transform: rotate(180deg);
  }

  body.rise-product-page .rise-mobile-menu-system details a {
    display: flex !important;
    min-height: 34px !important;
    align-items: center !important;
    padding: 7px 4px 7px 14px !important;
    color: #526a61 !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-actions {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    margin-top: 12px !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-action {
    display: flex !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    border: 1px solid #13553a !important;
    border-radius: 8px !important;
    color: #13553a !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-apply {
    background: #13553a !important;
    color: #fff !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot {
    gap: 0 !important;
  }

  body.rise-product-page .rise-footer,
  body.rise-product-page .rise-footer-shell {
    background: #0b1221 !important;
    color: #fff !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
  }

  body.rise-product-page .r-foot > * {
    min-width: 0 !important;
  }

  body.rise-product-page .r-foot > :not(:first-child) > :first-child {
    color: #d4af37 !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
  }

  body.rise-product-page .r-foot a {
    color: #cbd5e1 !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    letter-spacing: 0 !important;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  body.rise-product-page .rise-hero-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    min-height: min(650px, calc(100svh - 128px)) !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #173f31 !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(7, 22, 17, 0.4), rgba(7, 22, 17, 0.64)),
      url("/assets/media/rise/rise-hero-research-session.jpg") center / cover no-repeat;
    content: "";
    filter: saturate(0.5) brightness(1.14);
  }

  body.rise-product-page .rise-hero-shell .r-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, transparent 0, rgba(4, 14, 11, 0.2) 76%);
    content: "";
  }

  body.rise-product-page .rise-hero-shell .r-hero > :first-child {
    width: 100% !important;
    max-width: 390px !important;
    padding: 56px 22px 52px !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-footer-shell > div {
    width: 100% !important;
    max-width: 1160px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero > :first-child > img {
    display: none !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero > :last-child {
    display: none !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero h1 {
    color: #fff !important;
    font-size: clamp(36px, 10.4vw, 44px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero h1 > span {
    display: block !important;
    width: 100% !important;
    min-height: 1.18em !important;
    margin-top: 5px !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero h1 > span > span {
    left: 50% !important;
    max-width: 100% !important;
    font-size: clamp(29px, 8.2vw, 34px) !important;
    transform: translateX(-50%) !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero h1 span span:nth-child(2) {
    color: #13553a !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero h1 span span:nth-child(3) {
    color: #911449 !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero p {
    max-width: 350px !important;
    margin: 24px auto 25px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero p + div {
    justify-content: center !important;
    gap: 16px !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero p + div a:first-child {
    background: #fff !important;
    color: #13553a !important;
  }

  body.rise-product-page .rise-hero-shell .r-hero p + div a:last-child {
    color: #fff !important;
    border-color: #e8c65b !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero {
    min-height: calc(100svh - 132px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    background: #f1efe9 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero::before,
  body.rise-page-main .rise-hero-shell .r-hero::after {
    background: none !important;
    filter: none !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > :first-child {
    max-width: 390px !important;
    margin: 0 auto !important;
    padding: 26px 22px 28px !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > :last-child {
    order: -1 !important;
    display: block !important;
    width: 100% !important;
    padding: 24px 24px 0 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > :last-child > div {
    width: 100% !important;
    max-width: 342px !important;
    margin: 0 auto !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    animation: none !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 {
    color: #232830 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero p {
    margin: 18px auto 20px !important;
    color: #586257 !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero p + div a:first-child {
    background: #13553a !important;
    color: #fff !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero p + div a:last-child {
    color: #232830 !important;
    border-color: #911449 !important;
  }

  body.rise-product-page .rise-hero-shell > .r-stats,
  body.rise-product-page #results .r-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    margin: 0 !important;
    padding: 1px !important;
    background: rgba(19, 85, 58, 0.14) !important;
  }

  body.rise-product-page .rise-hero-shell > .r-stats .r-stat,
  body.rise-product-page #results .r-stats .r-stat {
    display: flex !important;
    min-height: 158px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    padding: 24px 16px !important;
    border-radius: 0 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-hero-shell > .r-stats .r-stat > :last-child,
  body.rise-product-page #results .r-stats .r-stat > :last-child {
    max-width: 140px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.rise-product-page section {
    scroll-margin-top: 132px;
  }

  body.rise-product-page .r-cards {
    gap: 12px !important;
    margin-top: 22px !important;
  }

  body.rise-product-page .r-cards > div {
    display: flex !important;
    min-height: 282px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 28px 24px !important;
    text-align: center !important;
  }

  body.rise-product-page .r-cards > div > :first-child {
    margin: 0 0 16px !important;
  }

  body.rise-product-page .r-cards > div > :nth-child(2) {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.rise-product-page #results .r-stats {
    margin-bottom: 28px !important;
  }

  body.rise-product-page .r-out {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    overflow: hidden !important;
    touch-action: pan-y;
  }

  body.rise-product-page .r-out > * {
    min-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 28px 18px !important;
    transform: translateX(calc(var(--rise-outcome-index, 0) * -100%)) !important;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body.rise-product-page .rise-outcome-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 4px auto -4px !important;
  }

  body.rise-product-page .rise-outcome-dots button {
    display: inline-flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
  }

  body.rise-product-page .rise-outcome-dots button::after {
    width: 9px;
    height: 9px;
    border: 1px solid #13553a;
    border-radius: 50%;
    background: transparent;
    content: "";
  }

  body.rise-product-page .rise-outcome-dots button.is-active::after {
    background: #13553a;
  }

  body.rise-product-page #results > div:last-child,
  body.rise-product-page #publications > div:last-child {
    justify-content: center !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.rise-product-page #results > div:last-child a,
  body.rise-product-page #publications > div:last-child a {
    width: min(100%, 330px) !important;
    justify-content: center !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-mentor-note {
    font-style: italic !important;
  }

  body.rise-product-page .rise-footer,
  body.rise-product-page .rise-footer-shell {
    width: 100vw !important;
    max-width: none !important;
    margin: 48px 0 0 calc(50% - 50vw) !important;
    padding: 28px 20px 20px !important;
    border-radius: 0 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 22px 10px !important;
    padding-bottom: 24px !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child > img,
  body.rise-product-page .rise-footer-shell .r-foot > :first-child > a > img {
    height: 21px !important;
    margin: 0 auto !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot [data-bl-footer-copy] {
    max-width: 330px !important;
    margin: 13px auto 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child p + div {
    justify-content: center !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :not(:first-child) > :first-child {
    margin: 0 0 10px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :not(:first-child) > :last-child {
    gap: 7px !important;
    font-size: 11px !important;
  }

  body.rise-product-page
    .rise-shared-footer
    .r-foot
    > :not(:first-child)
    > :first-child {
    color: #d4af37 !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.rise-product-page
    .rise-footer-shell
    [data-rise-footer-column]
    > :first-child {
    color: #d4af37 !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.rise-product-page
    .rise-footer-shell
    [data-rise-footer-column]
    > :last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  body.rise-product-page
    .rise-shared-footer
    .r-foot
    > :not(:first-child)
    > :last-child {
    display: flex !important;
    flex-direction: column !important;
  }

  body.rise-product-page .rise-shared-footer .r-foot > :first-child p + div a {
    display: inline-flex !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 7px !important;
    color: #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot a {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  body.rise-product-page .rise-footer > div > div:last-child,
  body.rise-product-page .rise-footer-shell > div > div:last-child {
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
  }

  /* RISE portrait refinements: scoped by page so larger locked views do not move. */
  body.rise-page-main .rise-hero-shell .r-hero h1 span span:nth-child(2) {
    color: #13553a !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 span span:nth-child(3) {
    color: #911449 !important;
  }

  body.rise-page-main #why .r-2 > div {
    text-align: center !important;
  }

  body.rise-page-main #why .r-2 h3,
  body.rise-page-main #why .r-2 p {
    max-width: 330px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.rise-page-about .rise-about-heading {
    text-align: center !important;
    text-wrap: balance !important;
  }

  body.rise-page-about .rise-about-heading + svg {
    display: block !important;
    margin: 26px auto 0 !important;
  }

  body.rise-page-about img[alt="Columbia University"],
  body.rise-page-about img[alt="Cornell University"],
  body.rise-page-results img[alt="Columbia University"],
  body.rise-page-results img[alt="Cornell University"] {
    width: min(100%, 126px) !important;
    max-width: 126px !important;
    max-height: 66px !important;
  }

  body.rise-page-about div:has(> img[alt="Columbia University"]),
  body.rise-page-about div:has(> img[alt="Cornell University"]),
  body.rise-page-results div:has(> img[alt="Columbia University"]),
  body.rise-page-results div:has(> img[alt="Cornell University"]) {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  body.rise-page-programs .rise-prog-mob > div > div:first-child {
    justify-content: center !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-cohort-label {
    display: none !important;
  }

  body.rise-product-page .rise-centered-final-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 24px !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-centered-final-cta > div {
    width: 100% !important;
    max-width: 330px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-centered-final-cta h2,
  body.rise-product-page .rise-centered-final-cta p {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
    text-wrap: balance !important;
  }

body.rise-product-page .rise-portrait-back {
  display: none !important;
}

/* Tablet rules own the compact word treatment; phone portrait keeps the original cross-fade. */
@media (min-width: 601px) and (max-width: 1180px) {
  body.rise-page-main .rise-hero-shell .r-hero h1 span span:nth-child(2) {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 span span:nth-child(3) {
    display: none !important;
    animation: none !important;
  }
}

body.rise-product-page.rise-page-journals .rise-journal-read-more svg {
  display: none !important;
}

  body.rise-product-page .rise-detail-index-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  body.rise-page-results .eng-logos {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
    padding: 26px 0 30px !important;
  }

  body.rise-page-results .eng-logos > img {
    justify-self: center !important;
    width: auto !important;
    max-width: min(100%, 118px) !important;
    max-height: 40px !important;
  }

  body.rise-page-results .eng-logos > img:nth-child(-n + 4) {
    grid-column: span 3 !important;
  }

  body.rise-page-results .eng-logos > img:nth-child(n + 5) {
    grid-column: span 2 !important;
  }

  body.rise-page-results .rise-result-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px 16px !important;
    align-items: center !important;
    padding: 22px 0 !important;
  }

  body.rise-page-results .rise-result-row > :first-child {
    grid-row: 1 !important;
    grid-column: 1 !important;
    min-width: 0 !important;
    height: 48px !important;
  }

  body.rise-page-results .rise-result-row > :first-child img {
    max-width: min(178px, 100%) !important;
    max-height: 46px !important;
  }

  body.rise-page-results .rise-result-row > :nth-child(2) {
    grid-row: 1 !important;
    grid-column: 2 !important;
    font-size: 30px !important;
    text-align: right !important;
  }

  body.rise-page-results .rise-result-row > :nth-child(3) {
    grid-row: 2 !important;
    grid-column: 1 / -1 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body.rise-page-projects .rise-project-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none;
  }

  body.rise-page-projects .rise-project-filters::-webkit-scrollbar {
    display: none;
  }

  body.rise-page-projects .rise-project-filters > * {
    min-height: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    padding: 9px 13px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    scroll-snap-align: none;
  }

  body.rise-page-projects .rise-project-filters > :first-child {
    grid-column: 1 / -1 !important;
    width: auto !important;
    min-width: 72px !important;
    justify-self: center !important;
  }

  body.rise-product-page .rise-footer-socials a {
    display: inline-flex !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 7px !important;
    color: #cbd5e1 !important;
  }

  body.rise-product-page .rise-footer-socials a svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    color: #cbd5e1 !important;
  }

  body.rise-page-projects .rise-project-card-tags {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  body.rise-page-projects .rise-project-card-tags > span {
    display: flex !important;
    min-width: 0 !important;
    min-height: 32px !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 7px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body.rise-product-page .rise-portrait-cta {
    display: flex !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 36px 24px !important;
    border-radius: 14px !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-portrait-cta > div {
    width: 100% !important;
    max-width: 330px !important;
  }

  body.rise-product-page .rise-portrait-cta h2,
  body.rise-product-page .rise-portrait-cta p {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
    text-wrap: balance !important;
  }

  body.rise-product-page .rise-portrait-cta > a,
  body.rise-product-page .rise-portrait-cta > div:last-child:has(> a) {
    width: min(100%, 300px) !important;
  }

  body.rise-product-page .rise-portrait-cta > a,
  body.rise-product-page .rise-portrait-cta > div:last-child > a {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.rise-page-awards .p-grid a span > svg {
    display: none !important;
  }

  body.rise-page-award-detail .rise-award-timeline-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 16px 0 !important;
  }

  body.rise-page-faq .rise-faq-apply {
    padding: 36px 20px !important;
    border-radius: 14px !important;
    background: #13553a !important;
    text-align: center !important;
  }

  body.rise-page-faq .rise-faq-steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 28px !important;
    padding: 0 !important;
    color: #fff !important;
    text-align: left !important;
  }

  body.rise-page-faq .rise-faq-steps > div {
    min-height: 132px !important;
    padding: 18px 15px !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  body.rise-page-faq .rise-faq-apply a:is([href*="Application"], [href^="/application-form"]) {
    display: inline-flex !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #13553a !important;
  }
}

@media (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.rise-product-page .rise-boundlearn-header > .hide-sm,
  body.rise-product-page .rise-program-header > .hide-sm {
    display: none !important;
  }

  body.rise-product-page .rise-boundlearn-header .bl-burger,
  body.rise-product-page .rise-program-header .burger {
    display: inline-flex !important;
  }

  body.rise-product-page .rise-program-header {
    min-height: 54px !important;
    padding: 6px 16px !important;
  }

  body.rise-product-page .rise-program-header > a:first-child img {
    height: 25px !important;
    max-width: 170px !important;
  }

  body.rise-product-page .rise-program-header .burger {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }

  body.rise-product-page .rise-mobile-menu-system {
    top: calc(100% + 6px) !important;
    right: 0 !important;
    width: min(700px, calc(100vw - 24px)) !important;
    max-height: calc(100svh - 122px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    padding: 12px 16px 16px !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-brand {
    min-height: 38px !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-brand img {
    height: 24px !important;
  }

  body.rise-product-page .rise-mobile-menu-system > a:not(.rise-menu-action),
  body.rise-product-page .rise-mobile-menu-system > details > summary {
    min-height: 36px !important;
    padding: 7px 3px !important;
    font-size: 12px !important;
  }

  body.rise-product-page .rise-mobile-menu-system details a {
    min-height: 28px !important;
    padding: 5px 3px 5px 11px !important;
    font-size: 10.5px !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-actions {
    margin-top: 9px !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-action {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  body.rise-page-programs .rise-programs-hero {
    padding-top: 48px !important;
  }

  body.rise-product-page .rise-footer,
  body.rise-product-page .rise-footer-shell {
    margin-top: 56px !important;
    padding: 26px 28px 18px !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer .r-foot,
  body.rise-product-page .rise-footer-shell .r-foot {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.42fr) repeat(3, minmax(112px, 1fr)) !important;
    align-items: start !important;
    gap: 22px !important;
    padding: 0 0 20px !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer .r-foot > div:first-child,
  body.rise-product-page .rise-footer-shell .r-foot > div:first-child {
    grid-column: 1 !important;
    display: block !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer .r-foot > div:first-child > img,
  body.rise-product-page .rise-footer .r-foot > div:first-child > a > img,
  body.rise-product-page .rise-footer-shell .r-foot > div:first-child > img,
  body.rise-product-page .rise-footer-shell .r-foot > div:first-child > a > img {
    display: block !important;
    width: auto !important;
    height: 20px !important;
    margin: 0 !important;
    object-position: left center !important;
  }

  body.rise-product-page .rise-footer .r-foot [data-bl-footer-copy],
  body.rise-product-page .rise-footer-shell .r-foot [data-bl-footer-copy] {
    max-width: 250px !important;
    margin: 10px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer .r-foot > div:first-child p + div,
  body.rise-product-page .rise-footer-shell .r-foot > div:first-child p + div {
    justify-content: flex-start !important;
    margin: 11px 0 0 !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :not(:first-child) > :first-child {
    margin: 0 0 9px !important;
    font-size: 9.5px !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :not(:first-child) > :last-child {
    gap: 6px !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot a {
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer > div > div:last-child,
  body.rise-product-page .rise-footer-shell > div > div:last-child {
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 16px !important;
    text-align: left !important;
  }

  /* Landscape content parity: keep the compact shell without portrait-only artifacts. */
  body.rise-page-main .rise-hero-shell .r-hero > div:first-child > img {
    display: none !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child {
    padding-top: 0 !important;
  }

  body.rise-page-main .rise-hero-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 20px 28px !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(190px, 0.82fr) !important;
    gap: 22px !important;
    align-items: center !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 {
    font-size: clamp(30px, 4.8vw, 42px) !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child > p {
    margin: 13px 0 16px !important;
    font-size: 13px !important;
    line-height: 1.44 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:last-child > div {
    width: 100% !important;
    max-height: 230px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
    animation: none !important;
  }

  body.rise-page-main .rp-track {
    gap: 16px !important;
  }

  body.rise-page-main .rp-track > div {
    width: clamp(190px, 26vw, 220px) !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
  }

  body.rise-page-main .rise-prog-mob,
  body.rise-page-programs .rise-prog-mob {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  body.rise-page-main .rise-prog-mob > div,
  body.rise-page-programs .rise-prog-mob > div {
    min-width: 0 !important;
  }

  body.rise-page-main .rise-prog-mob > div > div:first-child,
  body.rise-page-programs .rise-prog-mob > div > div:first-child {
    padding: 12px 14px !important;
    font-size: 18px !important;
  }

  body.rise-page-main .rise-prog-mob > div > div:last-child,
  body.rise-page-programs .rise-prog-mob > div > div:last-child {
    padding: 2px 14px 7px !important;
  }

  body.rise-page-main .rise-prog-mob > div > div:last-child > div,
  body.rise-page-programs .rise-prog-mob > div > div:last-child > div {
    gap: 10px !important;
    padding: 9px 0 !important;
  }

  body.rise-page-main .rise-prog-mob > div > div:last-child span,
  body.rise-page-programs .rise-prog-mob > div > div:last-child span {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  body.rise-page-programs .r-mentors {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
  }

  body.rise-page-programs .r-mentors > div {
    min-width: 0 !important;
  }

  body.rise-page-programs .r-mentors img {
    aspect-ratio: 1 / 1 !important;
  }

  body.rise-page-programs .r-mentors img + div {
    margin-top: 10px !important;
    font-size: 15px !important;
  }

  body.rise-page-programs .r-mentors img + div + div,
  body.rise-page-programs .r-mentors img + div + div + div {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  body.rise-page-about .ab-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) !important;
    gap: 28px !important;
    align-items: center !important;
  }

  body.rise-page-about .ab-row > p {
    font-size: 14px !important;
    line-height: 1.56 !important;
  }

  body.rise-page-about .ab-row > div:has(> img) {
    width: 100% !important;
    min-height: 0 !important;
    max-height: 280px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
  }

  body.rise-page-about .proc-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 28px !important;
    flex-wrap: nowrap !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) {
    min-width: 0 !important;
    max-width: none !important;
    gap: 12px !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) > svg {
    width: 36px !important;
    height: 36px !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) > div {
    min-height: 108px !important;
    padding: 14px 12px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  body.rise-page-about .proc-row .proc-arrow {
    display: none !important;
  }

  body.rise-product-page .rise-portrait-back,
  body.rise-product-page .rise-cohort-label {
    display: none !important;
  }

  body.rise-product-page .rise-detail-index-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
  }

  body.rise-page-journals .rise-journal-read-more svg {
    display: none !important;
  }

  body.rise-page-main .r-venues {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.rise-page-main .r-venues > :nth-child(n + 9) {
    display: none !important;
  }

  body.rise-page-main .r-venues > * {
    min-height: 84px !important;
    padding: 18px 16px !important;
  }

  body.rise-page-main .r-venues img {
    max-height: 50px !important;
  }

  body.rise-page-results .res-row {
    grid-template-columns:
      clamp(104px, 18vw, 150px)
      clamp(62px, 9vw, 72px)
      minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 17px 0 !important;
  }

  body.rise-page-results .res-row > div:first-child {
    min-width: 0 !important;
    height: 46px !important;
  }

  body.rise-page-results .res-row > div:first-child img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 44px !important;
  }

  body.rise-page-results .res-row > div:nth-child(2) {
    font-size: 28px !important;
  }

  body.rise-page-results .res-row > div:last-child {
    min-width: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.42 !important;
  }

  body.rise-page-projects .p-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-projects .p-grid > a {
    min-width: 0 !important;
    border-radius: 12px !important;
  }

  body.rise-page-projects .p-grid > a > div:last-child {
    gap: 8px !important;
    padding: 13px 14px 12px !important;
  }

  body.rise-page-projects .p-grid > a > div:last-child > div:first-child {
    font-size: 13.5px !important;
    line-height: 1.28 !important;
  }

  body.rise-page-projects .p-grid > a > div:last-child > div:last-child {
    gap: 8px !important;
    padding-top: 9px !important;
  }

  body.rise-page-project-detail section > div:has(> img) {
    width: 100% !important;
    max-height: 210px !important;
  }

  body.rise-page-journals .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-journals .p-grid > a {
    min-height: 190px !important;
    border-radius: 12px !important;
  }

  body.rise-page-journals .p-grid > a > div:last-child {
    padding: 18px !important;
  }

  body.rise-page-journals .p-grid > a > div:last-child > div:first-child {
    font-size: 17px !important;
  }

  body.rise-page-awards .p-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.rise-page-awards .p-grid > a {
    min-height: 190px !important;
    border-radius: 12px !important;
  }

  body.rise-page-awards .p-grid > a > div:last-child {
    padding: 16px !important;
  }

  body.rise-page-awards .p-grid > a > div:last-child > div:first-child {
    font-size: 16px !important;
  }

  body.rise-page-awards .p-grid a span > svg {
    display: none !important;
  }

  body.rise-page-voices .v-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.rise-page-voices .v-grid > * {
    min-width: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }

  body.rise-page-voices .v-grid > * > div > div:last-child {
    padding: 16px 14px !important;
  }

  body.rise-page-voices .v-grid > * > div > div:last-child > div:first-child {
    font-size: 34px !important;
  }

  body.rise-page-voices .v-grid > * > div > div:last-child > p {
    margin-top: 8px !important;
    font-size: 10.5px !important;
    line-height: 1.38 !important;
    -webkit-line-clamp: 7 !important;
  }

  body.rise-page-voices .v-grid > * > div > div:last-child > div:last-child {
    padding-top: 9px !important;
  }

  body.rise-page-voices .v-grid > * > div > div:last-child > div:last-child > div:first-child {
    font-size: 12px !important;
  }

  body.rise-page-voices .v-grid > * > div > div:last-child > div:last-child > div:last-child {
    font-size: 10px !important;
  }

  body.rise-page-isef .p-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-isef .p-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: calc((100% - 14px) / 2) !important;
    justify-self: center !important;
  }

  body.rise-page-journal-detail .j-hero,
  body.rise-page-award-detail .j-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) !important;
    gap: 26px !important;
    align-items: center !important;
  }

  body.rise-page-journal-detail .j-hero > div:has(> img),
  body.rise-page-award-detail .j-hero > div:has(> img) {
    width: 100% !important;
    min-height: 0 !important;
    max-height: 250px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
  }

  body.rise-page-journal-detail .j-facts,
  body.rise-page-award-detail .j-facts,
  body.rise-page-journal-detail .j-tips {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.rise-page-journal-detail .j-facts > div,
  body.rise-page-award-detail .j-facts > div,
  body.rise-page-journal-detail .j-tips > div {
    min-width: 0 !important;
    padding: 18px !important;
  }

  body.rise-page-mentor .md-row {
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr) !important;
    gap: 26px !important;
    align-items: start !important;
  }

  body.rise-page-mentor .md-row > img {
    width: 100% !important;
    max-height: 280px !important;
    aspect-ratio: 4 / 5 !important;
    object-position: center 18% !important;
  }

  body.rise-page-mentor .md-more {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.rise-page-mentor .md-more > a {
    min-width: 0 !important;
  }

  body.rise-page-mentor-bios .mg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-mentor-bios .mg-grid > a {
    min-width: 0 !important;
  }

  body.rise-page-mentor-bios .mg-grid > a > div:last-child {
    padding: 13px !important;
  }

  body.rise-page-mentor-bios .mg-grid > a > div:last-child > div:first-child {
    font-size: 15px !important;
  }

  body.rise-page-mentor-bios .mg-grid > a > div:last-child > div:nth-child(2) {
    font-size: 10.5px !important;
  }

  body.rise-page-mentor-bios .mg-grid > a > div:last-child > span {
    margin-top: 8px !important;
    padding: 6px 11px !important;
    font-size: 11px !important;
  }

  body.rise-page-blog .rise-boundlearn-header,
  body.rise-page-blog-post .rise-boundlearn-header {
    position: relative !important;
    z-index: 1000 !important;
    min-height: 57px !important;
    padding: 8px 16px !important;
    background: #0b1221 !important;
    color: #e2e8f0 !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
  }

  body.rise-page-blog .rise-boundlearn-header .bl-mnav-mobile-unified,
  body.rise-page-blog-post .rise-boundlearn-header .bl-mnav-mobile-unified {
    top: calc(100% + 1px) !important;
    right: 12px !important;
    left: auto !important;
    width: min(360px, calc(100vw - 24px)) !important;
    max-height: calc(100svh - 72px) !important;
    align-items: stretch !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body.rise-page-blog #bl-toggle:checked ~ .bl-mnav-mobile-unified,
  body.rise-page-blog-post #bl-toggle:checked ~ .bl-mnav-mobile-unified {
    display: flex !important;
  }

  body.rise-page-main #how .r-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.rise-page-main #how .r-cards > :nth-child(-n + 2) {
    grid-column: span 3 !important;
  }

  body.rise-page-main #how .r-cards > :nth-child(n + 3) {
    grid-column: span 2 !important;
    width: auto !important;
    justify-self: stretch !important;
  }

  body.rise-page-about .ab-row > div:has(> img) > img {
    object-position: center 18% !important;
  }

  body.rise-page-about .r-wall,
  body.rise-page-results .r-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.rise-page-about .r-wall > div,
  body.rise-page-results .r-wall > div {
    min-width: 0 !important;
    height: 108px !important;
    padding: 16px !important;
  }

  body.rise-page-about .r-wall img,
  body.rise-page-results .r-wall img {
    max-width: 100% !important;
    max-height: 54px !important;
  }

  body.rise-page-results .r-cmp {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.rise-page-results .r-cmp > div {
    min-width: 0 !important;
    padding: 24px 20px !important;
  }

  body.rise-page-results .r-cmp > div > div:first-child {
    font-size: clamp(42px, 7vw, 62px) !important;
  }

  body.rise-page-journals .rise-journal-card-default {
    display: none !important;
  }

  body.rise-page-journals .rise-journal-card-hero {
    display: block !important;
  }
}

@media (orientation: landscape) and (max-width: 720px) and (max-height: 500px) {
  body.rise-page-main .rise-hero-shell .r-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(180px, 0.82fr) !important;
    gap: 18px !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:last-child > div {
    max-height: 210px !important;
  }

  body.rise-page-programs .r-mentors {
    gap: 15px 10px !important;
  }

  body.rise-page-about .ab-row,
  body.rise-page-journal-detail .j-hero,
  body.rise-page-award-detail .j-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.85fr) !important;
    gap: 20px !important;
  }

  body.rise-page-about .ab-row > div:has(> img),
  body.rise-page-journal-detail .j-hero > div:has(> img),
  body.rise-page-award-detail .j-hero > div:has(> img) {
    max-height: 220px !important;
  }

  body.rise-page-mentor-bios .mg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.rise-page-projects .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rise-page-project-detail section > div:has(> img) {
    max-height: 180px !important;
  }

  body.rise-page-awards .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rise-page-awards .p-grid > a {
    min-height: 184px !important;
  }
}

body.rise-page-journals .rise-card-read svg,
body.rise-page-awards .rise-card-read svg {
  display: none !important;
}

@media (min-width: 1201px) {
  body.rise-product-page .rise-program-header .rise-desktop-nav-unified {
    position: absolute !important;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
  }

  body.rise-product-page [data-rise-back-row],
  body.rise-product-page .rise-portrait-back {
    display: none !important;
  }

  body.rise-page-project-detail .rise-detail-index-link,
  body.rise-page-journal-detail .rise-detail-index-link,
  body.rise-page-award-detail .rise-detail-index-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-bottom: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  body.rise-page-project-detail .rise-detail-index-link:hover,
  body.rise-page-project-detail .rise-detail-index-link:focus-visible,
  body.rise-page-journal-detail .rise-detail-index-link:hover,
  body.rise-page-journal-detail .rise-detail-index-link:focus-visible,
  body.rise-page-award-detail .rise-detail-index-link:hover,
  body.rise-page-award-detail .rise-detail-index-link:focus-visible {
    color: var(--sec) !important;
  }

  body.rise-page-project-detail .rise-detail-index-link {
    margin-bottom: 0 !important;
  }

  body.rise-page-isef .p-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.rise-page-isef .p-grid > * {
    grid-column: span 2 !important;
    min-width: 0 !important;
  }

  body.rise-page-isef .p-grid > :nth-last-child(2):nth-child(4) {
    grid-column: 2 / span 2 !important;
  }

  body.rise-page-isef .p-grid > :last-child:nth-child(5) {
    grid-column: 4 / span 2 !important;
  }

  body.rise-page-about .rise-about-portrait-cta {
    display: block !important;
  }
}

/*
 * Wide RISE screens preserve the approved 1366px desktop composition as one
 * proportional system. This prevents type, cards, imagery, and spacing from
 * appearing progressively smaller as the monitor widens.
 */
@media (min-width: 1600px) and (max-width: 1799px) {
  html,
  body.rise-product-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }

  body.rise-product-page {
    min-height: var(--rise-wide-doc-height, 100vh);
  }

  body.rise-product-page #dc-root {
    width: 1366px !important;
    max-width: none !important;
    margin: 0 !important;
    zoom: var(--rise-wide-scale, 1);
  }

  body.rise-product-page .rise-program-header.rise-wide-sticky-active {
    position: fixed !important;
    z-index: 500 !important;
    top: 0 !important;
    right: auto !important;
    left: 0 !important;
    width: 1366px !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rise-product-page .r-out > * {
    transition: none !important;
  }
}

/* The RISE drawer belongs to the existing rounded program bar on phones. */
@media (max-width: 760px),
  (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.rise-page .rise-program-header {
    position: sticky !important;
    overflow: visible !important;
  }

  body.rise-page .rise-program-header > .rise-mnav {
    position: absolute !important;
    inset: calc(100% - 1px) -1px auto -1px !important;
    width: calc(100% + 2px) !important;
    max-height: calc(100svh - 76px) !important;
    border-radius: 0 0 14px 14px !important;
    background: rgba(244, 242, 236, .99) !important;
    box-shadow: 0 18px 36px rgba(20, 40, 30, .16) !important;
  }

  body.rise-page .rise-program-header > .rise-mnav .rise-menu-brand,
  body.rise-page .rise-program-header > .rise-mnav .program-panel-logo {
    display: none !important;
  }

  body.rise-page #rn-toggle:checked ~ .burger svg {
    display: none !important;
  }

  body.rise-page #rn-toggle:checked ~ .burger::before {
    content: "\00d7";
    font: 400 29px/1 Arial, sans-serif;
    color: currentColor;
  }

  body.rise-page .rise-boundlearn-header > .bl-unified-panel {
    position: absolute !important;
    inset: calc(100% - 1px) 0 auto 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px !important;
  }
}

@media (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.rise-page .rise-program-header > .rise-mnav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
  }

  body.rise-page .rise-program-header > .rise-mnav > a {
    grid-column: auto !important;
  }

  body.rise-page .rise-program-header > .rise-mnav > a:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* The portrait mentor profile keeps the identity row compact, then restores
   the long academic biography to a comfortable full-width reading measure. */
@media (max-width: 600px) and (orientation: portrait) {
  body.rise-page-mentor .md-row {
    display: grid !important;
    grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important;
    gap: 18px 16px !important;
    align-items: start !important;
  }

  body.rise-page-mentor .md-row > img {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-height: 168px !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center 18% !important;
    border-radius: 13px !important;
  }

  body.rise-page-mentor .md-profile-content {
    display: contents !important;
  }

  body.rise-page-mentor .md-profile-summary {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    align-self: center !important;
  }

  body.rise-page-mentor .md-profile-summary h1 {
    font-size: 27px !important;
    line-height: 30px !important;
  }

  body.rise-page-mentor .md-profile-summary h1 + div {
    margin-top: 8px !important;
    font-size: 14px !important;
    line-height: 20px !important;
  }

  body.rise-page-mentor .md-profile-summary a {
    min-height: 42px !important;
    box-sizing: border-box !important;
    margin-top: 14px !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
  }

  body.rise-page-mentor .md-profile-details {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
  }
}

body.rise-product-page .rise-program-header.bl-programme-autohide-owner {
  top: var(--bl-programme-tier-top, 12px) !important;
  transition: transform .22s cubic-bezier(.4,0,.2,1), top .22s cubic-bezier(.4,0,.2,1) !important;
  will-change: transform;
}
body.rise-product-page .rise-program-header.bl-programme-autohide-owner.is-scroll-hidden {
  transform: translate3d(0, calc(-100% - var(--bl-programme-tier-top, 12px)), 0) !important;
  pointer-events: none !important;
}
body.rise-product-page .rise-program-header.rise-wide-sticky-active {
  top: var(--bl-programme-tier-top, 12px) !important;
}

/* Native-wide RISE: expand real section and grid geometry; never zoom the
   1366px export on 1920–3840px monitors. */
@media (min-width: 1800px) {
  html,
  body.rise-product-page:not(.rise-wide-artboard-page) {
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow-x: clip !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) {
    --rise-native-canvas: min(88vw, 3360px);
    --rise-native-edge: clamp(48px, 3vw, 112px);
  }

  body.rise-product-page:not(.rise-wide-artboard-page) #dc-root,
  body.rise-product-page:not(.rise-wide-artboard-page) #dc-root > .sc-host {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    zoom: 1 !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) #dc-root :is(
    .rise-hero-shell,
    [style*="max-width:1160px"],
    [style*="max-width: 1160px"],
    [style*="max-width:1080px"],
    [style*="max-width: 1080px"]
  ) {
    box-sizing: border-box !important;
    width: var(--rise-native-canvas) !important;
    max-width: var(--rise-native-canvas) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--rise-native-edge) !important;
    padding-left: var(--rise-native-edge) !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) .rise-program-header.rise-wide-sticky-active {
    position: fixed !important;
    top: var(--bl-programme-tier-top, 12px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 500 !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) :is(.r-hero, .rp-wrap, .rise-prog-desk, .r-cards, .r-out, .r-2, .r-venues, .r-stats) {
    width: 100% !important;
    max-width: none !important;
    gap: clamp(22px, 1.4vw, 52px) !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) :is(.r-hero h1, h1) {
    font-size: clamp(72px, 4.2vw, 142px) !important;
    line-height: .94 !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) section h2 {
    font-size: clamp(48px, 2.65vw, 88px) !important;
    line-height: .98 !important;
  }

  body.rise-product-page:not(.rise-wide-artboard-page) section p {
    max-width: 68ch;
    font-size: clamp(17px, .82vw, 25px);
    line-height: 1.58;
  }
}
