/*
 * Sepo Help Desk — the docs pages.
 * Colours come from the page itself (text and background) and the accent
 * chosen in the settings, so they work on light and dark themes. The script
 * adds .is-dark when the page is dark. Flat: no shadows.
 */
.shd {
  --shd-ink: currentColor;
  --shd-line: color-mix(in srgb, currentColor 13%, transparent);
  --shd-line-2: color-mix(in srgb, currentColor 22%, transparent);
  --shd-soft: color-mix(in srgb, currentColor 5%, transparent);
  --shd-hover: color-mix(in srgb, currentColor 8%, transparent);
  --shd-muted: color-mix(in srgb, currentColor 70%, transparent);
  --shd-tint: color-mix(in srgb, var(--shd-accent) 11%, transparent);
  --shd-accent-ink: color-mix(in srgb, var(--shd-accent) 85%, currentColor);
  --shd-on-accent: #fff;
  --shd-bg: var(--wp--preset--color--base, #fff);
  font-size: 1rem;
  line-height: 1.6;
}
.shd.is-dark { --shd-accent-ink: color-mix(in srgb, var(--shd-accent) 40%, #fff); --shd-muted: color-mix(in srgb, currentColor 78%, transparent); }
.shd, .shd *, .shd *::before, .shd *::after { box-sizing: border-box; }
.shd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shd :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--shd-accent-ink); outline-offset: 2px; }
.shd .shd-i { flex: none; }

.shd-docs { width: 100%; max-width: var(--shd-width, 1240px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px) 56px; }
/* Lined up with the theme's header by the script */
.shd-docs.is-aligned { max-width: none; margin-left: var(--shd-ml, auto); margin-right: 0; padding-left: 0; padding-right: 0; width: var(--shd-w, 100%); }
.wp-site-blocks > .shd-docs, body .shd-docs { margin-block-start: 0; }

/* Buttons */
.shd .shd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; padding: 0 18px; border: 1px solid var(--shd-accent); border-radius: 12px; background: var(--shd-accent); color: var(--shd-on-accent); font: inherit; font-size: .93rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: none; cursor: pointer; }
.shd .shd-btn:hover { filter: brightness(1.1); text-decoration: none; }
.shd .shd-btn-soft { border-color: var(--shd-line-2); background: transparent; color: inherit; }
.shd .shd-btn-soft:hover { background: var(--shd-hover); filter: none; }
.shd .shd-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.shd .shd-ico { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.shd .shd-ico:hover { background: var(--shd-hover); }
.shd .shd-linkbtn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: inherit; cursor: pointer; }
.shd .shd-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Top bar */
.shd-topbar { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--shd-line); margin-bottom: 8px; }
.shd .shd-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.shd .shd-brand svg { color: var(--shd-accent-ink); }
.shd .shd-searchbtn { display: inline-flex; align-items: center; gap: 10px; min-width: min(320px, 40vw); min-height: 42px; margin: 0; padding: 0 10px 0 14px; border: 1px solid transparent; border-radius: 999px; background: var(--shd-soft); color: var(--shd-muted); font: inherit; font-size: .93rem; cursor: pointer; }
.shd .shd-searchbtn:hover { border-color: var(--shd-line-2); }
.shd .shd-searchbtn span { flex: 1; text-align: left; }
.shd kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--shd-line-2); border-radius: 6px; font-family: inherit; font-size: .78rem; line-height: 1; }

/* Search */
.shd-search { position: relative; width: 100%; }
.shd-search-field { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 0 18px 0 20px; border: 1px solid var(--shd-line); border-radius: 999px; background: var(--shd-bg); color: inherit; cursor: text; }
.shd-search-field:focus-within { border-color: var(--shd-accent-ink); }
.shd-search-field > svg { opacity: .7; }
.shd .shd-search-field input, .shd .shd-search-field input:focus { flex: 1; min-width: 0; height: 54px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; outline: none; color: inherit; font: inherit; font-size: 1.05rem; }
.shd .shd-search-field input::placeholder { color: var(--shd-muted); opacity: 1; }
.shd-search-field input::-webkit-search-cancel-button { display: none; }
.shd-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; max-height: min(480px, 70vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--shd-line-2); border-radius: 16px; background: var(--shd-bg); color: var(--shd-ink); text-align: left; }
.shd-results[hidden] { display: none; }
.shd-dlg .shd-results { position: static; max-height: none; border: 0; padding: 6px 0 0; }
.shd-res { display: block; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.shd-res:hover, .shd-res[aria-selected="true"] { background: var(--shd-tint); text-decoration: none; }
.shd-res-t { display: block; font-weight: 650; }
.shd-res-p { display: block; margin-top: 1px; color: var(--shd-muted); font-size: .8rem; }
.shd-res-x { display: block; margin-top: 3px; color: var(--shd-muted); font-size: .86rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shd-res mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--shd-accent) 24%, transparent); color: inherit; }
.shd-res-none { padding: 18px 12px; color: var(--shd-muted); text-align: center; }
.shd-res-none a { color: var(--shd-accent-ink); font-weight: 600; }
.shd-res-group { margin: 8px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--shd-muted); }

