/* KOPR documentation layout — static HTML, no framework required. */
:root {
  --kopr-bg: #f4f6f8;
  --kopr-panel: #ffffff;
  --kopr-text: #202932;
  --kopr-muted: #5f6b76;
  --kopr-border: #d8e0e7;
  --kopr-primary: #155d83;
  --kopr-primary-dark: #0d405c;
  --kopr-accent: #e9f4fa;
  --kopr-warning: #fff4d6;
  --kopr-success: #e7f6ed;
  --kopr-code: #eef2f5;
  --kopr-shadow: 0 10px 28px rgba(20, 45, 60, 0.08);
  --kopr-radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--kopr-text);
  background: var(--kopr-bg);
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.58;
}
a { color: var(--kopr-primary); }
a:hover, a:focus { color: var(--kopr-primary-dark); }
img { max-width: 100%; height: auto; }
code, pre { font-family: "DejaVu Sans Mono", Consolas, monospace; }
code { background: var(--kopr-code); padding: 0.12rem 0.3rem; border-radius: 4px; }
pre { background: var(--kopr-code); padding: 1rem; overflow: auto; border-radius: 8px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: .75rem; z-index: 100;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  background: linear-gradient(115deg, var(--kopr-primary-dark), var(--kopr-primary));
  color: #fff;
  box-shadow: var(--kopr-shadow);
}
.header-inner, .page-shell, .footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.header-inner { padding: 1.2rem 0 1rem; }
.brand { margin: 0; font-size: 2rem; line-height: 1.15; font-weight: 600; }
.brand a { color: #fff; text-decoration: none; }
.tagline { margin: .35rem 0 0; color: #dcecf4; }
.top-nav { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.top-nav a {
  color: #fff; text-decoration: none; padding: .4rem .7rem;
  border: 1px solid rgba(255,255,255,.28); border-radius: 6px;
}
.top-nav a:hover, .top-nav a:focus, .top-nav a[aria-current="page"] {
  background: rgba(255,255,255,.17); color: #fff;
}

.page-shell { padding: 2rem 0 3rem; }
.home-main, .content-panel, .sidebar {
  background: var(--kopr-panel); border: 1px solid var(--kopr-border);
  border-radius: var(--kopr-radius); box-shadow: var(--kopr-shadow);
}
.home-main, .content-panel { padding: clamp(1.25rem, 2.5vw, 2.4rem); }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.sidebar { padding: 1rem; position: sticky; top: 1rem; }
.sidebar h2 { font-size: 1rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--kopr-muted); }
.sidebar nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar nav ul ul { margin-left: .75rem; padding-left: .7rem; border-left: 2px solid var(--kopr-border); }
.sidebar nav a { display: block; padding: .35rem .45rem; text-decoration: none; border-radius: 5px; }
.sidebar nav a:hover, .sidebar nav a:focus, .sidebar nav a[aria-current="page"] { background: var(--kopr-accent); }
.sidebar details > summary { cursor: pointer; font-weight: 600; margin-bottom: .45rem; }

.breadcrumbs { font-size: .92rem; color: var(--kopr-muted); margin-bottom: 1.2rem; }
.breadcrumbs a { text-decoration: none; }
.page-title { margin-top: 0; line-height: 1.15; }
.lead { font-size: 1.18rem; color: #3f4c57; }
.meta-line { color: var(--kopr-muted); font-size: .94rem; }

.hero { padding-bottom: 1.25rem; border-bottom: 1px solid var(--kopr-border); margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.button-link {
  display: inline-block; padding: .62rem .9rem; border-radius: 6px;
  background: var(--kopr-primary); color: #fff; text-decoration: none; font-weight: 600;
}
.button-link:hover, .button-link:focus { color: #fff; background: var(--kopr-primary-dark); }
.button-link.secondary { background: #fff; color: var(--kopr-primary); border: 1px solid var(--kopr-primary); }
.button-link.secondary:hover, .button-link.secondary:focus { color: var(--kopr-primary-dark); background: var(--kopr-accent); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.card { border: 1px solid var(--kopr-border); border-radius: 8px; padding: 1rem; background: #fff; }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { font-weight: 600; }

.notice { border-left: 5px solid var(--kopr-primary); background: var(--kopr-accent); padding: .85rem 1rem; border-radius: 6px; margin: 1rem 0; }
.notice.warning { border-left-color: #a66b00; background: var(--kopr-warning); }
.notice.success { border-left-color: #2f7a4b; background: var(--kopr-success); }
.status-badge { display: inline-block; padding: .2rem .5rem; border-radius: 999px; background: var(--kopr-warning); font-size: .86rem; font-weight: 600; }

.section-index { columns: 2 260px; column-gap: 2rem; }
.section-index li { break-inside: avoid; margin-bottom: .35rem; }
.release-list, .download-list { padding-left: 1.2rem; }
.release { border-top: 1px solid var(--kopr-border); padding: .9rem 0; }
.release:first-child { border-top: 0; }
.release h3 { margin: 0 0 .25rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--kopr-border); padding: .55rem .65rem; text-align: left; vertical-align: top; }
th { background: var(--kopr-accent); }

.site-footer { background: #172832; color: #dbe5ea; }
.footer-inner { padding: 1.4rem 0; }
.site-footer a { color: #fff; }
.site-footer p { margin: .25rem 0; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .docs-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar details { display: block; }
  .brand { font-size: 1.65rem; }
}
@media print {
  .site-header, .sidebar, .site-footer, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
  .page-shell { width: 100%; padding: 0; }
  .content-panel, .home-main { border: 0; box-shadow: none; padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* Installation and first-start components: installation and first-start components. */
.status-badge.complete { background: var(--kopr-success); color: #205a37; }
.command-group { margin: 1rem 0 1.4rem; }
.command-group > p:first-child { margin-bottom: .4rem; font-weight: 600; }
.step-list { counter-reset: kopr-step; list-style: none; padding-left: 0; }
.step-list > li { counter-increment: kopr-step; position: relative; padding: 0 0 1.25rem 3.2rem; }
.step-list > li::before { content: counter(kopr-step); position: absolute; left: 0; top: .05rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--kopr-primary); color: #fff; font-weight: 600; }
.step-list > li + li { border-top: 1px solid var(--kopr-border); padding-top: 1.15rem; }
.step-list > li + li::before { top: 1.2rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.7rem; margin: .35rem 0; }
.checklist li::before { content: "✓"; position: absolute; left: .2rem; color: #2f7a4b; font-weight: 700; }
.file-tree { line-height: 1.4; }
kbd { border: 1px solid #b8c2ca; border-bottom-width: 2px; border-radius: 4px; background: #fff; padding: .08rem .35rem; font-family: inherit; font-size: .92em; }


/* Configuration and workflow components: configuration and workflow components. */
.menu-path { white-space: nowrap; font-weight: 600; }
.on-page { border: 1px solid var(--kopr-border); background: #fbfcfd; border-radius: 8px; padding: .8rem 1rem; margin: 1.2rem 0; }
.on-page ul { columns: 2 220px; margin: .45rem 0 0; padding-left: 1.25rem; }
.on-page li { break-inside: avoid; }
.context-flow, .workflow-strip { display: flex; align-items: stretch; gap: .55rem; margin: 1.15rem 0; overflow-x: auto; padding-bottom: .25rem; }
.context-flow > div, .workflow-strip > div { min-width: 150px; display: flex; flex-direction: column; justify-content: center; }
.context-flow > div[role="listitem"], .workflow-strip > div[role="listitem"] { flex: 1 0 170px; border: 1px solid var(--kopr-border); border-radius: 8px; padding: .75rem; background: #fff; text-align: center; }
.context-flow > div[aria-hidden="true"], .workflow-strip > div[aria-hidden="true"] { min-width: auto; flex: 0 0 auto; font-size: 1.4rem; color: var(--kopr-muted); }
.context-flow span, .workflow-strip span { display: block; margin-top: .25rem; color: var(--kopr-muted); font-size: .92rem; }
@media (max-width: 620px) {
  .on-page ul { columns: 1; }
  .context-flow, .workflow-strip { align-items: center; flex-direction: column; overflow: visible; }
  .context-flow > div[role="listitem"], .workflow-strip > div[role="listitem"] { width: 100%; min-width: 0; flex-basis: auto; }
  .context-flow > div[aria-hidden="true"], .workflow-strip > div[aria-hidden="true"] { transform: rotate(90deg); }
}


/* WStack workflow and scientific output reference: WStack workflow and scientific output reference. */
.content-panel section { scroll-margin-top: 1rem; }
.file-tree { border-left: 4px solid var(--kopr-primary); }
.content-panel h3 { margin-top: 1.5rem; }
.content-panel table code { white-space: nowrap; }
@media (max-width: 620px) { .content-panel table code { white-space: normal; } }


/* WCCD and photometry reference: WCCD and photometry reference. */
.content-panel pre code { background: transparent; padding: 0; }
.content-panel .workflow-strip { margin-bottom: 1.4rem; }
.content-panel kbd { white-space: nowrap; }
@media (max-width: 620px) {
  .content-panel .card-grid { grid-template-columns: 1fr; }
}


/* Visual, planner, analyzer and comparison guides: visual, planner, analyzer and comparison guides. */
.content-panel .table-wrap code { white-space: nowrap; }
.content-panel pre { overflow-x: auto; }
.content-panel kbd { border: 1px solid #b9c2cc; border-bottom-width: 2px; border-radius: .25rem; padding: .05rem .3rem; background: #f5f7f9; font: inherit; font-size: .9em; }


/* Troubleshooting and diagnostic reference: troubleshooting and diagnostic reference. */
.content-panel details { border: 1px solid var(--kopr-border); border-radius: 7px; padding: .55rem .75rem; margin: .7rem 0; background: #fff; }
.content-panel details > summary { cursor: pointer; font-weight: 600; }
.content-panel td:first-child { min-width: 12rem; }
@media (max-width: 620px) { .content-panel td:first-child { min-width: 9rem; } }


/* Final responsive containment audit. */
.docs-layout > *, .content-panel, .sidebar { min-width: 0; max-width: 100%; }
.content-panel pre, .content-panel .table-wrap { max-width: 100%; }
.content-panel a { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .menu-path { white-space: normal; }
}
