/********** Template CSS **********/
:root {
    /* Softer, warmer accent than the template's raw #FF6F0F. */
    --primary: #E2680E;
    --primary-soft: #F4A259;
    --secondary: #FBF1E7;
    --light: #F7F5F2;
    --dark: #0B2B33;
    --deep: #071E24;
    --ink: #14343C;
    --muted: #5F7178;
    --hairline: rgba(11, 43, 51, .10);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 29, 35, .8);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: var(--primary);
}



/*** ------------------------------------------------------------------
     CheAI Research Inc. — custom additions on top of the ChariTeam base
     ------------------------------------------------------------------ */

/* --- Typography rhythm ------------------------------------------------ */

body { color: var(--ink); }

.section-label {
    display: inline-block;
    font-family: 'Saira', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.1rem;
}

/* Two-line display heading: quiet first line, strong second line. */
.stacked-title {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin-bottom: 1.25rem;
}
.stacked-title .lead-line {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: .62em;
    letter-spacing: .01em;
    margin-bottom: .3rem;
}
.stacked-title .main-line { display: block; color: var(--dark); }

.section-intro {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 62ch;
}

/* Generous, consistent vertical rhythm. */
.section-pad { padding-top: 6.5rem; padding-bottom: 6.5rem; }
@media (max-width: 768px) {
    .section-pad { padding-top: 4rem; padding-bottom: 4rem; }
}

.rule-accent {
    width: 54px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 1.6rem;
}
.rule-accent.center { margin-left: auto; margin-right: auto; }

/* --- Hero ------------------------------------------------------------- */

.hero-slide {
    position: relative;
    height: 640px;
    overflow: hidden;
    background-color: var(--deep);
}
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(7,30,36,.94) 0%, rgba(7,30,36,.80) 42%, rgba(7,30,36,.42) 100%);
}
@media (max-width: 992px) {
    .hero-slide { height: 560px; }
    .hero-slide::after { background: linear-gradient(180deg, rgba(7,30,36,.86), rgba(7,30,36,.94)); }
}

.carousel-caption { z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Saira', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--primary-soft);
    margin-bottom: 1.1rem;
}
.hero-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--primary-soft);
}

/* --- Figure / image cards -------------------------------------------- */

.figure-frame {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--light);
}
.figure-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.2,.6,.3,1);
}
.figure-frame:hover img { transform: scale(1.04); }
.figure-frame.tall { aspect-ratio: 4 / 5; }
.figure-frame.wide { aspect-ratio: 3 / 2; }
.figure-frame.square { aspect-ratio: 1 / 1; }

/* Stat plate that overlaps an image, for the about composition. */
.stat-plate {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 40px rgba(11,43,51,.14);
    border-bottom: 3px solid var(--primary);
}
.stat-plate .stat-value {
    font-family: 'Saira', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-plate .stat-label {
    font-size: .76rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .35rem;
}

/* --- Program cards ---------------------------------------------------- */

.program-card {
    background: #FFFFFF;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    transition: transform .45s cubic-bezier(.2,.6,.3,1), box-shadow .45s ease;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(11,43,51,.13);
}
.program-card .card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.program-card .card-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .9s cubic-bezier(.2,.6,.3,1);
}
.program-card:hover .card-media img { transform: scale(1.05); }
.program-card .card-tag {
    position: absolute;
    left: 0; bottom: 0;
    background: var(--primary);
    color: #FFF;
    font-family: 'Saira', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .45rem 1rem;
}
.program-card .card-body-pad { padding: 1.9rem 1.75rem 2rem; }
.program-card h3 {
    font-size: 1.28rem;
    margin-bottom: .7rem;
    color: var(--dark);
}
.program-card p { color: var(--muted); margin-bottom: 1.1rem; line-height: 1.7; }
.card-link {
    font-family: 'Saira', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.card-link i { transition: transform .35s ease; }
.card-link:hover { color: var(--dark); }
.card-link:hover i { transform: translateX(5px); }

/* --- Values (C / H / E) ---------------------------------------------- */

.value-item {
    padding: 2rem 1.5rem;
    border-left: 2px solid var(--hairline);
    height: 100%;
}
.value-item .value-letter {
    font-family: 'Saira', sans-serif;
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    opacity: .95;
}
.value-item h4 { margin: .8rem 0 .55rem; font-size: 1.12rem; color: var(--dark); }
.value-item p { color: var(--muted); font-size: .97rem; line-height: 1.7; margin: 0; }

/* --- People ----------------------------------------------------------- */

.person-card {
    background: #FFFFFF;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow .45s ease, transform .45s cubic-bezier(.2,.6,.3,1);
}
.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(11,43,51,.13);
}
.person-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light);
}
.person-photo img {
    width: 100%;
    height: 100%;
    display: block;
    /* Portraits are 4:5 head-and-shoulders; bias the crop just below the
       top edge so the full face stays inside a square frame. */
    object-fit: cover;
    object-position: center 22%;
    transition: transform .9s cubic-bezier(.2,.6,.3,1);
}
.person-card:hover .person-photo img { transform: scale(1.03); }
.person-body { padding: 1.6rem 1.5rem 1.8rem; }
.person-name {
    font-family: 'Saira', sans-serif;
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: .25rem;
}
.person-role {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .9rem;
}
.person-bio { color: var(--muted); font-size: .96rem; line-height: 1.7; margin: 0; }

