/* Keiser Software Updates — public site. Docs-style layout: header, product sidebar, content, "On this page".
   Colors: Nova's default dark theme tokens (Keiser.Apollo.AMS src/themes/neutral.css). Dark only. */
:root {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --warning: oklch(0.7 0.15 75);
  --warning-foreground: oklch(0.2 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --sidebar: oklch(0.175 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.239 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --header-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: dark; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { scrollbar-width: thin; scrollbar-color: oklch(from var(--primary) l c h / 0.2) transparent; }
a { color: var(--foreground); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; }
.muted { color: var(--muted-foreground); }
svg.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; cursor: pointer; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: var(--background); border-bottom: 1px solid var(--border);
}
.wordmark { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark img { display: block; height: 24px; width: auto; }
.wordmark span { padding-left: 12px; border-left: 1px solid var(--border); font-weight: 500; color: var(--muted-foreground); }
.search { position: relative; flex: 0 1 420px; margin-left: auto; }
.search input {
  width: 100%; height: 36px; padding: 0 40px 0 34px; font: inherit; color: var(--foreground);
  background: var(--sidebar); border: 1px solid var(--input); border-radius: 8px; outline: none; -webkit-appearance: none;
}
.search input::placeholder { color: var(--muted-foreground); }
.search input:focus { background: var(--background); border-color: var(--ring); box-shadow: 0 0 0 3px oklch(from var(--ring) l c h / 0.3); }
.search > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: inherit; font-size: 12px; line-height: 18px; padding: 0 6px;
  color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 4px;
}
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.results {
  position: absolute; left: 0; right: 0; top: 42px; max-height: 420px; overflow: auto;
  background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25); padding: 6px;
}
.results a { display: block; padding: 8px 10px; border-radius: 6px; }
.results a:hover, .results a.active { background: var(--accent); color: var(--accent-foreground); text-decoration: none; }
.results small { display: block; color: var(--muted-foreground); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .none { padding: 10px; color: var(--muted-foreground); }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex-shrink: 0;
  background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted-foreground);
}
.icon-button:hover { background: var(--accent); color: var(--foreground); }
.icon-button svg.icon { width: 18px; height: 18px; }
.nav-toggle, .search-toggle, .search-close { display: none; }
.preview-bar { background: var(--warning); color: var(--warning-foreground); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }

/* three-column docs layout */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.layout.has-rail { grid-template-columns: 260px minmax(0, 1fr) 220px; }
.sidebar {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow: auto;
  display: flex; flex-direction: column;
  padding: 16px 12px 16px; background: var(--sidebar); color: var(--sidebar-foreground); border-right: 1px solid var(--sidebar-border);
}
/* copyright: pinned to the bottom of the sidebar, below the product list */
.side-foot { margin: auto 0 0; padding: 24px 10px 0; font-size: 12px; color: var(--muted-foreground); }
.scrim, .drawer-head { display: none; }
.group { margin-top: 18px; }
.group-label { padding: 0 10px; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.menu, .menu-sub { list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-button { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; font-size: 14.5px; color: var(--sidebar-foreground); }
.menu-item.has-sub > .menu-button { padding-right: 34px; }
.menu-button:hover { background: var(--sidebar-accent); text-decoration: none; }
.menu-button[data-active] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 600; }
.menu-action {
  position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; padding: 0; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 6px; color: var(--muted-foreground);
}
.menu-action:hover { background: var(--sidebar-accent); color: var(--sidebar-foreground); }
.menu-action .icon { transition: transform .15s; }
.menu-item.open > .menu-action .icon { transform: rotate(90deg); }
.menu-sub { display: none; margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--sidebar-border); }
.menu-item.open > .menu-sub { display: block; }
.sub-button { display: flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 13.5px; color: var(--muted-foreground); }
.sub-button small { margin-left: auto; font-size: 12px; }
.sub-button:hover { background: var(--sidebar-accent); color: var(--sidebar-foreground); text-decoration: none; }
.sub-button[data-active] { color: var(--sidebar-foreground); font-weight: 600; }

.content { width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 48px 64px; }
.rail { position: sticky; top: var(--header-h); align-self: start; margin-top: 32px; padding: 0 20px; border-left: 1px solid var(--border); font-size: 13.5px; }
.rail p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.rail a { display: block; padding: 3px 0; color: var(--muted-foreground); }
.rail a:hover { color: var(--foreground); }

