/* ==========================================================================
   Cekat Help Center theme for docmd
   Doc pages lean on Vercel Docs (quiet chrome, dense nav, strong type);
   the home page borrows Notion/Calendly/Coda help-center patterns.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --brand: #1a6cf0;
  --brand-hover: #0f57cf;
  --brand-soft: #eef4ff;
  --brand-ink: #0b3f99;
  --surface: #f7f7f5;          /* Notion-style warm card surface */
  --surface-hover: #f1f1ee;
  --hairline: #ebebeb;

  --bg-color: #ffffff;
  --text-color: #2b2b30;
  --text-muted: #6f6f78;
  --text-heading: #111113;
  --link-color: var(--brand);
  --link-color-hover: var(--brand-hover);
  --border-color: var(--hairline);
  --border-color-hover: #d9d9de;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: var(--hairline);
  --sidebar-bg: #ffffff;
  --sidebar-text: #55555e;
  --sidebar-link-active-bg: var(--brand-soft);
  --sidebar-link-active-text: var(--brand-ink);
  --code-bg: #f8f8f9;
  --font-family-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Geist Mono", "JetBrains Mono", SFMono-Regular, Menlo, monospace;
  --font-size-base: 16px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: none;
  --menubar-h: 60px;
  --sidebar-width: 272px;
  --image-shadow: none;
  --image-border-radius: 10px;
  --image-border-color: var(--hairline);
  --glow-color: rgba(26, 108, 240, 0.10);
  --halo-soft: 0 0 0 4px rgba(26, 108, 240, 0.12);
  --menubar-bg: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] {
  --brand: #4d8dff;
  --brand-hover: #74a6ff;
  --brand-soft: rgba(77, 141, 255, 0.12);
  --brand-ink: #a9c6ff;
  --surface: #161618;
  --surface-hover: #1c1c1f;
  --hairline: #232326;

  --bg-color: #0b0b0c;
  --text-color: #cfcfd4;
  --text-muted: #8d8d96;
  --text-heading: #f4f4f5;
  --border-color-hover: #34343a;
  --header-bg: rgba(11, 11, 12, 0.8);
  --sidebar-bg: #0b0b0c;
  --sidebar-text: #a1a1aa;
  --code-bg: #121214;
  --menubar-bg: rgba(11, 11, 12, 0.8);
}

body {
  font-family: var(--font-family-sans);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* ---------------------------------------------------------------- menubar */

.docmd-menubar {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.menubar-inner { padding: 0 20px; gap: 8px; }

.menubar-brand {
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-right: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--hairline);
}
.menubar-brand::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url("/assets/images/cekat-logo.png") center / contain no-repeat;
}
.menubar-brand-text::before {
  content: "Cekat ";
  font-weight: 700;
  color: var(--text-heading);
}
.menubar-brand-text { color: var(--text-muted); font-weight: 500; }

.menubar-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 10px;
}
.menubar-link:hover { color: var(--text-heading); background: var(--surface); }
.menubar-link.active, .menubar-link[aria-current="page"] { color: var(--text-heading); }

/* Vercel-style wide search pill */
.docmd-options-menu .docmd-search-trigger {
  min-width: 240px;
  justify-content: space-between;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border-color: transparent;
  color: var(--text-muted);
}
.docmd-options-menu .docmd-search-trigger:hover { border-color: var(--border-color-hover); }
.docmd-options-menu .theme-toggle-button { height: 36px; width: 36px; border-radius: 8px; }

@media (max-width: 900px) {
  .docmd-options-menu .docmd-search-trigger { min-width: 0; }
  .docmd-options-menu .docmd-search-trigger .search-label,
  .docmd-options-menu .docmd-search-trigger .search-keys { display: none; }
  .menubar-left > .menubar-link { display: none; }
  .menubar-brand { border-right: 0; }
}
@media (max-width: 600px) {
  .menubar-inner { padding: 0 12px; gap: 4px; }
  .menubar-brand-text { display: none; }
  .menubar-right > .menubar-link { display: none; }
}

/* ---------------------------------------------------------------- sidebar */

aside.sidebar {
  border-right: 1px solid var(--hairline);
  background: var(--sidebar-bg);
}
/* Logo already lives in the menubar; on mobile the header holds the menu button. */
@media (min-width: 769px) { .sidebar-header { display: none; } }

