/*
 * The documentation site's own stylesheet (ui.zubazar.com/docs): the shell (top bar, sidebar, right rail), the
 * component pages (tabs, live previews, code), the guides (Markdown) and the home page. The live examples
 * never use it: they run in iframes with the real Zubazar UI CSS (assets/panel.css). No framework, no build.
 */

:root {
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f9fafb;
  --hover: #f2f3f6;
  --line: #e6e8ed;
  --line-strong: #d3d7df;
  --ink: #111827;
  --text: #30384a;
  --muted: #586174;
  --faint: #636b7d;
  --brand: #794dff;
  --brand-text: #5b33e0;
  --brand-soft: #f3f0ff;
  --brand-line: #d9cdff;
  --code-bg: #12141b;
  --code-bar: #1b1e27;
  --code-text: #e6e7ec;
  --code-muted: #8b91a1;
  --shadow: 0 1px 2px rgb(16 24 40 / .05);
  --shadow-lg: 0 24px 64px rgb(16 24 40 / .18), 0 4px 16px rgb(16 24 40 / .08);
  --radius: var(--doc-radius);
  --radius-sm: var(--doc-radius);
  --top: 64px;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* The type scale of the docs: every text of the site uses one of these (code uses --mono). */
  --font-sans: 'Public Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --doc-h1: 600 2.25rem/1.2 var(--font-sans);
  --doc-h1-track: -.02em;
  --doc-h2: 600 1.5rem/1.3 var(--font-sans);
  --doc-h2-track: -.01em;
  --doc-h3: 600 1.125rem/1.4 var(--font-sans);
  --doc-title: 600 1rem/1.45 var(--font-sans);
  --doc-body: 400 1rem/1.65 var(--font-sans);
  --doc-small: 400 .875rem/1.55 var(--font-sans);
  --doc-label: 600 .75rem/1.35 var(--font-sans);
  --doc-label-track: .06em;
  /* One small corner radius for every docs box; example boxes and their code panels are square. */
  --doc-radius: 2px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #14151b;
  --surface: #14151b;
  --surface-2: #191a21;
  --hover: #20212a;
  --line: #272932;
  --line-strong: #383a46;
  --ink: #f4f4f6;
  --text: #d3d4dc;
  --muted: #a6a8b6;
  --faint: #9597a6;
  --brand-text: #b9a5ff;
  --brand-soft: rgb(121 77 255 / .16);
  --brand-line: rgb(121 77 255 / .45);
  --code-bg: #0e0f14;
  --code-bar: #17181f;
  --shadow: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 24px); -webkit-text-size-adjust: 100%; }
body { font: var(--doc-body); margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--doc-radius); }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .875em; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; border-radius: var(--doc-radius); background: var(--ink); color: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.anchor-alias { display: block; position: relative; height: 0; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i .fill, .gh { fill: currentColor; stroke: none; }
svg.gh { fill: currentColor; stroke: none; }
.muted { color: var(--faint); }
.nowrap { white-space: nowrap; }
kbd { font: var(--doc-label); padding: 2px 6px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface-2); color: var(--faint); }

