/* ─────────────────────────────────────────────────────────────────────
   Tech Ops marketing site — shared stylesheet

   DEPLOY: upload to public_html/styles.css on Bluehost.

   Used by:
     public_html/index.html         (home)
     public_html/features.html      (feature rundown)
     public_html/screenshots.html   (gallery)
     public_html/about.html         (about / contact)
   ───────────────────────────────────────────────────────────────────── */

/* App-matched typefaces: Rajdhani (aerospace UI) + Share Tech Mono (data).
   Same faces the Tech Ops app ships, so the site reads as its kin. */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg:           #F4F6F9;
  --bg-alt:       #ECF0F4;
  --card:         #FFFFFF;
  --border:       #D3DAE4;   /* cooler hairline — "printed schematic" */
  --text:         #1B2230;
  --text-muted:   #6A7587;
  --text-dim:     #95A0B2;
  --accent-cyan:  #008899;
  --accent-cyan-soft: rgba(0, 136, 153, 0.12);
  --accent-orange:#E55A2B;
  --accent-orange-soft: rgba(229, 90, 43, 0.12);
  --success:      #38A740;
  --success-soft: rgba(56, 167, 64, 0.12);
  --danger:       #C43C3C;
  --ok:           #38A740;   /* [OK] readouts */
  --fail:         #C43C3C;   /* [FAIL] readouts */

  /* HUD: square-ish corners, hairline rules over soft shadows. */
  --radius:       4px;
  --radius-sm:    3px;
  --radius-lg:    6px;
  --shadow:       0 1px 2px rgba(20, 30, 50, 0.04);
  --shadow-lg:    0 6px 20px rgba(20, 30, 50, 0.09);

  --mono:         'Share Tech Mono', 'SF Mono', Menlo, Consolas, monospace;
  --sans:         'Rajdhani', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  /* Rajdhani runs tall/narrow — a touch larger + slight tracking keeps body
     text comfortable at its lighter weights. */
  font: 500 17px/1.6 var(--sans);
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1320px;          /* desktop / laptop default */
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }  /* prose blocks — kept narrow for reading */

/* Bump on big monitors and TVs so the page uses the real estate. */
@media (min-width: 1700px) {
  .wrap { max-width: 1480px; }
}
@media (min-width: 2200px) {
  .wrap { max-width: 1640px; }
}

/* ── Nav ──────────────────────────────────────────────────────────── */

.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 16px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 120ms ease, color 120ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}

.nav-links a.is-active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
}

.nav-cta { margin-left: 8px; }

/* Header CTA — the generic .nav-links a rules above out-specify .btn-cyan,
   which left the Launch button with dark muted text on the cyan fill (and a
   grey wash on hover). Pin its colors explicitly: white bold text on cyan,
   hover engages one stop brighter with a soft cyan halo. */
