@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --meh3-bg: #2C1621;
  --meh3-surface: #4D283A;
  --meh3-surface-alt: #3B1E2D;
  --meh3-surface-border: #6E3B54;
  --meh3-surface-hover: #5A2F44;
  --meh3-ink: #F5EFF2;
  --meh3-ink-muted: #C9B8C2;
  --meh3-ink-dim: #9C8693;
  --meh3-accent: #D54ED2;
  --meh3-accent2: #E21DDF;
  --meh3-accent-glow: rgba(213, 78, 210, 0.35);
  --meh3-on-accent: #111111;
  --meh3-success: #10B981;
  --meh3-warning: #F59E0B;
  --meh3-danger: #EF4444;
  
  --meh3-font-heading: 'Outfit', sans-serif;
  --meh3-font-body: 'Manrope', sans-serif;
  
  --meh3-base-size: 17px;
  --meh3-scale: 1.333;
  --meh3-text-xs: 0.75rem;
  --meh3-text-sm: 0.875rem;
  --meh3-text-base: 1.0625rem;
  --meh3-text-md: 1.416rem;
  --meh3-text-lg: 1.888rem;
  --meh3-text-xl: 2.517rem;
  --meh3-text-2xl: 3.355rem;
  
  --meh3-radius: 6px;
  --meh3-border: 2px solid var(--meh3-accent);
  --meh3-shadow: 4px 4px 0px var(--meh3-accent2);
  --meh3-shadow-hover: 6px 6px 0px var(--meh3-accent);
  --meh3-sidebar-width: 270px;
}

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

html {
  font-size: var(--meh3-base-size);
  scroll-behavior: smooth;
  background-color: var(--meh3-bg);
  color: var(--meh3-ink);
  font-family: var(--meh3-font-body);
}

body {
  background-color: var(--meh3-bg);
  color: var(--meh3-ink);
  font-family: var(--meh3-font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scroll Progress Bar */
.meh3-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}
.meh3-progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--meh3-accent), var(--meh3-accent2));
  width: 0%;
  box-shadow: 0 0 10px var(--meh3-accent2);
}

/* Layout Wrapper */
.meh3-layout-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Dashboard Sidebar (Left Rail) */
.meh3-sidebar {
  width: var(--meh3-sidebar-width);
  background-color: var(--meh3-surface);
  border-right: 2px solid var(--meh3-surface-border);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.meh3-brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--meh3-surface-border);
}

.meh3-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.meh3-brand-title {
  font-family: var(--meh3-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--meh3-ink);
  letter-spacing: -0.5px;
}
.meh3-brand-title span {
  color: var(--meh3-accent2);
}

.meh3-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.meh3-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--meh3-radius);
  color: var(--meh3-ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.meh3-sidebar-link:hover, .meh3-sidebar-link.active {
  background-color: var(--meh3-surface-alt);
  color: var(--meh3-ink);
  border-color: var(--meh3-accent);
  box-shadow: 2px 2px 0px var(--meh3-accent2);
  transform: translateX(3px);
}

.meh3-sidebar-icon {
  width: 20px;
  height: 20px;
  stroke: var(--meh3-accent);
  stroke-width: 2;
  fill: none;
}

.meh3-sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--meh3-surface-border);
}

/* Main Content Area */
.meh3-main-content {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--meh3-bg);
}

/* Floating Top Pill Nav */
.meh3-top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(44, 22, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--meh3-surface-border);
}

.meh3-mobile-toggle {
  display: none;
  background: var(--meh3-surface);
  border: 1px solid var(--meh3-accent);
  color: var(--meh3-ink);
  padding: 0.5rem 0.75rem;
  border-radius: var(--meh3-radius);
  cursor: pointer;
  font-size: 1.1rem;
}

.meh3-pill-group {
  display: flex;
  gap: 0.5rem;
  background: var(--meh3-surface);
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--meh3-surface-border);
}

.meh3-pill-link {
  color: var(--meh3-ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.meh3-pill-link:hover, .meh3-pill-link.active {
  background: var(--meh3-accent);
  color: var(--meh3-on-accent);
}

.meh3-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Split Button CTA with Label */
.meh3-split-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--meh3-accent), var(--meh3-accent2));
  color: var(--meh3-on-accent);
  font-family: var(--meh3-font-heading);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--meh3-radius);
  border: 2px solid var(--meh3-ink);
  box-shadow: var(--meh3-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.meh3-split-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--meh3-shadow-hover);
}

