/* ======================================================================
   Simforge — Manual Page Styles (Apex Cockpit & Seat)
   Scope: body.page-manual (won't affect other pages)
   File path assumptions:
     - This file lives in /css/
     - Images live in /img/  → use ../img/ when referenced in CSS
   ====================================================================== */

/* ===== Hero / Header image (manual page) ===== */
body.page-manual .page-header{
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/simforge-apex-sim-racing-cockpit-hero.webp") no-repeat center center;
  background-size: cover;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1399.98px){ body.page-manual .page-header{ background-position: 86% 22%; } }
@media (max-width: 991.98px) { body.page-manual .page-header{ background-position: 80% 28%; } }
@media (max-width: 575.98px){ body.page-manual .page-header{ background-position: 75% 36%; min-height: 340px; } }
@media (min-width: 992px){
  body.page-manual .page-header{ min-height: clamp(520px, 50vh, 720px); }
}
body.page-manual .page-header .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.page-manual .page-header .breadcrumb{ justify-content: center !important; }

/* ===== Sidebar ToC (manual page) ===== */
body.page-manual .toc-sticky{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: .5rem;
  padding: 1rem;
  position: sticky;
  top: 90px; /* under sticky navbar */
}
body.page-manual .toc-sticky h3{ color:#fff; }
body.page-manual .toc-sticky .list-group{ background: transparent; }
body.page-manual .toc-sticky .list-group-item{
  background: transparent !important;
  color: #e9ecef;
  border-color: rgba(255,255,255,0.10);
  padding-left: .25rem; 
  padding-right: .25rem;
}
body.page-manual .toc-sticky .list-group-item a{ color: var(--bs-primary); }
body.page-manual .toc-sticky .list-group-item a:hover{ text-decoration: underline; }

/* ===== Utility: smooth in-page anchor experience ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
main .anchor-target { scroll-margin-top: 90px; }

/* ===== Optional: mobile navbar logo centering ===== */
@media (max-width: 768px) {
  .navbar .navbar-brand {
    display: flex; justify-content: center; align-items: center;
    width: 100% !important; margin: 0 auto !important; text-align: center !important;
  }
  .logo-text { margin: 0 auto !important; text-align: center !important; }
}
@media (max-width: 991.98px) {
  .navbar-brand {
    margin-left: auto !important; margin-right: auto !important;
    text-align: center !important; display: flex; justify-content: center;
  }
  .navbar .logo-text { margin: 0 auto; text-align: center; }
}

/* ===== Figures (images inside the manual sections) ===== */
body.page-manual figure.sf-figure{ margin:16px 0 28px; }
body.page-manual figure.sf-figure img{ display:block; width:75%; margin:0 auto; border-radius:6px; }
body.page-manual figure.sf-figure .caption{ color:#c7c7c7; text-align:center; margin-top:6px; font-size:14px; }

/* =========================
   Universal Parts Tables
   Target: <table class="sf-bolt-table">
   ========================= */
.sf-bolt-table {
  width: 100%;
  max-width: 980px;
  margin: 16px auto 28px;
  border-collapse: collapse;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #111;
  background: #fff;
}

/* Group title row (colspan) */
.sf-bolt-table thead tr:first-child th[colspan] {
  background: #111;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #444;
}

/* Header row (column labels) */
.sf-bolt-table thead tr:nth-child(2) th,
.sf-bolt-table thead th:not([colspan]) {
  background: #222;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px;
  border: 1px solid #444;
  text-align: center;
}

/* Cells */
.sf-bolt-table th,
.sf-bolt-table td {
  border: 1px solid #444;
  padding: 8px 10px;
  vertical-align: middle;
  text-align: left;
}

/* Force equal column widths across all tables */
.sf-bolt-table {
  table-layout: fixed; /* ensures uniform widths */
}

.sf-bolt-table th:first-child,
.sf-bolt-table td:first-child {
  width: 12%;   /* Sr No */
  text-align: center;
}

.sf-bolt-table th:nth-child(2),
.sf-bolt-table td:nth-child(2) {
  width: 68%;   /* Parts */
  text-align: left;
}

.sf-bolt-table th:last-child,
.sf-bolt-table td:last-child {
  width: 20%;   /* QTY or Colour */
  text-align: center;
  font-weight: 600;
}

/* Zebra stripes */
.sf-bolt-table tbody tr:nth-child(odd) { background: #fff; }
.sf-bolt-table tbody tr:nth-child(even) { background: #f9f9f9; }

/* Hover effect */
.sf-bolt-table tbody tr:hover { background: #f0f0f0; }

/* Swatches */
.sf-bolt-table .sf-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
}
.sf-bolt-table .sw-black  { background:#000; }
.sf-bolt-table .sw-blue   { background:#1e88e5; }
.sf-bolt-table .sw-green  { background:#43a047; }
.sf-bolt-table .sw-red    { background:#e53935; }
.sf-bolt-table .sw-yellow { background:#fdd835; }
.sf-bolt-table .sw-orange { background:#fb8c00; }
.sf-bolt-table .sw-grey,
.sf-bolt-table .sw-gray   { background:#9e9e9e; }
.sf-bolt-table .sw-white  { background:#fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45) inset; }
.sf-bolt-table .sw-purple { background:#7e57c2; }
.sf-bolt-table .sw-pink   { background:#ec407a; }
.sf-bolt-table .sw-brown  { background:#795548; }
.sf-bolt-table .sw-silver { background:#bdbdbd; }
.sf-bolt-table .sw-gold   { background:#d4af37; }

/* Small screen tweaks */
@media (max-width: 576px) {
  .sf-bolt-table { font-size: 14px; }
  .sf-bolt-table td:first-child,
  .sf-bolt-table th:first-child,
  .sf-bolt-table td:last-child,
  .sf-bolt-table th:last-child {
    width: 64px;
  }
}

/* Optional wrapper for horizontal scroll on tiny screens */
.table-wrap { overflow-x: auto; }
.table-wrap .sf-bolt-table { min-width: 520px; }


