/* =========================================================================
   CEES — Center for Emerging Energy Sciences
   Visual language modeled on the 2026 TTU A&S template: black/white/red,
   heavy uppercase display type, full-bleed heroes, flat cards.
   ========================================================================= */

:root {
  --red: #e90802;
  --red-dark: #b80601;
  --red-text: #c40600;      /* red for text links: 5.6:1 on white, 5.2:1 on --paper */
  --red-on-dark: #ff4a42;   /* red text on --ink: 5.2:1 */
  --black: #000;
  --ink: #1b1b1b;
  --charcoal: #333;
  --grey-1: #666;
  --grey-2: #757575;
  --grey-3: #b3b3b3;
  --line: #e2e2e2;
  --paper: #f6f6f6;
  --paper-2: #ededed;
  --white: #fff;

  --font-display: "Archivo", "Inter", Tahoma, sans-serif;
  --font-body: "Inter", Tahoma, sans-serif;

  --gutter: 48px;
  --maxw: 1440px;
  --shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 14px 24px rgba(0, 0, 0, 0.16);
}

@media (max-width: 900px) { :root { --gutter: 24px; } }
@media (max-width: 480px) { :root { --gutter: 16px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a { color: inherit; }
p a, li a, td a, .prose a { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; }
p a:hover, li a:hover, td a:hover, .prose a:hover { color: var(--red-dark); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--black); color: var(--white); padding: 12px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------- Display type ---------- */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.08;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(28px, 3.4vw, 44px); }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: clamp(20px, 1.9vw, 25px); }
h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 19px;
  margin: 1.6em 0 0.4em; line-height: 1.3;
}

/* Small "eyebrow" line above headings (red on dark, grey on light) */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.62em;
  letter-spacing: 0.02em;
  margin-bottom: 0.35em;
  color: var(--grey-1);
}
.dark .eyebrow { color: var(--red-on-dark); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark p { color: #e6e6e6; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px; align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }

.prose { max-width: 860px; }
.prose p, .prose li { color: var(--black); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.lead { font-size: 20px; line-height: 1.55; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 48px;
  padding: 8px 40px 8px 18px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  border: 0; cursor: pointer;
  background: var(--black); color: var(--white);
  transition: background-color .15s ease;
}
.btn::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn:hover { background: var(--charcoal); color: var(--white); }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-dark); }
.btn.white { background: var(--white); color: var(--black); }
.btn.white:hover { background: var(--paper-2); }
.btn.outline { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.outline:hover { background: rgba(127,127,127,.12); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.text-link {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--charcoal);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.text-link::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}

/* ---------- Utility bar + header ---------- */

.utility {
  background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 16px; }
.utility a { text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility nav { display: flex; gap: 20px; }
@media (max-width: 700px) { .utility .affil-long { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-stretch: 105%;
  font-size: 19px; line-height: 1.05; letter-spacing: -0.005em;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.01em; color: var(--grey-1); margin-top: 3px;
}

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav button {
  font: 500 15px/1 var(--font-body); color: var(--black); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 12px; min-height: 44px;
}
.main-nav .has-sub > button::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.main-nav .has-sub { position: relative; }
.main-nav .sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; left: 0; top: 100%; min-width: 260px;
  background: var(--white); box-shadow: var(--shadow-hover); border-top: 3px solid var(--red);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav .sub a { display: flex; width: 100%; padding: 10px 18px; font-size: 15px; }
.main-nav .sub a:hover { background: var(--paper); color: var(--red-text); }
.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub,
.main-nav .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .has-sub.open > button::after { transform: rotate(225deg); margin-top: 3px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > button:hover { color: var(--red); }
.main-nav .nav-cta a { background: var(--red); color: var(--white); padding: 12px 18px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 0.03em; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--red-dark); color: var(--white); }

/* Current-section indicator (body[data-section] set per page) */
body[data-section="about"] .main-nav [data-nav="about"],
body[data-section="research"] .main-nav [data-nav="research"],
body[data-section="capabilities"] .main-nav [data-nav="capabilities"],
body[data-section="services"] .main-nav [data-nav="services"],
body[data-section="instruction"] .main-nav [data-nav="instruction"] {
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
  font: 700 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; color: var(--black);
  align-items: center; gap: 10px; min-height: 44px;
}
.nav-toggle .bars { width: 22px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { min-height: 72px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover);
    max-height: calc(100vh - 104px); overflow-y: auto;
  }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .main-nav button { width: 100%; justify-content: space-between; padding: 14px var(--gutter); font-size: 17px; }
  .main-nav .sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: var(--paper); padding: 4px 0; }
  .main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { display: none; }
  .main-nav .has-sub.open > .sub { display: block; }
  .main-nav .sub a { padding: 12px calc(var(--gutter) + 16px); }
  .main-nav .nav-cta { border-bottom: 0; padding: 16px var(--gutter) 0; }
  .main-nav .nav-cta a { margin: 0; justify-content: center; }
  body[data-section] .main-nav [data-nav] { box-shadow: none; }
}
@media (max-width: 420px) { .brand-name small { display: none; } .brand-name { font-size: 17px; } }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { font-size: 14px; padding: 16px 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--grey-1); }
.breadcrumbs li + li::before { content: "//"; margin: 0 10px; color: var(--grey-3); }
.breadcrumbs a { color: var(--black); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 480px; display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero.short { min-height: 340px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%),
              linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%);
}
.hero .wrap { position: relative; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { margin: 0; max-width: 900px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero h1 .eyebrow { color: var(--white); font-size: max(15px, 0.48em); text-transform: uppercase; }
.hero p { max-width: 640px; margin: 16px 0 0; font-size: 19px; color: #f0f0f0; }
@media (max-width: 700px) { .hero { min-height: 380px; } .hero.short { min-height: 260px; } }

/* ---------- Three-across feature tiles ---------- */

.tiles-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .tiles-3 { grid-template-columns: 1fr; gap: 24px; } }

.feature-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--black); background: var(--white); }
.feature-tile .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.feature-tile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feature-tile:hover .media img { transform: scale(1.04); }
.feature-tile .body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feature-tile .name { font-weight: 700; font-size: 18px; }
.feature-tile p { margin: 0; font-size: 17px; color: var(--charcoal); }
.feature-tile .text-link { margin-top: auto; padding-top: 10px; }
.feature-tile:hover .text-link { color: var(--red); }
.feature-tile:hover .text-link::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 900px) { .feature-tile { display: grid; grid-template-columns: 40% 1fr; gap: 16px; } .feature-tile .body { padding: 0; } }
@media (max-width: 520px) { .feature-tile { display: flex; } .feature-tile .body { padding-top: 14px; } }

