/* mica lab site theme. Design notes: DESIGN.md */

:root {
  --charcoal: #3D3B3E;
  --grey: #5E5759;
  --rose: #A8505A;
  --pink: #F5C4C4;
  --blush: #FCEDED;
  /* Laid over blush bands: pale where the text sits on the left, warming to pink on the right.
     It runs across, not down, so stacked bands line up without a seam. */
  --blush-tint: linear-gradient(to right, rgba(245, 196, 196, 0) 25%, rgba(245, 196, 196, .4));
  --line: #F0DCDC;
  --gutter: max(16px, 3vw);
  --head: "Century Gothic", "Questrial", sans-serif;
  --body: Corbel, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--grey);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; font-weight: 700; }

a { color: var(--rose); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: calc(1140px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); } /* 1140px content column, centred */
.blush { background: var(--blush); }
/* Bands are translucent with a soft fade, so the background waveform shows through */
main .blush { background: var(--blush-tint), linear-gradient(to bottom, rgba(252, 237, 237, .8), rgba(252, 237, 237, .45)); }
main .titleband.blush { background: var(--blush-tint), rgba(252, 237, 237, .8); } /* no top-to-bottom fade, so it joins the band below without a seam */

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* ---------- Nav (built by nav.js) ---------- */
.nav { background: #fff; border-bottom: 1px solid #eee5e5; position: relative; z-index: 10; }
.nav .bar { display: flex; align-items: center; height: 64px; }
.nav .logo img { height: 26px; width: auto; }
.nav ul { display: flex; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 4px; }
.nav li a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--head); font-size: 16px; color: var(--charcoal); text-decoration: none;
}
.nav li a:hover { background: var(--blush); }
.nav li a[aria-current="page"] { background: var(--blush); color: var(--rose); }
.nav .menu {
  display: none; margin-left: auto; background: none; border: 0; padding: 8px;
  font-size: 22px; color: var(--charcoal); cursor: pointer;
}
@media (max-width: 700px) {
  .nav .menu { display: block; }
  .nav ul { display: none; }
  .nav.open ul {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
    background: #fff; border-bottom: 1px solid #eee5e5; padding: 8px var(--gutter) 16px;
  }
}

/* ---------- Page structure ---------- */
main { position: relative; }
main section, main header { position: relative; }
main section > .wrap, main header > .wrap { position: relative; z-index: 1; }
section { padding: 36px 0; }
section h2 { text-align: center; margin-bottom: .8em; }

/* Faint waveform stretched behind the whole page (all pages except Publications) */
.pagewave {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(/images/waves/page-band.svg) no-repeat center / 100% 100%;
  opacity: .28;
}
/* A band that should sit above the page waveform */
section.above { z-index: 1; }

.titleband { padding: 32px 0 0; }
.titleband h1 { margin: 0; }
.titleband .sub { font-family: var(--head); color: var(--charcoal); font-size: 1.15rem; margin: .3em 0 0; }

.btn {
  display: inline-block; margin-top: 10px; padding: 10px 22px; border-radius: 12px;
  background: var(--charcoal); color: #fff; text-decoration: none; font-weight: 700;
}
.btn:hover { background: var(--rose); }
.btn.ghost { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: #fff; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Home ---------- */
.herozone { position: relative; overflow: hidden; } /* the landing hero and banner band sit over one waveform */
.home-hero { padding: 72px 0 64px; }
.herozone .herowave {
  position: absolute; inset: 0; pointer-events: none;
  background: url(/images/waves/page-band.svg) no-repeat center / 100% 100%;
  opacity: .35;
}
.home-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; margin: 0 0 .25em; }
.home-hero .lede { font-family: var(--head); color: var(--charcoal); font-size: 1.25rem; margin: 0 0 1.2em; }
.home-hero .about { max-width: 40em; margin: 0; font-size: 17px; }
/* The whole collage, in the content column on a blush band, toned to the palette
   (partly greyscale with a pink tint, so some colour comes through). On phones it keeps a readable height and scrolls sideways. */
