/* ==========================================================================
   Corvenia Labs — Brand Stylesheet (Derived from corvenia.com Brandbook 2026)
   ========================================================================== */

@font-face {
  font-family: "Soehne Buch";
  src: url("../fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Buch Kursiv";
  src: url("../fonts/soehne-buch-kursiv.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Kraftig";
  src: url("../fonts/soehne-kraftig.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Kraftig Kursiv";
  src: url("../fonts/soehne-kraftig-kursiv.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Halbfett";
  src: url("../fonts/soehne-halbfett.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Halbfett Kursiv";
  src: url("../fonts/soehne-halbfett-kursiv.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Mono Buch";
  src: url("../fonts/soehne-mono-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ltmuseum";
  src: url("../fonts/LTMuseum-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #234e40;
  --dark-green--800: #294d40;
  --dark-green--500: #29654f;
  --sage-surface: #edf4ee;
  --sage-tint: #dcebe0;
  --sage-border: #bfd4c6;
  --article-ink: #203d33;
  --article-muted: #486155;
  --light-green--500: #59c491;
  --light-green--400: #8ff2c2;
  --green--900: #1b2727;
  --green--800: #405254;
  --green--700: #587174;
  --green--600: #6e8d91;
  --green--500: #8ba4a7;
  --green--400: #a8bbbd;
  --green--300: #c5d2d3;
  --green--200: #d4ddde;
  --green--100: #e2e8e9;
  --green--50: #f1f4f4;
  --blue--900: #5a7f87;
  --blue--800: #76a5b0;
  --blue--700: #8eb5be;
  --blue--600: #aecad0;
  --blue--500: #cedfe3;
  --blue--400: #dfeaec;
  --blue--300: #f5f9f9;
  --dark: #041314;
  --white: #ffffff;
  --cool-white: #fafaf8;
  --light: #f9f9f9;
  --ivory: #f7f3ef;
  --stone: #ede8e3;
  --gray--900: #0f0f0f;
  --gray--800: #333333;
  --gray--700: #4d4d4d;
  --gray--600: #666666;
  --gray--500: #808080;
  --gray--400: #999999;
  --gray--300: #b3b3b3;
  --gray--200: #cccccc;
  --gray--100: #e6e6e6;
  --gray--50: #f2f2f2;
  --orange: #ff4a24;
  --maroon--700: #521432;
  --maroon--600: #7c1d4b;
  --font-sans: "Soehne Buch", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans-medium: "Soehne Kraftig", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans-bold: "Soehne Halbfett", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Ltmuseum", Georgia, "Times New Roman", serif;
  --font-mono: "Soehne Mono Buch", "Cascadia Code", "Fira Code", Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --shadow-nav: 0 1px 5px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px rgba(4, 19, 20, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(4, 19, 20, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray--800);
  background-color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   Typography — Corvenia Brandbook
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.heading-h1, .heading-h2, .heading-h3, .heading-h4, .heading-h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 0;
  color: var(--gray--900);
}

.heading-h1, h1 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  margin-bottom: 1.25rem;
}

.heading-h2, h2 {
  font-size: clamp(2rem, 2.7vw, 2.85rem);
  margin-bottom: 1rem;
}

.heading-h3, h3 {
  font-size: clamp(1.45rem, 1.9vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.heading-h4, h4 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.heading-h5, h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p, .subtext-s1 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

.subtext-s2 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

.mono-text, .statistic-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.color-white { color: var(--white) !important; }
.color-light { color: var(--light) !important; }
.color-lightgray { color: #e6eae8 !important; }
.color-gray { color: var(--gray--400) !important; }
.color-darkgray { color: var(--gray--700) !important; }
.color-primary { color: var(--primary) !important; }

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.container.wide-width {
  max-width: 1380px;
}

/* ==========================================================================
   Navigation Bar (Sticky Corvenia Header)
   ========================================================================== */

.nav-bar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-nav);
}

.nav-menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 24px;
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: visible;
}

.nav-logo {
  height: 28px;
  width: auto;
}

/* Animated Corvenia Logo Lockup (from Corvenia.Yggdrasil Login & Sidebar) */
.corvenia-logo-lockup {
  width: 172px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7.77%;
  overflow: visible;
  position: relative;
}

.corvenia-logo-lockup.hero-lockup {
  width: 240px;
  margin-bottom: 22px;
}

.corvenia-logo-lockup.credibility-lockup {
  width: 260px;
  margin-bottom: 8px;
}

.corvenia-logo-lockup .corvenia-logo-mark {
  position: relative;
  display: block;
  flex: 0 0 20.95%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  background-image: url("../images/glyph.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.corvenia-logo-lockup.has-glyph-js .corvenia-logo-mark {
  background-image: none;
}

.corvenia-logo-lockup .corvenia-logo-mark-surface {
  position: absolute;
  left: -85%;
  top: -85%;
  width: 270%;
  height: 270%;
  pointer-events: none;
  --glyph-fg: #ffffff;
  --glyph-accent: var(--light-green--400, #8ff2c2);
}

.corvenia-logo-lockup.light-surface .corvenia-logo-mark-surface {
  --glyph-fg: var(--primary, #0f240d);
  --glyph-accent: var(--dark-green--500, #0f4529);
}

.corvenia-logo-lockup .corvenia-logo-image {
  flex: 0 0 auto;
  width: 71.28%;
  height: auto;
  margin-bottom: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.labs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary);
  color: var(--light-green--400);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(143, 242, 194, 0.3);
}

.labs-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--light-green--400);
  box-shadow: 0 0 8px var(--light-green--400);
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--gray--600);
  padding: 24px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-link:hover {
  color: var(--green--900);
  box-shadow: inset 0 -2px 0 0 var(--green--800);
}

.nav-link.active {
  color: var(--primary);
  font-family: var(--font-sans-medium);
  box-shadow: inset 0 -2px 0 0 var(--primary);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

/* ==========================================================================
   Buttons & Chips
   ========================================================================== */

.button-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--white);
  color: var(--gray--900);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-main.dark {
  background-color: var(--primary);
  color: var(--white);
  min-height: 42px;
  padding: 11px 22px;
}

.button-main.dark:hover {
  background-color: var(--dark-green--500);
  color: var(--white);
  transform: translateY(-1px);
}

.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  border: 1px solid var(--primary);
  cursor: pointer;
}

.dark-button:hover {
  background-color: var(--dark-green--500);
  border-color: var(--dark-green--500);
  transform: translateY(-1px);
}

.dark-button.outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.dark-button.outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.dark-button.outline-dark {
  background-color: var(--white);
  color: var(--gray--900);
  border: 1px solid var(--gray--800);
}

.dark-button.outline-dark:hover {
  background-color: var(--gray--100);
  color: var(--primary);
}

.button-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.dark-button:hover .button-icon,
.button-main:hover .button-icon {
  transform: translateX(3px);
}

.chips-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--sage-tint);
  color: var(--dark-green--500);
  border-radius: 99px;
  padding: 4px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.chips-tag.subtle {
  background-color: var(--green--100);
  color: var(--green--800);
}

.chips-tag.dark-chip {
  background-color: rgba(143, 242, 194, 0.14);
  color: var(--light-green--400);
  border: 1px solid rgba(143, 242, 194, 0.28);
}

/* ==========================================================================
   Hero Section (Corvenia Homepage & Labs Aesthetic)
   ========================================================================== */

.hero-section {
  position: relative;
  overflow: clip;
  background-color: var(--dark-green--800);
  min-height: 580px;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 96px;
  color: var(--white);
}

.hero-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-content .heading-h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.18rem;
  color: #e6eae8;
  max-width: 600px;
  margin-bottom: 24px;
}

.highlighter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.highlighter img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.highlighter p {
  margin: 0;
  font-size: 0.95rem;
  color: #f0f4f1;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cql-example {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 32px);
  background: rgba(4, 19, 20, 0.82);
  border: 1px solid rgba(143, 242, 194, 0.24);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.cql-example h2 {
  color: var(--white);
}

.cql-example p {
  margin: 0;
  color: #d9e6e2;
}

.cql-example figure {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cql-example figcaption {
  margin-bottom: 10px;
  color: var(--white);
}

.cql-example pre {
  margin: 0;
  color: #e6efed;
  font: 0.84rem/1.6 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cql-example code {
  font: inherit;
}

/* ==========================================================================
   Highlights Bar (Corvenia .highlights-section)
   ========================================================================== */

.highlights-section {
  background-color: var(--blue--300);
  border-bottom: 1px solid var(--green--100);
  padding: 40px 0;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.what-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.what-icon {
  width: 22px;
  height: 22px;
}

.why-card .heading-h5 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary);
}

.why-card .heading-h6 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray--700);
  margin: 0;
}

/* ==========================================================================
   Articles Showcase Section (Frontpage & Articles Index)
   ========================================================================== */

.articles-section {
  padding: 88px 0;
  background-color: var(--white);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-header-copy {
  max-width: 680px;
}

.section-header-copy .heading-h2 {
  margin-bottom: 10px;
}

.section-header-copy .subtext-s1 {
  margin-bottom: 0;
  color: var(--gray--700);
}

/* Featured Article Card */
.featured-article-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background-color: var(--white);
  color: var(--article-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--sage-border);
}

.featured-article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.featured-article-media {
  position: relative;
  min-height: 360px;
  background-color: var(--sage-tint);
  overflow: hidden;
}

.featured-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article-card:hover .featured-article-media img {
  transform: scale(1.03);
}

.featured-article-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.featured-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--article-muted);
}

.featured-article-content .heading-h2 {
  color: var(--article-ink);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  margin-bottom: 12px;
}

.featured-article-summary {
  color: var(--article-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.featured-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--sage-border);
  gap: 16px;
}

.article-byline-detail {
  color: var(--article-muted);
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--sage-tint);
  color: var(--dark-green--500);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--sage-border);
}

.read-more-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-green--500);
  font-family: var(--font-sans-medium);
  font-size: 0.92rem;
}