/* Top bar ----------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; height: var(--top); padding: 0 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.brand { display: flex; align-items: center; width: 232px; flex: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.brand-logo .logo-ana { fill: var(--brand); }
.top-version { flex: none; margin-left: -12px; }
.top-demo { font: var(--doc-small); color: var(--text); font-weight: 500; white-space: nowrap; }
.top-demo:hover { color: var(--ink); text-decoration: none; }
.search-box-btn { font: var(--doc-small); display: flex; align-items: center; gap: 10px; width: min(300px, 26vw); height: 38px; margin-left: auto; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface-2); color: var(--faint); text-align: left; }
.search-box-btn:hover { border-color: var(--line-strong); }
.search-placeholder { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); color: var(--text); }
.icon-btn:hover { background: var(--hover); }
.menu-btn, .drawer-close, .mobile-topnav { display: none; }
.theme-switch { display: flex; align-items: center; gap: 10px; padding: 4px; border: 0; background: none; color: var(--text); }
.switch-track { position: relative; width: 44px; height: 24px; border-radius: 99px; background: var(--faint); transition: background .2s; }
.switch-knob { position: absolute; top: 2px; left: 2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.switch-knob .i { width: 12px; height: 12px; color: var(--faint); }
.theme-switch[aria-checked="true"] .switch-track { background: var(--brand); }
.theme-switch[aria-checked="true"] .switch-knob { transform: translateX(20px); }
.theme-switch[aria-checked="true"] .switch-knob .i { color: var(--brand); }

/* Menus (details): language, product switcher */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .chev { width: 15px; height: 15px; color: var(--faint); transition: transform .15s; }
.menu[open] > summary .chev { transform: rotate(180deg); }
.lang-trigger { font: var(--doc-small); display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); color: var(--ink); font-weight: 600; }
.lang-flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.menu-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.menu-list a, .menu-list .is-soon { font: var(--doc-small); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--doc-radius); color: var(--text); }
.menu-list a:hover { background: var(--hover); text-decoration: none; }
.menu-list a[aria-current] { color: var(--ink); font-weight: 600; }
.menu-list .is-soon { color: var(--faint); cursor: default; }
.menu-list .is-soon em, .soon-tag { font: var(--doc-label); margin-left: auto; padding: 2px 6px; border-radius: var(--doc-radius); background: var(--hover); color: var(--muted); font-style: normal; }
.menu-list .tick { margin-left: auto; color: var(--brand-text); }
.menu-list .menu-sub { font: var(--doc-small); padding: 4px 10px 8px 38px; color: var(--faint); }
.menu-list .ext, .ext { width: 14px; height: 14px; }

/* Layout ------------------------------------------------------------------ */
.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr) 300px; align-items: start; }
.layout.no-rail { grid-template-columns: 272px minmax(0, 1fr); }
.main { min-width: 0; padding: 26px 40px 40px; outline: none; }
.sidebar { position: sticky; top: var(--top); display: flex; flex-direction: column; height: calc(100vh - var(--top)); border-right: 1px solid var(--line); background: var(--surface); }
.sidebar-head { display: none; justify-content: flex-end; padding: 12px 16px 4px; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; overscroll-behavior: contain; scrollbar-width: thin; }
/* The sidebar menu, drawn like the panel's menu (Zubazar UI Pro's zb:menu / zb:nav.*): DM Mono section labels,
   42px rows with a 20px outline icon, a chevron that turns when a group opens, the open group's row tinted,
   and sub-items along a guide line with a node each (a filled primary dot with a ring for the current page). */
