/* ============================================================
   NWPTF Redesign - shared styles
   Playfair Display (display) + Source Sans 3 (body)
   Earthy palette: moss, tan, rust, bone
   ============================================================ */

:root {
  --moss: #3a4a2f;
  --moss-deep: #2b3723;
  --olive: #5c6b45;
  --tan: #c79a5b;
  --rust: #a8552e;
  --bone: #f4ede0;
  --paper: #ffffff;
  --ink: #23271d;
  --ink-soft: #4a5040;
  --line: #e3ddcf;
}

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

html { scroll-behavior: smooth; }

/* accessibility: visible keyboard focus + skip link */
:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: 0; top: -60px;
  z-index: 200;
  background: var(--rust);
  color: var(--bone);
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
section[tabindex="-1"] { outline: none; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--moss-deep);
  letter-spacing: -0.01em;
}

a { color: var(--rust); }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--rust); color: var(--bone); }
.btn-primary:hover { background: #8e451f; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(244, 237, 224, 0.5);
}
.btn-ghost:hover { background: rgba(244, 237, 224, 0.12); }
.btn-dark { background: var(--moss); color: var(--bone); }
.btn-dark:hover { background: var(--moss-deep); transform: translateY(-2px); }

/* ---------- TOP UTILITY BAR ---------- */
.topbar {
  background: var(--moss-deep);
  color: rgba(244, 237, 224, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar a { color: rgba(244, 237, 224, 0.8); text-decoration: none; }
.topbar a:hover { color: var(--bone); }
.topbar-right { display: inline-flex; align-items: center; gap: 1.2rem; }
.topbar-feedback { font-weight: 700; letter-spacing: 0.04em; }
.topbar-connect { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--tan); }

/* social icon rows (topbar + footer) */
.topbar-social, .footer-social { display: inline-flex; align-items: center; gap: 0.85rem; }
.topbar-social a, .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.topbar-social { gap: 0.55rem; }
.topbar-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(244, 237, 224, 0.35);
  color: var(--bone);
}
.topbar-social svg { width: 16px; height: 16px; }
.topbar-social a:hover { background: var(--tan); border-color: var(--tan); color: var(--moss-deep); transform: translateY(-1px); }
.footer-social { margin-top: 0.4rem; }
.footer-social a { color: rgba(244, 237, 224, 0.7); }
.footer-social a:hover { color: var(--tan); transform: translateY(-1px); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-logo img { height: 90px; width: auto; }
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--rust); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--moss-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--moss-deep);
  color: var(--bone);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  z-index: 1;
}
/* gradient scrim above the media, below the text, keeps the left side readable */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(43,55,35,0.85) 20%, rgba(43,55,35,0.42) 58%, rgba(43,55,35,0.1) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Hero / page-header / impact background images.
   Defined in the stylesheet (not inline) so relative URLs resolve against
   assets/styles.css reliably in every browser. Small files by default,
   large versions on wider screens. */