/* Articles Grid (Corvenia Cards + Modern Readability) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--green--100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green--400);
}

.article-card-image-wrap {
  position: relative;
  height: 210px;
  background-color: var(--sage-tint);
  overflow: hidden;
}

.article-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-card-image-wrap img {
  transform: scale(1.04);
}

.article-card-tag-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray--600);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--gray--900);
  margin: 0 0 10px 0;
}

.article-card:hover .article-card-title {
  color: var(--dark-green--500);
}

.article-card-excerpt {
  font-size: 0.95rem;
  color: var(--gray--700);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray--100);
  font-size: 0.85rem;
  color: var(--green--800);
}

.article-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans-medium);
  color: var(--primary);
}

/* ==========================================================================
   Research Focus / Problem-Solution Pillars (Corvenia .problem-section)
   ========================================================================== */

.problem-section {
  background-color: var(--cool-white);
  border-top: 1px solid var(--green--100);
  border-bottom: 1px solid var(--green--100);
  padding: 88px 0;
}

.problem-card-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.problem-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--green--100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.problem-card h3,
.problem-card p {
  margin: 0;
}

.problem-card.dark {
  background-color: var(--dark-green--800);
  border-color: var(--dark-green--800);
  color: var(--white);
}

.problem-card.dark .heading-h3 {
  color: var(--white);
}

