/* Source Serif 4 (Adobe, SIL Open Font License 1.1, see fonts/OFL-SourceSerif4.txt),
   self-hosted: latin subset, variable weight 400-700 and optical size 8-60. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2?v=2a24bad466") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Eschweiler & Potashnik LLC — design tokens.
 *
 * Same token names and structure as the E&P Labs site (epiplabs_site,
 * assets/tokens.css, copied from the Shell Portal app), so the two sites
 * share one component vocabulary. The values are the firm's own: the
 * primary is the blue of the firm's E&P monogram (#004394, sampled from
 * the logo file on the former Squarespace site), on cool slate neutrals.
 *
 * Light only (owner 2026-10-21): the site looks the same for everyone and
 * prints cleanly.
 */

:root {
  --brand: #004394;              /* monogram blue, exact */

  --background: #ffffff;
  --foreground: #121826;
  --card: #ffffff;
  --card-foreground: #121826;
  --primary: #004394;            /* 9.4:1 on white */
  --primary-foreground: #ffffff;
  --secondary: #f3f5f9;
  --secondary-foreground: #1b2333;
  --muted: #f3f5f9;
  --muted-foreground: #556074;   /* 6.3:1 on white, 5.8:1 on --secondary */
  --border: #e1e6ee;
  --input: #e1e6ee;
  --ring: #004394;
  --radius: 0.625rem;
}


/*
 * Eschweiler & Potashnik LLC — site stylesheet (direction A, "Classic",
 * owner-approved 2026-10-21). Light only: the site looks the same for every
 * visitor and prints cleanly.
 *
 * Type: Source Serif 4 (self-hosted, assets/fonts.css) for headings; the
 * system sans for body text, the same stack as epiplabs.com.
 * Colour: ink navy headings, ink body text, and the firm's monogram blue
 * (#004394) as the one interactive colour: buttons, underlines, the nav
 * indicator, focus. The E&P Labs blue (#155dfc) appears only on the E&P Labs
 * card. Ruled lists rather than boxed cards.
 */

/* ---------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink: #0d1b33;
  --text-muted: #556074;     /* 6.3:1 on white, 5.8:1 on --subtle */
  --text-body: #2a3344;      /* body paragraphs: 12.6:1 on white */
  --brand-dark: #003377;     /* hover on the firm blue */
  --labs: #155dfc;           /* E&P Labs blue: used ONLY inside the Labs card */
  --rule: #d9dee6;
  --subtle: #f3f5f9;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype",
    Georgia, serif;

  --header-h: 68px;
  --section-y: clamp(48px, 6vw, 88px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

strong {
  font-weight: 650;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------------------------------------------------------------------
 * Header / nav
 * ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 37px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

/* Stacked wordmark in the monogram blue, as in the firm's own logo lockup. */
.brand-name strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.08;
  color: var(--brand);
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close,
.site-header.nav-open .nav-toggle .icon-menu {
  display: none;
}

.site-header.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ---------------------------------------------------------------------
 * Buttons and links
 * ------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fff;
}

.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--brand);
}

.ext::after {
  content: " \2197";
  font-size: 0.85em;
}

/* ---------------------------------------------------------------------
 * Page head (every page but Home)
 * ------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(36px, 4.4vw, 56px) clamp(28px, 3.2vw, 40px);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem);
  font-variation-settings: "opsz" 60;
  line-height: 1.06;
  max-width: 20ch;
  margin: 0;
}

.page-head .lede {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-body);
}

.page-head .actions {
  margin-top: 28px;
}

.breadcrumb {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
 * Sections: a narrow heading column beside the content
 * ------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-alt {
  background: var(--subtle);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}

.side h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem);
  margin: 0 0 14px;
}

.side p {
  margin: 0;
  color: var(--text-body);
  max-width: 26rem;
}

.side p + p {
  margin-top: 12px;
}

.side-wide {
  margin-bottom: 28px;
}

.side-wide p {
  max-width: 44rem;
}

.ruled h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.label {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
}

/* ---------------------------------------------------------------------
 * Prose
 * ------------------------------------------------------------------- */