.nav-links a.nav-cta {
  color: #FFFFFF;
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links a.nav-cta:hover {
  color: #FFFFFF;
  background: #00A2B5;
  border-color: #00A2B5;
  box-shadow: 0 0 0 3px var(--accent-cyan-soft);
  text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 120ms ease, transform 100ms ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover  { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-cyan    { background: var(--accent-cyan);   color: #FFFFFF; }
.btn-orange  { background: var(--accent-orange); color: #FFFFFF; }
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-outline:hover { color: var(--text); background: var(--bg-alt); }

.btn-disabled {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn-disabled:hover { filter: none; }

.btn-lg { padding: 14px 24px; font-size: 14px; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin: 0 0 12px;
}
/* Bracketed mono readout — the app's HUD tag look. */
.hero-eyebrow::before { content: '[ '; opacity: 0.55; }
.hero-eyebrow::after  { content: ' ]'; opacity: 0.55; }

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--text);
}

.hero h1 .accent { color: var(--accent-cyan); }

.hero p.tagline {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 18px;
}

.hero .version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.hero-compact {
  padding: 56px 0 32px;
  text-align: center;
}
.hero-compact h1 { font-size: 38px; margin-bottom: 10px; }
.hero-compact p.tagline { font-size: 16px; }

/* ── Download cluster (centered on home) ──────────────────────────── */

.downloads {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.downloads .btn { min-width: 180px; }

.downloads-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ── Section primitives ──────────────────────────────────────────── */

section {
  padding: 56px 0;
}

section.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-orange);
  margin: 0 0 10px;
}
.section-head .eyebrow::before { content: '[ '; opacity: 0.55; }
.section-head .eyebrow::after  { content: ' ]'; opacity: 0.55; }

.section-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.section-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ── Card grid ────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

/* Panel "engages" on hover — a cyan hairline at the top edge + a lit border,
   instead of the floaty SaaS lift. */
.card:hover {
  border-color: var(--accent-cyan);
  box-shadow: inset 0 2px 0 var(--accent-cyan), var(--shadow-lg);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.card-icon.cyan    { background: var(--accent-cyan-soft);   color: var(--accent-cyan); }
.card-icon.orange  { background: var(--accent-orange-soft); color: var(--accent-orange); }
.card-icon.success { background: var(--success-soft);       color: var(--success); }

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.card .card-cta {
  margin-top: 16px;
}

/* ── Feature groups (features page) ───────────────────────────────── */

.feature-group {
  margin-bottom: 56px;
}

.feature-group:last-child { margin-bottom: 0; }

.feature-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.feature-group-head .badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
}

.feature-group-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-list .item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.feature-list .item h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.feature-list .item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Screenshot grid ─────────────────────────────────────────────── */

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.shot {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Phone-aspect placeholder for screenshots — sized like a 9:19.5 phone */
.shot-frame {
  position: relative;
  width: 100%;
  padding-bottom: 200%; /* tall, phone-ish */
  background: linear-gradient(160deg, var(--bg-alt) 0%, #DDE5EE 100%);
  display: block;
}

.shot-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.shot-frame .placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
}

.shot-frame .placeholder .glyph {
  font-size: 36px;
  opacity: 0.6;
}

.shot-frame .placeholder .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shot-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.shot-caption h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
}

.shot-caption p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Wider, shallower variant for desktop/web shots */
.shot.shot-wide .shot-frame {
  padding-bottom: 62%; /* roughly 16:10 */
}

/* ── Strip (horizontal screenshot row on home page) ──────────────── */

.shot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .shot-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── CTA banner ───────────────────────────────────────────────────── */

/* Flat deep-console panel with a cyan hairline — an intentional "instrument"
   inset on the light page, not a SaaS gradient. */
.cta-banner {
  margin: 56px 0;
  background: #0E1620;
  border: 1px solid rgba(0, 136, 153, 0.55);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  color: #E6F1FF;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #E6F1FF;
  letter-spacing: -0.2px;
}

.cta-banner p {
  margin: 0 auto 22px;
  max-width: 520px;
  color: rgba(230, 241, 255, 0.72);
  font-size: 16px;
}

.cta-banner .btn-orange {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

/* ── Section linkout (e.g. "See all features →") ─────────────────── */

.linkout {
  text-align: center;
  margin-top: 36px;
}

.linkout a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-orange);
}

/* ── Inline list (about page) ────────────────────────────────────── */

.kv {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.kv-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-row:first-child { padding-top: 0; }

.kv-row .k {
  width: 140px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 2px;
}

.kv-row .v {
  flex: 1;
  color: var(--text);
}

.kv-row .v a { word-break: break-all; }

/* ── Prose blocks ─────────────────────────────────────────────────── */

.prose p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 64px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.site-footer a { color: var(--text-muted); }

.site-footer .footer-status {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 120ms ease, color 120ms ease;
}
.site-footer .footer-status::before {
  content: '●';
  color: var(--success);
  margin-right: 5px;
  font-size: 10px;
}
.site-footer .footer-status:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

/* ── Responsive tweaks ───────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero p.tagline { font-size: 16px; }
  .hero-compact h1 { font-size: 30px; }

  .site-nav .wrap {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links { width: 100%; justify-content: flex-start; }
  .nav-cta { margin-left: 0; }

  section { padding: 40px 0; }

  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 22px; }

  .kv-row { flex-direction: column; gap: 4px; }
  .kv-row .k { width: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   MANUAL PAGE — F1-style help: sidebar TOC + rendered Markdown body
   ═══════════════════════════════════════════════════════════════════ */

/* Hero buttons row */
.manual-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.manual-actions .btn { font-family: var(--mono); }

/* Two-column layout: sticky TOC sidebar, flexible content */
.manual-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-top: 16px;
  padding-bottom: 56px;
  align-items: start;
}

/* ── Sidebar (TOC) ──────────────────────────────────────────────── */

.manual-toc {
  position: sticky;
  top: 80px;                 /* clear sticky nav */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.manual-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.manual-toc-head .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.manual-toc-toggle {
  display: none;            /* shown on phone only */
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.manual-toc-toggle:hover { background: var(--bg-alt); color: var(--text); }

.manual-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-toc-list .toc-h2 {
  margin-bottom: 6px;
}

.manual-toc-list .toc-h2 > a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1px;
}

.manual-toc-list .toc-h2 > a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.manual-toc-list .toc-h2 > a.is-active {
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
}

.manual-toc-list .toc-h3-list {
  list-style: none;
  margin: 4px 0 8px;
  padding-left: 14px;
  border-left: 1px dashed var(--border);
}

.manual-toc-list .toc-h3 > a {
  display: block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.manual-toc-list .toc-h3 > a:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

.manual-toc-list .toc-h3 > a.is-active {
  background: var(--accent-orange-soft);
  color: var(--accent-orange);
  font-weight: 600;
}

.manual-toc-loading {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Manual body / rendered Markdown ─────────────────────────────── */

.manual-body { min-width: 0; }   /* allow grid item to shrink for long <pre> */

.manual-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}

.manual-content h1 {
  font-family: var(--mono);
  font-size: 30px;
  margin: 0 0 18px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.manual-content h2 {
  font-size: 24px;
  margin: 48px 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--accent-cyan);
  letter-spacing: -0.1px;
  scroll-margin-top: 90px;       /* offset for sticky nav */
}

.manual-content h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.manual-content h3 {
  font-size: 18px;
  margin: 32px 0 10px;
  color: var(--text);
  scroll-margin-top: 90px;
}

.manual-content h4 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--text);
  font-weight: 700;
  scroll-margin-top: 90px;
}

.manual-content p {
  margin: 0 0 14px;
  color: var(--text);
}

.manual-content strong { color: var(--text); font-weight: 700; }
.manual-content em     { color: var(--text); font-style: italic; }

.manual-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 136, 153, 0.35);
  text-underline-offset: 2px;
}
.manual-content a:hover {
  text-decoration-color: var(--accent-cyan);
}

