/* GDL.GLOBAL — hero/header/footer dark; main site light (FSD) */
:root {
  /* Dark (hero, header, footer) */
  --gdl-black: #0a0a0a;
  --gdl-black-soft: #111;
  --gdl-black-mid: #1a1a1a;
  --gdl-white: #f5f5f5;
  --gdl-white-dim: #a3a3a3;
  --gdl-border-dark: #262626;
  --gdl-accent: #e5e5e5;
  /* Light (main content) */
  --gdl-page-bg: #fafafa;
  --gdl-page-bg-alt: #f1f5f9;
  --gdl-page-text: #1e293b;
  --gdl-page-text-muted: #64748b;
  --gdl-page-border: #e2e8f0;
  --gdl-page-accent: #0f172a;
  --gdl-red: #b91c1c;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--gdl-page-bg);
  color: var(--gdl-page-text);
  line-height: 1.6;
}

/* Header — black, logo + wordmark */
.site-header {
  background: var(--gdl-black);
  color: var(--gdl-white);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--gdl-border-dark);
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
  /* If logo is white on black, lighten makes black transparent so white shows on dark header */
  mix-blend-mode: lighten;
}

.site-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-nav a {
  color: var(--gdl-white);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--gdl-accent);
  text-decoration: none;
}

.site-nav a.nav-cta {
  background: var(--gdl-white);
  color: var(--gdl-black);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  font-weight: 700;
}

.site-nav a.nav-cta:hover {
  background: var(--gdl-white-dim);
  color: var(--gdl-black);
  text-decoration: none;
}

/* Screaming hero — full-bleed, dark red, huge type, left-aligned */
.hero-screaming {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: var(--gdl-white);
  overflow: hidden;
}

.hero-screaming-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.85) 50%, rgba(10, 10, 10, 0.92) 100%),
    url("/assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-screaming-inner {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  text-align: left;
}

.hero-screaming-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.92;
}

.hero-screaming-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.hero-screaming-excerpt {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  opacity: 0.95;
  max-width: 42rem;
}

.hero-screaming-cta {
  display: inline-block;
  background: var(--gdl-white);
  color: var(--gdl-black);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 2px;
}

.hero-screaming-cta:hover {
  background: var(--gdl-white-dim);
  color: var(--gdl-black);
}

/* Mission block — ADL-style two columns, dark blue */
.mission-block {
  background: #0f172a;
  color: var(--gdl-white);
  padding: 3rem 1.5rem 4rem;
}

.mission-block-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .mission-block-inner {
    grid-template-columns: 1fr;
  }
}

.mission-block-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.mission-block-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.95;
}

.mission-block-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1rem;
}

.mission-block-tab {
  color: var(--gdl-white);
  opacity: 0.8;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0 0.25rem;
}

.mission-block-tab-active {
  opacity: 1;
  border-bottom: 3px solid #ea580c;
}

.mission-block-panel-hidden {
  display: none;
}

.mission-block-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  justify-items: center;
  align-items: start;
}

.mission-block-btn {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0.75rem 1rem;
  min-width: 0;
  color: var(--gdl-white);
  border: 2px solid var(--gdl-white);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}

.mission-block-btn:hover {
  background: var(--gdl-white);
  color: #0f172a;
}

/* Legacy mission block — light (kept for any other use) */
.hero-mission {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: var(--gdl-page-bg);
}

.hero-mission-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--gdl-page-accent);
  letter-spacing: -0.01em;
}

