/* ==========================================================================
   Divyanshi Lifesciences Pvt. Ltd. – Editorial Corporate Design System
   Version: 2.0.0
   Precision Swiss-Editorial Pharmaceutical Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

:root {
  --bg-page: #FAFAF7;
  --text-main: #14181B;
  --text-muted: #4A5258;
  --text-subtle: #707880;
  
  --primary-teal: #0F4C4A;
  --primary-dark: #082928;
  --primary-light: #EBF2F1;
  --primary-wash: #F2F7F6;
  --primary-hover: #14615E;
  
  --accent-amber: #B5651D;
  --accent-dark: #8C430B;
  --accent-light: #FBF4EE;
  
  --border-color: #D6DAD4;
  --border-subtle: #E5E9E3;
  --border-hairline: #ECEFEA;
  
  --panel-bg: #F0F3EE;
  --panel-white: #FFFFFF;
  --panel-contrast: #092C2B;
  --focus-ring: #0F4C4A;

  /* Typography */
  --font-serif: "Source Serif 4", -apple-system-headline, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Geometry */
  --radius-pill: 9999px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Header & Navigation */
  --header-height: 72px;
  --header-height-shrink: 62px;
  --max-content-width: 1240px;
  --ease-custom: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-custom);
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent-amber);
}

/* ==========================================================================
   Typography & Editorial Hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.65rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}
p.lead {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.35rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

a {
  color: var(--primary-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-custom), text-decoration-color 0.2s;
}
a:hover {
  color: var(--primary-hover);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}

/* ==========================================================================
   Layout Containers & Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.site-main {
  flex: 1 0 auto;
  padding-top: var(--header-height);
}

.section {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  position: relative;
}
.section-sm {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-border-top {
  border-top: 1px solid var(--border-color);
}
.section-border-bottom {
  border-bottom: 1px solid var(--border-color);
}
.bg-panel {
  background-color: var(--panel-bg);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
}

/* ==========================================================================
   Pill Motif, Badges & Interactive Elements
   ========================================================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background-color: var(--panel-white);
  color: var(--text-muted);
  width: fit-content;
  line-height: 1.2;
}

.pill-badge-teal {
  background-color: var(--primary-light);
  border-color: rgba(15, 76, 74, 0.25);
  color: var(--primary-dark);
}

.pill-badge-amber {
  background-color: var(--accent-light);
  border-color: rgba(181, 101, 29, 0.3);
  color: var(--accent-dark);
}

.pill-badge-manufactured {
  background-color: #E6F3EA;
  border-color: #B4DFC4;
  color: #145E2E;
  font-weight: 600;
}

.pill-badge-distributed {
  background-color: #F8F1EB;
  border-color: #DFC0AA;
  color: #8C430B;
  font-weight: 600;
}

.live-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #15803D;
  box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(21, 128, 61, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-custom);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary-teal);
  color: #FFFFFF !important;
  border-color: var(--primary-teal);
  box-shadow: 0 2px 6px rgba(15, 76, 74, 0.2);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(8, 41, 40, 0.28);
}

.btn-secondary {
  background-color: var(--panel-white);
  color: var(--primary-teal);
  border-color: var(--border-color);
  box-shadow: 0 1px 3px rgba(20, 24, 27, 0.04);
}
.btn-secondary:hover {
  background-color: var(--panel-bg);
  border-color: var(--primary-teal);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  min-height: 38px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Header & Global Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(250, 250, 247, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: height 0.25s var(--ease-custom), background-color 0.25s;
}

.site-header.is-scrolled {
  height: var(--header-height-shrink);
  background-color: rgba(250, 250, 247, 0.98);
  box-shadow: 0 2px 14px rgba(20, 24, 27, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 24px);
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.1vw + 0.5rem, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--primary-dark);
  white-space: nowrap;
}

/* Desktop Nav */
.nav-desktop-wrap {
  display: none;
}
@media (min-width: 1024px) {
  .nav-desktop-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 20px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
}