/* Search dialog */
.shd-dlg { width: min(640px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 48px)); margin: 8vh auto auto; padding: 14px; border: 1px solid var(--shd-line-2); border-radius: 20px; background: var(--shd-bg); color: var(--shd-ink); overflow: hidden; }
.shd-dlg[open] { display: flex; flex-direction: column; }
.shd-dlg::backdrop { background: rgb(10 12 16 / .5); }
.shd-dlg .shd-search { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.shd-dlg .shd-results { overflow-y: auto; flex: 1; }
.shd-dlg-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px 0; border-top: 1px solid var(--shd-line); margin-top: 6px; color: var(--shd-muted); font-size: .8rem; }

/* Home */
.shd-hero { padding: clamp(36px, 7vw, 72px) 0 clamp(28px, 5vw, 44px); text-align: center; }
.shd-hero h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; letter-spacing: -.01em; }
.shd-hero p { margin: 0 auto 26px; max-width: 560px; color: var(--shd-muted); font-size: 1.08rem; }
.shd-hero .shd-search { max-width: 680px; margin: 0 auto; }
.shd-hero .shd-search-field { min-height: 62px; background: var(--shd-soft); border-color: transparent; }
.shd-hero .shd-search-field:focus-within { background: var(--shd-bg); border-color: var(--shd-accent-ink); }
.shd-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; margin: 0 0 40px; }
.shd .shd-col { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--shd-line); border-radius: 18px; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.shd .shd-col:hover { border-color: color-mix(in srgb, var(--shd-c, var(--shd-accent)) 55%, transparent); background: color-mix(in srgb, var(--shd-c, var(--shd-accent)) 5%, transparent); text-decoration: none; }
.shd-col-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: color-mix(in srgb, var(--shd-c, var(--shd-accent)) 15%, transparent); color: color-mix(in srgb, var(--shd-c, var(--shd-accent)) 82%, currentColor); }
.shd.is-dark .shd-col-ic { color: color-mix(in srgb, var(--shd-c, var(--shd-accent)) 45%, #fff); }
.shd-col-ic.is-lg { width: 60px; height: 60px; border-radius: 16px; margin: 0; }
.shd-col-t { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.shd-col-d { color: var(--shd-muted); font-size: .92rem; line-height: 1.5; }
.shd-col-n { margin-top: auto; padding-top: 6px; color: var(--shd-muted); font-size: .82rem; }
.shd-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px 40px; margin: 0 0 40px; }
.shd-lists h2 { margin: 0 0 8px; font-size: 1.1rem; }
.shd-links { margin: 0; padding: 0; list-style: none; }
.shd-links li { margin: 0; border-bottom: 1px solid var(--shd-line); }
.shd .shd-links a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; color: inherit; text-decoration: none; }
.shd .shd-links a:hover strong { color: var(--shd-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.shd-links svg { margin-top: 3px; opacity: .6; }
.shd-links span { display: flex; flex-direction: column; min-width: 0; }
.shd-links strong { font-weight: 600; }
.shd-links small { color: var(--shd-muted); font-size: .82rem; }
.shd-band { display: flex; align-items: center; gap: 18px; margin: 32px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--shd-tint); }
.shd-band h2 { margin: 0; font-size: 1.12rem; }
.shd-band p { margin: 2px 0 0; color: var(--shd-muted); }
.shd-band > div { flex: 1; min-width: 0; }
.shd-band-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--shd-bg); color: var(--shd-accent-ink); flex: none; }
.shd-empty { padding: 40px 0; color: var(--shd-muted); text-align: center; }
.shd-main .shd-empty { padding: 8px 0 24px; text-align: left; }

