/* Pricepep documentation pages (BetterDocs). Loaded on docs pages only, after site.css (inc/docs.php). */

/* ---------- Docs home: heading and introduction above the search ---------- */
body.pp-docs .pp-docs-hero { background: var(--pp-surface); padding: 56px 24px 8px; text-align: center; }
body.pp-docs .pp-docs-hero__inner { max-width: 780px; margin: 0 auto; }
body.pp-docs .pp-docs-hero__title { margin: 0 0 12px; font-family: var(--pp-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--pp-ink); }
body.pp-docs .pp-docs-hero__lead { margin: 0 auto 36px; max-width: 38rem; font-size: 18px; line-height: 1.6; color: var(--pp-muted); }
/* The popular articles: a group under a short label */
body.pp-docs .pp-docs-hero__group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
body.pp-docs .pp-docs-hero__label { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--pp-ink); }

/* Popular articles under the introduction */
body.pp-docs .pp-docs-hero__popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
body.pp-docs .pp-docs-hero__popular li { margin: 0; }
body.pp-docs .pp-docs-hero__popular a { display: inline-block; padding: 7px 14px; border: 1px solid var(--pp-line-strong); border-radius: 999px; background: var(--pp-surface); color: var(--pp-ink); text-decoration: none; }
body.pp-docs .pp-docs-hero__popular a:hover { border-color: var(--pp-accent); color: var(--pp-accent-ink); }

/* The search continues the heading's band */
body.pp-docs .pp-docs-hero + .betterdocs-wrapper .betterdocs-search-layout-1 { margin: 0 !important; background: var(--pp-surface) !important; padding: 24px 24px 48px !important; border-bottom: 1px solid var(--pp-line); }

/* Category boxes: equal columns, with the category's description */
body.pp-docs .betterdocs-category-box-inner-wrapper > * { min-width: 0; }
body.pp-docs .betterdocs-category-box-inner-wrapper .betterdocs-category-description { margin: 6px 0 8px; font-size: 14px; line-height: 1.5; color: var(--pp-muted); }

/* ---------- Breadcrumbs above articles and categories ---------- */
body.pp-docs .pp-docs-crumbs { max-width: 1200px; margin: 0 auto; padding: 20px 24px 0; font-size: 14px; line-height: 1.5; color: var(--pp-muted); }
body.pp-docs .pp-docs-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
body.pp-docs .pp-docs-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
body.pp-docs .pp-docs-crumbs li + li::before { content: "/"; color: var(--pp-line-strong); }
body.pp-docs .pp-docs-crumbs a { color: var(--pp-accent-ink); text-decoration: none; }
body.pp-docs .pp-docs-crumbs a:hover { text-decoration: underline; }
body.pp-docs .pp-docs-crumbs [aria-current="page"] { color: var(--pp-ink); overflow-wrap: anywhere; }
body.pp-docs .pp-docs-crumbs + .betterdocs-wrapper .betterdocs-content-wrapper { padding-top: 16px !important; }

/* ---------- Category pages: the category name is the page's heading ---------- */
body.pp-docs .betterdocs-content-area h1.betterdocs-category-title { margin: 0 !important; font-size: clamp(1.75rem, 3.5vw, 2.25rem) !important; line-height: 1.15 !important; }

/* ---------- Article content: tables and code scroll instead of widening the page ---------- */
body.pp-docs .betterdocs-content-area, body.pp-docs .betterdocs-content-inner-area, body.pp-docs .betterdocs-entry-content, body.pp-docs .betterdocs-content { min-width: 0; max-width: 100%; }
body.pp-docs .betterdocs-content :is(h2, h3, h4)[id] { scroll-margin-top: 24px; }
/* Long hook names in headings wrap instead of widening the page */
body.pp-docs .betterdocs-content :is(h2, h3, h4), body.pp-docs .betterdocs-entry-title { overflow-wrap: anywhere; }
body.pp-docs .betterdocs-content p, body.pp-docs .betterdocs-content li { overflow-wrap: break-word; }
body.pp-docs .betterdocs-content :not(pre) > code { overflow-wrap: anywhere; font-size: 0.88em; }

