/**
 * Ditto Design System
 * Clean, brutalist aesthetic with minimal complexity
 *
 * Design Principles:
 * - 3 font sizes (huge, big, body)
 * - 4 spacing values (tight, standard, loose, section)
 * - 2 weights (regular, heavy)
 * - Sharp edges, offset shadows, bold typography
 */

/* ============================================
   RESET & BASE
   ============================================ */

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

:root {
  /* Colors */
  --red: #e23b0b;
  --red-contrast: #cc3309;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-light: #F3F4F6;
  --gray-mid: #6B7280;
  --gray-dark: #374151;
  --footer-muted: #D1D5DB;

  /* Typography - 3 sizes only */
  --huge: 5rem;        /* 80px - Hero headlines */
  --big: 3rem;         /* 48px - Section titles */
  --body: 1.125rem;    /* 18px - Everything else */

  /* Spacing - 4 values only */
  --tight: 1rem;       /* 16px - Compact spacing */
  --standard: 2rem;    /* 32px - Default spacing */
  --loose: 4rem;       /* 64px - Generous spacing */
  --section: 7.5rem;   /* 120px - Section padding */

  /* Weights - 2 only */
  --regular: 400;
  --heavy: 800;

  /* Brutalist offset shadow */
  --shadow: 8px 8px 0;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: var(--body);
  font-weight: var(--regular);
  line-height: 1.6;
  color: var(--black);
}

.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;
}

h1, h2, h3, h4 {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--standard);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--red);
  }
  15% {
    opacity: 0.8;
    transform: scale(1.5);
    box-shadow: 0 0 12px 4px rgba(226, 59, 11, 0.3);
  }
  30%, 100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--red);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: var(--white);
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(#E5E7EB 1px, transparent 1px),
    linear-gradient(90deg, #E5E7EB 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.6;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--huge);
  margin-bottom: var(--standard);
}

.hero-highlight {
  color: var(--red);
}

.hero-subhead {
  font-size: calc(var(--body) * 1.33);
  font-weight: var(--regular);
  color: var(--gray-dark);
  margin-bottom: var(--tight);
}

.hero-subhead a,
.hero-subhead a:visited {
  color: var(--red-contrast);
  text-decoration: underline;
  font-weight: var(--heavy);
}

.hero-subhead a:hover {
  color: var(--black);
}

.section p a,
.section li a,
.section p a:visited,
.section li a:visited {
  color: var(--red-contrast);
  text-decoration: underline;
  font-weight: var(--heavy);
}

.section p a:hover,
.section li a:hover {
  color: var(--black);
}

.hero-detail {
  font-size: var(--body);
  color: var(--gray-dark);
  margin-bottom: var(--loose);
  max-width: 700px;
}

ul.hero-detail {
  list-style: none;
  padding-left: 0;
}

ul.hero-detail li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

ul.hero-detail li::before {
  content: "•";
  color: var(--red);
  font-weight: var(--heavy);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.1rem;
}

/* Hero data points animation */
.hero-data-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-data-points span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 6.4s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta {
  display: flex;
  gap: var(--tight);
}

.cta-centered {
  margin-top: var(--loose);
  justify-content: center;
}

.btn {
  padding: var(--tight) var(--standard);
  font-size: var(--body);
  font-weight: var(--heavy);
  font-family: 'Anybody', sans-serif;
  text-decoration: none;
  border-radius: 0;
  border: 2px solid var(--black);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--red-contrast);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--black);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--red);
}

.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--section) 0;
}

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

.section h2 {
  font-size: var(--big);
  text-align: center;
  margin-bottom: var(--loose);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: calc(var(--standard) * -1) auto var(--loose);
  font-size: calc(var(--body) * 1.11);
  font-weight: var(--regular);
  color: var(--gray-dark);
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */

.article-page {
  width: 100%;
}

.article-container {
  max-width: 900px;
}

.article-back-link {
  margin-bottom: var(--standard);
}

.article-back-link a {
  color: var(--black);
  text-decoration: none;
  font-weight: var(--heavy);
  transition: color 0.15s ease;
}

.article-back-link a:hover {
  color: var(--red);
}

.article-header {
  margin-bottom: var(--loose);
}

.article-title {
  font-size: var(--huge);
  font-weight: var(--heavy);
  margin-bottom: var(--tight);
  line-height: 1.1;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--standard);
}

.article-tag {
  color: var(--gray-mid);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-tag:hover {
  color: var(--red);
}

.article-author {
  display: flex;
  align-items: center;
  gap: var(--tight);
}

.article-author-image {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  object-fit: cover;
}

.article-author-name {
  margin: 0;
  font-weight: var(--heavy);
  color: var(--black);
}

.article-author-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.article-featured-image {
  margin-bottom: var(--loose);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
}

.article-content h2 {
  font-size: calc(var(--body) * 1.75);
  font-weight: var(--heavy);
  margin-top: var(--section);
  margin-bottom: var(--standard);
  line-height: 1.2;
}

.article-content h3 {
  font-size: calc(var(--body) * 1.4);
  font-weight: var(--heavy);
  margin-top: var(--section);
  margin-bottom: var(--tight);
  line-height: 1.3;
}

.article-content h4 {
  font-size: calc(var(--body) * 1.2);
  font-weight: var(--heavy);
  margin-top: var(--loose);
  margin-bottom: var(--tight);
  line-height: 1.4;
}

.article-content p {
  margin-bottom: var(--tight);
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  font-weight: var(--heavy);
  transition: color 0.15s ease;
}

.article-content a:hover {
  color: var(--black);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--tight);
  padding-left: var(--standard);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  font-weight: var(--heavy);
}

.article-content blockquote {
  border-left: 4px solid var(--red);
  padding-left: var(--standard);
  margin: var(--standard) 0;
  font-style: italic;
  color: var(--gray-dark);
}

.article-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: var(--loose) auto;
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
}

.article-content figure {
  margin: var(--loose) 0;
}

.article-content figure img {
  margin: 0 auto;
}

/* Pixel-art sprites (game sprites, 8-bit logos, etc.) — keep edges crisp,
   render at a visible size, and skip the brand border/shadow that looks daft
   at sprite scale. Applied automatically when intrinsic image dims ≤ 150px. */
.article-content figure.pixel-sprite {
  text-align: center;
  margin: var(--loose) auto;
}

.article-content figure.pixel-sprite img,
.article-content img.pixel-sprite {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: auto;
  height: auto;
  max-width: 192px;
  /* Upscale tiny sprites so they're actually visible. The browser will pick
     the natural width up to this cap; for very small (≤32px) sprites we use
     a min-width to force a visible upscale. */
  min-width: 96px;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  display: block;
}

.article-content figcaption {
  margin-top: var(--tight);
  font-size: 0.9rem;
  color: var(--gray-mid);
  font-style: italic;
}

.article-page article,
.article-layout > *,
.product-release-shell > *,
.product-release-entry > *,
.product-release-card > *,
.article-author-bio-content > * {
  min-width: 0;
}

.article-featured-image,
.product-release-detail-media,
.article-content,
.seeds-article-content,
.article-content figure,
.seeds-article-content figure {
  max-width: 100%;
  min-width: 0;
}

