/* =============================================================
   Shepherd Research Lab — Main Stylesheet
   Adapted from the IBDW stylesheet (sister site). Color palette
   retints pink → UH Mānoa green; structure unchanged.
   ============================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:         #024731;
  --primary-dark:    #012318;
  --primary-light:   #e3efea;
  --primary-on-dark: #9fd9b8; /* WCAG-safe accent on --dark hero (≈9:1) */
  --green:      #2d6b2d;
  --teal:       #4a9a9a;
  --teal-light: #e8f4f4;
  --dark:       #1a1a2e;
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: all 0.2s ease;
  --max-width:  1200px;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Sticky-header offset so anchor jumps don't land focus underneath the header
     (WCAG 2.4.11 Focus Not Obscured). Header is 80px; 90px adds a bit of breathing room. */
  scroll-padding-top: 90px;
}

/* ---- Skip-to-content link (WCAG 2.4.1 Bypass Blocks) ----
   Visually hidden until keyboard-focused, then slides into view at top-left. */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom-right-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--white);
  outline-offset: -4px;
  color: var(--white);
}

/* Programmatically-focused <main> shouldn't show a focus ring */
main:focus { outline: none; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* Inline prose links — give running-text links a visible underline so they
   read as links without relying on color alone (WCAG 1.4.1). Scoped to
   paragraphs and list items so UI links (nav, buttons, cards, logo/image
   grids) stay clean. :not([class]) skips component links such as .btn. */
main p a:not([class]),
main li a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
main p a:not([class]):hover,
main li a:not([class]):hover {
  text-decoration-thickness: 2px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section--teal {
  background: var(--teal-light);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---- Site Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo__img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Legacy placeholder mark — unused now the turtle PNG is in place; keep
   the rule so if anyone re-introduces <div class="site-logo__mark"> it
   still has reasonable defaults. */
.site-logo__mark {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__mark svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__abbr {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
}

.site-logo__full {
  font-size: 0.65rem;
  color: var(--gray-500);
  max-width: 220px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  margin-left: 0.75rem;
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 46, 0.65), rgba(26, 26, 46, 0.65)),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 4rem 0;
}

.hero__workshop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 71, 49, 0.3);
  border: 1px solid rgba(2, 71, 49, 0.6);
  color: #9fd9b8;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary-on-dark);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero__meta-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.hero__desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--primary);
  color: var(--white);
  padding: 2.5rem 0;
}

.stats-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.testimonial-card__quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  font-family: var(--font-head);
  color: var(--gray-900);
}

.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---- Letter from Chairs ---- */
.chairs-letter {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.chairs-letter h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.chairs-letter p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.chairs-letter__signatures {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.chair-sig {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chair-sig img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.chair-sig__info strong {
  display: block;
  font-size: 0.9rem;
  font-family: var(--font-head);
  color: var(--gray-900);
}

.chair-sig__info span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---- Past Workshops ---- */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.workshop-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workshop-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.workshop-card__info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--gray-900);
}

.workshop-card__info span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.workshop-card__year {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ---- Sponsors Page ---- */
.sponsor-tier {
  margin-bottom: 3rem;
}

.sponsor-tier h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sponsor-tier h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.sponsors-logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.sponsor-logo-wrap {
  flex: 0 0 auto;
}

.sponsor-logo-wrap.diamond img { max-height: 70px; }
.sponsor-logo-wrap.gold img    { max-height: 55px; }
.sponsor-logo-wrap.silver img  { max-height: 45px; }
.sponsor-logo-wrap.exhibitor img { max-height: 40px; }
.sponsor-logo-wrap.additional img { max-height: 60px; }

.sponsor-logo-wrap img {
  filter: grayscale(20%);
  opacity: 0.85;
  transition: var(--transition);
}

.sponsor-logo-wrap img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- Committee Page ---- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.member-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}

.member-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.member-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-light);
}

