/* Workhint documentation shell. Redesigned at the user's request around a
   persistent topic navigation and a focused article reading column. */
.wh-docs {
  --docs-ink: #191919;
  --docs-muted: #686868;
  --docs-line: #e9e9e7;
  --docs-soft: #f5f5f3;
  --docs-header-height: 116px;
  color: var(--docs-ink);
  background: #fff;
  font-family: "Workhint Medium Light", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.wh-docs *, .wh-docs *::before, .wh-docs *::after { box-sizing: border-box; }
.wh-docs [hidden] { display: none !important; }
.wh-docs a { color: inherit; text-decoration: none; }
.wh-docs button, .wh-docs input { font: inherit; letter-spacing: inherit; }
.wh-docs button { cursor: pointer; }
.wh-docs button, .wh-docs input { color: inherit; }
.wh-docs svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.wh-docs h1, .wh-docs h2, .wh-docs h3, .wh-docs p, .wh-docs ul, .wh-docs ol { margin: 0; }
.wh-docs :focus-visible { outline: 2px solid #383838; outline-offset: 4px; border-radius: 4px; }
.wh-docs [id] { scroll-margin-top: calc(var(--docs-header-height) + 28px); }
.docs-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; }
.docs-skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; padding: 10px 16px; background: #191919; color: #fff !important; border-radius: 6px; transform: translateY(-150%); }
.docs-skip-link:focus { transform: translateY(0); }
.wh-docs .docs-enhanced-only { display: none; }
.wh-docs.docs-ready .docs-enhanced-only { display: inline-flex; }
.docs-lock-scroll { overflow: hidden; }

/* Compact documentation header. */
.docs-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--docs-line); backdrop-filter: blur(14px); }
.docs-topbar { height: 72px; max-width: 1440px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 32px; }
.docs-brand { display: inline-flex; align-items: center; gap: 18px; flex: 0 0 248px; min-width: 0; }
.docs-brand img { display: block; width: 118px; height: 31px; object-fit: contain; object-position: left center; }
.docs-brand-label { border-left: 1px solid #dededb; padding-left: 17px; color: #707070; font-size: 13px; line-height: 24px; }
.wh-docs a.docs-brand-label { color: #707070; }
.docs-search-trigger { display: flex; align-items: center; gap: 10px; height: 38px; width: 340px; max-width: 100%; padding: 0 12px; border: 1px solid #e2e2df; border-radius: 7px; background: #fafaf9; text-align: left; color: #777 !important; transition: border-color .16s, background-color .16s; }
.docs-search-trigger:hover { border-color: #bdbdb8; background: #f6f6f4; }
.docs-search-trigger span { flex: 1; font-size: 13px; white-space: nowrap; }
.docs-search-trigger svg { width: 16px; height: 16px; }
.docs-search-trigger kbd { margin-left: auto; border: 1px solid #e3e3df; border-radius: 4px; padding: 1px 5px; background: #fff; color: #8b8b86; font-family: inherit; font-size: 11px; line-height: 18px; white-space: nowrap; }
.docs-header-links { margin-left: auto; display: flex; align-items: center; gap: 24px; white-space: nowrap; font-size: 13px; }
.docs-text-link { color: #5d5d58 !important; }
.docs-text-link:hover { color: #111 !important; }
.docs-primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 14px; border: 1px solid #191919; border-radius: 6px; background: #191919; color: #fff !important; font-size: 13px; transition: background-color .16s; }
.docs-primary-link:hover { background: #383838; }
.docs-primary-link svg { width: 14px; height: 14px; }
.docs-subnav { height: 44px; max-width: 1440px; margin: 0 auto; padding: 0 40px; display: flex; align-items: stretch; gap: 28px; border-top: 1px solid #f4f4f2; }
.docs-section-tab { display: inline-flex; align-items: center; gap: 8px; position: relative; font-size: 13px; font-weight: 500; }
.docs-section-tab::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: #222; }
.docs-section-tab svg { width: 16px; height: 16px; }
.docs-mobile-controls { display: none; margin-left: auto; align-items: center; gap: 8px; }
.docs-mobile-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 34px; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; font-size: 13px; color: #666; }
.docs-mobile-controls button:hover { background: var(--docs-soft); color: #171717; }

/* Persistent, independently scrollable desktop topic navigation. */
.docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.docs-sidebar { position: sticky; top: var(--docs-header-height); align-self: start; height: calc(100vh - var(--docs-header-height)); height: calc(100dvh - var(--docs-header-height)); min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #deded9 transparent; border-right: 1px solid var(--docs-line); padding: 28px 20px 36px 0; }
.docs-navigation { min-height: 100%; }
.docs-nav-link { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 5px; color: #666560 !important; font-size: 14px; line-height: 1.6; transition: color .14s, background-color .14s; }
.docs-nav-link:hover { background: #f7f7f5; color: #1b1b19 !important; }
.docs-nav-link[aria-current="page"] { background: #f0f1ee; color: #151513 !important; font-weight: 500; }
.docs-nav-link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: #1f1f1c; }
.docs-nav-link svg { width: 16px; height: 16px; color: #898982; }
.docs-nav-overview { margin-bottom: 22px; }
.docs-nav-group { margin-top: 22px; }
.docs-nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 6px; list-style: none; cursor: pointer; color: #31312d; font-size: 12px; font-weight: 500; }
.docs-nav-group summary::-webkit-details-marker { display: none; }
.docs-nav-group summary::after { content: ""; width: 6px; height: 6px; margin-right: 2px; border-right: 1px solid #909089; border-bottom: 1px solid #909089; transform: rotate(-45deg); transition: transform .16s; }
.docs-nav-group[open] summary::after { transform: rotate(45deg); }
.docs-nav-group ul { list-style: none; padding: 0; }
.docs-nav-group li { margin: 1px 0; }
.docs-sidebar-contact { margin-top: 28px; border-top: 1px solid var(--docs-line); padding-top: 18px; }
.docs-sidebar-contact .docs-nav-link { align-items: flex-start; flex-wrap: wrap; }
.docs-sidebar-contact small { display: block; width: 100%; font-size: 11px; color: #8a8a83; overflow-wrap: anywhere; }

/* Article and overview surfaces share one constrained reading column. */
.docs-main { min-width: 0; padding: 48px 0 40px; outline: none; }
.docs-page { min-width: 0; max-width: 720px; margin: 0 auto; }
.docs-page + .docs-page { margin-top: 64px; }
.docs-ready .docs-page + .docs-page { margin-top: 0; }
.docs-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #888780; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.docs-breadcrumbs a:hover { color: #222; }
.docs-breadcrumbs svg { width: 13px; height: 13px; color: #aaa9a3; }
.docs-article-header { margin-bottom: 30px; }
.docs-eyebrow { margin-bottom: 10px !important; font-size: 12px; font-weight: 500; color: #62625b; }
.docs-article-header h1 { max-width: 700px; font-size: 36px; font-weight: 500; line-height: 1.25; letter-spacing: -.035em; color: #171715; }
.docs-lead { margin-top: 16px !important; font-size: 16px; line-height: 1.8; color: #77766f; }
.docs-prose { font-size: 16px; line-height: 1.9; color: #54544d; overflow-wrap: anywhere; }
.docs-prose p { margin: 18px 0; }
.docs-prose h2 { margin: 36px 0 16px; padding-top: 4px; color: #232320; font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
.docs-prose h3 { margin: 28px 0 12px; color: #2e2e28; font-size: 17px; font-weight: 500; }
.docs-prose h2:first-child { margin-top: 0; }
.docs-prose strong { color: #30302b; font-weight: 500; }
.docs-prose a { color: #252521; text-decoration: underline; text-decoration-color: #b6b6ae; text-underline-offset: 4px; }
.docs-prose a:hover { text-decoration-color: #252521; }
.docs-prose ol, .docs-prose ul { margin: 20px 0; padding-left: 25px; }
.docs-prose ol { list-style: decimal; }
.docs-prose ul { list-style: disc; }
.docs-prose li { padding-left: 5px; margin: 12px 0; }
.docs-prose ol li::marker { color: #8a8a82; font-size: 13px; }
.docs-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 36px; }
.docs-topic-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 21px; border: 1px solid #e4e4df; border-radius: 8px; background: #fff; transition: border-color .16s, background-color .16s; }
.docs-topic-card:hover { border-color: #bdbdb4; background: #fcfcfa; }
.docs-topic-card > svg { width: 22px; height: 22px; color: #45453f; margin-bottom: 1px; }
.docs-topic-card h2 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; color: #282824; }
.docs-topic-card p { margin: 0; font-size: 13px; line-height: 1.75; color: #77776e; }
.docs-topic-card > span { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 7px; font-size: 12px; color: #5c5c54; }
.docs-topic-card > span svg { width: 13px; height: 13px; }
.docs-link-list { margin: 30px 0; }
.docs-link-list h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.5; font-weight: 500; letter-spacing: -.025em; }
.docs-link-list > p { font-size: 14px; line-height: 1.8; color: #77776f; margin-bottom: 14px; }
.docs-link-list ul { list-style: none; padding: 0; border-top: 1px solid var(--docs-line); }
.docs-link-list li { border-bottom: 1px solid var(--docs-line); }
.docs-link-list li a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; font-size: 14px; color: #3b3b35; }
.docs-link-list li a:hover { color: #10100e; }
.docs-link-list li a > span { display: block; }
.docs-link-list li a small { display: block; margin-top: 4px; font-size: 12px; color: #85857b; line-height: 1.7; }
.docs-link-list li a svg { width: 15px; height: 15px; color: #99998f; }
.docs-callout { display: flex; gap: 12px; padding: 17px 19px; border: 1px solid #e4e4de; border-radius: 7px; background: #fafaf8; color: #6b6b61; font-size: 13px; line-height: 1.8; margin: 26px 0; }
.docs-callout svg { margin-top: 3px; color: #77776b; }
.docs-callout p { margin: 0; }
.docs-callout a { color: #272722; text-decoration: underline; text-underline-offset: 3px; }
.docs-contact-card { padding: 24px; border: 1px solid var(--docs-line); border-radius: 8px; background: #fafaf8; margin: 28px 0; }
.docs-contact-card h2 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.docs-contact-card p { color: #727269; font-size: 14px; line-height: 1.9; margin: 10px 0 18px; }
.docs-contact-card a:not(.docs-primary-link) { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.docs-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 42px; }
.docs-pagination > a { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 18px 20px; border: 1px solid #e4e4df; border-radius: 7px; font-size: 13px; transition: border-color .16s; }
.docs-pagination > a:hover { border-color: #b6b6ab; }
.docs-pagination > a:last-child { text-align: right; }
.docs-pagination small { font-size: 11px; color: #929287; }
.docs-pagination span { color: #44443a; }
.docs-pagination svg { position: absolute; width: 13px; height: 13px; top: 20px; color: #8a8a7f; }
.docs-pagination > a:first-child svg { right: 18px; }
.docs-pagination > a:last-child svg { left: 18px; }
.docs-article-footer { margin-top: 40px; border-top: 1px solid var(--docs-line); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #9a9a8f; font-size: 11px; }
.docs-article-footer a { color: #7e7e72; }
.docs-article-footer a:hover { color: #20201b; }
.docs-article-footer > div, .docs-article-footer > nav { display: flex; gap: 16px; }

/* Supplemental in-page links. */
.wh-docs:not(.docs-ready) .docs-toc { display: none; }
.docs-toc { display: none; position: sticky; top: calc(var(--docs-header-height) + 45px); align-self: start; max-height: calc(100vh - var(--docs-header-height) - 70px); overflow-y: auto; padding-bottom: 20px; font-size: 12px; }
.docs-toc > p { display: flex; align-items: center; gap: 8px; color: #57574f; font-size: 12px; margin-bottom: 14px; }
.docs-toc > p svg { width: 14px; height: 14px; }
.docs-toc nav { border-left: 1px solid #e6e6df; }
.docs-toc nav a { display: block; margin-left: -1px; border-left: 1px solid transparent; padding: 6px 0 6px 14px; line-height: 1.8; color: #929288; }
.docs-toc nav a:hover, .docs-toc nav a[aria-current="location"] { color: #363630; border-left-color: #55554a; }
.docs-toc-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--docs-line); color: #96968a; line-height: 1.9; }
.docs-toc-help a { display: block; margin-top: 5px; color: #55554a; overflow-wrap: anywhere; }
.docs-toc-help a:hover { color: #161613; }

/* Search is a native dialog so focus remains contained while it is open. */
.docs-search-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(650px, calc(100dvh - 110px)); margin: 90px auto 0; padding: 0; border: 1px solid #deded7; border-radius: 12px; background: #fff; color: var(--docs-ink); box-shadow: 0 24px 100px rgba(25,25,20,.2); overflow: auto; }
.docs-search-dialog::backdrop { background: rgba(26,26,24,.32); backdrop-filter: blur(3px); }
.docs-search-field { display: flex; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid var(--docs-line); }
.docs-search-field > svg { color: #88887c; }
.docs-search-field input { min-width: 0; width: 100%; padding: 0; border: 0; outline: none !important; background: transparent; font-size: 15px; line-height: 30px; color: #303027; }
.docs-search-field input::placeholder { color: #a0a093; }
.docs-search-field button { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 6px; border: 0; border-radius: 5px; background: #f4f4f0; color: #8e8e81; }
.docs-search-field button svg { width: 15px; height: 15px; }
.docs-search-status { margin: 0 !important; padding: 15px 20px 6px; color: #96968a; font-size: 11px; }
.docs-search-results { margin: 0 !important; padding: 4px 10px 12px !important; list-style: none; max-height: 420px; overflow-y: auto; }
.docs-search-results a { display: block; border-radius: 7px; padding: 12px 13px; }
.docs-search-results a:hover, .docs-search-results a:focus-visible { background: #f4f4f0; }
.docs-search-results small { display: block; color: #939387; font-size: 10px; margin-bottom: 4px; }
.docs-search-results strong { display: block; font-size: 13px; font-weight: 500; color: #34342b; }
.docs-search-results span { display: block; font-size: 12px; color: #8a8a7c; line-height: 1.7; margin-top: 4px; }
.docs-search-footer { padding: 12px 20px; border-top: 1px solid var(--docs-line); background: #fbfbf9; color: #a0a094; font-size: 10px; }
.wh-docs #support-empty { padding: 32px 24px; color: #858577; font-size: 13px; text-align: center; }
.wh-docs #support-empty a { color: #3e3e32; text-decoration: underline; text-underline-offset: 4px; }
.wh-docs #support-empty p + p { margin-top: 12px; }
.docs-backdrop { display: none; }

@media (min-width: 1200px) {
  .docs-layout { grid-template-columns: 248px minmax(0, 1fr) 176px; gap: 48px; }
  .docs-toc { display: block; }
}
@media (min-width: 1520px) {
  .docs-layout, .docs-topbar, .docs-subnav { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 1199px) {
  .docs-topbar, .docs-subnav { padding-left: 28px; padding-right: 28px; }
  .docs-layout { padding-left: 28px; padding-right: 32px; gap: 40px; grid-template-columns: 232px minmax(0, 1fr); }
  .docs-brand { flex-basis: 232px; }
  .docs-header-links { gap: 16px; }
  .docs-search-trigger { width: 300px; }
}
@media (max-width: 1023px) {
  .wh-docs { --docs-header-height: 108px; }
  .docs-topbar { height: 64px; padding: 0 24px; gap: 20px; }
  .docs-brand { flex: 0 1 auto; }
  .docs-brand img { width: 110px; height: 29px; }
  .docs-brand-label { font-size: 12px; }
  .docs-header-links { gap: 14px; }
  .docs-header-links .docs-text-link { display: none; }
  .docs-topbar > .docs-search-trigger { margin-left: auto; width: 290px; }
  .docs-header-links { margin-left: 0; }
  .docs-subnav { padding: 0 24px; }
  .docs-ready .docs-mobile-controls { display: flex; }
  .docs-layout { display: block; padding: 0 28px; max-width: 850px; }
  .docs-sidebar { position: static; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--docs-line); padding: 24px 0; overflow: visible; }
  .docs-ready .docs-sidebar { position: fixed; z-index: 35; top: var(--docs-header-height); left: 0; bottom: 0; width: min(320px, calc(100vw - 56px)); height: calc(100dvh - var(--docs-header-height)); padding: 24px 24px 40px; border-right: 1px solid var(--docs-line); border-bottom: 0; background: #fff; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
  .docs-ready.docs-menu-open .docs-sidebar { transform: translateX(0); visibility: visible; }
  .docs-backdrop { display: block; position: fixed; z-index: 30; inset: var(--docs-header-height) 0 0; border: 0; background: rgba(25,25,22,.28); }
  .docs-main { padding-top: 36px; }
  .docs-article-header h1 { font-size: 34px; }
  .docs-toc { display: none; }
}
@media (max-width: 820px) {
  .docs-topbar > .docs-search-trigger { display: none !important; }
  .docs-header-links { margin-left: auto; }
}
@media (max-width: 640px) {
  .docs-topbar { padding: 0 20px; gap: 12px; }
  .docs-brand { gap: 12px; }
  .docs-brand img { width: 100px; height: 27px; }
  .docs-brand-label { padding-left: 11px; font-size: 11px; }
  .docs-topbar > .docs-search-trigger { display: none !important; }
  .docs-header-links { margin-left: auto; }
  .docs-primary-link { min-height: 33px; padding: 6px 10px; font-size: 11px; }
  .docs-primary-link svg { display: none; }
  .docs-subnav { padding: 0 20px; }
  .docs-section-tab { font-size: 12px; }
  .docs-layout { padding: 0 22px; }
  .docs-main { padding: 28px 0 34px; }
  .docs-breadcrumbs { margin-bottom: 20px; font-size: 11px; }
  .docs-article-header { margin-bottom: 26px; }
  .docs-article-header h1 { font-size: 31px; line-height: 1.3; }
  .docs-lead { font-size: 15px; line-height: 1.85; margin-top: 14px !important; }
  .docs-prose { font-size: 16px; line-height: 1.9; }
  .docs-prose h2 { font-size: 21px; margin-top: 30px; }
  .docs-overview-grid { grid-template-columns: 1fr; margin-top: 24px; gap: 12px; }
  .docs-topic-card { padding: 20px; gap: 8px; }
  .docs-topic-card > span { padding-top: 4px; }
  .docs-callout { padding: 16px; font-size: 12px; }
  .docs-pagination { gap: 10px; margin-top: 32px; }
  .docs-pagination > a { padding: 14px 13px; font-size: 12px; }
  .docs-pagination svg { display: none; }
  .docs-article-footer { margin-top: 30px; font-size: 10px; }
  .docs-search-dialog { margin-top: 30px; max-height: calc(100dvh - 60px); }
  .docs-search-field { padding: 13px 15px; gap: 9px; }
  .docs-search-field input { font-size: 14px; }
  .docs-search-results { max-height: calc(100dvh - 220px); }
}
@media (max-width: 360px) {
  .docs-brand-label { display: none; }
  .docs-topbar, .docs-subnav { padding-left: 16px; padding-right: 16px; }
  .docs-layout { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-docs *, .wh-docs *::before, .wh-docs *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
