/* Shared styles for the Take Action directory and screening archive. */
@font-face {
  font-family: Mulish;
  src: url("assets/Mulish-latin-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #fff;
  --bg-band: #bae1e2;
  --bg-hover: #eef6f6;
  --text: #231f20;
  --text-muted: #565254;
  --accent: #3960ac;
  --border: #d8d1c8;
  --radius: 6px;
  --space-md: 1rem;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --measure: 58rem;
  font-family: Mulish, system-ui, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
h1, h2, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
[tabindex="-1"]:focus { outline-offset: .25rem; }
[hidden] { display: none !important; }
p, li, .hero-meta, .participant-name, .archive-bio { overflow-wrap: anywhere; }
.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  z-index: 1;
  inset: .75rem auto auto .75rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1rem;
  clip-path: none;
  background: var(--bg);
}

.masthead { padding-block: .625rem; }
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 .75rem;
}
.masthead a { display: inline-flex; align-items: center; min-height: 44px; }
.masthead-logo { display: block; width: 180px; height: auto; }
.masthead-back { gap: .5rem; font-size: .875rem; font-weight: 800; }
.masthead-donate { min-width: 44px; justify-content: center; font-weight: 800; }

.hero {
  background: var(--bg-band);
  padding-block: clamp(1.375rem, 4vw, 2.5rem);
}
.hero-kicker {
  margin-bottom: .375rem;
  font-size: .875rem;
  font-weight: 800;
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.875rem);
  font-weight: 800;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-where { margin-top: .5rem; font-weight: 800; }
.hero-premise {
  margin-top: .625rem;
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
}
.hero-premise:empty { display: none; }

.directory-list { padding-block: 1.25rem 3rem; }
.dir-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 0 clamp(1rem, 4vw, 2.5rem);
  align-items: start;
  border-bottom: 1px solid var(--border);
  scroll-margin-block-start: 1rem;
}
.dir-group:first-child { border-top: 1px solid var(--border); }
.dir-film, .directory-events h2, .section-label, .section-materials h2 {
  font-size: clamp(1.125rem, 2.35vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}
.dir-film { padding-block: .875rem; overflow-wrap: anywhere; }
.dir-list, .actions-unified, .people-list { list-style: none; padding: 0; }
.dir-list li + li { border-top: 1px solid var(--border); }
.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding-block: .75rem;
  text-decoration: none;
}
.dir-row:hover { background: var(--bg-hover); }
.dir-venue { display: block; font-weight: 800; text-decoration: underline; }
.dir-date { display: block; color: var(--text-muted); font-size: .875rem; }
.dir-arrow { font-weight: 800; }
.directory-events { margin-top: 2.5rem; }
.directory-events h2 { margin-bottom: .875rem; }
.directory-topics { margin-top: .875rem; }
.directory-topics h2 { font-size: .875rem; font-weight: 800; }
.directory-topics ul, .archive-jumps ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding: 0;
  list-style: none;
}
.directory-topics a, .archive-jumps a, .archive-related a, .resource-links a, .iec-summary a, .current-resource a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.directory-topics a, .resource-links a, .current-resource a { font-weight: 800; }
.directory-topics a { color: var(--text); }
.archive-jumps a { font-weight: 700; }
.archive-jumps + .section { border-top: 1px solid var(--border); }
.archive-related ul, .resource-links { padding: 0; list-style: none; }
.archive-related li + li, .resource-links li + li { border-top: 1px solid var(--border); }
.resource-guide .section p, .iec-summary p { max-width: 62ch; }
.resource-links { margin-top: .5rem; }
.guide-checklist { max-width: 62ch; padding-inline-start: 1.25rem; margin-top: .625rem; }
.guide-checklist li + li { margin-top: .375rem; }

.screening-content { padding-block: .875rem 2.5rem; }
.section, .more-from-oeff { padding-block: 1.5rem; }
.section + .section, .more-from-oeff { border-top: 1px solid var(--border); }
.section-label, .section-materials h2 { margin-bottom: .875rem; }
.current-resource {
  padding: .875rem;
  background: var(--bg-hover);
  border-radius: var(--radius);
}
.current-resource .section-label { margin-bottom: .375rem; overflow-wrap: anywhere; }
.current-resource p { max-width: 62ch; }
.archive-note { max-width: 58ch; color: var(--text-muted); margin-bottom: .875rem; }
.actions-unified, .actions-list { border-top: 1px solid var(--border); }
.actions-list { padding-inline-start: 1.75rem; }
.actions-unified li, .actions-list li {
  border-bottom: 1px solid var(--border);
}
.actions-list li { padding: .75rem .25rem; }
.actions-unified li > a, .actions-unified li > span {
  display: block;
  min-height: 44px;
  padding: .75rem .25rem;
  white-space: pre-line;
}
.actions-unified li > a { font-weight: 700; }
.actions-unified li > a:hover { background: var(--bg-hover); }
.archive-link-note { display: block; color: var(--text-muted); }
.participant-card { padding-block: .875rem; border-top: 1px solid var(--border); }
.participant-name { font-weight: 800; }
.participant-role { display: block; color: var(--text-muted); }
.participant-card summary {
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  padding-block: .625rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.archive-bio, .participant-bio p { max-width: 66ch; padding-bottom: .375rem; }
.archive-bio { white-space: pre-line; }
.iec-summary { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.iec-embed { margin-top: .5rem; }
.iec-embed a, .section-flyer a { display: inline-block; }
.iec-embed img, .section-flyer img { display: block; width: min(100%, 28rem); }
.section-flyer p { color: var(--text-muted); margin-bottom: .375rem; }
.hero-poster { display: block; width: min(100%, 9rem); }
.screening-media { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.section-donate { border-top: 1px solid var(--border); background: var(--bg-hover); margin-top: 1rem; padding-inline: 1rem; border-radius: var(--radius); }
.section-donate .section-label { margin-bottom: .5rem; }
.donate-context { max-width: 62ch; }
.btn-donate, .more-from-oeff a, .footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}
.footer { border-top: 1px solid var(--border); padding-block: 1rem 2rem; }
.footer a { max-width: 100%; overflow-wrap: anywhere; }
.footer-brand, .footer-marks { font-weight: 800; }
.footer-tagline { color: var(--text-muted); }
.footer-divider { display: inline-block; width: .75em; }
.social-links, .social-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.footer .social-links a, .footer .social-nav a { justify-content: center; min-width: 44px; }
.footer svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 40rem) {
  .dir-group { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dir-film { padding-block: .875rem 0; }
  .dir-date { margin-top: .125rem; }
  .masthead { padding-block: .5rem; }
}

@media print {
  .masthead-back, .masthead-donate, .skip-link, .dir-arrow, .social-links, .social-nav { display: none; }
  .hero { background: var(--bg); }
  .dir-group, .participant-card { break-inside: avoid; }
}