.nav-section { margin-top: 0; }
.nav-title { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 18px 10px 8px; color: var(--faint); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; list-style: none; cursor: pointer; }
.nav-title::-webkit-details-marker { display: none; }
.nav-title:hover { color: var(--ink); }
.nav-title:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-title .chev { width: 13px; height: 13px; stroke-width: 2.2; transform: rotate(-90deg); transition: transform .15s; }
.nav-section[open] > .nav-title .chev { transform: none; }
.nav-section:first-child .nav-title { padding-top: 4px; }
.nav-link, .nav-group > summary { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: var(--doc-radius); color: var(--text); font: 400 .875rem/1.4 var(--font-sans); transition: background-color .15s, color .15s; }
.nav-link:hover, .nav-group > summary:hover { background: color-mix(in srgb, var(--hover) 60%, transparent); color: var(--ink); text-decoration: none; }
.nav-link > .i, .nav-group > summary > .i:first-child { width: 20px; height: 20px; color: inherit; stroke-width: 1.8; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link.current { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.nav-link.current::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: -12px; width: 2px; border-radius: 2px; background: var(--brand-text); }
.nav-link.is-soon { color: var(--faint); cursor: default; }
.nav-link.is-soon:hover { background: none; color: var(--faint); }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary.has-current { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.nav-group > summary .chev { flex: none; width: 14px; height: 14px; margin-left: 0; opacity: .6; stroke-width: 2.2; transition: transform .15s; }
.nav-group[open] > summary .chev { transform: rotate(90deg); }
.nav-items { --sub-indent: 25px; position: relative; display: flex; flex-direction: column; margin: 4px 0; padding-left: var(--sub-indent); }
.nav-items::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--sub-indent) - 1px); width: 1px; background: var(--line); }
.nav-items a { position: relative; z-index: 0; display: flex; align-items: center; min-height: 38px; padding: 8px 12px; color: var(--muted); font: 400 .84375rem/1.4 var(--font-sans); white-space: nowrap; transition: color .15s; }
.nav-items a::before { content: ''; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); transform: translateY(-50%); transition: border-color .15s, background-color .15s; }
.nav-items a:hover { color: var(--ink); text-decoration: none; }
.nav-items a:hover::before { border-color: var(--brand-text); background: var(--brand-soft); }
.nav-items a:hover::after { content: ''; position: absolute; inset: 2px 0 2px calc(var(--sub-indent) * -1); z-index: -1; border-radius: var(--doc-radius); background: color-mix(in srgb, var(--hover) 60%, transparent); }
.nav-items a.current { color: var(--ink); font-weight: 600; }
.nav-items a.current::before { left: -4.5px; width: 8px; height: 8px; border: 0; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.nav-items a.current:hover::after { content: none; }
/* The third level (the form sub-groups): a row on the guide line with its own node and a small chevron; its
   links along their own line one step further in. */
.nav-subgroup > summary { position: relative; z-index: 0; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; color: var(--muted); font: 400 .84375rem/1.4 var(--font-sans); list-style: none; cursor: pointer; transition: color .15s; }
.nav-subgroup > summary::-webkit-details-marker { display: none; }
.nav-subgroup > summary::before { content: ''; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); transform: translateY(-50%); }
.nav-subgroup > summary:hover { color: var(--ink); }
.nav-subgroup > summary:hover::after { content: ''; position: absolute; inset: 2px 0 2px calc(var(--sub-indent) * -1); z-index: -1; border-radius: var(--doc-radius); background: color-mix(in srgb, var(--hover) 60%, transparent); }
.nav-subgroup > summary.has-current { color: var(--ink); font-weight: 600; }
.nav-subgroup > summary.has-current::before { border-color: var(--muted); }
.nav-subgroup > summary .chev { flex: none; width: 12px; height: 12px; margin-left: auto; opacity: .6; stroke-width: 2.4; transition: transform .15s; }
.nav-subgroup[open] > summary .chev { transform: rotate(90deg); }
.nav-subgroup > .nav-items { --sub-indent: 41px; margin: 0 0 0 8px; padding-left: 8px; }
.nav-subgroup > .nav-items::before { left: 7.5px; }
.pro-tag { font: var(--doc-label); flex: none; margin-left: auto; padding: 2px 5px; border-radius: var(--doc-radius); background: var(--brand-soft); color: var(--brand-text); font-style: normal; }
.nav-group > summary .pro-tag, .nav-items a .pro-tag { margin-left: 4px; }
.drawer-backdrop { display: none; }