.hero-bg { background-image: url('hero-home-sm.jpg'); background-position: center 45%; }
body[data-page="issue"] .page-hero-bg { background-image: url('hero-issue-sm.jpg'); background-position: center 48%; }
body[data-page="about"] .page-hero-bg { background-image: url('hero-about-sm.jpg'); background-position: center 72%; }
body[data-page="resources"] .page-hero-bg { background-image: url('hero-resources-sm.jpg'); background-position: center 50%; }
body[data-page="research"] .page-hero-bg { background-image: url('hero-research-sm.jpg'); background-position: center 82%; }
body[data-page="events"] .page-hero-bg { background-image: url('hero-home-sm.jpg'); background-position: center 45%; }
body[data-page="contact"] .page-hero-bg { background-image: url('hero-contact-sm.jpg'); background-position: center 55%; }
.impact-bg { background-image: url('impact-damage-sm.jpg'); }
@media (min-width: 861px) {
  .hero-bg { background-image: url('hero-home.jpg'); }
  body[data-page="issue"] .page-hero-bg { background-image: url('hero-issue.jpg'); }
  body[data-page="about"] .page-hero-bg { background-image: url('hero-about.jpg'); }
  body[data-page="resources"] .page-hero-bg { background-image: url('hero-resources.jpg'); }
  body[data-page="research"] .page-hero-bg { background-image: url('hero-research.jpg'); }
  body[data-page="events"] .page-hero-bg { background-image: url('hero-home.jpg'); }
  body[data-page="contact"] .page-hero-bg { background-image: url('hero-contact.jpg'); }
  .impact-bg { background-image: url('impact-damage.jpg'); }
}
.hero .wrap { position: relative; z-index: 3; padding-top: 6rem; padding-bottom: 6rem; }
.hero-inner { max-width: 900px; }
.hero h1 {
  color: var(--bone);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 1.4rem;
}
.hero h1 .accent { display: block; margin-top: 0.15em; color: var(--tan); font-style: italic; white-space: nowrap; }
.hero p {
  font-size: 1.2rem;
  color: rgba(244, 237, 224, 0.88);
  margin-bottom: 2.2rem;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* staggered load */
.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise 0.8s ease forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- STAT STRIP ---------- */
.stats {
  background: var(--moss);
  color: var(--bone);
  border-top: 3px solid var(--tan);
}
.stats .wrap { padding-top: 2.6rem; padding-bottom: 1.8rem; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat { text-align: center; }
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--tan);
  line-height: 1;
}
.stat .num sup {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(244, 237, 224, 0.55);
  top: -1.1em;
  margin-left: 0.1em;
}
.stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.75);
  margin-top: 0.5rem;
}
.stat-sources {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 237, 224, 0.15);
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(244, 237, 224, 0.78);
}
.stat-sources sup { color: var(--tan); margin-right: 0.15em; }
.stat-sources a { color: rgba(244, 237, 224, 0.7); }

/* ---------- SECTION SHELL ---------- */
.section { padding: 5rem 0; }
.section-tan { background: var(--bone); }
.section-head { margin-bottom: 3rem; }
.section-head .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 680px; }

/* ---------- AUDIENCE PATHWAYS ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.path-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--olive);
  padding: 2.2rem;
  transition: all 0.25s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(43,55,35,0.13); border-top-color: var(--rust); }
.path-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.path-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }
.path-card a {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.path-card a::after { content: ' \2192'; }

/* ---------- IMPACT BAND ---------- */
.impact {
  position: relative;
  color: var(--bone);
  overflow: hidden;
}
.impact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.impact-bg::after { content: ''; position: absolute; inset: 0; background: rgba(43,55,35,0.82); }
.impact .wrap { position: relative; z-index: 2; padding: 5rem 2rem; max-width: 980px; }
.impact h2 { color: var(--bone); font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 1.2rem; }
.impact p { font-size: 1.15rem; color: rgba(244,237,224,0.9); margin-bottom: 1rem; max-width: 720px; }

/* ---------- NEWS ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-card {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(43,55,35,0.12); }
.news-thumb { aspect-ratio: 16/10; background: var(--olive); background-size: cover; background-position: center; }
.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-body .tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.news-body h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.news-body p { font-size: 0.95rem; color: var(--ink-soft); }
a.news-card { text-decoration: none; color: inherit; }
a.news-card .news-thumb { transition: transform 0.4s ease; }
a.news-card:hover .news-thumb { transform: scale(1.04); }
.news-thumb { overflow: hidden; }
.news-source {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
}
.news-source::after { content: ' \2197'; }

/* ---------- CTA BAND ---------- */
.cta {
  background: var(--rust);
  color: var(--bone);
  text-align: center;
}
.cta .wrap { padding: 4.5rem 2rem; }
.cta h2 { color: var(--bone); font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 1rem; }
.cta p { font-size: 1.15rem; color: rgba(244,237,224,0.92); max-width: 560px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--moss-deep); color: rgba(244, 237, 224, 0.7); }
.site-footer .wrap { padding-top: 4rem; padding-bottom: 2.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img {
  height: 96px;
  width: auto;
  margin-bottom: 1.2rem;
  background: var(--bone);
  padding: 14px 20px;
  border-radius: 6px;
}
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.footer-col h4 {
  color: var(--tan);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(244, 237, 224, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 237, 224, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(244, 237, 224, 0.5);
  letter-spacing: 0.05em;
}
.footer-bottom a {
  color: rgba(244, 237, 224, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 237, 224, 0.25);
  transition: all 0.2s;
}
.footer-bottom a:hover { color: var(--bone); border-bottom-color: var(--tan); }

/* ---------- ABOUT PAGE ---------- */
.page-hero {
  background: var(--moss-deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.9; }
.page-hero-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(43,55,35,0.9) 0%, rgba(43,55,35,0.62) 45%, rgba(43,55,35,0.3) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding: 4.5rem 2rem; }
.page-hero .kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tan); font-weight: 700; margin-bottom: 0.8rem; }
.page-hero h1 { color: var(--bone); font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 1040px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1.2rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1rem; }
.value-card { background: var(--paper); border: 1px solid var(--line); padding: 1.8rem; border-left: 4px solid var(--tan); }
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- RESOURCES PAGE ---------- */
.filter-bar { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--olive); color: var(--moss); }
.filter-btn.active { background: var(--moss); color: var(--bone); border-color: var(--moss); }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.resource-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(43,55,35,0.1); }
.resource-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--olive);
  background: var(--bone);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.resource-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.resource-card p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 1.2rem; flex: 1; }
