/* ================================================================
   LEXA Lab — Shared Stylesheet
   Georgia State University Research Lab Website Prototype
   Language, Literacy, & Executive Function in Autism Lab
   ================================================================

   SQUARESPACE MIGRATION GUIDE:
   ─ CSS custom properties (:root) → Squarespace Site Styles panel
   ─ Component classes below → Custom CSS on individual blocks
   ─ Section comments name the Squarespace block type to use

   ================================================================ */


/* ================================
   Design Tokens
   Colors, typography, spacing, borders, shadows
================================ */

:root {
  /* Brand — GSU Palette */
  --clr-primary:         #002855;   /* GSU Deep Navy — headings, logo */
  --clr-primary-action:  #0039A6;   /* GSU Blue — buttons, links */
  --clr-primary-light:   #D6E4FF;   /* Cool blue tint — chips, icon bg */
  --clr-secondary:       #1E4E9A;   /* Cool mid-blue — section labels, accents */
  --clr-secondary-light: #EDF3FF;   /* Cool pale blue — hover, callout */

  /* Surfaces */
  --clr-bg:              #FFFFFF;
  --clr-surface:         #FFFFFF;
  --clr-surface-alt:     #F4F7FA;   /* Cool pale blue-gray — alternating sections */
  --clr-surface-card:    #FFFFFF;
  --clr-surface-mid:     #E8EDF4;   /* Q&A blocks, content containers */
  --clr-surface-border:  #D0D9E8;   /* Dividers, card borders */
  --clr-white:           #FFFFFF;
  --clr-paper:           #FAF7F1;   /* Warm paper — publications archive */
  --clr-paper-rule:      #E7E1D6;   /* Hairline rule on paper */

  /* Text */
  --clr-text:            #16202C;   /* Deep blue-black body */
  --clr-text-mid:        #3E4F62;   /* Muted — captions, body on cards */
  --clr-text-soft:       #697A8D;   /* Tertiary — hints, placeholders */

  /* Accent */
  --clr-gold:            #B88A00;   /* Muted academic gold */
  --clr-gold-bg:         #FDF6E3;   /* Pale gold tint */

  /* Typography — IBM Plex family: academic, editorial, cohesive */
  --font-heading: 'IBM Plex Serif', serif;
  --font-body:    'IBM Plex Sans', sans-serif;

  /* Type scale */
  --text-display:  clamp(24px, 4vw, 40px);
  --text-h1:       clamp(22px, 3.5vw, 36px);
  --text-h2:       30px;
  --text-h3:       22px;
  --text-h4:       19px;
  --text-body-lg:  18px;
  --text-body:     16px;
  --text-sm:       14px;
  --text-xs:       12px;

  /* Line heights */
  --lh-tight:    1.15;
  --lh-snug:     1.28;
  --lh-normal:   1.5;
  --lh-relaxed:  1.65;

  /* Letter spacing */
  --ls-tight: -0.015em;
  --ls-caps:   0.06em;

  /* Spacing (8px base) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;  /* section vertical padding */
  --sp-12: 96px;

  /* Layout */
  --container-max: 1200px;
  --gutter:        24px;
  --section-y:     80px;

  /* Shapes — reduced radius for academic/institutional look */
  --radius-sm:   2px;
  --radius-md:   5px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-full: 9999px;

  /* Shadows — tighter, less diffuse */
  --shadow-xs: 0 1px 2px rgba(0, 40, 85, 0.05);
  --shadow-sm: 0 1px 5px rgba(0, 40, 85, 0.08);
  --shadow-md: 0 3px 12px rgba(0, 40, 85, 0.10);
  --shadow-lg: 0 6px 24px rgba(0, 40, 85, 0.12);

  /* Transitions */
  --ease-fast:   150ms ease;
  --ease:        250ms ease;
  --ease-slow:   400ms ease;
}