.nav-link {
  font-size: clamp(0.8125rem, 0.75vw + 0.1rem, 0.9375rem);
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 3px;
  position: relative;
  transition: color 0.2s var(--ease-custom);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary-teal);
}
.nav-link[aria-current="page"] {
  color: var(--primary-teal);
  font-weight: 600;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-teal);
  border-radius: var(--radius-pill);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Trade Enquiry Button */
.header-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF !important;
  background-color: var(--primary-teal);
  border: 1px solid var(--primary-teal);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  height: 38px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 76, 74, 0.18);
  transition: all 0.2s var(--ease-custom);
  cursor: pointer;
  line-height: 1;
}

.header-cta-link:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(8, 41, 40, 0.25);
}

.header-cta-link:active {
  transform: translateY(0);
}

.header-cta-arrow {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s var(--ease-custom);
}
.header-cta-link:hover .header-cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 599px) {
  .header-cta-link {
    padding: 6px 12px;
    font-size: 0.8rem;
    height: 34px;
    gap: 4px;
  }
}
@media (max-width: 420px) {
  .header-cta-link {
    display: none;
  }
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  flex-shrink: 0;
  transition: border-color 0.2s, background-color 0.2s;
}
.menu-toggle-btn:hover {
  border-color: var(--primary-teal);
  background-color: var(--panel-bg);
}
@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

.hamburger-icon {
  width: 22px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-custom), opacity 0.2s;
}

.menu-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Mobile Drawer Navigation
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 24, 27, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-custom);
}
.mobile-nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 420px);
  max-height: 100dvh;
  background-color: var(--bg-page);
  z-index: 1020;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-custom);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(20, 24, 27, 0.08);
  overflow-y: auto;
  border-left: 1px solid var(--border-color);
}
.mobile-nav-drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  min-height: var(--header-height);
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-main);
}

.drawer-body {
  padding: 24px;
  flex: 1 1 auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  min-height: 44px;
}
.mobile-nav-link[aria-current="page"] {
  color: var(--primary-teal);
  font-weight: 600;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--panel-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-email-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.drawer-email-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* ==========================================================================
   Page Headers (Editorial Band)
   ========================================================================== */
.page-header-band {
  background-color: var(--panel-bg);
  border-bottom: 1px solid var(--border-color);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.page-header-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .page-header-grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.page-header-content {
  max-width: 760px;
}

.page-header-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.page-header-svg {
  width: clamp(90px, 14vw, 150px);
  height: clamp(90px, 14vw, 150px);
  color: var(--primary-teal);
  opacity: 0.85;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Section & Master Specimen Panel (Home)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-copy {
  max-width: 660px;
}

.hero-headline-wrap {
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.5vw + 1rem, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary-dark);
}

.hero-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--primary-teal);
}

.hero-subhead {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.28rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 54ch;
}

.hero-credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Master Specimen Card (Right Hero) */
.hero-specimen-panel {
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(20, 24, 27, 0.05);
  overflow: hidden;
}

.specimen-header-bar {
  background-color: var(--panel-contrast);
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.specimen-body {
  padding: 24px;
}

.specimen-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.telemetry-item-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ==========================================================================
   Editorial Monograph Index (What We Formulate)
   ========================================================================== */
.editorial-index-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (min-width: 992px) {
  .editorial-index-wrap {
    grid-template-columns: 320px 1fr;
  }
}

.editorial-sticky-col {
  position: relative;
}
@media (min-width: 992px) {
  .editorial-sticky-col {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    height: fit-content;
  }
}

.monograph-index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.monograph-entry {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease-custom);
}
.monograph-entry:hover {
  background-color: rgba(240, 243, 238, 0.4);
  padding-left: 12px;
}

.monograph-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-amber);
}

.monograph-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.monograph-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.monograph-arrow {
  color: var(--primary-teal);
  font-size: 1.25rem;
  padding-right: 12px;
  transition: transform 0.2s var(--ease-custom);
}
.monograph-entry:hover .monograph-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .monograph-entry {
    grid-template-columns: 44px 1fr;
  }
  .monograph-arrow {
    display: none;
  }
}