.resource-card a { font-weight: 700; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.resource-card a::after { content: ' \2197'; }

/* resource source line */
.resource-card .src { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.7; margin-bottom: 1.1rem; }

/* ---------- CREDITS PAGE ---------- */
.credit-list { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.8rem; }
.credit-list li {
  padding: 0.9rem 1.1rem;
  background: var(--bone);
  border-left: 3px solid var(--olive);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.credit-list li strong { color: var(--moss-deep); }
.credit-list .lic {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ---------- GOVERNANCE PAGE ---------- */
.gov-list { list-style: none; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; max-width: 820px; }
.gov-list li { position: relative; padding-left: 2.8rem; color: var(--ink-soft); }
.gov-list li .n {
  position: absolute; left: 0; top: -0.1rem;
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.4rem; color: var(--rust); line-height: 1;
}
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.person {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--olive); padding: 1.4rem;
}
.person .role { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); font-weight: 700; margin-bottom: 0.45rem; }
.person h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.person .org { font-size: 0.9rem; color: var(--ink-soft); }
.person h3.tbd { color: var(--ink-soft); font-weight: 600; font-style: italic; opacity: 0.65; }
.person .note { margin-top: 0.5rem; font-size: 0.8rem; font-style: italic; color: var(--ink-soft); }
.subcommittees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1rem; }
.subcommittee { background: var(--bone); border-left: 4px solid var(--tan); padding: 1.4rem 1.6rem; }
.subcommittee h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.subcommittee .chair { font-size: 0.9rem; color: var(--ink-soft); }
.subcommittee .chair strong { color: var(--moss-deep); }

/* ---------- CONTACT PAGE ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.contact-intro h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-intro p { color: var(--ink-soft); margin-bottom: 1rem; }
.contact-direct { font-size: 0.95rem; }
.contact-direct a { font-weight: 700; }
.contact-form { display: grid; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 0.7rem 0.85rem; width: 100%; transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(92,107,69,0.15); }
.form-field textarea { resize: vertical; }
.form-field input[type="file"] { padding: 0.55rem 0.85rem; cursor: pointer; }
.contact-form .btn { justify-self: start; cursor: pointer; }

/* ---------- EVENTS PAGE ---------- */
.event-feature {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--rust);
  border-radius: 4px; padding: 2rem 2.2rem;
}
.event-feature h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.event-feature .event-meta { color: var(--rust); font-weight: 700; letter-spacing: 0.03em; margin-bottom: 0.9rem; }
.event-feature p:last-child { color: var(--ink-soft); margin: 0; }

/* Emphasis callout (e.g., a key point within a section) */
.callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--rust);
  border-radius: 4px; padding: 1.6rem 2rem; margin-top: 1.8rem;
}
.callout h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.callout p { color: var(--ink-soft); margin: 0; }

