/* QA Stack — Pure Blogroll-Identical GxP Stylesheet (Airy, Spacious & Breathable Edition) */
/* Local Sovereign Self-Hosted Sofia Sans (100% GDPR & GxP Sovereign — Zero External IP Transmissions) */
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/sofia-sans-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/sofia-sans-latin-ext-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sofia-sans-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sofia-sans-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Warm Parchment / Cream Palette (Inspired by Offerings Standalone Cell) */
  --color-background: #FFF5D6; /* Warm Custard / Parchment Cream */
  --color-background-alt: #FFF9E8; /* Light warm cream */
  --color-border: #E8D6A4; /* Elegant warm golden parchment border */
  --color-text: #463B21; /* Rich warm bronze-brown for effortless reading */
  --color-heading: #2D230F; /* Deep authoritative dark espresso for high-contrast titles */
  --color-text-subtle: #685732; /* Warm amber-brown for secondary text */
  --color-btn-green: #F5E0A0; /* Warm golden butter for active states */

  /* Exact Blogroll Yellow / Amber Accent Palette */
  --color-amber-bg: #FEE698;
  --color-amber-border: #E5C973;
  --color-amber-tab: #EEC953;
  --color-amber-text: #463b21; /* High contrast amber text */
  --color-amber-title: #4d3d12;

  /* Blogroll Gradient (Cream to Warm Amber) */
  --color-gradient-bg: linear-gradient(to right, #FFF5D6, #FEE698);
  --color-tab-left: #F5E0A0;
  --color-tab-right: #EEC953;

  /* Typography */
  --font-family: 'Sofia Sans', 'Sofia', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-size: 15px;
  --f-height: 23px; /* Generous, comfortable line height */
  --f-weight: 400;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--color-heading);
  color: var(--color-background);
}

html {
  font-family: var(--font-family);
  font-size: var(--f-size);
  line-height: var(--f-height);
  font-weight: var(--f-weight);
  color: var(--color-text);
  background-color: var(--color-background);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  font-size: var(--f-size);
  line-height: var(--f-height);
  display: grid;
  grid-template-columns: 21.5rem 37rem; /* Spacious, breathable columns */
  grid-gap: 3.75rem; /* Generous, airy column separation */
  justify-content: center;
  padding: 4.5rem 2rem;
  margin: 0 auto;
  max-width: 65.5rem;
  min-height: 100vh;
  background-color: var(--color-background);
}

/* Typography — High Readability & Publication Contrast */
h1, h2, h3, h4 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.015em;
  line-height: 1.28;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.08rem; }

p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.95rem; /* Generous vertical breathing room */
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: rgba(70, 59, 33, 0.4);
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

a:hover {
  text-decoration-color: var(--color-text);
}

ul {
  list-style: none;
  margin: 0.95rem 0;
}

ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

ul li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--color-text);
  font-weight: bold;
}

/* LEFT SIDEBAR (Sticky) */
.sidebar {
  position: sticky;
  top: 3.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.85rem; /* Generous, breathable spacing between sidebar blocks */
}

.brand-header {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.brand-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  text-decoration: none;
  color: inherit;
}

a.brand-title-row {
  text-decoration: none;
  color: inherit;
}

a.brand-title-row:hover {
  text-decoration: none;
  color: inherit;
}

/* Refined, Prominent Brand Logo */
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 9px;
  margin-top: 1px; /* Aligns flush with top of title */
}

.brand-names {
  display: flex;
  flex-direction: column;
}

.brand-names h1 {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-names .brand-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 3px;
}

