/* Research page — extends main.css + menu.css */

/* ── Accent colors per research area ── */
:root {
    --blue:   rgba(80, 130, 210, 1);
    --blue-d: rgba(80, 130, 210, 0.18);
    --amber:  rgba(196, 137, 42, 1);
    --amber-d:rgba(196, 137, 42, 0.18);
    --red:    rgba(139, 34, 34, 1);
    --red-d:  rgba(139, 34, 34, 0.18);
}

/* ── Active nav ── */
.nav-links li a.nav-active {
    color: rgba(230, 238, 242, 0.95) !important;
}

/* ── Hero ── */

.rch-hero {
    min-height: 480px;
    padding: 100px 8vw 64px;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(80, 130, 210, 0.06), transparent 40%),
        radial-gradient(ellipse at 10% 85%, rgba(139, 34, 34, 0.05), transparent 36%),
        url('../img/cover.png') no-repeat center/cover,
        #111719;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rch-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(17, 23, 25, 0.92) 0%,
        rgba(17, 23, 25, 0.7) 55%,
        rgba(17, 23, 25, 0.35) 100%);
    pointer-events: none;
}

.rch-hero-text {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.rch-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(80, 130, 210, 0.75);
    font-weight: 500;
    margin: 0 0 12px;
}

.rch-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #dde4e8;
    margin: 0 0 6px;
}

.rch-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #8b2222;
    margin-top: 10px;
    margin-bottom: 18px;
}

.rch-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(185, 196, 203, 0.72);
    line-height: 1.82;
    font-weight: 300;
    margin: 0 0 28px;
}

.rch-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ── */

.rch-btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid rgba(139, 34, 34, 0.6);
    background: rgba(139, 34, 34, 0.15);
    color: rgba(215, 155, 155, 0.85);
    border-radius: 2px;
    transition: all 0.2s ease;
}
.rch-btn-primary:hover {
    background: rgba(139, 34, 34, 0.28);
    border-color: rgba(139, 34, 34, 0.85);
    color: rgba(230, 175, 175, 0.95);
}

.rch-btn-ghost {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(185, 196, 203, 0.6);
    border-radius: 2px;
    transition: all 0.2s ease;
}
.rch-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(210, 218, 224, 0.85);
}

/* ── Secondary sub-nav ── */

.rch-subnav {
    height: 42px !important;
    line-height: 42px !important;
    background: rgba(14, 20, 22, 0.96) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) !important;
    position: sticky;
    top: 52px;   /* below main nav */
    z-index: 90;
    width: 100%;
    display: block;
}

.rch-subnav-inner {
    display: flex;
    gap: 0;
    padding: 0 8vw;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.rch-subnav-inner::-webkit-scrollbar { display: none; }

.rch-subnav-inner a {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(160, 172, 180, 0.5);
    text-decoration: none;
    padding: 0 16px;
    display: inline-block;
    line-height: 42px;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.rch-subnav-inner a:hover {
    color: rgba(210, 220, 225, 0.85);
}
.rch-subnav-inner a.subnav-active {
    color: rgba(196, 137, 42, 0.85);
    border-bottom-color: rgba(196, 137, 42, 0.6);
}

/* ── Section containers ── */

.rch-section {
    padding: 60px 8vw;
    max-width: 100%;
}

.rch-section-alt {
    background: #171d1f;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rch-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.rch-section-header {
    margin-bottom: 44px;
}

.rch-section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 10px;
}

.rch-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d8e0e5;
    margin: 0 0 4px;
}

.rch-section-title::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #8b2222;
    margin-top: 10px;
    margin-bottom: 16px;
}

.rch-section-lead {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(168, 180, 188, 0.65);
    line-height: 1.82;
    font-weight: 300;
    margin: 0;
    max-width: 680px;
}

/* Accent colors */
.accent-blue-text  { color: rgba(80, 130, 210, 0.75); }
.accent-amber-text { color: rgba(196, 137, 42, 0.75); }
.accent-red-text   { color: rgba(175, 80, 80, 0.75); }

/* ── Overview cards ── */

.rch-overview-section {
    background: #1a2022;
}

.rch-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 36px auto 0;
}