body.pp-docs .betterdocs-content .wp-block-table { display: block; max-width: 100%; margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.pp-docs .betterdocs-content .wp-block-table table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
body.pp-docs .betterdocs-content .wp-block-table th, body.pp-docs .betterdocs-content .wp-block-table td { min-width: 7rem; padding: 9px 12px; border: 1px solid var(--pp-line); text-align: left; vertical-align: top; }
body.pp-docs .betterdocs-content .wp-block-table thead th { background: var(--pp-thead); font-weight: 600; }
body.pp-docs .betterdocs-content .wp-block-table thead { border-bottom: 0; }

body.pp-docs .betterdocs-content pre.wp-block-code { max-width: 100%; margin: 1.25em 0; padding: 16px; overflow-x: auto; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); background: var(--pp-code); font-size: 14px; line-height: 1.55; white-space: pre; -webkit-overflow-scrolling: touch; }
body.pp-docs .betterdocs-content pre.wp-block-code code { display: block; padding: 0; background: none; font-size: inherit; white-space: inherit; overflow-wrap: normal; word-break: normal; }

/* Notes (quotes) in the developer reference */
body.pp-docs .betterdocs-content .wp-block-quote { margin: 1.25em 0; padding: 12px 16px; border: 0; border-left: 4px solid var(--pp-line-strong); border-radius: 0 var(--pp-radius-sm) var(--pp-radius-sm) 0; background: var(--pp-ground); font-style: normal; }
body.pp-docs .betterdocs-content .wp-block-quote p { margin: 0; font-size: 15px; }

/* ---------- End of an article: questions and answers, related articles ---------- */
body.pp-docs .pp-docs-faq { margin-top: 48px; padding-top: 4px; border-top: 1px solid var(--pp-line); }
body.pp-docs .pp-docs-faq h2 { margin-top: 1.2em !important; }
body.pp-docs .pp-docs-faq__q { margin: 1.2em 0 0.35em !important; font-size: 18px !important; line-height: 1.35; }
body.pp-docs .pp-docs-faq__a { margin: 0; }

body.pp-docs .pp-docs-related { margin-top: 40px; padding: 20px 24px; border: 1px solid var(--pp-line); border-radius: var(--pp-radius); background: var(--pp-ground); }
body.pp-docs .pp-docs-related h2 { margin: 0 0 8px !important; font-size: 20px !important; }
body.pp-docs .pp-docs-related__list { margin: 0; padding-left: 1.2em; }
body.pp-docs .pp-docs-related__list li { margin: 4px 0; }
body.pp-docs .pp-docs-related__more { margin: 12px 0 0; font-size: 15px; color: var(--pp-muted); }

/* ---------- The site's look (the owner's review, 2 Dec 2026) ----------
   BetterDocs' slate colours, boxes and icons give way to the site's: its column width, cards, neutrals and fonts. The
   rules win over BetterDocs' own styles and the older ones in site.css, hence the !important */

/* One column width with the header and footer */
body.pp-docs .betterdocs-wrapper .betterdocs-content-wrapper { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }

/* Docs home: the categories as the site's cards, three across, text on the left, no folder icons */
body.pp-docs .betterdocs-category-box-inner-wrapper { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; }
body.pp-docs .betterdocs-category-box-inner-wrapper > a.category-box { display: block !important; margin: 0 !important; padding: 26px 28px !important; background: var(--pp-surface) !important; border: 1px solid var(--pp-line) !important; border-radius: var(--pp-radius) !important; box-shadow: none !important; text-align: left !important; color: var(--pp-ink); text-decoration: none; transition: border-color 0.15s ease; }
body.pp-docs .betterdocs-category-box-inner-wrapper > a.category-box:hover { border-color: var(--pp-accent) !important; background: var(--pp-surface) !important; }
body.pp-docs a.category-box .betterdocs-single-category-inner, body.pp-docs a.category-box .betterdocs-category-header, body.pp-docs a.category-box .betterdocs-category-header-inner { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
body.pp-docs a.category-box .betterdocs-category-icon { display: none !important; }
body.pp-docs a.category-box .betterdocs-category-title-counts { display: block !important; text-align: left !important; }
body.pp-docs a.category-box .betterdocs-category-title { text-align: left !important; margin: 0 0 8px !important; font-family: var(--pp-font) !important; font-size: 20px !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: 0 !important; color: var(--pp-ink) !important; }
body.pp-docs a.category-box:hover .betterdocs-category-title { color: var(--pp-accent-ink) !important; }
body.pp-docs a.category-box .betterdocs-category-description { margin: 0 !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--pp-muted) !important; text-align: left !important; }

/* The sidebar: a quiet list of categories on the page's ground, the open one's articles under it. The search field's
   border (and View Categories' below) #8C8D86: 3:1 against white (review R6a-N2) */