/* ---------- Dark spotlight (1-by-3) ---------- */

.spotlight .split { align-items: center; }
.spotlight .media { position: relative; }
.spotlight .media img, .spotlight .media video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.spotlight h2 { color: var(--white); }

/* ---------- Card grid (projects, people) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
@media (max-width: 480px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow);
  text-decoration: none; color: var(--black); transition: box-shadow .2s ease, transform .2s ease;
}
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card .media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.contain img { object-fit: contain; padding: 12px; background: var(--white); }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .name { font-weight: 700; font-size: 18px; line-height: 1.3; }
.card .meta { font-size: 15px; color: var(--charcoal); }
.card .text-link { margin-top: auto; padding-top: 12px; font-size: 14px; }
a.card:hover .text-link { color: var(--red); }
.card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--paper-2); color: var(--charcoal); padding: 4px 8px;
}

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.person { background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.person .photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person .name { font-weight: 700; font-size: 18px; }
.person .role { font-size: 15px; color: var(--charcoal); }
.person .links { margin-top: auto; padding-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.person .links a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red-text); text-decoration: none; }
.person .links a:hover { text-decoration: underline; }

.director { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.director .photo img { width: 100%; box-shadow: var(--shadow); }
.director .titles { font-size: 17px; color: var(--charcoal); margin: -6px 0 18px; }
@media (max-width: 800px) { .director { grid-template-columns: 1fr; gap: 24px; } .director .photo { max-width: 280px; } }

.alumni { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.alumni li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.alumni li span { color: var(--grey-1); }

/* ---------- Sub-page layout with side nav ---------- */

.page-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.side-nav { position: sticky; top: 112px; }
.side-nav h2 { font-size: 15px; font-family: var(--font-body); font-stretch: 100%; font-weight: 700; letter-spacing: .04em; color: var(--grey-1); margin-bottom: 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side-nav a { display: block; padding: 9px 0 9px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: 16px; color: var(--charcoal); }
.side-nav a:hover { color: var(--red); }
.side-nav a[aria-current] { border-left-color: var(--red); color: var(--black); font-weight: 700; }
@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .side-nav { position: static; }
  .side-nav ul { border-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .side-nav a { border: 1px solid var(--line); margin: 0; padding: 8px 12px; font-size: 14px; }
  .side-nav a[aria-current] { border-color: var(--red); }
}

.content h2 { margin-top: 64px; }
.content > h2:first-child, .content > section:first-child > h2:first-child { margin-top: 0; }
.content section { scroll-margin-top: 110px; }

/* ---------- Instrument grid ---------- */

.instrument-group { margin: 0 0 56px; }
.instrument-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.instrument { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.instrument .media { aspect-ratio: 4/3; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 14px; border-bottom: 1px solid var(--line); }
.instrument .media img { max-height: 100%; width: auto; object-fit: contain; }
.instrument .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.instrument .kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red-text); }
.instrument .name { font-weight: 700; font-size: 16px; line-height: 1.35; }
.instrument .desc { font-size: 14.5px; color: var(--charcoal); line-height: 1.45; }
.instrument .spec { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.instrument .spec a { color: var(--black); text-decoration: none; }
.instrument .spec a:hover { color: var(--red); text-decoration: underline; }

.simple-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.simple-table th, .simple-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.simple-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-1); border-bottom: 2px solid var(--black); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0; }
.stat { background: var(--white); padding: 20px 22px; }
.stat .num { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 30px; line-height: 1; }
.stat .num small { font-size: 15px; font-family: var(--font-body); font-weight: 700; margin-left: 2px; }
.stat .label { font-size: 14px; color: var(--grey-1); margin-top: 8px; }

