/**
 * PEXOFT x FREEBUFF DESIGN SYSTEM (2026)
 * Precise replication and adaptation of Freebuff's workstation aesthetic:
 * Dark Workspace Surface, Hairline Grid Rails, Crosshair Intersections,
 * Sage Green Accent, Editorial Typography, Squircle Corners, and Compact Theme Switcher.
 */

:root {
  /* Core Freebuff Dark Workspace Tokens */
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;

  /* Surfaces & Backgrounds */
  --dk-bg: #0a0a0a;
  --dk-workspace-surface: #1c1d1c;
  --dk-surface: #171717;
  --dk-surface-2: #1c1c1c;
  --dk-raised: #212121;
  --dk-border: #262626;
  --dk-matte-edge: #2f322f;
  --dk-chrome: #0f0f0f;
  --dk-shell-base: #141514;
  --dk-popover: #1c1d1c;
  --dk-input: #171717;
  --dk-placeholder: #666a65;

  /* Inks & Typography */
  --dk-text: #ebebeb;
  --dk-muted: #9e9e9e;
  --dk-faint: #7a7a7a;
  --dk-accent: #ebebeb;
  --dk-accent-dim: #7a7a7a;

  /* Sage Brand Palette */
  --dk-brand-1: #82966f;
  --dk-brand-2: #b5cea5;
  --dk-brand-3: #e2ead9;
  --dk-brand: var(--dk-brand-2);
  --dk-brand-ink: #b5cea5;
  --dk-brand-dim: #9db58b;
  --dk-primary-action: #9db58b;
  --dk-primary-action-text: #0a0a0a;

  /* Editorial Category Tones */
  --cat-guides: #c7a463;
  --cat-community: #c98f98;
  --cat-engineering: #85b8cb;
  --cat-launches: #b5cea5;
  --cat-research: #a78bfa;

  /* Interactive & Status */
  --dk-control-bg: var(--dk-surface-2);
  --dk-control-bg-hover: color-mix(in srgb, var(--dk-accent) 6%, var(--dk-surface-2));
  --dk-control-bg-pressed: color-mix(in srgb, var(--dk-accent) 10%, var(--dk-surface-2));
  --dk-control-border: color-mix(in srgb, var(--dk-accent-dim) 16%, var(--dk-border));
  --dk-control-border-hover: color-mix(in srgb, var(--dk-accent-dim) 28%, var(--dk-border));
  --dk-focus-halo: 0 0 0 2px color-mix(in srgb, var(--dk-brand-ink) 40%, transparent);
  --dk-tab-track: #141514;
  --dk-tab-indicator: #262926;
  --dk-tab-selected-text: #ebebeb;

  /* Shadows & Radius */
  --dk-radius-sm: 6px;
  --dk-radius-md: 10px;
  --dk-radius-lg: 16px;
  --dk-radius-xl: 22px;
  --dk-radius-round: 9999px;
  --dk-radius-control: 13px;

  /* Fonts */
  --dk-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --dk-font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
}

/* Light Theme Overrides */
:root[data-theme="light"] {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;

  --dk-shell-base: #e3e7e4;
  --dk-workspace-surface: #f0f2ef;
  --dk-bg: #f5f6f4;
  --dk-surface: #ffffff;
  --dk-surface-2: #e9ede8;
  --dk-raised: #dfe5df;
  --dk-border: #d8ded8;
  --dk-matte-edge: rgba(0, 0, 0, 0.09);
  --dk-chrome: #e3e7e4;
  --dk-popover: #ffffff;
  --dk-input: #ffffff;
  --dk-placeholder: #727c76;

  --dk-text: #1d2420;
  --dk-muted: #5d6962;
  --dk-faint: #78857d;
  --dk-accent: #1d2420;
  --dk-accent-dim: #7c877f;

  --dk-brand-ink: #3b522e;
  --dk-brand-dim: #556f45;
  --dk-primary-action: #4e6b3e;
  --dk-primary-action-text: #ffffff;

  --dk-control-bg: #e9ede8;
  --dk-control-bg-hover: #dfe5df;
  --dk-control-border: #d8ded8;
  --dk-tab-track: #e3e7e4;
  --dk-tab-indicator: #ffffff;
  --dk-tab-selected-text: #1d2420;
}

