/* Aksylo Knowledge Hub — static docs stylesheet.
   Dark industrial, consistent with the Aksylo product identity. System font
   stack keeps first paint fast (no webfont request on content pages). */

:root {
  --bg: #0b0b0c;
  --bg-elevated: #111113;
  --surface: #161618;
  --border: #262629;
  --border-strong: #39393d;
  --orange: #ff7200;
  --orange-hover: #ff8a25;
  --orange-soft: rgba(255, 114, 0, 0.13);
  --text: #f2f0ec;
  --text-2: #b9b7b2;
  --text-3: #85837e;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.dx-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ── header ─────────────────────────────────────────────────────────── */
.dx-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.dx-header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 16px;
}
.dx-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.dx-brand img { display: block; }
.dx-brand-word { height: 20px; width: auto; }
.dx-brand-docs {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--orange); border: 1px solid var(--border-strong);
  border-radius: 5px; padding: 2px 7px; text-transform: uppercase;
}
.dx-header-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.dx-header-nav a {
  color: var(--text-2); font-size: 13.5px; font-weight: 550;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.dx-header-nav a:hover { color: var(--text); text-decoration: none; }
.dx-btn-cta {
  background: var(--orange); color: #140a02 !important;
  font-weight: 700; border-radius: 8px; padding: 8px 14px !important;
}
.dx-btn-cta:hover { background: var(--orange-hover); text-decoration: none !important; }
.dx-btn-ghost {
  display: inline-block; border: 1px solid var(--border-strong);
  color: var(--text); border-radius: 8px; padding: 8px 14px; font-weight: 600;
}
.dx-btn-ghost:hover { text-decoration: none; border-color: var(--text-3); color: var(--text); }

/* ── search ─────────────────────────────────────────────────────────── */
.dx-search { position: relative; flex: 1 1 auto; max-width: 420px; }
.dx-search input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 13px; font: inherit; font-size: 14px;
}
.dx-search input::placeholder { color: var(--text-3); }
.dx-search input:focus { border-color: var(--orange); outline: none; }
.dx-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(0,0,0,.7);
  max-height: 60vh; overflow-y: auto;
}
.dx-search-results a {
  display: block; padding: 11px 14px; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.dx-search-results a:last-child { border-bottom: 0; }
.dx-search-results a:hover, .dx-search-results a.dx-active {
  background: var(--surface); text-decoration: none;
}
.dx-search-results strong { display: block; font-size: 14px; }
.dx-search-results span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.dx-search-results em { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: .06em; }
.dx-search-empty { padding: 14px; font-size: 13.5px; color: var(--text-3); }

/* ── layout ─────────────────────────────────────────────────────────── */
.dx-layout {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 40px;
}
.dx-sidebar {
  padding: 28px 0 60px;
  border-right: 1px solid var(--border);
  font-size: 14px;
  position: sticky; top: 56px; align-self: start;
  max-height: calc(100vh - 56px); overflow-y: auto;
}
.dx-sidebar-home {
  display: block; color: var(--text-2); font-weight: 650;
  padding: 6px 0; margin-right: 16px;
}
.dx-sidebar-home[aria-current="page"] { color: var(--text); font-weight: 700; }
.dx-sidebar details { margin-top: 10px; margin-right: 16px; }
.dx-sidebar summary {
  cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); padding: 6px 0;
  list-style: none;
}
.dx-sidebar summary::-webkit-details-marker { display: none; }
.dx-sidebar summary::before { content: "▸ "; color: var(--text-3); }
.dx-sidebar details[open] summary::before { content: "▾ "; }
.dx-sidebar ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 8px; }
/* Nesting is carried by indent; the current page by weight and surface —
   no rail, and the active state never rests on colour alone. */
.dx-sidebar li a {
  display: block; color: var(--text-2); padding: 5px 10px; border-radius: 6px;
}
.dx-sidebar li a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.dx-sidebar li a[aria-current="page"] {
  color: var(--text); background: var(--surface); font-weight: 600;
}

