﻿/* Apple HIG-inspired refinement for hierarchy, legibility and interaction. */
:root {
    --radius: 22px;
    --shadow: 0 12px 36px #182E6F14;
    --shadow-raised: 0 22px 58px #182E6F1F;
    --control-height: 48px;
    --section-space: 96px;
    --section-space-tablet: 72px;
    --section-space-mobile: 56px;
    --readable-measure: 72ch;
}

html { scroll-padding-top: 104px; }
body { font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.08; }
h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.12; }
h3 { font-size: 24px; }
p { text-wrap: pretty; }
.prose, .page-intro, .service-editorial-copy > p:not(.eyebrow) { max-width: var(--readable-measure); }
.container { width: min(1280px, calc(100% - 96px)); }
.section { padding-block: var(--section-space); }
.section-tint { background: linear-gradient(180deg, #EEF5FF, #FFFFFF); }
.eyebrow { font-size: 12px; letter-spacing: .14em; line-height: 1.45; margin-bottom: 18px; }

.button {
    min-height: var(--control-height); border-radius: 14px; padding: 13px 22px;
    font-size: 14px; font-weight: 600; gap: 14px; box-shadow: 0 5px 16px #182E6F18;
    transition: background-color .2s ease, color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px #182E6F24; }
.button:active, .icon-button:active { transform: scale(.97); }
.button-small { min-height: 44px; padding: 11px 17px; font-size: 13px; }
.text-link { min-height: 44px; font-size: 14px; font-weight: 600; gap: 0; transition: color .2s ease; }
.text-link:hover, .text-link:focus-visible { color: var(--gold); text-decoration: none; }
.icon-button { min-width: 44px; min-height: 44px; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.icon-button:hover { background: var(--ice); border-color: var(--blue); }
:focus-visible { outline-width: 3px; outline-offset: 4px; }

/* Navigation is the only translucent functional layer. */
.institution-bar { min-height: 32px; padding: 7px 0; font-size: 11px; line-height: 1.5; }
.site-header { background: #FFFFFFF2; transition: box-shadow .25s ease, background-color .25s ease; }
@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    .site-header { -webkit-backdrop-filter: blur(18px) saturate(1.08); backdrop-filter: blur(18px) saturate(1.08); }
}
.site-header.scrolled { box-shadow: 0 8px 30px #182E6F14; }
.header-inner { height: 78px; gap: 22px; }
.brand-mark img { width: 50px; height: 50px; }
.brand-name { font-size: 22px; letter-spacing: -.035em; }
.brand-name span { font-size: 11px; letter-spacing: .1em; margin-top: 5px; }
.nav-list { gap: 18px; font-size: 13px; font-weight: 600; }
.nav-list > li { min-height: 78px; }
.nav-list > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-list > .current-menu-item > a::after, .nav-list > .current_page_item > a::after { bottom: 5px; width: 100%; }
.sub-menu { top: 66px; width: 270px; padding: 10px; border-radius: 16px; font-size: 14px; box-shadow: var(--shadow-raised); }
.sub-menu a { min-height: 44px; padding: 11px 13px; border-radius: 10px; }
.submenu-toggle {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; margin-inline: -6px -10px;
    border-radius: 10px; color: var(--navy); font-size: 0;
    transition: color .2s ease;
}
.submenu-toggle::before {
    content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg);
    transition: transform .25s var(--ease);
}
.submenu-toggle:hover { background: transparent; color: var(--blue); }
.is-open > .submenu-toggle { transform: none; }
.is-open > .submenu-toggle::before { transform: translateY(2px) rotate(225deg); }
.header-actions .search-toggle { width: 44px; height: 44px; padding: 10px; border-radius: 50%; }
.header-search { padding-block: 16px; border-top: 1px solid var(--ice); }

.search-form input, .directory-filter input, .directory-filter select,
.contact-form-panel input, .contact-form-panel textarea, .contact-form-panel select,
.comments-area input, .comments-area textarea {
    min-height: 48px; border-radius: 12px; font-size: 16px; background: #FFFFFF;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form input:focus, .directory-filter input:focus, .directory-filter select:focus,
.contact-form-panel input:focus, .contact-form-panel textarea:focus, .contact-form-panel select:focus,
.comments-area input:focus, .comments-area textarea:focus {
    border-color: var(--blue); box-shadow: 0 0 0 4px #315DDA18; outline: 0;
}

/* Homepage */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(460px, .95fr); gap: 52px; padding-top: 80px; padding-bottom: 64px; }
.hero-copy h1 { font-size: clamp(50px, 5vw, 72px); line-height: 1.08; letter-spacing: -.05em; margin-bottom: 28px; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-institution { font-size: 13px; line-height: 1.65; }
.hero-institution strong { font-size: 15px; margin-top: 2px; }
.hero-description { max-width: 600px; font-size: 16px; line-height: 1.75; }
.hero-buttons { margin-top: 32px; }
.hero-buttons .button, .hero-buttons .text-link { font-size: 14px; }
.hero-contact { gap: 12px 28px; margin-top: 28px; font-size: 13px; }
.hero-contact a { min-height: 36px; }
.hero-contact .icon { width: 18px; height: 18px; }
.hero-visual { height: 520px; }
.campus-image { border-radius: 150px 0 0 0; }
.visual-label, .caption-year { font-size: 11px; }
.hero-caption { padding: 22px 24px; border-radius: 16px; font-size: 14px; }
.brand-strip { gap: 40px; padding-block: 30px; font-size: 13px; }
.brand-logos { gap: 28px; }
.explore-down { min-height: 44px; font-size: 13px; }
.explore-down span { width: 40px; height: 40px; }
.stats-grid { padding-block: 32px; }
.stats-grid .stat { padding-inline: 34px; text-align: center; }
.stat strong { justify-content: center; font-size: 42px; font-weight: 700; }
.stat > span { font-size: 13px; }

.intro-grid { grid-template-columns: 1fr 1.35fr 1fr; gap: 48px; }
.intro-photo { height: 440px; }
.intro-photo figcaption span { font-size: 10px; }
.intro-copy { font-size: 16px; }
.intro-copy h2 { font-size: clamp(32px, 3vw, 44px); line-height: 1.2; }
.intro-copy .eyebrow, .institution-title { font-size: 13px; }
.feature-row { gap: 16px; padding: 24px 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; }
.feature-row h3 { font-size: 17px; margin-bottom: 6px; }
.feature-row p { font-size: 14px; line-height: 1.55; }
.section-heading { align-items: end; margin-bottom: 44px; }
.section-heading p:not(.eyebrow) { font-size: 16px; }

.services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.service-card {
    grid-column: span 2; min-height: 330px; padding: 30px; color: var(--ink);
    background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 10px 30px #182E6F10;
    transition: border-color .25s ease, box-shadow .45s ease, transform .45s var(--ease);
}
.service-card:nth-last-child(-n + 2) { grid-column: span 3; }
.service-card:hover { color: var(--ink); border-color: var(--blue); box-shadow: var(--shadow-raised); transform: translateY(-4px); }
.service-card-top { justify-content: flex-start; margin-bottom: 24px; }
.service-card-top > .service-art { width: 72px; height: 72px; }
.service-card h3 { color: var(--ink); font-size: 23px; margin-bottom: 12px; }
.service-card p { color: var(--navy); font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.service-more { min-height: 44px; padding-top: 14px; border-color: var(--line); color: var(--blue); font-size: 13px; font-weight: 600; }

.news-grid { gap: 28px; }
.news-card { display: flex; flex-direction: column; height: 100%; border-color: var(--line); border-radius: 22px; box-shadow: 0 10px 30px #182E6F10; transition: border-color .25s ease, box-shadow .45s ease, transform .45s var(--ease); }
.news-card:hover { border-color: var(--blue); box-shadow: var(--shadow-raised); transform: translateY(-4px); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.news-meta, .news-meta > span { font-size: 11px; }
.news-card h3 { font-size: 22px; line-height: 1.35; }
.news-card p { font-size: 15px; line-height: 1.65; }
.news-card .text-link { margin-top: auto; font-size: 13px; }
.partner-card { height: 166px; border: 1px solid var(--ice); border-radius: 22px; box-shadow: 0 8px 24px #182E6F10; transition: border-color .25s ease, box-shadow .45s ease, transform .45s var(--ease); }
.partner-card:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-3px); }
.empty-state { padding: 32px; border-radius: 16px; }
.empty-state p, .empty-state .eyebrow { font-size: 14px; }

/* Interior pages */
.page-hero { padding: 44px 0 86px; }
.page-hero h1 { font-size: clamp(46px, 5vw, 68px); }
.page-intro { max-width: 820px; font-size: 19px; line-height: 1.65; }
.breadcrumbs { min-height: 32px; margin-bottom: 42px; font-size: 13px; }
.about-editorial { gap: 82px; }
.editorial-image img, .article-feature { border-radius: 22px; }
.editorial-image figcaption { font-size: 13px; }
.objectives { gap: 88px; }
.mission-grid { gap: 28px; }
.mission-card, .action-card, .resource-card, .person-card, .contact-form-panel { border-radius: 22px; box-shadow: 0 10px 30px #182E6F10; }
.mission-card, .action-card, .resource-card, .person-card { height: 100%; }
.mission-card { padding: 44px; }
.mission-card .prose, .responsibility-grid p { font-size: 15px; }
.responsibility-grid { gap: 34px; }
.responsibility-grid h3 { font-size: 21px; }
.service-jump { padding-top: 36px; }
.service-editorial { gap: 88px; padding-block: 82px; }
.service-editorial-image.service-asset { min-height: 420px; border-radius: 22px; }
.service-editorial-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.7; }

.jump-links { gap: 12px; flex-wrap: wrap; }
.jump-links a, .filter-chips a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.jump-links a:hover, .filter-chips a:hover { border-color: var(--blue); background: var(--ice); }
.hub-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 84px; padding-block: 84px; }
.hub-nav a { min-height: 44px; align-items: center; font-size: 14px; }
.hub-section { padding-block: 40px; }
.action-grid, .resource-grid, .people-grid { gap: 28px; margin-top: 40px; }
.action-card, .resource-card { padding: 32px; transition: border-color .25s ease, box-shadow .45s ease, transform .45s var(--ease); }
.action-card:hover, .resource-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.action-card p, .resource-card p { font-size: 15px; }
.resource-card .eyebrow, .person-body .eyebrow, .academic-record .eyebrow { font-size: 12px; }
.resource-icon { width: 60px; height: 60px; border-radius: 16px; }
.directory-filter { gap: 18px; padding: 28px; border-radius: 20px; background: var(--ice); }
.directory-filter label { font-size: 13px; font-weight: 600; }
.directory-filter input, .directory-filter select { height: 48px; font-size: 15px; }
.directory-filter .button { min-height: 48px; font-size: 14px; }
.result-count, .person-email, .article-header time, .article-taxonomies, .record-links, .keywords { font-size: 14px; }
.person-card { display: flex; flex-direction: column; background: #FFFFFF; transition: border-color .25s ease, box-shadow .45s ease, transform .45s var(--ease); }
.person-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.person-body { display: flex; flex: 1; flex-direction: column; padding: 30px; }
.person-links { margin-top: auto; }
.person-body p { font-size: 15px; }
.availability { padding: 6px 12px; font-size: 12px; }
.academic-record { grid-template-columns: 110px minmax(0, 1fr); gap: 40px; padding: 46px 0; }
.academic-record h2 { font-size: 29px; }
.academic-record summary { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.contact-grid { gap: 96px; }
.contact-grid h3 { font-size: 20px; }
.contact-detail { gap: 20px; margin-block: 34px; }
.contact-form-panel { padding: 42px; background: var(--ice); }
.pagination a, .pagination span { border-radius: 12px; }
.article-content .prose { font-size: 18px; line-height: 1.75; }
.search-results-list article { padding: 38px 0; }

/* Footer */
.site-footer { padding-top: 72px; }
.footer-top { padding-bottom: 52px; }
.footer-top .eyebrow { font-size: 12px; }
.footer-top h2 { font-size: clamp(32px, 3vw, 44px); }
.footer-grid { gap: 54px; padding-block: 54px; font-size: 13px; line-height: 1.7; }
.footer-logos { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logos .footer-seal { margin-bottom: 0; }
.footer-rdo-logo { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 8px 16px #1734772E); }
.footer-brand > a { font-size: 25px; color: #FFFFFF; transition: color .2s ease; }
.footer-brand > a span { color: inherit; }
.footer-brand > a:hover, .footer-brand > a:focus-visible { color: var(--gold); }
.site-footer .button-gold:hover, .site-footer .button-gold:focus-visible { background: var(--rdo-gold-alt); color: var(--ink); }
.footer-brand p, .footer-motto { font-size: 13px !important; }
.footer-grid h3 { font-size: 15px; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { min-height: 64px; align-items: center; font-size: 11px; }

@media (max-width: 1199px) {
    .container { width: calc(100% - 64px); }
    .section { padding-block: var(--section-space-tablet); }
    .nav-list { gap: 11px; font-size: 12px; }
    .header-actions { gap: 6px; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; }
    .hero-copy h1 { font-size: 56px; }
    .hero-visual { height: 480px; }
    .intro-grid { gap: 34px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card, .service-card:nth-last-child(-n + 2) { grid-column: auto; }
    .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .service-card:last-child:nth-child(odd) p { max-width: 720px; }
    .responsibility-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
    .header-inner { height: 74px; }
    .primary-navigation { top: 74px; padding: 14px 32px 24px; background: #FFFFFFFA; }
    .nav-list { font-size: 16px; }
    .nav-list > li { min-height: 0; }
    .nav-list > li > a { min-height: 50px; padding: 12px 0; }
    .submenu-toggle { min-width: 48px; min-height: 48px; margin-inline: 0; }
    .hero-grid { grid-template-columns: 1fr .9fr; padding-top: 56px; }
    .hero-copy h1 { font-size: 49px; }
    .hero-description { font-size: 15px; }
    .intro-grid { grid-template-columns: 1fr 1.25fr; }
    .feature-list { grid-template-columns: repeat(2, 1fr); }
    .feature-row { border-bottom: 1px solid var(--line); padding: 20px 0; }
    .hub-layout { grid-template-columns: 1fr; gap: 44px; }
    .hub-nav a { padding-inline: 14px; border: 1px solid var(--line); border-radius: 999px; }
    .service-editorial, .about-editorial, .objectives, .contact-grid { gap: 44px; }
    .page-hero h1 { font-size: 52px; }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 88px; }
    body { font-size: 16px; }
    .container { width: calc(100% - 40px); }
    .section { padding-block: var(--section-space-mobile); }
    .institution-bar { min-height: 28px; font-size: 10px; }
    .institution-motto { font-size: 10px; }
    .header-inner { height: 68px; }
    .brand-mark img { width: 40px; height: 40px; }
    .brand-name { font-size: 18px; }
    .brand-name span { display: none; }
    .primary-navigation { top: 68px; padding: 12px 20px 24px; max-height: calc(100dvh - 96px); }
    .menu-toggle, .header-actions .search-toggle { width: 44px; height: 44px; }
    .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
    .hero-copy h1 { font-size: clamp(42px, 12vw, 54px); }
    .hero-copy .eyebrow { font-size: 11px; }
    .hero-institution { font-size: 13px; }
    .hero-institution strong { font-size: 14px; }
    .hero-description { font-size: 16px; }
    .hero-buttons { gap: 12px 18px; }
    .hero-buttons .button, .hero-buttons .text-link { font-size: 13px; }
    .hero-contact { font-size: 12px; }
    .hero-visual { height: 350px; margin-top: 34px; }
    .hero-caption { font-size: 13px; }
    .visual-label, .caption-year { font-size: 11px; }
    .brand-strip { gap: 18px; padding-block: 26px; font-size: 12px; }
    .brand-logos { width: 100%; justify-content: flex-start; }
    .stats-grid { padding-block: 10px; }
    .stats-grid .stat { padding: 20px 16px !important; }
    .stat strong { font-size: 36px; }
    .stat > span { font-size: 12px; }
    .intro-grid { grid-template-columns: 1fr; gap: 36px; }
    .intro-photo { height: 360px; }
    .intro-copy, .intro-copy .eyebrow, .institution-title { font-size: 14px; }
    .intro-copy > div { font-size: 16px; }
    .feature-list { grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .feature-row { display: flex; gap: 12px; }
    .feature-row h3 { font-size: 16px; }
    .feature-row p { font-size: 13px; }
    .section-heading { gap: 16px; margin-bottom: 34px; }
    .section-heading p:not(.eyebrow) { font-size: 15px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card, .service-card:last-child:nth-child(odd) { grid-column: auto; min-height: 0; padding: 26px; }
    .service-card-top > .service-art { width: 64px; height: 64px; }
    .service-card h3 { font-size: 24px; }
    .service-card p { font-size: 15px; }
    .news-card-body { padding: 24px; }
    .news-meta, .news-meta > span { font-size: 11px; }
    .partner-card { height: 150px; }
    .page-hero { padding: 28px 0 56px; }
    .page-hero h1 { font-size: 42px; }
    .page-intro { font-size: 17px; }
    .breadcrumbs { margin-bottom: 32px; font-size: 12px; }
    .about-editorial, .objectives, .mission-grid, .contact-grid, .service-editorial { grid-template-columns: 1fr; gap: 34px; }
    .mission-card, .action-card, .resource-card, .contact-form-panel { padding: 28px; }
    .responsibility-grid { grid-template-columns: 1fr; gap: 8px; }
    .responsibility-grid > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
    .service-editorial { padding-block: 58px; }
    .service-editorial-image.service-asset { min-height: 310px; }
    .jump-links a { width: 100%; justify-content: space-between; }
    .hub-layout { padding-block: 48px; }
    .hub-nav { display: grid; grid-template-columns: 1fr; }
    .hub-nav a { font-size: 14px; }
    .action-grid, .resource-grid, .people-grid { grid-template-columns: 1fr; }
    .directory-filter { padding: 22px; }
    .academic-record { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
    .academic-record h2 { font-size: 26px; }
    .article-content .prose { font-size: 17px; }
    .site-footer { padding-top: 56px; }
    .footer-rdo-logo { width: 62px; height: 62px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: 42px; font-size: 13px; }
    .footer-grid li a { min-height: 44px; }
    .footer-bottom { padding-block: 20px; font-size: 11px; }
}

@media (max-width: 430px) {
    .container { width: calc(100% - 32px); }
    .institution-motto { display: none; }
    .header-inner { gap: 4px; }
    .site-brand { gap: 5px; }
    .brand-mark img { width: 38px; height: 38px; }
    .brand-name { font-size: 17px; }
    .header-actions { gap: 0; }
    .hero-copy h1 { font-size: 41px; }
    .hero-buttons { align-items: stretch; flex-direction: column; }
    .hero-buttons .button, .hero-buttons .text-link { width: 100%; justify-content: center; }
    .hero-contact { flex-direction: column; }
    .hero-visual { height: 330px; }
    .brand-logos { gap: 12px; }
    .brand-logo-sdg { width: 140px; }
    .brand-logo-recollect { width: 135px; }
    .feature-list { grid-template-columns: 1fr; }
    .stat strong { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .nav-list > li:nth-last-child(-n + 2) > .sub-menu { left: auto; right: 0; }
}

@media (prefers-contrast: more) {
    .service-card, .news-card, .partner-card, .mission-card, .action-card,
    .resource-card, .person-card, .directory-filter, .contact-form-panel { border-width: 2px; }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header, .primary-navigation { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