.meh3-split-label {
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meh3-split-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meh3-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--meh3-surface);
  color: var(--meh3-ink);
  font-family: var(--meh3-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--meh3-radius);
  border: 1px solid var(--meh3-surface-border);
  transition: all 0.2s ease;
}

.meh3-btn-secondary:hover {
  border-color: var(--meh3-accent);
  background: var(--meh3-surface-hover);
}

/* Hero Section (Full-Bleed Gradient Banner) */
.meh3-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(226, 29, 223, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(213, 78, 210, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, var(--meh3-surface) 0%, var(--meh3-bg) 100%);
  border-bottom: 2px solid var(--meh3-surface-border);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.meh3-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--meh3-surface-alt);
  border: 1px solid var(--meh3-accent);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--meh3-accent);
  box-shadow: 2px 2px 0px var(--meh3-accent2);
}

.meh3-hero-title {
  font-family: var(--meh3-font-heading);
  font-size: var(--meh3-text-2xl);
  font-weight: 900;
  line-height: 1.15;
  color: var(--meh3-ink);
  max-width: 900px;
  letter-spacing: -1px;
}

.meh3-hero-title span {
  background: linear-gradient(135deg, var(--meh3-accent), var(--meh3-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meh3-hero-desc {
  font-size: var(--meh3-text-base);
  color: var(--meh3-ink-muted);
  max-width: 780px;
  line-height: 1.7;
}

.meh3-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.meh3-stat-item {
  background: var(--meh3-surface);
  border: 1px solid var(--meh3-surface-border);
  border-radius: var(--meh3-radius);
  padding: 0.85rem 1.5rem;
  text-align: center;
  min-width: 140px;
}

.meh3-stat-num {
  font-family: var(--meh3-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--meh3-accent);
}

.meh3-stat-label {
  font-size: 0.8rem;
  color: var(--meh3-ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Breadcrumb Navigation */
.meh3-breadcrumb-container {
  padding: 1rem 2.5rem 0;
}

.meh3-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--meh3-ink-dim);
}

.meh3-breadcrumb-list a {
  color: var(--meh3-ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.meh3-breadcrumb-list a:hover {
  color: var(--meh3-accent);
}

.meh3-breadcrumb-separator {
  color: var(--meh3-surface-border);
}

/* Content Container */
.meh3-content-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--meh3-font-heading);
  font-weight: 800;
  color: var(--meh3-ink);
  line-height: 1.25;
}

h1 { font-size: var(--meh3-text-xl); }
h2 { font-size: var(--meh3-text-lg); margin-bottom: 1rem; }
h3 { font-size: var(--meh3-text-md); margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--meh3-ink);
  font-size: var(--meh3-text-base);
}

/* Hard-Offset Shadow Card */
.meh3-card {
  background-color: var(--meh3-surface);
  border: var(--meh3-border);
  border-radius: var(--meh3-radius);
  box-shadow: var(--meh3-shadow);
  padding: 1.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meh3-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--meh3-shadow-hover);
}

.meh3-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.meh3-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--meh3-surface-border);
}

.meh3-card-title {
  font-size: 1.25rem;
  color: var(--meh3-ink);
}

.meh3-card-desc {
  font-size: 0.95rem;
  color: var(--meh3-ink-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.meh3-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--meh3-surface-border);
}

/* Quantitative Data Tables */
.meh3-table-wrapper {
  overflow-x: auto;
  border-radius: var(--meh3-radius);
  border: var(--meh3-border);
  box-shadow: var(--meh3-shadow);
  background: var(--meh3-surface);
}

.meh3-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.meh3-table th {
  background-color: var(--meh3-surface-alt);
  color: var(--meh3-ink);
  font-family: var(--meh3-font-heading);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--meh3-surface-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.meh3-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--meh3-surface-border);
  color: var(--meh3-ink-muted);
}

.meh3-table tr:hover td {
  background-color: var(--meh3-surface-hover);
  color: var(--meh3-ink);
}

.meh3-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meh3-badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--meh3-success);
  border: 1px solid var(--meh3-success);
}

.meh3-badge-accent {
  background: rgba(213, 78, 210, 0.2);
  color: var(--meh3-accent);
  border: 1px solid var(--meh3-accent);
}

/* E-E-A-T Auditor Commentary Box */
.meh3-eeat-box {
  background: linear-gradient(135deg, var(--meh3-surface) 0%, var(--meh3-surface-alt) 100%);
  border: 2px solid var(--meh3-accent);
  border-radius: var(--meh3-radius);
  box-shadow: var(--meh3-shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meh3-eeat-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--meh3-surface-border);
}