.article-content img,
.seeds-article-content img,
.article-featured-image img,
.product-release-detail-media img,
.article-content iframe,
.seeds-article-content iframe,
.article-content video,
.seeds-article-content video,
.article-content embed,
.seeds-article-content embed,
.article-content object,
.seeds-article-content object,
.article-content svg,
.seeds-article-content svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.article-content pre,
.seeds-article-content pre,
.article-content blockquote,
.seeds-article-content blockquote {
  max-width: 100%;
  overflow-x: auto;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content p,
.article-content li,
.article-content figcaption,
.article-content a,
.article-content code,
.seeds-article-content h2,
.seeds-article-content h3,
.seeds-article-content h4,
.seeds-article-content h5,
.seeds-article-content p,
.seeds-article-content li,
.seeds-article-content figcaption,
.seeds-article-content a,
.seeds-article-content code,
.article-callout p,
.article-callout li,
.article-callout dt,
.article-callout dd,
.research-faq-question,
.research-faq-answer,
.hero-subhead {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-table-scroll {
  margin: var(--loose) 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table-scroll table {
  display: table;
  min-width: 100%;
  margin: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--standard) 0;
  border: 2px solid var(--black);
}

.article-content th,
.article-content td {
  padding: var(--tight);
  text-align: left;
  border: 1px solid var(--black);
}

.article-content th {
  background: var(--black);
  color: var(--white);
  font-weight: var(--heavy);
}

.article-content td {
  color: var(--black);
}

.article-content tr:nth-child(even) {
  background: var(--gray-light);
}

.article-author-bio {
  margin: var(--loose) 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--white);
}

.article-author-bio-header {
  margin-bottom: var(--tight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: var(--heavy);
  color: var(--gray-mid);
}

.article-author-bio-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--standard);
  align-items: start;
}

.article-author-bio-image {
  width: 80px;
  height: 80px;
  border: 2px solid var(--black);
  object-fit: cover;
}

.article-author-bio-name {
  font-size: calc(var(--body) * 1.3);
  font-weight: var(--heavy);
  margin-bottom: 0.25rem;
}

.article-author-bio-meta {
  margin-bottom: var(--tight);
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.article-author-bio-text {
  margin: 0;
  line-height: 1.6;
  color: var(--gray-dark);
}

.article-author-social {
  margin-top: var(--tight);
  display: flex;
  gap: 0.5rem;
}

.article-author-social a {
  padding: 0.35rem 0.65rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.article-author-social a:hover {
  background: var(--black);
  color: var(--white);
}

/* Article callout boxes (for research studies) */
.article-callout {
  margin: var(--loose) 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--gray-light);
}

.article-callout-label {
  margin-bottom: var(--tight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--gray-mid);
}

.article-callout a {
  color: var(--red);
  text-decoration: underline;
}

.article-callout a:hover {
  text-decoration: none;
}

/* Article card section - content between <hr> pairs in Rich Text */
.article-card-section {
  margin: var(--loose) 0;
  padding: var(--standard) var(--standard) var(--tight);
  border: 2px solid var(--black);
  background: #f8f7f4;
  box-shadow: var(--shadow) var(--black);
}

.article-card-section h2,
.article-card-section h3 {
  margin-top: 0;
}

.article-card-section blockquote {
  margin: var(--standard) 0;
  padding: 1rem 1.25rem;
  background: var(--black);
  color: #00ff41;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  border: none;
  border-left: none;
  overflow-x: auto;
}

.article-card-section blockquote p {
  margin: 0;
  color: #00ff41;
}

.article-card-section blockquote code {
  color: #00ff41;
  background: none;
  padding: 0;
}

.article-card-section ol,
.article-card-section ul {
  padding-left: 1.5rem;
}

.article-card-section li {
  margin-bottom: 0.5rem;
}

/* Social proof links row (last paragraph with multiple links in card) */
.article-card-section p:last-child a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-weight: var(--heavy);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.article-card-section p:last-child a:hover {
  background: var(--black);
  color: var(--white);
}

.article-related {
  margin: var(--loose) 0;
}

.article-related-title {
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--heavy);
  margin-bottom: var(--standard);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--standard);
}

.article-related-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  box-shadow: 4px 4px 0 var(--red);
  display: flex;
  flex-direction: column;
}

.article-related-card h4 {
  font-size: calc(var(--body) * 1.1);
  font-weight: var(--heavy);
  margin-bottom: var(--tight);
}

.article-related-card h4 a {
  color: var(--black);
  text-decoration: none;
}

.article-related-card p {
  color: var(--gray-dark);
  margin-bottom: var(--standard);
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-related-card .btn {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.article-cta {
  margin: var(--section) 0;
  padding: var(--loose);
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  text-align: center;
}

.article-cta h3 {
  font-size: var(--big);
  font-weight: var(--heavy);
  margin-bottom: var(--standard);
}

.article-cta p {
  color: var(--gray-light);
  margin-bottom: var(--standard);
  font-size: calc(var(--body) * 1.1);
}

.article-cta .btn-primary {
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--white);
}

/* Section with decorative background */
.section.has-background {
  position: relative;
  overflow: hidden;
}

.section.has-background .container {
  position: relative;
  z-index: 1;
}

/* Dark section (Final CTA) */
.section.dark {
  background: var(--black);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 59, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 59, 11, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.section.dark > * {
  position: relative;
  z-index: 1;
}

.section.dark h2 {
  font-size: var(--big);
  margin-bottom: var(--tight);
  color: var(--red);
}

.section.dark h2 + p {
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--regular);
  margin-bottom: var(--standard);
}

.section.dark .cta {
  margin-bottom: var(--standard);
  justify-content: center;
}

.section.dark .btn {
  background: var(--red-contrast);
  color: var(--white);
  border: 2px solid var(--white);
}

.section.dark .btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--white);
}

.section.dark .text-small {
  color: var(--gray-mid);
}

/* ============================================
   CARDS
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--standard);
}

@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--red);
}

.card-label {
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 0.75);
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--black);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: var(--tight);
  box-shadow: 4px 4px 0 var(--red);
}

.card h3 {
  font-size: calc(var(--body) * 1.5);
  margin-bottom: var(--tight);
}

.card p {
  margin-bottom: var(--tight);
  font-weight: var(--regular);
}

.card-examples {
  font-size: calc(var(--body) * 0.875);
  color: var(--gray-dark);
}

/* ============================================
   METHODOLOGY SECTION
   ============================================ */

.methodology {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--loose);
  position: relative;
}

.methodology::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--black);
  z-index: 0;
}

.method-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.method-number {
  width: 72px;
  height: 72px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 2);
  font-weight: var(--heavy);
  margin: 0 auto var(--standard);
  box-shadow: 4px 4px 0 var(--red);
}

.method-step h3 {
  font-size: calc(var(--body) * 1.25);
  margin-bottom: var(--tight);
}

.method-step p {
  font-size: calc(var(--body) * 0.875);
  font-weight: var(--regular);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison {
  background: var(--white);
  padding: var(--loose);
  max-width: 900px;
  margin: 0 auto;
  border: 3px solid var(--black);
  position: relative;
}

.comparison::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: var(--red);
  z-index: -1;
}

.comparison h3 {
  text-align: center;
  font-size: calc(var(--body) * 2);
  margin-bottom: var(--standard);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--tight);
}

.comparison-header {
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 0.875);
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: var(--tight);
  border-bottom: 3px solid var(--black);
  text-align: center;
}

.comparison-row {
  display: contents;
}

.comparison-cell {
  padding: var(--tight) 0;
  border-bottom: 1px solid #D1D5DB;
  display: flex;
  align-items: center;
  font-size: var(--body);
}

.comparison-label {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
}

.comparison-traditional {
  color: var(--gray-dark);
  justify-content: center;
}

.comparison-ditto {
  font-weight: var(--heavy);
  justify-content: center;
}

.comparison-ditto::before {
  content: '→';
  color: var(--red);
  margin-right: 8px;
  font-weight: var(--heavy);
}

/* ============================================
   BENCHMARK SIGNAL (HOMEPAGE)
   ============================================ */

.benchmark-card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  padding: var(--standard) var(--standard) var(--tight);
  max-width: 720px;
  margin: 0 auto;
}