.problem-card.dark p {
  color: #dce5e2;
}

.problem-card .overlay-logo {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 170px;
  opacity: 0.08;
  pointer-events: none;
}

/* ==========================================================================
   Open Source & Engineering Standards Section (Corvenia .complaince-section)
   ========================================================================== */

.compliance-section {
  padding: 88px 0;
  background-color: var(--white);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}

.compliance-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compliance-card {
  background-color: var(--light);
  border: 1px solid var(--gray--100);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.compliance-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.compliance-card-header img {
  height: 28px;
  width: auto;
}

.compliance-card-header .heading-h4 {
  margin: 0;
}

.compliance-card p {
  margin: 0;
  color: var(--gray--700);
  font-size: 0.98rem;
}

.stats-showcase-box {
  background-image: linear-gradient(145deg, var(--dark-green--800), var(--green--800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-card-hover);
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item .statistic-number,
.stat-item .capability-title {
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--light-green--400);
  margin-bottom: 6px;
}

.capability-title {
  font-family: var(--font-serif);
}

/* ==========================================================================
   Credibility Banner (Corvenia .credibility-section)
   ========================================================================== */

.credibility-section {
  background-color: var(--white);
  padding: 32px 0 96px;
}

.credibility-background {
  background-image: linear-gradient(139deg, var(--dark-green--800), var(--green--800));
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  color: var(--white);
}

.credibility-logo {
  width: 220px;
  height: auto;
  margin-bottom: 4px;
}

.credibility-background .heading-h2 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 8px;
}

.credibility-background .subtext-s1 {
  color: var(--green--200);
  max-width: 620px;
  margin-bottom: 8px;
}

/* ==========================================================================
   Article Post Detail Page & Rich Markdown Formatting
   ========================================================================== */

.blog-hero-section {
  background: linear-gradient(115deg, #fafbf8, var(--sage-surface) 60%, var(--sage-tint));
  color: var(--article-ink);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--sage-border);
}

.blog-hero-section .hero-lead,
.blog-hero-section .hero-eyebrow {
  color: var(--article-muted);
}

.blog-header-container {
  max-width: 920px;
  margin: 0 auto;
}

.back-button-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-green--500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.back-button-text-link:hover {
  text-decoration: underline;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--article-muted);
  font-size: 0.9rem;
}

