/* ==========================================================================
   DESA55 Pages — Supplemental Styles
   Covers class aliases from interior pages + page-specific layouts
   ========================================================================== */

/* ── Body / Base ──────────────────────────────────────────────────────────── */

body { background-color: var(--bg-primary); }

/* ── Tailwind-like Aliases (used by some interior pages) ─────────────────── */

.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-green-400 { color: #4ade80; }
.text-yellow-400 { color: #facc15; }
.text-white      { color: #ffffff; }
.text-primary    { color: var(--color-primary); }

.bg-green-500\/20 { background: rgba(34,197,94,0.20); }
.bg-card          { background: var(--bg-card); }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-base); }
.rounded-xl  { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.font-bold     { font-weight: var(--fw-bold); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-medium   { font-weight: var(--fw-medium); }
.font-black    { font-weight: var(--fw-black); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }

.leading-relaxed { line-height: var(--lh-relaxed); }
.leading-snug    { line-height: var(--lh-snug); }
.leading-tight   { line-height: var(--lh-tight); }

.tracking-wide   { letter-spacing: var(--ls-wide); }
.tracking-wider  { letter-spacing: var(--ls-wider); }

.object-cover   { object-fit: cover; }
.aspect-video   { aspect-ratio: 16 / 9; }
.aspect-square  { aspect-ratio: 1 / 1; }

/* Spacing shorthands */
.p-2  { padding: var(--space-2); }
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-5  { padding: var(--space-5); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }

.px-2  { padding-inline: var(--space-2); }
.px-3  { padding-inline: var(--space-3); }
.px-4  { padding-inline: var(--space-4); }
.py-1  { padding-block: var(--space-1); }
.py-2  { padding-block: var(--space-2); }
.py-4  { padding-block: var(--space-4); }

.pt-2  { padding-top: var(--space-2); }
.pt-4  { padding-top: var(--space-4); }
.pt-8  { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }
.pt-32 { padding-top: calc(var(--space-32) + 72px); } /* below nav */

.pb-4  { padding-bottom: var(--space-4); }
.pb-8  { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }

.mb-1  { margin-bottom: var(--space-1); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.max-w-4xl { max-width: 896px; margin-inline: auto; }
.max-w-3xl { max-width: 768px; margin-inline: auto; }
.max-w-2xl { max-width: 672px; margin-inline: auto; }
.max-w-xl  { max-width: 576px; margin-inline: auto; }

/* ── Glass Card alias ─────────────────────────────────────────────────────── */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
  transform: translateY(-2px);
}

/* ── Brand Logo (alternative nav class) ─────────────────────────────────── */

.brand-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* ── Nav Links alternative (used by articles, news, etc.) ─────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(34, 197, 94, 0.08);
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
}

/* ── Nav Actions ─────────────────────────────────────────────────────────── */

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Glass Nav alias ─────────────────────────────────────────────────────── */

.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(11, 17, 23, 0.85);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border-bottom: 1px solid var(--color-border);
}

/* ── Hero Section alias ─────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Page Hero (interior pages) ─────────────────────────────────────────── */

.hero-page {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-16);
  text-align: center;
  overflow: hidden;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(34, 197, 94, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Breadcrumb Container ────────────────────────────────────────────────── */

.breadcrumb-container {
  padding: var(--space-4) 0;
}

/* ── Page Section (section with bg-secondary) ────────────────────────────── */

.page-section {
  padding-block: var(--section-gap);
}

.page-section-alt {
  padding-block: var(--section-gap);
  background: var(--bg-secondary);
}

/* ── Review Card ─────────────────────────────────────────────────────────── */

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  overflow: hidden;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.review-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
  transform: translateY(-3px);
}

.review-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

/* ── Guide Card ──────────────────────────────────────────────────────────── */

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
  transform: translateY(-2px);
}

.guide-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.20);
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ── Author Grid Card ────────────────────────────────────────────────────── */

.author-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-8);
  text-align: center;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.author-grid-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
  transform: translateY(-3px);
}

.author-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--color-text-inverse);
  margin-inline: auto;
  margin-bottom: var(--space-4);
  border: 3px solid var(--color-border-hover);
}

