/* Juniper Access Management LLC - Editorial Systems Integrator & Knowledge Hub */
:root {
  --juniper-forest: #123833;
  --juniper-forest-dark: #0a211e;
  --juniper-forest-light: #1c524b;
  --juniper-amber: #c46522;
  --juniper-amber-hover: #ad5417;
  --juniper-amber-soft: rgba(196, 101, 34, 0.12);
  --juniper-text: #1a2423;
  --juniper-muted: #596b69;
  --juniper-bg: #faf9f5;
  --juniper-card: #ffffff;
  --juniper-border: #e3ded5;
  --juniper-border-dark: #c9c2b5;
  --sidebar-width: 280px;
  --juniper-radius: 4px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;
  color: var(--juniper-text);
  background-color: var(--juniper-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Accessibility Focus */
:focus-visible {
  outline: 3px solid var(--juniper-amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--juniper-forest);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--juniper-forest);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--juniper-text); }
a { color: var(--juniper-forest-light); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--juniper-amber); }

/* PERSISTENT LEFT SIDEBAR DOCK (Desktop) */
.sidebar-dock {
  width: var(--sidebar-width);
  background-color: var(--juniper-forest);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.1);
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
}

.sidebar-header {
  padding: 2rem 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand {
  text-decoration: none;
  display: block;
}
.sidebar-brand-name {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: block;
}
.sidebar-brand-sub {
  color: #a7c5c0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 4px;
}

.sidebar-nav {
  padding: 1.5rem 0;
  flex-grow: 1;
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 1.75rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-menu-item a:hover {
  background-color: rgba(255,255,255,0.06);
  color: #ffffff;
  border-left-color: var(--juniper-amber);
}
.sidebar-menu-item a.active {
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
  border-left-color: var(--juniper-amber);
  font-weight: 700;
}

.sidebar-contact-card {
  padding: 1.5rem 1.75rem;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: #e2e8f0;
}
.sidebar-contact-card p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.sidebar-contact-card strong {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}
.sidebar-contact-card a {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sidebar-contact-card a:hover {
  color: #ffffff;
}

/* MAIN CONTENT WRAPPER */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-top-bar {
  display: none;
  background-color: var(--juniper-forest);
  color: #ffffff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.mobile-nav-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Top Compliance Banner */
.juniper-disclaimer-strip {
  background-color: #f3efe6;
  border-bottom: 1px solid var(--juniper-border);
  padding: 8px 2rem;
  font-size: 0.82rem;
  color: var(--juniper-muted);
}

/* Container */
.content-container {
  max-width: 1080px;
  padding: 0 2.5rem;
  margin: 0 auto;
  width: 100%;
}

/* EDITORIAL HERO SECTION (Unique to Site 3) */
.editorial-hero {
  background-color: var(--juniper-bg);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--juniper-border);
}
.editorial-hero-tag {
  color: var(--juniper-amber);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}
.editorial-hero h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin-bottom: 1.5rem;
}
.editorial-hero p.summary-deck {
  font-size: 1.25rem;
  color: var(--juniper-muted);
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 2.5rem;
}
.editorial-cta-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-juniper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--juniper-radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-juniper-primary {
  background-color: var(--juniper-forest);
  color: #ffffff;
}
.btn-juniper-primary:hover {
  background-color: var(--juniper-forest-light);
  color: #fff;
  text-decoration: none;
}
.btn-juniper-amber {
  background-color: var(--juniper-amber);
  color: #ffffff;
}
.btn-juniper-amber:hover {
  background-color: var(--juniper-amber-hover);
  color: #fff;
  text-decoration: none;
}
.btn-juniper-outline {
  border-color: var(--juniper-forest);
  color: var(--juniper-forest);
  background: transparent;
}
.btn-juniper-outline:hover {
  background: #f0ece3;
  text-decoration: none;
}

/* 3-Pillar Lifecycle Strip (Unique component) */
.lifecycle-strip {
  margin-top: 3.5rem;
  background: #ffffff;
  border: 1px solid var(--juniper-border);
  border-radius: var(--juniper-radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.lifecycle-pillar {
  padding: 1.75rem;
  border-right: 1px solid var(--juniper-border);
}
.lifecycle-pillar:last-child {
  border-right: none;
}
.pillar-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--juniper-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}
.lifecycle-pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.lifecycle-pillar p {
  font-size: 0.9rem;
  color: var(--juniper-muted);
  margin: 0;
}

/* Sections */
.juniper-section {
  padding: 4.5rem 0;
}
.juniper-section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--juniper-border);
  border-bottom: 1px solid var(--juniper-border);
}

/* Editorial 2-Column Split: Reading column (68%) + Resource Rail (32%) */
.editorial-split-layout {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 3.5rem;
}
.reading-column h2 {
  margin-bottom: 1.25rem;
}
.reading-column p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Sticky Documentation & Resource Rail */
.resource-rail {
  background: #f8f6f0;
  border: 1px solid var(--juniper-border);
  border-radius: var(--juniper-radius);
  padding: 1.75rem;
  align-self: start;
  position: sticky;
  top: 2rem;
}
.resource-rail h3 {
  font-size: 1.15rem;
  color: var(--juniper-forest);
  border-bottom: 2px solid var(--juniper-amber);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.resource-links-list {
  list-style: none;
  font-size: 0.9rem;
}
.resource-links-list li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--juniper-border);
}
.resource-links-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.resource-tag-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  background: var(--juniper-amber-soft);
  color: var(--juniper-amber);
  padding: 2px 6px;
  font-weight: 700;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 4px;
}