/* The three columns */
.shd-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 40px; align-items: start; padding-top: 24px; }
.shd-shell:not(:has(.shd-toc)) { grid-template-columns: 260px minmax(0, 1fr); }
.shd-shell.is-single { grid-template-columns: minmax(0, 1fr); }
.shd-main { min-width: 0; }
.shd-side { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px); max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 20px 0; scrollbar-width: thin; }
.shd-side-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.shd .shd-side-col { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; font-weight: 700; text-decoration: none; }
.shd-side-col .shd-col-ic { width: 34px; height: 34px; margin: 0; border-radius: 10px; }
.shd-side-x { display: none !important; }
.shd-side-switch { display: block; margin: 0 0 14px; }
.shd .shd-side-switch select { width: 100%; min-height: 38px; margin: 0; padding: 0 30px 0 10px; border: 1px solid var(--shd-line); border-radius: 10px; background-color: var(--shd-bg); color: inherit; font: inherit; font-size: .88rem; }
.shd-tree { margin: 0; padding: 0; list-style: none; }
.shd-tree.is-sub { margin: 2px 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--shd-line); }
.shd-tree li { margin: 0; }
.shd-tree-row { display: flex; align-items: center; gap: 2px; }
.shd .shd-tree a { flex: 1; min-width: 0; display: block; padding: 6px 10px; border-radius: 9px; color: inherit; font-size: .92rem; line-height: 1.4; text-decoration: none; opacity: .88; }
.shd .shd-tree a:hover { background: var(--shd-hover); opacity: 1; }
.shd .shd-tree a[aria-current="page"] { background: var(--shd-tint); color: var(--shd-accent-ink); font-weight: 650; opacity: 1; }
.shd .shd-tree-tog { width: 30px; height: 30px; }
.shd-tree-tog svg, .shd-tree-sec svg { transition: transform .15s; }
.shd-tree-tog[aria-expanded="false"] svg, .shd-tree-sec[aria-expanded="false"] svg { transform: rotate(-90deg); }
.shd .shd-tree-sec { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 14px 0 4px; padding: 4px 10px; border: 0; background: none; color: var(--shd-muted); font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; text-align: left; }
.shd-tree > li.is-section:first-child > .shd-tree-sec { margin-top: 0; }
.shd-tree.is-sub .shd-tree-sec { text-transform: none; letter-spacing: 0; font-size: .9rem; color: inherit; }
.shd-shade { display: none; }
.shd .shd-menubtn { display: none; }

/* Breadcrumb */
.shd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .86rem; color: var(--shd-muted); }
.shd-crumbs li { margin: 0; }
.shd-crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.shd .shd-crumbs a { color: inherit; text-decoration: none; }
.shd .shd-crumbs a:hover { color: var(--shd-accent-ink); text-decoration: underline; }

