.page-header-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; }
.page-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.context-select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface-card); }
.version-badge-static {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--chip-border); background: var(--chip-background); font-size: 13px; font-weight: 700; color: var(--chip-text);
}

/* Gong-style version-history timeline */
.version-timeline { position: relative; padding-left: 28px; }
.version-timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.version-release { position: relative; margin-bottom: 36px; }
.version-release:last-child { margin-bottom: 0; }
.version-release-marker { position: absolute; left: -28px; top: 4px; }
.version-release-dot {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple-dark); border: 2px solid var(--surface-card); box-shadow: 0 0 0 2px var(--purple-dark);
}
.version-release-heading { margin: 0 0 14px; font-size: 18px; }
.version-release-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px;
  border: none; border-radius: 8px; background: var(--purple-soft); color: var(--purple-dark);
  font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
}
.version-release-toggle:hover { background: var(--purple-soft-hover, var(--purple-soft)); }
.version-release-toggle:focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 2px; }
.version-release-count { font-size: 12px; font-weight: 600; color: var(--muted); }
.version-release-chevron { display: inline-block; transition: transform .15s ease; font-size: 12px; }
.version-release-toggle[aria-expanded="true"] .version-release-chevron { transform: rotate(180deg); }
.version-release-panel { padding-top: 2px; }
.version-release[hidden] { display: none; }
.version-history-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.version-search-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version-search-row input[type="search"] {
  flex: 1 1 260px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
}
.version-result-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.version-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.version-filter-row select { min-height: 44px; }
.version-empty-state { color: var(--muted); padding: 20px 0; text-align: center; }
.version-entry[hidden] { display: none; }
.version-entry {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; background: var(--surface-card);
}
.version-entry:last-child { margin-bottom: 0; }
.version-entry h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.version-entry p { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.version-entry-link { font-size: 13px; font-weight: 700; color: var(--purple-dark); text-decoration: none; }
.version-entry-link:hover { text-decoration: underline; }
.page-hero { padding: 26px 0 8px; }
.page-hero h1 { margin: 4px 0 6px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -1px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 720px; }
.page-hero .help-search { margin-top: 18px; }
.page-body { padding: 18px 0 40px; display: grid; gap: 22px; min-width: 0; }
.page-body > * { min-width: 0; }
.section-intro { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.subcard { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface-2); }
.subcard h3 { margin: 0 0 6px; font-size: 16px; }
.subcard h3 a { text-decoration: none; color: inherit; }
.subcard h3 a:hover { text-decoration: underline; }
.subcard .card-sub { margin: 0 0 10px; }

/* ---- Rich product page design system (destination cards, spotlight, link rows) ----
   Only two accents are governed: brand (indigo, the default for every
   non-semantic destination card) and semantic red (warnings/errors
   only). The old per-product rainbow (blue/purple/orange/teal/navy)
   is gone — every card used one of those purely decoratively, never
   to mean anything (verified: zero warning/error content used them). */
:root {
  --accent-indigo: var(--brand-indigo-700);
  --accent-red: var(--status-error);
}

/* Product-scoped search remains available while readers move through long pages. */
.main-stage > .help-search {
  position: sticky; top: 82px; z-index: 35;
  width: min(calc(100% - 52px), var(--max)); max-width: none;
  margin: 10px auto 0;
}
.main-stage > .answer-panel {
  width: min(calc(100% - 52px), 720px);
  margin: 12px auto 0;
}

/* Sticky local product nav */
.product-subnav {
  position: sticky;
  top: 155px;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.product-subnav .shell { display: flex; gap: 4px; overflow-x: auto; padding-top: 4px; padding-bottom: 4px; }
.product-subnav a {
  flex: 0 0 auto; text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 13px;
  padding: 10px 14px; border-radius: 10px; white-space: nowrap;
}
.product-subnav a:hover { color: var(--purple-dark); background: var(--purple-soft); }
.product-subnav::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 28px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.97));
  pointer-events: none; opacity: 1; transition: opacity .15s ease;
}
.product-subnav.at-end::after { opacity: 0; }
.product-subnav::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 28px; z-index: 1;
  background: linear-gradient(to left, transparent, rgba(255,255,255,.97));
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.product-subnav.scrolled::before { opacity: 1; }
.product-subnav a.active {
  color: var(--purple-dark);
  background: var(--purple-soft);
  box-shadow: inset 0 -2px 0 var(--purple-dark);
}

