/*
 * Shared RISE tablet contract.
 * Keeps the locked mobile and desktop systems untouched while normalizing
 * portrait and landscape tablets across every RISE page.
 */

@keyframes riseTabletResearch {
  0%,
  45% {
    opacity: 1;
    transform: translateY(0);
  }
  47%,
  96% {
    opacity: 0;
    transform: translateY(-10px);
  }
  98%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseTabletMentorship {
  0%,
  47% {
    opacity: 0;
    transform: translateY(10px);
  }
  49%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.rise-about-portrait-cta {
  display: none;
}

@media (max-width: 900px) {
  body.rise-page-about .rise-about-portrait-cta {
    display: block !important;
  }
}

@media (min-width: 601px) and (max-width: 1200px) {
  html,
  body.rise-product-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child > img {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.rise-page-main .rise-hero-shell {
    min-height: calc(100svh - 131px) !important;
  }

  body.rise-product-page .rise-boundlearn-header,
  body.rise-product-page .rise-program-header {
    box-sizing: border-box !important;
    width: 100% !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
  }

  body.rise-product-page .rise-boundlearn-header {
    position: relative !important;
    z-index: 1000 !important;
    min-height: 66px !important;
    padding: 10px 28px !important;
    background: #0b1221 !important;
    color: #fff !important;
  }

  body.rise-product-page .rise-boundlearn-header > a:first-child {
    display: inline-flex !important;
    align-items: center !important;
  }

  body.rise-product-page .rise-boundlearn-header > a:first-child img {
    display: block !important;
    width: auto !important;
    height: 22px !important;
  }

  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-burger,
  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-radius: 9px !important;
  }

  body.rise-product-page .rise-boundlearn-header .bl-burger {
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    background: transparent !important;
    color: #fff !important;
  }

  body.rise-product-page .rise-program-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
    min-height: 62px !important;
    padding: 9px 20px 9px 28px !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: 28px !important;
    max-width: 180px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body.rise-product-page .rise-program-header .burger {
    border: 1px solid rgba(19, 85, 58, 0.24) !important;
    background: #fff !important;
    color: #13553a !important;
  }

  body.rise-product-page #rn-toggle:checked ~ .burger {
    background: #13553a !important;
    color: #fff !important;
    border-color: #13553a !important;
  }

  body.rise-product-page .rise-boundlearn-header .bl-mnav-mobile-unified,
  body.rise-product-page .rise-mobile-menu-system {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    display: none !important;
    width: min(410px, calc(100vw - 40px)) !important;
    max-height: calc(100svh - 92px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-radius: 14px !important;
    box-shadow: 0 22px 48px rgba(10, 24, 18, 0.24) !important;
  }

  body.rise-product-page .rise-boundlearn-header .bl-mnav-mobile-unified {
    align-items: stretch !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 12px 18px 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    background: #0b1221 !important;
    color: #fff !important;
    font-family: "Cinzel", Georgia, serif !important;
    z-index: 1200 !important;
  }

  body.rise-product-page
    .rise-boundlearn-header
    #bl-toggle:checked
    ~ .bl-mnav-legacy {
    display: none !important;
  }

  body.rise-product-page
    .rise-boundlearn-header
    #bl-toggle:checked
    ~ .bl-mnav-mobile-unified {
    display: flex !important;
  }

  body.rise-product-page .bl-mnav-mobile-unified > a,
  body.rise-product-page .bl-mnav-mobile-unified > 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(255, 255, 255, 0.11) !important;
    background: transparent !important;
    color: #f8fafc !important;
    font-family: "Cinzel", Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-decoration: none !important;
  }

  body.rise-product-page .bl-mnav-mobile-unified details a {
    display: flex !important;
    min-height: 34px !important;
    align-items: center !important;
    padding: 7px 4px 7px 14px !important;
    color: #aab7ca !important;
    font-family: "Cinzel", Georgia, serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  body.rise-product-page .bl-mnav-mobile-unified .bl-mobile-apply {
    min-height: 44px !important;
    justify-content: center !important;
    margin-top: 12px !important;
    border: 1px solid #d4af37 !important;
    border-radius: 8px !important;
    background: #d4af37 !important;
    color: #0b1221 !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  body.rise-product-page .rise-mobile-menu-system {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 14px 18px 18px !important;
    border: 1px solid rgba(19, 85, 58, 0.16) !important;
    background: #f8f6f0 !important;
    color: #153c2e !important;
    z-index: 1100 !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 {
    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;
    background: transparent !important;
    color: #153c2e !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !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 !important;
    min-width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    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-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  body.rise-product-page .rise-mobile-menu-system .rise-menu-actions {
    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-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-page-main .r-hero h1 > span > span:nth-child(2) {
    animation: riseTabletResearch 5s ease-in-out infinite !important;
  }

  body.rise-page-main .r-hero h1 > span > span:nth-child(3) {
    animation: riseTabletMentorship 5s ease-in-out infinite !important;
  }

  body.rise-product-page .rise-footer,
  body.rise-product-page .rise-footer-shell {
    width: 100% !important;
    max-width: none !important;
    margin-top: 64px !important;
    padding: 44px 32px 24px !important;
    background: #0b1221 !important;
    color: #fff !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
  }

  body.rise-product-page .rise-footer-shell > div {
    width: 100% !important;
    max-width: 1160px !important;
    margin: 0 auto !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot {
    align-items: start !important;
    gap: 28px !important;
    padding-bottom: 26px !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :not(:first-child) > :first-child {
    margin: 0 0 10px !important;
    color: #d4af37 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :not(:first-child) > :last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot a {
    color: #cbd5e1 !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
  }

  body.rise-product-page .rise-footer-shell > div > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding-top: 18px !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
  }
}

/* Tablet portrait keeps the approved attached RISE programme menu. */
@media (min-width: 601px) and (max-width: 1180px) and (min-height: 501px) {
  body.rise-product-page .rise-program-header {
    overflow: visible !important;
  }

  body.rise-product-page .rise-program-header > a,
  body.rise-product-page .rise-program-header > label,
  body.rise-product-page .rise-program-header > input {
    position: relative !important;
  }

  body.rise-product-page .rise-program-header .rise-mobile-menu-system,
  body.rise-product-page .rise-program-header .rise-mnav {
    position: absolute !important;
    inset: calc(100% - 1px) -1px auto -1px !important;
    width: calc(100% + 2px) !important;
    max-width: none !important;
    max-height: calc(100svh - 118px) !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 18px 36px rgba(10, 24, 18, .16) !important;
  }

  body.rise-product-page .rise-program-header .rise-menu-brand,
  body.rise-product-page .rise-program-header .program-panel-logo,
  body.rise-product-page .rise-program-header .bl-program-mobile-brand {
    display: none !important;
  }

  html body.rise-page.rise-product-page
    .rise-program-header
    > .rise-mnav.rise-mobile-menu-system
    > .rise-menu-brand,
  html body.rise-page.rise-product-page
    .rise-program-header
    > .rise-mnav
    > .program-panel-logo {
    display: none !important;
  }

  body.rise-product-page #rn-toggle:checked ~ .burger svg {
    display: none !important;
  }

  body.rise-product-page #rn-toggle:checked ~ .burger::before {
    content: "\00d7";
    font: 400 29px/1 Arial, sans-serif;
    color: currentColor;
  }
}

@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  body.rise-page-main .rise-hero-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 34px 32px 0 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: start !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child > img {
    height: 38px !important;
    margin: 0 auto 18px !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 {
    font-size: clamp(44px, 6.5vw, 56px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 > span {
    display: block !important;
    width: 100% !important;
    min-height: 1.15em !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 > span > span {
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero p {
    max-width: 620px !important;
    margin: 18px auto 20px !important;
    font-size: 15.5px !important;
    line-height: 1.52 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero p + div {
    justify-content: center !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:last-child {
    width: 100% !important;
    max-width: 756px !important;
    margin: 0 auto !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:last-child > div {
    width: 100% !important;
    max-height: 430px !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 16px !important;
    animation: none !important;
  }

  body.rise-page-main .rise-hero-shell .r-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 24px !important;
  }

  body.rise-page-main .rise-hero-shell .r-stat {
    min-height: 128px !important;
    padding: 18px 14px !important;
  }

  body.rise-page-main .rise-hero-shell .r-stat > div:first-child {
    font-size: clamp(30px, 4.5vw, 42px) !important;
  }

  body.rise-page-main .rise-hero-shell .r-stat > div:last-child {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px 18px !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: 22px !important;
    margin: 0 auto !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot [data-bl-footer-copy] {
    max-width: 430px !important;
    margin: 13px auto 0 !important;
    font-size: 12.5px !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 > div > div:last-child {
    justify-content: center !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  body.rise-page-main .r-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rise-page-main .r-cards > div {
    grid-column: auto !important;
  }

  body.rise-page-main .r-cards > div:last-child {
    grid-column: 1 / -1 !important;
    width: calc(50% - 7px) !important;
    justify-self: center !important;
  }

  body.rise-page-main .r-venues {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.rise-page-main .r-venues > :nth-last-child(2) {
    grid-column: 2 !important;
  }

  body.rise-page-main .r-venues > :last-child {
    grid-column: 3 !important;
  }

  body.rise-page-about section:first-of-type .ab-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr) !important;
    gap: 32px !important;
    align-items: center !important;
  }

  body.rise-page-about section:first-of-type .ab-row > div:last-child {
    width: 100% !important;
    height: 320px !important;
    aspect-ratio: auto !important;
  }

  body.rise-page-about section:first-of-type .ab-row > div:last-child img {
    object-position: center 24% !important;
  }

  body.rise-page-about .proc-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) {
    min-width: 0 !important;
    max-width: none !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) > div:last-child {
    padding: 18px 12px !important;
    font-size: 13px !important;
  }

  body.rise-page-about .proc-row .proc-arrow {
    display: none !important;
  }

  body.rise-page-about .rise-about-portrait-cta {
    display: block !important;
  }

  body.rise-page-results [data-rise-back-row],
  body.rise-page-projects [data-rise-back-row],
  body.rise-page-voices [data-rise-back-row],
  body.rise-page-journals [data-rise-back-row],
  body.rise-page-isef [data-rise-back-row],
  body.rise-page-faq [data-rise-back-row] {
    display: none !important;
  }

  body.rise-page-results .r-cmp {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rise-page-results .res-row {
    grid-template-columns: minmax(0, 180px) 82px minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  body.rise-page-results .res-row > div:first-child,
  body.rise-page-results .res-row > div:first-child img {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.rise-page-project-detail [data-rise-detail-index],
  body.rise-page-journal-detail [data-rise-detail-index] {
    gap: 7px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  body.rise-page-voices .v-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-voices .v-grid > div > div > div:last-child {
    padding: 18px 16px !important;
  }

  body.rise-page-voices .v-grid > div > div > div:last-child p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  body.rise-page-journals .p-grid,
  body.rise-page-awards .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-journals .rise-journal-card-default {
    display: none !important;
  }

  body.rise-page-journals .rise-journal-card-hero {
    display: block !important;
  }

  body.rise-page-awards .rise-award-card-default {
    display: none !important;
  }

  body.rise-page-awards .rise-award-card-hero {
    display: block !important;
  }

  body.rise-page-journals .rise-card-read svg,
  body.rise-page-awards .rise-card-read svg {
    display: none !important;
  }

  body.rise-page-isef .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-isef .p-grid > div:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 7px) !important;
    justify-self: center !important;
  }

  body.rise-page-blog-post .rel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-blog-post .rel-grid .blogcard > div:last-child {
    padding: 16px !important;
  }

  body.rise-page-blog-post .rel-grid .blogcard h3 {
    font-size: 16px !important;
    line-height: 1.22 !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) and (orientation: landscape) {
  body.rise-page-about .proc-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) {
    min-width: 0 !important;
    max-width: none !important;
  }

  body.rise-page-about .proc-row > div:not(.proc-arrow) > div:last-child {
    padding: 18px 12px !important;
    font-size: 13px !important;
  }

  body.rise-page-about .proc-row .proc-arrow {
    display: none !important;
  }

  body.rise-page-about .rise-about-portrait-cta {
    display: block !important;
  }

  body.rise-page-voices .v-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.rise-page-voices .v-grid > div > div > div:last-child {
    padding: 18px 16px !important;
  }

  body.rise-page-voices .v-grid > div > div > div:last-child p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  body.rise-page-journals .rise-journal-card-default {
    display: none !important;
  }

  body.rise-page-journals .rise-journal-card-hero {
    display: block !important;
  }

  body.rise-page-awards .rise-award-card-default {
    display: none !important;
  }

  body.rise-page-awards .rise-award-card-hero {
    display: block !important;
  }

  body.rise-page-awards .rise-card-read svg {
    display: none !important;
  }

  body.rise-page-isef .p-grid > div:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 7px) !important;
    justify-self: center !important;
  }

  body.rise-page-results [data-rise-back-row],
  body.rise-page-projects [data-rise-back-row],
  body.rise-page-voices [data-rise-back-row],
  body.rise-page-journals [data-rise-back-row],
  body.rise-page-isef [data-rise-back-row],
  body.rise-page-faq [data-rise-back-row] {
    display: none !important;
  }

  body.rise-page-project-detail [data-rise-detail-index],
  body.rise-page-journal-detail [data-rise-detail-index] {
    gap: 7px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  body.rise-page-main .rise-hero-shell {
    width: 100% !important;
    max-width: 1180px !important;
    padding: 38px 40px 0 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important;
    gap: 38px !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child > img {
    height: 36px !important;
    margin-bottom: 20px !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero h1 {
    font-size: clamp(46px, 4.8vw, 58px) !important;
    line-height: 1 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:first-child > p {
    margin: 18px 0 20px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  body.rise-page-main .rise-hero-shell .r-hero > div:last-child > div {
    max-height: 430px !important;
    aspect-ratio: 4 / 3 !important;
    animation: none !important;
  }

  body.rise-page-main .rise-hero-shell .r-stats {
    gap: 10px !important;
    margin-top: 28px !important;
  }

  body.rise-page-main .rise-hero-shell .r-stat {
    min-height: 136px !important;
    padding: 20px 18px !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot {
    display: grid !important;
    grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(128px, 1fr)) !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child {
    grid-column: 1 !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot [data-bl-footer-copy] {
    max-width: 280px !important;
    margin: 12px 0 0 !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child p + div {
    justify-content: flex-start !important;
  }

  body.rise-product-page .rise-footer-shell > div > div:last-child {
    justify-content: space-between !important;
    flex-direction: row !important;
    text-align: left !important;
  }
}

/* Approved tablet footer composition shared with CFI and SparkLab. */
@media (min-width: 720px) and (max-width: 1180px) and (min-height: 700px) {
  body.rise-product-page .rise-footer,
  body.rise-product-page .rise-footer-shell {
    padding: 52px 32px 34px !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot {
    grid-template-columns: minmax(225px, 1.7fr) repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 22px !important;
    align-items: start !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > div {
    grid-column: auto !important;
    min-width: 0 !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child {
    grid-column: auto !important;
    display: flex !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    text-align: left !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 {
    margin-inline: 0 !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot [data-bl-footer-copy] {
    max-width: 320px !important;
    margin: 16px 0 0 !important;
    text-align: left !important;
  }

  body.rise-product-page .rise-footer-shell .r-foot > :first-child p + div {
    justify-content: flex-start !important;
    width: auto !important;
  }

  body.rise-product-page .rise-footer-shell > div > div:last-child {
    justify-content: space-between !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    text-align: left !important;
  }
}

/* Phone landscape keeps RISE's own compact two-row shell. */
@media (orientation: landscape) and (min-width: 601px) and (max-width: 950px) and (max-height: 500px) {
  html:has(body.rise-page-blog),
  html:has(body.rise-page-blog-post) {
    height: 100% !important;
    overflow: hidden !important;
  }

  body.rise-page-blog,
  body.rise-page-blog-post {
    height: 100svh !important;
    max-height: 100svh !important;
    overflow-y: auto !important;
  }

  body.rise-page .rise-boundlearn-header,
  body.rise-product-page .rise-boundlearn-header {
    box-sizing: border-box !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 6px 16px !important;
  }

  body.rise-page .rise-boundlearn-header:has(#bl-toggle:checked),
  body.rise-page .rise-boundlearn-header:has(.bl-unified-trigger[aria-expanded="true"]),
  body.rise-product-page .rise-boundlearn-header:has(#bl-toggle:checked),
  body.rise-product-page .rise-boundlearn-header:has(.bl-unified-trigger[aria-expanded="true"]) {
    z-index: 1200 !important;
  }

  body.rise-page .rise-program-header,
  body.rise-product-page .rise-program-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 7px 16px !important;
    border-radius: 0 !important;
    overflow: visible !important;
    z-index: 1100 !important;
  }

  body.rise-page-main .rise-hero-shell {
    padding-top: 26px !important;
  }
}

/* Final compact Boundlearn drawer geometry follows the full-width navy bar. */
@media (max-width: 760px),
  (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  html body.rise-page .rise-boundlearn-header > .bl-unified-panel,
  html body.rise-product-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;
  }
}

/* Portrait tablets keep the mentor portrait secondary to the biography. */
@media (min-width: 601px) and (max-width: 1200px) and (orientation: portrait) {
  body.rise-page-mentor .md-row {
    grid-template-columns: minmax(210px, 0.68fr) minmax(0, 1.32fr) !important;
    gap: 32px !important;
    align-items: start !important;
  }

  body.rise-page-mentor .md-row > img {
    width: 100% !important;
    max-height: 300px !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center 18% !important;
  }
}
