/* ==========================================================
   HORMUUD UNIVERSITY
   DEPUTY VICE-CHANCELLOR
   RESEARCH & INNOVATION MESSAGE

   CONCEPT:
   THE RESEARCH LEADERSHIP LETTER

   OFFICIAL HU COLOR SYSTEM
   ========================================================== */


.rim-page {
    /* Hormuud University identity */
    --hu-green: #148154;
    --hu-green-dark: #0a3420;
    --hu-green-soft: #E8F3EE;

    --hu-blue: #2C85B7;
    --hu-blue-dark: #236E98;
    --hu-blue-soft: #EAF4F9;

    --hu-black: #0E1511;
    --hu-text: #202522;
    --hu-text-soft: #606862;
    --hu-muted: #7B857E;

    --hu-white: #FFFFFF;
    --hu-paper: #F8FAF9;
    --hu-cream: #F1F5F2;

    --hu-line: #D9E0DC;
    --hu-line-dark: #C8D1CB;

    --rim-display: "Fraunces", Georgia, serif;
    --rim-body: "Inter", Arial, sans-serif;
    --rim-mono: "DM Mono", monospace;

    width: 100%;

    color:
        var(--hu-text);

    background:
        var(--hu-paper);

    font-family:
        var(--rim-body);

    font-size: 17px;
    line-height: 1.75;

    -webkit-font-smoothing:
        antialiased;

    overflow: visible;
}


.rim-page *,
.rim-page *::before,
.rim-page *::after {
    box-sizing: border-box;
}


.rim-page button,
.rim-page a {
    font: inherit;
}


.rim-shell {
    width:
        min(
            1260px,
            calc(100% - 56px)
        );

    margin-inline: auto;
}


.rim-svg-library {
    position: absolute;

    width: 0;
    height: 0;

    overflow: hidden;
}


/* ==========================================================
   COMMON
   ========================================================== */

.rim-kicker {
    display: block;

    color:
        var(--hu-green);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;
}


/* ==========================================================
   HERO
   ========================================================== */

.rim-hero {
    position: relative;

    overflow: hidden;

    background:
        var(--hu-white);

    border-bottom:
        1px solid
        var(--hu-line-dark);

    isolation: isolate;
}


.rim-hero::before {
    content: "MESSAGE";

    position: absolute;

    z-index: -1;

    left: -20px;
    bottom: 100px;

    color:
        rgba(20,129,84,.025);

    font-family:
        var(--rim-display);

    font-size:
        clamp(
            150px,
            22vw,
            320px
        );

    font-weight: 600;

    line-height: .8;

    letter-spacing: -.07em;

    pointer-events: none;
}


/* ==========================================================
   TOPBAR
   ========================================================== */

.rim-topbar {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-bottom:
        1px solid
        var(--hu-line);
}


.rim-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}


.rim-brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color:
        var(--hu-white);

    background:
        var(--hu-green);

    font-family:
        var(--rim-display);

    font-size: 15px;
    font-weight: 600;
}


.rim-brand strong {
    display: block;

    color:
        var(--hu-green-dark);

    font-size: 13px;
}


.rim-brand small {
    display: block;

    margin-top: 2px;

    color:
        var(--hu-muted);

    font-size: 12px;
}


.rim-top-meta {
    display: flex;
    align-items: center;

    gap: 12px;
}