/* ==========================================================================
   Sequential Formulation Ledger (Manufacturing Process)
   ========================================================================== */
.timeline-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 3rem 0;
}
@media (min-width: 992px) {
  .timeline-process {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

.timeline-step {
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
  transition: all 0.2s var(--ease-custom);
  display: flex;
  flex-direction: column;
}
.timeline-step:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 76, 74, 0.08);
}

.timeline-step-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--accent-amber);
  margin-bottom: 8px;
  line-height: 1;
}

.timeline-step-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1 1 auto;
}

/* ==========================================================================
   Engineering Telemetry Console (Technology)
   ========================================================================== */
.telemetry-console {
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(20, 24, 27, 0.04);
}

.console-header {
  background-color: var(--panel-contrast);
  color: #FFFFFF;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-color);
}
@media (min-width: 860px) {
  .console-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.console-col {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}
.console-col:last-child {
  border-right: none;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.console-brand h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.console-telemetry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

/* ==========================================================================
   Corporate Charter & Technical Blueprint Panels (Replaces ugly dashed boxes)
   ========================================================================== */
.charter-card {
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 4px 20px rgba(20, 24, 27, 0.04);
}

.charter-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.spec-schematic-box {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.schematic-annotation {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Responsive Pharma Table & Product Cards (No Horizontal Scroll)
   ========================================================================== */
.spec-table-wrap {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--panel-white);
  margin: 1.5rem 0;
  overflow: hidden; /* Desktop: NO horizontal scrollbar! */
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.spec-table th {
  background-color: var(--panel-bg);
  font-family: var(--font-sans);
  font-size: 0.78125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tbody tr:hover {
  background-color: rgba(240, 243, 238, 0.5);
}

/* Desktop column widths - strictly 100% fixed layout, no overflow */
@media (min-width: 992px) {
  .responsive-pharma-table {
    table-layout: fixed;
    width: 100%;
  }
  .responsive-pharma-table th,
  .responsive-pharma-table td {
    padding: 12px 10px;
    font-size: 0.875rem;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .responsive-pharma-table th.th-product,
  .responsive-pharma-table td.td-product-name {
    width: 29%;
  }
  .responsive-pharma-table th.th-category,
  .responsive-pharma-table td.td-category {
    width: 13%;
  }
  .responsive-pharma-table th.th-dosage,
  .responsive-pharma-table td.td-dosage {
    width: 9%;
  }
  .responsive-pharma-table th.th-packs,
  .responsive-pharma-table td.td-packs {
    width: 17%;
  }
  .responsive-pharma-table th.th-rx,
  .responsive-pharma-table td.td-rx {
    width: 7%;
  }
  .responsive-pharma-table th.th-supply,
  .responsive-pharma-table td.td-supply {
    width: 12%;
  }
  .responsive-pharma-table th.th-spec,
  .responsive-pharma-table td.td-action {
    width: 13%;
    text-align: right;
  }
  .btn-product-spec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
  }
  .btn-product-spec:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: #ffffff;
  }
}

/* Tablet & Mobile Card Transformation (< 992px) */
@media (max-width: 991px) {
  .spec-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
    margin: 1rem 0;
  }
  .responsive-pharma-table thead {
    display: none;
  }
  .responsive-pharma-table,
  .responsive-pharma-table tbody,
  .responsive-pharma-table tr,
  .responsive-pharma-table td {
    display: block;
    width: 100%;
  }
  .responsive-pharma-table tr {
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--panel-white);
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(20, 24, 27, 0.03);
  }
  .responsive-pharma-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    gap: 12px;
  }
  .responsive-pharma-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    flex-shrink: 0;
  }

  /* Product name cell on card (Top) */
  .responsive-pharma-table td.td-product-name {
    display: block;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--border-color);
  }
  .responsive-pharma-table td.td-product-name::before {
    display: none;
  }
  .responsive-pharma-table td.td-product-name a {
    font-size: 1.18rem;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
  }

  .responsive-pharma-table td.td-supply {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Specification action button at bottom of card */
  .responsive-pharma-table td.td-action {
    display: block;
    border-bottom: none;
    padding-top: 14px;
    padding-bottom: 2px;
  }
  .responsive-pharma-table td.td-action::before {
    display: none;
  }
  .responsive-pharma-table td.td-action .btn-product-spec {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 42px;
    background-color: var(--panel-bg);
    border: 1px solid var(--primary-teal);
    color: var(--primary-dark);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s var(--ease-custom);
  }
  .responsive-pharma-table td.td-action .btn-product-spec:hover {
    background-color: var(--primary-teal);
    color: #FFFFFF;
  }
}