/* Collection page */
.shd-colhead { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 28px; }
.shd-colhead h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; }
.shd-colhead p { margin: 0 0 4px; color: var(--shd-muted); }
.shd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--shd-muted); font-size: .86rem; }
.shd-meta > span, .shd-meta > button { display: inline-flex; align-items: center; gap: 6px; }
.shd-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.shd-sec { padding: 18px 20px; border: 1px solid var(--shd-line); border-radius: 16px; }
.shd-sec h2 { margin: 0 0 8px; font-size: 1.05rem; }
.shd .shd-sec h2 a { color: inherit; text-decoration: none; }
.shd .shd-sec h2 a:hover { color: var(--shd-accent-ink); text-decoration: underline; }
.shd-sec ul { margin: 0; padding: 0; list-style: none; }
.shd-sec li { margin: 0; }
.shd .shd-sec li a { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; font-size: .95rem; }
.shd .shd-sec li a:hover span { color: var(--shd-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.shd-sec li svg { margin-top: 4px; opacity: .55; }

/* Article */
.shd-article { max-width: 780px; }
.shd-arthead { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--shd-line); }
.shd-arthead h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.35rem); line-height: 1.2; letter-spacing: -.01em; }
.shd-content { font-size: 1.02rem; line-height: 1.72; }
.shd-content > :first-child { margin-top: 0; }
.shd-content :is(h2, h3, h4) { position: relative; scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px); line-height: 1.3; }
.shd-content h2 { margin: 2em 0 .6em; font-size: 1.5rem; }
.shd-content h3 { margin: 1.6em 0 .5em; font-size: 1.2rem; }
.shd .shd-anchor { margin-left: 8px; color: var(--shd-muted); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity .15s; }
.shd-content :is(h2, h3):hover .shd-anchor, .shd .shd-anchor:focus-visible { opacity: 1; }
.shd .shd-content a { color: var(--shd-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.shd-content img { max-width: 100%; height: auto; border-radius: 12px; }
.shd-content img.is-zoomable { cursor: zoom-in; }
.shd-content figure { margin: 1.4em 0; }
.shd-content figcaption { color: var(--shd-muted); font-size: .86rem; text-align: center; }
.shd-content :not(pre) > code { padding: .1em .35em; border-radius: 6px; background: var(--shd-soft); font-size: .88em; }
.shd-content pre { position: relative; margin: 1.4em 0; padding: 16px 18px; border: 1px solid var(--shd-line); border-radius: 12px; background: var(--shd-soft); overflow-x: auto; font-size: .88rem; line-height: 1.6; white-space: pre; }
.shd-content pre code { background: none; padding: 0; font-size: inherit; }
.shd .shd-content :is(pre, pre code, .wp-block-code, .wp-block-code code) { background-color: var(--shd-soft); color: inherit; }
.shd .shd-content pre code, .shd .shd-content .wp-block-code code { background: none; }
.shd .shd-copy { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 0 10px; border: 1px solid var(--shd-line-2); border-radius: 8px; background: var(--shd-bg); color: inherit; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; }
.shd-content pre:hover .shd-copy, .shd .shd-copy:focus-visible, .shd .shd-copy.is-done { opacity: 1; }
.shd-content table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: .94rem; }
.shd .shd-content .wp-block-table { margin: 1.4em 0; overflow-x: auto; }
.shd .shd-content .wp-block-table table { margin: 0; border: 1px solid var(--shd-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.shd .shd-content .wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--shd-line); }
.shd .shd-content .wp-block-table tr:last-child td { border-bottom: 0; }
.shd .shd-content .wp-block-table thead { border: 0; }
.shd-content :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--shd-line); text-align: left; vertical-align: top; }
.shd-content th { font-weight: 650; background: var(--shd-soft); }
.shd-content blockquote { margin: 1.4em 0; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--shd-soft); }
.shd-content :is(ul, ol) { padding-left: 1.4em; }
.shd-content li { margin: .25em 0; }
.shd-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--shd-line); }

/* Was this helpful? */
.shd-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 780px; margin: 40px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--shd-soft); }
.shd-helpful > p { margin: 0; font-weight: 650; }
.shd-helpful-btns { display: flex; gap: 8px; }
.shd-helpful-btns .shd-btn { min-height: 38px; padding: 0 14px; }
.shd-helpful-more { display: flex; flex-direction: column; gap: 8px; flex: 1 1 100%; }
.shd-helpful-more[hidden], .shd-helpful-done[hidden] { display: none; }
.shd-helpful-more label { font-size: .9rem; font-weight: 600; }
.shd .shd-helpful-more textarea { width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--shd-line-2); border-radius: 10px; background: var(--shd-bg); color: inherit; font: inherit; font-size: .95rem; resize: vertical; }
.shd-helpful-more .shd-btn { align-self: flex-start; }
.shd-helpful-done { margin: 0; color: var(--shd-muted); }

/* Previous and next */
.shd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin: 28px 0 0; }
.shd .shd-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--shd-line); border-radius: 14px; color: inherit; text-decoration: none; }
.shd .shd-pager a:hover { border-color: var(--shd-accent-ink); }
.shd-pager a.is-next { grid-column: 2; text-align: right; }
.shd-pager small { color: var(--shd-muted); font-size: .8rem; }
.shd-pager span { font-weight: 650; color: var(--shd-accent-ink); }

/* On this page */
.shd-toc { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px); max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 40px); overflow-y: auto; font-size: .86rem; }
.shd-toc > p { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--shd-muted); }
.shd-toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--shd-line); }
.shd-toc li { margin: 0; }
.shd .shd-toc a { display: block; margin-left: -1px; padding: 4px 0 4px 12px; border-left: 2px solid transparent; color: var(--shd-muted); line-height: 1.4; text-decoration: none; }
.shd-toc li.is-h3 a { padding-left: 24px; }
.shd .shd-toc a:hover { color: inherit; }
.shd .shd-toc a.is-on { border-left-color: var(--shd-accent-ink); color: var(--shd-accent-ink); font-weight: 600; }