/* ================================
   Base / Reset
================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-relaxed);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--clr-primary);
}


/* ================================
   Accessibility
================================ */

/* Skip link — SQUARESPACE: add as first block, hide visually */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  background: var(--clr-primary-action);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--ease-fast);
}
.skip-link:focus { top: 8px; text-decoration: none; color: #fff; }

/* Focus ring — high visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--clr-primary-action);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }


/* ================================
   Icon Library
   Material Symbols configuration
================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  user-select: none;
}
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }


/* ================================
   Layout Utilities
   Containers, grids, split layouts
   Responsive breakpoints are defined inline within each rule.
================================ */

/* Main page width wrapper used across all pages. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-pad {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

@media (max-width: 768px) {
  .section-pad {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* Two-column grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-2.gap-lg { gap: 80px; }
.grid-2.gap-md { gap: 48px; }
.grid-2.gap-sm { gap: 32px; }

/* Weighted two-column */
.grid-5-7 { grid-template-columns: 5fr 7fr; }
.grid-7-5 { grid-template-columns: 7fr 5fr; }

@media (max-width: 900px) {
  .grid-2, .grid-5-7, .grid-7-5 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Reusable card grid for research and team sections. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* Four-column grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .grid-4 { grid-template-columns: 1fr; } }

/* Two-column grid (team) */
.grid-team-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .grid-team-2 { grid-template-columns: 1fr; } }

/* 12-col bento grid (research areas, grad students) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-8  { grid-column: span 8; }
.bento-4  { grid-column: span 4; }
.bento-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-8, .bento-4 { grid-column: span 12; }
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }


/* ================================
   Header and Navigation
   SQUARESPACE: Header block → Fixed → White background
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-surface-border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  text-decoration: none;
}

.nav-logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-brand-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--clr-text-mid);
  letter-spacing: 0.01em;
  max-width: 300px;
}

@media (max-width: 480px) {
  .nav-logo-brand-img { height: 48px; width: 48px; }
  .nav-logo-name { font-size: 16px; }
  .nav-logo-sub { display: none; }
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-text-mid);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.nav-link:hover { color: var(--clr-primary); text-decoration: none; }
.nav-link.active, .nav-link[aria-current="page"] {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-primary-action);
  font-weight: 600;
}

/* Nav CTA */
.btn-nav {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: #fff;
  background: var(--clr-primary-action);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--ease-fast), box-shadow var(--ease-fast);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.btn-nav:hover {
  background: var(--clr-primary);
  box-shadow: none;
  text-decoration: none;
  color: #fff;
}

/* Hamburger */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--clr-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--ease-fast);
}
.mobile-menu-btn:hover { background: var(--clr-surface-alt); }

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px var(--gutter) 20px;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-surface-border);
  gap: 4px;
}
.mobile-menu.open { display: flex; }

.mobile-nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--clr-text-mid);
  padding: 12px 4px;
  border-bottom: 1px solid var(--clr-surface-border);
  transition: color var(--ease-fast);
  text-decoration: none;
}
.mobile-nav-link:hover, .mobile-nav-link.active, .mobile-nav-link[aria-current="page"] {
  color: var(--clr-primary);
  text-decoration: none;
}
.mobile-nav-link.active, .mobile-nav-link[aria-current="page"] { font-weight: 600; }
.mobile-menu .btn-nav {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-lg);
}


/* Research dropdown (desktop)
   SQUARESPACE: built as a Folder navigation item with two pages. */