.benchmark-chart-container {
  height: 200px;
}

@media (max-width: 768px) {
  .benchmark-chart-container {
    height: 160px;
  }
}

/* ============================================
   BADGES
   ============================================ */

.badges {
  display: flex;
  justify-content: center;
  gap: var(--standard);
  flex-wrap: wrap;
  margin: var(--loose) 0;
}

.badge {
  width: 140px;
  height: 140px;
  background: var(--white);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  text-align: center;
  padding: var(--tight);
}

/* ============================================
   WORLD MAP
   ============================================ */

.world-map-container {
  position: relative;
  margin: var(--loose) 0;
  width: 100%;
  padding-bottom: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.world-map-container.is-background-loaded {
  background-image: url('/static/world_map_dots.png');
}

.world-map-dots {
  position: absolute;
  inset: 0;
}

.world-map-dots span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 6.4s ease-in-out infinite;
}

/* ============================================
   LEADERS SECTION
   ============================================ */

.leaders-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--standard);
  margin-top: var(--loose);
}

.leaders-card {
  background: var(--white);
  padding: var(--standard);
  text-align: left;
}

.leaders-card h3 {
  font-size: calc(var(--body) * 1.25);
  margin-bottom: var(--tight);
}

.leaders-card p {
  color: var(--gray-dark);
  font-weight: var(--regular);
  line-height: 1.6;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--standard);
  margin-top: var(--loose);
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--black);
  margin-bottom: var(--tight);
}

.team-member-name {
  font-size: var(--body);
  font-weight: var(--heavy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.team-member-linkedin {
  display: inline-block;
  color: var(--black);
  transition: color 0.15s ease;
}

.team-member-linkedin:hover {
  color: var(--red);
}

.team-member-linkedin svg {
  width: 24px;
  height: 24px;
}

/* Work Methods Grid */
.work-methods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--loose);
  margin-top: var(--loose);
}

.work-method {
  text-align: center;
}

.work-method-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--standard);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-method-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.work-method-icon svg {
  width: 60px;
  height: 60px;
  color: var(--black);
}

.work-method h3 {
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--heavy);
  margin-bottom: var(--tight);
  line-height: 1.2;
}

.work-method p {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ============================================
   UTILITIES
   ============================================ */

.narrow-container {
  max-width: 800px;
}

.content-block {
  margin-bottom: var(--section);
}

.text-dark {
  color: var(--gray-dark);
}

.text-muted {
  font-size: calc(var(--body) * 0.875);
  color: var(--gray-mid);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--loose);
}

.two-col-grid h3 {
  font-size: calc(var(--body) * 1.5);
  margin-bottom: var(--standard);
}

.two-col-grid ul {
  list-style: none;
  padding: 0;
}

.two-col-grid li {
  margin-bottom: var(--tight);
}

.text-red {
  color: var(--red);
}

.text-center {
  text-align: center;
}

.consumer-mood-question {
  margin-bottom: 0;
}

.consumer-mood-section-header {
  margin-bottom: var(--loose);
}

.consumer-mood-status {
  margin-top: var(--tight);
  margin-bottom: 0;
}

.consumer-mood-status-error {
  color: var(--red);
}

.consumer-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--loose);
}

.consumer-chart-card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  padding: var(--standard);
  margin-bottom: var(--loose);
}

.consumer-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--standard);
  margin-bottom: var(--standard);
}

.consumer-chart-heading h3 {
  font-size: calc(var(--body) * 1.5);
  margin-bottom: 0.35rem;
}

.consumer-chart-heading p {
  margin-bottom: 0;
}

.consumer-chart-caption {
  flex: 0 0 auto;
  text-align: right;
  font-size: calc(var(--body) * 0.875);
  color: var(--gray-mid);
  max-width: 240px;
}

.consumer-chart-surface {
  min-height: 340px;
}

.consumer-chart-surface-trend {
  height: 500px;
}

.consumer-chart-surface-balance {
  height: 340px;
}

.consumer-chart-surface-compass {
  height: 380px;
}

.consumer-chart-surface-latest {
  height: 420px;
}

.consumer-chart-surface-recovery {
  height: 360px;
}

.consumer-chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 1px dashed var(--gray-mid);
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: calc(var(--body) * 0.95);
  text-align: center;
  padding: var(--standard);
}

.consumer-chart-placeholder-error {
  border-color: rgba(226, 59, 11, 0.5);
  color: var(--red);
  background: rgba(226, 59, 11, 0.05);
}

.consumer-chart-footnote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--standard);
  margin-top: var(--tight);
}

.consumer-chart-footnote-grid p,
.consumer-chart-jitter-note {
  margin-bottom: 0;
}

.consumer-chart-jitter-note {
  margin-top: var(--tight);
}

.consumer-chart-noscript {
  border: 2px dashed var(--black);
  background: var(--gray-light);
  padding: var(--standard);
}

.consumer-chart-noscript p:last-child {
  margin-bottom: 0;
}

.consumer-mood-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--standard);
  margin-bottom: var(--standard);
}

.consumer-mood-fact-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
}

.consumer-mood-fact-card h3 {
  font-size: calc(var(--body) * 1.15);
  margin-bottom: 0.5rem;
}

.consumer-mood-fact-card p {
  margin-bottom: 0;
}

.consumer-mood-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--tight);
}

.consumer-mood-faq-item {
  border: 2px solid var(--black);
  background: var(--white);
  padding: 0 var(--tight);
}

.consumer-mood-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--tight) 0;
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.05);
  font-weight: var(--heavy);
}

.consumer-mood-faq-item summary::-webkit-details-marker {
  display: none;
}

.consumer-mood-faq-item[open] summary {
  color: var(--red);
}

.consumer-mood-faq-item p {
  margin: 0;
  padding: 0 0 var(--tight);
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ── Michigan Model Check ── */

.michigan-section-header {
  margin-bottom: var(--loose);
}

.michigan-status {
  margin-top: var(--tight);
  margin-bottom: 0;
}

.michigan-status-error {
  color: var(--red);
}

.michigan-chart-card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  padding: var(--standard);
  margin-bottom: var(--loose);
}

.michigan-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--standard);
  margin-bottom: var(--standard);
}

.michigan-chart-heading h3 {
  font-size: calc(var(--body) * 1.5);
  margin-bottom: 0.35rem;
}

.michigan-chart-heading p {
  margin-bottom: 0;
}

.michigan-chart-caption {
  flex: 0 0 auto;
  text-align: right;
  font-size: calc(var(--body) * 0.875);
  color: var(--gray-mid);
  max-width: 280px;
}

.michigan-chart-surface {
  min-height: 340px;
}

.michigan-chart-surface-zscore {
  height: 440px;
}

.michigan-chart-surface-dualaxis {
  height: 440px;
}

.michigan-chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 1px dashed var(--gray-mid);
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: calc(var(--body) * 0.95);
  text-align: center;
  padding: var(--standard);
}

.michigan-chart-placeholder-error {
  border-color: rgba(226, 59, 11, 0.5);
  color: var(--red);
  background: rgba(226, 59, 11, 0.05);
}

.michigan-chart-noscript {
  border: 2px dashed var(--black);
  background: var(--gray-light);
  padding: var(--standard);
}

.michigan-chart-noscript p:last-child {
  margin-bottom: 0;
}

.michigan-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--tight);
}

.michigan-faq-item {
  border: 2px solid var(--black);
  background: var(--white);
  padding: 0 var(--tight);
}

.michigan-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--tight) 0;
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.05);
  font-weight: var(--heavy);
}

.michigan-faq-item summary::-webkit-details-marker {
  display: none;
}

.michigan-faq-item[open] summary {
  color: var(--red);
}

