/* =========================================================
   ResearchPips Institutional Theme 2.0
   Global design system + OceanWP + Elementor integration
   ========================================================= */
:root{
    --rp-navy:#07182f;
    --rp-navy-2:#0b2c53;
    --rp-blue:#2f7df4;
    --rp-blue-soft:#eaf2ff;
    --rp-bg:#f3f6fa;
    --rp-surface:#fff;
    --rp-ink:#10213a;
    --rp-muted:#66758c;
    --rp-border:#dce4ee;
    --rp-success:#15a36d;
    --rp-warning:#d98512;
    --rp-danger:#d84b4b;
    --rp-site-width:1280px;
    --rp-logo-width:238px;
    --rp-header-pt:18px;
    --rp-header-pb:16px;
    --rp-radius-sm:10px;
    --rp-radius:18px;
    --rp-radius-lg:24px;
    --rp-shadow-sm:0 8px 24px rgba(7,24,47,.07);
    --rp-shadow:0 24px 65px rgba(7,24,47,.11);
    --rp-font-sans:"Inter","Aptos","Segoe UI",Helvetica,Arial,sans-serif;
    --rp-font-display:"Manrope","Aptos Display","Segoe UI",Helvetica,Arial,sans-serif;
    --e-global-color-primary:var(--rp-blue);
    --e-global-color-secondary:var(--rp-navy-2);
    --e-global-color-text:var(--rp-ink);
    --e-global-color-accent:var(--rp-blue);
}