.sidebar-nav { padding: 16px 12px 40px; font-size: 14px; }

.sidebar-nav > ul > li.nav-group,
.sidebar-nav > ul > li:has(> .nav-label) { margin-top: 20px; }

.sidebar-nav > ul > li > .nav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  padding: 4px 10px;
}
.sidebar-nav > ul > li > .nav-label .lucide-icon { color: var(--brand); }

.sidebar-nav a {
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--sidebar-text);
  font-weight: 450;
  transition: background-color .12s ease, color .12s ease;
}
.sidebar-nav a:hover { background: var(--surface); color: var(--text-heading); }
.sidebar-nav a.active {
  background: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active-text);
  font-weight: 600;
}
.sidebar-nav .submenu { border-left: 1px solid var(--hairline); margin-left: 14px; padding-left: 6px; }

/* ---------------------------------------------------------------- page chrome */

.page-header {
  background: transparent;
  border-bottom: 0;
}
.page-header .header-title { display: none; }   /* the H1 in content carries the title */

.content-area { padding-top: 8px; }
.main-content { max-width: 780px; }

.docmd-breadcrumbs { font-size: 13px; }
.docmd-breadcrumbs a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-heading); font-weight: 500; }

.docmd-copy-btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-color);
}

/* ---------------------------------------------------------------- typography */

.main-content h1,
.docmd-focus-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-heading);
  margin: 12px 0 12px;
}
.main-content .page-description,
.main-content > .docmd-description {
  font-size: 18px;
  color: var(--text-muted);
}
.main-content h2 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-top: 2.6em;
  padding-top: 0;
  border: 0;
}
.main-content h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin-top: 2em; }
.main-content h4 { font-size: 1.05rem; font-weight: 600; }
.main-content p, .main-content li { line-height: 1.72; }
.main-content strong { color: var(--text-heading); font-weight: 600; }

.main-content a:not(.heading-anchor):not(.docmd-button):not(.prev-page):not(.next-page) {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link-color) 30%, transparent);
  text-underline-offset: 3px;
}
.main-content a:not(.heading-anchor):hover { text-decoration-color: currentColor; }

.main-content :not(pre) > code {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: .1em .35em;
  font-size: .86em;
}

.main-content img {
  border: 1px solid var(--hairline);
  border-radius: var(--image-border-radius);
  margin: 12px 0 4px;
  max-width: 100%;
  height: auto;
}
.main-content img + em, .main-content p > em:only-child {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: normal;
}

.main-content table { font-size: 14px; border-radius: 10px; overflow: hidden; }
.main-content th { background: var(--surface); font-weight: 600; color: var(--text-heading); }

iframe.docmd-embed { border-radius: 12px; border: 1px solid var(--hairline); }

/* ---------------------------------------------------------------- containers */

.docmd-container { box-shadow: none; border-color: var(--hairline); }