/* content */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; line-height: 20px; color: var(--muted-foreground); }
.crumbs li { display: flex; align-items: center; }
.crumbs a { color: var(--muted-foreground); }
.crumbs [aria-current] { color: var(--foreground); }
.crumbs .icon { width: 13px; height: 13px; }
.content h1.page-title { margin: 0 0 6px; font-size: 30px; letter-spacing: -.01em; }
.content h2.section-title { margin: 36px 0 16px; font-size: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.section-head h2.section-title { margin: 0; padding: 0; border: 0; }
.lede { margin: 0 0 8px; color: var(--muted-foreground); font-size: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
td a { font-weight: 500; }
td.nowrap { white-space: nowrap; }

.badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--secondary); color: var(--secondary-foreground); }
.badge + .badge { margin-left: 4px; }
.badge.latest { margin-left: 8px; vertical-align: 2px; }

.tabs { display: flex; gap: 6px; }
.tabs button {
  font-size: 13.5px; padding: 3px 12px; border-radius: 6px; white-space: nowrap;
  background: var(--background); color: var(--muted-foreground); border: 1px solid var(--border);
}
.tabs button:hover { color: var(--foreground); }
.tabs button[aria-pressed="true"] { color: var(--foreground); background: var(--accent); border-color: var(--ring); font-weight: 600; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed li[hidden] { display: none; }
.feed time { color: var(--muted-foreground); font-size: 14px; }
.feed .what { font-weight: 600; }
.feed .summary { margin: 2px 0 6px; color: var(--muted-foreground); }

.notice {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 10px 14px; font-size: 14px;
  background: oklch(from var(--warning) l c h / 0.12); border: 1px solid oklch(from var(--warning) l c h / 0.5); border-radius: 8px;
}
.notice .icon { margin-top: 2px; color: var(--warning); }
.notice a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* release body: same structure and type scale as the customer email (templates/release.html) */
.release .rel-title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.release .rel-date { margin: 4px 0 0; font-size: 14px; color: var(--muted-foreground); }
.release .rel-h2 { margin: 28px 0 8px; font-size: 16px; font-weight: 700; padding: 0; border: 0; }
.release .rel-p { margin: 0; font-size: 15px; line-height: 1.5; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14.5px; }
.pager small { display: block; color: var(--muted-foreground); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pager .next { margin-left: auto; text-align: right; }
.empty { color: var(--muted-foreground); }

@media (max-width: 1100px) {
  .layout.has-rail { grid-template-columns: 260px minmax(0, 1fr); }
  .rail { display: none; }
}

/* phones: menu button opens the sidebar as a drawer; search icon opens a full-width search in the header */
@media (max-width: 760px) {
  .top { gap: 4px; padding: 0 8px; }
  .nav-toggle, .search-toggle { display: inline-flex; }
  .search-toggle { margin-left: auto; }
  .wordmark { gap: 8px; margin-left: 4px; }
  .wordmark img { height: 20px; }
  .wordmark span { padding-left: 8px; font-size: 14px; }
  .search { display: none; }
  .search-open .search {
    display: flex; align-items: center; gap: 4px; position: absolute; inset: 0; z-index: 2; padding: 0 8px; margin: 0;
    background: var(--background);
  }
  .search-open .search > .icon { left: 19px; }
  .search-open .search-close { display: inline-flex; }
  .search kbd { display: none; }
  .search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
  .search input { height: 40px; font-size: 16px; }
  .results { left: 8px; right: 8px; top: calc(var(--header-h) - 4px); max-height: calc(100dvh - var(--header-h) - 16px); }
  .results a { padding: 10px 12px; }

  .layout, .layout.has-rail { display: block; min-height: 0; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(86vw, 320px); height: 100dvh;
    padding: 20px 12px 16px; transform: translateX(-100%); transition: transform .2s ease;
    border-right: 1px solid var(--sidebar-border);
  }
  .nav-open .sidebar { transform: none; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; margin: -8px 0 4px; padding: 0 0 12px 12px; border-bottom: 1px solid var(--sidebar-border); }
  .drawer-head img { height: 20px; width: auto; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); }
  .nav-open { overflow: hidden; }
  .menu-button { padding: 9px 12px; font-size: 16px; }
  .menu-item.has-sub > .menu-button { padding-right: 44px; }
  .menu-action { top: 4px; right: 4px; width: 36px; height: 36px; }
  .sub-button { padding: 7px 12px; font-size: 15px; }

  .content { padding: 16px 16px 40px; }
  .content h1.page-title { font-size: 26px; }
  .content h2.section-title { margin-top: 28px; font-size: 19px; }
  .section-head { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .tabs { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .tabs button { padding: 6px 14px; font-size: 14px; }
  .hide-sm { display: none; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .feed time { font-size: 13px; }
  .release .rel-title { font-size: 22px; }
  .pager { margin-top: 28px; }
}