.nav-item-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-text-mid);
  padding: 0 0 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active-parent {
  color: var(--clr-primary);
}
.nav-dropdown-toggle.active-parent {
  border-bottom-color: var(--clr-primary-action);
  font-weight: 600;
}
.nav-dropdown-toggle .material-symbols-outlined { transition: transform var(--ease-fast); }
.nav-item-dropdown:hover .nav-dropdown-toggle .material-symbols-outlined,
.nav-dropdown-toggle[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  margin-top: 10px;
  list-style: none;
  display: none;
  z-index: 120;
}
/* Transparent bridge so hover isn't lost in the gap between toggle and menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu { display: block; }

.nav-dropdown-link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-text-mid);
  text-decoration: none;
  transition: background var(--ease-fast), color var(--ease-fast);
}
.nav-dropdown-link:hover,
.nav-dropdown-link.active,
.nav-dropdown-link[aria-current="page"] {
  background: var(--clr-surface-alt);
  color: var(--clr-primary);
  text-decoration: none;
}

/* Research group in the mobile menu */
.mobile-nav-group-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--clr-text-soft);
  padding: 12px 4px 4px;
}
.mobile-nav-sublink { padding-left: 18px; }

@media (max-width: 820px) {
  .nav-links, .btn-nav.nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}


/* ================================
   Buttons and Links
   SQUARESPACE: Button blocks — use "Primary" / "Secondary" styles
================================ */

/* Shared CTA button style. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

/* Solid primary */
.btn-primary {
  background: var(--clr-primary-action);
  color: #fff;
  border-color: var(--clr-primary-action);
}
.btn-primary:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* Outlined */
.btn-outlined {
  background: transparent;
  color: var(--clr-primary-action);
  border-color: var(--clr-primary-action);
}
.btn-outlined:hover {
  background: var(--clr-secondary-light);
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

/* On dark background */
.btn-on-dark {
  background: #fff;
  color: var(--clr-primary);
  border-color: #fff;
}
.btn-on-dark:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-light);
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.btn-outlined-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outlined-on-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

/* Sizes */
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 12px; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 15px; }

/* CTA group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}


/* ================================
   Typography Helpers
================================ */

.display-heading {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  color: var(--clr-primary);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--clr-primary);
}

.card-heading {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--clr-text);
  margin-bottom: 12px;
}

.body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-mid);
}
.body-md {
  font-size: var(--text-body);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-mid);
}
.body-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-soft);
}

/* Section eyebrow */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: 12px;
}

/* Accent underline on section headings */
.heading-accent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.heading-accent-line {
  width: 40px;
  height: 2px;
  background: var(--clr-primary-action);
}


/* ================================
   Photo Placeholders
   Temporary content slots for final lab photography.
   Replace each .img-placeholder div with a real <img> before launch.
   The aria-label on each placeholder describes the ideal photo.
================================ */

/* Reusable photo frame used until final lab photography is added. */
.img-placeholder {
  background: #CDDAEC;
  border: 1.5px solid #9FB3CC;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Institutional content-slot label inside placeholders */
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 28px;
  text-align: center;
}
.placeholder-inner .ph-icon { display: none; }
.placeholder-inner p {
  color: #4A6080;
  font-size: 11px;
  font-style: normal;
  font-family: var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  max-width: 160px;
  margin: 0;
  line-height: 1.4;
}

/* Headshot placeholder (round) */
.img-placeholder-round {
  border-radius: 50%;
}