.michigan-faq-item p {
  margin: 0;
  padding: 0 0 var(--tight);
  color: var(--gray-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .michigan-chart-surface-zscore,
  .michigan-chart-surface-dualaxis {
    height: 320px;
  }

  .michigan-chart-heading {
    flex-direction: column;
  }

  .michigan-chart-caption {
    text-align: left;
    max-width: none;
  }
}

/* News/Articles */
.news-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  gap: var(--loose);
  align-items: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--standard);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--standard);
  margin-top: var(--standard);
}

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

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--standard);
}

.news-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  box-shadow: 4px 4px 0 var(--red);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.news-card h3 {
  font-size: calc(var(--body) * 1.2);
  margin-bottom: var(--tight);
  font-weight: var(--heavy);
}

.news-card h3 a {
  color: var(--black);
  text-decoration: none;
}

.news-card p {
  color: var(--gray-dark);
  margin-bottom: var(--standard);
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-card .btn {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.news-sidebar-layout > *,
.news-grid > *,
.research-grid > *,
.news-card > * {
  min-width: 0;
}

.news-card h3,
.news-card h3 a,
.news-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Product releases */
.product-release-intro {
  margin-bottom: var(--loose);
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--red);
}

.product-release-intro p:last-child {
  margin-bottom: 0;
}

.product-release-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--loose);
}

.product-release-month + .product-release-month {
  margin-top: calc(var(--section) * 0.75);
}

.product-release-month-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--standard);
  margin-bottom: var(--standard);
  padding-bottom: var(--tight);
  border-bottom: 2px solid var(--black);
}

.product-release-month-header h2 {
  margin: 0;
  font-size: calc(var(--body) * 1.45);
}

.product-release-month-header p {
  margin: 0;
  color: var(--gray-dark);
  max-width: 520px;
  text-align: right;
}

.product-release-list {
  display: grid;
  gap: var(--standard);
}

.product-release-entry {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--standard);
  align-items: start;
}

.product-release-date {
  position: relative;
  padding-top: 0.2rem;
  text-align: center;
}

.product-release-date::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--red);
  border: 2px solid var(--black);
  border-radius: 50%;
  transform: translateX(-50%);
}

.product-release-date::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.55rem;
  bottom: -2.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--black), rgba(10, 10, 10, 0.1));
  transform: translateX(-50%);
}

.product-release-entry:last-child .product-release-date::after {
  display: none;
}

.product-release-day {
  margin-top: 1.35rem;
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.4);
  font-weight: var(--heavy);
  line-height: 1;
}

.product-release-month-short {
  margin-top: 0.3rem;
  color: var(--gray-mid);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-release-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  box-shadow: 4px 4px 0 var(--red);
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: var(--standard);
  align-items: start;
}

.product-release-card-media-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  align-self: start;
}

.product-release-card-media,
.product-release-card-placeholder {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border: 2px solid var(--black);
}

.product-release-card-media {
  object-fit: cover;
}

.product-release-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--standard);
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.1);
  font-weight: var(--heavy);
  text-align: center;
  line-height: 1.2;
}

.product-release-card-placeholder--feature {
  background: #d9f99d;
}

.product-release-card-placeholder--improvement {
  background: #99f6e4;
}

.product-release-card-placeholder--fix {
  background: #bfdbfe;
}

.product-release-card-placeholder--breaking-change {
  background: #fdba74;
}

.product-release-card-placeholder--breaking {
  background: #fecaca;
}

.product-release-card-placeholder--beta {
  background: #ddd6fe;
}

.product-release-card-placeholder--security {
  background: #fecaca;
}

.product-release-card-placeholder--neutral {
  background: var(--gray-light);
}

.product-release-card-body {
  min-width: 0;
}

.product-release-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--tight);
}

.product-release-type,
.product-release-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--black);
}

.product-release-badge--version {
  background: var(--white);
  color: var(--black);
}

.product-release-badge--feature {
  background: #65a30d;
  color: var(--white);
}

.product-release-badge--improvement {
  background: #0f766e;
  color: var(--white);
}

.product-release-badge--fix {
  background: #2563eb;
  color: var(--white);
}

.product-release-badge--breaking-change {
  background: #ea580c;
  color: var(--white);
}

.product-release-badge--breaking {
  background: var(--red);
  color: var(--white);
}

.product-release-badge--beta {
  background: #7c3aed;
  color: var(--white);
}

.product-release-badge--security {
  background: #b91c1c;
  color: var(--white);
}

.product-release-badge--neutral {
  background: var(--black);
  color: var(--white);
}

.product-release-card h3 {
  font-size: calc(var(--body) * 1.45);
  margin-bottom: var(--tight);
}

.product-release-card h3 a {
  color: var(--black);
  text-decoration: none;
}

.product-release-card h3 a:hover {
  color: var(--red);
}

.product-release-card p {
  margin: 0;
  color: var(--gray-dark);
  line-height: 1.7;
}

.product-release-card h3,
.product-release-card h3 a,
.product-release-card p,
.product-release-placeholder-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-release-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tight);
  margin-top: var(--standard);
}

.product-release-card-footer .btn {
  flex-shrink: 0;
}

.product-release-placeholder-label {
  color: var(--gray-mid);
  font-size: 0.85rem;
}

.product-release-empty {
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--red);
}

.product-release-announcements {
  margin-top: var(--standard);
  margin-left: calc(92px + var(--standard));
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--gray-light);
}

.product-release-announcements h4 {
  margin-bottom: var(--tight);
  font-size: calc(var(--body) * 1.05);
}

.product-release-announcements ul {
  margin: 0;
  padding-left: var(--standard);
}

.product-release-announcements li {
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}

.product-release-announcements li:last-child {
  margin-bottom: 0;
}

.product-release-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--standard);
}

.product-release-detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--standard);
  margin-top: var(--standard);
}

.product-release-detail-date {
  margin: 0;
  color: var(--gray-dark);
  font-weight: var(--heavy);
}

.product-release-byline {
  display: flex;
  align-items: center;
  gap: var(--tight);
}

.product-release-byline-image {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  object-fit: cover;
}

.product-release-byline-name {
  margin: 0;
  font-weight: var(--heavy);
  color: var(--black);
}

.product-release-byline-meta {
  margin: 0;
  color: var(--gray-mid);
  font-size: 0.9rem;
}

.product-release-detail-media {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--loose);
}

.product-release-detail-media img {
  width: 100%;
  display: block;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--red);
}

.product-release-breaking-callout {
  margin-bottom: var(--standard);
  padding: var(--standard);
  border: 2px solid var(--black);
  background: #fff1eb;
  box-shadow: 4px 4px 0 var(--red);
  font-weight: var(--heavy);
}

.product-release-takeaways li + li {
  margin-top: 0.5rem;
}

.product-release-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--standard);
  margin: var(--loose) 0;
}

.product-release-quote-grid blockquote {
  margin: 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--gray-light);
  font-size: 1rem;
}

.product-release-tag-list {
  margin-top: var(--tight);
}

.product-release-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--standard);
  margin-top: var(--standard);
}

@media (max-width: 1024px) {
  .product-release-shell {
    grid-template-columns: 1fr;
  }

  .product-release-shell .sidebar {
    position: static;
  }

  .product-release-card {
    grid-template-columns: 1fr;
  }

  .product-release-archive-page .product-release-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .product-release-archive-page .product-release-card-media-wrap {
    max-width: min(100%, 30rem);
    margin: 0 auto;
  }

  .product-release-detail-page .product-release-detail-media {
    margin-bottom: calc(var(--standard) * 1.25);
  }
}