/* Not allowed */
.shd-gate { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 72px 0; text-align: center; }
.shd-gate h1 { margin: 0; font-size: 1.5rem; }
.shd-gate svg { color: var(--shd-accent-ink); }

/* Embedded with a shortcode */
.shd-embedded { margin: 1.5em 0; }
.shd-embedded .shd-hero { padding-top: 12px; }

/* Picture zoom */
.shd-zoom { max-width: 96vw; max-height: 94vh; padding: 0; border: 0; background: transparent; }
.shd-zoom::backdrop { background: rgb(10 12 16 / .8); }
.shd-zoom img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 10px; cursor: zoom-out; }

@media (max-width: 1180px) {
  .shd-shell, .shd-shell:not(:has(.shd-toc)) { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .shd-toc { display: none; }
}
@media (max-width: 860px) {
  .shd-shell, .shd-shell:not(:has(.shd-toc)) { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .shd .shd-menubtn { display: inline-flex; margin-bottom: 14px; min-height: 38px; }
  .shd-side { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); bottom: 0; left: 0; z-index: 100001; width: min(320px, 86vw); max-height: none; padding: 16px; border-right: 1px solid var(--shd-line-2); border-radius: 0 18px 18px 0; background: var(--shd-bg); transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .shd.is-side-open .shd-side { transform: none; visibility: visible; }
  .shd-side-x { display: inline-grid !important; }
  .shd-shade:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100000; background: rgb(10 12 16 / .5); }
  .shd .shd-searchbtn { min-width: 0; }
  .shd .shd-searchbtn span, .shd .shd-searchbtn kbd { display: none; }
  .shd-topbar .shd-btn { display: none; }
}
@media (max-width: 600px) {
  .shd-colhead { flex-direction: column; gap: 12px; }
  .shd-band { flex-direction: column; align-items: flex-start; }
  .shd-pager { grid-template-columns: 1fr; }
  .shd-pager a.is-next { grid-column: 1; }
  .shd-hero .shd-search-field { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .shd-side, .shd-tree-tog svg, .shd-tree-sec svg, .shd .shd-col { transition: none; }
}
@media print {
  .shd-topbar, .shd-side, .shd-shade, .shd-toc, .shd-helpful, .shd-pager, .shd-band, .shd-menubtn, .shd-crumbs, .shd-anchor, .shd-copy, .shd-linkbtn, .shd-fab, .shd-panel { display: none !important; }
  .shd-fabwrap { display: none !important; }
  /* Only the article: the theme's header and footer are left out, and the page is centred. */
  body.shd-docs-page :is(.wp-site-blocks > header, .wp-site-blocks > footer, header.wp-block-template-part, footer.wp-block-template-part, #masthead, .site-header, #colophon, .site-footer, #wpadminbar) { display: none !important; }
  html, body.shd-docs-page { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .shd-docs, .shd-docs.is-aligned { width: auto !important; max-width: 720px !important; margin: 0 auto !important; padding: 0 !important; color: #111 !important; }
  .shd-shell, .shd-shell:not(:has(.shd-toc)) { display: block !important; padding: 0; }
  .shd-main { width: 100%; }
  .shd-article { max-width: none; margin: 0 auto; }
  .shd-arthead { margin-bottom: 18px; }
  .shd-content :is(h2, h3) { break-after: avoid; }
  .shd-content :is(pre, table, figure, .shd-callout, .shd-step) { break-inside: avoid; }
  .shd-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
  @page { margin: 18mm 16mm; }
  .shd-content pre { white-space: pre-wrap; }
  .shd-tabs.is-ready .shd-tab[hidden] { display: block; }
  .shd-tabs.is-ready .shd-tab-label { display: block; }
  .shd-tablist { display: none; }
  .shd-faq details > :not(summary) { display: block; }
}

/* Floating Help button */
.shd-fabwrap { position: fixed; right: 20px; bottom: 20px; z-index: 99990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 1rem; line-height: 1.5; }
.shd .shd-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; margin: 0; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--shd-accent); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.shd .shd-fab:hover { filter: brightness(1.1); }
.shd-panel { display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); overflow-y: auto; padding: 16px; border: 1px solid var(--shd-line-2); border-radius: 18px; background: var(--shd-bg); }
.shd-panel[hidden] { display: none; }
.shd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shd-panel-head h2 { margin: 0; font-size: 1.05rem; }
.shd-panel .shd-search-field { min-height: 46px; }
.shd .shd-panel .shd-search-field input { height: 44px; font-size: .98rem; }
.shd-panel .shd-results { position: static; max-height: 260px; margin-top: 6px; }
.shd-panel-sug[hidden] { display: none; }
.shd-panel-sug p { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--shd-muted); }
.shd-panel-sug ul { margin: 0; padding: 0; list-style: none; }
.shd-panel-sug li { margin: 0; }
.shd .shd-panel-sug a { display: block; padding: 7px 8px; border-radius: 10px; color: inherit; font-weight: 600; text-decoration: none; }
.shd .shd-panel-sug a:hover { background: var(--shd-tint); }
.shd-panel-sug small { display: block; color: var(--shd-muted); font-weight: 400; font-size: .8rem; }
.shd .shd-panel-all { display: inline-flex; align-items: center; gap: 8px; color: var(--shd-accent-ink); font-weight: 600; text-decoration: none; }
.shd .shd-panel-all:hover { text-decoration: underline; }
.shd-panel-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--shd-line); }
.shd-panel-foot .shd-btn { flex: 1; }
@media (max-width: 600px) {
  .shd-fabwrap { right: 12px; bottom: 12px; }
  .shd .shd-fab span { display: none; }
  .shd .shd-fab { width: 52px; padding: 0; justify-content: center; }
}

