/* Research & Innovation page — loads after style.css.
   Palette (roles):
   Deep Navy #0F2A4A      headings, top line, footer, dark bands
   Warm Alabaster #F8F9FA page background
   Pure White #FFFFFF     cards, tiles, content containers
   Electric Teal #008080  STEM / tech: buttons and tags (white text, 4.8:1)
   Terracotta Amber #D96B27  highlights: rules, markers, borders (decorative; never small text)
   Emerald Sage #2E7D32   growth metrics and life-science tags (white text, 5.1:1)
   Charcoal Slate #2B303A body text
   Amber is below 4.5:1 with white, navy or charcoal text, so it carries no small text. */

:root{
  --navy:#0F2A4A; --teal:#008080; --amber:#D96B27; --emerald:#2E7D32; --alabaster:#F8F9FA;
  /* Remap the template's tokens */
  --burgundy:var(--navy);
  --burgundy-dark:#091C33;      /* a deeper navy, for hover */
  --charcoal:#2B303A;
  --ivory:var(--alabaster);
  --gold:var(--amber);
  --slate:#4B5260;              /* Charcoal Slate lightened, for captions (7.6:1 on white) */
  --line:rgba(15,42,74,.16);
  --line-light:rgba(248,249,250,.25);
  --shadow:0 10px 30px rgba(15,42,74,.10);
}

/* The template's charcoal surfaces become Deep Navy */
.topline,.footer{background:var(--navy)}
.skip{background:var(--navy);color:var(--white)}
.badge{background:var(--teal);color:var(--white)}
.footer h2{display:inline-block;padding-bottom:.4rem;border-bottom:2px solid var(--amber);color:var(--white)}
.footer a:hover{color:var(--white);text-decoration-thickness:2px}
mark{background:rgba(217,107,39,.28);color:var(--navy)}

/* Buttons: teal on light surfaces, white on navy bands */
.btn-primary{background:var(--teal);color:var(--white)}
.btn-primary:hover{background:var(--navy);color:var(--white)}
.btn-outline{border-color:var(--navy);color:var(--navy);background:transparent}
.btn-outline:hover{background:var(--navy);color:var(--white)}
.btn-light{background:var(--white);color:var(--navy)}
.btn-light:hover{background:var(--alabaster);color:var(--navy);text-decoration:underline}

/* Page base */
.res h1,.res h2,.res h3{color:var(--navy)}
.res .block{padding:var(--s5) 0}
.res .block.white{background:var(--white)}
.res .block h2{margin-bottom:var(--s3)}
.res .sub{max-width:60ch;margin:calc(var(--s2) * -1) 0 var(--s4);color:var(--slate)}
.res .prose p{max-width:68ch;margin:0 0 var(--s2)}

/* Announcement */
.res .update .badge{flex:none}
.res .update a{color:var(--navy)}

/* Hero */
.res .hero-res{background:var(--navy);color:var(--white);padding:var(--s4) 0 var(--s5)}
.res .crumb ol{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 var(--s4);font-size:.9rem;color:var(--white)}
.res .crumb li+li::before{content:"/";margin-right:.5rem;color:var(--amber)}
.res .crumb a{color:var(--white)}
.res .crumb a:hover{text-decoration-thickness:2px}
.res .standing{margin:0 0 var(--s2);color:var(--white);font-size:.95rem}
.res .hero-res h1{color:var(--white);font-size:clamp(2.25rem,5.5vw,3.75rem);max-width:20ch;margin-bottom:var(--s3)}
.res .hero-res h1::after{content:"";display:block;width:3.5rem;height:3px;margin-top:var(--s3);background:var(--amber)}
.res .hero-res .lead{max-width:38em;margin:0;color:var(--white)}
.res .hero-res .btn-outline{border-color:var(--white);color:var(--white)}
.res .hero-res .btn-outline:hover{background:var(--white);color:var(--navy)}