.rim-top-meta span {
    color:
        var(--hu-muted);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-top-meta i {
    width: 50px;
    height: 1px;

    background:
        var(--hu-line-dark);
}


/* ==========================================================
   HERO GRID
   ========================================================== */

.rim-hero-grid {
    min-height: 730px;

    display: grid;

    grid-template-columns:
        135px
        minmax(0, 1fr)
        minmax(360px, 440px);

    align-items: center;

    gap: 55px;

    padding:
        72px
        0
        68px;
}


/* ==========================================================
   HERO INDEX
   ========================================================== */

.rim-hero-index {
    align-self: start;

    padding-top: 25px;
}


.rim-hero-index > span {
    color:
        var(--hu-blue);

    font-family:
        var(--rim-mono);

    font-size: 13px;
}


.rim-hero-index > p {
    margin:
        13px
        0
        0;

    color:
        var(--hu-muted);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.5;

    text-transform: uppercase;
}


/* ==========================================================
   HERO COPY
   ========================================================== */

.rim-hero-copy h1 {
    max-width: 760px;

    margin:
        17px
        0
        0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size:
        clamp(
            65px,
            7.5vw,
            100px
        );

    font-weight: 500;

    line-height: .89;

    letter-spacing: -.058em;
}


.rim-hero-copy h1 span {
    display: block;

    color:
        var(--hu-blue);
}


.rim-hero-intro {
    max-width: 620px;

    margin:
        31px
        0
        0;

    color:
        var(--hu-text-soft);

    font-size: 18px;

    line-height: 1.8;
}


/* ==========================================================
   READ ACTION
   ========================================================== */

.rim-read-action {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    margin-top: 34px;

    padding: 0;

    color:
        var(--hu-green-dark);

    background:
        transparent;

    border: 0;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;
}


.rim-read-action > span {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    color:
        var(--hu-white);

    background:
        var(--hu-green);

    border-radius: 50%;

    transition:
        background
        180ms ease,
        transform
        220ms ease;
}


.rim-read-action:hover > span {
    background:
        var(--hu-blue);

    transform:
        translateY(4px);
}


.rim-read-action svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.8;
}


/* ==========================================================
   PORTRAIT
   ========================================================== */

.rim-portrait-wrap {
    position: relative;

    align-self: end;

    padding-bottom: 10px;
}