/* ==========================================================================
   Filter Controls
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 2rem;
  background-color: var(--panel-bg);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 8px 16px 8px 40px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-main);
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--primary-teal);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-chip {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s var(--ease-custom);
  min-height: 36px;
}
.filter-chip:hover {
  border-color: var(--primary-teal);
  color: var(--primary-dark);
}
.filter-chip.is-active {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #FFFFFF;
}

/* ==========================================================================
   Careers Cards & Details
   ========================================================================== */
.job-card {
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s var(--ease-custom);
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(20, 24, 27, 0.05);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.job-id-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-amber);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.job-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 4px 0 0;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.apply-box {
  background-color: var(--primary-light);
  border: 1px solid rgba(15, 76, 74, 0.25);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 36px);
  margin-top: 2.5rem;
}

.email-display-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 8px 14px;
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 8px 0 16px;
}

/* ==========================================================================
   Product Detail Grid & Regulatory Notice
   ========================================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.rx-notice-box {
  background-color: #FEF7F0;
  border-left: 4px solid var(--accent-amber);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #7D3F08;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.otc-notice-box {
  background-color: #F0F7F4;
  border-left: 4px solid var(--primary-teal);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--panel-bg);
  border-top: 1px solid var(--border-color);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary-teal);
}

.footer-corp-details {
  font-size: 0.875rem;
  line-height: 1.6;
}

.regulatory-footer-notice {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-subtle);
  border-left: 2px solid var(--border-color);
  padding-left: 12px;
  margin: 1.5rem 0 0;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}
@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin-left: auto;
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 8px 30px rgba(20, 24, 27, 0.12);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease-custom);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ==========================================================================
   Utilities & Motion
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-teal { color: var(--primary-teal); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }
.text-serif { font-family: var(--font-serif); }
.text-mono { font-family: var(--font-mono); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-custom), transform 0.6s var(--ease-custom);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==========================================================================
   Editorial Card & Product Detail Trade Supply Components
   ========================================================================== */
.editorial-card {
  background-color: var(--panel-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 16px rgba(15, 76, 74, 0.04);
}
@media (max-width: 640px) {
  .editorial-card {
    padding: 1.5rem 1.25rem;
  }
}
.editorial-card h3,
.editorial-card h4 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.editorial-card p {
  line-height: 1.6;
}

.trade-supply-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 16px rgba(15, 76, 74, 0.04);
}
@media (max-width: 640px) {
  .trade-supply-card {
    padding: 1.5rem 1.25rem;
  }
}
.trade-supply-card h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-teal);
  letter-spacing: -0.01em;
}
.trade-supply-card p.trade-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.trade-supply-card .trade-info-list {
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.trade-supply-card .trade-info-list strong {
  color: var(--text-color);
}
.trade-supply-card .btn-trade-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background-color: var(--primary-teal);
  color: #ffffff;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.trade-supply-card .btn-trade-request:hover {
  background-color: #0b3938;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 76, 74, 0.2);
  color: #ffffff;
}
.trade-supply-card .trade-email-note {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-align: center;
  margin: 0;
}
.trade-supply-card .trade-email-note span {
  font-family: var(--font-mono);
  color: var(--primary-dark);
  font-weight: 600;
}
