/**
 * PelviMatrix Institute - Stylesheet v1.0.0 (Bento Grid & Clinical Dashboard)
 * Typography: Space Grotesk (Tech Display) + Inter (Precision Body)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --pmx-dark:        #0B0F19;
  --pmx-card-bg:     #131B2E;
  --pmx-card-border: #1E293B;
  --pmx-accent:      #10B981;
  --pmx-accent-dim:  #064E3B;
  --pmx-cyan:        #06B6D4;
  --pmx-cyan-light:  #ECFEFF;
  --pmx-slate-900:   #0F172A;
  --pmx-slate-800:   #1E293B;
  --pmx-slate-600:   #475569;
  --pmx-slate-400:   #94A3B8;
  --pmx-slate-200:   #E2E8F0;
  --pmx-bg-page:     #F8FAFC;
  --pmx-surface:     #FFFFFF;
  
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(11, 15, 25, 0.04);
  --shadow-card: 0 10px 30px -4px rgba(11, 15, 25, 0.08);
  --shadow-hover: 0 20px 40px -8px rgba(16, 185, 129, 0.16);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--pmx-bg-page);
  color: var(--pmx-slate-800);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pmx-accent), var(--pmx-cyan));
  width: 0%;
  z-index: 1200;
  transition: width 0.1s ease;
}

/* Top Notification */
.pmx-topbar {
  background-color: var(--pmx-dark);
  color: var(--pmx-slate-400);
  font-size: 0.72rem;
  padding: 8px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pmx-topbar strong {
  color: var(--pmx-accent);
}
.pmx-topbar a {
  color: #CBD5E1;
  text-decoration: none;
  margin-left: 14px;
}
.pmx-topbar a:hover {
  color: #38BDF8;
}

/* Header */
.pmx-header {
  background-color: var(--pmx-surface);
  border-bottom: 1px solid var(--pmx-slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pmx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--pmx-dark) 0%, #064E3B 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--pmx-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-text .main-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pmx-slate-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.logo-text .main-title span {
  color: var(--pmx-accent);
}
.logo-text .tagline {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pmx-slate-600);
  font-weight: 700;
  display: block;
}