.meh3-auditor-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--meh3-accent);
  object-fit: cover;
  box-shadow: 0 0 10px var(--meh3-accent-glow);
}

.meh3-auditor-info h4 {
  font-size: 1.2rem;
  color: var(--meh3-ink);
}

.meh3-auditor-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--meh3-accent);
  font-weight: 600;
}

.meh3-eeat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.meh3-eeat-card {
  background: var(--meh3-surface-alt);
  padding: 1rem;
  border-radius: var(--meh3-radius);
  border: 1px solid var(--meh3-surface-border);
}

.meh3-eeat-card h5 {
  font-size: 0.95rem;
  color: var(--meh3-ink);
  margin-bottom: 0.5rem;
}

.meh3-eeat-card p {
  font-size: 0.85rem;
  color: var(--meh3-ink-muted);
  margin: 0;
  line-height: 1.45;
}

/* Step-by-Step Practical Guides */
.meh3-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meh3-step-item {
  display: flex;
  gap: 1.25rem;
  background: var(--meh3-surface);
  border: 1px solid var(--meh3-surface-border);
  border-radius: var(--meh3-radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.meh3-step-item:hover {
  border-color: var(--meh3-accent);
}

.meh3-step-num {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--meh3-accent);
  color: var(--meh3-on-accent);
  font-family: var(--meh3-font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px var(--meh3-accent2);
}

.meh3-step-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.meh3-step-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--meh3-ink-muted);
}

/* FAQ Accordion */
.meh3-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meh3-faq-item {
  background: var(--meh3-surface);
  border: 1px solid var(--meh3-surface-border);
  border-radius: var(--meh3-radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.meh3-faq-item:hover {
  border-color: var(--meh3-accent);
}

.meh3-faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--meh3-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--meh3-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.meh3-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--meh3-accent);
  transition: transform 0.2s ease;
}

.meh3-faq-item.open .meh3-faq-question::after {
  content: '−';
}

.meh3-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--meh3-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Topic Cluster / Silo Links Mesh */
.meh3-cluster-box {
  background: var(--meh3-surface-alt);
  border: 2px solid var(--meh3-surface-border);
  border-radius: var(--meh3-radius);
  padding: 1.75rem;
}

.meh3-cluster-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meh3-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.meh3-cluster-link {
  display: block;
  background: var(--meh3-surface);
  padding: 0.65rem 0.9rem;
  border-radius: var(--meh3-radius);
  border: 1px solid var(--meh3-surface-border);
  color: var(--meh3-ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.meh3-cluster-link:hover {
  border-color: var(--meh3-accent);
  color: var(--meh3-ink);
  box-shadow: 2px 2px 0px var(--meh3-accent2);
  transform: translateY(-2px);
}

/* Centered-Stack Footer */
.meh3-footer {
  background-color: var(--meh3-surface);
  border-top: 2px solid var(--meh3-surface-border);
  padding: 3.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-top: auto;
}

.meh3-footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.meh3-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.meh3-footer-nav a {
  color: var(--meh3-ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.meh3-footer-nav a:hover {
  color: var(--meh3-accent);
}

.meh3-responsible-box {
  max-width: 750px;
  background: var(--meh3-surface-alt);
  border: 1px solid var(--meh3-surface-border);
  border-radius: var(--meh3-radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--meh3-ink-dim);
  line-height: 1.55;
}

.meh3-responsible-box strong {
  color: var(--meh3-warning);
}

.meh3-footer-bottom {
  font-size: 0.8rem;
  color: var(--meh3-ink-dim);
  border-top: 1px solid var(--meh3-surface-border);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .meh3-layout-wrapper {
    flex-direction: column;
  }
  .meh3-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 10px 0 25px rgba(0,0,0,0.5);
  }
  .meh3-sidebar.active {
    transform: translateX(0);
  }
  .meh3-mobile-toggle {
    display: block;
  }
  .meh3-pill-group {
    display: none;
  }
  .meh3-hero-title {
    font-size: var(--meh3-text-xl);
  }
}

@media (max-width: 640px) {
  .meh3-content-container {
    padding: 1.5rem 1rem;
  }
  .meh3-hero {
    padding: 2.5rem 1rem;
  }
  .meh3-hero-title {
    font-size: 1.75rem;
  }
  .meh3-card-grid {
    grid-template-columns: 1fr;
  }
}
