/* UVM CCSP site styles. Palette: UVM green, gold accent. */
:root {
  --green: #007155;
  --green-dark: #00563f;
  --green-pale: #e6f1ed;
  --gold: #b8790f;
  --gold-bright: #f5c144;   /* gold that reads on the dark green banner */
  --gold-pale: #fbf3e2;
  --ink: #1d2b26;
  --muted: #5a6963;
  --line: #d9e0dd;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
/* Must outrank the display rules below, or the JS filters cannot hide .pub rows. */
[hidden] { display: none !important; }
html { font-size: 17px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--green-dark); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2.2rem; margin-top: 1.5rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-top: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
main.wrap { padding-block: 0 3rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem; }
.skip:focus { left: 0; z-index: 10; }

/* Header: text banner + nav bar beneath it */
.site-header { background: #0b3d2e; }
.hero-banner {
  display: block; text-decoration: none; color: #fff;
  background:
    radial-gradient(115% 145% at 88% 6%, rgba(0, 128, 96, .5) 0%, rgba(11, 61, 46, 0) 62%),
    radial-gradient(80% 130% at 8% 100%, rgba(0, 86, 63, .55) 0%, rgba(11, 61, 46, 0) 72%),
    linear-gradient(155deg, #0e4838 0%, #0b3d2e 45%, #072a20 100%);
  border-bottom: 2px solid rgba(245, 193, 68, .8);
}
.hero-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3rem; }
.hero-banner-text { display: block; }
.hero-banner-title { display: block; font-weight: 800; font-size: clamp(1.55rem, 4.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.hero-banner-kicker { display: flex; align-items: center; gap: .6rem; margin-top: .85rem; font-size: clamp(.72rem, 1.6vw, .85rem); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-bright); }
.hero-banner-kicker::before { content: ""; flex: none; width: 1.7rem; height: 3px; border-radius: 2px; background: currentColor; }
.hero-banner-topics { display: block; margin-top: .85rem; font-size: clamp(.82rem, 1.7vw, .97rem); line-height: 1.5; color: #c2dbd0; }
.hero-banner-topics .sep { color: rgba(245, 193, 68, .8); padding-inline: .45rem; }
.hero-banner-shield { flex: none; width: auto; height: 122px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .28)); }
.hero-banner:hover .hero-banner-title { color: var(--gold-bright); }
.hero-banner:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }
.site-header-compact .hero-banner-inner { padding-block: 1.5rem; }
.site-header-compact .hero-banner-title { font-size: clamp(1.3rem, 3.4vw, 1.9rem); }
.site-header-compact .hero-banner-kicker { margin-top: .55rem; }
.site-header-compact .hero-banner-topics { display: none; }
.site-header-compact .hero-banner-shield { height: 78px; }
.site-nav { background: var(--green); }
.site-nav ul { list-style: none; margin: 0 auto; padding-block: .35rem; display: flex; flex-wrap: wrap; gap: .1rem .3rem; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: .45rem .8rem; border-radius: 4px; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { background: var(--green-dark); color: #fff; }
.site-nav a.active { background: #fff; color: var(--green-dark); font-weight: 700; }

/* Hero + stats */
.hero { padding-block: 1.6rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }
.lede { font-size: 1.12rem; color: #33413c; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn { display: inline-block; padding: .55rem 1rem; border: 2px solid var(--green); border-radius: 6px; color: var(--green); text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-block: 1.5rem 2rem; }
.stat { flex: 1 1 150px; background: var(--bg-alt); padding: 1rem; text-align: center; }
.stat-n { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--green-dark); line-height: 1.1; }
.stat-l { display: block; font-size: .85rem; color: var(--muted); }

/* Sections, grids, cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2rem; }
.grid { display: grid; gap: 1rem; margin-top: .8rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; background: #fff; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.theme-card h3 { margin-top: 0; font-size: 1.1rem; }
.theme-card-md { padding: 1.3rem 1.4rem; }
.theme-card-md h3 { font-size: 1.32rem; }
.theme-card-md .card-people { margin-top: .45rem; font-size: 1rem; }
.theme-card-lg { padding: 1.4rem 1.5rem; }
.theme-card-lg h2 { margin-top: 0; font-size: 1.6rem; }
.theme-card-lg .card-people { margin-top: .35rem; font-size: .95rem; }
.theme-grid { margin-top: 1.2rem; margin-bottom: 1rem; }
.card-people { color: var(--muted); font-size: .9rem; margin: 0; }
.callout { background: var(--green-pale); border-left: 4px solid var(--green); border-radius: 6px; padding: 1rem 1.2rem; margin-top: 2rem; }
.callout h2 { margin-top: 0; font-size: 1.25rem; }
.callout p:last-child { margin-bottom: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 1.2rem; }

/* Badges + chips */
.badge { display: inline-block; background: var(--green); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-muted { background: #7a8a84; }
.badge-alt { background: var(--gold); }
.badge-sponsor { background: var(--green-dark); }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.chip { display: inline-block; font-size: .76rem; padding: .12rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--green-dark); text-decoration: none; background: #fff; }
.chip:hover { border-color: var(--green); }
.chip-btn { cursor: pointer; font: inherit; font-size: .85rem; padding: .3rem .8rem; }
.chip-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1rem; }

/* Publications */
.pub-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.pub { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.pub:first-child { border-top: 0; }
.pub .badge { justify-self: start; align-self: start; margin-top: .15rem; }
.pub-title { font-weight: 600; }
.pub-authors { font-size: .93rem; }
.pub-venue { font-size: .88rem; color: var(--muted); }
.pub-award { font-size: .88rem; color: var(--gold); font-weight: 600; }
.venues { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.venue { font-weight: 600; color: var(--green-dark); }
.year-group h2 { border-bottom: 2px solid var(--green-pale); padding-bottom: .2rem; }

/* Sponsors */
.sponsors { background: var(--bg-alt); border-radius: 8px; padding: 1.2rem 1.4rem; margin-top: 2rem; }
.sponsors h2 { margin-top: 0; font-size: 1.2rem; }
.sponsor-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.sponsor-list li { font-family: var(--serif); font-size: 1.1rem; color: var(--green-dark); padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sponsors p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Awards / funding */
.award-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.section-note { font-size: .92rem; color: var(--muted); margin: .2rem 0 .6rem; }
.award { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.award:first-child { border-top: 0; }
.award .badge { justify-self: start; align-self: start; margin-top: .15rem; }
.award-title { font-weight: 600; }
.award-meta { font-size: .88rem; color: var(--muted); }

/* People */
.people-list { display: flex; flex-direction: column; gap: 1rem; margin-top: .8rem; }
.person { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.person-compact { grid-template-columns: 72px 1fr; align-items: center; padding: .7rem; }
.person-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.person-name { margin: 0; font-size: 1.25rem; }
.person-compact .person-name { font-size: 1.05rem; }
.person-name a { text-decoration: none; }
.role { font-family: var(--sans); font-size: .75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin-left: .4rem; vertical-align: middle; }
.person-title { color: var(--muted); font-size: .92rem; }
.person-areas { margin: .5rem 0 0; font-size: .95rem; }
.person-links { margin-top: .5rem; display: flex; gap: 1rem; font-size: .9rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: .6rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .6rem; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); color: var(--green-dark); font-weight: 700; font-size: .85rem; }
.courses .course-num { min-width: 12rem; }
.courses .course-num a { font-weight: 700; text-decoration: none; }
.courses .course-instructor { white-space: nowrap; }
.prereq { color: var(--muted); font-size: .85rem; margin-top: .3rem; }

/* News */
.news-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.news-list li { padding: .5rem 0; border-top: 1px solid var(--line); }
.news-list li:first-child { border-top: 0; }
.news-list time { display: inline-block; min-width: 9.5rem; color: var(--muted); font-size: .88rem; }
.news-full li { padding: 1.2rem 0; }
.news-full h2 { margin: .1rem 0 .4rem; font-size: 1.3rem; }
.news-full h2 a { text-decoration: none; }
.news-body p:last-child { margin-bottom: 0; }
.post time { color: var(--muted); font-size: .9rem; }
.post h1 { margin-top: .2rem; }

/* Research index, join */
.theme-summary { padding-block: 1rem; border-top: 1px solid var(--line); }
.theme-summary h2 a { text-decoration: none; }
.theme-meta { font-size: .92rem; color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.subnav a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.audience { padding-top: .5rem; }
.audience ul, .audience ol { padding-left: 1.3rem; }
.audience li { margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--green-dark); color: #dfe9e5; margin-top: 2rem; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.footer-meta { flex-basis: 100%; opacity: .75; font-size: .82rem; }

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero-banner-inner { gap: 1rem; padding-block: 1.9rem; }
  .hero-banner-title { line-height: 1.12; }
  .hero-banner-topics { margin-top: .7rem; font-size: .8rem; }
  .hero-banner-topics .sep { padding-inline: .3rem; }
  .hero-banner-shield { height: 74px; }
  .site-header-compact .hero-banner-inner { padding-block: 1.1rem; }
  .site-header-compact .hero-banner-shield { height: 54px; }
  .pub { grid-template-columns: 1fr; gap: .3rem; }
  .award { grid-template-columns: 1fr; gap: .3rem; }
  .person { grid-template-columns: 96px 1fr; gap: .8rem; }
  .news-list time { display: block; min-width: 0; }
}
