*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0f;
  --surface-1: #111118;
  --surface-2: #1a1a24;
  --surface-3: #24243a;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #6b6b80;
  --primary: #0A84FF;
  --primary-glow: rgba(10,132,255,0.15);
  --accent-purple: #BF5AF2;
  --accent-green: #30D158;
  --accent-orange: #FF9F0A;
  /* Glass, as on the portal: a little of the blue wash shows through every
     card and panel, frosted so text on it stays sharp. */
  --glass-bg: rgba(17, 17, 24, 0.6);
  --glass-bg-hover: rgba(26, 26, 36, 0.7);
  --glass-strong: rgba(17, 17, 24, 0.86);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
}

html { scroll-behavior: smooth; }

html { background: var(--bg); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The app's backdrop: a slow wash of RentalHQ blue behind everything, the
   same three soft pools that drift behind the portal. Fixed, so it stays put
   as the article scrolls; below the content, so it never sits on text. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(10, 132, 255, 0.30), transparent 70%),
    radial-gradient(50% 45% at 85% 82%, rgba(10, 132, 255, 0.18), transparent 70%),
    radial-gradient(40% 40% at 72% 18%, rgba(10, 132, 255, 0.10), transparent 70%);
  background-size: 160% 160%;
  animation: backdrop-drift 48s ease-in-out infinite alternate;
}
@keyframes backdrop-drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
}

a { color: var(--primary); }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--border);
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease, -webkit-backdrop-filter 200ms ease;
}
/* At the top of a page the bar is part of the page, not a bar: no line, no
   glass. Once anything scrolls under it, it is a bar again. support.js sets
   data-scrolled. */
nav:not([data-scrolled]) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}
.nav-brand-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.support-hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
}
.support-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.support-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
}
.support-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 12px;
  position: relative;
}

/* SEARCH */
.search-container {
  max-width: 560px;
  margin: 32px auto 0;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* MAIN LAYOUT */
.support-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 120px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-bottom: 24px;
}
.sidebar-section { margin-bottom: 32px; }
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 500;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: var(--primary-glow); color: var(--primary); }
.sidebar-link svg { flex-shrink: 0; }

/* CONTENT */
.content { min-width: 0; }

/* CATEGORY CARDS */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.category-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}
.category-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
/*
 * One blue, nine cards. The tiles used to be a different accent each, which
 * read as decoration rather than as one product. The colour now comes from
 * the tile and the glyph inherits it, so an icon cannot drift again.
 */