/* Services Matrix / Table */
.services-matrix-card {
  background: #ffffff;
  border: 1px solid var(--juniper-border);
  border-radius: var(--juniper-radius);
  padding: 2.2rem;
  margin-bottom: 2rem;
}
.services-matrix-card h3 {
  font-size: 1.4rem;
  color: var(--juniper-forest);
}

/* Forms */
.juniper-form-panel {
  background: #ffffff;
  border: 1px solid var(--juniper-border);
  border-radius: var(--juniper-radius);
  padding: 2.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--juniper-forest);
  margin-bottom: 0.35rem;
}
.form-field-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--juniper-border-dark);
  border-radius: var(--juniper-radius);
  background: #fff;
}
.form-field-input:focus {
  border-color: var(--juniper-forest);
  outline: none;
}
.juniper-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--juniper-radius);
  font-size: 0.92rem;
  display: none;
}
.juniper-feedback.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.juniper-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Minimalist Editorial Footer */
.juniper-footer {
  background-color: var(--juniper-forest);
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  border-top: 3px solid var(--juniper-amber);
  font-size: 0.9rem;
}
.footer-row-split {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-disclaimer-editorial {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Editorial Split Grids */
.juniper-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  body {
    flex-direction: column;
  }
  .juniper-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar-dock {
    display: none;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    width: 280px;
    box-shadow: 4px 0 16px rgba(0,0,0,0.3);
  }
  .sidebar-dock.open {
    display: flex;
  }
  .main-wrapper {
    margin-left: 0;
  }
  .mobile-top-bar {
    display: flex;
  }
  .editorial-split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lifecycle-strip {
    grid-template-columns: 1fr;
  }
  .lifecycle-pillar {
    border-right: none;
    border-bottom: 1px solid var(--juniper-border);
  }
  .lifecycle-pillar:last-child {
    border-bottom: none;
  }
  .footer-row-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  h1, .editorial-hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  h2 {
    font-size: 1.35rem;
  }
  .editorial-hero {
    padding: 2.5rem 0 2rem;
  }
  .editorial-hero p.summary-deck {
    font-size: 1rem;
  }
  .editorial-hero-tag {
    font-size: 0.72rem;
  }
  .editorial-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .editorial-cta-row .btn-juniper {
    width: 100%;
    text-align: center;
  }
  .content-container {
    padding: 0 1.25rem;
  }
  .juniper-disclaimer-strip {
    padding: 8px 1.25rem;
  }
}