.author-avatar-circle.green  { background: linear-gradient(135deg, #22C55E, #16A34A); }
.author-avatar-circle.teal   { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.author-avatar-circle.blue   { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.author-avatar-circle.purple { background: linear-gradient(135deg, #A855F7, #7E22CE); }
.author-avatar-circle.orange { background: linear-gradient(135deg, #F97316, #C2410C); }
.author-avatar-circle.rose   { background: linear-gradient(135deg, #F43F5E, #BE123C); }

/* ── Contact Form ────────────────────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8em 1.25em;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-select option {
  background: var(--bg-secondary);
}

/* ── Info Card (contact info, support topics) ────────────────────────────── */

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.info-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow-sm);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.20);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Table of Contents sidebar ───────────────────────────────────────────── */

.sticky-top {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

/* ── Policy Page ─────────────────────────────────────────────────────────── */

.policy-section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.policy-section:last-child {
  border-bottom: none;
}

/* ── 404 Page ────────────────────────────────────────────────────────────── */

.error-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--gutter);
  padding-top: calc(var(--nav-height) + var(--space-8));
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: var(--fw-black);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-4);
}

/* ── Rating Stars ────────────────────────────────────────────────────────── */

.rating {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-filled { color: #F59E0B; }
.star-empty  { color: var(--color-text-tertiary); }

/* ── Tag Cloud ───────────────────────────────────────────────────────────── */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Category Filter Tabs ────────────────────────────────────────────────── */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-tab {
  padding: 0.45em 1.2em;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--color-primary);
  background: rgba(34, 197, 94, 0.10);
  border-color: var(--color-primary);
}

/* ── Milestone Card ──────────────────────────────────────────────────────── */

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.milestone-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow-sm);
}

.milestone-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3ch;
}

/* ── Section Gradient ────────────────────────────────────────────────────── */

.section-bg-alt   { background: var(--bg-secondary); }
.section-bg-glass { background: rgba(255, 255, 255, 0.02); }

/* ── Utility: hide on mobile / tablet ────────────────────────────────────── */

@media (max-width: 768px) {
  .hide-mobile  { display: none !important; }
  .filter-tabs  { gap: var(--space-1); }
}

@media (max-width: 1024px) {
  .hide-tablet  { display: none !important; }
  .navbar-nav   { display: none; }
  .navbar-toggle { display: flex; }
}

/* ── Prose Overrides ─────────────────────────────────────────────────────── */

.prose p  { margin-bottom: var(--space-4); }
.prose h2 { margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose ul, .prose ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--color-text-primary); font-weight: var(--fw-semibold); }
.prose a  { color: var(--color-primary); text-decoration: underline; text-decoration-style: dotted; }

/* ── Hover transitions for plain links (used in breadcrumb with hover:text-primary) */

.hover\:text-primary:hover { color: var(--color-primary); }
.transition-colors { transition: color var(--transition-fast); }

/* ── INTERIOR PAGE CARD FIXES (Articles, News, Guides, Reviews) ──────────── */

/* Fix missing column definitions for grids */
.section .grid:not([class*="grid-"]) {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.article-card, .feature-card {
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.article-card > img, .feature-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.card-content {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    margin-block: var(--space-3);
    line-height: var(--lh-snug);
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--lh-relaxed);
    flex: 1;
}

.meta-date {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
}

/* ── TAILWIND SHIMS for Authors/Contact/Support Pages ──────────── */

/* Grid Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* Spacing and Borders (Tailwind approximations) */
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.w-full { width: 100%; }

/* Transforms */
.transition-transform { transition-property: transform; transition-duration: 300ms; }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }

/* Typography */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--color-primary); }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* Forms */
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.block { display: block; }
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }
.mt-1 { margin-top: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.bg-surface-light { background-color: rgba(255, 255, 255, 0.05); }
.border { border-width: 1px; }
.border-gray-700 { border-color: rgba(255,255,255,0.1); }
.rounded-lg { border-radius: 0.5rem; }
.focus\:border-primary:focus { border-color: var(--color-primary); outline: none; }


/* ── TAILWIND SHIMS for Timeline / Our Story ──────────── */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-6 { margin-top: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(3rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(3rem * var(--tw-space-y-reverse));
}
.text-5xl { font-size: 3rem; line-height: 1; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.leading-tight { line-height: 1.25; }
.shrink-0 { flex-shrink: 0; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.bg-primary { background-color: var(--color-primary); }
.bg-background { background-color: var(--bg-primary); }
.z-10 { z-index: 10; }

/* Timeline Custom Styles */
.relative { position: relative; }
.before\:absolute::before { content: ""; position: absolute; }
.before\:inset-0::before { inset: 0; }
.before\:ml-5::before { margin-left: 1.25rem; }
.before\:h-full::before { height: 100%; }
.before\:w-0\.5::before { width: 0.125rem; }
.before\:bg-gradient-to-b::before { background-image: linear-gradient(to bottom, transparent, var(--color-primary), transparent); }

@media (min-width: 768px) {
    .md\:before\:mx-auto::before { margin-left: auto; margin-right: auto; left: 0; right: 0; }
    .md\:justify-normal { justify-content: normal; }
    .md\:odd\:flex-row-reverse:nth-child(odd) { flex-direction: row-reverse; }
    .md\:group-odd\:-translate-x-1\/2:nth-child(odd) .shrink-0 { transform: translateX(-50%); }
    .md\:group-even\:translate-x-1\/2:nth-child(even) .shrink-0 { transform: translateX(50%); }
}

/* ── TAILWIND SHIMS for Typography / Policy Pages ──────────── */
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pl-6 { padding-left: 1.5rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

/* Typography Colors & Styles */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-white { color: #ffffff; }
.hover\:text-accent:hover { color: var(--color-primary); }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-heading { font-family: var(--font-display); }
.list-disc { list-style-type: disc; }
.border-b { border-bottom-width: 1px; }
.border-gray-800 { border-color: rgba(255,255,255,0.1); }
.rounded-3xl { border-radius: 1.5rem; }
.prose h2, .prose h3 { font-family: var(--font-display); color: var(--color-text-primary); margin-top: 2rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1rem; line-height: 1.7; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

@media (min-width: 768px) {
    .md\:p-12 { padding: 3rem; }
}

/* ── LIST STYLE FIXES (Filter Tabs & Breadcrumbs) ──────────── */
.filter-tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
    justify-content: center;
}

ol.flex, ul.flex {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── COMPONENT FIXES (Category Pills) ──────────── */
.category-pill {
    flex-direction: column;
    text-align: center;
}

@media (max-width: 768px) {
    .category-pill {
        padding: var(--space-4) var(--space-6);
    }
}

/* Ensure Category Pills look good on Mobile */
@media (max-width: 768px) {
    .grid:has(> .category-pill) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}