.prose {
  max-width: 44rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
}

.prose .lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
}

.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  margin: 44px 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.3rem;
  display: grid;
  gap: 10px;
}

.prose .actions {
  margin-top: 28px;
}

/* Ruled list: the house alternative to cards */
.ruled {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
}

.ruled > li,
.ruled > div,
.ruled > article {
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule);
}

.ruled > :nth-child(-n+2) {
  border-top: 2px solid var(--ink);
}

.ruled h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.ruled p {
  margin: 0;
  color: var(--text-body);
}

.ruled-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ruled-3 > :nth-child(-n+3) {
  border-top: 2px solid var(--ink);
}

.ruled-1 {
  grid-template-columns: 1fr;
}

.ruled-1 > :nth-child(2) {
  border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------------------
 * Home (direction A)
 * ------------------------------------------------------------------- */
.a-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}

.a-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.a-hero-text {
  display: grid;
  gap: 28px;
  max-width: 44rem;
}

.a-hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 3.8vw, 4.1rem);
  font-variation-settings: "opsz" 60;
  line-height: 1.05;
  max-width: 21ch;
  margin: 0;
}

/* The firm's monogram exactly as drawn (traced to SVG from the firm's own
   files); the wordmark is in the header just above, so it is not repeated.
   Firm blue only; nothing of E&P Labs touches it. */
.a-mark {
  justify-self: end;
  width: min(100%, 260px);
}

.a-mark img {
  width: 100%;
}

/* Phones and tablets (where .a-mark is hidden) get the square mark above the H1. */
.a-mark-sm {
  display: none;
  width: 72px;
}

.a-lede {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-body);
}

.a-facts {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a-facts li {
  padding: 4px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.a-facts li + li {
  border-left: 1px solid var(--rule);
}

.a-facts li:first-child {
  padding-left: 0;
}

.a-facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.a-ind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 40px);
}

.a-ind-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
}

.a-ind-more {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
}

.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.head-row h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem);
  margin: 0;
}

.a-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
}

.a-members a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.m-name {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
}

.a-members a:hover .m-name {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.all-tile {
  aspect-ratio: 5 / 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
}

.all-count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.a-members-all a:hover .all-tile {
  background: var(--brand-dark);
}

.a-rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
}

.a-rec-list li {
  break-inside: avoid;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  color: var(--text-body);
}

.a-rec-list span {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}

/* Home: one quiet image band (a public-domain patent drawing in the firm
   blue) between Practice and Industries */
.image-band {
  margin: 0;
  background: var(--subtle);
  border-top: 1px solid var(--rule);
  padding-block: clamp(20px, 3vw, 36px) 14px;
}

.image-band img {
  width: min(100%, 760px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .image-band picture {
    display: block;
    padding-inline: 16px;
  }
}

.image-band figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.image-band + .section-alt {
  border-top: 1px solid var(--rule);
}

/* E&P Labs (Home): a light card. The 3px rule and the mark are the only
   E&P Labs blue on the firm's site. */
.labs-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  background: var(--subtle);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--labs);
  border-radius: 4px;
}

.labs-card h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  margin: 0 0 8px;
}

.labs-card p {
  margin: 0 0 16px;
  max-width: 40rem;
  color: var(--text-body);
}

.labs-inline h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Home: closing call to action (the address and phone are in the footer) */
.cta-strip {
  padding-block: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--rule);
}

.cta-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(24px, 4vw, 56px);
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  margin: 0;
  margin-right: auto;
}

.cta-tel {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
}

.cta-tel:hover {
  color: var(--brand);
}

/* ---------------------------------------------------------------------
 * Professionals
 * ------------------------------------------------------------------- */