/* Shine Theme Overrides (Freebuff signature subtle pearlescent dark with luminous sage highlights) */
:root[data-theme="shine"] {
  --dk-bg: #0c0e0d;
  --dk-workspace-surface: #151816;
  --dk-surface: #1a1e1b;
  --dk-surface-2: #202622;
  --dk-raised: #28302b;
  --dk-border: #323d36;
  --dk-matte-edge: #38463d;
  --dk-brand-ink: #c8e4b8;
  --dk-brand-dim: #add397;
  --dk-primary-action: #b5cea5;
  --dk-primary-action-text: #0a0e0a;
}

/* System Theme follows OS when set */
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --lightningcss-light: initial;
    --lightningcss-dark: ;
    color-scheme: light;

    --dk-shell-base: #e3e7e4;
    --dk-workspace-surface: #f0f2ef;
    --dk-bg: #f5f6f4;
    --dk-surface: #ffffff;
    --dk-surface-2: #e9ede8;
    --dk-raised: #dfe5df;
    --dk-border: #d8ded8;
    --dk-matte-edge: rgba(0, 0, 0, 0.09);
    --dk-chrome: #e3e7e4;
    --dk-text: #1d2420;
    --dk-muted: #5d6962;
    --dk-faint: #78857d;
    --dk-brand-ink: #3b522e;
    --dk-primary-action: #4e6b3e;
    --dk-primary-action-text: #ffffff;
    --dk-control-bg: #e9ede8;
    --dk-tab-track: #e3e7e4;
    --dk-tab-indicator: #ffffff;
  }
}