.person-card.advisor .person-role { color: var(--muted); }
.person-card.advisor .person-photo img { object-position: center 20%; }

/* --- Feature strip ---------------------------------------------------- */

.feature-row { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 4px;
    font-size: 1.25rem;
}
.feature-row h4 { font-size: 1.08rem; margin-bottom: .45rem; color: var(--dark); }
.feature-row p { color: var(--muted); margin: 0; line-height: 1.7; font-size: .97rem; }

/* --- Quote band ------------------------------------------------------- */

.quote-band {
    position: relative;
    overflow: hidden;
    background: var(--deep);
}
.quote-band img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .22;
}
.quote-band .quote-inner { position: relative; z-index: 2; }
.quote-text {
    font-family: 'Saira', sans-serif;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.45;
    color: #FFFFFF;
    max-width: 46ch;
}
.quote-attrib {
    margin-top: 1.4rem;
    font-size: .82rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--primary-soft);
}

/* --- Navbar brand ----------------------------------------------------- */

.navbar-brand-text {
    font-family: 'Saira', sans-serif;
    font-size: 1.92rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.navbar-brand-text .brand-suffix { font-size: .58em; font-weight: 500; letter-spacing: .04em; }
.footer .navbar-brand-text { font-size: 1.7rem; }
@media (max-width: 420px) {
    .navbar-brand-text { font-size: 1.42rem; }
}

/* --- Page header ------------------------------------------------------ */

.page-header { position: relative; overflow: hidden; }
.page-header .ph-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .28;
}
.page-header .container { position: relative; z-index: 2; }



/* --- Curriculum pages ------------------------------------------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
}
.stat-cell { background: #FFF; padding: 1.6rem 1.4rem; text-align: center; }
.stat-n {
    font-family: 'Saira', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}
.stat-t {
    font-size: .74rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .45rem;
}

.notice-box {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--secondary);
    border-left: 3px solid var(--primary);
    padding: 1.5rem 1.6rem;
    color: var(--ink);
    line-height: 1.7;
    font-size: .97rem;
}
.notice-box > i { color: var(--primary); font-size: 1.2rem; margin-top: .18rem; }
.notice-box a { color: var(--primary); font-weight: 600; }

.unit-block { margin-bottom: 3.5rem; }
.unit-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
    border-bottom: 2px solid var(--dark);
}
.unit-num {
    font-family: 'Saira', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--primary);
    flex: 0 0 auto;
}
.unit-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.42rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.25;
}

.wk-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 0 1.25rem;
    align-items: center;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--hairline);
}
.wk-row:hover { background: rgba(226, 104, 14, .028); }
.wk-num {
    font-family: 'Saira', sans-serif;
    font-size: .92rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .05em;
}
.wk-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 .3rem;
    line-height: 1.3;
}
.wk-desc {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.6;
    margin: 0 0 .5rem;
    max-width: 68ch;
}
.wk-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.wk-dur {
    font-size: .74rem;
    color: var(--muted);
    letter-spacing: .04em;
}
.wk-dur i { margin-right: .3rem; opacity: .7; }
.std-chip {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: .16rem .55rem;
}
.wk-dl { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: 'Saira', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #FFF;
    background: var(--primary);
    border: 1px solid var(--primary);
    padding: .48rem .85rem;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.dl-btn:hover { background: var(--dark); border-color: var(--dark); color: #FFF; transform: translateY(-1px); }
.dl-btn.ghost { background: transparent; color: var(--primary); }
.dl-btn.ghost:hover { background: var(--primary); color: #FFF; border-color: var(--primary); }
.dl-btn i { font-size: .84em; }

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .7rem;
}
.dl-grid .dl-btn { justify-content: flex-start; white-space: normal; padding: .7rem 1rem; }

@media (max-width: 900px) {
    .wk-row { grid-template-columns: 48px minmax(0, 1fr); }
    .wk-dl { grid-column: 1 / -1; justify-content: flex-start; margin-top: .8rem; }
}
@media (max-width: 520px) {
    .unit-head { flex-direction: column; gap: .3rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Grade selector cards on the education page */
