/* Panduan kalcerPOS (docs.kalcerpos.com). Hand-written; pages are generated by
   scripts/build-docs.mjs. Brand: pandan #0D5A3B, struk #F5F4EE, aren #24170E,
   Unbounded for titles (never under 18px), Plus Jakarta Sans for the rest. */
:root {
  --bg: #FFFFFF; --soft: #F5F4EE; --raised: #FFFFFF; --ink: #24170E; --muted: #6A5D52;
  --line: #DEDBD0; --accent: #0D5A3B; --accent-ink: #FFFFFF; --accent-soft: #D5EBDD; --link: #0D5A3B;
  --top: #0D5A3B; --top-ink: #F5F4EE;
  --note: #EAF2FB; --note-line: #2F6FB0; --tip: #E6F3EB; --tip-line: #0D5A3B;
  --warn: #FDF1DC; --warn-line: #C27A00; --plan: #F1ECFD; --plan-line: #7A62D6;
  --code: #EFEDE5; --shadow: 0 2px 4px rgba(36,23,14,.05), 0 10px 24px rgba(36,23,14,.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Arial Black", sans-serif;
  --top-h: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17110B; --soft: #1F170F; --raised: #22190F; --ink: #F2EFE6; --muted: #B3A698;
  --line: #3A2E24; --accent: #4CC487; --accent-ink: #0F1F15; --accent-soft: #123524; --link: #6FD39F;
  --top: #0F1F15; --top-ink: #F2EFE6;
  --note: #13202E; --note-line: #7DB3E8; --tip: #102619; --tip-line: #4CC487;
  --warn: #2A1E0A; --warn-line: #F2A01F; --plan: #1E1830; --plan-line: #B7A3F2;
  --code: #2C2117; --shadow: 0 2px 10px rgba(0,0,0,.4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110B; --soft: #1F170F; --raised: #22190F; --ink: #F2EFE6; --muted: #B3A698;
    --line: #3A2E24; --accent: #4CC487; --accent-ink: #0F1F15; --accent-soft: #123524; --link: #6FD39F;
    --top: #0F1F15; --top-ink: #F2EFE6;
    --note: #13202E; --note-line: #7DB3E8; --tip: #102619; --tip-line: #4CC487;
    --warn: #2A1E0A; --warn-line: #F2A01F; --plan: #1E1830; --plan-line: #B7A3F2;
    --code: #2C2117; --shadow: 0 2px 10px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--top); color: var(--top-ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--top-ink); text-decoration: none; font-weight: 600; flex: none; }
.brand img { display: block; }
.brand span { padding-left: 10px; border-left: 1px solid rgba(245,244,238,.35); font-size: 15px; }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: 40px; border-radius: 10px; border: 0; padding: 0 40px 0 14px; font: inherit; font-size: 15px; background: #FFFFFF; color: #24170E; }
.search input::placeholder { color: #6A5D52; }
.search kbd { position: absolute; right: 10px; top: 9px; font: 12px var(--font); color: #6A5D52; border: 1px solid #DEDBD0; border-radius: 6px; padding: 1px 7px; background: #F5F4EE; }
.results { position: absolute; top: 46px; left: 0; right: 0; max-height: 70vh; overflow: auto; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a.sel { background: var(--soft); }
.results b { display: block; font-size: 15px; }
.results small { color: var(--muted); font-size: 12px; }
.results .empty { padding: 12px; color: var(--muted); font-size: 14px; }
.top-links { display: flex; align-items: center; gap: 18px; flex: none; }
.top-links a { color: var(--top-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.top-links a:hover { text-decoration: underline; }
.top-links .cta { background: var(--soft); color: #0D5A3B; padding: 7px 14px; border-radius: 9px; }
:root[data-theme="dark"] .top-links .cta { background: #4CC487; color: #0F1F15; }
.top-links .cta:hover { text-decoration: none; }
.menu-btn, .theme-btn { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(245,244,238,.3); background: transparent; color: var(--top-ink); font-size: 18px; cursor: pointer; }
.menu-btn { display: none; }

/* three columns */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 230px; max-width: 1440px; margin: 0 auto; }
.sidebar { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 24px 16px 40px 20px; border-right: 1px solid var(--line); }
.nav-group { margin-bottom: 22px; }
.nav-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.sidebar a:hover { background: var(--soft); }
.sidebar a.on { background: var(--accent-soft); color: var(--link); font-weight: 600; }

.content { padding: 36px 48px 64px; min-width: 0; max-width: 900px; }
.crumb { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.01em; margin: 8px 0 12px; text-wrap: balance; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
.meta { margin: 0 0 8px; }
.plan { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--plan); color: var(--ink); border: 1px solid var(--plan-line); }
.plan::before { content: "Paket: "; font-weight: 500; color: var(--muted); }
article { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 8px; }
article h2 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 40px 0 10px; position: relative; }
article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 6px; }
.anchor { position: absolute; left: -22px; color: var(--muted); text-decoration: none; opacity: 0; font-family: var(--font); }
article h2:hover .anchor { opacity: 1; }
article p, article li { font-size: 16px; }
article ul, article ol { padding-left: 24px; }
article li { margin: 6px 0; }
article ol li::marker { font-weight: 700; color: var(--link); }
code { font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--code); padding: 2px 6px; border-radius: 6px; }
strong { font-weight: 700; }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
.table.wide th:not(:first-child) { text-align: left; }
.table.wide td:not(:first-child) { text-align: left; }
.shot { margin: 20px 0 24px; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.callout { margin: 18px 0; padding: 12px 16px; border-radius: 10px; border-left: 4px solid var(--note-line); background: var(--note); }
.callout p { margin: 0; }
.callout-tips { background: var(--tip); border-color: var(--tip-line); }
.callout-penting { background: var(--warn); border-color: var(--warn-line); }
.callout-paket { background: var(--plan); border-color: var(--plan-line); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.pager .next { text-align: right; }
.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.toc { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 40px 20px 40px 8px; }
.toc-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--link); border-left-color: var(--accent); font-weight: 600; }

@media (max-width: 1180px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .top { gap: 10px; padding: 0 12px; }
  .top-links { display: none; }
  .brand span { display: none; }
  .brand img { height: 20px; width: auto; }
  .search { min-width: 0; }
  .search input { padding-right: 12px; }
  .search kbd { display: none; }
  .results { position: fixed; top: calc(var(--top-h) - 4px); left: 12px; right: 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: var(--top-h); left: 0; bottom: 0; width: min(300px, 86vw); height: auto; background: var(--bg); z-index: 40; transform: translateX(-100%); transition: transform .2s cubic-bezier(.23,1,.32,1); box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  .content { padding: 24px 16px 48px; }
  .anchor { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