.manifesto-hook {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.manifesto-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* Regulatory Standards Trust Strip */
.standards-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.standard-pill {
  background: rgba(70, 59, 33, 0.07);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Expanded Impact Strip (6-Cell Fact / KPI Grid) */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.stat-cell {
  background-color: rgba(70, 59, 33, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 0.55rem 0.7rem;
  transition: all 0.15s ease;
}

.stat-cell:hover {
  background-color: rgba(70, 59, 33, 0.08);
  border-color: #DEC892;
}

.stat-number {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--color-text-subtle);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 3px;
}

/* Two Action Buttons under manifesto */
.sidebar-buttons {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.btn-pill-green {
  display: inline-block;
  background-color: var(--color-btn-green);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill-green:hover {
  background-color: #9EE4A8;
}

.btn-pill-amber {
  display: inline-block;
  background-color: var(--color-amber-bg);
  color: var(--color-amber-title);
  border: 1px solid var(--color-amber-border);
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill-amber:hover {
  background-color: #FEDF7B;
}

/* Topic / Module Filter Box */
.filter-box {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem 0.95rem;
  background-color: transparent;
}

.filter-header-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.84rem;
  font-weight: 600; /* Constant weight eliminates text width shift and layout jitter */
  text-decoration: none !important;
  color: var(--color-text);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill:hover {
  background-color: rgba(70, 59, 33, 0.08);
  border-color: #D4BC82;
  color: var(--color-heading);
}

.pill.is-selected {
  background-color: var(--color-btn-green);
  border-color: var(--color-heading);
  color: var(--color-heading);
}

/* Warm Amber Sponsor / Lead-Gen Card */
.cta-card {
  background-color: var(--color-amber-bg);
  border: 1px solid var(--color-amber-border);
  border-radius: 6px;
  padding: 1.25rem 1.15rem;
  color: var(--color-amber-text);
}

.cta-card p {
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--color-amber-text);
}

.cta-card-btn-container {
  text-align: center;
  margin-top: 0.95rem;
}

.btn-sponsor {
  display: inline-block;
  background-color: #FCEAAF;
  color: var(--color-amber-title);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 5px;
  text-decoration: none !important;
  border: 1px solid var(--color-amber-border);
  transition: all 0.15s ease;
}

.btn-sponsor:hover {
  background-color: #FEDF7B;
  border-color: var(--color-amber-title);
}

/* Target Sectors Box in Sidebar */
.target-sectors-box {
  background: rgba(70, 59, 33, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem 1.05rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-subtle);
}

.target-sectors-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.45rem;
}

/* Inspection Shield & Readiness Checklist Card */
.readiness-card {
  background: rgba(70, 59, 33, 0.035);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.1rem 1.1rem;
}

.readiness-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.readiness-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.readiness-list li {
  padding-left: 0;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.readiness-list li:last-child {
  margin-bottom: 0;
}

.readiness-list li::before {
  content: none;
}

.readiness-list .chk {
  color: #1f6b2d;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.35;
  flex-shrink: 0;
}

/* Validated Ecosystem & Cloud Deployments */
.ecosystem-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem 1.05rem;
  background-color: transparent;
}

.ecosystem-header-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--color-text);
}

.ecosystem-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.eco-pill {
  display: inline-block;
  background: rgba(70, 59, 33, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Enterprise Support & Uptime SLA Strip */
.sla-card {
  background: rgba(196, 232, 199, 0.35);
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.sla-stat {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

.sla-sub {
  font-size: 0.77rem;
  color: var(--color-text-subtle);
  margin-top: 2px;
}

.sidebar-footer {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(70, 59, 33, 0.75);
}

.sidebar-footer div {
  margin-bottom: 0.4rem;
}

.sidebar-footer a {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-footer a:hover {
  color: #0b1e0e;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.6rem 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-legal-links a {
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: 1px dotted rgba(19, 51, 23, 0.4);
  transition: all 0.15s ease;
}

.footer-legal-links a:hover {
  border-bottom-style: solid;
  color: #0b1e0e;
}

.footer-legal-links .sep {
  color: rgba(70, 59, 33, 0.4);
  font-size: 0.75rem;
}

/* RIGHT COLUMN (The Directory Container) */
.main-content {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: visible;
  background-color: transparent;
}

.entry-section {
  padding: 2.1rem 2.35rem; /* Generous, airy, breathable publication padding */
  border-bottom: 1px solid var(--color-border);
  position: relative;
  scroll-margin-top: 3.5rem;
}

.entry-section:last-child {
  border-bottom: none;
}

.entry-header {
  margin-bottom: 0.65rem;
}

.entry-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--color-heading);
}

.entry-title a {
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 700;
}

.entry-title a:hover {
  text-decoration: underline;
}

.entry-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-core {
  background-color: #F5E0A0;
  color: var(--color-heading);
  border: 1px solid #D4BC82;
}

.badge-validation {
  background-color: #FEE698;
  color: var(--color-amber-title);
  border: 1px solid #ebd07b;
}

.badge-azure {
  background-color: #D3F5E7;
  color: #0c4731;
  border: 1px solid #a3e3c6;
}

.badge-sla {
  background-color: rgba(19, 51, 23, 0.08);
  color: var(--color-heading);
  border: 1px solid rgba(19, 51, 23, 0.2);
}

.badge-faq {
  background-color: rgba(19, 51, 23, 0.08);
  color: var(--color-heading);
  border: 1px solid rgba(19, 51, 23, 0.2);
}

/* Visual Workflows across Modules */
.triad-flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 1.15rem 0;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(70, 59, 33, 0.05);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFDF8;
  border: 1px solid var(--color-border);
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
  flex: 1 1 0;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(70, 59, 33, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flow-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(70, 59, 33, 0.08);
}

.flow-step-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-subtle);
  margin-top: 4px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  word-break: normal;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #107c41;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  padding: 0 1px;
}

/* Distinct Final Goal State in Workflows */
.flow-step.is-final {
  background: #143b19 !important;
  border-color: #0e2712 !important;
  color: #FFF5D6 !important;
  box-shadow: 0 2px 6px rgba(20, 59, 25, 0.25);
}

.flow-step.is-final .flow-step-sub {
  color: #c9e8cd !important;
  font-weight: 600;
}

/* Visual State Pipeline Tracker */
/* State progression track responsive wrap */
.state-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 1rem;
  background: rgba(70, 59, 33, 0.06);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
}

.state-step {
  color: rgba(70, 59, 33, 0.7);
}

.state-step.is-live {
  color: #FFF5D6;
  font-weight: 700;
  background: #143b19;
  padding: 2px 9px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* Feature Tag Badges Row */
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.feature-chip {
  background-color: rgba(70, 59, 33, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text);
}

/* HIGHLIGHT CARD 1: Solid Warm Amber Card (Matching Benny) */
.entry-highlight-amber {
  background-color: var(--color-amber-bg);
  border-top: 1px solid var(--color-amber-border);
  border-bottom: 1px solid var(--color-amber-border);
  position: relative;
  padding-right: 3.5rem; /* Generous clearance for vertical tab */
}

.entry-highlight-amber .entry-title a {
  color: var(--color-amber-title);
}

.entry-highlight-amber p {
  color: var(--color-amber-text);
}

.entry-vertical-tab-right {
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: -1px;
  width: 1.65rem;
  background-color: var(--color-amber-tab);
  border-left: 1px solid rgba(83, 75, 51, 0.2);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-vertical-tab-right span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-title);
}

/* HIGHLIGHT CARD 2: Dual-Tab Horizontal Gradient Card (Matching "Go With The Flow") */
.entry-highlight-gradient {
  background: var(--color-gradient-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-amber-border);
  position: relative;
  padding-left: 3rem;
  padding-right: 3rem;
}

.entry-vertical-tab-left {
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 1.65rem;
  background-color: var(--color-tab-left);
  border-right: 1px solid rgba(70, 59, 33, 0.2);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-vertical-tab-left span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
}

/* HIGHLIGHT CARD 3: Audit Shield Crisp Card (Section 6 Compliance & GAMP 5) */
.entry-highlight-compliance {
  background: linear-gradient(to right, #D8F7DF, #EFFEFA);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  padding-left: 3.5rem;
}

.entry-vertical-tab-compliance {
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 1.65rem;
  background-color: #8AE293;
  border-right: 1px solid var(--color-border);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-vertical-tab-compliance span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.entry-highlight-compliance .spec-table th {
  background-color: #AFECB8;
  border-color: #D4BC82;
  color: var(--color-heading);
  font-weight: 700;
}

.entry-highlight-compliance .spec-table td {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: #c0e8c4;
  color: var(--color-heading);
}

/* Tables */

/* Responsive Table Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.4);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.table-responsive .spec-table {
  min-width: 580px;
  margin-top: 0;
  border: none;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.spec-table th, .spec-table td {
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  background-color: var(--color-btn-green);
  font-weight: 600;
}

.entry-highlight-amber .spec-table th {
  background-color: #FEDF7B;
  border-color: rgba(83, 75, 51, 0.2);
  color: var(--color-amber-title);
}

.entry-highlight-amber .spec-table td {
  border-color: rgba(83, 75, 51, 0.2);
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--color-amber-text);
}

/* Ensure action column is centered with generous breathing space */
.entry-highlight-amber .spec-table th:last-child,
.entry-highlight-amber .spec-table td:last-child {
  text-align: center;
  vertical-align: middle;
  padding: 10px 14px;
}

.btn-table-cta {
  display: inline-block;
  background-color: #2d5431;
  color: #FFF5D6 !important;
  border: 1px solid #2d5431;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.77rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-table-cta:hover {
  background-color: #3A6B40;
}

.btn-table-cta-amber {
  display: inline-block;
  background-color: #594b1e;
  color: #FEE698 !important;
  border: 1px solid #594b1e;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.77rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-table-cta-amber:hover {
  background-color: #7A6626;
}

/* Minimal Editorial FAQ Accordion */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 0.85rem; /* Breathable, clear separation between FAQs */
  padding: 0.95rem 1.15rem;
  background: rgba(70, 59, 33, 0.03);
  transition: all 0.15s ease;
}

.faq-item:hover {
  background: rgba(70, 59, 33, 0.055);
  border-color: #DEC892;
}

.faq-item[open] {
  background: rgba(70, 59, 33, 0.05);
  border-color: var(--color-text-subtle);
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* (Legacy mobile query removed in favor of unified architecture at bottom) */


/* ==========================================================================
   GxP Operational Templates Marquee Stream & Lead Capture Modal
   ========================================================================== */

.gxp-templates-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem 1.05rem;
  background-color: var(--color-background-alt, #FFF9E8);
  box-sizing: border-box;
  width: 100%;
}

.gxp-badge-top {
  display: inline-block;
  background: rgba(70, 59, 33, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.gxp-templates-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-heading, #1E293B);
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.gxp-templates-desc {
  font-size: 0.78rem;
  color: var(--color-text);
  opacity: 0.85;
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
}

.gxp-marquee-viewport {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(232, 214, 164, 0.7);
  background: rgba(255, 255, 255, 0.55);
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

.gxp-marquee-track {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: gxpMarqueeUp 45s linear infinite;
  padding: 0.5rem 0.45rem;
}

.gxp-marquee-viewport:hover .gxp-marquee-track,
.gxp-marquee-viewport:focus-within .gxp-marquee-track {
  animation-play-state: paused;
}

@keyframes gxpMarqueeUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.gxp-stream-card {
  background: #FFFFFF;
  border: 1px solid rgba(232, 214, 164, 0.9);
  border-radius: 5px;
  padding: 0.65rem 0.7rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.gxp-stream-card:hover {
  border-color: #2563EB;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.gxp-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.format-badge {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 6px;
  text-transform: uppercase;
}

.format-docx {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.format-xlsx {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.std-badge {
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 1px 5px;
}

.gxp-stream-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.gxp-stream-meta {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.gxp-stream-dl-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #FAF5E8;
  border: 1px solid #E8D6A4;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #463B21;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.gxp-stream-dl-btn:hover {
  background: #463B21;
  color: #FFFFFF;
  border-color: #463B21;
}

.gxp-templates-footer {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.75rem;
}

.btn-all-templates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #463B21;
  color: #FFFFFF;
  border: 1px solid #463B21;
  border-radius: 5px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-all-templates:hover {
  background: #1E293B;
  border-color: #1E293B;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-zip-size {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ==========================================================================
   Lead Capture Modal
   ========================================================================== */

.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lead-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal-card {
  background: #FFFFFF;
  border-radius: 8px;
  max-width: 460px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #E2E8F0;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

.lead-modal-backdrop.is-open .lead-modal-card {
  transform: translateY(0);
}

.lead-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.lead-modal-close:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.lead-modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.lead-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.lead-modal-subtitle {
  font-size: 0.8rem;
  color: #64748B;
  margin: 0 0 1.25rem 0;
}

.lead-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lead-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.lead-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.lead-form-group label .req {
  color: #DC2626;
}

.lead-form-group input,
.lead-form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0F172A;
  background: #FFFFFF;
  box-sizing: border-box;
}

.lead-form-group input:focus,
.lead-form-group select:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lead-submit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #166534;
  color: #FFFFFF;
  border: 1px solid #15803D;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.5rem;
  font-family: inherit;
}

.lead-submit-btn:hover {
  background: #14532D;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}

.btn-subtext {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

.lead-modal-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: #DCFCE7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem auto;
}

.lead-modal-success h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.5rem 0;
}

.lead-modal-success p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.btn-done {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  padding: 0.55rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}



/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Architecture (Unified & Non-Interfering)
   ========================================================================== */

/* Tablet & Mobile Screens (<= 860px) */
@media (max-width: 860px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 0.85rem 3rem 0.85rem;
    gap: 1.5rem;
    overflow-x: hidden;
  }

  /* Unbox the sidebar so its child blocks flow naturally with main content */
  .sidebar {
    display: contents;
    position: static;
  }

  /* 1. Header: Brand Logo, Manifesto & Taglines at the Top */
  .brand-header {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* 2. Primary Content: Executive Overview & All 6 Core Modules */
  .main-content,
  .content-stream {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* 3. Navigation: Filter by Module */
  .filter-box {
    order: 3;
    width: 100%;
    box-sizing: border-box;
  }

  .filter-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px 2px;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
  }
  .filter-pills::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }

  .pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(70, 59, 33, 0.06);
  }

  /* 4. GxP Inspection Shield Card */
  .readiness-card {
    order: 4;
    width: 100%;
    box-sizing: border-box;
  }

  /* 5. Inspection-Ready in 3 Weeks CTA */
  .cta-card {
    order: 5;
    width: 100%;
    box-sizing: border-box;
  }

  /* 6. Plant Operations GxP Templates Download Pack */
  .gxp-templates-card {
    order: 6;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
  }

  .gxp-marquee-viewport {
    height: 300px;
  }

  /* 7. Validated Cloud & Identity */
  .ecosystem-card {
    order: 7;
    width: 100%;
    box-sizing: border-box;
  }

  /* 8. Target Facilities */
  .target-sectors-box {
    order: 8;
    width: 100%;
    box-sizing: border-box;
  }

  /* 9. SLA Card */
  .sla-card {
    order: 9;
    width: 100%;
    box-sizing: border-box;
  }

  /* 10. Final Footer: Contact, Legal & Copyright strictly anchored at the Bottom */
  .sidebar-footer {
    order: 10;
    width: 100%;
    box-sizing: border-box;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }

  /* Responsive Triad Flow: Clean vertical stacking on phones */
  .triad-flow {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
  }

  .flow-step {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 8px;
    font-size: 0.82rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.15rem auto;
    font-size: 1.1rem;
    line-height: 1;
  }

  /* Entry cells: breathable mobile padding */
  .entry-cell {
    padding: 1.35rem 1.1rem;
    box-sizing: border-box;
  }

  .entry-highlight-gradient {
    padding: 1.35rem 1.1rem;
    box-sizing: border-box;
  }

  .entry-title {
    font-size: 1.25rem;
  }

  .entry-vertical-tab-left,
  .entry-vertical-tab-right {
    display: none !important;
  }

  /* Lead Capture Modal mobile responsiveness */
  .lead-modal-card {
    width: 94%;
    max-width: 440px;
    padding: 1.25rem 1rem;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .lead-form-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .lead-modal-title {
    font-size: 1.05rem;
  }

  .lead-submit-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }
}

/* Extra small mobile screens (<= 480px) */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.65rem 2.5rem 0.65rem;
    gap: 1.25rem;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.82rem;
  }

  .entry-cell {
    padding: 1.15rem 0.85rem;
  }

  .entry-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .state-track {
    font-size: 0.74rem;
    padding: 5px 8px;
    gap: 0.25rem;
  }

  .feature-chips {
    gap: 0.3rem;
  }

  .chip {
    font-size: 0.72rem;
    padding: 2px 7px;
  }
}