/* Top-left slot label on large editorial photo placeholders */
.ph-labeled::before {
  content: "Photo";
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3D5A80;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(100,140,180,0.35);
  border-radius: 2px;
  padding: 4px 8px;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

/* Quiet placeholder annotation on team cards */
.ph-note {
  font-size: 11px;
  color: var(--clr-text-soft);
  font-style: italic;
  margin-top: 6px;
  opacity: 0.8;
}

/* Custom motif: thin GSU-blue vertical rule beside section intro text */
.left-rule {
  border-left: 3px solid var(--clr-primary-action);
  padding-left: 24px;
}


/* ================================
   Cards and Editorial Content Modules
   SQUARESPACE: Summary blocks / Image+Text blocks
================================ */

.card {
  background: var(--clr-surface-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-surface-border);
  padding: 32px;
  box-shadow: none;
  transition: box-shadow var(--ease);
}
.card:hover { box-shadow: var(--shadow-sm); }

.card-alt {
  background: var(--clr-surface-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-surface-border);
  padding: 32px;
  box-shadow: none;
  transition: box-shadow var(--ease);
}
.card-alt:hover { box-shadow: var(--shadow-sm); }

.card-primary {
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
}

/* Colored bottom border on research cards */
.accent-primary   { border-bottom: 4px solid var(--clr-primary-action); }
.accent-secondary { border-bottom: 4px solid var(--clr-secondary); }
.accent-navy      { border-bottom: 4px solid var(--clr-primary); }
.accent-gold      { border-bottom: 4px solid var(--clr-gold); }

/* Icon chip inside card */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.card-icon-secondary {
  background: var(--clr-secondary-light);
  color: var(--clr-secondary);
}


/* ================================
   Citation Lists
   Publications and conference presentation entries.
================================ */

/* Annotated-bibliography layout: a year gutter + citation rows separated by
   hairlines. No cards, no full-height sidebar — one small accent tick only. */
.citation-list {
  max-width: 860px;
  list-style: none;
  border-top: 1px solid var(--clr-paper-rule);
}

.citation-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 30px;
  align-items: baseline;
  padding: 22px 12px 22px 14px;
  border-bottom: 1px solid var(--clr-paper-rule);
  border-radius: 3px;
  transition: background var(--ease-fast);
}
.citation-item:hover { background: rgba(28, 22, 8, 0.035); }

/* Year gutter — quiet serif label with a short accent tick (the one accent moment) */
.citation-year {
  position: relative;
  padding-left: 15px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--clr-text-soft);
  white-space: nowrap;
}
.citation-year::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 2px;
  height: 0.95em;
  background: var(--clr-primary-action);
  border-radius: 1px;
}

.citation-item p {
  color: var(--clr-text);
  font-size: var(--text-body);
  line-height: 1.72;
}
.citation-item em {        /* journal / volume titles — elegant italic */
  color: var(--clr-text-mid);
}

/* DOI links — integrated, hairline underline that warms on hover */
.citation-item a {
  color: var(--clr-text-mid);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 57, 166, 0.30);
  overflow-wrap: anywhere;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.citation-item a:hover {
  color: var(--clr-primary-action);
  border-bottom-color: var(--clr-primary-action);
}

@media (max-width: 640px) {
  .citation-item {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 18px 6px;
  }
}


/* ================================
   Check List
================================ */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-body);
  color: var(--clr-text-mid);
  line-height: var(--lh-relaxed);
}
.check-icon { color: var(--clr-secondary); flex-shrink: 0; margin-top: 2px; }
.solid-blue-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary-action);
  flex: 0 0 8px;
  margin-top: 0.55em;
}


/* ================================
   Hero Sections
   SQUARESPACE: Banner block / Cover page
================================ */

.hero {
  padding: var(--section-y) 0;
  background: var(--clr-surface);
  overflow: hidden;
}

.hero-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .hero-image { aspect-ratio: 16 / 9; }
}

/* Page-level hero (inner pages) */
.page-hero { padding: var(--section-y) 0; background: var(--clr-surface); }
.page-hero-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* Home-page lab wordmark — big spelled-out name, centered (echoes Squarespace banner)
   SQUARESPACE: Text block — centered, large display heading */
.lab-wordmark-band {
  padding: 56px var(--gutter) 8px;
  text-align: center;
  background: var(--clr-surface);
}
.lab-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: var(--ls-tight);
  color: var(--clr-primary);
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .lab-wordmark-band { padding: 36px var(--gutter) 4px; }
}


/* ================================
   Mission Block
================================ */

.mission-block { background: var(--clr-surface-alt); }
.mission-block .inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.mission-block p {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--clr-text);
}


/* ================================
   Q&A Blocks
   Plain-language research question format used on the About page.
================================ */

.qa-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  counter-reset: qa-counter;
}