.dx-main { padding: 28px 0 80px; min-width: 0; }
.dx-rail { padding: 28px 0; }
.dx-toc { position: sticky; top: 84px; font-size: 13px; }
.dx-toc-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 8px;
}
.dx-toc ul { list-style: none; margin: 0; padding: 0; }
.dx-toc li a { display: block; color: var(--text-3); padding: 5px 0; }
.dx-toc li a:hover { color: var(--text); text-decoration: none; }
.dx-toc li a.dx-active { color: var(--text); font-weight: 600; }
.dx-toc-l3 a { padding-left: 14px !important; }
.dx-toc-mobile { display: none; }

/* ── article typography ─────────────────────────────────────────────── */
.dx-breadcrumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }
.dx-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.dx-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-3); }
.dx-breadcrumb a { color: var(--text-3); }
.dx-breadcrumb a:hover { color: var(--text); }

.dx-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 10px;
}
.dx-main h1 {
  font-size: clamp(30px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 18px;
}
.dx-lead { font-size: 17px; color: var(--text-2); max-width: 640px; }
/* The direct answer is the most important paragraph on the page. It earns
   that rank from type size, weight and a raised surface — one separator,
   not a border plus a rail plus a tint. */
.dx-direct-answer {
  background: var(--surface); border-radius: 10px;
  padding: 18px 20px; margin: 0 0 16px;
}
.dx-direct-answer p {
  color: var(--text); font-size: 17px; line-height: 1.65;
  font-weight: 450; margin: 0;
}
.dx-meta { font-size: 13px; color: var(--text-3); margin: 0 0 26px; }

/* Availability status for something the page describes but does not claim.
   Quiet on purpose: it is a fact about the feature, not a warning about the
   article, and a loud banner would read as an apology. One separator — a left
   rule would be a second, and the label already carries the rank. */
.dx-status-notice {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 18px 4px; margin: 0 0 18px;
}
.dx-status-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 8px !important;
}
.dx-status-notice ul { margin: 0 0 10px; padding-left: 18px; }
.dx-status-notice li { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0 0 4px; }
.dx-status-notice strong { color: var(--text); }

.dx-main article { max-width: 720px; }
.dx-main article p { color: var(--text-2); margin: 0 0 16px; }
.dx-main article strong { color: var(--text); }
.dx-main h2 {
  font-size: 23px; font-weight: 750; letter-spacing: -0.015em;
  margin: 40px 0 14px; padding-top: 18px; border-top: 1px solid var(--border);
}
.dx-main h3 { font-size: 17.5px; font-weight: 700; margin: 26px 0 10px; }
.dx-anchor { color: inherit; }
.dx-anchor:hover { color: inherit; text-decoration: none; }
.dx-anchor:hover::after { content: " #"; color: var(--orange); font-weight: 400; }

.dx-main article ul, .dx-main article ol { color: var(--text-2); padding-left: 24px; margin: 0 0 16px; }
.dx-main article li { margin-bottom: 6px; }
.dx-main article li::marker { color: var(--text-3); }

code {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text);
}

.dx-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
th { color: var(--text); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--bg-elevated); }
tbody tr:last-child td { border-bottom: 0; }

.dx-callout {
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 4px 18px; margin: 0 0 18px; background: var(--bg-elevated);
}
.dx-callout-warn { border-color: rgba(255, 179, 78, 0.5); }
.dx-callout p { margin: 12px 0; }

.dx-example {
  background: var(--bg-elevated); border-radius: 12px;
  padding: 16px 20px 6px; margin: 0 0 18px;
}
.dx-example-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 10px !important;
}

.dx-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.dx-steps > li {
  counter-increment: step; position: relative; padding: 0 0 18px 46px;
  border-left: 1px solid var(--border); margin-left: 15px;
}
.dx-steps > li:last-child { border-left-color: transparent; }
.dx-steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -16px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  color: var(--text-2); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.dx-steps > li > strong { display: block; padding-top: 4px; }
.dx-steps > li > p { margin-top: 6px !important; }

.dx-flow {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px; margin: 0 0 18px;
}
.dx-flow-step {
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 8px; padding: 8px 18px; font-size: 14px; font-weight: 600;
}
.dx-flow-arrow { color: var(--text-3); line-height: 1; }

/* "Di Aksylo" is the one block on an educational page that speaks about the
   product, so it keeps a tint — but a tint OR a border, never both, and the
   accent lives in the label rather than around the whole box. */