body.pp-docs .betterdocs-sidebar.betterdocs-sidebar-layout-7 { border-right: 0 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-sidebar-content { padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-search-popup { margin: 0 0 16px !important; padding: 0 !important; background: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-search-popup .betterdocs-searchform { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px !important; background: var(--pp-surface) !important; border: 1px solid #8C8D86 !important; border-radius: var(--pp-radius-sm) !important; cursor: pointer; }
body.pp-docs .betterdocs-sidebar .betterdocs-search-popup .betterdocs-search-command { color: var(--pp-muted) !important; font-size: 15px !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-search-popup .command-key { color: var(--pp-muted) !important; font-size: 13px !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-grid-inner-wrapper { display: block !important; padding: 0 !important; background: none !important; border: 0 !important; border-top: 1px solid var(--pp-line) !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-single-category-wrapper, body.pp-docs .betterdocs-sidebar .betterdocs-single-category-wrapper.active, body.pp-docs .betterdocs-sidebar .betterdocs-single-category-wrapper.show { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--pp-line) !important; border-radius: 0 !important; box-shadow: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-single-category-wrapper::before { display: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-single-category-inner { padding: 0 !important; background: none !important; border: 0 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-header { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-header-inner { display: flex !important; align-items: center; gap: 8px; min-height: 44px; padding: 8px 2px !important; background: none !important; border: 0 !important; cursor: pointer; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-icon { display: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-title { flex: 1 1 auto; min-width: 0; margin: 0 !important; font-family: var(--pp-font) !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.35 !important; letter-spacing: 0 !important; color: var(--pp-ink) !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-items-counts { flex: none; display: inline !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; border-radius: 0 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-items-counts span { display: inline !important; width: auto !important; height: auto !important; padding: 0 !important; background: none !important; color: var(--pp-muted) !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-category-header-inner > svg { flex: none; width: 10px !important; height: 10px !important; fill: var(--pp-muted) !important; color: var(--pp-muted); }
body.pp-docs .betterdocs-sidebar .betterdocs-body { margin: 0 !important; padding: 0 0 12px !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list { margin: 0 0 0 2px !important; padding: 0 !important; border-left: 1px solid var(--pp-line-strong) !important; background: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li, body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li:hover { display: block !important; margin: 0 !important; padding: 0 !important; background: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li > svg { display: none !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li a { display: block !important; margin: 0 0 0 -1px !important; padding: 5px 0 5px 13px !important; border-left: 2px solid transparent; border-radius: 0 !important; background: none !important; color: var(--pp-muted) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.45 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li a span { color: inherit !important; font: inherit !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li a:hover, body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li a:not(.active):hover { background: none !important; color: var(--pp-ink) !important; text-decoration: underline; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li a.active, body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li.active a { border-left-color: var(--pp-accent); background: none !important; color: var(--pp-ink) !important; font-weight: 600 !important; }
body.pp-docs .betterdocs-sidebar .betterdocs-articles-list li a::before { display: none !important; }

/* Category pages: the name and count as the page's heading, then the articles as the site's list of links */
body.pp-docs .betterdocs-category-archive-wrapper .betterdocs-content-area { padding: 36px 40px 40px !important; }
body.pp-docs .betterdocs-category-archive-wrapper .betterdocs-content-inner-area { padding: 0 !important; background: none !important; }
body.pp-docs .betterdocs-main-category-folder { margin: 0 0 20px !important; padding: 0 !important; background: none !important; border: 0 !important; text-align: left !important; }
body.pp-docs .betterdocs-main-category-folder .betterdocs-category-header { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.pp-docs .betterdocs-main-category-folder .betterdocs-category-header-inner { display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
body.pp-docs .betterdocs-main-category-folder .betterdocs-category-icon { display: none !important; }
body.pp-docs .betterdocs-main-category-folder .betterdocs-category-title { text-align: left !important; color: var(--pp-ink) !important; }
body.pp-docs .betterdocs-main-category-folder .betterdocs-sub-category-items-counts { margin: 8px 0 0 !important; text-align: left !important; }
body.pp-docs .betterdocs-main-category-folder .betterdocs-sub-category-items-counts span { color: var(--pp-muted) !important; font-size: 15px !important; font-weight: 400 !important; }
body.pp-docs .betterdocs-title-excerpt-lists { margin: 0 !important; border-top: 1px solid var(--pp-line); }
body.pp-docs .betterdocs-title-excerpt-list { margin: 0 !important; padding: 18px 0 !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--pp-line) !important; border-radius: 0 !important; box-shadow: none !important; }
body.pp-docs .betterdocs-title-excerpt-list .betterdocs-entry-title { display: block !important; margin: 0 0 6px !important; padding: 0 !important; font-family: var(--pp-font) !important; font-size: 18px !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
body.pp-docs .betterdocs-title-excerpt-list .betterdocs-entry-title > span { display: none !important; }
body.pp-docs .betterdocs-title-excerpt-list .betterdocs-entry-title a { font: inherit !important; color: var(--pp-accent-ink) !important; text-decoration: none; }
body.pp-docs .betterdocs-title-excerpt-list .betterdocs-entry-title a:hover { color: var(--pp-ink) !important; text-decoration: underline; }
body.pp-docs .betterdocs-title-excerpt-list p { margin: 0 !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.6 !important; color: var(--pp-muted) !important; }

/* Articles: text and headings in the site's ink; the table of contents in its greys */
body.pp-docs .betterdocs-entry-content :is(p, li, h2, h3, h4, h5, td, th, dt, dd, figcaption) { color: var(--pp-ink) !important; }
body.pp-docs .betterdocs-entry-content :is(p, li) { font-size: 17px !important; line-height: 1.7 !important; }
body.pp-docs .betterdocs-entry-content h2 { margin: 1.6em 0 0.5em !important; font-family: var(--pp-display) !important; font-size: 26px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: -0.01em !important; }
body.pp-docs .betterdocs-entry-content h3 { margin: 1.4em 0 0.4em !important; font-family: var(--pp-font) !important; font-size: 20px !important; font-weight: 600 !important; line-height: 1.3 !important; }
body.pp-docs .betterdocs-doc-meta, body.pp-docs .betterdocs-doc-meta :is(p, button, span) { color: var(--pp-muted) !important; font-size: 14px !important; }
body.pp-docs .betterdocs-toc { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.pp-docs .betterdocs-toc .toc-title { margin: 0 0 10px !important; padding: 0 !important; color: var(--pp-ink) !important; font-size: 14px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.pp-docs .betterdocs-toc .toc-list { margin: 0 !important; padding: 0 !important; border-left: 1px solid var(--pp-line-strong) !important; }
body.pp-docs .betterdocs-toc .toc-list li { margin: 0 !important; padding: 0 !important; }
body.pp-docs .betterdocs-toc .toc-list li a { display: block !important; margin: 0 0 0 -1px !important; padding: 5px 0 5px 13px !important; border-left: 2px solid transparent; color: var(--pp-muted) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.45 !important; text-decoration: none; }
body.pp-docs .betterdocs-toc .toc-list li a::before { display: none !important; }
body.pp-docs .betterdocs-toc .toc-list li a:hover { color: var(--pp-ink) !important; text-decoration: underline; }
body.pp-docs .betterdocs-toc .toc-list li a.active, body.pp-docs .betterdocs-toc .toc-list li.active > a { border-left-color: var(--pp-accent); color: var(--pp-ink) !important; font-weight: 600 !important; }
/* The sticky table of contents (enable_sticky_toc) floats over the text: always on white, with room inside */
body.pp-docs .sticky-toc-container .betterdocs-toc { padding: 16px 18px !important; background: var(--pp-surface) !important; border: 1px solid var(--pp-line) !important; border-radius: var(--pp-radius) !important; box-shadow: 0 8px 24px -12px rgba(20, 22, 27, 0.25) !important; }

/* Phones: BetterDocs' "View Categories" as the site's secondary button */
body.pp-docs .betterdocs-mobile-nav { margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.pp-docs .betterdocs-mobile-nav .betterdocs-sidebar-icon { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px !important; border: 1px solid #8C8D86 !important; border-radius: var(--pp-radius-sm) !important; background: var(--pp-surface) !important; color: var(--pp-ink) !important; font-size: 15px !important; font-weight: 600 !important; cursor: pointer; }
body.pp-docs .betterdocs-mobile-nav .betterdocs-sidebar-icon span { color: inherit !important; font: inherit !important; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
    body.pp-docs .betterdocs-category-box-inner-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
    body.pp-docs .betterdocs-category-archive-wrapper .betterdocs-content-area { padding: 24px !important; }
    body.pp-docs .betterdocs-wrapper .betterdocs-content-wrapper .betterdocs-content-area.docs-single-main { padding: 24px !important; }
    /* The sidebar opened with View Categories covers the screen: room around it */
    body.pp-docs .betterdocs-sidebar .betterdocs-sidebar-content { padding: 20px !important; background: var(--pp-surface) !important; }
    body.pp-docs .pp-docs-hero { padding: 32px 20px 4px; }
    body.pp-docs .pp-docs-hero__lead { font-size: 17px; }
    body.pp-docs .pp-docs-crumbs { padding: 16px 20px 0; }
    body.pp-docs .betterdocs-content .wp-block-table table { font-size: 14px; }
    body.pp-docs .betterdocs-content pre.wp-block-code { font-size: 13px; padding: 12px; }
    body.pp-docs .pp-docs-related { padding: 16px; }
}

@media (max-width: 600px) {
    body.pp-docs .betterdocs-category-box-inner-wrapper { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
    body.pp-docs .betterdocs-category-box-inner-wrapper > a.category-box { padding: 20px 22px !important; }
    body.pp-docs .betterdocs-category-archive-wrapper .betterdocs-content-area { padding: 20px !important; }
    body.pp-docs .betterdocs-wrapper .betterdocs-content-wrapper .betterdocs-content-area.docs-single-main { padding: 20px !important; }
    body.pp-docs .pp-docs-hero + .betterdocs-wrapper .betterdocs-search-layout-1 { padding: 16px 20px 32px !important; }

    /* BetterDocs' Listen player opens over the meta row, inside the screen */
    body.pp-docs .betterdocs-doc-meta { position: relative; }
    body.pp-docs .betterdocs-listen { position: static; }
    body.pp-docs .betterdocs-listen-player { left: 0; right: auto; max-width: 100%; }
}