.rch-area-card {
    background: rgba(20, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 24px 22px 22px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rch-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.area-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}
.accent-blue  { background: rgba(80, 130, 210, 0.7); }
.accent-amber { background: rgba(196, 137, 42, 0.7); }
.accent-red   { background: rgba(139, 34, 34, 0.7); }

.rch-area-card[data-area="tdm"]:hover   { border-color: rgba(80,  130, 210, 0.3); }
.rch-area-card[data-area="dosimetry"]:hover { border-color: rgba(196, 137, 42, 0.3); }
.rch-area-card[data-area="sem"]:hover   { border-color: rgba(139, 34,  34,  0.3); }

.area-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.area-icon {
    color: rgba(175, 186, 194, 0.45);
    flex-shrink: 0;
}

.area-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(155, 168, 175, 0.5);
    font-weight: 500;
}

.area-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #cdd5da;
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.area-card-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(158, 170, 178, 0.58);
    font-weight: 300;
    line-height: 1.68;
    margin: 0 0 16px;
}

.area-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(175, 145, 145, 0.62);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 34, 34, 0.22);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.area-card-link:hover {
    color: rgba(215, 170, 170, 0.88);
    border-color: rgba(139, 34, 34, 0.55);
}

/* ── Two-column layout ── */

.rch-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 44px;
}

/* Prevent grid items from overflowing their cell
   (grid default is min-width:auto which lets media use intrinsic size) */
.rch-two-col > * { min-width: 0; }

.rch-two-col-reverse .rch-col-media { order: -1; }

.rch-body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(170, 182, 190, 0.68);
    line-height: 1.88;
    font-weight: 300;
    margin: 0 0 16px;
}

.rch-body strong { color: rgba(200, 210, 216, 0.9); font-weight: 400; }

.rch-subsection-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #ccd4d8;
    margin: 28px 0 12px;
    border-left: 2px solid rgba(139, 34, 34, 0.45);
    padding-left: 12px;
}

/* ── Pipeline ── */

.rch-pipeline {
    margin: 24px 0 20px;
}

.pipeline-label-top {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(155, 168, 176, 0.45);
    margin: 0 0 14px;
}

.pipeline-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 30, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 8px 10px;
}

.step-num {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: rgba(196, 137, 42, 0.7);
    font-weight: 400;
    flex-shrink: 0;
}

.step-name {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(165, 175, 183, 0.62);
    font-weight: 300;
    line-height: 1.3;
}

.pipeline-arrow {
    color: rgba(155, 168, 176, 0.28);
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Technical detail (collapsible) ── */

.rch-tech-detail {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    margin-top: 18px;
    overflow: hidden;
}

.rch-tech-detail summary {
    padding: 10px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(165, 105, 105, 0.68);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}
.rch-tech-detail summary::-webkit-details-marker { display: none; }
.rch-tech-detail summary:hover { color: rgba(185, 130, 130, 0.85); }
.rch-tech-detail[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.rch-tech-body {
    padding: 14px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(158, 170, 178, 0.62);
    line-height: 1.75;
    font-weight: 300;
}

/* ── Inline link ── */

.rch-inline-link {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(175, 145, 145, 0.6);
    border-bottom: 1px solid rgba(139, 34, 34, 0.22);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.rch-inline-link:hover {
    color: rgba(215, 170, 170, 0.88);
    border-color: rgba(139, 34, 34, 0.55);
}

.rch-reference {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: rgba(140, 155, 162, 0.42);
    font-style: italic;
    font-weight: 300;
    margin-top: 16px;
    line-height: 1.6;
}

/* ── Key grid (dosimetry section) ── */

.rch-key-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 22px 0 16px;
}

.rch-key-card {
    background: rgba(20, 28, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 14px 16px;
}

.key-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #ccd4d8;
    margin: 0 0 6px;
    letter-spacing: 0.2px;
}

.key-card-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: rgba(155, 168, 176, 0.55);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* ── Video wrapper ── */

.rch-video-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #080e14;
}

.rch-video-wrap video {
    width: 100%;
    max-width: 100%;
    display: block;
    /* preserve 1344×1080 ratio */
    aspect-ratio: 1344 / 1080;
    object-fit: cover;
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: rgba(175, 186, 194, 0.55);
    font-weight: 300;
    letter-spacing: 0.2px;
    font-style: italic;
}

/* ── Wide image wrapper (1024×768, 4:3) ── */

.rch-img-wide {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    aspect-ratio: 4 / 3;
}

/* ── Square image wrapper (882×882) ── */

.rch-img-square {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    aspect-ratio: 1 / 1;
}

.rch-img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: opacity 0.25s ease;
}