.qa-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--clr-surface-mid);
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  counter-increment: qa-counter;
}

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qa-icon .material-symbols-outlined { display: none; }
.qa-icon::after {
  content: counter(qa-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.qa-block h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 10px;
}
.qa-block p { font-size: var(--text-body); color: var(--clr-text-mid); line-height: var(--lh-relaxed); }


/* ================================
   Research Cards
   Bento-style grid used on the Current Research page.
================================ */

.bento-card {
  background: var(--clr-surface-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-surface-border);
  padding: 32px;
  box-shadow: none;
  overflow: hidden;
}
.bento-card-dark {
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card-dark .check-icon { color: var(--clr-primary-light); }
.bento-card-dark .check-list li { color: rgba(255,255,255,0.9); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.chip-teal {
  background: rgba(30, 78, 154, 0.07);
  color: #1E4E9A;
}
.chip-blue {
  background: var(--clr-secondary-light);
  color: var(--clr-primary);
}


/* ================================
   Team Directory
   SQUARESPACE: Team Member block / Summary block
================================ */

.team-card {
  background: var(--clr-surface-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-surface-border);
  padding: 24px;
  box-shadow: none;
  transition: box-shadow var(--ease);
}
.team-card:hover { box-shadow: var(--shadow-sm); }

.team-card-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 20px;
}

.team-card-profile h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.member-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.member-headshot-sm {
  width: 96px;
  height: 96px;
}

.member-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--clr-text-mid);
}

.pi-profile {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 48px;
  align-items: start;
  background: var(--clr-surface-alt);
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.pi-headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: center;
}

.pi-profile h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 2px;
}

.pi-title {
  color: var(--clr-text-mid);
  font-weight: 600;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .pi-profile {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .pi-headshot {
    width: min(100%, 320px);
  }
}

@media (max-width: 480px) {
  .team-card-profile {
    grid-template-columns: 1fr;
  }
}

.team-card-headshot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.team-card-role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--clr-primary-action);
  margin-bottom: 8px;
  margin-top: 4px;
  display: block;
}

/* Large grad student card (horizontal) */
.team-card-lg {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--clr-surface-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-surface-border);
  padding: 32px;
  box-shadow: none;
  transition: box-shadow var(--ease);
}
.team-card-lg:hover { box-shadow: var(--shadow-sm); }
.team-card-lg .headshot-rect {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

/* Section header with rule line */
.section-with-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.section-with-rule h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, var(--text-h2));
  font-weight: 600;
  color: var(--clr-secondary);
}
.rule-line {
  flex: 1;
  height: 1px;
  background: #B8C9DC;
}

/* Preview team card (home page) */
.preview-card { text-align: center; }
.preview-card .preview-headshot {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--clr-surface-mid);
  transition: box-shadow var(--ease);
}
.preview-card:hover .preview-headshot { box-shadow: var(--shadow-md); }
.preview-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 4px;
}
.preview-card .role { color: var(--clr-secondary); font-size: var(--text-sm); font-weight: 500; }


/* ================================
   Stat Badge
================================ */

.stat-badge {
  position: absolute;
  top: -24px;
  right: -24px;
  background: var(--clr-gold-bg);
  border: 2px solid var(--clr-gold);
  color: #6b4c00;
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
}
.stat-badge strong { font-size: 24px; font-weight: 700; }
.stat-badge small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}


/* ================================
   Contact Form
   SQUARESPACE: Form block + Image block + Text block
================================ */

.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}
.info-row h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--clr-text-mid);
  margin-bottom: 4px;
}
.info-row p {
  font-size: var(--text-body-lg);
  font-weight: 600;
  color: var(--clr-text);
  line-height: var(--lh-snug);
}