.dx-product {
  background: var(--orange-soft); border-radius: 12px;
  padding: 14px 20px 4px; margin: 0 0 18px;
}
.dx-product-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 8px !important;
}
.dx-product p { color: var(--text); }

.dx-cta {
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: var(--bg-elevated);
  padding: 22px 24px; margin: 36px 0 0;
}
.dx-cta p { color: var(--text); font-weight: 600; margin: 0 0 14px; }
.dx-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-cta-actions a { font-size: 14px; }

.dx-related { margin-top: 36px; }
.dx-related h2 { border-top: 1px solid var(--border); }
.dx-related ul, .dx-card-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.dx-related a, .dx-card-list a {
  display: block; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-elevated); padding: 14px 18px; color: var(--text);
}
.dx-related a:hover, .dx-card-list a:hover {
  text-decoration: none; border-color: var(--border-strong); background: var(--surface);
}
.dx-related strong, .dx-card-list strong { display: block; font-size: 15px; }
.dx-related span, .dx-card-list span {
  display: block; font-size: 13px; color: var(--text-3); margin-top: 4px;
}
.dx-card-list em { font-style: normal; display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.dx-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.dx-pager a {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px;
  color: var(--text); font-weight: 600; font-size: 14px; max-width: 48%;
}
.dx-pager a:hover { text-decoration: none; border-color: var(--border-strong); }
.dx-pager a span { display: block; font-size: 11px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.dx-pager-next { text-align: right; margin-left: auto; }

/* ── docs home ──────────────────────────────────────────────────────── */
.dx-home { max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }
.dx-hero { padding: 64px 0 36px; text-align: center; }
.dx-hero h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em; margin: 0 0 14px; }
.dx-hero .dx-lead { margin: 0 auto 26px; }
.dx-search-hero { max-width: 560px; margin: 0 auto; }
.dx-search-hero input { padding: 13px 18px; font-size: 15.5px; border-radius: 12px; }
.dx-popular { font-size: 13.5px; color: var(--text-3); margin-top: 16px; }
.dx-card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 20px; }
.dx-entity-teaser { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 28px; }
.dx-entity-teaser h2 { font-size: 20px; margin: 0 0 10px; }
.dx-entity-teaser p { color: var(--text-2); }

/* ── footer ─────────────────────────────────────────────────────────── */
.dx-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.dx-footer-inner { max-width: var(--max); margin: 0 auto; padding: 36px 20px; font-size: 13.5px; color: var(--text-3); }
.dx-footer-inner p { margin: 0 0 8px; }
.dx-footer-logo { display: block; }
.dx-footer nav a { color: var(--text-2); }
.dx-footer-copy { margin-top: 16px !important; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .dx-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .dx-rail { display: none; }
  .dx-toc-mobile { display: block; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
  .dx-toc-mobile summary { cursor: pointer; font-weight: 650; }
  .dx-toc-mobile .dx-toc { position: static; margin-top: 8px; }
}
@media (max-width: 800px) {
  /* Content first on phones (PRD §65): the article leads, the browse tree
     moves below it, headed by its own label. */
  .dx-layout { display: flex; flex-direction: column; gap: 0; }
  .dx-main { order: 1; padding-top: 20px; }
  .dx-sidebar {
    order: 2;
    position: static; max-height: none; border-right: 0;
    border-top: 1px solid var(--border); padding: 20px 0 8px;
  }
  .dx-sidebar::before {
    content: "Jelajahi dokumentasi";
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
  }
  .dx-rail { display: none; }
  .dx-header-nav a:not(.dx-btn-cta) { display: none; }
  /* Brand and CTA share the first row; search takes a full row of its own
     rather than being squeezed into a stub between them. */
  .dx-header-inner {
    height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
    row-gap: 10px;
  }
  .dx-search { order: 3; flex: 1 0 100%; max-width: none; }
  .dx-pager { flex-direction: column; }
  .dx-pager a { max-width: none; }
  .dx-hero { padding: 40px 0 28px; }
}

/* Preview banner — only ever rendered on /docs-preview, never on a live page. */
.dx-preview-banner {
  margin: 0;
  padding: 10px 24px;
  background: var(--orange);
  color: #17110a;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