.callout {
  border: 1px solid color-mix(in srgb, var(--callout-color) 22%, var(--hairline));
  background: color-mix(in srgb, var(--callout-color) 6%, var(--bg-color));
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
}
.callout-info { --callout-color: var(--brand); }
.callout-tip, .callout-success { --callout-color: #16a34a; }
.callout-warning { --callout-color: #d97706; }
.callout-danger { --callout-color: #dc2626; }
.callout-title { font-size: 14px; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.card:hover { background: var(--surface-hover); border-color: var(--hairline); }
.card .card-title { font-weight: 600; letter-spacing: -0.01em; }

.docmd-container.steps-reset ol.steps-list > li.step-item::before {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  font-weight: 600;
}

/* ---------------------------------------------------------------- toc + pager */

.toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  text-transform: none;
  letter-spacing: 0;
}
.toc-link { font-size: 13px; font-weight: 450; color: var(--text-muted); border-left-width: 1px; }
.toc-link.active { background: transparent; font-weight: 550; color: var(--text-heading); border-left-color: var(--text-heading); }

.page-navigation a {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text-heading);
  transition: border-color .15s ease, background-color .15s ease;
}
.page-navigation a:hover { border-color: var(--border-color-hover); background: var(--surface); }

/* Feedback widget injected by cekat.js */
.cekat-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.cekat-feedback span { margin-right: auto; color: var(--text-heading); font-weight: 500; }
.cekat-feedback button {
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg-color);
  color: var(--text-color);
  cursor: pointer;
}
.cekat-feedback button:hover { border-color: var(--border-color-hover); background: var(--surface); }
.cekat-feedback.is-done button { display: none; }

/* ---------------------------------------------------------------- footer */

footer.footer-complete { border-top: 1px solid var(--hairline); background: var(--bg-color); }
.footer-column-title { font-size: 13px; font-weight: 600; color: var(--text-heading); }
.footer-desc { color: var(--text-muted); font-size: 14px; }

/* ---------------------------------------------------------------- search modal */

.docmd-search-modal { backdrop-filter: blur(4px); }
.docmd-search-box { border-radius: 14px; border: 1px solid var(--hairline); box-shadow: 0 24px 60px -12px rgba(0,0,0,.25); }

/* ==========================================================================
   Home page (docs/index.md, noStyle)
   ========================================================================== */

body:has(.ck-home) { margin: 0; padding-top: 0; }
body:has(.ck-home) .docmd-menubar { position: sticky; top: 0; z-index: 50; }

.ck-home { color: var(--text-color); }
.ck-home a { text-decoration: none; color: inherit; }
.ck-home h1, .ck-home h2, .ck-home h3 { color: var(--text-heading); margin: 0; }
.ck-home svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }

/* Hero — Notion/Calendly "how can we help" with a soft brand wash */
.ck-hero {
  position: relative;
  padding: 88px 20px 72px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 70%),
    linear-gradient(var(--bg-color), var(--bg-color));
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.ck-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text-heading) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.ck-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.ck-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 5px 12px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--bg-color); margin: 0 0 24px;
}
.ck-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.ck-hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1.04;
}
.ck-lede { font-size: 18px; color: var(--text-muted); margin: 16px auto 32px; max-width: 560px; line-height: 1.55; }

.ck-search {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 620px; margin: 0 auto; height: 60px; padding: 0 14px 0 20px;
  font: inherit; font-size: 16px; color: var(--text-muted); text-align: left;
  background: var(--bg-color);
  border: 1px solid var(--border-color-hover); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(16,24,40,.18);
  cursor: text; transition: border-color .15s ease, box-shadow .15s ease;
}
.ck-search:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--hairline)); box-shadow: 0 0 0 4px var(--glow-color), 0 12px 32px -12px rgba(16,24,40,.18); }
.ck-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ck-search kbd {
  font-family: var(--font-family-mono); font-size: 12px; color: var(--text-muted);
  border: 1px solid var(--hairline); border-radius: 6px; padding: 3px 7px; background: var(--surface);
}

.ck-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; }
.ck-chips-label { color: var(--text-muted); margin-right: 2px; }
.ck-chips a {
  padding: 6px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--hairline); color: var(--text-color); font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease;
}
.ck-chips a:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-ink); }

/* Sections */
.ck-section { max-width: 1120px; margin: 0 auto; padding: 72px 24px 0; }
.ck-section-head { margin-bottom: 24px; }
.ck-section-head h2, .ck-quickstart h2, .ck-support h2 { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; }
.ck-section-head p { color: var(--text-muted); margin: 6px 0 0; font-size: 16px; }
.ck-kicker { font-size: 13px; font-weight: 600; color: var(--brand); margin: 0 0 6px; letter-spacing: .01em; }
.ck-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-heading) !important; }
.ck-link svg.lucide { width: 16px; height: 16px; transition: transform .15s ease; }
.ck-link:hover svg.lucide { transform: translateX(3px); }
.ck-muted { color: var(--text-muted) !important; font-weight: 500; }

/* Quick start — Calendly "Getting started" banner */
.ck-quickstart {
  border: 1px solid var(--hairline); border-radius: 20px; padding: 28px;
  background: linear-gradient(180deg, var(--brand-soft), var(--bg-color) 70%);
}
.ck-quickstart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ck-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ck-steps a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box;
  padding: 18px; border-radius: 14px; background: var(--bg-color); border: 1px solid var(--hairline);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ck-steps a:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--hairline)); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(16,24,40,.25); }