/* Right rail */
.rail { position: sticky; top: var(--top); display: grid; align-content: start; gap: 0; max-height: calc(100vh - var(--top)); overflow-y: auto; padding: 30px 24px 24px 8px; scrollbar-width: thin; }
.rail-card { padding: 0; }
.rail-title { margin: 0; padding: 4px 0 8px; color: var(--faint); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
/* "Bu sayfada", drawn like the sidebar's sub-items: a guide line, a hollow node per entry, a filled primary dot
   with a ring for the section in view; entries under "İleri düzey" one step further in, on their own line. */
.toc-list { --toc-line: 4px; --toc-sub: 18px; position: relative; display: flex; flex-direction: column; }
.toc-list::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--toc-line) - .5px); width: 1px; background: var(--line); }
.toc a { position: relative; z-index: 0; display: block; min-height: 34px; padding: 7px 10px 7px calc(var(--toc-line) + 14px); color: var(--muted); font: 400 .84375rem/1.45 var(--font-sans); transition: color .15s; }
.toc a::before { content: ''; position: absolute; top: 17px; left: calc(var(--toc-line) - 3.5px); width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); transform: translateY(-50%); transition: border-color .15s, background-color .15s; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a:hover::before { border-color: var(--brand-text); background: var(--brand-soft); }
.toc a:hover::after { content: ''; position: absolute; inset: 2px 0 2px 0; z-index: -1; border-radius: var(--doc-radius); background: color-mix(in srgb, var(--hover) 60%, transparent); }
.toc a.active { color: var(--ink); font-weight: 600; }
.toc a.active::before { left: calc(var(--toc-line) - 4px); width: 8px; height: 8px; border: 0; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.toc a.active:hover::after { content: none; }
.toc a.toc-sub { padding-left: calc(var(--toc-line) + var(--toc-sub) + 14px); background: linear-gradient(var(--line), var(--line)) no-repeat calc(var(--toc-line) + var(--toc-sub) - .5px) 0 / 1px 100%; }
.toc a.toc-sub::before { left: calc(var(--toc-line) + var(--toc-sub) - 3.5px); }
.toc a.toc-sub.active::before { left: calc(var(--toc-line) + var(--toc-sub) - 4px); }

/* Page heading ------------------------------------------------------------ */
.breadcrumb { font: var(--doc-small); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb .i { width: 15px; height: 15px; }
.breadcrumb .sep { width: 13px; height: 13px; color: var(--faint); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-head { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.page-head h1 { font: var(--doc-h1); letter-spacing: var(--doc-h1-track); margin: 0 0 12px; }
.lead { font: var(--doc-body); max-width: 760px; margin: 0; color: var(--muted); }
.page-tag { font: var(--doc-small); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 0; color: var(--faint); }
.page-tag code { padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); color: var(--ink); }
.page-head-actions { display: flex; flex: none; gap: 10px; align-items: center; padding-top: 6px; }
.version-badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); color: var(--muted); font: 500 .75rem var(--mono); }
.pro-badge { font: var(--doc-label); padding: 7px 12px; border-radius: var(--doc-radius); background: var(--brand); color: #fff; }
.pro-badge:hover { text-decoration: none; filter: brightness(1.08); }
.btn { font: var(--doc-small); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--doc-radius); background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.btn:hover { background: var(--hover); text-decoration: none; }
.live-page { margin: -6px 0 20px; }
.note { font: var(--doc-small); display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--brand-line); border-radius: var(--doc-radius); background: var(--brand-soft); color: var(--text); }
.note > .i { margin-top: 2px; color: var(--brand-text); }
.note p { margin: 0; }
.note strong { color: var(--ink); }

/* Tabs card --------------------------------------------------------------- */

/* Examples */
.examples > .example { margin-top: 48px; }
.examples > .example:first-of-type { margin-top: 0; }
/* Kullanım, API and Erişilebilirlik: headed sections after the examples, on the page itself. */
.doc-section { margin-top: 48px; }
.section-title { font: var(--doc-h2); letter-spacing: var(--doc-h2-track); margin: 0 0 12px; }
.panel-lead { font: var(--doc-body); margin: 0 0 16px; color: var(--muted); }
.doc-section h3 { font: var(--doc-h3); margin: 28px 0 8px; }
.product-docs { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--brand-line); border-radius: var(--doc-radius); background: var(--brand-soft); color: var(--ink); box-shadow: var(--shadow); }
.product-docs:hover { border-color: var(--brand); text-decoration: none; }
.product-docs > .i:first-child { width: 26px; height: 26px; color: var(--brand-text); }
.product-docs strong, .product-docs small { display: block; }
.product-docs strong { font: var(--doc-title); }
.product-docs small { font: var(--doc-small); color: var(--muted); }
.product-docs .ext { width: 18px; height: 18px; margin-left: auto; color: var(--brand-text); }
.example h2 { font: var(--doc-h3); margin: 0 0 6px; }
.example.is-sub h2 { font: var(--doc-h3); }
.example-desc { font: var(--doc-body); max-width: 780px; margin: 0 0 14px; color: var(--muted); }
.example-desc code, .doc-section p code, .doc-section li code, .doc-section dd code, .data-table td code { padding: 1px 5px; border-radius: var(--doc-radius); background: var(--hover); color: var(--ink); font-size: .875em; }
/* Hakkında (after the examples) and Kurulum (after the props): short sections. */
.page-about p { font: var(--doc-body); max-width: 780px; margin: 0 0 12px; color: var(--text); }
.page-about p code, .page-setup p code, .lead code, .dev-notes code, .note p code { padding: 1px 5px; border-radius: var(--doc-radius); background: var(--hover); color: var(--ink); font-size: .875em; }
.page-head + .note, .note + .note { margin-top: 0; }
/* The examples follow the heading (and its callouts) directly. */
.page-setup .code-block { max-width: 100%; }
/* Gelişmiş and Geliştirici notları: collapsed sections (<details>) after the props. */
.fold { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fold + .fold { margin-top: 0; border-top: 0; }
.fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 0; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ''; flex: none; align-self: center; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold > summary:hover h2 { color: var(--brand-text); }
.fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fold > summary h2 { font: var(--doc-h2); letter-spacing: var(--doc-h2-track); margin: 0; }
.fold-meta { font: var(--doc-small); color: var(--muted); }
.fold-body { padding: 4px 0 32px; }
.fold-body.examples { margin-top: 0; }
.fold-body > .example:first-child, .fold-body > .anchor-alias:first-child + .example { margin-top: 8px; }
.fold-body > .example + .example, .fold-body > .anchor-alias + .example { margin-top: 40px; }
.fold-body h3 { font: var(--doc-h3); margin: 28px 0 10px; }
.fold-body > h3:first-child, .fold-body > .dev-notes:first-child { margin-top: 4px; }
.dev-notes li { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .fold > summary::before { transition: none; } }
.demo-card { position: relative; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); }
.demo-card[data-view="code"] { border-color: var(--code-bg); }
.js .demo-card[data-view="code"] .demo-stage, .js .demo-card[data-view="preview"] .inline-code, .js .inline-code > [data-ex-code]:not(.is-on), html:not(.js) .view-pill, html:not(.js) .fw-select { display: none; }
html:not(.js) .inline-code > [data-ex-code] + [data-ex-code] { margin-top: 10px; }
.example-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.example-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
/* Önizleme | Kod: a two-option radio group drawn as a pill. */
.view-pill { display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 0; border-radius: var(--doc-radius); background: var(--hover); }
.view-pill label { font: var(--doc-small); display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: var(--doc-radius); color: var(--muted); font-weight: 600; cursor: pointer; }
.view-pill label:hover { color: var(--ink); }
.view-pill label:has(input:checked) { background: var(--ink); color: var(--surface); }
.view-pill label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.view-pill .i { width: 16px; height: 16px; }
.fw-chip { padding: 6px 10px; border: 1px solid var(--line-strong); color: var(--muted); font: 600 .75rem var(--mono); }
.example-head h2 { margin: 0 !important; }
.example-after { margin-top: 14px; }
p.example-after { margin-bottom: 0; }
.demo-stage { display: flex; justify-content: center; padding: 24px 16px; }
.demo-stage iframe { display: block; width: 100%; height: 180px; border: 0; background: transparent; }
html[data-theme="dark"] .demo-stage { background: #0a0a0a; }

/* Segmented controls (radio groups) */
.seg { display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); min-width: 0; }
.seg legend { padding: 0; }
.seg label { font: var(--doc-small); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; padding: 4px 9px; border: 1px solid transparent; border-radius: var(--doc-radius); color: var(--muted); font-weight: 500; cursor: pointer; }
.seg label:hover { color: var(--ink); }
.seg label:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
/* An example's choices (variant, size…) above its box. */
.ex-choices { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.ex-choice { flex-wrap: wrap; align-items: center; max-width: 100%; }
.ex-choice-name { float: left; display: flex; align-items: center; min-height: 30px; margin-right: 4px; padding: 0 6px; color: var(--faint); font-size: .8125rem; }
.ex-choice-name code { font: 500 .75rem var(--mono); }
html:not(.js) .ex-choices, html:not(.js) [data-ex-choices] .inline-code > [data-ex-code]:not(:first-child) { display: none; }
.seg label.is-disabled { color: var(--faint); cursor: not-allowed; opacity: .75; }

/* Code */
.code-block { border-radius: var(--doc-radius); background: var(--code-bg); overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .04) inset; }
html[data-theme="light"] .code-block { box-shadow: none; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; background: var(--code-bar); border-bottom: 1px solid rgb(255 255 255 / .06); }
.code-lang { color: var(--code-muted); font: 500 .75rem var(--mono); }
.copy-btn { font: var(--doc-small); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid rgb(255 255 255 / .14); border-radius: var(--doc-radius); background: rgb(255 255 255 / .06); color: #eceef3; font-weight: 600; }
.copy-btn:hover { background: rgb(255 255 255 / .12); }
.copy-btn .i { width: 15px; height: 15px; }
.code-block pre, .inline-pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: var(--code-text); font-size: .8125rem; line-height: 1.7; scrollbar-width: thin; }
.code-block code { font-size: inherit; white-space: pre; }
pre.numbered { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
.gutter { color: #7a8091; text-align: right; white-space: pre; user-select: none; }
.code-block .tag { color: #f47c77; }
.code-block .attr { color: #8fb4ff; }
.code-block .value { color: #9ee0b6; }
.code-block .directive { color: #f2c46d; }
.inline-pre { margin: 8px 0; border-radius: var(--doc-radius); background: var(--code-bg); font-size: .8125rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--doc-radius); }
.data-table { font: var(--doc-small); width: 100%; border-collapse: collapse; }
.data-table th { font: var(--doc-label); letter-spacing: var(--doc-label-track); padding: 10px 14px; background: var(--surface-2); color: var(--faint); text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table td:first-child code { white-space: nowrap; }
.options-table td:first-child { width: 160px; }
.swatch { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: var(--doc-radius); vertical-align: -2px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .35); }

/* Usage, a11y */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.usage-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface-2); }
.usage-card h3 { font: var(--doc-title); margin: 0 0 8px ; }
.usage-card p { font: var(--doc-small); margin: 0 0 8px; }
.plain-list, .link-list { margin: 0; padding-left: 20px; }
.plain-list li, .link-list li { font: var(--doc-body); margin: 6px 0; }
.a11y-list { display: grid; gap: 12px; margin: 16px 0 0; }
.a11y-list > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface-2); }
.a11y-list dt { font: var(--doc-title); color: var(--ink); }
.a11y-list dd { font: var(--doc-body); margin: 0; }

/* Pager, footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pager a { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); }
.pager a:hover { border-color: var(--brand-line); text-decoration: none; }
.pager a.next { text-align: right; }
.pager span { font: var(--doc-small); display: block; color: var(--faint); }
.pager strong { color: var(--ink); }
.site-footer { font: var(--doc-small); display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); }

/* Search dialog ------------------------------------------------------------ */
.search-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 10vh 16px 16px; }
.search-dialog[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgb(10 12 20 / .45); backdrop-filter: blur(2px); }
.search-panel { position: relative; width: min(640px, 100%); max-height: 74vh; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--faint); }
.search-input-wrap input { font: var(--doc-body); flex: 1; height: 56px; border: 0; background: none; color: var(--ink); outline: none; }
/* The box has no outline of its own: its row shows the focus (WCAG 2.4.7). */
.search-input-wrap:focus-within { box-shadow: inset 0 -2px 0 var(--brand); }
.search-results { overflow-y: auto; padding: 8px; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--doc-radius); color: var(--text); }
.search-results a[hidden] { display: none; }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }
.search-results a:hover, .search-results a.is-active { background: var(--hover); text-decoration: none; }
.search-results a.is-active { box-shadow: inset 2px 0 0 var(--brand); }
.search-results a > span { font: var(--doc-label); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--doc-radius); background: var(--brand-soft); color: var(--brand-text); }
.search-results a div { min-width: 0; }
.search-results strong, .search-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results strong { font: var(--doc-small); color: var(--ink); }
.search-results small { font: var(--doc-small); color: var(--faint); }
.search-results[data-state="empty"]::after { content: attr(data-empty); display: block; padding: 24px; color: var(--faint); text-align: center; }
.search-results[data-state="error"]::after { content: attr(data-error); display: block; padding: 24px; color: var(--faint); text-align: center; }