html{margin:0!important;padding:0!important;scroll-behavior:smooth;background:var(--rp-bg)}
body.researchpips-site{margin:0!important;padding:0!important;background:var(--rp-bg);color:var(--rp-ink);font-family:var(--rp-font-sans);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.researchpips-site *{box-sizing:border-box}
body.researchpips-site a{transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
body.researchpips-site h1,body.researchpips-site h2,body.researchpips-site h3,body.researchpips-site h4,body.researchpips-site h5,body.researchpips-site h6{font-family:var(--rp-font-display);font-weight:750;letter-spacing:-.025em;text-wrap:pretty}
body.researchpips-site p{text-wrap:pretty}
body.researchpips-site img{max-width:100%;height:auto}
body.researchpips-site button,body.researchpips-site input,body.researchpips-site select,body.researchpips-site textarea{font-family:var(--rp-font-sans)}

/* Eliminate OceanWP's boxed-canvas edges without affecting content padding. */
body.researchpips-site #outer-wrap,
body.researchpips-site #wrap{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent;box-shadow:none!important}
body.researchpips-site #main{width:100%;margin:0;background:var(--rp-bg)}

/* =========================================================
   Header and navigation
   ========================================================= */
body.researchpips-site #site-header{
    position:relative!important;
    z-index:100;
    width:100%;
    border:0!important;
    background:linear-gradient(108deg,var(--rp-navy) 0%,#081f3b 62%,var(--rp-navy-2) 100%)!important;
    box-shadow:0 8px 30px rgba(2,13,28,.14);
}
body.researchpips-site #site-header-inner{
    width:min(calc(100% - 48px),var(--rp-site-width))!important;
    max-width:var(--rp-site-width)!important;
    min-height:94px;
    margin:0 auto!important;
    padding:var(--rp-header-pt) 0 var(--rp-header-pb)!important;
}
body.researchpips-site #site-logo,
body.researchpips-site #site-logo #site-logo-inner{
    height:auto!important;
    line-height:1!important;
}
body.researchpips-site #site-logo #site-logo-inner a{display:inline-flex;align-items:center;line-height:1}
body.researchpips-site #site-logo #site-logo-inner a img{
    display:block;
    width:var(--rp-logo-width)!important;
    max-width:var(--rp-logo-width)!important;
    max-height:74px!important;
    object-fit:contain;
    object-position:left center;
}
body.researchpips-site #site-navigation-wrap .dropdown-menu>li>a{
    position:relative;
    padding:0 17px!important;
    color:rgba(255,255,255,.89)!important;
    font-family:var(--rp-font-sans);
    font-size:14px!important;
    font-weight:750!important;
    letter-spacing:.015em;
    line-height:44px!important;
    text-transform:uppercase;
}
body.researchpips-site #site-navigation-wrap .dropdown-menu>li>a:after{
    content:"";
    position:absolute;
    right:17px;
    bottom:4px;
    left:17px;
    height:2px;
    border-radius:2px;
    background:var(--rp-blue);
    opacity:0;
    transform:scaleX(.5);
    transition:opacity .2s ease,transform .2s ease;
}
body.researchpips-site #site-navigation-wrap .dropdown-menu>li>a:hover,
body.researchpips-site #site-navigation-wrap .dropdown-menu>.current-menu-item>a,
body.researchpips-site #site-navigation-wrap .dropdown-menu>.current_page_item>a{color:#fff!important}
body.researchpips-site #site-navigation-wrap .dropdown-menu>li>a:hover:after,
body.researchpips-site #site-navigation-wrap .dropdown-menu>.current-menu-item>a:after,
body.researchpips-site #site-navigation-wrap .dropdown-menu>.current_page_item>a:after{opacity:1;transform:scaleX(1)}
body.researchpips-site .oceanwp-mobile-menu-icon a{color:#fff!important}
body.researchpips-site #mobile-dropdown{border:0;background:var(--rp-navy)}
body.researchpips-site #mobile-dropdown ul li a{border-color:rgba(255,255,255,.08);color:#fff;font-weight:700}

@media(min-width:960px){
    body.researchpips-site #site-header-inner{display:flex!important;align-items:center;justify-content:space-between;gap:40px}
    body.researchpips-site #site-logo{float:none!important;flex:0 0 auto}
    body.researchpips-site #site-navigation-wrap{position:static!important;top:auto!important;right:auto!important;display:flex!important;align-items:center;height:auto!important;margin-left:auto;transform:none!important}
    body.researchpips-site #site-navigation-wrap .dropdown-menu{display:flex;align-items:center}
}

/* Transparent, integrated header only on the Elementor page that contains the RP hero. */
body.rp-theme-home{background:var(--rp-navy)}
body.rp-theme-home #site-header{
    position:absolute!important;
    top:0;
    left:0;
    background:transparent!important;
    box-shadow:none;
    transition:background .25s ease,box-shadow .25s ease,backdrop-filter .25s ease;
}
body.rp-theme-home.admin-bar #site-header{top:32px}
body.rp-theme-home.rp-header-scrolled #site-header{
    position:fixed!important;
    background:rgba(5,22,43,.92)!important;
    box-shadow:0 12px 34px rgba(2,13,28,.23);
    backdrop-filter:blur(18px) saturate(130%);
}
body.rp-theme-home #main,
body.rp-theme-home #content-wrap,
body.rp-theme-home #primary,
body.rp-theme-home .content-area,
body.rp-theme-home .site-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important}
body.rp-theme-home .elementor-widget-researchpips_home_hero,
body.rp-theme-home .elementor-widget-researchpips_home_hero>.elementor-widget-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.rp-theme-home .rp-home-hero-inner{padding-top:154px}

/* =========================================================
   Live News Feed page shell
   ========================================================= */
body.rp-theme-live-feed #main{
    min-height:70vh;
    padding:56px 0 92px!important;
    background:
        radial-gradient(circle at 84% 4%,rgba(47,125,244,.08),transparent 29%),
        linear-gradient(180deg,#eef3f8 0%,var(--rp-bg) 46%,#eef3f8 100%);
}
body.rp-theme-live-feed #content-wrap,
body.rp-theme-live-feed #primary,
body.rp-theme-live-feed .content-area,
body.rp-theme-live-feed .site-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important}
body.rp-theme-live-feed .elementor-widget-researchpips_live_feed{
    width:min(calc(100% - 48px),var(--rp-site-width))!important;
    max-width:var(--rp-site-width)!important;
    margin:0 auto!important;
    padding:0!important;
}
body.rp-theme-live-feed .elementor-widget-researchpips_live_feed>.elementor-widget-container{margin:0!important;padding:0!important}