.bannerband { padding: 28px 0; }
.banner { position: relative; z-index: 1; }
.banner { overflow-x: auto; border-radius: 12px; }
.banner .bin { position: relative; } /* sized to the image, so the tint scrolls with it on phones */
.banner img { width: 100%; height: auto; filter: grayscale(.55) contrast(.9) brightness(1.05); }
.banner .bin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--pink); mix-blend-mode: multiply; opacity: .4; }
@media (max-width: 700px) {
  .banner .bin { width: max-content; }
  .banner img { width: auto; max-width: none; height: 150px; }
}

/* Previews of the other pages, filled by previews.js */
.preview { padding: 48px 0; }
.pvhead { margin-bottom: 18px; }
.pvhead h2 { margin: 0; text-align: left; }
/* Each preview is cut off with a fade (a mask, so the waveform shows through), to show there is more on the full page */
.pvclip.loaded { position: relative; max-height: var(--pv-h); overflow: hidden; }
.pvclip.loaded {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
}
/* A different slide waveform, very faint, behind each preview */
.pvwave {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: no-repeat center / 100% 100%; opacity: .28;
}
@media (max-width: 700px) { .pvwave { opacity: .16; } }
@media (max-width: 700px) { .pvclip.loaded { max-height: var(--pv-h-sm); } }
.pvmore { text-align: center; margin: 14px 0 0; }
.pvclip .people + .people { margin-top: 32px; }
.pvmore a {
  display: inline-block; font-family: var(--head); font-size: 17px; text-decoration: none;
  color: var(--rose); border: 2px solid var(--rose); border-radius: 999px; padding: 6px 20px;
}
.pvmore a:hover { background: var(--rose); color: #fff; }
.pvmore a i { font-size: .85em; margin-left: 4px; }
.preview .logos { margin-top: 24px; }
.preview .ptiles { padding-top: 4px; } /* room for the focus ring */

/* ---------- People ---------- */
.people {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px 20px; text-align: center;
}
.people > div { width: calc((100% - 4 * 20px) / 5); }
.people .disc {
  max-width: 140px; aspect-ratio: 1; margin: 0 auto 10px;
  border-radius: 50%; padding: 5px; background: var(--pink);
}
.blush .people .disc { background: #fff; }
.people .disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.people b { display: block; color: var(--charcoal); font-family: var(--head); font-size: 1.05rem; }
.people span { display: block; font-size: 15px; line-height: 1.4; margin-top: 2px; }
.people.small > div { width: calc((100% - 5 * 20px) / 6); }
.people.small .disc { max-width: 110px; padding: 4px; }
.people.small b { font-size: 1rem; }
@media (max-width: 900px) {
  .people > div, .people.small > div { width: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 600px) {
  .people > div, .people.small > div { width: calc((100% - 20px) / 2); }
}

/* ---------- Video with audio description (project pages) ---------- */
.video { max-width: 1000px; margin: 0 auto; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ad { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.ad b { font-family: var(--head); color: var(--charcoal); }
details.adtext { margin-top: 12px; background: #fff; border-radius: 12px; padding: 14px 20px; }
details.adtext summary { cursor: pointer; font-family: var(--head); color: var(--charcoal); font-weight: 700; }
details.adtext p { margin: .8em 0 0; }
.lede-big {
  font-family: var(--head); color: var(--charcoal);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; max-width: 820px; margin: 0 auto 1em;
}
.prose { max-width: 820px; margin: 0 auto; }
.diagram { max-width: 1100px; margin: 0 auto; }
.diagram img { width: 100%; }

/* ---------- Projects ---------- */
/* Grid of square tiles; the name shows on hover or focus (always on touch screens) */
.ptiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ptiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ptiles { gap: 12px; } }
.ptile {
  position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden;
  padding: 0; border: 0; border-radius: 12px; background: #fff; cursor: pointer; font: inherit;
}
.ptile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.55) contrast(.9) brightness(1.05); transition: transform .4s, filter .4s;
}
/* Toned like the landing banner: part greyscale under a pink wash; full colour on hover or focus */
.ptile:has(img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--pink); mix-blend-mode: multiply; opacity: .4; transition: opacity .4s;
}
.ptile:hover img, .ptile:focus-visible img { filter: none; }
.ptile:hover::after, .ptile:focus-visible::after { opacity: 0; }
.ptile.soon { background: linear-gradient(135deg, rgba(245, 196, 196, 0) 30%, rgba(245, 196, 196, .45)), var(--blush); border: 1px solid var(--line); }
.ptile.soon::before { /* the slide waveform, faint */
  content: ""; position: absolute; inset: 0; background: var(--wave) no-repeat center / 100% 100%; opacity: .3;
}
.ptile .psoon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--head); color: var(--grey); font-size: 1.05rem;
}
.ptile .pname {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  background: rgba(61, 59, 62, .62); color: #fff; font-family: var(--head); font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  opacity: 0; transition: opacity .25s; z-index: 1;
}
.ptile:hover .pname, .ptile:focus-visible .pname { opacity: 1; }
.ptile:hover img, .ptile:focus-visible img { transform: scale(1.04); }
.ptile:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
@media (hover: none) {
  .ptile .pname { opacity: 1; inset: auto 0 0 0; padding: 10px 12px; font-size: 1rem; }
  .ptile.soon .pname { background: rgba(61, 59, 62, .45); }
}
@media (prefers-reduced-motion: reduce) { .ptile img, .ptile .pname, .ptile::after { transition: none; } }