.blog-hero-section .heading-h1 {
  color: var(--article-ink);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.16;
  margin-bottom: 20px;
}

.article-hero-subtitle {
  font-size: 1.15rem;
  color: var(--article-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.article-hero-cover {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sage-border);
  box-shadow: var(--shadow-card);
  max-height: 440px;
}

.article-hero-cover img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

/* Article Two-Column Layout (Prose + Sticky Sidebar TOC / Recent) */
.blog-text-section {
  padding: 64px 0 96px;
}

.blog-content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 780px) 300px;
  gap: 64px;
  justify-content: space-between;
  align-items: start;
}

.blog-text-wrapper {
  min-width: 0;
}

/* Rich Text / Markdown Prose Styling */
.blog-text.w-richtext {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #222625;
}

.blog-text.w-richtext h1,
.blog-text.w-richtext h2,
.blog-text.w-richtext h3,
.blog-text.w-richtext h4 {
  color: var(--gray--900);
  scroll-margin-top: 96px;
}

.blog-text.w-richtext h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--green--100);
}

.blog-text.w-richtext h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-text.w-richtext h4 {
  font-family: var(--font-sans-medium);
  font-size: 1.12rem;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.blog-text.w-richtext p {
  margin-bottom: 1.35rem;
}

.blog-text.w-richtext a {
  color: var(--dark-green--500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-text.w-richtext a:hover {
  color: var(--primary);
}

.blog-text.w-richtext strong {
  font-family: var(--font-sans-bold);
  font-weight: 600;
  color: var(--gray--900);
}

.blog-text.w-richtext em {
  font-family: "Soehne Buch Kursiv", Georgia, serif;
  font-style: italic;
}

.blog-text.w-richtext ul,
.blog-text.w-richtext ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.6rem;
}

.blog-text.w-richtext li {
  margin-bottom: 0.5rem;
}

.blog-text.w-richtext blockquote {
  margin: 1.8rem 0;
  padding: 1.25rem 1.5rem;
  background-color: var(--blue--300);
  border-left: 4px solid var(--dark-green--500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gray--800);
}

.blog-text.w-richtext blockquote p:last-child {
  margin-bottom: 0;
}

.blog-text.w-richtext figure,
.blog-text.w-richtext p > img {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--green--100);
  box-shadow: var(--shadow-card);
}

.blog-text.w-richtext figcaption {
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--gray--600);
  background-color: var(--light);
  text-align: center;
  border-top: 1px solid var(--gray--100);
}

/* Tables in Articles */
.blog-text.w-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--green--200);
}

.blog-text.w-richtext th {
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-sans-medium);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
}

.blog-text.w-richtext td {
  padding: 11px 16px;
  border-top: 1px solid var(--green--100);
}

.blog-text.w-richtext tr:nth-child(even) td {
  background-color: var(--green--50);
}

/* Inline Code & Static Pre-Rendered Code Blocks */
.blog-text.w-richtext :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
  background-color: var(--green--50);
  color: var(--dark-green--500);
  border: 1px solid var(--green--200);
  padding: 2px 6px;
  border-radius: 5px;
}