.hero-mission-text {
  margin: 0 0 1.5rem;
  color: var(--gdl-page-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-mission-issues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gdl-page-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-mission-issues span::after {
  content: " · ";
  margin-left: 0.25rem;
  color: var(--gdl-page-border);
}

.hero-mission-issues span:last-child::after {
  content: none;
}

/* Section layout — light strips */
.section {
  padding: 2.5rem 1.5rem 3rem;
  background: #fff;
}

.section:nth-child(even) {
  background: var(--gdl-page-bg-alt);
}

.section-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gdl-page-accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Issues grid (What We Track) */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.issue-card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--gdl-page-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.issue-card:hover {
  border-color: var(--gdl-page-accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.issue-card-title {
  display: block;
  font-weight: 700;
  color: var(--gdl-page-accent);
  margin-bottom: 0.35rem;
}

.issue-card-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--gdl-page-text-muted);
}

/* Latest from GDL — ADL-style carousel */
.latest-section-inner {
  max-width: 56rem;
}

.latest-carousel {
  margin-bottom: 0;
}

.latest-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.latest-title {
  margin: 0;
}

.latest-nav {
  display: flex;
  gap: 0.5rem;
}

.latest-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.latest-prev {
  background: #fed7aa;
  color: #0f172a;
}

.latest-next {
  background: #ea580c;
  color: #fff;
}

.latest-nav-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.latest-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.latest-viewport {
  overflow: hidden;
  margin-bottom: 1rem;
}

.latest-track {
  display: flex;
  width: calc(100% * (var(--total, 3) / var(--per-page, 3)));
  transition: transform 0.3s ease;
}

.latest-track > * {
  flex: 0 0 calc(100% / var(--total, 3));
  min-width: 0;
  box-sizing: border-box;
}

.latest-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gdl-page-border, #e2e8f0);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  margin-right: 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-sizing: border-box;
}

.latest-track > .latest-card:last-child {
  margin-right: 0;
}

.latest-card-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gdl-page-text-muted, #64748b);
  margin-bottom: 0.5rem;
}

.latest-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gdl-page-accent, #0f172a);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card:hover .latest-card-title {
  color: var(--gdl-red, #b91c1c);
}

.latest-card-date {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--gdl-page-text-muted, #64748b);
}

.latest-card-image {
  margin-top: auto;
  border-radius: 2px;
  overflow: hidden;
  background: #f1f5f9;
  min-height: 120px;
}

.latest-card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.latest-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--gdl-page-text-muted, #64748b);
}

.latest-pagination {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--gdl-page-text-muted, #64748b);
  text-align: center;
}

.latest-view-more-btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #ea580c;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.latest-view-more-btn:hover {
  background: #c2410c;
}

.latest-more {
  margin: 0;
  text-align: center;
}

/* Legacy article list (e.g. if used elsewhere) */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gdl-page-border);
}

.article-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gdl-red);
  margin-bottom: 0.35rem;
}

.article-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-title a {
  color: var(--gdl-page-accent);
  text-decoration: none;
}

.article-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--gdl-page-text-muted);
}

.article-excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--gdl-page-text-muted);
  line-height: 1.55;
}

.article-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gdl-red);
  text-decoration: none;
}

/* Take Action grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.action-card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--gdl-page-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.action-card:hover {
  border-color: var(--gdl-page-accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.action-card-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.action-card-title {
  display: block;
  font-weight: 700;
  color: var(--gdl-page-accent);
  margin-bottom: 0.35rem;
}

.action-card-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--gdl-page-text-muted);
  line-height: 1.5;
}

/* Footer — black strip */
.site-footer {
  background: var(--gdl-black);
  color: var(--gdl-white);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--gdl-border-dark);
}

.footer-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.footer-org {
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: var(--gdl-white);
  text-decoration: underline;
}

.footer-copy {
  margin: 1rem 0 0;
  opacity: 0.85;
}

/* Display database page */
.display-header {
  background: var(--gdl-black);
  color: var(--gdl-white);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gdl-border-dark);
}

.display-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.display-header .subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

.display-header .org-line {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.display-content {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background: var(--gdl-page-bg);
}

.display-intro {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--gdl-page-border);
}

.display-intro h2 {
  font-size: 1.35rem;
  color: var(--gdl-page-accent);
  margin: 0 0 0.75rem;
}

.display-intro p {
  margin: 0 0 0.5rem;
  color: var(--gdl-page-text-muted);
  font-size: 0.98rem;
}

.display-list-heading {
  font-size: 1.25rem;
  color: var(--gdl-page-accent);
  margin: 0 0 1rem;
}

.display-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.display-article {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gdl-page-border);
}

.display-article:last-child {
  border-bottom: none;
}

.display-article-type {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gdl-red);
  margin-bottom: 0.35rem;
}

.display-article-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.display-article-title a {
  color: var(--gdl-page-accent);
  text-decoration: none;
}

.display-article-title a:hover {
  color: var(--gdl-red);
}

.display-article-meta {
  margin: 0 0 0.5rem;
  color: var(--gdl-page-text-muted);
  font-size: 0.9rem;
}

.display-article-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gdl-red);
  text-decoration: none;
}

.display-article-link:hover {
  text-decoration: underline;
}

.display-empty {
  margin: 0;
  padding: 2rem 0;
  color: var(--gdl-page-text-muted);
  font-size: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