.manual-content ul,
.manual-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.manual-content li { margin: 4px 0; }
.manual-content li > p { margin-bottom: 6px; }

.manual-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.manual-content blockquote p { color: var(--text-muted); }
.manual-content blockquote p:last-child { margin-bottom: 0; }

.manual-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent-orange);
}

.manual-content pre {
  margin: 16px 0;
  padding: 16px 18px;
  background: #1B2230;
  color: #E9EEF6;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.manual-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.manual-content table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
  font-size: 14px;
}

.manual-content th,
.manual-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.manual-content th {
  background: var(--bg-alt);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.manual-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.manual-content kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}

/* Anchor "#" link next to each heading */
.manual-content .heading-anchor {
  margin-left: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.7em;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease;
}
.manual-content h2:hover .heading-anchor,
.manual-content h3:hover .heading-anchor,
.manual-content h4:hover .heading-anchor {
  opacity: 1;
}
.manual-content .heading-anchor:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Loading and error states inside the body */
.manual-loading {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.manual-error {
  padding: 20px 24px;
  background: rgba(196, 60, 60, 0.06);
  border: 1px solid rgba(196, 60, 60, 0.25);
  border-radius: var(--radius-sm);
}
.manual-error h2 { color: var(--danger); margin-top: 0; }
.manual-error code {
  background: #FFF;
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* Smooth scroll for anchored navigation */
html { scroll-behavior: smooth; }

/* ── Manual page: responsive ────────────────────────────────────── */

@media (max-width: 960px) {
  .manual-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .manual-toc {
    position: sticky;
    top: 64px;
    max-height: 50vh;
    padding: 12px 14px;
  }

  .manual-toc-toggle { display: inline-flex; }

  /* Hide the nav list on phone until the user taps the toggle */
  .manual-toc #manual-toc-nav {
    display: none;
  }
  .manual-toc.is-open #manual-toc-nav {
    display: block;
  }

  .manual-content { padding: 24px 22px; font-size: 15px; }
  .manual-content h2 { font-size: 22px; }
  .manual-content h3 { font-size: 17px; }
}