@media (max-width: 768px) {
  .product-release-month-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-release-month-header p {
    text-align: left;
  }

  .product-release-entry {
    grid-template-columns: 1fr;
  }

  .product-release-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.5rem;
    text-align: left;
  }

  .product-release-date::before {
    left: 0;
    transform: none;
  }

  .product-release-date::after {
    display: none;
  }

  .product-release-day {
    margin-top: 0;
    font-size: calc(var(--body) * 1.15);
  }

  .product-release-month-short {
    margin-top: 0;
  }

  .product-release-announcements {
    margin-left: 0;
  }

  .product-release-detail-header-meta {
    align-items: flex-start;
  }

  .product-release-quote-grid {
    grid-template-columns: 1fr;
  }

  .product-release-related-grid {
    grid-template-columns: 1fr;
  }

  .product-release-archive-page .product-release-intro {
    margin-bottom: calc(var(--standard) * 1.25);
    padding: 1.25rem;
  }

  .product-release-archive-page .product-release-shell {
    gap: calc(var(--standard) * 1.1);
  }

  .product-release-archive-page .product-release-month + .product-release-month {
    margin-top: calc(var(--standard) * 1.5);
  }

  .product-release-archive-page .product-release-month-header {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .product-release-archive-page .product-release-month-header h2 {
    font-size: 1.35rem;
  }

  .product-release-archive-page .product-release-month-header p {
    max-width: none;
    font-size: 0.95rem;
  }

  .product-release-archive-page .product-release-list {
    gap: 0.875rem;
  }

  .product-release-archive-page .product-release-entry {
    gap: 0.75rem;
  }

  .product-release-archive-page .product-release-date {
    gap: 0.4rem;
    padding-left: 1rem;
  }

  .product-release-archive-page .product-release-day {
    font-size: 1.05rem;
  }

  .product-release-archive-page .product-release-month-short {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .product-release-archive-page .product-release-card {
    padding: 1rem;
    gap: 1rem;
    box-shadow: 3px 3px 0 var(--red);
  }

  .product-release-archive-page .product-release-card-media-wrap {
    max-width: 100%;
    margin: 0;
  }

  .product-release-archive-page .product-release-card-media,
  .product-release-archive-page .product-release-card-placeholder {
    aspect-ratio: 16 / 10;
  }

  .product-release-archive-page .product-release-card-placeholder {
    padding: 1rem;
    font-size: 1rem;
  }

  .product-release-archive-page .product-release-card-header {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .product-release-archive-page .product-release-type,
  .product-release-archive-page .product-release-badge {
    padding: 0.28rem 0.48rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .product-release-archive-page .product-release-card h3 {
    font-size: clamp(1.1rem, 4.8vw, 1.3rem);
    line-height: 1.15;
    margin-bottom: 0.65rem;
  }

  .product-release-archive-page .product-release-card p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .product-release-archive-page .product-release-card-footer {
    margin-top: 0.9rem;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .product-release-archive-page .product-release-card-footer .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
  }

  .product-release-archive-page .product-release-placeholder-label {
    font-size: 0.78rem;
  }

  .product-release-archive-page .product-release-announcements {
    padding: 1rem;
  }

  .product-release-archive-page .product-release-announcements h4 {
    font-size: 1rem;
  }

  .product-release-archive-page .product-release-announcements ul {
    padding-left: 1.1rem;
  }

  .product-release-archive-page .product-release-empty {
    box-shadow: 3px 3px 0 var(--red);
  }

  .product-release-detail-page .hero-subhead {
    font-size: 1.1rem;
    line-height: 1.45;
  }

  .product-release-detail-page .product-release-detail-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .product-release-detail-page .product-release-byline {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .product-release-detail-page .product-release-byline-image {
    width: 42px;
    height: 42px;
  }

  .product-release-detail-page .product-release-detail-date {
    font-size: 0.95rem;
  }

  .product-release-detail-page .product-release-detail-meta {
    margin-top: 0.75rem;
    gap: 0.4rem;
  }

  .product-release-detail-page .product-release-detail-media {
    margin-bottom: var(--standard);
  }

  .product-release-detail-page .product-release-detail-media img {
    box-shadow: 3px 3px 0 var(--red);
  }

  .product-release-detail-page .product-release-breaking-callout {
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 3px 3px 0 var(--red);
  }

  .product-release-detail-page .product-release-quote-grid {
    gap: 0.75rem;
    margin: calc(var(--standard) * 1.25) 0;
  }

  .product-release-detail-page .product-release-quote-grid blockquote {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .product-release-detail-page .article-callout,
  .product-release-detail-page .article-author-bio {
    margin: var(--standard) 0;
    padding: 1rem;
  }

  .product-release-detail-page .article-author-bio-content {
    gap: 1rem;
  }

  .product-release-detail-page .article-author-bio-name {
    font-size: 1.15rem;
  }

  .product-release-detail-page .article-author-bio-meta,
  .product-release-detail-page .article-author-social a {
    font-size: 0.85rem;
  }

  .product-release-detail-page .article-related {
    margin: calc(var(--standard) * 1.25) 0;
  }

  .product-release-detail-page .article-related-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .product-release-detail-page .product-release-related-grid {
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .product-release-detail-page .product-release-related-grid .news-card {
    padding: 1rem;
    box-shadow: 3px 3px 0 var(--red);
  }

  .product-release-detail-page .product-release-related-grid .news-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }

  .product-release-detail-page .product-release-related-grid .news-card p {
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
  }

  .product-release-detail-page .product-release-related-grid .news-card .btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }

  .article-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .article-author-bio-content {
    grid-template-columns: 1fr;
  }

  .article-author-bio-image {
    width: 72px;
    height: 72px;
  }

  .article-author-social {
    flex-wrap: wrap;
  }

  .article-featured-image img,
  .product-release-detail-media img,
  .article-content img,
  .seeds-article-content img {
    box-shadow: 4px 4px 0 var(--red);
  }

  .article-table-scroll table {
    display: table;
    min-width: 640px;
  }
}

@media (max-width: 560px) {
  .product-release-archive-page .product-release-card {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .product-release-archive-page .product-release-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-release-archive-page .product-release-card-footer .btn {
    width: 100%;
    text-align: center;
  }

  .product-release-archive-page .product-release-placeholder-label {
    font-size: 0.75rem;
  }

  .product-release-detail-page .hero-subhead {
    font-size: 1.05rem;
  }

  .product-release-detail-page .product-release-detail-meta {
    gap: 0.35rem;
  }

  .product-release-detail-page .product-release-byline-image {
    width: 40px;
    height: 40px;
  }

  .product-release-detail-page .product-release-related-grid .news-card .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .news-list-page .news-sidebar-layout,
  .research-studies-list-page .news-sidebar-layout {
    grid-template-columns: 1fr;
    gap: calc(var(--standard) * 1.25);
  }

  .news-list-page .news-grid,
  .research-studies-list-page .research-grid {
    grid-template-columns: 1fr;
  }

  .news-list-page .sidebar,
  .research-studies-list-page .sidebar {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .news-list-page .news-grid,
  .research-studies-list-page .research-grid {
    gap: 0.875rem;
  }

  .news-list-page .sidebar,
  .research-studies-list-page .sidebar {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 2px solid var(--black);
  }

  .news-list-page .news-card,
  .research-studies-list-page .news-card {
    padding: 1rem;
    box-shadow: 3px 3px 0 var(--red);
  }

  .news-list-page .news-card h3,
  .research-studies-list-page .news-card h3 {
    font-size: clamp(1.05rem, 4.8vw, 1.2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .news-list-page .news-card p,
  .research-studies-list-page .news-card p {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .news-list-page .news-card .btn,
  .research-studies-list-page .news-card .btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }

  .news-list-page .sidebar h4,
  .research-studies-list-page .sidebar h4 {
    margin-bottom: 0.75rem;
  }

  .news-list-page .tags-container,
  .research-studies-list-page .tags-container {
    gap: 0.4rem;
  }

  .news-list-page .tag-pill,
  .research-studies-list-page .tag-pill {
    font-size: 0.8rem;
  }

  .research-studies-list-page .research-intro {
    margin-bottom: calc(var(--standard) * 1.25);
    padding: 1.25rem;
  }

  .research-studies-list-page .research-intro-title {
    font-size: 1.55rem;
  }

  .research-studies-list-page .research-intro-subtitle {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .research-studies-list-page .research-intro-text {
    margin-bottom: 1rem;
  }

  .research-studies-list-page .research-intro-text p,
  .research-studies-list-page .research-intro-bullets li,
  .research-studies-list-page .research-faq-answer,
  .research-studies-list-page .research-faq-question {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .research-studies-list-page .research-intro-bullets ul {
    padding-left: 1.25rem;
  }

  .research-studies-list-page .research-faq-item + .research-faq-item {
    margin-top: 1rem;
  }

  .news-detail-page .article-back-link,
  .research-study-detail-page .article-back-link {
    margin-bottom: 1rem;
  }

  .news-detail-page .article-header,
  .research-study-detail-page .article-header {
    margin-bottom: calc(var(--standard) * 1.25);
  }

  .news-detail-page .article-title,
  .research-study-detail-page .article-title {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.05;
  }

  .news-detail-page .article-author,
  .research-study-detail-page .article-author {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .news-detail-page .article-author-image,
  .research-study-detail-page .article-author-image {
    width: 42px;
    height: 42px;
  }

  .news-detail-page .article-author-meta,
  .research-study-detail-page .article-author-meta {
    font-size: 0.85rem;
  }

  .news-detail-page .article-featured-image,
  .research-study-detail-page .article-featured-image {
    margin-bottom: var(--standard);
  }

  .news-detail-page .article-featured-image img,
  .research-study-detail-page .article-featured-image img {
    box-shadow: 4px 4px 0 var(--red);
  }

  .news-detail-page .article-content h2,
  .research-study-detail-page .article-content h2 {
    font-size: 1.5rem;
    margin-top: calc(var(--standard) * 1.5);
    margin-bottom: 0.85rem;
  }

  .news-detail-page .article-content h3,
  .research-study-detail-page .article-content h3 {
    font-size: 1.25rem;
    margin-top: calc(var(--standard) * 1.35);
    margin-bottom: 0.7rem;
  }

  .news-detail-page .article-content h4,
  .research-study-detail-page .article-content h4 {
    font-size: 1.05rem;
    margin-top: var(--standard);
    margin-bottom: 0.65rem;
  }

  .news-detail-page .article-content p,
  .news-detail-page .article-content li,
  .research-study-detail-page .article-content p,
  .research-study-detail-page .article-content li {
    font-size: 0.97rem;
    line-height: 1.6;
  }

  .news-detail-page .article-content ul,
  .news-detail-page .article-content ol,
  .research-study-detail-page .article-content ul,
  .research-study-detail-page .article-content ol {
    padding-left: 1.25rem;
  }

  .news-detail-page .article-content blockquote,
  .research-study-detail-page .article-content blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
  }

  .news-detail-page .article-callout,
  .news-detail-page .article-author-bio,
  .research-study-detail-page .article-callout,
  .research-study-detail-page .article-author-bio {
    margin: var(--standard) 0;
    padding: 1rem;
  }

  .news-detail-page .article-author-bio-content,
  .research-study-detail-page .article-author-bio-content {
    gap: 1rem;
  }

  .news-detail-page .article-author-bio-name,
  .research-study-detail-page .article-author-bio-name {
    font-size: 1.15rem;
  }

  .news-detail-page .article-author-bio-meta,
  .news-detail-page .article-author-social a,
  .research-study-detail-page .article-author-bio-meta,
  .research-study-detail-page .article-author-social a {
    font-size: 0.85rem;
  }

  .news-detail-page .article-related,
  .research-study-detail-page .article-related {
    margin: calc(var(--standard) * 1.25) 0;
  }

  .news-detail-page .article-related-title,
  .research-study-detail-page .article-related-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .news-detail-page .article-related-grid,
  .research-study-detail-page .article-related-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .news-detail-page .article-related-card,
  .research-study-detail-page .article-related-card {
    padding: 1rem;
    box-shadow: 3px 3px 0 var(--red);
  }

  .news-detail-page .article-related-card h4,
  .research-study-detail-page .article-related-card h4 {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .news-detail-page .article-related-card p,
  .research-study-detail-page .article-related-card p {
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
  }

  .news-detail-page .article-related-card .btn,
  .research-study-detail-page .article-related-card .btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }

  .news-detail-page .article-cta,
  .research-study-detail-page .article-cta {
    margin: calc(var(--standard) * 1.5) 0;
    padding: 1.25rem 1rem;
  }

  .news-detail-page .article-cta h3,
  .research-study-detail-page .article-cta h3 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
  }

  .news-detail-page .article-cta p,
  .research-study-detail-page .article-cta p {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .news-list-page .news-card .btn,
  .research-studies-list-page .news-card .btn,
  .news-detail-page .article-related-card .btn,
  .research-study-detail-page .article-related-card .btn,
  .news-detail-page .article-cta .btn,
  .research-study-detail-page .article-cta .btn {
    width: 100%;
    text-align: center;
  }

  .news-detail-page .article-author-image,
  .research-study-detail-page .article-author-image {
    width: 40px;
    height: 40px;
  }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: var(--standard);
  align-self: flex-start;
  min-width: 0;
  max-width: 100%;
}

.sidebar h4 {
  font-size: 0.875rem;
  margin-bottom: var(--tight);
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  padding: 0.35rem 0.65rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: var(--black);
  color: var(--white);
}

.tag-pill-active {
  background: var(--black);
  color: var(--white);
}

.empty-state {
  text-align: center;
  padding: var(--loose);
}

.empty-state h3 {
  font-size: var(--big);
  margin-bottom: var(--standard);
}

.empty-state p {
  color: var(--gray-dark);
  margin-bottom: var(--standard);
}

/* Research/Tag intro blocks */
.research-intro {
  margin-bottom: var(--loose);
  padding: var(--standard);
  background: var(--white);
  border: 2px solid var(--black);
}

.research-intro-title {
  margin: 0 0 var(--tight);
  font-size: var(--big);
  line-height: 1.2;
  color: var(--black);
  font-weight: var(--heavy);
}

.research-intro-subtitle {
  margin: 0 0 var(--standard);
  font-size: calc(var(--body) * 1.1);
  font-weight: var(--heavy);
  color: var(--black);
  line-height: 1.6;
}

.research-intro-text {
  max-width: 800px;
  margin-bottom: var(--standard);
}

.research-intro-text p {
  margin: 0 0 var(--standard);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--gray-dark);
}

.research-intro-bullets {
  margin: var(--standard) 0;
}

.research-intro-bullets ul {
  list-style: disc;
  padding-left: var(--loose);
  margin-top: var(--tight);
}

.research-intro-bullets li {
  margin-bottom: var(--tight);
  line-height: 1.6;
  color: var(--gray-dark);
}

.research-intro-cta {
  font-style: italic;
  color: var(--gray-mid);
  margin-top: var(--tight);
}

/* FAQ sections */
.research-faq {
  margin-top: var(--standard);
}

.research-faq-item + .research-faq-item {
  margin-top: var(--standard);
}

.research-faq-question {
  margin: 0 0 var(--tight);
  font-weight: var(--heavy);
  color: var(--black);
}

.research-faq-answer {
  margin: 0;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* FAQ Section Styles */
.faq-container {
  max-width: 900px;
}

.faq-header {
  text-align: center;
  margin-bottom: var(--loose);
}

.faq-category {
  margin-bottom: var(--section);
}

.faq-category-title {
  font-size: calc(var(--body) * 1.5);
  color: var(--red);
  margin-bottom: var(--standard);
}

.faq-item {
  margin-bottom: var(--tight);
  border: 2px solid var(--black);
  background: var(--white);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: calc(var(--body) * 1.25);
  padding: var(--tight);
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  color: var(--red);
  font-weight: var(--heavy);
}

.faq-answer {
  display: none;
  padding: 0 var(--tight) var(--tight) var(--tight);
  border-top: 2px solid var(--black);
}

.faq-answer p {
  color: var(--gray-dark);
  margin: var(--tight) 0 0 0;
}

/* Article content tables */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--loose) 0;
  border: 2px solid var(--black);
  overflow: hidden;
  background: var(--white);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--black);
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content th {
  background: var(--black);
  color: var(--white);
  font-weight: var(--heavy);
  font-size: calc(var(--body) * 1.05);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.article-content th *,
.article-content th p {
  color: var(--white);
  font-weight: var(--heavy);
  font-size: calc(var(--body) * 1.05);
  line-height: 1.4;
  margin: 0;
}

.article-content td {
  color: var(--gray-dark);
}

.article-content tr:nth-child(even) td {
  background: var(--gray-light);
}

@media (max-width: 720px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-content th,
  .article-content td {
    white-space: nowrap;
  }
}

/* Author byline */
.author-byline {
  display: flex;
  align-items: center;
  gap: var(--tight);
  margin-bottom: var(--loose);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--red);
}

.author-name {
  font-weight: var(--heavy);
  color: var(--black);
}

.author-meta {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.author-social {
  margin-top: var(--tight);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tight);
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.author-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--red);
}

.author-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.author-social-icon svg {
  width: 14px;
  height: 14px;
}

.author-social-icon-linkedin {
  background: #0a66c2;
}

.author-social-icon-instagram {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 35%, #d62976 60%, #962fbf 80%, #4f5bd5 100%);
}

.author-social-icon-twitter {
  background: #000000;
}

/* Article layout with sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--loose);
}

@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* Case study specific styles */
.case-study-hero {
  position: relative;
  background-image: url('/static/hero-background-people.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.case-study-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(226, 59, 11, 0.3) 100%);
  opacity: 0.9;
  z-index: 1;
}

.case-study-hero > * {
  position: relative;
  z-index: 2;
}

.case-study-media {
  margin: var(--loose) 0;
}

.case-study-media img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 8px 8px 0 var(--red);
}

.case-study-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--black);
  overflow: hidden;
  background: var(--white);
  margin: var(--loose) 0;
}

.case-study-table th,
.case-study-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--black);
}

.case-study-table tr:last-child td {
  border-bottom: none;
}

.case-study-table th {
  background: var(--black);
  color: var(--white);
  font-weight: var(--heavy);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.case-study-callout {
  margin: var(--loose) 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--gray-light);
}

.text-small {
  font-size: calc(var(--body) * 0.875);
  text-align: center;
  color: var(--gray-dark);
}

/* ============================================
   ANNOUNCEMENT BANNER
   ============================================ */

.announcement-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: calc(var(--body) * 0.85);
  letter-spacing: 0.02em;
}

.announcement-banner a {
  color: var(--red);
  text-decoration: underline;
  margin-left: 4px;
}

.announcement-banner a:hover {
  opacity: 0.8;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header {
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--tight);
  padding-bottom: var(--tight);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--heavy);
  color: var(--red);
  text-decoration: none;
}

.header-logo-mark {
  height: 2.25rem;
  width: auto;
  display: block;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--standard);
}