/* Base resets & typography */
html, body {
  background: var(--dk-bg);
  color: var(--dk-text);
  font-family: var(--dk-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* RTL Specific Overrides for Arabic */
[dir="rtl"] {
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
  text-align: right;
}
[dir="rtl"] .marketing-header nav {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .blog-byline {
  flex-direction: row-reverse;
}
[dir="rtl"] .blog-quote {
  border-left: 0;
  border-right: 2px solid var(--dk-brand-ink);
  padding: 2px 20px 2px 0;
}
[dir="rtl"] .blog-table th,
[dir="rtl"] .blog-table td {
  text-align: right;
}
[dir="rtl"] .blog-summary li,
[dir="rtl"] .blog-callout {
  flex-direction: row;
}

/* Freebuff Marketing Shell & Hairline Grid Rails */
.marketing-shell {
  --marketing-grid-width: 1200px;
  --marketing-grid-gutter: 20px;
  --marketing-grid-line: color-mix(in srgb, var(--dk-text) 8%, transparent);
  --marketing-grid-node: color-mix(in srgb, var(--dk-text) 22%, transparent);
  z-index: 1;
  min-height: 100dvh;
  color: var(--dk-text);
  font-size: 15px;
  line-height: 1.6;
  background: color-mix(in srgb, var(--dk-bg) 96%, transparent);
  position: relative;
  container-type: inline-size;
}

.marketing-grid-rails,
.marketing-divider-intersections {
  width: min(var(--marketing-grid-width), calc(100% - var(--marketing-grid-gutter) * 2));
  pointer-events: none;
  margin-inline: auto;
}

.marketing-grid-rails {
  z-index: 0;
  border-inline: 1px solid var(--marketing-grid-line);
  position: absolute;
  inset: 0;
}

.marketing-divider {
  background: var(--marketing-grid-line);
  pointer-events: none;
  width: 100cqw;
  height: 1px;
  margin-inline: calc(50% - 50cqw);
  position: relative;
  z-index: 2;
}

.marketing-divider-intersections {
  height: 1px;
  display: block;
  position: relative;
}

.marketing-divider-intersections::before,
.marketing-divider-intersections::after {
  content: "";
  z-index: 3;
  border: 1px solid var(--marketing-grid-node);
  background: var(--dk-bg);
  border-radius: 2px;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.marketing-divider-intersections::before {
  left: 0;
}

.marketing-divider-intersections::after {
  left: 100%;
}

.marketing-shell *,
.marketing-shell *::before,
.marketing-shell *::after {
  box-sizing: border-box;
  corner-shape: squircle;
}

/* Navigation Header */
.marketing-header {
  align-items: center;
  gap: 24px;
  width: min(1120px, 100% - 64px);
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  position: relative;
  z-index: 10;
}

.marketing-brand {
  color: var(--dk-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 19px;
  flex-shrink: 0;
}

.marketing-brand svg {
  width: auto;
  height: 24px;
}

.marketing-header nav {
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.marketing-header nav > a:not(.btn),
.marketing-footer nav a {
  color: var(--dk-muted);
  text-decoration: none;
  transition: color 0.14s ease;
}

.marketing-header nav > a[aria-current="page"],
.marketing-header nav > a:hover,
.marketing-footer nav a:hover {
  color: var(--dk-text);
}

/* Freebuff Button System */
.btn {
  border-radius: var(--dk-radius-control);
  min-width: 0;
  height: auto;
  min-height: 34px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  line-height: 1.4;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--dk-primary-action);
  color: var(--dk-primary-action-text);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.outline {
  background: var(--dk-surface);
  border-color: var(--dk-matte-edge);
  color: var(--dk-text);
}

.btn.outline:hover {
  background: var(--dk-surface-2);
  border-color: var(--dk-control-border-hover);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--dk-muted);
}

.btn.ghost:hover {
  color: var(--dk-text);
  background: var(--dk-surface-2);
}

.github-star-link {
  background: var(--dk-surface);
  border: 1px solid var(--dk-matte-edge);
  color: var(--dk-text);
  padding: 4px 10px;
  border-radius: var(--dk-radius-control);
}
.github-star-link:hover {
  border-color: var(--dk-control-border-hover);
  background: var(--dk-surface-2);
}

/* Freebuff Compact Theme Switcher Widget */
.theme-switch {
  background: var(--dk-surface-2);
  border: 1px solid var(--dk-matte-edge);
  border-radius: var(--dk-radius-control);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.theme-switch .theme-option {
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 5px 8px;
  color: var(--dk-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.theme-switch.compact .theme-option span {
  display: none;
}

.theme-switch .theme-option:hover {
  color: var(--dk-text);
}

.theme-switch .theme-option.on {
  background: var(--dk-raised);
  color: var(--dk-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Language Selector Dropdown */
.lang-selector-wrap {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: var(--dk-surface);
  border: 1px solid var(--dk-matte-edge);
  border-radius: var(--dk-radius-control);
  color: var(--dk-text);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--dk-popover);
  border: 1px solid var(--dk-matte-edge);
  border-radius: var(--dk-radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  padding: 4px;
  min-width: 140px;
  z-index: 100;
  display: grid;
  gap: 2px;
}

.lang-dropdown[hidden] {
  display: none;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--dk-muted);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.lang-opt:hover {
  background: var(--dk-raised);
  color: var(--dk-text);
}

.lang-opt.active {
  color: var(--dk-brand-ink);
  font-weight: 600;
  background: color-mix(in srgb, var(--dk-brand-ink) 12%, transparent);
}

/* ==========================================================================
   FREEBUFF BLOG ARCHITECTURE & COMPONENTS
   ========================================================================== */

.blog {
  --blog-measure: 720px;
  color: var(--dk-text);
  position: relative;
}

.blog-container {
  width: min(1120px, 100% - 64px);
  margin-inline: auto;
}

.blog-column {
  width: min(var(--blog-measure), calc(100% - 64px));
  margin-inline: auto;
}

/* Blog Hero Header */
.blog-hero {
  padding-block: 72px 56px;
}

.blog-hero h1 {
  letter-spacing: -0.05em;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.blog-hero h1 span {
  color: var(--dk-brand-ink);
}

.blog-hero p {
  color: var(--dk-muted);
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

/* Segmented Control / Filters */
.blog-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  display: flex;
}

.blog-filters.segmented-control {
  scrollbar-width: none;
  border-radius: 13px;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 3px;
  overflow-x: auto;
  background: var(--dk-surface-2);
  border: 1px solid var(--dk-matte-edge);
  display: inline-flex;
  align-items: center;
}

.blog-filters.segmented-control::-webkit-scrollbar {
  display: none;
}

.blog-filters .segmented-button {
  white-space: nowrap;
  cursor: pointer;
  border-radius: 10px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 450;
  border: 0;
  background: transparent;
  color: var(--dk-muted);
  transition: all 0.14s ease;
}

.blog-filters .segmented-button:hover {
  color: var(--dk-text);
}

.blog-filters .segmented-button.selected {
  background: var(--dk-raised);
  color: var(--dk-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-toolbar-end {
  flex: none;
  align-items: center;
  gap: 8px;
  display: flex;
}

.blog-search {
  width: 232px;
  display: block;
  position: relative;
}

.blog-search > svg {
  width: 15px;
  height: 15px;
  color: var(--dk-muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.blog-search input {
  border: 1px solid var(--dk-matte-edge);
  background: var(--dk-surface);
  width: 100%;
  height: 38px;
  color: var(--dk-text);
  font: inherit;
  border-radius: 13px;
  padding: 0 36px 0 35px;
  font-size: 13px;
  transition: border-color 0.14s;
}

.blog-search input:focus-visible {
  border-color: var(--dk-brand-ink);
  outline: none;
}

.blog-rss {
  border: 1px solid var(--dk-matte-edge);
  background: var(--dk-surface);
  width: 38px;
  height: 38px;
  color: var(--dk-muted);
  border-radius: 13px;
  flex: none;
  place-items: center;
  transition: background-color 0.14s, color 0.14s;
  display: grid;
  text-decoration: none;
}

.blog-rss:hover {
  background: var(--dk-surface-2);
  color: var(--dk-text);
}

/* Blog Cards & Grid */
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.blog-card {
  border: 1px solid var(--dk-matte-edge);
  background: var(--dk-surface);
  min-width: 0;
  min-height: 232px;
  color: var(--dk-text);
  border-radius: 22px;
  flex-direction: column;
  padding: 24px;
  transition: background-color 0.14s, border-color 0.14s;
  display: flex;
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--dk-control-border-hover);
  background: var(--dk-surface-2);
}

.blog-card-lead {
  border-color: color-mix(in srgb, var(--dk-brand-ink) 35%, var(--dk-matte-edge));
  background: linear-gradient(155deg, color-mix(in srgb, var(--dk-brand-ink) 6%, var(--dk-surface)), var(--dk-surface) 70%);
  grid-column: span 2;
}

.blog-card-lead:hover {
  border-color: color-mix(in srgb, var(--dk-brand-ink) 50%, var(--dk-matte-edge));
  background: linear-gradient(155deg, color-mix(in srgb, var(--dk-brand-ink) 8%, var(--dk-surface-2)), var(--dk-surface-2) 70%);
}

.blog-category {
  background: color-mix(in srgb, var(--blog-category, var(--dk-brand-ink)) 18%, transparent);
  height: 22px;
  color: color-mix(in srgb, var(--blog-category, var(--dk-brand-ink)) 75%, var(--dk-text));
  white-space: nowrap;
  border-radius: 7px;
  align-self: flex-start;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
}

.blog-card-title {
  letter-spacing: -0.02em;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--dk-text);
}

.blog-card-lead .blog-card-title {
  letter-spacing: -0.04em;
  max-width: 580px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
}

.blog-card-preview {
  color: var(--dk-muted);
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.blog-card-meta {
  color: var(--dk-faint);
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  line-height: 16px;
  display: flex;
}

/* Single Article Header & Byline */
.blog-article-header {
  padding-block: 72px 56px;
}

.blog-article-header > .blog-category {
  width: fit-content;
  display: flex;
}

.blog-article-header h1 {
  letter-spacing: -0.045em;
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dk-text);
}

.blog-article-subtitle {
  color: var(--dk-muted);
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
}

.blog-article-meta {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  display: flex;
}

.blog-byline {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.blog-avatar {
  background: color-mix(in srgb, var(--dk-text) 12%, transparent);
  width: 40px;
  height: 40px;
  color: var(--dk-text);
  border-radius: 20px;
  flex: none;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  display: inline-grid;
}

.blog-meta-stack {
  min-width: 0;
  color: var(--dk-muted);
  flex-direction: column;
  font-size: 13px;
  line-height: 20px;
  display: flex;
}

.blog-byline .blog-meta-stack > :first-child {
  color: var(--dk-text);
  font-weight: 500;
  font-size: 14px;
}

.blog-meta-end {
  text-align: right;
  flex: none;
  align-items: flex-end;
}

/* Article Prose & Editorial Elements */
.blog-prose {
  color: color-mix(in srgb, var(--dk-text) 88%, transparent);
  padding-block: 56px 72px;
  font-size: 17px;
  line-height: 1.75;
}

.blog-prose > * + * {
  margin-top: 24px;
}

.blog-prose > :is(h2, .blog-faq) {
  margin-top: 56px;
}

.blog-prose > h3 {
  margin-top: 40px;
}

.blog-prose > :is(h2, h3) + * {
  margin-top: 16px;
}

.blog-prose > .blog-cta {
  margin-top: 40px;
}

.blog-prose h2 {
  color: var(--dk-text);
  letter-spacing: -0.03em;
  scroll-margin-top: 32px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
}

.blog-prose h2 > a {
  color: inherit;
  text-decoration: none;
}

.blog-prose h2 > a::after {
  content: "#";
  color: var(--dk-faint);
  opacity: 0;
  margin-left: 10px;
  transition: opacity 0.14s;
}

.blog-prose h2 > a:hover::after {
  opacity: 1;
}

.blog-prose h3 {
  color: var(--dk-text);
  letter-spacing: -0.02em;
  scroll-margin-top: 32px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.blog-prose strong {
  color: var(--dk-text);
  font-weight: 500;
}

.blog-lede {
  color: var(--dk-text);
  font-size: 19px;
  line-height: 1.65;
}

.blog .blog-link {
  color: var(--dk-brand-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--dk-brand-ink) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.14s;
}

.blog .blog-link:hover {
  text-decoration-color: var(--dk-brand-ink);
}

.blog-inline-code {
  background: var(--dk-raised);
  color: var(--dk-text);
  font-family: var(--dk-font-mono);
  box-decoration-break: clone;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.88em;
}

.blog-list {
  gap: 12px;
  display: grid;
  padding: 0;
  list-style: none;
}

.blog-list > li {
  gap: 14px;
  display: flex;
  align-items: flex-start;
}

.blog-bullet {
  background: var(--dk-brand-ink);
  border-radius: 2px;
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 10px;
}

/* "In Short" Summary Takeaways Box */
.blog-summary,
.blog-callout,
.blog-cta,
.blog-table,
.blog-code pre {
  border: 1px solid var(--dk-matte-edge);
  background: var(--dk-surface);
}

.blog-summary {
  border-radius: 20px;
  padding: 22px 24px;
}

.blog-summary-label {
  color: var(--dk-brand-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-summary ul {
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.blog-summary li {
  gap: 12px;
  font-size: 15px;
  line-height: 24px;
  display: flex;
  align-items: flex-start;
}

.blog-summary li > svg {
  width: 16px;
  height: 16px;
  color: var(--dk-brand-ink);
  flex: none;
  margin-top: 4px;
}

/* Comparison Table */
.blog-table {
  border-radius: 18px;
  overflow: hidden;
}

.blog-table-scroll {
  overflow-x: auto;
}

.blog-table table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
  line-height: 22px;
}

.blog-table th,
.blog-table td {
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  padding: 14px 18px;
}

.blog-table th {
  background: var(--dk-surface-2);
  color: var(--dk-muted);
  font-size: 13px;
  font-weight: 500;
}

.blog-table th:first-child {
  width: 30%;
}

.blog-table th:nth-child(2) {
  width: 35%;
}

.blog-table td {
  border-top: 1px solid var(--dk-matte-edge);
  color: var(--dk-muted);
}

.blog-table td:first-child,
.blog-table td.blog-table-freebuff {
  color: var(--dk-text);
}

.blog-table th.blog-table-freebuff {
  color: var(--dk-brand-ink);
}

.blog-table-check {
  gap: 8px;
  display: flex;
  align-items: center;
}

.blog-table-check > svg {
  width: 15px;
  height: 15px;
  color: var(--dk-brand-ink);
  flex: none;
}

/* Blog Callout */
.blog-callout {
  border-radius: 18px;
  gap: 14px;
  padding: 18px 20px;
  display: flex;
}

.blog-callout > svg {
  width: 18px;
  height: 18px;
  color: var(--dk-muted);
  flex: none;
  margin-top: 3px;
}

.blog-callout[data-tone="success"] > svg {
  color: var(--dk-brand-ink);
}

.blog-callout[data-tone="warning"] {
  border-color: color-mix(in srgb, #f59e0b 30%, var(--dk-matte-edge));
}

.blog-callout[data-tone="warning"] > svg {
  color: #f59e0b;
}

.blog-callout-body {
  min-width: 0;
  font-size: 15px;
  line-height: 24px;
}

.blog-callout-title {
  color: var(--dk-text);
  font-weight: 500;
}

/* CTA Card */
.blog-cta {
  border-radius: 22px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  display: flex;
}

.blog-cta h3 {
  color: var(--dk-text);
  letter-spacing: -0.02em;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.blog-cta p {
  color: var(--dk-muted);
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.blog-cta .btn.primary {
  border-radius: 13px;
  flex: none;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
}

/* FAQ Accordion */
.blog-faq-list {
  border-top: 1px solid var(--dk-border);
  margin-top: 16px;
}

.blog-faq details {
  border-bottom: 1px solid var(--dk-border);
}

.blog-faq summary {
  color: var(--dk-text);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.45;
  list-style: none;
  display: flex;
}

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

.blog-faq summary > svg {
  color: var(--dk-muted);
  flex: none;
  transition: transform 0.18s ease;
}

.blog-faq details[open] > summary > svg {
  transform: rotate(180deg);
}

.blog-faq-answer {
  color: var(--dk-muted);
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}

/* Related Posts Section */
.blog-related {
  padding-top: 56px;
  padding-bottom: 40px;
}

.blog-related h2 {
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

/* Global Marketing Footer */
.marketing-footer {
  align-items: center;
  gap: 28px;
  width: min(1120px, 100% - 64px);
  min-height: 110px;
  margin-inline: auto;
  margin-top: 72px;
  padding-block: 28px;
  border-top: 1px solid var(--marketing-grid-line, var(--dk-border));
  display: flex;
  position: relative;
  z-index: 10;
}

.marketing-footer nav {
  align-items: center;
  gap: 24px;
  margin-right: auto;
  font-size: 13px;
  display: flex;
}

[dir="rtl"] .marketing-footer nav {
  margin-right: 0;
  margin-left: auto;
}

.marketing-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dk-muted);
}

.marketing-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dk-brand-ink);
  box-shadow: 0 0 8px var(--dk-brand-ink);
}

/* Responsive Media Queries */
@media (max-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .marketing-header nav > a:not(.btn):not([data-nav-preserve]) {
    display: none;
  }
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .marketing-shell {
    --marketing-grid-gutter: 12px;
  }
  .marketing-header,
  .marketing-footer,
  .blog-container,
  .blog-column {
    width: calc(100% - 32px);
  }
  .marketing-header {
    min-height: 76px;
    gap: 16px;
  }
  .blog-hero,
  .blog-article-header {
    padding-block: 48px 36px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-lead {
    grid-column: auto;
  }
  .blog-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .marketing-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