.rim-portrait-reference {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 13px;

    color:
        var(--hu-muted);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-portrait-reference i {
    height: 1px;

    flex: 1;

    background:
        var(--hu-line-dark);
}


.rim-portrait-reference strong {
    color:
        var(--hu-blue);

    font-weight: 500;
}


.rim-portrait-frame {
    position: relative;

    min-height: 460px;

    overflow: hidden;

    background:
        var(--hu-green-soft);

    border:
        1px solid
        var(--hu-line-dark);
}


.rim-portrait-frame img {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transform:
        translateX(-50%)
        scale(1.015);

    transition:
        transform
        180ms ease-out;

    will-change:
        transform;
}


.rim-portrait-accent {
    position: absolute;

    z-index: 3;

    top: 0;

    width: 8px;
    height: 100%;
}


.rim-portrait-accent--green {
    left: 0;

    background:
        var(--hu-green);
}


.rim-portrait-accent--blue {
    right: 0;

    background:
        var(--hu-blue);
}


.rim-portrait-caption {
    position: absolute;

    z-index: 5;

    left: 22px;
    right: 22px;
    bottom: 18px;

    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        0
        15px;

    color:
        var(--hu-white);

    background:
        rgba(15,104,67,.88);

    backdrop-filter:
        blur(7px);
}


.rim-portrait-caption span,
.rim-portrait-caption strong {
    font-family:
        var(--rim-mono);

    font-size: 10px;
}


.rim-portrait-caption strong {
    text-align: right;

    font-weight: 500;
}


/* ==========================================================
   PERSON
   ========================================================== */

.rim-person {
    padding-top: 20px;
}


.rim-person h2 {
    margin: 0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size: 30px;
    font-weight: 500;

    line-height: 1.1;
}


.rim-person p {
    margin:
        8px
        0
        0;

    color:
        var(--hu-blue-dark);

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;
}


/* ==========================================================
   TOPIC RAIL
   ========================================================== */

.rim-topic-rail {
    min-height: 88px;

    display: flex;
    align-items: center;

    gap: 11px;

    overflow-x: auto;

    border-top:
        1px solid
        var(--hu-line);

    scrollbar-width: none;
}


.rim-topic-rail::-webkit-scrollbar {
    display: none;
}


.rim-topic-rail span {
    flex: none;

    color:
        var(--hu-muted);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-topic-rail span:nth-of-type(even) {
    color:
        var(--hu-blue);
}


.rim-topic-rail i {
    min-width: 30px;
    height: 1px;

    flex: 1;

    background:
        var(--hu-line-dark);
}


/* ==========================================================
   HERO LINES
   ========================================================== */

.rim-hero-lines {
    position: absolute;

    z-index: -1;

    left: 0;
    right: 0;
    bottom: 40px;

    width: 100%;
    height: 380px;

    pointer-events: none;
}


.rim-trace {
    fill: none;

    stroke-width: 2;

    stroke-dasharray:
        8
        13;

    stroke-dashoffset: 0;

    animation:
        rimTraceMove
        24s
        linear
        infinite;
}


.rim-trace--green {
    stroke:
        rgba(20,129,84,.13);
}


.rim-trace--blue {
    stroke:
        rgba(44,133,183,.13);

    animation-duration:
        31s;

    animation-direction:
        reverse;
}


@keyframes rimTraceMove {

    to {
        stroke-dashoffset: -300;
    }

}


/* ==========================================================
   MESSAGE
   ========================================================== */

.rim-message {
    padding:
        130px
        0
        145px;

    background:
        var(--hu-paper);
}


.rim-message-layout {
    display: grid;

    grid-template-columns:
        180px
        minmax(0, 850px);

    justify-content: center;

    gap: 80px;
}


/* ==========================================================
   READING RAIL
   ========================================================== */

.rim-reading-sticky {
    position: sticky;

    top: 110px;

    display: grid;

    grid-template-columns:
        50px
        2px
        1fr;

    gap: 15px;

    min-height: 390px;
}


.rim-reading-label {
    color:
        var(--hu-blue);

    font-family:
        var(--rim-mono);

    font-size: 11px;

    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);
}


.rim-reading-line {
    position: relative;

    width: 2px;

    height: 360px;

    background:
        var(--hu-line);
}


.rim-reading-progress {
    position: absolute;

    left: 0;
    top: 0;

    width: 2px;
    height: 0;

    background: var(--hu-green);

    box-shadow: 0 0 0 1px var(--hu-blue);

    transition:
        height
        80ms linear;
}


/* ==========================================================
   READING POINTS
   ========================================================== */

.rim-reading-points {
    display: flex;
    flex-direction: column;

    justify-content: space-between;

    height: 360px;
}


.rim-reading-points button {
    padding: 0;

    text-align: left;

    color:
        var(--hu-muted);

    background:
        transparent;

    border: 0;

    cursor: pointer;

    transition:
        color
        180ms ease,
        transform
        180ms ease;
}


.rim-reading-points button:hover,
.rim-reading-points button.is-active {
    color:
        var(--hu-green-dark);

    transform:
        translateX(4px);
}


.rim-reading-points span {
    display: block;

    color:
        var(--hu-blue);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-reading-points strong {
    display: block;

    margin-top: 4px;

    font-size: 12px;
}


/* ==========================================================
   LETTER
   ========================================================== */

.rim-letter {
    min-width: 0;
}


/* ==========================================================
   LETTER HEADER
   ========================================================== */

.rim-letter-header {
    padding-bottom: 47px;

    border-bottom:
        1px solid
        var(--hu-line-dark);
}


.rim-letter-header h2 {
    max-width: 790px;

    margin:
        15px
        0
        0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size:
        clamp(
            50px,
            6vw,
            74px
        );

    font-weight: 500;

    line-height: .99;

    letter-spacing: -.05em;
}


.rim-letter-header h2 span {
    display: block;

    color:
        var(--hu-blue);
}


.rim-letter-rule {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-top: 33px;

    color:
        var(--hu-muted);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-letter-rule span {
    color:
        var(--hu-green);
}


.rim-letter-rule strong {
    color:
        var(--hu-blue);

    font-weight: 500;
}


.rim-letter-rule i {
    height: 1px;

    flex: 1;

    background:
        var(--hu-line-dark);
}


/* ==========================================================
   LETTER SECTION
   ========================================================== */

.rim-letter-section {
    display: grid;

    grid-template-columns:
        55px
        minmax(0, 1fr);

    gap: 30px;

    padding:
        55px
        0;

    border-bottom:
        1px solid
        var(--hu-line);
}


.rim-paragraph-number {
    color:
        var(--hu-blue);

    font-family:
        var(--rim-mono);

    font-size: 12px;

    padding-top: 8px;
}


.rim-letter-section p {
    margin: 0;

    color:
        var(--hu-text);

    font-family:
        var(--rim-display);

    font-size:
        clamp(
            23px,
            2.4vw,
            30px
        );

    font-weight: 400;

    line-height: 1.62;

    letter-spacing: -.012em;
}


.rim-dropcap::first-letter {
    float: left;

    margin:
        5px
        10px
        0
        0;

    color:
        var(--hu-green);

    font-family:
        var(--rim-display);

    font-size: 82px;

    line-height: .78;
}


/* ==========================================================
   PULL QUOTE
   ========================================================== */

.rim-pullquote {
    position: relative;

    display: grid;

    grid-template-columns:
        65px
        1fr;

    gap: 22px;

    margin:
        65px
        0;

    padding:
        34px;

    background:
        var(--hu-blue-soft);

    border-left:
        5px solid
        var(--hu-blue);
}


.rim-pullquote > span {
    color:
        var(--hu-blue);

    font-family:
        var(--rim-display);

    font-size: 76px;

    line-height: .8;
}


.rim-pullquote p {
    max-width: 690px;

    margin: 0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size:
        clamp(
            28px,
            3vw,
            40px
        );

    font-weight: 500;

    line-height: 1.2;
}


/* ==========================================================
   PRIORITY STRIP
   ========================================================== */

.rim-priority-strip {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    margin:
        60px
        0;

    border:
        1px solid
        var(--hu-line-dark);
}


.rim-priority-strip > div {
    min-height: 110px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding:
        17px;

    background:
        var(--hu-white);

    border-right:
        1px solid
        var(--hu-line);

    border-bottom:
        1px solid
        var(--hu-line);
}


.rim-priority-strip > div:nth-child(3n) {
    border-right: 0;
}


.rim-priority-strip > div:nth-last-child(-n+3) {
    border-bottom: 0;
}


.rim-priority-strip span {
    color:
        var(--hu-blue);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-priority-strip strong {
    color:
        var(--hu-green-dark);

    font-size: 14px;
}


/* ==========================================================
   THANK YOU
   ========================================================== */

.rim-thank-you {
    padding:
        50px
        0
        20px;
}


.rim-thank-you p {
    margin: 0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size: 40px;
}


/* ==========================================================
   SIGNATURE
   ========================================================== */

.rim-signature {
    display: grid;

    grid-template-columns:
        80px
        1fr
        auto;

    align-items: center;

    gap: 25px;

    margin-top: 30px;

    padding:
        32px;

    background:
        var(--hu-green-soft);

    border-top:
        4px solid
        var(--hu-green);
}


.rim-signature-mark {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    color:
        var(--hu-white);

    background:
        var(--hu-green);

    font-family:
        var(--rim-display);

    font-size: 25px;
}


.rim-signature-copy > span {
    color:
        var(--hu-blue);

    font-family:
        var(--rim-mono);

    font-size: 11px;
}


.rim-signature-copy h3 {
    margin:
        7px
        0
        0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size: 28px;
    font-weight: 500;
}


.rim-signature-copy p {
    margin:
        5px
        0
        0;

    color:
        var(--hu-text-soft);

    font-size: 13px;
}


.rim-signature-copy strong {
    display: block;

    margin-top: 6px;

    color:
        var(--hu-green);

    font-size: 13px;
}


/* ==========================================================
   EMAIL
   ========================================================== */

.rim-email {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding:
        11px
        14px;

    color:
        var(--hu-blue-dark);

    background:
        var(--hu-white);

    border:
        1px solid
        #C8D1CB;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        color
        180ms ease,
        background
        180ms ease;
}


.rim-email:hover {
    color:
        var(--hu-white);

    background:
        var(--hu-blue);
}


.rim-email svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.6;
}


/* ==========================================================
   CLOSING
   ========================================================== */

.rim-closing {
    padding:
        105px
        0;

    background:
        var(--hu-green-soft);

    border-top:
        1px solid
        #C8D1CB;
}


.rim-closing-grid {
    display: grid;

    grid-template-columns:
        220px
        1fr;

    align-items: center;

    gap: 75px;
}


.rim-closing-index {
    width: 180px;
    height: 180px;

    display: grid;
    place-items: center;

    color:
        var(--hu-white);

    background: var(--hu-green);

    border-right: 7px solid var(--hu-blue);
}


.rim-closing-index span {
    font-family:
        var(--rim-display);

    font-size: 45px;
}


.rim-closing-copy h2 {
    max-width: 850px;

    margin:
        15px
        0
        0;

    color:
        var(--hu-green-dark);

    font-family:
        var(--rim-display);

    font-size:
        clamp(
            45px,
            6vw,
            70px
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -.047em;
}


.rim-closing-copy h2 span {
    display: block;

    color:
        var(--hu-blue);
}


.rim-closing-copy button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-top: 30px;

    padding:
        0
        17px;

    color:
        var(--hu-white);

    background:
        var(--hu-green);

    border:
        1px solid
        var(--hu-green);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;
}


.rim-closing-copy button:hover {
    background:
        var(--hu-blue);

    border-color:
        var(--hu-blue);
}


.rim-closing-copy svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.8;
}


/* ==========================================================
   REVEAL
   ========================================================== */

.rim-page.js-ready
.rim-reveal {
    opacity: 0;

    transform:
        translateY(20px);

    transition:
        opacity
        760ms ease,
        transform
        760ms
        cubic-bezier(
            .16,
            1,
            .3,
            1
        );
}


.rim-page.js-ready
.rim-reveal.is-visible {
    opacity: 1;

    transform: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1040px) {

    .rim-hero-grid {
        grid-template-columns:
            95px
            1fr;

        gap: 40px;
    }


    .rim-portrait-wrap {
        grid-column:
            2;

        max-width: 560px;
    }


    .rim-message-layout {
        grid-template-columns:
            140px
            minmax(0, 1fr);

        gap: 45px;
    }


    .rim-signature {
        grid-template-columns:
            70px
            1fr;
    }


    .rim-email {
        grid-column:
            2;

        justify-self: start;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    .rim-shell {
        width:
            min(
                100% - 30px,
                1260px
            );
    }


    .rim-top-meta {
        display: none;
    }


    .rim-hero-grid {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 35px;

        padding:
            55px
            0;
    }


    .rim-hero-index {
        display: flex;
        align-items: center;

        gap: 15px;

        padding: 0;
    }


    .rim-hero-index > p {
        margin: 0;
    }


    .rim-hero-copy h1 {
        font-size:
            clamp(
                54px,
                16vw,
                77px
            );
    }


    .rim-hero-intro {
        font-size: 16px;
    }


    .rim-portrait-wrap {
        grid-column: auto;

        max-width: none;
    }


    .rim-portrait-frame {
        min-height: 440px;
    }


    .rim-topic-rail {
        min-height: 73px;
    }


    .rim-message,
    .rim-closing {
        padding:
            82px
            0;
    }


    .rim-message-layout {
        grid-template-columns: 1fr;
    }


    .rim-reading-rail {
        display: none;
    }


    .rim-letter-header h2 {
        font-size: 42px;
    }


    .rim-letter-section {
        grid-template-columns:
            36px
            1fr;

        gap: 15px;

        padding:
            42px
            0;
    }


    .rim-letter-section p {
        font-size: 21px;
    }


    .rim-dropcap::first-letter {
        font-size: 65px;
    }


    .rim-pullquote {
        grid-template-columns: 1fr;

        padding: 25px;
    }


    .rim-pullquote > span {
        font-size: 52px;
    }


    .rim-pullquote p {
        font-size: 29px;
    }


    .rim-priority-strip {
        grid-template-columns:
            1fr
            1fr;
    }


    .rim-priority-strip > div,
    .rim-priority-strip > div:nth-child(3n),
    .rim-priority-strip > div:nth-last-child(-n+3) {
        border-right:
            1px solid
            var(--hu-line);

        border-bottom:
            1px solid
            var(--hu-line);
    }


    .rim-priority-strip > div:nth-child(2n) {
        border-right: 0;
    }


    .rim-priority-strip > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }


    .rim-signature {
        grid-template-columns: 1fr;

        align-items: start;
    }


    .rim-email {
        grid-column: auto;
    }


    .rim-closing-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .rim-closing-index {
        width: 120px;
        height: 120px;
    }


    .rim-closing-index span {
        font-size: 33px;
    }


    .rim-closing-copy h2 {
        font-size: 41px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 460px) {

    .rim-shell {
        width:
            min(
                100% - 22px,
                1260px
            );
    }


    .rim-brand small {
        display: none;
    }


    .rim-portrait-frame {
        min-height: 380px;
    }


    .rim-portrait-caption {
        left: 12px;
        right: 12px;

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 2px;
    }


    .rim-portrait-caption strong {
        text-align: left;
    }


    .rim-priority-strip {
        grid-template-columns: 1fr;
    }


    .rim-priority-strip > div,
    .rim-priority-strip > div:nth-child(2n),
    .rim-priority-strip > div:nth-last-child(-n+2) {
        border-right: 0;

        border-bottom:
            1px solid
            var(--hu-line);
    }


    .rim-priority-strip > div:last-child {
        border-bottom: 0;
    }

}


/* ==========================================================
   SCROLL SAFETY
   ========================================================== */

html,
body {
    height: auto !important;

    min-height: 100% !important;

    overflow-y: auto !important;

    overflow-x: hidden;
}


.rim-page {
    height: auto !important;

    max-height: none !important;

    overflow: visible !important;
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .rim-page *,
    .rim-page *::before,
    .rim-page *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }


    .rim-page.js-ready
    .rim-reveal {
        opacity: 1;

        transform: none;
    }

}

/* ==========================================================
   HORMUUD UNIVERSITY — RESEARCH & INNOVATION MESSAGE
   DARK MODE 2026
   ========================================================== */

html[data-theme="dark"] .rim-page {
    --hu-green: #66C59B;
    --hu-green-dark: #86D5B2;
    --hu-green-soft: #183A2C;

    --hu-blue: #72BCE3;
    --hu-blue-dark: #97D1EC;
    --hu-blue-soft: #173442;

    --hu-black: #09100C;
    --hu-text: #EDF3EF;
    --hu-text-soft: #A9B5AE;
    --hu-muted: #7F8B84;

    --hu-white: #151E18;
    --hu-paper: #0E1511;
    --hu-cream: #18241D;

    --hu-line: #2D3A32;
    --hu-line-dark: #3A493F;

    color: var(--hu-text) !important;
    background: var(--hu-paper) !important;
}

/* Hero */
html[data-theme="dark"] .rim-page .rim-hero {
    background: #0E1511 !important;
    border-bottom-color: var(--hu-line-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-hero::before {
    color: rgba(102,197,155,.035) !important;
}
html[data-theme="dark"] .rim-page .rim-topbar,
html[data-theme="dark"] .rim-page .rim-topic-rail {
    border-color: var(--hu-line) !important;
}
html[data-theme="dark"] .rim-page .rim-brand-mark {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
}
html[data-theme="dark"] .rim-page .rim-brand strong,
html[data-theme="dark"] .rim-page .rim-hero-copy h1,
html[data-theme="dark"] .rim-page .rim-letter-header h2,
html[data-theme="dark"] .rim-page .rim-signature-copy h3,
html[data-theme="dark"] .rim-page .rim-closing-copy h2 {
    color: var(--hu-green-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-hero-copy h1 span,
html[data-theme="dark"] .rim-page .rim-letter-header h2 span,
html[data-theme="dark"] .rim-page .rim-closing-index > span {
    color: var(--hu-green-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-brand small,
html[data-theme="dark"] .rim-page .rim-top-meta,
html[data-theme="dark"] .rim-page .rim-hero-index p,
html[data-theme="dark"] .rim-page .rim-topic-rail {
    color: var(--hu-muted) !important;
}
html[data-theme="dark"] .rim-page .rim-kicker,
html[data-theme="dark"] .rim-page .rim-read-action {
    color: var(--hu-green) !important;
}
html[data-theme="dark"] .rim-page .rim-read-action > span {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
}

/* Portrait */
html[data-theme="dark"] .rim-page .rim-portrait-frame {
    background: var(--hu-green-soft) !important;
    border-color: var(--hu-line-dark) !important;
    box-shadow: 0 24px 55px rgba(0,0,0,.24) !important;
}
html[data-theme="dark"] .rim-page .rim-portrait-frame img {
    filter: none !important;
}
html[data-theme="dark"] .rim-page .rim-portrait-caption {
    color: #FFFFFF !important;
    background: rgba(15,104,67,.90) !important;
}
html[data-theme="dark"] .rim-page .rim-person h2 {
    color: var(--hu-green-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-person p,
html[data-theme="dark"] .rim-page .rim-hero-intro {
    color: var(--hu-text-soft) !important;
}

/* Message */
html[data-theme="dark"] .rim-page .rim-message {
    background: #0E1511 !important;
}
html[data-theme="dark"] .rim-page .rim-reading-sticky {
    background: rgba(14,21,17,.96) !important;
    border-color: var(--hu-line-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-reading-line,
html[data-theme="dark"] .rim-page .rim-letter-rule i {
    background: var(--hu-line-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-reading-progress {
    background: var(--hu-green) !important;
    box-shadow: 0 0 0 1px var(--hu-blue) !important;
}
html[data-theme="dark"] .rim-page .rim-reading-points button {
    color: var(--hu-muted) !important;
}
html[data-theme="dark"] .rim-page .rim-reading-points button:hover,
html[data-theme="dark"] .rim-page .rim-reading-points button.is-active {
    color: var(--hu-green-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-letter-header,
html[data-theme="dark"] .rim-page .rim-letter-section {
    border-color: var(--hu-line) !important;
}
html[data-theme="dark"] .rim-page .rim-letter-section p {
    color: var(--hu-text) !important;
}

/* Pull quote / priority / thanks */
html[data-theme="dark"] .rim-page .rim-pullquote {
    background: var(--hu-blue-soft) !important;
    border-left-color: var(--hu-blue) !important;
}
html[data-theme="dark"] .rim-page .rim-pullquote p {
    color: var(--hu-green-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-priority-strip {
    background: var(--hu-line-dark) !important;
    border-color: var(--hu-line-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-priority-strip > div {
    background: #151E18 !important;
}
html[data-theme="dark"] .rim-page .rim-priority-strip span {
    color: var(--hu-blue) !important;
}
html[data-theme="dark"] .rim-page .rim-priority-strip strong {
    color: var(--hu-green-dark) !important;
}
html[data-theme="dark"] .rim-page .rim-thank-you {
    border-color: var(--hu-line) !important;
}
html[data-theme="dark"] .rim-page .rim-thank-you p {
    color: var(--hu-text-soft) !important;
}

/* Signature */
html[data-theme="dark"] .rim-page .rim-signature {
    background: var(--hu-green-soft) !important;
    border-color: #315944 !important;
}
html[data-theme="dark"] .rim-page .rim-signature-mark {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
}
html[data-theme="dark"] .rim-page .rim-signature-copy p {
    color: var(--hu-text-soft) !important;
}
html[data-theme="dark"] .rim-page .rim-email {
    color: var(--hu-blue-dark) !important;
    background: #151E18 !important;
    border-color: #315466 !important;
}
html[data-theme="dark"] .rim-page .rim-email:hover,
html[data-theme="dark"] .rim-page .rim-email:focus-visible {
    color: #0E1511 !important;
    background: var(--hu-blue) !important;
}

/* Closing */
html[data-theme="dark"] .rim-page .rim-closing {
    background: #18241D !important;
}
html[data-theme="dark"] .rim-page .rim-closing-index {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
    border-right-color: var(--hu-blue) !important;
}
html[data-theme="dark"] .rim-page .rim-closing-copy p {
    color: var(--hu-text-soft) !important;
}
html[data-theme="dark"] .rim-page .rim-closing-copy button {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
}
html[data-theme="dark"] .rim-page .rim-closing-copy button:hover,
html[data-theme="dark"] .rim-page .rim-closing-copy button:focus-visible {
    background: var(--hu-blue) !important;
}

.rim-page,
.rim-page .rim-hero,
.rim-page .rim-portrait-frame,
.rim-page .rim-message,
.rim-page .rim-reading-sticky,
.rim-page .rim-pullquote,
.rim-page .rim-priority-strip > div,
.rim-page .rim-signature,
.rim-page .rim-email,
.rim-page .rim-closing,
.rim-page .rim-closing-index {
    transition: background-color .24s ease, color .24s ease, border-color .24s ease;
}

@media (prefers-reduced-motion: reduce) {
    .rim-page,
    .rim-page .rim-hero,
    .rim-page .rim-portrait-frame,
    .rim-page .rim-message,
    .rim-page .rim-reading-sticky,
    .rim-page .rim-pullquote,
    .rim-page .rim-priority-strip > div,
    .rim-page .rim-signature,
    .rim-page .rim-email,
    .rim-page .rim-closing,
    .rim-page .rim-closing-index {
        transition: none !important;
    }
}