.rch-img-square:hover .rch-img-fill { opacity: 1; }

/* ── Image placeholders ── */

.rch-col-media { position: sticky; top: 110px; }

.rch-placeholder {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.rch-placeholder-tall  { min-height: 340px; }
.rch-placeholder-mid   { min-height: 200px; }

.placeholder-blue  { background: linear-gradient(145deg, #0c1828, #162038); }
.placeholder-amber { background: linear-gradient(145deg, #1c1408, #2c2010); }
.placeholder-red   { background: linear-gradient(145deg, #180808, #260e0e); }

.placeholder-label {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(140, 155, 162, 0.42);
    font-weight: 300;
    text-align: center;
    padding: 12px;
    font-style: italic;
    line-height: 1.5;
}

.img-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(140, 155, 162, 0.4);
    margin: 8px 0 0;
    font-weight: 300;
}

/* ── 4-image grid ── */

.rch-img-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.rch-img-item .rch-placeholder { min-height: 130px; }

/* ── 2-image grid ── */

.rch-img-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.rch-img-grid-2 .rch-placeholder { min-height: 160px; }

/* ── SEM mosaic ── */

.rch-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 36px;
}

.mosaic-wide .rch-placeholder-tall { min-height: 340px; }

.mosaic-narrow-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mosaic-narrow-col .rch-placeholder { min-height: 100px; }

/* ── Tags ── */

.rch-interests-section { text-align: left; }

.rch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.rch-tag {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(172, 184, 192, 0.58);
    padding: 5px 13px;
    font-size: 12px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: default;
}
.rch-tag:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(200, 210, 215, 0.8);
    background: rgba(255, 255, 255, 0.03);
}

/* ── Publications ── */

.rch-pub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.rch-pub-card {
    background: rgba(20, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.rch-pub-card:hover {
    border-color: rgba(139, 34, 34, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.pub-type {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 12px;
}

.pub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #cdd5da;
    margin: 0 0 10px;
    line-height: 1.45;
    flex: 1;
}

.pub-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: rgba(155, 168, 176, 0.52);
    font-weight: 300;
    line-height: 1.68;
    margin: 0 0 16px;
    flex: 1;
}

.pub-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(175, 145, 145, 0.62);
    border-bottom: 1px solid rgba(139, 34, 34, 0.22);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.2s, border-color 0.2s;
}
.pub-link:hover {
    color: rgba(215, 170, 170, 0.88);
    border-color: rgba(139, 34, 34, 0.55);
}

.rch-scholar-link {
    margin-top: 24px;
    text-align: center;
}
.rch-scholar-link a {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(140, 155, 162, 0.42);
    text-decoration: none;
    transition: color 0.2s;
}
.rch-scholar-link a:hover { color: rgba(175, 145, 145, 0.72); }

/* ── Contact ── */

.rch-contact-section { text-align: left; }
.rch-contact-inner { max-width: 640px; }

.rch-contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── Scroll reveal ── */

.rch-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.rch-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.rch-reveal-d1 { transition-delay: 0.1s; }
.rch-reveal-d2 { transition-delay: 0.2s; }

/* ── Responsive ── */

@media (max-width: 960px) {
    .rch-overview-grid { grid-template-columns: 1fr; }
    .rch-two-col,
    .rch-two-col-reverse { grid-template-columns: 1fr; gap: 28px; }
    .rch-two-col-reverse .rch-col-media { order: 0; }
    .rch-col-media { position: relative; top: 0; }
    .rch-pub-grid { grid-template-columns: 1fr; }
    .rch-img-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .rch-mosaic { grid-template-columns: 1fr; }
    .mosaic-narrow-col { flex-direction: row; flex-wrap: wrap; }
    .mosaic-narrow-col .rch-img-item { flex: 1; min-width: 140px; }
}

@media (max-width: 640px) {
    .rch-hero { padding: 90px 20px 48px; }
    .rch-section { padding-left: 20px; padding-right: 20px; }
    .rch-section-inner { max-width: 100%; }
    .rch-title { font-size: 22px; letter-spacing: 3px; }
    .rch-img-grid-4 { grid-template-columns: 1fr 1fr; }
    .rch-img-grid-2 { grid-template-columns: 1fr; }
    .rch-key-grid { grid-template-columns: 1fr; }
    .pipeline-steps { flex-direction: column; align-items: flex-start; }
    .pipeline-arrow { transform: rotate(90deg); }
}
