:root {
  --docs-accent: #2563eb;
  --docs-accent-soft: #eff6ff;
  --docs-text: #172033;
  --docs-muted: #657086;
  --docs-border: #e4e8ef;
  --docs-surface: #ffffff;
  --docs-subtle: #f7f9fc;
}

.prodfill-docs-body { background: #fff; }
.prodfill-docs { color: var(--docs-text); background: var(--docs-surface); min-height: 70vh; }
.prodfill-docs *, .prodfill-docs *::before, .prodfill-docs *::after { box-sizing: border-box; }
.prodfill-docs a { text-decoration: none; }
.prodfill-docs-toolbar { position: sticky; top: 0; z-index: 98; border-bottom: 1px solid var(--docs-border); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.prodfill-docs-toolbar-inner { max-width: 1500px; height: 68px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 260px minmax(260px, 640px) 1fr; align-items: center; gap: 28px; }
.prodfill-docs-brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--docs-text); font-size: 17px; font-weight: 700; }
.prodfill-docs-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #66bdff; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #3ba4ed 0%, #1769bd 48%, #0b2d72 100%); box-shadow: inset 0 0 0 2px rgba(207, 239, 255, .22), 0 6px 20px rgba(17, 83, 170, .3); font-size: 11px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(4, 28, 76, .6); }
.prodfill-docs-language { justify-self: end; padding: 8px 12px; border: 1px solid var(--docs-border); border-radius: 9px; color: var(--docs-muted); font-size: 14px; font-weight: 600; }
.prodfill-docs-language:hover { color: var(--docs-accent); border-color: #bfd1fa; }

.prodfill-docs-search { position: relative; display: flex; align-items: center; height: 42px; border: 1px solid var(--docs-border); border-radius: 11px; background: var(--docs-subtle); transition: .2s ease; }
.prodfill-docs-search:focus-within { border-color: #a9c3fa; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.prodfill-docs-search > svg { width: 18px; height: 18px; margin-left: 13px; fill: none; stroke: var(--docs-muted); stroke-width: 2; }
.prodfill-docs-search input { width: 100%; height: 100%; padding: 0 12px; border: 0; outline: 0; color: var(--docs-text); background: transparent; font-size: 14px; }
.prodfill-docs-search kbd { margin-right: 10px; padding: 1px 7px; border: 1px solid #d8dde7; border-radius: 5px; background: #fff; color: #8a94a7; font: 12px/20px ui-monospace, SFMono-Regular, Menlo, monospace; }
.prodfill-docs-search-results { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 120; max-height: min(520px, 70vh); overflow-y: auto; padding: 8px; border: 1px solid var(--docs-border); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(24, 32, 51, .16); }
.prodfill-docs-search-results a { display: grid; gap: 3px; padding: 11px 12px; border-radius: 9px; color: var(--docs-text); }
.prodfill-docs-search-results a:hover, .prodfill-docs-search-results a.is-active { background: var(--docs-accent-soft); }
.prodfill-docs-search-results strong { font-size: 14px; }
.prodfill-docs-search-results span { color: var(--docs-accent); font-size: 12px; }
.prodfill-docs-search-results small { color: var(--docs-muted); font-size: 12px; line-height: 1.45; }
.prodfill-docs-search-empty { margin: 0; padding: 18px; color: var(--docs-muted); text-align: center; font-size: 14px; }

.prodfill-docs-layout { max-width: 1500px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 260px minmax(0, 780px) 220px; justify-content: space-between; gap: 48px; }
.prodfill-docs-sidebar, .prodfill-docs-outline { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
.prodfill-docs-sidebar { padding: 25px 8px 50px 0; }
.prodfill-docs-sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.prodfill-docs-back { color: var(--docs-muted); font-size: 13px; }
.prodfill-docs-back:hover { color: var(--docs-accent); }
.prodfill-docs-menu-close, .prodfill-docs-menu-toggle { display: none; border: 0; background: transparent; }
.prodfill-docs-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 26px; padding: 4px; border-radius: 10px; background: #f0f3f8; }
.prodfill-docs-categories a { padding: 8px 7px; border-radius: 7px; color: var(--docs-muted); text-align: center; font-size: 13px; font-weight: 600; }
.prodfill-docs-categories a[aria-current="page"] { color: var(--docs-text); background: #fff; box-shadow: 0 1px 4px rgba(20, 31, 52, .1); }
.prodfill-docs-tree section { margin: 0 0 25px; }
.prodfill-docs-tree h2 { margin: 0 0 7px; padding: 0 11px; color: #929bae; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prodfill-docs-tree ul { margin: 0; padding: 0; list-style: none; }
.prodfill-docs-tree a { display: block; padding: 8px 11px; border-radius: 8px; color: #4c566b; font-size: 14px; line-height: 1.4; }
.prodfill-docs-tree a:hover { color: var(--docs-text); background: var(--docs-subtle); }
.prodfill-docs-tree a[aria-current="page"] { color: var(--docs-accent); background: var(--docs-accent-soft); font-weight: 600; }

.prodfill-docs-main { min-width: 0; padding: 41px 0 80px; }
.prodfill-docs-breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: #9aa3b4; font-size: 13px; }
.prodfill-docs-breadcrumbs a { color: var(--docs-muted); }
.prodfill-docs-breadcrumbs a:hover { color: var(--docs-accent); }
.prodfill-docs-title { padding-bottom: 28px; border-bottom: 1px solid var(--docs-border); }
.prodfill-docs-title h1 { margin: 0 0 13px; color: var(--docs-text); font-size: clamp(32px, 5vw, 46px); line-height: 1.15; letter-spacing: -.035em; }
.prodfill-docs-title p { max-width: 680px; margin: 0; color: var(--docs-muted); font-size: 17px; line-height: 1.7; }
.prodfill-docs-content { color: #39445a; font-size: 16px; line-height: 1.8; }
.prodfill-docs-content > *:first-child { margin-top: 30px; }
.prodfill-docs-content h2, .prodfill-docs-content h3 { scroll-margin-top: 100px; color: var(--docs-text); }
.prodfill-docs-content h2 { margin: 48px 0 16px; padding-top: 3px; font-size: 26px; line-height: 1.3; letter-spacing: -.02em; }
.prodfill-docs-content h3 { margin: 30px 0 10px; font-size: 19px; line-height: 1.4; }
.prodfill-docs-content p { margin: 0 0 17px; }
.prodfill-docs-content ul, .prodfill-docs-content ol { margin: 0 0 20px; padding-left: 24px; }
.prodfill-docs-content li { margin: 6px 0; padding-left: 4px; }
.prodfill-docs-content a { color: var(--docs-accent); font-weight: 500; }
.prodfill-docs-content a:hover { text-decoration: underline; }
.prodfill-docs-content code { padding: 2px 6px; border: 1px solid #e1e6ee; border-radius: 5px; background: #f6f8fb; color: #b42365; font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prodfill-docs-content pre { overflow-x: auto; margin: 20px 0; padding: 17px 19px; border: 1px solid #27334b; border-radius: 11px; background: #172033; color: #edf2fa; }
.prodfill-docs-content pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.docs-lead { color: #4d5970; font-size: 18px; line-height: 1.8; }
.docs-figure { margin: 28px 0; }
.docs-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--docs-border); border-radius: 13px; background: #eef1f6; box-shadow: 0 10px 30px rgba(27, 37, 57, .08); }
.docs-figure figcaption { margin-top: 9px; color: #7a8498; text-align: center; font-size: 13px; }
.docs-figure-narrow { max-width: 381px; }
.docs-callout { margin: 24px 0; padding: 18px 20px; border: 1px solid #cbdafa; border-left: 4px solid var(--docs-accent); border-radius: 9px; background: var(--docs-accent-soft); }
.docs-callout-warning { border-color: #f5d58a; border-left-color: #d99214; background: #fff9e9; }
.docs-callout strong { display: block; margin-bottom: 5px; color: var(--docs-text); }
.docs-callout p { margin: 0; }
.docs-button, .docs-download { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 8px; background: var(--docs-accent); color: #fff !important; font-size: 14px; font-weight: 600 !important; }
.docs-button:hover, .docs-download:hover { background: #1d4ed8; text-decoration: none !important; }
.docs-link-grid, .docs-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.docs-link-card, .docs-download-card { padding: 18px; border: 1px solid var(--docs-border); border-radius: 11px; background: #fff; }
.docs-link-card { display: grid; gap: 4px; color: var(--docs-text) !important; }
.docs-link-card:hover { border-color: #b9ccf7; background: var(--docs-accent-soft); text-decoration: none !important; }
.docs-link-card span, .docs-download-card p { color: var(--docs-muted); font-size: 13px; }
.docs-download-card h3 { margin-top: 0; }
.docs-table-wrap { overflow-x: auto; margin: 23px 0; border: 1px solid var(--docs-border); border-radius: 10px; }
.docs-table-wrap table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; }
.docs-table-wrap th, .docs-table-wrap td { padding: 11px 12px; border-right: 1px solid var(--docs-border); border-bottom: 1px solid var(--docs-border); text-align: left; vertical-align: top; }
.docs-table-wrap th { color: var(--docs-text); background: var(--docs-subtle); }
.docs-release-date { display: inline-block; margin-left: 9px; color: var(--docs-muted); font-size: 14px; font-weight: 500; }
.prodfill-docs-content .is-style-docs-lead { color: #4d5970; font-size: 18px; line-height: 1.8; }
.prodfill-docs-content .is-style-docs-info,
.prodfill-docs-content .is-style-docs-warning { margin: 24px 0; padding: 18px 20px; border: 1px solid #cbdafa; border-left: 4px solid var(--docs-accent); border-radius: 9px; background: var(--docs-accent-soft); }
.prodfill-docs-content .is-style-docs-warning { border-color: #f5d58a; border-left-color: #d99214; background: #fff9e9; }
.prodfill-docs-content .is-style-docs-info p:last-child,
.prodfill-docs-content .is-style-docs-warning p:last-child { margin-bottom: 0; }
.prodfill-docs-content .is-style-docs-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.prodfill-docs-content .is-style-docs-card { padding: 18px; border: 1px solid var(--docs-border); border-radius: 11px; background: #fff; }
.prodfill-docs-content .is-style-docs-wide { width: 100%; }
.prodfill-docs-content .is-style-docs-narrow { max-width: 381px; }
.prodfill-docs-content .is-style-docs-primary .wp-block-button__link { background: var(--docs-accent); }

.prodfill-docs-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--docs-border); }
.prodfill-docs-pagination a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--docs-border); border-radius: 10px; color: var(--docs-text); }
.prodfill-docs-pagination a:hover { border-color: #b9ccf7; background: var(--docs-accent-soft); }
.prodfill-docs-pagination span { color: var(--docs-muted); font-size: 12px; }
.prodfill-docs-pagination .is-next { text-align: right; }

.prodfill-docs-outline { padding: 46px 0 40px; }
.prodfill-docs-outline > strong { display: block; margin-bottom: 12px; color: var(--docs-text); font-size: 13px; }
.prodfill-docs-outline nav { border-left: 1px solid var(--docs-border); }
.prodfill-docs-outline a { display: block; margin-left: -1px; padding: 5px 0 5px 15px; border-left: 1px solid transparent; color: #7b8598; font-size: 12px; line-height: 1.45; }
.prodfill-docs-outline a.level-3 { padding-left: 27px; }
.prodfill-docs-outline a:hover, .prodfill-docs-outline a.is-active { color: var(--docs-accent); border-left-color: var(--docs-accent); }
.prodfill-docs-backdrop { display: none; }

@media (max-width: 1180px) {
  .prodfill-docs-toolbar-inner { grid-template-columns: 235px minmax(240px, 1fr) auto; }
  .prodfill-docs-layout { grid-template-columns: 235px minmax(0, 760px); gap: 40px; }
  .prodfill-docs-outline { display: none; }
}

@media (max-width: 800px) {
  body.prodfill-docs-menu-open { overflow: hidden; }
  .prodfill-docs-toolbar-inner { height: auto; min-height: 64px; padding: 10px 18px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .prodfill-docs-brand span:last-child { display: none; }
  .prodfill-docs-menu-toggle { display: grid; gap: 4px; width: 34px; padding: 7px; cursor: pointer; }
  .prodfill-docs-menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--docs-text); }
  .prodfill-docs-search { grid-column: 1 / -1; grid-row: 2; }
  .prodfill-docs-search kbd { display: none; }
  .prodfill-docs-language { font-size: 12px; }
  .prodfill-docs-layout { display: block; padding: 0 20px; }
  .prodfill-docs-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 130; width: min(86vw, 320px); max-height: none; padding: 22px 18px 45px; background: #fff; box-shadow: 16px 0 40px rgba(20, 29, 47, .2); transform: translateX(-105%); transition: transform .22s ease; }
  .prodfill-docs-menu-close { display: block; padding: 0 6px; color: var(--docs-muted); cursor: pointer; font-size: 28px; line-height: 1; }
  .prodfill-docs-backdrop { position: fixed; inset: 0; z-index: 125; background: rgba(17, 24, 39, .42); }
  .prodfill-docs.is-menu-open .prodfill-docs-sidebar { transform: translateX(0); }
  .prodfill-docs.is-menu-open .prodfill-docs-backdrop { display: block; }
  .prodfill-docs-main { padding: 30px 0 60px; }
  .prodfill-docs-breadcrumbs { margin-bottom: 20px; }
  .prodfill-docs-title h1 { font-size: 34px; }
  .docs-link-grid, .docs-download-grid, .prodfill-docs-content .is-style-docs-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .prodfill-docs-layout { padding: 0 16px; }
  .prodfill-docs-title h1 { font-size: 30px; }
  .prodfill-docs-title p, .docs-lead { font-size: 16px; }
  .prodfill-docs-content { font-size: 15px; }
  .prodfill-docs-content h2 { font-size: 23px; }
  .prodfill-docs-pagination { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .prodfill-docs-sidebar { transition: none; }
  .prodfill-docs * { scroll-behavior: auto !important; }
}
