/* HelixChute2 Help - shared stylesheet for every topic page and the nav frame. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1f2a30;
  --text-muted: #5b6b73;
  --accent: #1d6f8c;
  --accent-dark: #144f63;
  --border: #d8e0e3;
  --code-bg: #eef3f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}

.topic {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 36px 60px;
}

h1 {
  font-size: 1.6em;
  color: var(--accent-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-top: 0;
}

h2 {
  font-size: 1.2em;
  color: var(--accent-dark);
  margin-top: 1.8em;
}

h3 { font-size: 1.05em; color: var(--text); }

p { margin: 0.8em 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.subtitle {
  color: var(--text-muted);
  font-size: 0.95em;
  margin-top: -8px;
  margin-bottom: 1.2em;
}

.figure {
  margin: 1.2em 0;
  text-align: center;
}
.figure img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.figure figcaption {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 6px;
}

ul, ol { padding-left: 1.4em; }
li { margin: 0.35em 0; }

code, kbd {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
th, td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  font-size: 0.93em;
}
th { background: var(--bg-alt); }

.note, .tip {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 10px 14px;
  margin: 1.2em 0;
  border-radius: 0 4px 4px 0;
}
.note strong, .tip strong { color: var(--accent-dark); }

.see-also {
  margin-top: 2.2em;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.92em;
  color: var(--text-muted);
}

.placeholder-image {
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.85em;
  padding: 30px 12px;
  text-align: center;
  border-radius: 4px;
}

.figure {
  margin: 1.4em 0;
}
.figure img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.figure figcaption {
  margin-top: 6px;
  font-size: 0.85em;
  color: var(--text-muted);
  text-align: center;
}

/* Image slideshow (slideshow.js) */
.slideshow {
  max-width: 800px;
  margin: 1.4em auto;
  border-radius: 4px;
}
.slideshow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.slide-stage {
  position: relative;
}
.slideshow .slide {
  margin: 0;
}
.slideshow .slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 660;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.slideshow .slide figcaption {
  margin-top: 6px;
  min-height: 2.6em;
  font-size: 0.85em;
  color: var(--text-muted);
  text-align: center;
}
/* Centred on the image, not the image plus its caption below. */
.slide-prev,
.slide-next {
  position: absolute;
  top: 0;
  bottom: 3.2em;
  margin: auto 0;
  width: 2.6em;
  height: 2.6em;
  border: none;
  border-radius: 50%;
  background: rgba(20, 40, 50, 0.55);
  color: #fff;
  font: 600 1.4em/1 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  padding: 0;
}
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slide-prev:hover,
.slide-next:hover { background: rgba(20, 40, 50, 0.8); }
.slide-prev:focus-visible,
.slide-next:focus-visible {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 4px var(--accent);
}
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.slide-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.slide-dot[aria-current="true"] { background: var(--accent); }
.slide-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Pricing tiers (topics/pricing.html) */
.pricing-tiers {
  display: flex;
  gap: 20px;
  margin: 1.4em 0;
  flex-wrap: wrap;
}
.pricing-card {
  flex: 1 1 260px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  background: var(--bg-alt);
}
.pricing-card h4 {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 1.1em;
}
.pricing-card .tagline {
  color: var(--text-muted);
  font-size: 0.88em;
  margin-bottom: 14px;
}
.pricing-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.pricing-card .price-row:first-of-type {
  border-top: none;
}
.pricing-card .price-label {
  color: var(--text);
}
.pricing-card .price-value {
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}
.pricing-card .support-note {
  margin-top: 10px;
  font-size: 0.82em;
  color: var(--text-muted);
}
.pricing-card table {
  background: var(--bg);
  font-size: 0.85em;
  margin: 0;
}
.pricing-card table th,
.pricing-card table td {
  padding: 5px 8px;
  white-space: nowrap;
}
.pricing-card table th:not(:first-child),
.pricing-card table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Nav frame */
body.nav {
  background: var(--bg-alt);
  font-size: 13.5px;
}
.nav-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.nav-header .brand {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 1.05em;
}
.nav-header .version {
  color: var(--text-muted);
  font-size: 0.85em;
}
.nav-tree {
  padding: 8px 8px 30px;
}
.nav-tree .section {
  margin-top: 14px;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  padding: 0 8px;
}
.nav-tree ul { list-style: none; margin: 0; padding-left: 0; }
.nav-tree li a {
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}
.nav-tree li a:hover { background: #e2ecef; }
/* The topic showing in the content panel (nav.js) */
.nav-tree li a.current,
.nav-tree li a.current:hover {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

[hidden] { display: none !important; }

/* Keyword search (nav.html + search.js) */
.nav-search {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 9px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.nav-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(29, 111, 140, 0.2);
}
.search-results {
  padding: 8px 8px 30px;
}
.search-results .search-status {
  padding: 2px 8px 6px;
  color: var(--text-muted);
  font-size: 0.85em;
}
.search-results ul { list-style: none; margin: 0; padding-left: 0; }
.search-results li a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}
.search-results li a:hover,
.search-results li a:focus { background: #e2ecef; outline: none; }
.search-results .result-title {
  display: block;
  font-weight: 600;
  color: var(--accent-dark);
}
.search-results .result-snippet {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.4;
}
.search-results mark {
  background: #fff1a8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* Change Log (topics/change-log.html): one .release block per version, newest first. */
.release + .release {
  margin-top: 2.4em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}
.release h2 { margin-bottom: 0.1em; }
.release-date {
  color: var(--text-muted);
  font-size: 0.93em;
  margin-top: 0;
}
