/* InterGenOS Wiki — brand layer. Self-hosted, zero external assets. */

@font-face {
  font-family: 'InterVar';
  src: url('assets/Inter-roman.var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --igos-bg: #04101f;
  --igos-accent: #0099ff;
}

html, body, .content, .menu-title, .sidebar {
  font-family: 'InterVar', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Ecosystem nav — slim bar at the top of the landing content */
.igos-ecosystem-nav {
  display: flex; gap: 1.7rem; align-items: center; flex-wrap: wrap;
  font-size: 1.02rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.5rem 0 1.1rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.igos-ecosystem-nav a { color: var(--igos-accent); text-decoration: none; font-weight: 700; }
.igos-ecosystem-nav a:hover { text-decoration: underline; }
.igos-ecosystem-nav a.igos-here { color: #fff; border-bottom: 2px solid var(--igos-accent); padding-bottom: 2px; }
.igos-ecosystem-nav .igos-sep { color: rgba(255,255,255,0.28); }

/* Hero banner */
.igos-hero {
  position: relative; border-radius: 10px; overflow: hidden;
  background-image: linear-gradient(rgba(4,16,31,0.45), rgba(4,16,31,0.82)), url('assets/pulse-hero.png');
  background-size: cover; background-position: center;
  margin: 0 0 2rem; min-height: 300px;
}
.igos-hero img.igos-wordmark {
  position: absolute; top: 1rem; left: 1.25rem;
  width: min(190px, 45%); height: auto; margin: 0;
}
.igos-hero .igos-doctitle {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15%;
  display: flex; align-items: center; justify-content: flex-start;
  margin: 0; padding: 0 1.25rem;
  color: #fff; font-weight: 800; text-align: left;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem); letter-spacing: 0.01em; line-height: 1.2;
}

/* Left-align the book title in the top bar (was centered) */
.menu-title { text-align: left !important; margin-left: 0.5rem; }

/* Responsive tables. On narrow screens (phones) wide comparison tables overflow
   the viewport. First reclaim horizontal room by trimming the generous default
   cell padding (and nudging the table font down a touch) so a 3-column table has
   a real chance of fitting without a slider; the horizontal scroll stays only as
   a fallback for tables still too wide. Desktop is untouched. */
@media (max-width: 800px) {
  .content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
  }
  .content table th,
  .content table td {
    padding: 0.3rem 0.45rem;   /* was the theme default (~3px 20px) — trims the dead space */
  }
}

/* Image lightbox — click a screenshot/figure to view it full-size in an in-page
   overlay (no navigating away). Behaviour lives in lightbox.js (additional-js);
   these are the styles it hooks. */
.content img.igos-zoomable { cursor: zoom-in; }

.igos-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2.5vmin;
  background: rgba(4, 16, 31, 0.92);   /* --igos-bg at 92% — the navy backdrop */
  cursor: zoom-out;
}
.igos-lightbox-overlay[hidden] { display: none; }   /* override the flex display when closed */

.igos-lightbox-img {
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.igos-lightbox-caption {
  max-width: 80ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

/* Lock background scroll while the overlay is open. */
html.igos-lightbox-open { overflow: hidden; }
