/* Theme layer (al-folio direction). Swap this file and templates/base.html to change the look. */
:root {
  --bg: #ffffff; --bg-alt: #f6f7f6; --text: #212529; --muted: #6c757d; --rule: #e6e6e6;
  --accent: #2D6A4F; --accent-soft: rgba(45, 106, 79, .10);
  --body: 'Roboto', system-ui, -apple-system, sans-serif; --head: 'Roboto', system-ui, sans-serif; --slab: 'Roboto Slab', Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1c1c1d; --bg-alt: #242526; --text: #e5e5e5; --muted: #a0a0a0; --rule: #333; --accent: #6fc39a; --accent-soft: rgba(111, 195, 154, .14); }
}
:root[data-theme="dark"] { --bg: #1c1c1d; --bg-alt: #242526; --text: #e5e5e5; --muted: #a0a0a0; --rule: #333; --accent: #6fc39a; --accent-soft: rgba(111, 195, 154, .14); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 300; font-size: 1rem; line-height: 1.65; }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
strong { font-weight: 500; }

.navbar { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; min-height: 56px; }
.brand { color: var(--text); font-size: 1.15rem; font-weight: 300; } .brand .first { font-weight: 700; color: var(--accent); }
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; font-size: .95rem; }
nav a { color: var(--text); } nav a.active { color: var(--accent); font-weight: 500; }
.theme-toggle { background: none; border: 0; color: var(--text); font-size: 1.05rem; cursor: pointer; padding: 0 .2rem; }

main { padding: 2.5rem 16px 4rem; }
h1 { font-family: var(--head); font-weight: 300; font-size: 2.4rem; margin: 0 0 .75rem; }
h2 { font-family: var(--head); font-weight: 400; font-size: 1.45rem; color: var(--accent); margin: 2.5rem 0 .9rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); }
h3 { font-family: var(--head); font-weight: 500; font-size: 1.1rem; margin: 1.2rem 0 .3rem; }
p, ul, ol { margin: 0 0 1rem; } ul, ol { padding-left: 1.25rem; }
.lede { font-size: 1.12rem; color: var(--text); } .hero h1 span { color: var(--accent); font-weight: 500; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); margin-bottom: .2rem; font-weight: 500; }
.note, .credit { color: var(--muted); font-style: italic; } .facts { font-weight: 400; }

table.news { width: 100%; border-collapse: collapse; }
table.news th { text-align: left; vertical-align: top; white-space: nowrap; font-weight: 500; color: var(--muted); padding: .45rem 1.25rem .45rem 0; width: 9.5rem; font-size: .92rem; }
table.news td { padding: .45rem 0; }
table.news tr + tr th, table.news tr + tr td { border-top: 1px solid var(--rule); }

.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: .25rem 2rem; }
.theme h3 { margin-top: .6rem; } .theme p { color: var(--muted); margin-bottom: .4rem; }

h3.year { font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--muted); text-align: left; border: 0; margin: 1.2rem 0 .25rem; }
.pubnote.cvlink { margin-top: 2rem; font-style: normal; }
.pubnote { font-size: .85rem; font-style: italic; color: var(--muted); margin: .2rem 0 .6rem; }
ol.bib { list-style: none; padding: 0; margin: 0 0 1rem; }
ol.bib li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.badge { align-self: start; justify-self: start; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 500; padding: .2rem .5rem; border-radius: 3px; text-align: center; min-width: 6rem; }
:root[data-theme="dark"] .badge { color: #10261b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #10261b; } }
.badge.empty { background: transparent; }
.entry { font-size: .95rem; } .status { display: inline-block; margin-left: .4rem; font-size: .78rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 .35rem; }

.cards { list-style: none; padding: 0; margin: 0; }
.cards li a { display: block; padding: .9rem 0; border-top: 1px solid var(--rule); color: var(--text); }
.cards li a:hover { text-decoration: none; } .cards strong { display: block; color: var(--accent); font-size: 1.1rem; }
.cards span { color: var(--muted); }

.button { display: inline-block; padding: .45rem .9rem; border-radius: 4px; border: 1px solid var(--accent); color: var(--accent); font-weight: 400; margin: .25rem .5rem .25rem 0; }
.button:hover { background: var(--accent-soft); text-decoration: none; }

.program { list-style: none; padding: 0; }
.program li { display: grid; grid-template-columns: 4.2rem 2rem 1fr auto; gap: .5rem; padding: .6rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.program .t { color: var(--muted); font-variant-numeric: tabular-nums; } .program .n { color: var(--accent); font-weight: 500; }
.program .title { display: block; font-weight: 400; } .program .who { display: block; color: var(--muted); font-size: .9rem; }
.program .slot { background: var(--bg-alt); } .program .slot .t { padding-left: .4rem; } .program .min { color: var(--muted); font-size: .88rem; padding-right: .4rem; }

.app-container { margin: 1rem 0 2rem; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.app-frame { width: 100%; height: 900px; border: 0; display: block; }
.metrics-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.metric-category { padding: .9rem 1rem; background: var(--bg-alt); border-radius: 6px; }
.contact form { display: grid; gap: .8rem; max-width: 520px; } .contact label { display: block; font-weight: 400; }
.contact input, .contact textarea { width: 100%; padding: .5rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; }
.contact textarea { min-height: 130px; }
.contact button { justify-self: start; padding: .5rem 1.1rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }

.footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; padding: 1.25rem 0; text-align: center; }
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; } .themes { grid-template-columns: 1fr; }
  ol.bib li { grid-template-columns: 1fr; gap: .35rem; }
  table.news th { width: auto; display: block; padding-bottom: 0; } table.news td { display: block; padding-top: .1rem; }
  table.news tr + tr th { border-top: 1px solid var(--rule); } table.news tr + tr td { border-top: 0; }
  .program li { grid-template-columns: 3.4rem 1fr; } .program .n { display: none; } .program .min { grid-column: 2; }
  .app-frame { height: 700px; }
}