/* Form elements */
.form-stack { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 580px) { .form-group-2 { grid-template-columns: 1fr; } }

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clr-text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-surface-border);
  border-radius: var(--radius-md);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  appearance: none;
}
.form-input::placeholder { color: var(--clr-text-soft); }
.form-input:focus,
.form-input:focus-visible {
  outline: none;
  border-color: var(--clr-primary-action);
  box-shadow: 0 0 0 3px rgba(0, 57, 166, 0.12);
}
textarea.form-input { resize: vertical; min-height: 140px; }

/* Callout / warm note */
.callout-warm {
  background: var(--clr-gold-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-warm .callout-icon { color: var(--clr-gold); flex-shrink: 0; margin-top: 2px; }
.callout-warm h4 {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.callout-warm p { font-size: var(--text-body); color: var(--clr-text-mid); line-height: var(--lh-relaxed); }

/* Map placeholder */
.map-placeholder {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 340px;
  background: var(--clr-surface-mid);
  border: 1px solid var(--clr-surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-pin {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,38,117,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-pin .pin-icon { font-size: 40px; color: var(--clr-primary-action); }
.map-pin h3 { font-size: var(--text-h4); font-weight: 700; color: var(--clr-primary); }
.map-pin p { font-size: var(--text-sm); color: var(--clr-text-mid); }


/* ================================
   CTA Banner
   SQUARESPACE: Cover page / Banner block (navy background)
================================ */

.cta-banner { background: var(--clr-primary); padding: var(--section-y) 0; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.82); }

.cta-2col {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-2col .cta-text { max-width: 580px; }

.cta-center { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-center .btn-group { justify-content: center; margin-top: 36px; }

@media (max-width: 768px) {
  .cta-2col { flex-direction: column; text-align: center; }
  .cta-2col .cta-text { max-width: 100%; }
}

/* CTA card (team page) */
.cta-card {
  background: var(--clr-primary-action);
  border-radius: var(--radius-2xl);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.cta-card h2 { color: #fff; font-size: var(--text-h2); margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,0.85); font-size: var(--text-body-lg); max-width: 540px; margin: 0 auto 32px; }


/* ================================
   Footer
   SQUARESPACE: Footer block → use 3-column layout
================================ */

.site-footer {
  background: var(--clr-surface-alt);
  border-top: 1px solid var(--clr-surface-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px var(--gutter) 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: var(--text-sm);
  color: var(--clr-text-mid);
  line-height: var(--lh-relaxed);
  max-width: 280px;
  margin-bottom: 12px;
}
.footer-affil {
  font-size: var(--text-xs);
  color: var(--clr-text-soft);
  font-style: italic;
}

.footer-col-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: 16px;
  display: block;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--clr-text-mid);
  transition: color var(--ease-fast);
}
.footer-links a:hover { color: var(--clr-primary); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--clr-surface-border);
  padding: 20px var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: var(--text-sm); color: var(--clr-text-soft); }

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px var(--gutter) 32px;
  }
}


/* ================================
   Page-specific Components
   About page: floating quote, stat boxes, image pair.
================================ */

/* Floating quote card overlaid on the About page hero image */
.float-quote {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--clr-surface-alt);
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 240px;
}
.float-quote p {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--clr-text-mid);
  line-height: var(--lh-relaxed);
}

/* Stat boxes (about page training section) */
.stat-box {
  background: var(--clr-surface-alt);
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-box strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--clr-primary-action);
}
.stat-box span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: 700;
  color: var(--clr-text-soft);
  margin-top: 4px;
  display: block;
}

.stat-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

/* Training image pair */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.image-pair .img-placeholder:nth-child(2) {
  margin-top: 32px;
  border-radius: var(--radius-xl);
}


/* ================================
   Utilities
================================ */

/* Divider */
hr.section-rule { border: none; border-top: 1px solid var(--clr-surface-border); }

/* Text on dark backgrounds */
.text-on-dark { color: rgba(255,255,255,0.88); }
.heading-on-dark { color: #fff; }

/* Center utility */
.text-center { text-align: center; }

/* Visually hidden (screen reader only) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