.header-nav a {
  font-size: var(--body);
  font-weight: var(--regular);
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--red);
}

.header-nav .btn {
  padding: calc(var(--tight) * 0.75) var(--tight);
}

.header-nav .btn-primary {
  color: var(--white);
}

.header-nav .btn-primary:hover {
  color: var(--white);
}

.header-nav-dropdown {
  position: relative;
}

.header-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: var(--body);
  font-weight: var(--regular);
  font-family: 'Work Sans', sans-serif;
  color: var(--black);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-nav-dropdown-toggle:hover,
.header-nav-dropdown-toggle:focus-visible,
.header-nav-dropdown:focus-within .header-nav-dropdown-toggle {
  color: var(--red);
}

.header-nav-dropdown-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.header-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}

.header-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.header-nav-dropdown:hover .header-nav-dropdown-menu,
.header-nav-dropdown:focus-within .header-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-nav-dropdown:hover .header-nav-dropdown-chevron,
.header-nav-dropdown:focus-within .header-nav-dropdown-chevron {
  transform: rotate(225deg);
}

.header-nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--black);
  text-decoration: none;
  font-size: calc(var(--body) * 0.9);
  font-weight: var(--regular);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.header-nav-dropdown-item:hover,
.header-nav-dropdown-item:focus-visible {
  background: var(--gray-light);
  color: var(--red);
}