.member-card__name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.member-card__title {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.member-card__institution {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
}

/* ---- Contact ---- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  /* WCAG 1.4.11 Non-text Contrast — keep a visible 2px outline (contrast ~12.6:1
     against white) instead of hiding it behind a low-alpha box-shadow. */
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---- Mailing List Banner ---- */
.mailing-list {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.mailing-list h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.mailing-list p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.mailing-list-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.mailing-list-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.mailing-list-form input[type="email"]:focus {
  outline: 2px solid white;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--dark);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: var(--primary); }

/* ---- Announcement Banner ---- */
.announcement {
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary);
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.announcement a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

/* ---- Affinity Group past-meetings list ---- */
.affinity-meeting {
  display: grid;
  grid-template-columns: 90px 220px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--gray-300);
  align-items: start;
}
.affinity-meeting--no-image { grid-template-columns: 90px 1fr; }
.affinity-meeting__date { font-size: 0.8rem; color: var(--gray-700); font-weight: 700; line-height: 1.35; }
.affinity-meeting__date .year { text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); font-size: 0.7rem; }
.affinity-meeting__date .day { font-size: 1rem; color: var(--primary); }
.affinity-meeting__image { display: block; line-height: 0; }
.affinity-meeting__image img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.affinity-meeting__image:hover img { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.affinity-meeting__body h4 { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.35; }
.affinity-meeting__body .speaker { margin: 0 0 1rem; font-size: 0.95rem; color: var(--gray-700); }
.affinity-meeting__body .speaker .affil { color: var(--gray-500); }
.affinity-meeting__body .abstract { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }
.affinity-meeting__recap { margin: 0.75rem 0 0; font-weight: 600; }

@media (max-width: 768px) {
  .affinity-meeting,
  .affinity-meeting--no-image { grid-template-columns: 1fr; gap: 1rem; }
  .affinity-meeting__image { max-width: 420px; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-header .container { position: relative; }
  .nav-toggle { display: block; }
  .hero { min-height: 100svh; }
  .hero h1 { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .site-footer .container { grid-template-columns: 1fr; gap: 2rem; }
  .chairs-letter { padding: 1.75rem; }
  .stats-bar .container { justify-content: center; }
  .mailing-list-form { flex-direction: column; }
  .mailing-list-form input[type="email"] { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Accessibility: Reduced Motion (WCAG 2.1 AA / ADA) ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Responsive Modality Comparison Matrix (Table Polish) ---- */
.modality-matrix {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.modality-matrix table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  min-width: 760px;
}

.modality-matrix th,
.modality-matrix td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}

.modality-matrix th:first-child,
.modality-matrix td:first-child {
  position: sticky;
  left: 0;
  background: var(--white);
  z-index: 2;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  color: var(--gray-900);
}

.modality-matrix thead th:first-child {
  background: var(--gray-100);
  z-index: 3;
}

.modality-matrix tbody tr:hover td {
  background-color: rgba(2, 71, 49, 0.03);
}

.modality-matrix tbody tr:hover td:first-child {
  background-color: var(--gray-100);
}



/* ---- Talks mailing-list signup (_includes/talks-signup.html) ---- */
.signup { max-width: 720px; margin: 3rem auto 0; padding: 2rem; background: var(--primary-light, #f0f4f8); border: 1px solid var(--gray-300, #e3e3e3); border-radius: var(--radius-lg, 12px); }
.signup__intro { max-width: 52ch; }
.signup__eyebrow { margin: 0 0 .35rem; font-family: var(--font-head); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal, #0d9488); }
.signup__heading { margin: 0 0 .5rem; font-size: 1.35rem; }
.signup__blurb { margin: 0; color: var(--gray-700, #374151); font-size: .95rem; }
.signup__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.signup__field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.signup__field--wide { grid-column: 1 / -1; }
.signup__label { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--gray-700, #374151); }
.signup__opt { font-weight: 400; color: var(--gray-500, #6b7280); }
.signup__input { width: 100%; padding: .6rem .8rem; font-size: 1rem; font-family: var(--font-body); color: var(--gray-900, #111827); background: var(--white, #ffffff); border: 2px solid var(--gray-300, #e3e3e3); border-radius: var(--radius, 6px); outline-offset: 2px; box-sizing: border-box; }
.signup__input:focus { border-color: var(--primary, #1F4E79); outline: 2px solid var(--primary, #1F4E79); }
.signup__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; }
.signup__submit { border: 0; cursor: pointer; font-size: .95rem; }
.signup__fine { margin: 0; font-size: .8rem; color: var(--gray-500, #6b7280); }
.signup__pot { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.signup__todo { margin: 1.5rem 0 0; padding: .9rem 1.1rem; background: #fff4e5; border: 1px solid #f0c98a; border-radius: var(--radius, 6px); color: #8a5a12; font-size: .9rem; line-height: 1.55; }
.signup__todo code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .85em; }
@media (max-width: 560px) {
  .signup { padding: 1.5rem; }
  .signup__form { grid-template-columns: 1fr; }
}