.person-photo {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--subtle);
  border-radius: 3px;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  /* one tone for photos taken against different backdrops */
  filter: saturate(0.9) contrast(1.02);
}

.person-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  color: #fff;
  background: var(--brand);
}

.people-group + .people-group {
  margin-top: clamp(48px, 6vw, 72px);
}

.people-group h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  margin: 0 0 24px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
}

/* a group of exactly five: one row of five (see build.py grid_class) */
@media (min-width: 1081px) {
  .people-grid.fit-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 24px;
  }

  .people-grid.fit-5 .person-name {
    font-size: 1.08rem;
  }
}

.jump-row ul {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.95rem;
}

.jump-row a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--rule);
}

.jump-row a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

.person-card a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.person-name {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.25;
}

.person-card a:hover .person-name {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.person-title {
  display: block;
  margin-top: 2px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.staff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 20px;
}

.staff-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
 * Bio page: header (photo, name, title, credentials, contact), then text
 * ------------------------------------------------------------------- */
.bio {
  padding-block: clamp(32px, 4.5vw, 56px) clamp(48px, 6vw, 88px);
}

.print-meta {
  display: none;
}

.bio-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 46rem);
  gap: 0 64px;
  align-items: start;
}

/* sticky only where the whole column fits in the window */
@media (min-height: 820px) {
  .bio-aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

.bio-side {
  margin-top: 24px;
}

.bio-name {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.bio-name h1 {
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem);
  font-variation-settings: "opsz" 60;
  line-height: 1.06;
  margin: 0 0 8px;
}

.bio-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.bio-creds {
  margin: 0 0 22px;
  display: grid;
  gap: 2px;
  font-size: 0.95rem;
}

.bio-creds dt {
  font-weight: 600;
  color: var(--ink);
}

.bio-creds dd {
  margin: 0 0 10px;
  color: var(--text-body);
}

.bio-facts {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px 40px;
  font-size: 0.95rem;
}

.bio-facts dt {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.bio-facts dd {
  margin: 0 0 4px;
  color: var(--text-body);
  line-height: 1.5;
}

.bio-contact {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.bio-contact .btn {
  width: 100%;
}

.bio-contact .bio-tel {
  font-weight: 600;
  color: var(--ink);
}

.bio-email {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.confidential {
  margin: 14px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34rem;
}

.bio-text {
  max-width: none;
}

.bio-back {
  display: inline-block;
  margin-top: 24px;
}

/* ---------------------------------------------------------------------
 * News and resources
 * ------------------------------------------------------------------- */
.accolade-group + .accolade-group {
  margin-top: 32px;
}

.accolade-group h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.link-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plain-list li {
  color: var(--text-muted);
}

.link-list a {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.source-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.link-list + .plain-list,
.plain-list + .link-list {
  margin-top: 8px;
}

/* ---------------------------------------------------------------------
 * Contact page
 * ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 40px clamp(32px, 6vw, 88px);
  align-items: start;
}

.contact-grid h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem);
  margin: 0 0 24px;
}

.contact-details {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px 32px;
  font-size: 1.08rem;
}

.contact-details dt {
  font-weight: 600;
  color: var(--ink);
}

.contact-details dd {
  margin: 0;
}

.contact-details address {
  line-height: 1.6;
}

.contact-actions {
  margin-top: 32px;
}

.office-map {
  margin: 0;
}

.office-map img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.office-map figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.office-map figcaption .text-link {
  font-size: 1rem;
}

.office-map figcaption span a {
  color: var(--text-muted);
}

/* Careers */
.side-sticky {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.job p {
  color: var(--text-body);
}

.job-apply {
  margin: 16px 0 0 !important;
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 56px 40px;
}

.footer-grid address,
.footer-note,
.footer-serving {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.footer-serving {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.footer-labs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-grid .footer-note a,
.footer-grid .footer-labs a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 4px 0 14px;
  color: var(--ink);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a:not(.brand) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:not(.brand):hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-plain {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.disclaimer {
  margin: 0;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-block: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .people-grid,
  .a-members {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .a-ind-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Bio: one column below 960px, in reading order photo, name, credentials and
   contact, text (the two column wrappers stop generating boxes). */
@media (max-width: 959px) {
  .bio-grid {
    display: flex;
    flex-direction: column;
  }

  .bio-aside,
  .bio-main {
    display: contents;
  }

  .bio-aside .person-photo {
    order: 1;
    width: min(100%, 240px);
    margin-bottom: 24px;
  }

  .bio-name {
    order: 2;
  }

  .bio-side {
    order: 3;
    margin: 0 0 36px;
  }

  .bio-text {
    order: 4;
  }

  .bio-contact .btn {
    width: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .side-sticky {
    position: static;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .ruled-3 {
    grid-template-columns: 1fr;
  }

  .ruled-3 > :nth-child(n+2) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 900px) {
  .site-nav {
    margin-left: 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -20px rgb(13 27 51 / 0.35);
    padding: 8px 16px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
  }

  .nav-links a {
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links a[aria-current="page"] {
    border-bottom-color: var(--brand);
  }

  .site-header.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .a-hero-top,
  .two {
    grid-template-columns: 1fr;
  }

  .a-mark {
    display: none;
  }

  .a-mark-sm {
    display: block;
  }

  .labs-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .people-grid,
  .a-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .staff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 44px 32px;
  }

  .cta-strip h2 {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .a-facts {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .a-facts li,
  .a-facts li:first-child {
    padding: 14px 0;
  }

  .a-facts li + li {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .ruled {
    grid-template-columns: 1fr;
  }

  .ruled > :nth-child(2) {
    border-top: 1px solid var(--rule);
  }

  .a-rec-list {
    columns: 1;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-details dd {
    margin-bottom: 10px;
  }

  .bio-facts {
    grid-template-columns: 1fr;
  }

  .a-ind-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name strong {
    font-size: 1.08rem;
  }

  .btn {
    width: 100%;
  }

  .person-name {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
 * Print (bio pages above all): letterhead line, photo, name, credentials,
 * text; no navigation, buttons or footer columns.
 * ------------------------------------------------------------------- */
@media print {
  @page {
    margin: 18mm 16mm;
  }

  body {
    font-size: 10.5pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .site-header {
    position: static;
    border-bottom: 1px solid #999;
    backdrop-filter: none;
  }

  .site-nav,
  .nav-toggle,
  .skip-link,
  .breadcrumb,
  .bio-contact .btn,
  .bio-back,
  .actions,
  .footer-grid,
  .footer-bottom span:last-child,
  .footer-labs {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .print-meta {
    display: block;
    margin: 0 0 12pt;
    font-size: 9pt;
    color: #333;
  }

  .bio {
    padding: 14pt 0 0;
  }

  .bio-grid {
    display: grid;
    grid-template-columns: 42mm 1fr;
    gap: 8mm;
  }

  .bio-aside,
  .bio-main {
    display: block;
    position: static;
  }

  .bio-aside .person-photo {
    width: 100%;
    margin: 0;
  }

  .person-photo img {
    filter: none;
  }

  .bio-side {
    margin-top: 10pt;
  }

  .bio-contact {
    border-top: 0;
    padding-top: 0;
  }

  .confidential {
    display: none;
  }

  .bio-name {
    margin-bottom: 12pt;
    padding-bottom: 8pt;
    border-bottom: 1px solid #999;
  }

  .bio-name h1 {
    font-size: 22pt;
  }

  .bio-title,
  .bio-creds dd,
  .bio-email {
    color: #333;
  }

  .prose p,
  .prose li {
    orphans: 3;
    widows: 3;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .site-footer {
    margin-top: 18pt;
    background: none;
    border-top: 1px solid #999;
    break-inside: avoid;
  }

  .disclaimer {
    border: 0;
    color: #333;
  }
}