.header-mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--black);
  padding: 8px 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.header-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--black);
  display: block;
}

.header-mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--tight);
  padding: var(--standard) 0;
  border-top: 2px solid var(--black);
  margin-top: var(--tight);
}

.header-mobile-nav.active {
  display: flex;
}

.header-mobile-nav a {
  font-size: var(--body);
  font-weight: var(--regular);
  color: var(--black);
  text-decoration: none;
  padding: calc(var(--tight) * 0.5) 0;
}

.header-mobile-nav a:hover {
  color: var(--red);
}

.header-mobile-nav .btn-primary {
  color: var(--white);
}

.header-mobile-nav .btn-primary:hover {
  color: var(--white);
}

.header-mobile-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.header-mobile-group-label {
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.05);
  font-weight: var(--heavy);
  color: var(--black);
  margin: 0;
}

.header-mobile-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
}

.header-mobile-subnav a {
  padding: 0.2rem 0;
  font-size: calc(var(--body) * 0.94);
}

.seeds-benefit-icon {
  color: var(--red);
  margin-bottom: var(--tight);
}

.seeds-benefit-icon-svg {
  width: 2rem;
  height: 2rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   MODALS
   ============================================ */

.seeds-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.seeds-modal-open {
  overflow: hidden;
}

.seeds-modal.is-visible {
  display: flex !important;
}

.seeds-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.seeds-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 640px;
  width: 90%;
  z-index: 1;
}

.newsletter-modal-content {
  text-align: center;
  max-width: 520px;
}

.seeds-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
}

.seeds-calendar-modal-content {
  display: flex;
  flex-direction: column;
  background: rgb(23, 23, 23);
  color: #f5f5f5;
  max-width: 1100px;
  width: min(96vw, 1100px);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}

.seeds-calendar-modal-content .seeds-modal-close {
  color: #f5f5f5;
}

.seeds-calendar-modal-body {
  width: 100%;
  min-height: 570px;
}

.seeds-calendar-modal-body .cal-inline-container {
  width: 100%;
  min-height: 570px;
}

@media (max-width: 640px) {
  .seeds-modal-content {
    width: 96%;
    padding: 24px;
  }

  .seeds-calendar-modal-content {
    max-height: 88vh;
    padding: 16px;
  }

  .seeds-calendar-modal-body {
    min-height: 520px;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--loose) 0 var(--standard);
  border-top: 4px solid var(--red);
}

.footer h2,
.footer h3 {
  color: var(--white);
  margin-bottom: var(--tight);
  font-size: calc(var(--body) * 1.05);
}

.footer a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--standard);
  margin-bottom: var(--loose);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--tight) * 0.5);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--tight);
  padding-bottom: var(--loose);
  margin-bottom: var(--loose);
  border-bottom: 1px solid var(--gray-dark);
}