/* A project page: also what the pop-up shows */
.projhead h1 i, .projhead h2 i { margin-right: .07em; } /* stop the italic "In" crowding the "t" */
.projhead .back { margin-bottom: 10px; }
/* Title on the left, a bold "Read more" button on the right (it drops below on narrow screens) */
.projtitle { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; }
/* Right of the title: Read more (pop-up only) above the funder's logo */
.projside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.funderlogo { height: 56px; width: auto; }
@media (max-width: 600px) { .projside { flex-direction: row; align-items: center; } .funderlogo { height: 44px; } }
/* In the pop-up: title, then the logo centred in the space, then Read more on the right */
.pop .projtitle { align-items: center; }
.pop .projside { flex: 1; flex-direction: row-reverse; align-items: center; }
.pop .funderlogo { margin: 0 auto; }
@media (max-width: 600px) { .pop .projside { flex: none; flex-direction: row; } .pop .funderlogo { margin: 0; } }
.readmore { display: none; } /* the full page is already here */
.pop .readmore {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border: 2px solid var(--rose); border-radius: 999px; background: var(--rose); color: #fff;
  font-family: var(--head); font-size: 17px; font-weight: 700; text-decoration: none;
}
.pop .readmore:hover, .pop .readmore:focus-visible { background: #fff; color: var(--rose); }
.readmore i { font-size: .85em; }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; max-width: 820px; margin: 0 auto; }
.credits h2, .credits h3 { text-align: left; margin: 0 0 .5em; font-size: 1.35rem; }
.credits ul { list-style: none; margin: 0; padding: 0; }
.credits li { margin: 0 0 10px; }
/* Each collaborator or funder: a small logo tile, then the name */
.credits li a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.credits li a:hover { text-decoration: underline; }
.clogo {
  flex: none; display: flex; align-items: center; justify-content: center; width: 84px; height: 48px; padding: 6px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.clogo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.clogo img.pale { filter: url(#ink); }
.credits li a:hover .clogo, .credits li a:focus-visible .clogo { border-color: var(--rose); }
.credits li a:hover img, .credits li a:focus-visible img { filter: none; opacity: 1; }
.credits .grant { display: block; margin: 4px 0 0 98px; font-size: 14px; }
@media (max-width: 600px) { .credits { grid-template-columns: 1fr; } }
.projpubs { max-width: 1000px; margin: 0 auto; }

/* The pop-up: the copied blocks stack as alternating blush and white bands */
html:has(.pop[open]) { overflow: hidden; }
.pop {
  width: min(1000px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 48px); padding: 0;
  border: 0; border-radius: 16px; background: #fff; color: var(--grey);
  box-shadow: 0 20px 60px rgba(61, 59, 62, .3); overflow-y: auto; overscroll-behavior: contain;
}
.pop::backdrop { background: rgba(61, 59, 62, .55); }
.pop-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -52px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rose);
  background: #fff; color: var(--rose); font-size: 1.1rem; cursor: pointer;
}
.pop-close:hover, .pop-close:focus-visible { background: var(--rose); color: #fff; }
.pop-close:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.pop-body > [data-from] > * { padding-left: 40px; padding-right: 40px; }
.pop-body .projhead { background: var(--blush-tint), var(--blush); padding-top: 28px; padding-bottom: 20px; padding-right: 72px; }
.pop-body .projhead h2 { margin: 0; text-align: left; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.pop-body .video { background: var(--blush-tint), var(--blush); padding-bottom: 28px; max-width: none; }
.pop-body .prose { max-width: none; padding-top: 28px; padding-bottom: 12px; }
.pop-body .lede-big { margin: 0 0 .6em; max-width: none; }
.pop-body .credits { max-width: none; background: var(--blush-tint), var(--blush); padding-top: 24px; padding-bottom: 24px; }
.pop-body > div > :last-child { padding-top: 24px; padding-bottom: 32px; }
.pop-body > div > :last-child > h3 { text-align: left; margin: 0 0 .3em; font-size: 1.35rem; }
.pop-body .projpubs { padding: 0; max-width: none; }
.pop-wait, .pop-soon { padding: 40px; margin: 0; }
.pop-soon h2 { text-align: left; margin-top: 0; }
@media (max-width: 600px) {
  .pop { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .pop-body > [data-from] > * { padding-left: 16px; padding-right: 16px; }
  .pop-body .projhead { padding-right: 64px; }
  .pop-wait, .pop-soon { padding: 56px 16px 24px; }
}

/* ---------- Publications ---------- */
.tools {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
}
.tools .wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.tools .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tools .lbl { font-family: var(--head); color: var(--charcoal); font-size: 15px; min-width: 64px; }
.chip {
  font: inherit; font-size: 14px; color: var(--charcoal); background: #fff;
  border: 1.5px solid #ead3d3; border-radius: 999px; padding: 3px 12px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chip .n { color: var(--grey); font-size: 12px; margin-left: 4px; }
.chip[aria-pressed="true"] .n { color: var(--pink); }
@media (max-width: 700px) { .tools { position: static; } .tools .lbl { min-width: 0; width: 100%; } }

/* Scholar-style list: thumbnail | title, authors, venue, labels | links | year */
.shead, .srow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 90px 48px; gap: 0 16px; }
.shead {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey);
  border-bottom: 1px solid #e3d2d2; padding: 10px 0 6px;
}
.srow { padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.srow.off { display: none; }
.srow .thumb img {
  width: 52px; height: 52px; object-fit: cover; object-position: top;
  border-radius: 6px; border: 1px solid #eadede; background: #fff;
}
.srow .ti { display: block; color: var(--rose); text-decoration: none; line-height: 1.3; font-size: 17px; }
.srow .ti:hover { text-decoration: underline; }
.srow .au, .srow .ve, .srow .yr { color: #7a7375; font-size: 14px; line-height: 1.35; }
.srow .au { margin-top: 3px; }
.srow .vy { display: none; } /* year repeated in the venue line on phones only */
.srow .labels { margin-top: 5px; }
.srow .lk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13.5px; }
.srow .lk a { display: inline-flex; gap: 6px; align-items: center; color: var(--rose); text-decoration: none; }
.srow .lk a:hover { text-decoration: underline; }
.srow .lk i { width: 14px; text-align: center; font-size: 12px; }
.more-btn {
  font: inherit; font-size: 13px; color: var(--rose); background: none; border: 0;
  padding: 0 2px; cursor: pointer; text-decoration: underline;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding: 0 8px;
  font-size: 12.5px; color: var(--rose); border: 1px solid #e3b8bd; border-radius: 999px;
}
@media (max-width: 700px) {
  .shead { display: none; }
  .srow { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
  .srow .thumb img { width: 44px; height: 44px; }
  .srow .lk { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .srow .yr { display: none; }
  .srow .vy { display: inline; }
}

/* ---------- Contact ---------- */
.contact-card { background: #fff; border-radius: 12px; padding: 28px 32px; }
.contact-card address { font-style: normal; font-size: 1.15rem; line-height: 1.6; color: var(--charcoal); }
.contact-card .line { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 1.1rem; }
.contact-card .line i { width: 22px; text-align: center; color: var(--rose); font-size: 1.2rem; }
.contact-card .btns { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.contact-card .btns .btn { margin-top: 0; }
.sketch { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; }
.sketch img { width: 100%; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logos a {
  display: flex; align-items: center; justify-content: center; height: 120px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.logos a:hover, .logos a:focus-visible { border-color: var(--rose); }
.logos img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s;
}
.logos img.pale { filter: url(#ink); } /* pale logos: darken mid-tones, keep white */
.logos a:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logos img { transition: none; } }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos a { height: 96px; } }

/* ---------- Values (values/index.html, values/story/index.html) ---------- */
.vswitch { display: inline-flex; margin-top: 18px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.vswitch button {
  font: inherit; font-family: var(--head); font-size: 16px; color: var(--charcoal);
  background: none; border: 0; border-radius: 999px; padding: 6px 18px; cursor: pointer;
}
.vswitch button[aria-pressed="true"] { background: var(--charcoal); color: #fff; }
.vintro { padding-top: 20px; }
.vintro p { max-width: 40em; margin: 0 0 .4em; }
.values { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.values li { display: flex; gap: 28px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.values li:last-child { border-bottom: 0; }
.values .vicon { width: 72px; height: 72px; flex: none; }
.values h2 { text-align: left; margin: 0 0 .3em; font-size: 1.45rem; }
.values h2 .num { color: var(--rose); }
.values p { margin: 0; }
.easy { font-size: 21px; line-height: 1.5; }
.easy .vintro p { margin: 0 0 .5em; }
.easy .values .vicon { width: 104px; height: 104px; }
.easy .values p { margin: 0 0 .5em; }
.reading { padding-top: 0; background: #fff; z-index: 1; } /* covers the page waveform so the list reads cleanly */
.refs { max-width: 900px; padding: 28px 0 0 100px; border-top: 1px solid var(--line); } /* lines up with the value text, past the icons */
.refs h2 { text-align: left; font-size: 1.3rem; }
.refs ul { list-style: none; margin: 0; padding: 0; }
.refs li { font-size: 16px; line-height: 1.4; margin: 0 0 .25em; }
.refs li:target, .notes li:target { background: #fff; border-radius: 6px; }
.notes h2 { text-align: left; font-size: 1.3rem; }
.notes ol { margin: 0; padding-left: 1.3em; }
.notes li { font-size: 16px; line-height: 1.5; }
.fnref { line-height: 0; }
.fnref a { text-decoration: none; padding: 0 2px; }
.back { margin: 0; }
.back a { text-decoration: none; font-family: var(--head); }
.back a:hover { text-decoration: underline; }
.story p:first-child { margin-top: 0; }
@media (max-width: 600px) {
  .refs { padding-left: 0; }
  .values li { gap: 16px; }
  .values .vicon { width: 52px; height: 52px; }
  .easy .values li { flex-direction: column; gap: 10px; }
  .easy .values .vicon { width: 80px; height: 80px; }
}

/* ---------- Footer (built by footer.js) ---------- */
.site-footer { background: #fff; border-top: 1px solid #eee5e5; padding: 32px 0; }
.site-footer .row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-footer .uwe { height: 56px; width: auto; }
.site-footer .mark { height: 26px; width: auto; }
.site-footer .social a { color: var(--charcoal); font-size: 20px; margin-right: 16px; text-decoration: none; }
.site-footer .social a:hover { color: var(--rose); }
.site-footer .partners { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.site-footer .partners img { height: 36px; width: auto; }
@media (max-width: 700px) { .site-footer .partners { margin-left: 0; } }

/* Waveforms get squeezed tall on phones, so keep them fainter there */
@media (max-width: 700px) {
  .herozone .herowave { opacity: .18; }
  .pagewave { opacity: .16; }
}