/* Popular-near-search row */
.popular-row { max-width: 720px; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.popular-row strong { width: 100%; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.popular-row button {
  border: 0; background: transparent; padding: 0; color: var(--purple-dark); font: inherit; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.popular-row button:hover { text-decoration: underline; }

/* What's New spotlight */
.spotlight {
  border-radius: 20px; padding: 26px;
  background: var(--purple-soft);
  border: 1px solid rgba(125, 92, 240, .18);
  color: var(--ink);
}
.spotlight-head h2 { margin: 0 0 8px; font-size: 20px; }
.spotlight-release-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.release-badge { background: var(--brand-indigo-700); color: var(--text-inverse); font-weight: 800; font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.release-badge-mini { display: inline-flex; align-items: center; background: var(--chip-background); color: var(--chip-text); border: 1px solid var(--chip-border); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.spotlight-date { color: var(--muted); font-size: 13px; }
.spotlight-release-row .mini-button.primary { margin-left: auto; }
.spotlight-summary { color: var(--muted); font-size: 14px; margin: 10px 0 18px; max-width: 640px; }
.spotlight-grid { display: flex; flex-direction: column; gap: 10px; }
.spotlight-card {
  background: var(--surface-card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
}
/* One featured horizontal update: full-width, slightly more prominent
   than the compact secondary rows — no unexplained "Featured" badge,
   the layout difference itself carries the meaning. */
.spotlight-card.featured { flex-direction: column; align-items: flex-start; padding: 20px 22px; }
.spotlight-card:not(.featured) { flex-wrap: wrap; }
.spotlight-card h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.spotlight-card:not(.featured) h3 { margin: 0; flex: 1 1 240px; font-size: 14px; }
.spotlight-card p { margin: 0 0 10px; font-size: 13px; color: var(--text-primary); }
.spotlight-card:not(.featured) p { display: none; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.spotlight-card:not(.featured) .chip-row { margin-bottom: 0; }
/* Audience (who it's for) and platform (where it runs) are visually
   distinct chip styles — never merged into one undifferentiated set,
   which is what let ABAP read as if it were a platform like iOS/Android. */
.audience-chip { font-size: 11px; font-weight: 700; color: var(--chip-text); background: var(--chip-background); border: 1px solid var(--chip-border); border-radius: 999px; padding: 2px 9px; }
.platform-chip { font-size: 11px; font-weight: 700; color: var(--text-secondary); background: var(--surface-muted); border: 1px solid var(--border-default); border-radius: 999px; padding: 2px 9px; }
.spotlight-detail-link { font-size: 13px; font-weight: 700; color: var(--purple-dark); text-decoration: none; white-space: nowrap; }
.spotlight-detail-link:hover { text-decoration: underline; }
.spotlight-footer { margin-top: 16px; display: flex; gap: 22px; flex-wrap: wrap; }
.spotlight-footer-link {
  border: 0; background: transparent; color: var(--purple-dark); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
}
.spotlight-footer-link:hover { text-decoration: underline; }

/* Current-release section (PB-HC-UIUX-1F): every card uses the same
   full-width "featured" treatment — no oversized first card, no
   compressed secondary rows. First two show; the rest sit in a hidden
   region toggled by the Show all/Show fewer control. */
.current-release-list { display: flex; flex-direction: column; gap: 10px; }
.current-release-visible, .current-release-more { display: flex; flex-direction: column; gap: 10px; }
.current-release-more[hidden] { display: none; }
.cr-expand-btn { align-self: flex-start; margin-top: 2px; }
.previous-releases-block {
  margin-top: 22px; padding: 18px 22px; border-radius: 14px;
  background: var(--surface-muted); border: 1px solid var(--border-subtle);
}
.previous-releases-block h3 { margin: 0 0 4px; font-size: 16px; }
.previous-releases-block p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }

/* Destination cards (bento) */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento-grid .dest-card.wide { grid-column: 1 / -1; }
.dest-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--surface-card);
  border-top: 4px solid var(--accent, var(--purple));
  display: flex; flex-direction: column;
}
.dest-card.accent-indigo { --accent: var(--accent-indigo); }
.dest-card.accent-red { --accent: var(--accent-red); }
.dest-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dest-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-soft); /* fallback for browsers without color-mix() support */
  background: color-mix(in srgb, var(--accent, var(--purple)) 14%, white); color: var(--accent, var(--purple)); flex: 0 0 auto;
}
.dest-icon svg { width: 20px; height: 20px; }
.dest-icon img { width: 20px; height: 20px; object-fit: contain; }
.dest-card h3 { margin: 0; font-size: 16px; }
.dest-card .card-sub { margin: 0 0 14px; font-size: 13px; }
.dest-card .link-list { margin-bottom: 6px; }
.troubleshoot-card { --accent: var(--muted); background: var(--surface-2); }
.troubleshoot-card .link-row:hover { background: var(--surface-card); }
.ts-link-row { display: flex; align-items: center; gap: 10px; }
.ts-link-row .link-row { flex: 1; min-width: 0; }
.ts-kind-chip {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: var(--surface-card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px;
}
.view-all-link {
  font-size: 13px; font-weight: 700; color: var(--accent, var(--purple-dark)); text-decoration: none;
  margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px;
}
.view-all-link:hover { text-decoration: underline; }

/* Link-list rows: real navigation, not chips */
.link-list { display: flex; flex-direction: column; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 4px; border-radius: 8px; border: 0; background: transparent; width: 100%; text-align: left;
  color: var(--purple-dark); font: inherit; font-weight: 650; font-size: 14px; cursor: pointer;
}
.link-row:hover { background: var(--purple-soft); text-decoration: underline; }
.link-row::after { content: "→"; color: var(--muted); font-weight: 400; }
.link-row:hover::after { color: var(--purple-dark); }

/* Document rows (Complete guides) */
.doc-list { display: flex; flex-direction: column; gap: 2px; }
.doc-row { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-top: 1px solid var(--line); }
.doc-row:first-child { border-top: 0; }
.doc-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--purple-soft); color: var(--purple-dark); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.doc-icon svg { width: 18px; height: 18px; }
.doc-info { flex: 1; min-width: 0; }
.doc-info strong { display: block; font-size: 14px; }
.doc-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.doc-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.doc-actions a.html-link {
  display: inline-block; text-decoration: none; border-radius: 9px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; color: var(--text-inverse); background: var(--purple-dark);
}
.doc-actions a.html-link:hover { background: var(--button-primary-hover); }
.doc-actions .pdf-btn {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--button-secondary-border); background: var(--surface-card); border-radius: 9px; padding: 6px 12px; font-size: 13px;
  font-weight: 700; color: var(--brand-indigo-700); cursor: pointer;
}
.doc-actions .pdf-btn:hover { background: var(--brand-lavender-50); border-color: var(--brand-indigo-800); color: var(--brand-indigo-800); }

@media (max-width: 900px) {
  .spotlight-card:not(.featured) { flex-direction: column; align-items: flex-start; }
  .bento-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}
#overview, #whats-new, #use, #deploy, #troubleshoot, #guides { scroll-margin-top: 215px; }