/* Institutional refinement for the full feed. */
body.rp-theme-live-feed .rp-live-feed{
    border:1px solid rgba(152,170,194,.36)!important;
    border-radius:22px!important;
    background:var(--rp-surface);
    box-shadow:0 30px 75px rgba(7,24,47,.12),0 3px 10px rgba(7,24,47,.04)!important;
}
body.rp-theme-live-feed .rp-feed-header{
    padding:36px 38px 0!important;
    background:linear-gradient(118deg,#06172d 0%,#092746 58%,#104b88 100%)!important;
}
body.rp-theme-live-feed .rp-feed-header:before{background-size:52px 52px;opacity:.72}
body.rp-theme-live-feed .rp-feed-heading-wrap{gap:18px}
body.rp-theme-live-feed .rp-feed-icon{width:54px;height:54px;flex-basis:54px;border-radius:15px}
body.rp-theme-live-feed .rp-feed-header h2{font-size:clamp(27px,2.2vw,34px)!important;line-height:1.12!important;letter-spacing:-.035em!important}
body.rp-theme-live-feed .rp-feed-header p{max-width:760px;margin-top:11px!important;color:rgba(235,243,253,.76)!important;font-size:14px!important;line-height:1.68!important}
body.rp-theme-live-feed .rp-feed-glance{margin:31px -38px 0!important;background:rgba(1,12,26,.30)!important}
body.rp-theme-live-feed .rp-feed-glance>div{padding:18px 24px!important}
body.rp-theme-live-feed .rp-feed-glance span{font-size:9px!important;letter-spacing:.13em!important}
body.rp-theme-live-feed .rp-feed-glance strong{font-size:16px!important}
body.rp-theme-live-feed .rp-feed-glance>div:first-child strong{font-size:12px!important}
body.rp-theme-live-feed .rp-feed-toolbar{padding:18px 24px!important;background:#fff!important}
body.rp-theme-live-feed .rp-feed-filters{gap:9px!important}
body.rp-theme-live-feed .rp-feed-filters button{min-height:36px!important;padding:9px 15px!important;border-radius:999px!important;font-size:11px!important}
body.rp-theme-live-feed .rp-feed-count{padding:8px 13px!important;font-size:10px!important}
body.rp-theme-live-feed .rp-feed-item{grid-template-columns:118px minmax(0,1fr)!important;min-height:164px!important}
body.rp-theme-live-feed .rp-feed-timeline{padding:27px 23px 24px 26px!important}
body.rp-theme-live-feed .rp-feed-time{font-size:13px!important}
body.rp-theme-live-feed .rp-feed-date{font-size:9px!important}
body.rp-theme-live-feed .rp-feed-content{padding:26px 32px 24px!important}
body.rp-theme-live-feed .rp-feed-meta{margin-bottom:12px!important;gap:7px!important}
body.rp-theme-live-feed .rp-feed-asset,
body.rp-theme-live-feed .rp-feed-category,
body.rp-theme-live-feed .rp-feed-impact,
body.rp-theme-live-feed .rp-feed-badge{padding:6px 9px!important;font-size:10px!important}
body.rp-theme-live-feed .rp-feed-title{max-width:980px;margin-bottom:9px!important;font-size:19px!important;line-height:1.42!important;letter-spacing:-.018em!important}
body.rp-theme-live-feed .rp-feed-summary{max-width:980px;color:#5f7086!important;font-size:14px!important;line-height:1.72!important}
body.rp-theme-live-feed .rp-feed-item-footer{margin-top:16px!important;padding-top:13px!important;font-size:11px!important}
body.rp-theme-live-feed .rp-feed-footer{padding:16px 24px!important;font-size:10px!important}

/* =========================================================
   Standard pages, posts and forms
   ========================================================= */
body.researchpips-site:not(.rp-theme-home) .page-header{background:var(--rp-navy);border:0}
body.researchpips-site:not(.rp-theme-home) .page-header-title{color:#fff}
body.rp-theme-article #main{padding:58px 0 88px}
body.rp-theme-article #content-wrap{width:min(calc(100% - 48px),1120px);max-width:1120px;margin:0 auto}
body.rp-theme-article .single-post-title{color:var(--rp-ink);font-size:clamp(34px,4vw,55px);line-height:1.08}
body.rp-theme-article .entry-content{color:#34465c;font-size:17px;line-height:1.82}
body.rp-theme-article .entry-content h2{margin-top:1.55em;color:var(--rp-ink);font-size:31px}
body.rp-theme-article .entry-content h3{margin-top:1.45em;color:var(--rp-ink);font-size:24px}
body.rp-theme-article .entry-content a{color:var(--rp-blue);text-underline-offset:3px}
body.rp-theme-article .entry-content blockquote{border-left:4px solid var(--rp-blue);border-radius:0 var(--rp-radius-sm) var(--rp-radius-sm) 0;background:var(--rp-blue-soft);color:var(--rp-ink)}

body.rp-theme-member-page #main{padding:56px 0 86px;background:var(--rp-bg)}
body.rp-theme-member-page #content-wrap{width:min(calc(100% - 40px),900px);margin:0 auto}
body.rp-theme-member-page .um{padding:30px;border:1px solid var(--rp-border);border-radius:var(--rp-radius-lg);background:#fff;box-shadow:var(--rp-shadow-sm)}
body.rp-theme-member-page .um input[type=text],
body.rp-theme-member-page .um input[type=password],
body.rp-theme-member-page .um input[type=email],
body.rp-theme-member-page .um textarea,
body.rp-theme-member-page .um select{border:1px solid #cfd9e6!important;border-radius:10px!important;background:#fff!important;color:var(--rp-ink)!important}
body.rp-theme-member-page .um .um-button{border-radius:10px!important;background:var(--rp-blue)!important;font-weight:800!important}

body.researchpips-site input[type=text],
body.researchpips-site input[type=email],
body.researchpips-site input[type=password],
body.researchpips-site input[type=tel],
body.researchpips-site input[type=url],
body.researchpips-site select,
body.researchpips-site textarea{border:1px solid #cfd9e6;border-radius:10px;background:#fff;color:var(--rp-ink);box-shadow:none}
body.researchpips-site input:focus,
body.researchpips-site select:focus,
body.researchpips-site textarea:focus{border-color:var(--rp-blue);box-shadow:0 0 0 3px rgba(47,125,244,.12);outline:0}

/* Footer foundation. */
body.researchpips-site #footer-widgets{border-top:1px solid rgba(255,255,255,.08);background:var(--rp-navy)!important;color:#aebed2}
body.researchpips-site #footer-widgets a{color:#dce8f7}
body.researchpips-site #footer-widgets a:hover{color:#fff}
body.researchpips-site #footer-bottom{border-top:1px solid rgba(255,255,255,.07);background:#041225!important;color:#8fa3bb}

/* =========================================================
   Responsive behaviour
   ========================================================= */
@media(max-width:1100px){
    body.researchpips-site #site-navigation-wrap .dropdown-menu>li>a{padding-right:11px!important;padding-left:11px!important;font-size:12px!important}
    body.researchpips-site #site-navigation-wrap .dropdown-menu>li>a:after{right:11px;left:11px}
    body.rp-theme-home .rp-home-hero-inner{padding-top:142px}
}

@media(max-width:959px){
    body.researchpips-site #site-header-inner{width:min(calc(100% - 32px),var(--rp-site-width))!important;min-height:82px;padding-top:12px!important;padding-bottom:12px!important}
    body.researchpips-site #site-logo #site-logo-inner a img{width:min(var(--rp-logo-width),210px)!important;max-width:210px!important;max-height:62px!important}
    body.rp-theme-home.admin-bar #site-header{top:46px}
    body.rp-theme-home .rp-home-hero-inner{padding-top:126px}
    body.rp-theme-live-feed #main{padding-top:36px!important;padding-bottom:70px!important}
    body.rp-theme-live-feed .elementor-widget-researchpips_live_feed{width:min(calc(100% - 32px),var(--rp-site-width))!important}
}

@media(max-width:767px){
    body.rp-theme-home .rp-home-hero-inner{padding-top:114px!important}
    body.rp-theme-live-feed #main{padding-top:24px!important;padding-bottom:54px!important}
    body.rp-theme-live-feed .elementor-widget-researchpips_live_feed{width:calc(100% - 24px)!important}
    body.rp-theme-live-feed .rp-live-feed{border-radius:16px!important}
    body.rp-theme-live-feed .rp-feed-header{padding:24px 20px 0!important}
    body.rp-theme-live-feed .rp-feed-heading-wrap{gap:13px}
    body.rp-theme-live-feed .rp-feed-icon{width:44px;height:44px;flex-basis:44px;border-radius:12px}
    body.rp-theme-live-feed .rp-feed-header h2{font-size:25px!important}
    body.rp-theme-live-feed .rp-feed-header p{font-size:13px!important}
    body.rp-theme-live-feed .rp-feed-glance{margin:22px -20px 0!important}
    body.rp-theme-live-feed .rp-feed-glance>div{padding:14px 15px!important}
    body.rp-theme-live-feed .rp-feed-toolbar{padding:14px!important}
    body.rp-theme-live-feed .rp-feed-item{grid-template-columns:1fr!important;min-height:0!important}
    body.rp-theme-live-feed .rp-feed-timeline{display:flex;align-items:center;gap:8px;padding:15px 18px 0!important;border-right:0!important;text-align:left!important;background:#fff!important}
    body.rp-theme-live-feed .rp-feed-timeline:after{display:none}
    body.rp-theme-live-feed .rp-feed-marker{position:static!important;order:-1;flex:0 0 11px}
    body.rp-theme-live-feed .rp-feed-date{margin:0!important}
    body.rp-theme-live-feed .rp-feed-content{padding:14px 18px 22px!important}
    body.rp-theme-live-feed .rp-feed-title{font-size:17px!important}
    body.rp-theme-live-feed .rp-feed-summary{font-size:13px!important}
    body.rp-theme-live-feed .rp-feed-footer{align-items:flex-start;flex-direction:column;gap:7px}
    body.rp-theme-article #content-wrap{width:calc(100% - 30px)}
    body.rp-theme-article .entry-content{font-size:16px}
}

@media(max-width:480px){
    body.researchpips-site #site-header-inner{width:calc(100% - 24px)!important}
    body.researchpips-site #site-logo #site-logo-inner a img{max-width:180px!important}
    body.rp-theme-live-feed .rp-feed-live-stack{justify-items:start!important}
    body.rp-theme-live-feed .rp-feed-glance{grid-template-columns:1fr 1fr!important}
    body.rp-theme-live-feed .rp-feed-filters{width:100%}
    body.rp-theme-live-feed .rp-feed-filters button{flex:1 1 auto;padding-right:9px!important;padding-left:9px!important;font-size:9px!important}
    body.rp-theme-live-feed .rp-feed-count{display:none}
}

@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    body.researchpips-site *,body.researchpips-site *:before,body.researchpips-site *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* =========================================================
   ResearchPips Institutional Theme 2.0.2
   Desktop hero viewport-fit system
   ========================================================= */

/* Remove any residual OceanWP boxed-layout canvas inset. */
html,
html body.researchpips-site,
html body.researchpips-site.boxed-layout,
html body.researchpips-site.boxed-main-layout {
    margin: 0 !important;
    padding: 0 !important;
}
body.researchpips-site #outer-wrap,
body.researchpips-site #wrap {
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
}

/* The desktop hero now occupies one complete opening viewport. The header is
   included in that visual composition, while all hero content stays visible. */
@media (min-width: 1025px) {
    body.rp-theme-home .rp-home-hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    body.rp-theme-home .rp-home-hero-inner {
        box-sizing: border-box;
        min-height: 100vh !important;
        min-height: 100svh !important;
        padding-top: 124px !important;
        padding-bottom: 28px !important;
        align-items: center;
        gap: clamp(38px, 3.5vw, 58px);
    }

    body.rp-theme-home.admin-bar .rp-home-hero-inner {
        min-height: calc(100vh - 32px) !important;
        min-height: calc(100svh - 32px) !important;
    }

    body.rp-theme-home .rp-home-hero-copy,
    body.rp-theme-home .rp-research-terminal {
        align-self: center;
    }

    body.rp-theme-home .rp-research-terminal {
        width: 100%;
        max-width: 680px;
    }
}

/* Standard laptop and shorter desktop screens: preserve readable type while
   removing excess vertical padding from the desk cards. */
@media (min-width: 1025px) and (max-height: 900px) {
    body.rp-theme-home #site-header-inner {
        min-height: 86px;
        padding-top: 12px !important;
        padding-bottom: 10px !important;
    }

    body.rp-theme-home #site-logo #site-logo-inner a img {
        width: min(var(--rp-logo-width), 220px) !important;
        max-width: 220px !important;
        max-height: 66px !important;
    }

    body.rp-theme-home .rp-home-hero-inner {
        padding-top: 106px !important;
        padding-bottom: 18px !important;
        grid-template-columns: minmax(0, .96fr) minmax(500px, 1.04fr);
        gap: clamp(34px, 3vw, 48px);
    }

    body.rp-theme-home .rp-home-hero-eyebrow {
        margin-bottom: 16px;
    }

    body.rp-theme-home .rp-home-hero h1 {
        font-size: clamp(50px, 4.45vw, 68px) !important;
        line-height: .96;
    }

    body.rp-theme-home .rp-home-hero-description {
        margin-top: 19px;
        font-size: 16px;
        line-height: 1.58;
    }

    body.rp-theme-home .rp-home-hero-actions {
        margin-top: 23px;
    }

    body.rp-theme-home .rp-home-hero-button {
        min-height: 48px;
        padding-right: 18px;
        padding-left: 18px;
    }

    body.rp-theme-home .rp-home-hero-coverage {
        margin-top: 14px;
    }

    body.rp-theme-home .rp-research-terminal {
        border-radius: 23px;
    }

    body.rp-theme-home .rp-terminal-topbar {
        padding: 15px 18px;
    }

    body.rp-theme-home .rp-terminal-body {
        padding: 14px 16px;
    }

    body.rp-theme-home .rp-terminal-block {
        padding: 15px 17px;
        border-radius: 15px;
    }

    body.rp-theme-home .rp-terminal-block + .rp-terminal-block {
        margin-top: 9px;
    }

    body.rp-theme-home .rp-terminal-block-heading {
        margin-bottom: 10px;
        font-size: 10px;
    }

    body.rp-theme-home .rp-terminal-market-update h2 {
        font-size: 17px;
        line-height: 1.34;
        -webkit-line-clamp: 2;
    }

    body.rp-theme-home .rp-terminal-market-update p {
        margin-top: 7px;
        font-size: 12.5px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    body.rp-theme-home .rp-terminal-feed-cta {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        gap: 11px;
        margin: 9px 0;
        padding: 10px 13px;
        border-radius: 13px;
    }

    body.rp-theme-home .rp-terminal-feed-cta-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    body.rp-theme-home .rp-terminal-feed-cta-copy strong {
        font-size: 13px;
    }

    body.rp-theme-home .rp-terminal-feed-cta-copy small {
        margin-top: 2px;
        font-size: 9.5px;
        line-height: 1.35;
    }

    body.rp-theme-home .rp-terminal-research-update h3 {
        font-size: 14.5px;
        line-height: 1.38;
        -webkit-line-clamp: 2;
    }

    body.rp-theme-home .rp-terminal-link {
        margin-top: 9px;
        font-size: 10.5px;
    }

    body.rp-theme-home .rp-terminal-metrics {
        gap: 8px;
        margin-top: 9px;
    }

    body.rp-theme-home .rp-terminal-metrics > div {
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 9px;
        padding: 10px;
        border-radius: 12px;
    }

    body.rp-theme-home .rp-terminal-metric-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    body.rp-theme-home .rp-terminal-metric-icon svg {
        width: 18px;
        height: 18px;
    }

    body.rp-theme-home .rp-terminal-metrics strong {
        font-size: 11.5px;
    }

    body.rp-theme-home .rp-terminal-metrics small {
        margin-top: 2px;
        font-size: 8.8px;
        line-height: 1.35;
    }

    body.rp-theme-home .rp-terminal-footer {
        padding: 11px 18px;
        font-size: 9.5px;
        line-height: 1.4;
    }
}

/* Extra-short laptop screens such as 1366×768. */
@media (min-width: 1025px) and (max-height: 780px) {
    body.rp-theme-home .rp-home-hero-inner {
        padding-top: 96px !important;
        padding-bottom: 14px !important;
    }

    body.rp-theme-home .rp-home-hero h1 {
        font-size: clamp(46px, 4vw, 60px) !important;
    }

    body.rp-theme-home .rp-home-hero-description {
        margin-top: 15px;
        font-size: 15px;
    }

    body.rp-theme-home .rp-home-hero-actions {
        margin-top: 18px;
    }

    body.rp-theme-home .rp-home-hero-coverage {
        margin-top: 10px;
        font-size: 11px;
    }

    body.rp-theme-home .rp-terminal-topbar {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    body.rp-theme-home .rp-terminal-body {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    body.rp-theme-home .rp-terminal-block {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.rp-theme-home .rp-terminal-footer {
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

/* Tablets and phones should scroll naturally rather than being forced into a
   single viewport, because the two columns stack vertically. */
@media (max-width: 1024px) {
    body.rp-theme-home .rp-home-hero,
    body.rp-theme-home .rp-home-hero-inner {
        min-height: 0 !important;
    }
}


/* =========================================================
   ResearchPips Institutional Theme 2.0.3
   Homepage logo scale + compact sticky header
   ========================================================= */

/* Smoothly transition from a larger homepage brand mark to a compact
   institutional navigation bar after the visitor begins scrolling. */
body.rp-theme-home #site-header,
body.rp-theme-home #site-header-inner,
body.rp-theme-home #site-logo,
body.rp-theme-home #site-logo #site-logo-inner,
body.rp-theme-home #site-logo #site-logo-inner a,
body.rp-theme-home #site-logo #site-logo-inner a img,
body.rp-theme-home #site-navigation-wrap,
body.rp-theme-home #site-navigation-wrap .dropdown-menu>li>a {
    transition:
        width .28s ease,
        max-width .28s ease,
        max-height .28s ease,
        min-height .28s ease,
        padding .28s ease,
        line-height .28s ease,
        background .25s ease,
        box-shadow .25s ease,
        backdrop-filter .25s ease,
        transform .28s ease;
}

@media (min-width: 960px) {
    /* Larger, more visible logo only in the opening homepage state. */
    body.rp-theme-home:not(.rp-header-scrolled) #site-header-inner {
        min-height: 108px;
        padding-top: 16px !important;
        padding-bottom: 13px !important;
    }

    body.rp-theme-home:not(.rp-header-scrolled) #site-logo #site-logo-inner a img {
        width: var(--rp-home-logo-width) !important;
        max-width: var(--rp-home-logo-width) !important;
        max-height: 84px !important;
    }

    /* Compact sticky bar once scrolling begins. */
    body.rp-theme-home.rp-header-scrolled #site-header-inner {
        min-height: 64px;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    body.rp-theme-home.rp-header-scrolled #site-logo #site-logo-inner a img {
        width: var(--rp-sticky-logo-width) !important;
        max-width: var(--rp-sticky-logo-width) !important;
        max-height: 48px !important;
    }

    body.rp-theme-home.rp-header-scrolled #site-navigation-wrap .dropdown-menu>li>a {
        line-height: 38px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 13px !important;
    }

    body.rp-theme-home.rp-header-scrolled #site-navigation-wrap .dropdown-menu>li>a:after {
        right: 14px;
        left: 14px;
        bottom: 1px;
    }

    /* Account for the larger opening logo while preserving the one-screen hero. */
    body.rp-theme-home:not(.rp-header-scrolled) .rp-home-hero-inner {
        padding-top: 138px !important;
    }
}

/* Keep the larger logo sensible on shorter laptop displays. */
@media (min-width: 1025px) and (max-height: 900px) {
    body.rp-theme-home:not(.rp-header-scrolled) #site-header-inner {
        min-height: 98px;
        padding-top: 11px !important;
        padding-bottom: 9px !important;
    }

    body.rp-theme-home:not(.rp-header-scrolled) #site-logo #site-logo-inner a img {
        width: min(var(--rp-home-logo-width), 252px) !important;
        max-width: 252px !important;
        max-height: 74px !important;
    }

    body.rp-theme-home:not(.rp-header-scrolled) .rp-home-hero-inner {
        padding-top: 116px !important;
    }
}

@media (min-width: 1025px) and (max-height: 780px) {
    body.rp-theme-home:not(.rp-header-scrolled) #site-logo #site-logo-inner a img {
        width: min(var(--rp-home-logo-width), 236px) !important;
        max-width: 236px !important;
        max-height: 68px !important;
    }

    body.rp-theme-home:not(.rp-header-scrolled) .rp-home-hero-inner {
        padding-top: 102px !important;
    }
}

/* Tablet/mobile retains a normal compact header to protect menu space. */
@media (max-width: 959px) {
    body.rp-theme-home #site-logo #site-logo-inner a img {
        width: min(var(--rp-logo-width), 210px) !important;
        max-width: 210px !important;
    }
}