/* Component index ------------------------------------------------------------ */
.tier-filter { margin-bottom: 22px; }
.tier-filter label { gap: 6px; }
.tier-filter .count { font: var(--doc-label); color: var(--faint); }
.tier-filter input:checked + label { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.tier-filter input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }
.index-section { margin-top: 48px; }
.index-section-title { font: var(--doc-h2); letter-spacing: var(--doc-h2-track); display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.component-group + .component-group, .anchor-alias + .component-group { margin-top: 28px; }
.group-title { font: var(--doc-h3); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.group-title .i { width: 18px; height: 18px; color: var(--brand-text); }
.tier-count { font: var(--doc-label); padding: 1px 8px; border-radius: var(--doc-radius); background: var(--hover); color: var(--faint); }
.tier-count-free, .tier-count-pro { display: none; }
/* The cards: separate boxes with a gap between them. */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1279px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 480px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.index-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--doc-radius); color: var(--text); }
.index-item:hover { border-color: var(--line-strong); }
.index-item:hover { background: var(--surface-2); text-decoration: none; }
.index-item:focus-visible { outline-offset: -2px; }
.card-thumb { position: relative; display: grid; place-items: center; height: 148px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.index-item:hover .card-thumb { background: var(--hover); }
.card-icon { width: 34px; height: 34px; color: var(--faint); stroke-width: 1.3; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.card-title { font: var(--doc-h3); display: flex; align-items: center; gap: 8px; color: var(--ink); }
.card-title .pro-tag { margin-left: 0; }
.card-desc { font: var(--doc-small); display: -webkit-box; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.components-index:has(#tier-free:checked) .is-pro, .components-index:has(#tier-pro:checked) .index-item:not(.is-pro),
.components-index:has(#tier-free:checked) .component-group:not(:has(.index-item:not(.is-pro))),
.components-index:has(#tier-pro:checked) .component-group:not(:has(.is-pro)),
.components-index:has(#tier-free:checked) .is-pro-section, .components-index:has(#tier-pro:checked) .is-free-section,
body:has(#tier-free:checked) .toc .tier-pro-only, body:has(#tier-pro:checked) .toc .tier-free-only { display: none; }
.components-index:has(#tier-free:checked) .tier-count-all, .components-index:has(#tier-pro:checked) .tier-count-all { display: none; }
.components-index:has(#tier-free:checked) .tier-count-free, .components-index:has(#tier-pro:checked) .tier-count-pro { display: inline; }

/* Mini examples (component index, home) */

/* Guides (Markdown) ------------------------------------------------------------ */
.doc-prose { font: var(--doc-body); max-width: 800px; color: var(--text); }
.doc-prose > h1:first-child { font: var(--doc-h1); letter-spacing: var(--doc-h1-track); margin: 0 0 12px; }
.doc-prose h2 { font: var(--doc-h2); letter-spacing: var(--doc-h2-track); margin: 48px 0 12px; }
.doc-prose h3 { font: var(--doc-h3); margin: 28px 0 8px; }
.doc-prose p, .doc-prose ul, .doc-prose ol { margin: 0 0 16px; }
.doc-prose li + li { margin-top: 4px; }
.doc-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-line); }
.doc-prose code { padding: 2px 6px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); color: var(--ink); font-size: .875em; overflow-wrap: anywhere; }
/* A guide's code block: a bar with its language and a copy button above the code. */
.doc-prose .code-block { margin: 0 0 20px; }
.doc-prose .code-block pre { margin: 0; border-radius: 0; }
.doc-prose pre { margin: 0 0 20px; padding: 16px 18px; border-radius: var(--doc-radius); background: var(--code-bg); overflow-x: auto; }
.doc-prose pre code { padding: 0; border: 0; background: none; color: var(--code-text); font-size: .8125rem; white-space: pre; }
.doc-prose .table-wrap { margin: 0 0 20px; background: var(--surface); }
.doc-prose table { font: var(--doc-small); width: 100%; border-collapse: collapse; }
.doc-prose th { padding: 10px 12px; background: var(--surface-2); color: var(--ink); text-align: left; }
.doc-prose td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-prose blockquote { font: var(--doc-small); margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 0; background: var(--surface); }
.doc-prose blockquote p:last-child { margin: 0; }
.callout-title { font: var(--doc-title); margin: 0 0 4px !important; color: var(--ink); }
.callout-tip { border-left-color: #16a34a !important; }
.callout-warning { border-left-color: #d97706 !important; }

/* Home ---------------------------------------------------------------------------- */
#giris { font: var(--doc-h1); letter-spacing: var(--doc-h1-track); margin: 0 0 12px; }
.home-section { margin-top: 48px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { font: var(--doc-h2); letter-spacing: var(--doc-h2-track); margin: 0 0 6px; }
.section-heading p { margin: 0; color: var(--muted); font: var(--doc-body); }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.home-start { margin-top: 8px; }
.home-components { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.home-components a { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--doc-radius); background: var(--surface); color: var(--text); }
.home-components a:hover { border-color: var(--brand-line); text-decoration: none; }
.home-components strong { font: var(--doc-title); color: var(--ink); }
.home-components span { font: var(--doc-small); color: var(--muted); }
.home-components code { padding: 1px 4px; border-radius: var(--doc-radius); background: var(--hover); font-size: .85em; }
.btn-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-text); }
.home-note { font: var(--doc-body); color: var(--muted); }
.home-note code { padding: 1px 5px; border-radius: var(--doc-radius); background: var(--hover); color: var(--ink); }
.home-pro { font: var(--doc-label); margin-left: 6px; padding: 2px 6px; border-radius: var(--doc-radius); background: var(--brand-soft); color: var(--brand-text); font-style: normal; vertical-align: middle; }
.home-section .doc-prose { max-width: none; }

/* Responsive -------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); }
  .rail { display: none; }
  .brand { width: auto; }
}

@media (max-width: 1023px) {
  .layout { display: block; }
  .menu-btn, .drawer-close { display: inline-grid; }
  .sidebar-head { display: flex; }
  .topbar { gap: 12px; padding: 0 16px; }
  .top-demo { display: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(320px, 86vw); height: 100dvh; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; }
  .drawer-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; background: rgb(10 12 20 / .45); }
  .mobile-topnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
  .mobile-version { color: var(--faint); font: 500 .75rem var(--mono); }
  .mobile-topnav a { font: var(--doc-small); padding: 7px 10px; border-radius: var(--doc-radius); color: var(--text); font-weight: 500; }
  .mobile-topnav a.active { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
  .main { padding: 22px 24px 32px; }
}

@media (max-width: 767px) {
  .search-box-btn { width: 40px; margin-left: auto; padding: 0; justify-content: center; }
  .search-box-btn .search-placeholder, .search-box-btn kbd { display: none; }
  .theme-switch .sun { display: none; }
  .top-actions { gap: 8px; }
  .brand-logo { height: 19px; }
  .top-version { display: none; }
  .topbar { gap: 8px; padding: 0 12px; }
  .lang-trigger { padding: 0 8px; gap: 6px; }
  .lang-trigger .chev { display: none; }
  .search-box-btn { height: 38px; width: 38px; }
  .main { padding: 18px 16px 28px; }
  .page-head { flex-direction: column; gap: 14px; }
  .page-head-actions { padding-top: 0; }
  .a11y-list > div { grid-template-columns: 1fr; gap: 4px; }
  .example-tools { width: 100%; margin-left: 0; flex-wrap: nowrap; gap: 8px; }
  .view-pill label { padding: 5px 10px; }
  .pager { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* An example box showing its code (HTML, Laravel or its own language): a dark code panel in the same place. */
.inline-code { padding: 0; }
.inline-code .code-block { border-radius: 0; box-shadow: none; }
.example-after.table-wrap { border-radius: 0; }

/* The copy button inside an example's code panel: an icon; it turns green once the code is copied. */
.copy-btn.icon-only { width: 32px; padding: 0; justify-content: center; }
.copy-btn.is-copied { border-color: #22c55e; color: #4ade80; }
