/* =================================================================
   1. GOOGLE FONT IMPORT & CORE STYLES
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111116;
  background-color: #ffffff;
  line-height: 1.5;
  padding-top: 70px;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* =================================================================
   2. STICKY TOP NAVIGATION BAR
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(240, 242, 245, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(218, 222, 229, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  z-index: 10000;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-square-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  border-radius: 6px;
}

.logo-square-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b132b;
}

.logo-text strong {
  color: #e66179;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444450;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e66179;
}

.nav-link.home-link {
  color: #e66179;
}

.nav-link.home-link:hover {
  color: #d14d65;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(218, 222, 229, 0.8);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 10001;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444450;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: #fdf3f2;
  color: #e66179;
}

.nav-cta {
  background: #e66179;
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: #d14d65;
  transform: translateY(-1px);
}

/* =================================================================
   3. SLEEK 2-COLUMN HERO & BOTTOM CARDS (HOME LAYOUT)
   ================================================================ */
.standard-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 30px;
}

.hero-split-section {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 40px;
}

.page-kicker {
  margin: 0 0 0.4rem;
  color: #e66179 !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text-column h1 {
  margin-top: 0;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #08080c;
  margin-bottom: 16px;
  max-width: 720px;
}

.hero-text-column p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #444450;
  margin-bottom: 12px;
}

.hero-action-column {
  display: flex;
  flex-direction: column;
}

.callout-box {
  background: #f8fafc;
  border-top: 4px solid #e66179;
  border-left: 1px solid rgba(220, 225, 235, 0.8);
  border-right: 1px solid rgba(220, 225, 235, 0.8);
  border-bottom: 1px solid rgba(220, 225, 235, 0.8);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.callout-box h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0b132b;
}

.callout-box p {
  font-size: 0.9rem;
  color: #555560;
  margin-bottom: 16px;
  line-height: 1.5;
}

.home-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.home-card {
  background: #ffffff;
  border-top: 3px solid #e66179;
  border-left: 1px solid rgba(220, 225, 235, 0.8);
  border-right: 1px solid rgba(220, 225, 235, 0.8);
  border-bottom: 1px solid rgba(220, 225, 235, 0.8);
  border-radius: 10px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(230, 97, 121, 0.1);
  border-color: #e66179;
}

.home-card h3 {
  margin: 0 0 8px 0;
  color: #003366;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-card p {
  margin: 0;
  color: #555560;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* =================================================================
   4. EDGE-TO-EDGE FULL-COLOR SCROLLING LOGO TICKER
   ================================================================ */
.logo-ticker {
  margin-top: 40px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: transparent;
  border-top: 1px solid rgba(220, 225, 235, 0.8);
  border-bottom: 1px solid rgba(220, 225, 235, 0.8);
  padding: 20px 0;
}

.ticker-header {
  text-align: center;
  margin-top: 10px;
}

.ticker-header p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.logo-ticker-track {
  display: flex;
  width: max-content;
  gap: 60px;
  align-items: center;
  animation: scrollTicker 45s linear infinite;
  margin-bottom: 6px;
}

.logo-ticker-track img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.logo-ticker-track img:hover {
  opacity: 1;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =================================================================
   5. BUTTON STYLING
   ================================================================ */
.button-form-span {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.button-form,
.button-form-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin: 0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.button-form {
  background-color: #004685;
  border: 1px solid #003366;
  color: white;
}

.button-form-request {
  background-color: #ffffff;
  border: 2px solid #e66179;
  color: #111116;
}

.button-form:hover,
.button-form:focus {
  background-color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 70, 133, 0.25);
}

.button-form-request:hover,
.button-form-request:focus {
  background-color: #fdf3f2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 97, 121, 0.15);
}

/* =================================================================
   6. FOOTER (IN-FLOW DOCUMENT FOOTER) & RESPONSIVE BREAKPOINTS
   ================================================================ */
/* =================================================================
   6. FOOTER (IN-FLOW DOCUMENT FOOTER) & RESPONSIVE BREAKPOINTS
   ================================================================ */
/* =================================================================
   6. FOOTER (IN-FLOW DOCUMENT FOOTER) & RESPONSIVE BREAKPOINTS
   ================================================================ */
#footer {
  background: #ffffff !important;
  color: #444450 !important;
  width: 100% !important;
  position: relative !important;
  margin-top: 30px !important;
  padding: 16px 0 !important;
  border-top: none !important;
}

#footer .footer-container {
  max-width: 1320px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

#footer .footer-container p {
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 0.68rem !important; /* Made significantly smaller */
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

#footer .footer-links {
  display: flex !important;
  gap: 16px !important;
}