/* ── Manual search box (in sidebar header) ──────────────────────── */

.manual-search {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.manual-search-input {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.manual-search-input::placeholder { color: var(--text-dim); }

.manual-search-input:focus {
  outline: 0;
  border-color: var(--accent-cyan);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(0, 136, 153, 0.16);
}

.manual-search-meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  min-height: 14px;
}

.manual-search-meta.has-hits { color: var(--accent-cyan); }
.manual-search-meta.no-hits  { color: var(--danger); }

/* ── Search highlights inside the manual body ───────────────────── */

.manual-content mark.search-hit {
  background: rgba(229, 90, 43, 0.20);
  color: inherit;
  padding: 1px 2px;
  border-radius: 3px;
  border-bottom: 1px solid rgba(229, 90, 43, 0.45);
}

.manual-content mark.search-hit.current {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-bottom-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(229, 90, 43, 0.20);
}

/* TOC entries hidden when they fall outside the current search filter */
.manual-toc-list .is-hidden { display: none !important; }

/* ── Glossary auto-links + hover tooltip ─────────────────────────── */

.manual-content a.glossary-link {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-cyan);
  position: relative;
  cursor: help;
}

.manual-content a.glossary-link:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
  border-bottom-style: solid;
  text-decoration: none;
}

/* Tooltip with the definition on hover */
.manual-content a.glossary-link::after {
  content: attr(data-glossary-def);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: none;
  width: max-content;
  max-width: 320px;
  padding: 10px 14px;
  background: #1B2230;
  color: #E9EEF6;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  white-space: normal;
  text-align: left;
  pointer-events: none;
  text-decoration: none;
  border-bottom: 0;
  letter-spacing: 0;
}

.manual-content a.glossary-link:hover::after,
.manual-content a.glossary-link:focus::after {
  display: block;
}

/* Tooltip arrow */
.manual-content a.glossary-link::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 100%;
  margin-top: 2px;
  border: 6px solid transparent;
  border-bottom-color: #1B2230;
  display: none;
  z-index: 61;
  pointer-events: none;
}
.manual-content a.glossary-link:hover::before,
.manual-content a.glossary-link:focus::before {
  display: block;
}

/* The glossary entry being targeted (anchor flash) */
.manual-content [id^="glossary-"]:target {
  background: rgba(229, 90, 43, 0.10);
  border-left: 3px solid var(--accent-orange);
  padding-left: 12px;
  margin-left: -15px;
  transition: background 200ms ease;
}

/* On phones the tooltip would clip; show a simpler underline-only link */
@media (max-width: 720px) {
  .manual-content a.glossary-link::after,
  .manual-content a.glossary-link::before {
    display: none !important;
  }
}

/* Don't print the search highlights / glossary tooltips */
@media print {
  .manual-search,
  .manual-content mark.search-hit { background: transparent !important; color: inherit !important; box-shadow: none !important; border-bottom: 0 !important; }
  .manual-content a.glossary-link::after,
  .manual-content a.glossary-link::before { display: none !important; }
  .manual-content a.glossary-link { border-bottom: 0; color: inherit; }
}

/* ═══════════════════════════════════════════════════════════════════
   CHANGELOG PAGE
   ═══════════════════════════════════════════════════════════════════ */

.changelog {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.changelog-entry {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.changelog-head {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.changelog-versionrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.changelog-version {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--accent-cyan);
}

.changelog-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.changelog-badge-active {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success);
}

.changelog-badge-mandatory {
  background: var(--accent-orange-soft);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
}

.changelog-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.changelog-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
}