.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  background:
    linear-gradient(150deg, rgba(10,132,255,0.22), rgba(10,132,255,0.05) 70%);
  border: 1px solid rgba(10,132,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 6px 18px -10px rgba(10,132,255,0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.category-card:hover .category-icon {
  transform: translateY(-1px);
  border-color: rgba(10,132,255,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 26px -10px rgba(10,132,255,0.75);
}
@media (prefers-reduced-motion: reduce) {
  .category-icon { transition: none; }
  .category-card:hover .category-icon { transform: none; }
}
.category-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.category-card p { font-size: 14px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.category-count { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--primary); }

/* ARTICLE LIST */
.article-list { display: flex; flex-direction: column; gap: 8px; }
.article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.article-link:hover { border-color: var(--border-strong); background: var(--surface-2); }
.article-link-title { font-size: 15px; font-weight: 600; }
.article-link-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.article-link-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ARTICLE CONTENT */
.article-header { margin-bottom: 40px; }
.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.article-header .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article-header .breadcrumb a { color: var(--primary); text-decoration: none; }
.article-header .breadcrumb a:hover { text-decoration: underline; }
.article-meta {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.article-body a { color: var(--primary); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body code {
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  color: var(--accent-orange);
}
.article-body pre {
  margin: 12px 0 18px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
.article-body pre code { background: none; padding: 0; border: 0; font-size: inherit; white-space: pre; }
.article-body .prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 10px 0 22px;
}
.article-body .prompt {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.article-body .callout {
  background: var(--primary-glow);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.article-body .callout p { color: var(--text); margin-bottom: 0; }
.article-body .callout strong { color: var(--primary); }
.article-body .callout-warn {
  background: rgba(255,159,10,0.08);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.article-body .callout-warn p { color: var(--text); margin-bottom: 0; }
.article-body .callout-warn strong { color: var(--accent-orange); }
.article-body .steps {
  counter-reset: steps;
  list-style: none;
  padding-left: 0;
}
.article-body .steps li {
  counter-increment: steps;
  padding-left: 40px;
  position: relative;
  margin-bottom: 20px;
}
.article-body .steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SEARCH AUTOCOMPLETE DROPDOWN */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  overflow-y: auto;
  max-height: 440px;
  z-index: 300;
  text-align: left;
  display: none;
}
.search-dropdown.open { display: block; }
.search-result {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--surface-3); }
.search-result-top { display: flex; align-items: center; gap: 8px; }
.search-result-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.search-result-cat {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 2px 8px;
  border-radius: 980px;
  white-space: nowrap;
}
.search-result-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result mark {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}
.search-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.search-empty a { color: var(--primary); text-decoration: none; }
.search-empty a:hover { text-decoration: underline; }

/* NAV SEARCH (article pages) */
.nav-search { position: relative; flex: 1; max-width: 340px; margin: 0 24px; }
.nav-search .search-icon { left: 12px; width: 15px; height: 15px; }
.nav-search-input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}
.nav-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search .search-dropdown { min-width: 380px; max-height: 380px; }
@media (max-width: 700px) {
  .nav-search { display: none; }
}

/* SCREENSHOT PLACEHOLDER */
/* Editorial note to ourselves about a screenshot we still owe. Hidden rather
   than deleted: a reader should not be shown our to-do list, and we still want
   to know where the shots go. Delete a placeholder as its screenshot lands. */
.shot-placeholder { display: none; }

.shot-placeholder--show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 260px;
  margin: 24px 0;
  padding: 32px;
  border: 2px dashed rgba(10,132,255,0.35);
  border-radius: 16px;
  background: rgba(10,132,255,0.03);
  color: var(--text-muted);
  text-align: center;
}
.shot-placeholder svg { color: rgba(10,132,255,0.5); }
.shot-placeholder .shot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,132,255,0.7);
}
.shot-placeholder .shot-caption {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
}

/* SCREENSHOT */
/* A placeholder once its shot lands (scripts/support-shots/place.mjs). The
   shots are the portal in its light theme, so each sits on its own lit card
   rather than straight on the dark page. */
.article-shot {
  margin: 24px 0;
}
/* The img carries the size it was on screen (place.mjs halves the 2x
   pixels), so a small crop like a single pane stays its own size rather than
   being blown up to the column. */
.article-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-1);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
.article-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

/* RELATED ARTICLES + HELPFUL FOOTER */
.related-articles {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-articles .related-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.related-card {
  display: block;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.related-card-title { font-size: 14px; font-weight: 600; }
.related-card-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.5; }
.helpful-line {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.helpful-line a { color: var(--primary); text-decoration: none; }
.helpful-line a:hover { text-decoration: underline; }

/* READING TIME */
.read-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ON THIS PAGE (mini TOC) */
.article-body .toc {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 28px 0 32px;
}
.article-body .toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-body .toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.article-body .toc li {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}
.article-body .toc li:last-child { margin-bottom: 0; }
.article-body .toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.article-body .toc a:hover { color: var(--primary); text-decoration: none; }

/* HEADING ANCHORS */
.article-body h2 { scroll-margin-top: 76px; }
.article-body a.heading-anchor {
  position: relative;
  margin-left: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.article-body h2:hover .heading-anchor,
.article-body a.heading-anchor:focus-visible { opacity: 1; }
.article-body a.heading-anchor:hover { color: var(--primary); text-decoration: none; }
.anchor-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.anchor-tip.show { opacity: 1; }

/* HELPFUL WIDGET */
.helpful-widget {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 62px;
}
.helpful-q { font-size: 14px; font-weight: 600; color: var(--text); }
.helpful-actions { display: flex; align-items: center; gap: 8px; }
.helpful-btn {
  appearance: none;
  padding: 6px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 980px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.helpful-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surface-3);
}
.helpful-thanks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.helpful-thanks-yes { color: var(--accent-green); font-weight: 600; }
.helpful-thanks a { color: var(--primary); text-decoration: none; }
.helpful-thanks a:hover { text-decoration: underline; }

/* UP NEXT CARD */
/* a.upnext outweighs .article-body a so the card text stays white. */
a.upnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(10,132,255,0.09), var(--surface-1) 60%);
  border: 1px solid rgba(10,132,255,0.35);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.upnext:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(10,132,255,0.12);
  text-decoration: none;
}
.upnext-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 6px;
}
.upnext-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.upnext-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}
.upnext-arrow { flex-shrink: 0; color: var(--primary); transition: transform 0.2s; }
.upnext:hover .upnext-arrow { transform: translateX(4px); }