/* ---------- Media / figures ---------- */

.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
figure { margin: 0; }
figure img { width: 100%; background: var(--paper); }
figure.contain img { object-fit: contain; max-height: 380px; width: auto; margin: 0 auto; }
figcaption { font-size: 14px; color: var(--grey-1); margin-top: 8px; line-height: 1.4; }

/* ---------- Publications ---------- */

.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pub-list li { position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; counter-increment: pub; }
.pub-list li::before { content: counter(pub, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; color: var(--grey-2); font-size: 18px; }
.pub-list .title { font-weight: 700; }
.pub-list .venue { font-style: italic; }
.pub-list .status { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--paper-2); padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.year-head { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 20px; margin: 40px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--black); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter-bar button { font: 600 14px/1 var(--font-body); padding: 10px 14px; background: var(--white); border: 1px solid var(--line); cursor: pointer; min-height: 40px; }
.filter-bar button[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- News ---------- */

.news-item { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item time { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 18px; color: var(--red); }
.news-item h3 { margin-bottom: 12px; }
.news-item .related { font-size: 15px; }
.news-item .related ul { padding-left: 1.1em; margin: 6px 0 0; }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Callout / CTA band ---------- */

.cta-band { background: var(--red); color: var(--white); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { margin: 0; color: var(--white); max-width: 760px; }
.cta-band p { margin: 10px 0 0; max-width: 700px; color: #fff; }

.callout { border-left: 4px solid var(--red); background: var(--paper); padding: 20px 24px; margin: 28px 0; font-size: 16.5px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.contact-grid h3 { font-size: 18px; }
.contact-grid p { margin: 0; font-size: 17px; }

.todo { background: #fff4c2; outline: 1px dashed #c9a400; padding: 0 4px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d6d6d6; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h2 { font-size: 13px; font-family: var(--font-body); font-stretch: 100%; font-weight: 700; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #d6d6d6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand-name small { color: var(--grey-3); }
.site-footer .bottom { border-top: 1px solid #333; }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--grey-3); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .top { grid-template-columns: 1fr; gap: 28px; } }

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

@media print {
  .utility, .site-header, .site-footer, .side-nav, .cta-band, .breadcrumbs { display: none; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero > img, .hero::before { display: none; }
  .page-layout { display: block; }
}

.h3-size { font-size: clamp(20px, 1.9vw, 25px); }
.date-label { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red); }

.content [id] { scroll-margin-top: 110px; }
.content figure:not(.figure-row figure) { margin: 28px 0; }
.content figure.contain img { display: block; }
@media (max-width: 700px) { .lead { font-size: 18px; } body { font-size: 17px; } }

iframe.video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.dark figcaption { color: var(--grey-3); }
.simple-table tr.group th { background: var(--paper); color: var(--black); font-size: 15px; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); padding-top: 18px; }
.simple-table td.rate { white-space: nowrap; font-weight: 700; }

.file-list { list-style: none; padding: 0; margin: 0 0 8px; }
.file-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.file-list .file-meta { font-size: 13px; color: var(--grey-1); white-space: nowrap; }
.prose .file-list { padding-left: 0; }
.prose .file-list li { margin: 0; }
.hero::before {
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.1) 80%),
              linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%);
}
.pub-continuous { counter-reset: pub; }
.pub-continuous .pub-list { counter-reset: none; }

/* ---------- Accessibility ---------- */
.dark :focus-visible, .site-footer :focus-visible, .utility :focus-visible { outline-color: var(--red-on-dark); }
.cta-band :focus-visible, .btn.red:focus-visible, .nav-cta a:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--black); }
.dark p a, .dark li a, .dark .prose a { color: #ff8a84; }

/* Headings promoted for correct document outline keep their previous look */
h3.minor { font-family: var(--font-body); font-weight: 700; font-stretch: 100%; font-size: 19px; text-transform: none; letter-spacing: 0; margin: 1.6em 0 0.4em; line-height: 1.3; }
h2.as-h3 { font-size: clamp(20px, 1.9vw, 25px); }
.contact-grid h2 { font-size: 18px; }
.utility-links { display: flex; gap: 20px; }
.site-footer .bottom a { color: var(--grey-3); text-decoration: underline; }
/* Buttons placed inside text blocks keep button colors (not link red) */
.prose a.btn, p a.btn, li a.btn, .prose a.btn:hover, p a.btn:hover, li a.btn:hover { color: var(--white); text-decoration: none; }
.prose a.btn.white, .prose a.btn.white:hover { color: var(--black); }
.prose a.btn.outline, .prose a.btn.outline:hover { color: inherit; }