/* MOOSE banner, after the green welcome slide */
.moose-banner { position: relative; margin: 0 calc(50% - 50vw) 1.75rem; width: 100vw; background: #00664f url('/static/moose_weave.png') no-repeat right -70px center / 340px auto; border-top: 6px solid #74c69d; color: #fff; overflow: hidden; }
.moose-banner .inner { max-width: 800px; margin: 0 auto; padding: 2rem 16px; display: flex; align-items: center; gap: 1.75rem; }
.moose-banner .text { max-width: 470px; }
.moose-banner .kicker { color: #9be3c0; margin: 0 0 .25rem; }
.moose-banner h1 { color: #fff; margin: 0 0 .35rem; }
.moose-banner .lede { color: #fff; margin: 0 0 .6rem; }
.moose-banner .facts { color: #e6f4ec; margin: 0; }
@media (max-width: 900px) { .moose-banner { background-size: 240px auto; background-position: right -90px center; } }
@media (max-width: 640px) { .moose-banner { background-image: none; } .moose-banner .inner { gap: 1rem; padding: 1.5rem 16px; } }
.page-events-moose { overflow-x: clip; }
.page-events-moose main { padding-top: 0; padding-bottom: 0; }
.moose-closing { margin: 3rem calc(50% - 50vw) 0; width: 100vw; background: #00664f; border-top: 6px solid #74c69d; padding: 2.5rem 16px; text-align: center; }
.moose-closing img { width: 260px; height: 260px; display: inline-block; vertical-align: middle; }
@media (max-width: 640px) { .moose-closing img { width: 180px; height: 180px; } }
.links { padding-left: 1.2rem; } .links li { margin: .3rem 0; }
pre { background: var(--bg-alt); border: 1px solid var(--rule); padding: .8rem 1rem; overflow-x: auto; border-radius: 4px; font-size: .85rem; line-height: 1.45; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
table.spec { border-collapse: collapse; margin: .6rem 0 1rem; }
table.spec th { text-align: left; font-weight: 500; vertical-align: top; padding: .3rem 1.25rem .3rem 0; white-space: nowrap; }
table.spec td { padding: .3rem 0; }
table.spec tr + tr th, table.spec tr + tr td { border-top: 1px solid var(--rule); }
@media (max-width: 600px) { table.spec th { white-space: normal; } }
.expansion { color: var(--muted); font-size: 1rem; margin: -.2rem 0 .9rem; }
.people-key .person { display: grid; grid-template-columns: 188px 1fr; gap: 1.4rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.people-key .person:first-child { border-top: 0; }
.people-key h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.people-key .now { margin: 0; font-weight: 500; } .people-key .edu { margin: .1rem 0 .6rem; color: var(--muted); font-size: .92rem; }
.headshot { width: 188px; height: 188px; object-fit: cover; border-radius: 6px; display: block; }
.people-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem 1.5rem; }
.people-grid strong, .people-grid span.role, .people-grid span.proj { display: block; }
.people-grid .role { color: var(--muted); font-size: .85rem; } .people-grid .proj { font-size: .88rem; margin-top: .15rem; }
.people-grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem 1.2rem; }
@media (max-width: 600px) { .people-key .person { grid-template-columns: 1fr; } }
.headshot.initials { display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border: 1px solid var(--rule); color: var(--muted); font-weight: 500; font-size: 1.4rem; }
.people-key .edu { margin: .1rem 0 0; }
.people-key.fellows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; border-top: 1px solid var(--rule); }
.people-key.fellows .person { grid-template-columns: 110px 1fr; border-top: 0; gap: 1rem; }
.people-key.fellows .headshot { width: 110px; height: 110px; }
@media (max-width: 600px) { .people-key.fellows { grid-template-columns: 1fr; } .people-key.fellows .person { grid-template-columns: 110px 1fr; } }
.people-key .person { align-items: center; }
blockquote { margin: .6rem 0; padding: .6rem 1rem; background: var(--bg-alt); border-left: 3px solid var(--accent); }
@media (max-width: 640px) { nav { gap: .7rem; font-size: .86rem; flex-wrap: nowrap; } nav a { white-space: nowrap; } .theme-toggle { padding: 0; } }
@media (max-width: 360px) { nav { gap: .5rem; font-size: .8rem; } }
a.plain, a.plain:hover, a.plain:focus { color: inherit; text-decoration: none; }
/* Templates grid on the resources page */
.tgrid { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tgrid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tgrid li { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.tgrid strong { font-weight: 500; line-height: 1.3; }
.tgrid span { color: var(--muted); }
.tgrid .thumb { background: #ffffff; border: 1px solid var(--rule); border-radius: 6px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: .6rem; overflow: hidden; }
.tgrid.wide .thumb { padding: 0; }
.tgrid .thumb.dark { background: #00664F; border-color: #00664F; }
.tgrid .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.tgrid.wide .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.swatches { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.swatches li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.swatches span { width: 1.6rem; height: 1.6rem; border-radius: 4px; border: 1px solid var(--rule); display: inline-block; }