#footer .footer-links a {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 0.68rem !important; /* Made significantly smaller */
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
  transition: color 0.2s ease !important;
}

#footer .footer-links a:hover {
  color: #e66179 !important;
}

@media (max-width: 1024px) {
  .hero-split-section {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }
  .callout-box {
    flex: unset;
  }
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  
  .header-nav {
    gap: 12px;
  }
  
  .nav-link:not(.nav-cta) {
    display: none; 
  }

  .standard-page {
    margin: 20px auto;
    padding: 0 20px;
  }

  .home-grid {
    grid-template-columns: 1fr !important;
  }

  #footer .footer-container {
    padding: 0 20px !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}

/* =================================================================
   7. WIKI MANUAL LAYOUT & CARDS (UNIFIED STYLESHEET)
   ================================================================ */
.manual-layout {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 30px 48px 60px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Sidebar slot positioned safely below the fixed top navbar */
.sidebar-slot {
  flex: 0 0 320px;
  width: 320px;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  max-height: calc(100vh - 140px);
}

.wiki-sidebar {
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Inner container handles internal scrolling with top padding cleared for the sticky title */
.wiki-sidebar-inner {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 225, 235, 0.9);
  border-radius: 14px;
  padding: 0 1.2rem 1.2rem 1.2rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b8b8b8 transparent;
}

.wiki-sidebar-inner::-webkit-scrollbar {
  width: 8px;
  display: block; 
}

.wiki-sidebar-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.wiki-sidebar-inner::-webkit-scrollbar-thumb {
  background-color: #b8b8b8;
  border-radius: 4px;
}

.wiki-sidebar-inner::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

/* Title header is pinned at the top with solid white background and bottom border */
.wiki-sidebar-title {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 1.2rem 0 0.75rem 0;
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0b132b;
  border-bottom: 1px solid rgba(220, 225, 235, 0.8);
  z-index: 10;
}

.wiki-group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111116;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
}

.wiki-group-toggle:hover {
  background: #fff4f2;
  color: #e66179;
}

.wiki-group-toggle::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.wiki-group-toggle.active::after {
  content: "−";
}

.wiki-group-links {
  display: none;
  padding: 0 0 0.5rem 0.25rem;
}

.wiki-group-links.open {
  display: block;
}

.wiki-link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #333340;
}

.wiki-link:hover {
  background: #fff4f2;
  color: #e66179;
}

.wiki-sublink {
  padding-left: 1.45rem;
  font-size: 0.88rem;
  color: #555560;
}

.wiki-subsub-link {
  padding-left: 2.5rem;
  font-size: 0.82rem;
  color: #777780;
}

.manual-content {
  flex: 1;
  max-width: 960px;
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 4px solid #e66179;
  border-left: 1px solid rgba(220, 225, 235, 0.9);
  border-right: 1px solid rgba(220, 225, 235, 0.9);
  border-bottom: 1px solid rgba(220, 225, 235, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.manual-content h1 {
  margin-top: 0;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: #08080c;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.manual-content h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b132b;
  border-bottom: 1px solid #eaeef2;
  padding-bottom: 0.5rem;
}

.manual-content h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111116;
}

.manual-content p,
.manual-content li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #444450;
}

.manual-content ul {
  margin-left: 1.25rem;
}