/* Figures: Emerald Sage for growth metrics */
.res .figures{background:var(--white);border-block:1px solid var(--line)}
.res .figures dl{display:grid;grid-template-columns:repeat(2,1fr);margin:0}
.res .figures div{display:flex;flex-direction:column-reverse;padding:var(--s3) var(--s2);border-left:1px solid var(--line)}
.res .figures div:nth-child(odd){border-left:0;padding-left:0}
.res .figures div:nth-child(n+3){border-top:1px solid var(--line)}
.res .figures dd{margin:0;font:600 clamp(2rem,4.5vw,2.75rem)/1 var(--serif);color:var(--emerald)}
.res .figures dt{margin-top:.35rem;font-size:.95rem;color:var(--slate)}

/* Notice tile */
.res .notice-panel{margin-top:var(--s4);max-width:44rem;padding:var(--s3);background:var(--white);border:1px solid var(--line);border-left:4px solid var(--amber);border-radius:0 8px 8px 0}
.res .notice-panel small{display:block;font-size:.9rem;font-weight:600;color:var(--slate)}
.res .notice-panel strong{display:block;margin:.15rem 0 .25rem;font:600 1.3rem/1.3 var(--serif);color:var(--navy)}
.res .notice-panel p{margin:0}

/* Mission */
.res .mission{display:grid;gap:var(--s4)}
.res .mission li{position:relative;padding-top:var(--s3);border-top:1px solid var(--navy)}
.res .mission li::before{content:"";position:absolute;top:-2px;left:0;width:2.5rem;height:3px;background:var(--amber)}
.res .mission p{margin:0;max-width:44ch}

/* What's new: white event tiles with discipline tags */
.res .tiles{display:grid;gap:var(--s3)}
.res .tiles li{display:flex;flex-direction:column;padding:var(--s3);background:var(--white);border:1px solid var(--line);border-radius:8px}
.res .tilemeta{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:0 0 var(--s2);font-size:.9rem}
.res .when{font-weight:700;color:var(--navy)}
.res .chip{display:inline-block;padding:.1rem .6rem;border-radius:999px;font-size:.8rem;font-weight:700;color:var(--white)}
.res .chip.teal{background:var(--teal)}
.res .chip.emerald{background:var(--emerald)}
.res .chip.amber{background:transparent;border:2px solid var(--amber);color:var(--navy);padding:.05rem .55rem}
.res .tiles h3{margin-bottom:.5rem}
.res .tiles h3 a{color:var(--navy);text-decoration:none}
.res .tiles h3 a:hover{text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:2px}
.res .tiles p{margin:0 0 auto;color:var(--slate)}
.res .tiles .ulink{align-self:flex-start}

/* Awards band */
.res .recog{background:var(--navy);color:var(--white);padding:var(--s5) 0}
.res .recog h2{color:var(--white)}
.res .recog .since{margin:0 0 var(--s2);font-weight:600;color:var(--white)}
.res .recog .since::before{content:"";display:block;width:3.5rem;height:3px;margin-bottom:var(--s2);background:var(--amber)}
.res .recog p{max-width:68ch}

/* Explore */
.res .explore{display:grid;gap:var(--s3)}
.res .explore article{display:flex;flex-direction:column;padding:var(--s3);background:var(--white);border:1px solid var(--line);border-top:3px solid var(--navy);border-radius:0 0 8px 8px}
.res .explore h3 a{color:var(--navy);text-decoration:none}
.res .explore h3 a:hover{text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:2px}
.res .explore p{margin:0 0 auto}
.res .explore .ulink{align-self:flex-start}

.res .join h2{color:var(--white)}

@media(min-width:40rem){
  .res .figures dl{grid-template-columns:repeat(4,1fr)}
  .res .figures div:nth-child(n){border-top:0;border-left:1px solid var(--line);padding-left:var(--s3)}
  .res .figures div:first-child{border-left:0;padding-left:0}
}
@media(min-width:48rem){
  .res .mission{grid-template-columns:1fr 1fr;gap:var(--s4) var(--s5)}
  .res .tiles,.res .explore{grid-template-columns:repeat(3,1fr)}
}