.ck-steps strong { color: var(--text-heading); font-weight: 600; font-size: 15px; margin-top: 10px; }
.ck-steps span:last-child { color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.ck-step-n {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--text-heading); color: var(--bg-color); font-size: 13px; font-weight: 700;
}

/* Topics — Notion "Popular topics" warm cards */
.ck-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ck-topic {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 150px; box-sizing: border-box;
  background: var(--surface); border: 1px solid transparent; border-radius: 16px;
  transition: background-color .15s ease, border-color .15s ease;
}
.ck-topic:hover { background: var(--surface-hover); border-color: var(--hairline); }
.ck-topic strong { color: var(--text-heading); font-size: 16px; font-weight: 600; margin-top: 10px; letter-spacing: -0.01em; }
.ck-topic > span:last-child { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.ck-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--ink); }
html[data-theme="dark"] .ck-ico { background: color-mix(in srgb, var(--ink) 22%, transparent); color: color-mix(in srgb, var(--ink) 40%, #fff); }

/* Popular articles — Calendly list rows, all the same size */
.ck-articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.ck-articles li { display: flex; min-width: 0; }
.ck-articles a {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 56px; box-sizing: border-box; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--hairline); font-size: 15px; font-weight: 500; color: var(--text-heading);
  transition: background-color .15s ease, border-color .15s ease;
}
.ck-articles a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-articles a svg:first-child { color: var(--text-muted); }
.ck-articles a svg:last-child { color: var(--text-muted); width: 16px; height: 16px; }
.ck-articles a:hover { background: var(--surface); border-color: var(--border-color-hover); }
.ck-articles a:hover svg:last-child { color: var(--brand); }

/* Product Release — latest three entries, generated by scripts/update_home_releases.py */
.ck-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ck-releases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ck-release {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px;
  border: 1px solid var(--hairline); background: var(--bg-color);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ck-release:hover { border-color: var(--border-color-hover); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(16,24,40,.25); }
.ck-release-date { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ck-new { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.ck-release strong { color: var(--text-heading); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ck-release-sum { flex: 1; color: var(--text-muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ck-release-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-heading); margin-top: 6px; }
.ck-release-more svg.lucide { width: 16px; height: 16px; transition: transform .15s ease; }
.ck-release:hover .ck-release-more svg.lucide { transform: translateX(3px); }

/* Industry guides — Coda resource tiles */
.ck-guides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ck-guide {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  aspect-ratio: 4 / 5; padding: 18px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--g1), var(--g2)); color: #1b1b1f !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ck-guide:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.45); }
.ck-guide strong { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.ck-guide svg.lucide { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; stroke-width: 1.4; opacity: .55; }

/* Support CTA */
.ck-support {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: 20px; border: 1px solid var(--hairline); background: var(--surface);
}
.ck-support p { margin: 6px 0 0; color: var(--text-muted); }
.ck-support-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border-color-hover); background: var(--bg-color); color: var(--text-heading) !important;
  transition: background-color .15s ease, border-color .15s ease;
}
.ck-btn:hover { border-color: var(--text-muted); }
.ck-btn-primary { background: var(--text-heading); color: var(--bg-color) !important; border-color: var(--text-heading); }
.ck-btn-primary:hover { background: var(--brand); border-color: var(--brand); }

.ck-footer { margin-top: 88px; border-top: 1px solid var(--hairline); }
.ck-footer-inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.ck-footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.ck-footer-brand strong { color: var(--text-heading); }
.ck-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ck-footer nav a:hover { color: var(--text-heading); }
.ck-footer p { margin: 0 0 0 auto; }

@media (max-width: 960px) {
  .ck-steps { grid-template-columns: repeat(2, 1fr); }
  .ck-topics { grid-template-columns: repeat(2, 1fr); }
  .ck-releases { grid-template-columns: 1fr; }
  .ck-guides { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .ck-hero { padding: 56px 16px 48px; }
  .ck-section { padding: 56px 16px 0; }
  .ck-steps, .ck-topics, .ck-articles { grid-template-columns: 1fr; }
  .ck-articles { grid-auto-rows: auto; }
  .ck-guides { grid-template-columns: repeat(2, 1fr); }
  .ck-search kbd { display: none; }
  .ck-quickstart, .ck-support { padding: 20px; }
  .ck-footer p { margin-left: 0; }
}

/* Reset docmd's default h2 rule on the home page */
.ck-home h2 { border: 0; padding: 0; margin: 0; }
.docmd-options-menu .docmd-search-trigger { justify-content: flex-start; }
.docmd-options-menu .docmd-search-trigger .search-label { flex: 1; text-align: left; }

/* Mobile: docmd makes the menubar sticky but keeps the fixed-menubar body offset. */
@media (max-width: 768px) {
  body.has-menubar-top { padding-top: 0; }
  .sidebar-header .logo-link { visibility: hidden; }
}

/* ---------------------------------------------------------------- API reference
   One sidebar config holds both the user guide and the API reference.
   Show only the API groups on API pages, and hide them everywhere else. */
body:has(.sidebar-nav a.active[href*="api-documentation"]) .sidebar-nav > ul > li:not(:has(a[href*="api-documentation"])),
body:not(:has(.sidebar-nav a.active[href*="api-documentation"])) .sidebar-nav > ul > li:has(a[href*="api-documentation"]) {
  display: none;
}

/* Endpoint pages (scripts/api_render.py): Mintlify/Calendly-style two columns */
body:has(.api-col-main) .toc-sidebar { display: none; }
body:has(.api-col-main) .main-content { max-width: 1240px; }
body:has(.api-col-main) .main-content h1 { margin-bottom: 14px; }
.api-col-main, .api-col-aside { display: none; }

.api-method {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 22px; padding: 0 7px;
  border-radius: 6px; font: 700 11px/1 var(--font-family-mono); letter-spacing: .02em;
  color: var(--m-ink); background: var(--m-bg);
}
.api-get    { --m-ink: #067647; --m-bg: #dcfae6; }
.api-post   { --m-ink: #1849a9; --m-bg: #d1e0ff; }
.api-put, .api-patch { --m-ink: #b54708; --m-bg: #fef0c7; }
.api-delete { --m-ink: #b42318; --m-bg: #fee4e2; }
html[data-theme="dark"] .api-method { background: color-mix(in srgb, var(--m-ink) 30%, transparent); color: color-mix(in srgb, var(--m-ink) 35%, #fff); }

.api-endpoint {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 0 28px;
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); overflow-x: auto;
}
.api-url { background: none !important; border: 0 !important; padding: 0 !important; font: 500 14px var(--font-family-mono) !important; color: var(--text-heading); white-space: nowrap; }
.api-base { color: var(--text-muted); }

.docmd-container.grids:has(> .grid-item > .api-col-main) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start;
  border: 0; padding: 0; margin: 0; background: none; box-shadow: none; overflow: visible;
}
.grid-item:has(> .api-col-main), .grid-item:has(> .api-col-aside) {
  border: 0; padding: 0; margin: 0; background: none; box-shadow: none; overflow: visible; min-width: 0;
}
.grid-item:has(> .api-col-aside) {
  position: sticky; top: calc(var(--menubar-h) + 20px);
  max-height: calc(100vh - var(--menubar-h) - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin;
}
.grid-item:has(> .api-col-main) > p:first-of-type { margin-top: 0; }

.api-h2 {
  display: flex; align-items: center; gap: 10px; font-size: 1.1rem !important; font-weight: 650;
  margin: 36px 0 4px !important; padding-bottom: 10px; border-bottom: 1px solid var(--hairline) !important;
}
.api-ct { font-size: 12px !important; font-weight: 500; }

/* Field rows */
.api-fields { display: flex; flex-direction: column; }
.api-field { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.api-field:last-child { border-bottom: 0; }
.api-field-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.api-field-name { font: 600 14px var(--font-family-mono); color: var(--text-heading); }
.api-field-type { font: 13px var(--font-family-mono); color: var(--text-muted); }
.api-field-in { font-size: 12px; color: var(--text-muted); padding: 1px 7px; border-radius: 999px; background: var(--surface); }
.api-field-req { font-size: 12px; font-weight: 600; color: #c4320a; padding: 1px 7px; border-radius: 999px; background: #fff1eb; }
.api-field-dep { font-size: 12px; font-weight: 600; color: #b54708; padding: 1px 7px; border-radius: 999px; background: #fef0c7; }
html[data-theme="dark"] .api-field-req { background: rgba(196, 50, 10, .18); color: #ff9c7a; }
.api-field-desc { margin-top: 6px; font-size: 14px; color: var(--text-color); }
.api-field-desc p { margin: 0 0 6px; line-height: 1.6; }
.api-field-desc p:last-child { margin-bottom: 0; }
.api-field-enum, .api-field-chips { margin-top: 8px; font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.api-field-enum code, .api-field-chips code { font-size: 12px; }
.api-chip { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--hairline); }

.api-children { margin-top: 12px; border: 1px solid var(--hairline); border-radius: 10px; }
.api-children > summary {
  cursor: pointer; list-style: none; padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.api-children > summary::-webkit-details-marker { display: none; }
.api-children > summary::before { content: "+"; display: inline-block; width: 14px; font-weight: 600; }
.api-children[open] > summary::before { content: "−"; }
.api-children[open] > summary { border-bottom: 1px solid var(--hairline); }
.api-children > summary:hover { color: var(--text-heading); }
.api-children-body { padding: 0 14px; }
.api-empty { color: var(--text-muted); font-size: 14px; margin: 12px 0; }
.api-resp-desc { padding: 10px 0 2px; font-size: 14px; color: var(--text-muted); }
.api-resp-desc p { margin: 0; }

/* Tabs in the main column (responses) */
.grid-item:has(> .api-col-main) .docmd-tabs { border: 0; box-shadow: none; background: none; margin-top: 8px; }
.grid-item:has(> .api-col-main) .docmd-tabs-nav { border: 0; gap: 6px; padding: 0; background: none; }
.grid-item:has(> .api-col-main) .docmd-tabs-nav-item {
  padding: 3px 10px; border: 1px solid var(--hairline); border-radius: 999px; font: 600 12px var(--font-family-mono);
}
.grid-item:has(> .api-col-main) .docmd-tabs-nav-item.active { background: var(--text-heading); border-color: var(--text-heading); color: var(--bg-color); }
.grid-item:has(> .api-col-main) .docmd-tabs-content { padding: 0; border: 0; }

/* Right column: dark code panels */
.api-panel-label {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; margin-bottom: -16px;
  background: #0f1117; border: 1px solid #1f2430; border-bottom: 0; border-radius: 14px 14px 0 0;
  font: 500 13px var(--font-family-mono); color: #c9d1e0; position: relative; z-index: 1;
}
.api-panel-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-item:has(> .api-col-aside) .docmd-tabs {
  background: #0f1117; border: 1px solid #1f2430; border-top: 0; border-radius: 0 0 14px 14px;
  box-shadow: none; margin: 0; overflow: hidden;
}
.grid-item:has(> .api-col-aside) .docmd-tabs-nav { background: #0f1117; border-bottom: 1px solid #1f2430; padding: 6px 10px 0; gap: 2px; }
.grid-item:has(> .api-col-aside) .docmd-tabs-nav-item {
  color: #8b93a7; font-size: 12.5px; font-weight: 500; padding: 8px 10px; border-bottom: 2px solid transparent; background: none;
}
.grid-item:has(> .api-col-aside) .docmd-tabs-nav-item:hover { color: #e6e9ef; }
.grid-item:has(> .api-col-aside) .docmd-tabs-nav-item.active { color: #fff; border-bottom-color: #6b9bff; background: none; }
.grid-item:has(> .api-col-aside) .docmd-tabs-content { padding: 0; border: 0; background: #0f1117; }
.grid-item:has(> .api-col-aside) pre.hljs {
  margin: 0; border: 0; border-radius: 0; background: #0f1117 !important; color: #d7dbe4;
  font-size: 12.5px; line-height: 1.65; max-height: 460px; overflow: auto;
}
.grid-item:has(> .api-col-aside) .api-empty { color: #8b93a7; padding: 16px; margin: 0; }
.grid-item:has(> .api-col-aside) .hljs-string { color: #a5d6a7; }
.grid-item:has(> .api-col-aside) .hljs-keyword, .grid-item:has(> .api-col-aside) .hljs-built_in { color: #c792ea; }
.grid-item:has(> .api-col-aside) .hljs-attr, .grid-item:has(> .api-col-aside) .hljs-property { color: #82aaff; }
.grid-item:has(> .api-col-aside) .hljs-number, .grid-item:has(> .api-col-aside) .hljs-literal { color: #f78c6c; }
.grid-item:has(> .api-col-aside) .hljs-comment { color: #697098; }
.grid-item:has(> .api-col-aside) .hljs-operator, .grid-item:has(> .api-col-aside) .hljs-punctuation { color: #89ddff; }
.grid-item:has(> .api-col-aside) .copy-code-button, .grid-item:has(> .api-col-aside) [class*="copy"] { color: #8b93a7; }

@media (max-width: 1180px) {
  .docmd-container.grids:has(> .grid-item > .api-col-main) { grid-template-columns: minmax(0, 1fr); }
  .grid-item:has(> .api-col-aside) { position: static; max-height: none; }
}

/* Section pages: endpoint list (Wix-style) */
.api-rows { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.api-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--hairline);
  text-decoration: none !important; color: var(--text-heading) !important; transition: background-color .12s ease;
}
.api-row:last-child { border-bottom: 0; }
.api-row:hover { background: var(--surface); }
.api-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.api-row-title { font-weight: 600; font-size: 15px; }
.api-row-path { background: none !important; border: 0 !important; padding: 0 !important; font-size: 12.5px !important; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-row-arrow { color: var(--text-muted); transition: transform .15s ease; }
.api-row:hover .api-row-arrow { transform: translateX(3px); color: var(--brand); }

/* Method badges in the API sidebar (added by cekat.js) */
.sidebar-nav .nav-method {
  display: inline-block; min-width: 34px; margin-right: 8px; padding: 1px 0; text-align: center;
  border-radius: 4px; font: 700 9.5px/1.5 var(--font-family-mono); color: var(--m-ink); background: var(--m-bg); vertical-align: 1px;
}

/* API resource cards (section and overview pages) */
.api-resources { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.api-resource {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; border: 1px solid var(--hairline);
  background: var(--bg-color); text-decoration: none !important; transition: border-color .15s ease, background-color .15s ease;
}
.api-resource:hover { border-color: var(--border-color-hover); background: var(--surface); }
.api-resource strong { color: var(--text-heading); font-size: 15px; }
.api-resource span { flex: 1; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.api-resource em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); }
.sidebar-nav a:has(.nav-method) { font-size: 13.5px; }

/* ==========================================================================
   Product Release page (docs/product-release, generated by build_releases.js)
   Calendly release notes layout with Notion's date-led entries.
   ========================================================================== */

body:has(.rl-page) { margin: 0; }
body:has(.rl-page) .docmd-menubar { position: sticky; top: 0; z-index: 50; }
.rl-page { color: var(--text-color); }
.rl-page a { color: var(--brand); }

.rl-hero {
  max-width: 1160px; margin: 24px auto 0; padding: 72px 24px; box-sizing: border-box; text-align: center;
  border-radius: 28px; background:
    radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    var(--surface);
}
.rl-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.rl-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; color: var(--text-heading); }
.rl-hero p:last-child { margin: 14px auto 0; max-width: 520px; font-size: 18px; color: var(--text-muted); }

.rl-layout { max-width: 1160px; margin: 0 auto; padding: 48px 24px 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.rl-sidebar-inner { position: sticky; top: calc(var(--menubar-h) + 24px); }
.rl-side-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--text-heading); }
.rl-side-title:not(:first-child) { margin-top: 28px; }
.rl-filters { display: flex; flex-direction: column; gap: 2px; }
.rl-filter {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px;
  background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-color); text-align: left; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.rl-filter img { width: 26px; height: 26px; flex: none; margin: -2px; }
.rl-filter span { flex: 1; }
.rl-filter em { font-style: normal; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rl-filter:hover { background: var(--surface); }
.rl-filter[aria-pressed="true"] { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--brand-ink); font-weight: 600; }
.rl-all-icon { flex: none !important; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-chip {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--bg-color);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text-color); cursor: pointer;
}
.rl-chip:hover { border-color: var(--border-color-hover); }
.rl-chip[aria-pressed="true"] { background: var(--text-heading); border-color: var(--text-heading); color: var(--bg-color); }

.rl-toolbar { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.rl-search {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--bg-color); color: var(--text-muted);
}
.rl-search:focus-within { border-color: color-mix(in srgb, var(--brand) 45%, var(--hairline)); box-shadow: var(--halo-soft); }
.rl-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--text-heading); }
.rl-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.rl-reset { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; padding: 4px; }
.rl-reset:hover { text-decoration: underline; }
.rl-active { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-active:not(:empty) { padding: 4px 0 8px; }

.rl-entry { padding: 40px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: calc(var(--menubar-h) + 16px); }
.rl-entry[hidden] { display: none; }
.rl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.rl-meta time { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.rl-type { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.rl-type-new { background: #dcfae6; color: #067647; }
.rl-type-improvement { background: var(--brand-soft); color: var(--brand-ink); }
.rl-type-fix { background: #fef0c7; color: #93370d; }
html[data-theme="dark"] .rl-type-new { background: rgba(6,118,71,.25); color: #75e0a7; }
html[data-theme="dark"] .rl-type-fix { background: rgba(181,71,8,.25); color: #fec84b; }
.rl-title { margin: 0 0 14px; font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.rl-title a { color: var(--text-heading) !important; text-decoration: none; }
.rl-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.rl-body { font-size: 15.5px; line-height: 1.7; color: var(--text-color); }
.rl-body > :first-child { margin-top: 0; }
.rl-body .rl-label:first-child { margin-top: 0; }
.rl-body p { margin: 0 0 12px; }
.rl-body ul, .rl-body ol { margin: 0 0 14px; padding-left: 20px; }
.rl-body li { margin: 4px 0 8px; }
.rl-body li::marker { color: var(--text-muted); }
.rl-body strong { color: var(--text-heading); font-weight: 600; }
.rl-body .rl-label {
  margin: 18px 0 6px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.rl-body code { font-size: .86em; background: var(--surface); border: 1px solid var(--hairline); border-radius: 5px; padding: .1em .35em; }
.rl-body img { max-width: 100%; border-radius: 12px; border: 1px solid var(--hairline); margin: 8px 0; }
.rl-body blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--hairline); color: var(--text-muted); }
.rl-body h3, .rl-body h4 { font-size: 15px; margin: 18px 0 8px; color: var(--text-heading); }

.rl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.rl-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 3px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--bg-color); font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--text-color); cursor: pointer;
}
.rl-tag img { width: 22px; height: 22px; }
.rl-tag:hover { border-color: var(--border-color-hover); background: var(--surface); }

.rl-empty { padding: 64px 0; text-align: center; display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); }
.rl-empty[hidden] { display: none; }
.rl-empty strong { color: var(--text-heading); font-size: 17px; }

@media (max-width: 900px) {
  .rl-hero { margin: 0; border-radius: 0; padding: 48px 16px; }
  .rl-layout { grid-template-columns: 1fr; gap: 16px; padding: 24px 16px 0; }
  .rl-sidebar-inner { position: static; }
  .rl-filters { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .rl-filter { width: auto; flex: none; border-color: var(--hairline); border-radius: 999px; padding: 4px 12px 4px 6px; }
  .rl-filter em { display: none; }
  .rl-side-title { display: none; }
  .rl-chips { margin-top: 10px; }
  .rl-title { font-size: 1.45rem; }
}

/* Product icons on the home page release cards */
.ck-release-tags { display: flex; gap: 2px; margin-top: 2px; }
.ck-release-tags img { width: 24px; height: 24px; }
.rl-tag img, .rl-filter img, .ck-release-tags img { margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0; display: block; }
.rl-tag { line-height: 1.4; }
.rl-page h2.rl-title { border: 0; padding: 0; }
.rl-layout > * { min-width: 0; }
@media (max-width: 900px) { .rl-count { display: none; } .rl-body ul, .rl-body ol { padding-left: 18px; } }
.rl-hero .rl-lang-note { margin-top: 10px !important; font-size: 13px !important; color: var(--text-muted); }
.rl-hero .rl-lang-note:last-child { font-size: 13px; }