.footer-newsletter-text h2 {
  margin-bottom: calc(var(--tight) * 0.5);
}

.footer-address {
  color: var(--footer-muted);
}

.footer-address + .footer-address {
  margin-top: var(--tight);
}

.footer-newsletter-text p {
  color: var(--footer-muted);
  font-size: calc(var(--body) * 0.9);
  margin: 0;
}

.footer-newsletter-form {
  flex-shrink: 0;
}


.footer-bottom {
  text-align: center;
  padding-top: var(--standard);
  border-top: 1px solid var(--gray-dark);
  color: var(--footer-muted);
  font-size: calc(var(--body) * 0.875);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --huge: 2.5rem;     /* 40px on mobile */
    --big: 1.75rem;     /* 28px on mobile */
    --body: 1rem;       /* 16px on mobile */
    --section: 4rem;    /* 64px on mobile */
  }

  .container {
    padding: 0 var(--tight);
  }

  .cards,
  .methodology,
  .leaders-cards {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-methods {
    grid-template-columns: 1fr;
    gap: var(--loose);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .two-col-grid,
  .consumer-chart-grid,
  .consumer-chart-footnote-grid,
  .consumer-mood-facts-grid {
    grid-template-columns: 1fr;
  }

  .consumer-chart-heading {
    flex-direction: column;
  }

  .consumer-chart-caption {
    max-width: none;
    text-align: left;
  }

  .consumer-chart-surface-trend {
    height: 420px;
  }

  .consumer-chart-surface-balance,
  .consumer-chart-surface-compass,
  .consumer-chart-surface-recovery {
    height: 320px;
  }

  .consumer-chart-surface-latest {
    height: 360px;
  }

  .methodology::before {
    display: none;
  }

  .world-map-container {
    padding-bottom: 60%;
  }

  .world-map-dots span {
    width: 6px;
    height: 6px;
  }

  /* Header mobile */
  .header-nav {
    display: none;
  }

  .header-nav-dropdown {
    display: none;
  }

  .header-mobile-toggle {
    display: flex;
  }

  /* Footer mobile */


  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Case study sidebar callout improvements */
.article-callout + .article-callout {
  margin-top: var(--loose);
}

.article-callout dl {
  margin: 0;
}

.article-callout dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  margin-bottom: 4px;
}

.article-callout dd {
  margin: 0 0 var(--tight) 0;
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.article-callout dd:last-child {
  margin-bottom: 0;
}

.callout-header {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--tight);
  font-size: 0.85rem;
}

/* Case study hero improvements */
.hero .container.narrow-case-study {
  max-width: 900px;
}

.case-study-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: var(--tight);
}

/* Use case card links */
.card-link {
  display: inline-block;
  margin-top: var(--standard);
  color: var(--red-contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.card-link:hover {
  transform: translateX(4px);
  text-decoration: underline;
}

/* Claude Code hub enhancements */
.deliverables-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--standard);
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: var(--shadow) var(--black);
}

.deliverables-table th,
.deliverables-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--black);
  vertical-align: top;
}

.deliverables-table thead th {
  background: var(--black);
  color: var(--white);
}

.deliverables-table tbody tr:nth-child(even) {
  background: var(--gray-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--standard);
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: var(--shadow) var(--black);
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--black);
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--black);
  color: var(--white);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--gray-light);
}

.terminal-block {
  background: var(--black);
  color: var(--white);
  padding: var(--standard);
  border: 2px solid var(--black);
  box-shadow: var(--shadow) var(--black);
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

.terminal-block code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.terminal-block .code-comment {
  color: #9ca3af;
  display: block;
}

/* ============================================
   INTEGRATION MOCKUPS
   ============================================ */

.integration-mockups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--standard);
  margin-top: var(--loose);
}

.integration-mockup {
  border: 2px solid var(--black);
  box-shadow: var(--shadow) var(--black);
  background: var(--white);
}

.integration-mockup-img {
  cursor: pointer;
  overflow: hidden;
  border-bottom: 2px solid var(--black);
  position: relative;
}

.integration-mockup-img img {
  width: 100%;
  height: auto;
  display: block;
}

.integration-mockup-img:hover img {
  opacity: 0.9;
}

.integration-mockup-body {
  padding: var(--standard);
}

.integration-mockup-body p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: min(90vw, 1625px);
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  font-weight: var(--heavy);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--red);
}

@media (max-width: 768px) {
  .integration-mockups {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CALIBRATION CARDS (embedded calibrationCard
   entries in blog Rich Text; markup emitted by
   renderCalibrationCard in src/utils/contentful.ts)
   ============================================ */

.calib-card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--red);
  margin: var(--standard) 0;
  display: flex;
  flex-direction: column;
}

.calib-media {
  border-bottom: 2px solid var(--black);
  background: var(--black);
}

.calib-media img,
.calib-media video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.calib-body {
  padding: var(--tight) 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.calib-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.calib-title {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  font-size: 1.3rem;
  line-height: 1.15;
  margin: 0;
}

.calib-beat {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin: 0.2rem 0 0;
}

.calib-chip {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--black);
  padding: 3px 10px;
  white-space: nowrap;
}

.calib-chip-measured { background: var(--red-contrast); color: var(--white); }
.calib-chip-pending  { background: var(--white); color: var(--black); }

.calib-strip { margin: 0; border-top: 2px solid var(--black); padding-top: 0.8rem; }
.calib-strip img { width: 100%; display: block; }

.calib-strip-pending {
  border-top: 2px solid var(--black);
  padding-top: 0.8rem;
}
.calib-strip-pending::after {
  content: '';
  display: block;
  height: 26px;
  border-bottom: 2px dashed var(--gray-mid);
}

.calib-emotions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.calib-emotion {
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--black);
  padding: 2px 9px;
}
.calib-emotion.lead { background: var(--red-contrast); color: var(--white); border-color: var(--black); }

.calib-readings {
  border-top: 2px solid var(--black);
  padding-top: 0.8rem;
  margin: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.5rem 12px;
  font-size: 0.92rem;
}
.calib-readings dt {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-mid);
  padding-top: 2px;
}
.calib-readings dd { margin: 0; color: var(--gray-dark); }

.calib-quote {
  border-left: 4px solid var(--red);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin: 0;
  font-style: italic;
  color: var(--gray-dark);
  font-size: 0.95rem;
}
.calib-quote cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--gray-mid);
  font-size: 0.78rem;
}

.calib-cta {
  align-self: flex-start;
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--white);
  background: var(--red-contrast);
  border: 2px solid var(--black);
  padding: 0.5rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.calib-cta:hover { transform: translateY(-4px); box-shadow: var(--shadow) var(--black); }
.calib-cta:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* The generic .article-content a rule (red text, underline) outranks
   .calib-cta and repaints the CTA red-on-red; keep the button legible
   inside article bodies. */
.article-content a.calib-cta,
.seeds-article-content a.calib-cta {
  color: var(--white);
  text-decoration: none;
}
.article-content a.calib-cta:hover,
.seeds-article-content a.calib-cta:hover {
  color: var(--white);
}

/* Embedded video assets in article bodies (see the video branch in the
   embedded-asset renderer) */
.article-video { margin: var(--standard) 0; }
.article-video video {
  width: 100%;
  display: block;
  border: 2px solid var(--black);
}

@media (prefers-reduced-motion: reduce) {
  .calib-cta, .calib-cta:hover { transition: none; transform: none; }
}

@media (max-width: 640px) {
  .calib-head { flex-direction: column; }
  .calib-readings { grid-template-columns: 1fr; gap: 0.15rem; }
  .calib-readings dd { margin-bottom: 0.4rem; }
}