.code-block-wrapper {
  margin: 1.85rem 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0b1617;
  border: 1px solid var(--green--800);
  box-shadow: 0 12px 30px rgba(4, 19, 20, 0.14);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background-color: #122223;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--green--300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-block-dots {
  display: flex;
  gap: 6px;
}

.code-block-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.code-block-wrapper pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.62;
  color: #e6efed;
  tab-size: 4;
}

.code-block-wrapper code {
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Pre-rendered Syntax Token Classes (Zero-JS SEO Friendly) */
.tok-kw { color: #8ff2c2; font-weight: 500; }
.tok-type { color: #76a5b0; }
.tok-str { color: #f6c177; }
.tok-num { color: #ebbcba; }
.tok-comment { color: #6e8d91; font-style: italic; }
.tok-fn { color: #9ccfd8; }
.tok-attr { color: #c4a7e7; }
.tok-op { color: #aecad0; }

/* Corvenia Blog CTA Box (Directly from corvenia.com) */
.blog-cta-box {
  background: #f5f4f2;
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 44px 0 16px;
  flex-wrap: wrap;
}

.blog-cta-text {
  flex: 1;
  min-width: 260px;
  font-family: "Soehne Kraftig Kursiv", var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.35;
  color: #111111;
}

.blog-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.blog-cta-button:hover {
  background: var(--dark-green--500);
  transform: translateY(-1px);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-box {
  background-color: var(--light);
  border: 1px solid var(--green--100);
  border-radius: var(--radius-md);
  padding: 22px;
}

.sidebar-box-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green--800);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 0.9rem;
  color: var(--gray--700);
  line-height: 1.4;
  display: block;
  padding: 3px 0;
}

.toc-list a:hover {
  color: var(--primary);
}

.toc-list .toc-h3 {
  padding-left: 14px;
  font-size: 0.85rem;
  color: var(--gray--600);
}

.recent-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-article-link {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray--100);
}

.recent-article-link:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.recent-article-link-title {
  font-family: var(--font-sans-medium);
  font-size: 0.94rem;
  color: var(--gray--900);
  margin-bottom: 4px;
  line-height: 1.35;
}

.recent-article-link:hover .recent-article-link-title {
  color: var(--dark-green--500);
}

.recent-article-link-date {
  font-size: 0.8rem;
  color: var(--gray--500);
}

/* ==========================================================================
   Footer Section (Corvenia .footer-section)
   ========================================================================== */

.footer-section {
  background-color: var(--light);
  border-top: 1px solid var(--gray--100);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray--200);
}

.address-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.address-block .subtext-s1 {
  font-size: 0.9rem;
  margin-bottom: 2px;
  color: var(--gray--700);
}

.footer-links-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-header {
  font-family: var(--font-sans-medium);
  font-size: 0.95rem;
  color: var(--gray--900);
  margin-bottom: 6px;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--gray--600);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--gray--500);
}

.important-links-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Keep the scrolling background in normal paint on phones and tablets. */
@media (max-width: 1024px), (pointer: coarse) {
  /* Match the page canvas to the hero while Firefox repaints scrolled tiles. */
  body:has(.hero-section) {
    background-color: var(--dark-green--800);
  }

  .nav-bar,
  .highlighter,
  .dark-button.outline-light {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .featured-article-card,
  .compliance-grid,
  .blog-content-wrapper {
    grid-template-columns: 1fr;
  }

  .featured-article-media {
    min-height: 0;
  }

  .featured-article-media img {
    height: auto;
  }

  .articles-grid,
  .why-cards,
  .problem-card-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .article-card-image-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .nav-bar {
    position: static;
  }

  .nav-menu-wrapper {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-links-wrapper {
    width: 100%;
    flex-wrap: wrap;
    border-top: 1px solid var(--gray--100);
    padding-top: 8px;
  }

  .nav-links {
    display: contents;
  }

  .nav-cta-group {
    margin-left: 0;
  }

  .nav-link {
    padding: 10px 10px;
    font-size: 0.88rem;
  }

  .articles-grid,
  .why-cards,
  .problem-card-wrapper,
  .stats-row,
  .footer-grid,
  .address-container {
    grid-template-columns: 1fr;
  }

  .featured-article-content {
    padding: 28px 24px;
  }

  .hero-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }
}