/* Live chat */
.shd-panel > [hidden] { display: none !important; }
.shd-chat { display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.shd-chat[hidden] { display: none; }
.shd-chat-head { display: flex; align-items: center; gap: 8px; }
.shd-chat-head small { display: flex; align-items: center; gap: 6px; color: var(--shd-muted); font-size: 13px; }
.shd-chat-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shd-muted); }
.shd-chat.is-online .shd-chat-head small::before { background: #1a9a5b; }
.shd-chat-log { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; }
.shd-chat-log li { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--shd-soft); overflow-wrap: anywhere; }
.shd-chat-log li.is-mine { align-self: flex-end; background: var(--shd-tint); }
.shd-chat-who { display: block; font-size: 12px; font-weight: 600; color: var(--shd-muted); }
.shd-chat-text p { margin: 0 0 4px; }
.shd-chat-text p:last-child { margin: 0; }
.shd-chat-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--shd-soft); font-size: 14px; }
.shd-chat-note[hidden], .shd-chat-typing[hidden] { display: none; }
.shd-chat-typing { margin: 0; color: var(--shd-muted); font-size: 13px; }
.shd-chat-form { display: flex; gap: 8px; align-items: flex-end; }
.shd-chat-form textarea { flex: 1; min-width: 0; resize: none; padding: 10px 12px; border: 1px solid var(--shd-line-2); border-radius: 12px; background: var(--shd-bg); color: inherit; font: inherit; }
.shd-chat-form textarea:focus { outline: 2px solid var(--shd-accent); outline-offset: 1px; }
.shd-chat-form .shd-btn { flex: none; padding: 10px 12px; }

/* Version and language */
.shd-ver { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--shd-muted); }
.shd-ver select, .shd-lang select { padding: 4px 8px; border: 1px solid var(--shd-line-2); border-radius: 8px; background: var(--shd-bg); color: inherit; font: inherit; font-size: 14px; }
.shd-lang { display: inline-flex; align-items: center; gap: 6px; }
.shd-lang label { display: inline-flex; color: var(--shd-muted); }
.shd-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--shd-tint); }