/* Navigation */
.pmx-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-btn {
  color: var(--pmx-slate-600);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.nav-btn:hover, .nav-btn.is-active {
  color: var(--pmx-dark);
  background-color: #F1F5F9;
}
.btn-cta-header {
  background-color: var(--pmx-dark);
  color: #FFFFFF;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: 12px;
  transition: all 0.2s ease;
  border: 1px solid var(--pmx-slate-600);
}
.btn-cta-header:hover {
  background-color: var(--pmx-accent);
  color: var(--pmx-dark);
  border-color: var(--pmx-accent);
}

/* Breadcrumb */
.pmx-breadcrumb {
  background-color: #F1F5F9;
  border-bottom: 1px solid var(--pmx-slate-200);
  padding: 10px 0;
}
.breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
  font-size: 0.78rem;
  color: var(--pmx-slate-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-inner a {
  color: var(--pmx-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Bento-Grid Hero Section */
.bento-hero-section {
  background-color: var(--pmx-dark);
  color: #FFFFFF;
  padding: 64px 0 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bento-grid-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

/* Bento Box 1 (Main Focus) */
.bento-main-card {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: linear-gradient(145deg, #111827 0%, #064E3B 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--pmx-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--pmx-accent);
  font-weight: 700;
  margin-bottom: 24px;
  width: fit-content;
}
.bento-main-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #FFFFFF;
}
.bento-main-h1 em {
  color: var(--pmx-accent);
  font-style: normal;
}
.bento-main-p {
  font-size: 1.02rem;
  color: #94A3B8;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 580px;
}
.bento-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-bento-primary {
  background-color: var(--pmx-accent);
  color: var(--pmx-dark);
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-bento-primary:hover {
  background-color: #34D399;
  transform: translateY(-2px);
}
.btn-bento-outline {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-bento-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Bento Box 2 & 3 (Side Tiles) */
.bento-tile {
  background-color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.bento-tile:hover {
  border-color: var(--pmx-accent);
}
.tile-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pmx-accent);
  margin-bottom: 8px;
}
.tile-h {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.tile-desc {
  font-size: 0.84rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 16px;
}
.tile-stat {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pmx-cyan);
}

/* Section: 4-Phase Recovery Roadmap */
.roadmap-section {
  padding: 72px 0;
  background-color: var(--pmx-surface);
  border-bottom: 1px solid var(--pmx-slate-200);
}
.section-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
}
.sec-title-wrap {
  margin-bottom: 40px;
}
.sec-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pmx-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sec-kicker::before {
  content: '';
  width: 16px;
  height: 2px;
  background-color: var(--pmx-accent);
}
.sec-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  color: var(--pmx-slate-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.roadmap-card {
  background-color: var(--pmx-bg-page);
  border: 1px solid var(--pmx-slate-200);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--pmx-accent);
  box-shadow: var(--shadow-card);
}
.phase-pill {
  background-color: var(--pmx-dark);
  color: var(--pmx-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  display: inline-block;
}
.phase-h {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pmx-slate-900);
  margin-bottom: 8px;
}
.phase-p {
  font-size: 0.84rem;
  color: var(--pmx-slate-600);
  line-height: 1.6;
}

/* Section: Comparative Clinical Matrix */
.matrix-section {
  padding: 72px 0;
  background-color: var(--pmx-bg-page);
  border-bottom: 1px solid var(--pmx-slate-200);
}
.table-overflow-box {
  background-color: var(--pmx-surface);
  border: 1px solid var(--pmx-slate-200);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.clinical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.clinical-table th {
  background-color: var(--pmx-dark);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 16px 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.clinical-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pmx-slate-200);
  color: var(--pmx-slate-800);
}
.clinical-table tr:last-child td {
  border-bottom: none;
}
.clinical-table tr:hover td {
  background-color: #F8FAFC;
}

/* Section: Asymmetric 2-Column Content Feed */
.content-feed-section {
  padding: 72px 0;
  background-color: var(--pmx-surface);
}
.feed-grid-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.feed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.horizontal-article-card {
  background-color: var(--pmx-bg-page);
  border: 1px solid var(--pmx-slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  text-decoration: none;
  transition: all 0.3s ease;
}
.horizontal-article-card:hover {
  border-color: var(--pmx-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.card-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-details-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-category {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pmx-accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--pmx-slate-900);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.card-snippet {
  font-size: 0.84rem;
  color: var(--pmx-slate-600);
  line-height: 1.6;
  margin-bottom: 14px;
}
.card-meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--pmx-slate-400);
}

/* Sidebar Components */
.sticky-sidebar-panel {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background-color: var(--pmx-bg-page);
  border: 1px solid var(--pmx-slate-200);
  border-radius: var(--radius-md);
  padding: 26px;
}
.sidebar-h {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--pmx-slate-900);
  font-weight: 700;
  margin-bottom: 12px;
}
.sidebar-p {
  font-size: 0.84rem;
  color: var(--pmx-slate-600);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sidebar-btn {
  display: block;
  text-align: center;
  background-color: var(--pmx-dark);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.sidebar-btn:hover {
  background-color: var(--pmx-accent);
  color: var(--pmx-dark);
}

/* Article Reading Layout */
.article-container-2col {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 36px 72px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: start;
}
.toc-sidebar {
  position: sticky;
  top: 96px;
  background-color: var(--pmx-surface);
  border: 1px solid var(--pmx-slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
}
.toc-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pmx-dark);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
.toc-list a {
  color: var(--pmx-slate-600);
  text-decoration: none;
  transition: color 0.2s ease;
}
.toc-list a:hover {
  color: var(--pmx-accent);
}

.article-main-body {
  max-width: 820px;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}
.art-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  color: var(--pmx-slate-900);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.art-lead-quote {
  font-size: 1.1rem;
  color: var(--pmx-slate-600);
  line-height: 1.85;
  border-left: 4px solid var(--pmx-accent);
  padding-left: 20px;
  margin-bottom: 32px;
  font-style: italic;
}
.art-prose p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 24px;
}
.art-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--pmx-slate-900);
  margin: 40px 0 16px;
  font-weight: 800;
}
.art-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--pmx-accent);
  margin: 28px 0 12px;
  font-weight: 700;
}
.art-prose ul, .art-prose ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.art-prose li {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 10px;
}

/* Callouts */
.callout-box {
  background-color: var(--pmx-cyan-light);
  border-left: 4px solid var(--pmx-cyan);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: 32px 0;
}
.callout-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0E7490;
  margin-bottom: 8px;
}
.callout-box p {
  font-size: 0.92rem !important;
  color: var(--pmx-slate-800) !important;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}

.warning-box {
  background-color: #FFFBEB;
  border-left: 4px solid #D97706;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 32px 0;
}
.warning-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #854D0E;
  margin-bottom: 6px;
}
.warning-box p {
  font-size: 0.88rem !important;
  color: #713F12 !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}

/* Footer */
.pmx-footer {
  background-color: var(--pmx-dark);
  color: var(--pmx-slate-400);
  padding: 64px 0 32px;
  font-size: 0.86rem;
}
.footer-3col-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-brand span {
  color: var(--pmx-accent);
}
.footer-p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: #94A3B8;
  margin-bottom: 18px;
  max-width: 360px;
}
.footer-disc {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.74rem;
  color: #A7F3D0;
  line-height: 1.65;
}
.footer-col-h {
  font-family: var(--font-heading);
  color: #E2E8F0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
}
.footer-legal-nav {
  display: flex;
  gap: 20px;
}
.footer-legal-nav a {
  color: #94A3B8;
  text-decoration: none;
}
.footer-legal-nav a:hover {
  color: var(--pmx-accent);
}

/* Contact & Policy Templates */
.contact-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 64px 36px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-card {
  background-color: var(--pmx-surface);
  border: 1px solid var(--pmx-slate-200);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-grp {
  margin-bottom: 18px;
}
.form-lbl {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--pmx-slate-800);
  margin-bottom: 6px;
  display: block;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--pmx-slate-200);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--pmx-slate-800);
  background-color: var(--pmx-bg-page);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  border-color: var(--pmx-accent);
  background-color: #FFFFFF;
}
textarea.form-input {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  background-color: var(--pmx-dark);
  color: #FFFFFF;
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background-color 0.2s ease;
}
.btn-submit:hover {
  background-color: var(--pmx-accent);
  color: var(--pmx-dark);
}

@media (max-width: 1024px) {
  .bento-grid-layout { grid-template-columns: 1fr; }
  .bento-main-card { grid-column: 1 / -1; grid-row: auto; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .feed-grid-layout { grid-template-columns: 1fr; }
  .article-container-2col { grid-template-columns: 1fr; }
  .footer-3col-grid { grid-template-columns: 1fr 1fr; }
  .contact-2col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pmx-nav { display: none; }
  .horizontal-article-card { grid-template-columns: 1fr; }
  .card-image-cover { height: 180px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .footer-3col-grid { grid-template-columns: 1fr; }
  .pmx-topbar { flex-direction: column; gap: 4px; text-align: center; }
  .article-hero-img { height: 240px; }
}