.grade-card {
    display: block;
    background: #FFF;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 2rem 1.9rem;
    height: 100%;
    text-decoration: none;
    transition: transform .45s cubic-bezier(.2,.6,.3,1), box-shadow .45s ease, border-color .3s ease;
}
.grade-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(11,43,51,.13);
    border-color: var(--primary);
}
.grade-card .g-num {
    font-family: 'Saira', sans-serif;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--primary);
}
.grade-card h3 {
    font-family: 'Saira', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: .5rem 0 .7rem;
}
.grade-card p { color: var(--muted); line-height: 1.7; margin-bottom: 1.1rem; font-size: .97rem; }
.grade-card .g-stats {
    display: flex;
    gap: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--hairline);
}
.grade-card .g-stat-n {
    font-family: 'Saira', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}
.grade-card .g-stat-t {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .3rem;
}


/* --- Newsletter ------------------------------------------------------- */

.nl-h3 {
    font-family: 'Saira', sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 1.1rem;
    line-height: 1.3;
}
.nl-h4 {
    font-family: 'Saira', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 .9rem;
}
.nl-p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1.15rem;
}
.nl-list { color: var(--muted); font-size: 1.02rem; line-height: 1.85; padding-left: 1.2rem; }
.nl-list li { margin-bottom: .7rem; }
.nl-list strong { color: var(--ink); font-weight: 600; }

.retraction-card {
    background: #FFF;
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: 3px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1rem;
}
.ret-badge {
    display: inline-block;
    font-family: 'Saira', sans-serif;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #FFF;
    background: #A32E1E;
    padding: .22rem .6rem;
    border-radius: 2px;
    margin-bottom: .8rem;
}
.ret-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin: 0 0 .5rem;
}
.ret-meta { color: var(--muted); font-size: .88rem; margin: 0 0 .7rem; }
.ret-link {
    font-size: .88rem;
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}
.ret-link:hover { text-decoration: underline; }
.ret-link i { font-size: .78em; margin-left: .25rem; }

.method-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 1.1rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--hairline);
}
.method-step:last-of-type { border-bottom: 0; }
.ms-num {
    font-family: 'Saira', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--primary);
    padding-top: .2rem;
}
.method-step h4 {
    font-family: 'Saira', sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 .4rem;
}
.method-step p { color: var(--muted); font-size: .98rem; line-height: 1.75; margin: 0; }

.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
}
.ev-cell { background: #FFF; padding: 1.5rem 1.2rem; text-align: center; }
.ev-n {
    font-family: 'Saira', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}
.ev-t {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .5rem;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .method-step { grid-template-columns: 1fr; }
    .ms-num { margin-bottom: .3rem; }
}


/* --- Featured newsletter band (homepage) ------------------------------ */

.nl-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    background: #FFFFFF;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .45s cubic-bezier(.2,.6,.3,1), box-shadow .45s ease, border-color .3s ease;
}
.nl-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(11,43,51,.14);
    border-color: var(--primary);
}

.nl-feature-media { position: relative; overflow: hidden; min-height: 300px; }
.nl-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2,.6,.3,1);
}
.nl-feature:hover .nl-feature-media img { transform: scale(1.05); }
.nl-issue {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    background: var(--primary);
    color: #FFF;
    font-family: 'Saira', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .45rem 1rem;
}

.nl-feature-body { padding: 2.2rem 2.1rem; }
.nl-date {
    font-family: 'Saira', sans-serif;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .7rem;
}
.nl-feature-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 .9rem;
}
.nl-feature-text {
    color: var(--muted);
    font-size: .99rem;
    line-height: 1.75;
    margin: 0 0 1.2rem;
}
.nl-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; }
.nl-tag {
    font-family: 'Saira', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--secondary);
    border-radius: 999px;
    padding: .3rem .8rem;
}

@media (max-width: 900px) {
    .nl-feature { grid-template-columns: 1fr; }
    .nl-feature-media { min-height: 220px; }
    .nl-feature-body { padding: 1.8rem 1.6rem; }
}