/* Glossary */
.shd-gl { position: relative; }
.shd-gl dfn { font-style: normal; border-bottom: 1px dashed currentColor; cursor: help; }
.shd-gl dfn:focus-visible { outline: 2px solid var(--shd-accent); outline-offset: 2px; border-radius: 2px; }
.shd-gl-tip { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; width: max-content; max-width: min(280px, 80vw); padding: 8px 10px; border-radius: 10px; background: #1d2327; color: #fff; font-size: 14px; line-height: 1.45; font-weight: 400; display: none; pointer-events: none; }
.shd-gl:hover .shd-gl-tip, .shd-gl dfn:focus + .shd-gl-tip { display: block; }
.shd.is-dark .shd-gl-tip { background: #f0f0f1; color: #1d2327; }
.shd.is-dark .shd-sg-msg { background: rgba(214, 54, 56, .22); color: #ffd6d6; }
.shd-gl.is-shut .shd-gl-tip { display: none; }
.shd-glossary dl { margin: 0 0 24px; }
.shd-glossary dt { margin-top: 12px; font-weight: 600; }
.shd-glossary dd { margin: 2px 0 0; color: var(--shd-muted); }
.shd-gl-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.shd-gl-letters a { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; background: var(--shd-soft); color: inherit; text-decoration: none; font-weight: 600; }

/* Suggest an edit */
.shd-suggest { margin: 24px 0 0; color: var(--shd-muted); font-size: 14px; }
.shd-sdlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px; }
.shd-sg { display: flex; flex-direction: column; gap: 8px; }
.shd-sg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shd-sg-head h2 { margin: 0; font-size: 20px; }
.shd-sg label { margin-top: 6px; font-weight: 600; font-size: 14px; }
.shd-sg :is(textarea, input[type="text"], input[type="email"]) { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--shd-line-2); border-radius: 10px; background: var(--shd-bg); color: inherit; font: inherit; }
.shd-sg-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8a1c1c; }
.shd-sg-foot { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Whole collection as one page */
.shd-book-cover { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--shd-line); }
.shd-book-cover h1 { margin: 4px 0 8px; }
.shd-book-acts { display: flex; gap: 8px; margin-top: 16px; }
.shd-book-item { margin-bottom: 48px; }
@media print {
  .shd-book-acts, .shd-suggest, .shd-ver, .shd-lang, .shd-note, .shd-gl-tip { display: none !important; }
  .shd-book-cover { break-after: page; border: 0; padding-top: 30vh; }
  .shd-book-item { break-before: page; margin: 0; }
  .shd-book-item:first-of-type { break-before: auto; }
  .shd-gl dfn { border: 0; }
}

/* Audiences on the help center home */
.shd-aud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.shd-aud > span { margin-right: 4px; color: var(--shd-muted); font-size: .9rem; font-weight: 600; }
.shd .shd-aud button { min-height: 38px; padding: 6px 16px; border: 1px solid var(--shd-line-2); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.shd .shd-aud button:hover { background: var(--shd-hover); }
.shd .shd-aud button[aria-pressed="true"] { border-color: var(--shd-accent); background: var(--shd-accent); color: var(--shd-on-accent); }
.shd-col[hidden] { display: none !important; }

/* Announcements */
.shd-announces { margin: 0 0 18px; }
.shd-announce { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--shd-tint); font-size: .95rem; }
.shd-announce svg { flex: none; margin-top: 2px; color: var(--shd-accent-ink); }
.shd-announce p { margin: 0; }
.shd-announce.is-warning { background: color-mix(in srgb, #d68910 16%, transparent); }
.shd-announce.is-urgent { background: color-mix(in srgb, #c0392b 14%, transparent); }

/* Light version */
.shd-lite { margin: 24px 0 0; font-size: .88rem; text-align: center; }
.shd-lite a { color: var(--shd-accent-ink); }
.shd-docs.is-lite img { max-height: 320px; width: auto; }
.shd-lite-video { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; background: var(--shd-soft); }

/* Scroll areas: thin, rounded, on a clear track. */
.custom-scroll {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #ecf1f6da transparent;
}

/* WebKit (Chrome, Safari, Edge) */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent; /* Transparent tray */
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #ecf1f6da; /* Thumb color */
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #f2ebeb;
}
.shd, .shd *, .shd-dlg, .shd-dlg * { scrollbar-width: thin; scrollbar-color: #ecf1f6da transparent; }
.shd ::-webkit-scrollbar, .shd-dlg ::-webkit-scrollbar { width: 6px; height: 6px; }
.shd ::-webkit-scrollbar-track, .shd-dlg ::-webkit-scrollbar-track { background: transparent; }
.shd ::-webkit-scrollbar-thumb, .shd-dlg ::-webkit-scrollbar-thumb { background: #ecf1f6da; border-radius: 10px; }
.shd ::-webkit-scrollbar-thumb:hover, .shd-dlg ::-webkit-scrollbar-thumb:hover { background: #f2ebeb; }