.manual-content a {
  color: #004685;
  text-decoration: underline;
}

.manual-content a:hover {
  color: #e66179;
}

.manual-image {
  margin: 2rem 0;
}

.manual-image img,
.manual-content img {
  direction: ltr;
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.manual-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.35;
}

.manual-table th,
.manual-table td {
  border: 1px solid #d0d7de;
  padding: 0.65rem 0.8rem;
  vertical-align: top;
  text-align: left;
}

.manual-table th {
  font-weight: 700;
  background: #f6f8fa;
  color: #0b132b;
}

/* =================================================================
   8. EXTREME ULTRA-WIDE / IMMENSE MONITOR SCALING (EXPANDED & TALLER)
   ================================================================ */
@media (min-width: 1600px) {
  /* Blow out containers to fill 94% of the immense screen horizontally */
  .standard-page,
  .manual-layout,
  .header-container,
  #footer .footer-container {
    max-width: 94% !important;
  }

  /* Make the top menu bar padding and container breathe much more */
  .header-container {
    padding: 0 40px !important;
  }

  .header-logo img {
    height: 44px !important;
  }

  .logo-text {
    font-size: 1.45rem !important;
  }

  .nav-link {
    font-size: 1.05rem !important;
  }

  /* Expand vertical and horizontal spacing on the main page to eliminate gaps */
  .standard-page {
    padding: 80px 4vw;
  }

  .hero-split-section {
    gap: 60px;
    margin-bottom: 60px;
  }

  .hero-text-column h1 {
    font-size: 3.1rem !important;
    max-width: 900px;
  }

  .hero-text-column p {
    font-size: 1.25rem !important;
    line-height: 1.75;
  }

  .callout-box {
    padding: 36px !important;
  }

  .callout-box h2 {
    font-size: 1.4rem !important;
  }

  .callout-box p {
    font-size: 1.05rem !important;
  }

  .home-grid {
    gap: 28px;
    margin-top: 40px;
  }

  .home-card {
    padding: 32px 28px !important;
  }

  .home-card h3 {
    font-size: 1.35rem !important;
  }

  .home-card p {
    font-size: 1.05rem !important;
    line-height: 1.6;
  }

  /* Expand manual layout content widths and text */
  .manual-layout {
    padding: 50px 4vw 90px;
    gap: 50px;
  }

  .sidebar-slot {
    flex: 0 0 380px !important;
    width: 380px !important;
  }

  .wiki-sidebar-inner {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
  }

  .wiki-sidebar-title {
    font-size: 1.35rem !important;
    padding: 1.5rem 0 1rem 0 !important;
  }

  .wiki-link, .wiki-group-toggle {
    font-size: 1.05rem !important;
    padding: 0.6rem 0.85rem !important;
  }

  .manual-content {
    max-width: 78% !important;
    padding: 4rem 4.5rem !important;
  }

  .manual-content h1 {
    font-size: 3.1rem !important;
  }

  .manual-content h2 {
    font-size: 2rem !important;
  }

  .manual-content p,
  .manual-content li {
    font-size: 1.22rem !important;
    line-height: 1.8;
  }

  /* Scale up the logo ticker at the bottom */
  .logo-ticker {
    margin-top: 60px;
    padding: 30px 0;
  }

  .logo-ticker-track img {
    height: 52px !important;
  }
}


.publications-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 24px 0;
  max-width: 650px;
}

.publications-controls input,
.publications-controls select {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.publication-entry {
  padding: 18px 0;
  border-bottom: 1px solid #e9ecef;
  line-height: 1.7;
}

.publication-entry h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.publication-entry p {
  margin: 5px 0;
}

.publication-entry a {
  color: #b00020;
  text-decoration: underline;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* Sidebar Header Link & Hover State */
.sidebar-header h3 a,
.sidebar-title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-header h3 a:hover,
.sidebar-title a:hover {
  color: #d93856; /* PennCNB brand accent color */
  text-decoration: underline;
}