/* Featured (highlighted) resource card */
.resource-card.feature { display: block; border-left: 5px solid var(--rust); margin-bottom: 2rem; }
.resource-card.feature .tag { background: var(--rust); color: var(--bone); }
.resource-card.feature h3 { font-size: 1.5rem; }

/* ---------- STYLE GUIDE ---------- */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.sg-swatch { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sg-chip { height: 88px; }
.sg-meta { padding: 0.7rem 0.85rem; font-size: 0.85rem; }
.sg-meta strong { display: block; margin-bottom: 0.15rem; }
.sg-meta code { font-size: 0.78rem; color: var(--ink-soft); }
.sg-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin: 1.2rem 0; }

/* Research page: tighter intro under the hero */
.section-intro { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.section-intro .prose { max-width: 860px; }
.section-intro .prose p { font-size: 1.12rem; }

/* Related working groups list (About + Resources) */
.org-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.4rem; }
.org-list li { padding-left: 1rem; border-left: 3px solid var(--tan); }
.org-list a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.org-list a:hover { color: var(--rust); }
.org-list p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Research page: collapsible publication categories */
/* research search */
.pub-search { margin: 0 0 1.6rem; }
.pub-search-input {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.pub-search-input:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(168, 85, 46, 0.15); }
.pub-search-status { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.92rem; min-height: 1.2em; }
.pub-suggest { margin: 0.4rem 0 1.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.pub[hidden], .pub-cat[hidden] { display: none; }

.pub-cat { border-top: 1px solid var(--line); }
.pub-cat:last-of-type { border-bottom: 1px solid var(--line); }
.pub-cat > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1.15rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--ink);
}
.pub-cat > summary::-webkit-details-marker { display: none; }
.pub-cat > summary::marker { content: ''; }
.pub-cat > summary:hover { color: var(--rust); }
.pub-cat-count { margin-left: auto; font-family: 'Source Sans 3', sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.pub-cat > summary::after { content: '+'; font-family: 'Source Sans 3', sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--rust); line-height: 1; }
.pub-cat[open] > summary::after { content: '\2013'; }
.pub-cat-intro { color: var(--ink-soft); max-width: 760px; margin: 0 0 0.8rem; }
.pub-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.pub { display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.pub-year { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--rust); font-size: 1rem; padding-top: 0.1rem; }
.pub-title { display: inline-block; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; line-height: 1.35; }
.pub-title:hover { color: var(--rust); }
.pub-cite { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.25rem; }
.pub-note { color: var(--ink-soft); font-size: 0.96rem; margin: 0.5rem 0 0; }

/* Voice & tone */
.sg-voice-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.sg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1rem; }
.sg-cols h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.sg-example { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--olive); border-radius: 4px; padding: 1.2rem 1.6rem; margin-top: 1rem; }
.sg-example p { margin: 0; color: var(--ink-soft); font-style: italic; }
.sg-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 0.92rem; }
.sg-table th, .sg-table td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
.sg-table thead th { background: var(--moss-deep); color: var(--bone); font-family: 'Playfair Display', serif; font-weight: 700; }
.sg-table tbody th { background: var(--bone); font-weight: 700; color: var(--ink); }
.sg-table tbody tr:nth-child(even) td { background: var(--bone); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header .wrap { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(43, 55, 35, 0.12);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.9rem 2rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  /* On phones the video never loads; hide it so its poster doesn't cover
     the responsive hero background image. */
  .hero-video { display: none; }
  /* Zoom and raise the image so a dark pig sits behind the tan heading line,
     keeping "A coordinated response." readable instead of washed out on grass. */
  .hero-bg { background-size: auto 150%; background-position: center 85%; }
  /* Give the middle phrase its own line on narrow screens */
  .hero h1 .hero-line { display: block; white-space: nowrap; }
  /* Let the tan line sit on its own line and wrap, so it isn't clipped on phones */
  .hero h1 .accent { display: block; white-space: normal; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .stat .num { font-size: 2rem; }
  .paths, .news-grid, .value-grid { grid-template-columns: 1fr; }
  .people-grid, .subcommittees { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 0.3rem; }
  .org-list { grid-template-columns: 1fr; }
  .sg-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .sg-table { font-size: 0.82rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; }
  .topbar-left { display: none; }
}