.changelog-pill-android { background: var(--success-soft);       color: var(--success); }
.changelog-pill-ios     { background: var(--accent-cyan-soft);   color: var(--accent-cyan); }
.changelog-pill-windows { background: var(--accent-orange-soft); color: var(--accent-orange); }

.changelog-notes {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.changelog-notes p { margin: 0 0 10px; }
.changelog-notes p:last-child { margin-bottom: 0; }

.changelog-notes ul,
.changelog-notes ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
.changelog-notes li { margin: 3px 0; }

.changelog-notes code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}

.changelog-notes pre {
  background: #1B2230;
  color: #E9EEF6;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
}
.changelog-notes pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.changelog-notes a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 136, 153, 0.35);
}
.changelog-notes a:hover {
  text-decoration-color: var(--accent-cyan);
}

.changelog-no-notes,
.changelog-notes-raw {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.changelog-downloads {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.changelog-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  text-decoration: none;
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: background 120ms ease, border-color 120ms ease;
}

.changelog-download:hover {
  background: var(--accent-cyan);
  color: #FFFFFF;
  text-decoration: none;
}
.changelog-download:hover .dim { color: rgba(255, 255, 255, 0.85); }

.changelog-download .mono { font-family: var(--mono); font-weight: 700; text-transform: uppercase; }
.changelog-download .dim  { color: var(--text-dim); }

.changelog-loading,
.changelog-empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.changelog-empty .mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

@media (max-width: 600px) {
  .changelog-entry { padding: 18px 18px; }
  .changelog-version { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS PAGE
   ═══════════════════════════════════════════════════════════════════ */

/* Headline color tracks the aggregate status. The classes below are
   applied to #status-headline; default state inherits hero color. */
#status-headline.headline-ok   { color: var(--success); }
#status-headline.headline-slow { color: var(--accent-orange); }
#status-headline.headline-down { color: var(--danger); }

.status-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name right"
    "detail detail";
  align-items: center;
  gap: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.status-row .status-name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.status-row .status-name-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.status-row .status-label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.status-row .status-description {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-top: 2px;
}

.status-row .status-dot {
  font-size: 18px;
  line-height: 1;
  color: var(--text-dim);
  width: 18px;
  text-align: center;
}

.status-row .status-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.status-row .status-state {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.status-row .status-ms {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.status-row .status-detail {
  grid-area: detail;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  padding-left: 30px; /* align under the label */
  word-break: break-word;
}

.status-row .status-detail:empty {
  display: none;
}

/* ── Per-state coloring ─────────────────────────────────────────── */

.status-row.is-checking { border-left-color: var(--text-dim); }
.status-row.is-checking .status-dot { color: var(--text-dim); }

.status-row.status-ok    { border-left-color: var(--success); }
.status-row.status-ok    .status-dot   { color: var(--success); }
.status-row.status-ok    .status-state { color: var(--success); }

.status-row.status-slow  { border-left-color: var(--accent-orange); }
.status-row.status-slow  .status-dot   { color: var(--accent-orange); }
.status-row.status-slow  .status-state { color: var(--accent-orange); }

.status-row.status-down  { border-left-color: var(--danger); }
.status-row.status-down  .status-dot   { color: var(--danger); }
.status-row.status-down  .status-state { color: var(--danger); }

.status-note {
  margin-top: 22px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .status-row { padding: 14px 16px; }
  .status-row .status-detail { padding-left: 0; }
}

/* ── Print: hide chrome, show the document ─────────────────────── */
@media print {
  .site-nav,
  .manual-toc,
  .manual-actions,
  .site-footer,
  .heading-anchor { display: none !important; }

  body { background: #FFF; }
  .hero, .hero-compact { padding: 0 0 16px; }
  .manual-layout { display: block; padding: 0; }
  .manual-content {
    border: 0;
    box-shadow: none;
    padding: 0;
    font-size: 11pt;
    line-height: 1.5;
  }
  .manual-content h2 { color: #000; page-break-after: avoid; }
  .manual-content h3, .manual-content h4 { page-break-after: avoid; }
  .manual-content pre, .manual-content blockquote,
  .manual-content table { page-break-inside: avoid; }
  .manual-content a { color: #000; text-decoration: underline; }
  .manual-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
}