/* SECTION HEADING */
.section-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .category-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Keep "Open App" reachable; only the Home link goes. Hiding the whole
     group left the nav as a bare logo with nowhere to go. */
  .nav-links a[href*="rentalhq.app"]:not([href*="my."]) { display: none; }
  .nav-links { gap: 16px; flex-shrink: 0; }
  /* One row on a phone: the links never wrap, and the logo and "Support"
     give way first. */
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-brand { gap: 6px; min-width: 0; }
  .nav-inner .nav-logo-img { height: 20px; }
  .nav-brand-sub { margin-left: 0; white-space: nowrap; }
  .nav-links a { white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav-brand-sub { display: none; }
}


.nav-logo-img { height: 24px; width: auto; display: block; }


/* Download page: one action per platform, so the action is the thing you see. */
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(10,132,255,0.22), rgba(10,132,255,0.05) 70%);
  border: 1px solid rgba(10,132,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 6px 18px -10px rgba(10,132,255,0.55);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.download-button:hover {
  transform: translateY(-1px);
  border-color: rgba(10,132,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 26px -10px rgba(10,132,255,0.75);
}
.download-note {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
  .download-button:hover { transform: none; }
}


/* The asterisk against a price. Quiet, but on the page rather than in terms. */
.article-footnote {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Glass ───────────────────────────────────────────────────────────── */
/* Cards and panels take a little of the backdrop through them, as the
   portal's do. Declared once here rather than at each rule, so the look is
   one decision. The search dropdown stays nearly solid: a list of results
   read through moving colour is a worse list. */
.category-card,
.article-link,
.related-card,
.article-body .toc,
.helpful-widget,
.search-input,
.nav-search-input {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-color: var(--glass-border);
}
.article-link:hover,
.related-card:hover,
.category-card:hover {
  background: var(--glass-bg-hover);
}
.search-dropdown {
  background: var(--glass-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
@media (prefers-reduced-transparency: reduce) {
  .category-card, .article-link, .related-card, .article-body .toc,
  .helpful-widget, .search-input, .nav-search-input, .search-dropdown {
    background: var(--surface-1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  nav:not([data-scrolled]) { background: rgba(0,0,0,0.5); }
}

/* ── Footer: the same on the marketing site and the support site ────────
   Left-aligned: the brand and a way in, four columns, then the mark itself
   standing on a line of blue light, and the legal line underneath. */
.sf {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  padding: 64px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.6) 100%);
  text-align: left;
}
.sf::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -45%;
  width: 130%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(10, 132, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.sf-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 40px;
}
.sf-logo { height: 22px; width: auto; display: block; }
.sf-tagline {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.sf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0A84FF;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(10, 132, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sf-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(10, 132, 255, 0.5); }
.sf-cta:focus-visible, .sf-col a:focus-visible, .sf-top:focus-visible { outline: 2px solid #0A84FF; outline-offset: 3px; }
.sf-col h3 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sf-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.sf-col a:hover { color: var(--text); transform: translateX(2px); }
.sf-bottom {
  position: relative;
  max-width: 1200px;
  margin: 44px auto 0;
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.sf-bottom strong { font-weight: 500; color: var(--text-secondary); }
.sf-legal { max-width: 72ch; margin: 0; text-wrap: balance; }
.sf-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.sf-top {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sf-top:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
/* The mark: the official artwork, exactly as the portal ships it
   (rental-hq-mark-glyph.png is packages/web/public/logo-mark-glyph.png,
   320 x 320, never redrawn), standing on a line of light with a faint
   reflection below. It fades up as the footer comes into view. */
.sf-sign {
  position: relative;
  max-width: 1200px;
  margin: 72px auto 0;
  display: flex;
  justify-content: center;
}
.sf-sign::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 24%, rgba(100, 210, 255, 0.95) 50%, rgba(255, 255, 255, 0.1) 76%, rgba(255, 255, 255, 0) 100%);
}
.sf-sign::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 520px;
  max-width: 100%;
  height: 180px;
  transform: translate(-50%, 50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(10, 132, 255, 0.32), rgba(10, 132, 255, 0) 70%);
  pointer-events: none;
}
/* The glyph keeps clear space round it inside its own file, so the image is
   drawn at 96px and pulled in 12px each side: the mark itself stands about
   66px tall in a 72px slot, and the reflection's offset allows for that
   space. 96px is under the file's own 320, so it stays crisp at 3x. */
.sf-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 96px;
  height: 96px;
  margin: -12px;
  -webkit-box-reflect: below -15px linear-gradient(transparent 50%, rgba(255, 255, 255, 0.2));
  filter: drop-shadow(0 12px 28px rgba(10, 132, 255, 0.35));
  transition: filter 0.6s ease, opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sf-mark:hover { filter: drop-shadow(0 12px 36px rgba(10, 132, 255, 0.7)); }
.sf-sign[data-armed] .sf-mark { opacity: 0.15; transform: scale(0.85); }
@media (prefers-reduced-motion: reduce) {
  .sf-mark { transition: none; }
}
@media (max-width: 900px) {
  .sf-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sf-inner { grid-template-columns: 1fr; }
}

/* The status line in the footer: a dot and a few words, read live from the
   public status endpoint, linking to the status page. */
.sf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sf-status:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); text-decoration: none; }
.sf-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.sf-status[data-state="operational"] .sf-dot { background: #30D158; box-shadow: 0 0 8px rgba(48, 209, 88, 0.7); }
.sf-status[data-state="maintenance"] .sf-dot { background: #0A84FF; box-shadow: 0 0 8px rgba(10, 132, 255, 0.7); }
.sf-status[data-state="degraded"] .sf-dot { background: #FF9F0A; box-shadow: 0 0 8px rgba(255, 159, 10, 0.7); }
.sf-status[data-state="partial_outage"] .sf-dot,
.sf-status[data-state="major_outage"] .sf-dot { background: #FF453A; box-shadow: 0 0 8px rgba(255, 69, 58, 0.7); }
.sf-status[data-state="operational"] .sf-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #30D158; animation: sf-ping 2.4s ease-out infinite;
}
@keyframes sf-ping { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sf-status .sf-dot::after { animation: none; } }

/* ── What's New (articles/changelog.html) ──
   A release is a heading, a line saying what it was about, and its changes
   under New, Improved and Fixed. The kind is a small coloured label so the
   list reads at a glance; the platforms a change is limited to sit after it. */
/* The index above the releases: the last five, one line each, then every
   release by its minor series, then 1.x and the months before 1.0 folded
   under Earlier releases. Type and alignment carry it: hairline rows, no
   pills, the version in tabular figures so the columns line up. */
.changelog-index { margin: 8px 0 32px; }
.changelog-index-label {
  margin: 28px 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article-body .changelog-recent,
.article-body .changelog-series { list-style: none; padding-left: 0; margin: 0; }
.article-body .changelog-recent li,
.article-body .changelog-series li { margin: 0; line-height: 1.5; }
.changelog-recent li + li,
.changelog-series li + li { border-top: 1px solid var(--border); }
.article-body .changelog-recent a {
  display: grid;
  grid-template-columns: 64px 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 0 16px;
  padding: 11px 0;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
}
.changelog-recent-version {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.changelog-recent-date {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.changelog-recent-summary {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.article-body .changelog-recent a:hover .changelog-recent-summary { color: var(--text); }
.article-body .changelog-recent a:hover .changelog-recent-version { color: var(--primary); }
.changelog-series-row {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 0 16px;
  align-items: baseline;
  padding: 0;
}
.changelog-series-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
}
.changelog-series-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.changelog-series-when { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.changelog-series-links {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.article-body .changelog-series-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.article-body .changelog-series-links a:hover { color: var(--primary); }
.changelog-earlier { margin-top: 12px; border-top: 1px solid var(--border); }
.changelog-earlier > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}
.changelog-earlier > summary::-webkit-details-marker { display: none; }
.changelog-earlier > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.changelog-earlier[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.changelog-earlier > summary:hover { color: var(--text); }
.changelog-index a:focus-visible,
.changelog-earlier > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .changelog-earlier > summary::after { transition: none; }
}
@media (max-width: 560px) {
  /* Version and date on one line, what it was about under them. */
  .article-body .changelog-recent a { grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; }
  .changelog-recent-summary {
    grid-column: 1 / -1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  .changelog-series-row { grid-template-columns: 84px minmax(0, 1fr); gap: 0 8px; }
  .changelog-series-head { flex-direction: column; gap: 0; padding: 9px 0; }
  .changelog-series-when { font-size: 12px; }
}
.changelog .release {
  padding-top: 8px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.changelog .release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; }
.changelog .release-date { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.changelog .release-summary { color: var(--text-secondary); margin-top: 4px; }
.changelog .change-kind {
  display: inline-block;
  margin: 22px 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.changelog .change-new { color: var(--primary); background: var(--primary-glow); }
.changelog .change-improved { color: var(--accent-purple); background: rgba(191, 90, 242, 0.12); }
.changelog .change-fixed { color: var(--accent-green); background: rgba(48, 209, 88, 0.12); }
.changelog .changes { margin-top: 4px; }
.changelog .changes li { margin-bottom: 10px; }
.changelog .change-platforms { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.changelog .platform {
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  color: var(--text-muted);
}
