/* Documentation keeps navigation quiet and gives the article a readable measure. */
.pma-docs { background: #fff; }
.pma-docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; gap: 48px; padding-block: 32px 80px; }
.pma-docs-sidebar { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; padding-right: 24px; border-right: 1px solid var(--color-rule); scrollbar-width: thin; }
.pma-docs-sidebar .pma-site-search { margin-bottom: 24px; }
.pma-docs-sidebar .pma-site-search > label { font-size: 13px; margin-bottom: 8px; }
.pma-docs-sidebar .pma-site-search > div { gap: 6px; }
.pma-docs-sidebar .pma-site-search input { min-width: 0; min-height: 44px; padding: 10px; font-size: 13px; background: #fff; }
.pma-docs-sidebar .pma-site-search .btn { min-height: 44px; padding: 10px; font-size: 12px; border-radius: 4px; }
.pma-docs-menu > summary, .pma-docs-toc summary { display: none; min-height: 44px; padding-block: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pma-docs-overview { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.pma-docs-nav-group { margin-top: 24px; }
.pma-docs-nav-group h2 { max-width: none; padding: 0 12px 8px; font-size: 13px; line-height: 1.6; letter-spacing: 0; font-weight: 600; }
.pma-docs-nav-group h2 a { text-decoration: none; }
.pma-docs-subsection > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font-size: 13px; font-weight: 500; line-height: 1.6; cursor: pointer; list-style: none; border-radius: 4px; }
.pma-docs-subsection > summary::-webkit-details-marker { display: none; }
.pma-docs-subsection > summary::after { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); margin-left: 4px; transition: transform var(--dur-micro); }
.pma-docs-subsection[open] > summary::after { transform: rotate(45deg); }
.pma-docs-subsection > summary:hover { background: #f6f7f8; }
.pma-docs-count { margin-left: auto; color: var(--color-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pma-docs-sidebar .pma-docs-subsection > .pma-doc-links { margin: 0 0 12px 12px; padding-left: 8px; border-left: 1px solid var(--color-rule); }
.pma-docs-sidebar .pma-docs-subsection:has([aria-current="page"]) > summary { color: var(--color-primary); }
.pma-docs-topic .pma-docs-subsection { margin-top: 24px; }
.pma-docs-topic .pma-docs-subsection h3 { max-width: none; margin-bottom: 8px; color: var(--color-muted); font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: 0; }
.pma-doc-links { margin: 0; padding: 0; list-style: none; }
.pma-doc-links a { display: flex; align-items: center; min-height: 44px; padding: 12px 0; color: var(--color-ink-2); text-decoration: none; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; transition: color var(--dur-micro), background-color var(--dur-micro); }
.pma-doc-links a:hover, .pma-docs-nav-group h2 a:hover { color: var(--color-primary); }
.pma-docs-sidebar .pma-doc-links a { min-height: 36px; padding: 7px 12px; border-radius: 4px; font-size: 13px; }
.pma-docs-sidebar a:hover { background: #f6f7f8; }
.pma-docs-sidebar [aria-current="page"] { color: var(--color-primary); background: var(--color-primary-soft); font-weight: 500; }
.pma-docs-body { min-width: 0; }
.pma-docs-reading { display: grid; grid-template-columns: minmax(0, 1fr) 176px; column-gap: 40px; align-items: start; }
.pma-docs-reading > :not(.pma-docs-toc) { grid-column: 1; }
.pma-docs-heading { margin-bottom: 32px; }
.pma-docs-heading .pma-breadcrumb { gap: 8px; margin-bottom: 20px; font-size: 12px; }
.pma-docs-heading .pma-breadcrumb a { min-height: 32px; }
.pma-docs-heading h1 { max-width: 32ch; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.4; letter-spacing: -.035em; font-weight: 600; text-wrap: pretty; }
.pma-docs-heading > p { max-width: 65ch; margin-top: 16px; font-size: 15px; line-height: 1.8; }
.pma-docs-topics { max-width: 760px; }
.pma-docs-topic + .pma-docs-topic { margin-top: 40px; }
.pma-docs-topic h2 { display: flex; align-items: baseline; gap: 12px; max-width: none; padding-bottom: 16px; border-bottom: 1px solid var(--color-rule); font-size: 19px; line-height: 1.5; letter-spacing: -.02em; font-weight: 600; }
.pma-docs-topic h2 a { text-decoration: none; }
.pma-docs-topic h2 span { color: var(--color-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.pma-docs-topic .pma-doc-links li + li, .pma-docs-body > .pma-doc-links li + li { border-top: 1px solid #f0f1f2; }
.pma-docs-prose { width: 100%; max-width: 70ch; color: var(--color-ink); font-size: 16px; line-height: 1.85; }
.pma-docs-prose :where(h2, h3, h4, h5, h6) { margin-block: 36px 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.5; text-wrap: pretty; }
.pma-docs-prose h2 { font-size: 25px; }
.pma-docs-prose h3 { font-size: 22px; }
.pma-docs-prose :where(h4, h5, h6) { font-size: 19px; }
.pma-docs-prose :where(p, ul, ol, figure, blockquote, table) { margin-bottom: 20px; }
.pma-docs-prose :where(h2, h3, h4, h5, h6) strong { font-weight: inherit; }
.pma-docs-prose .wp-block-image img { margin: 0 auto; border-radius: 6px; }
.pma-docs-prose .wp-block-image :where(.alignleft, .alignright) { float: none; margin-inline: auto; }
.pma-docs-prose .wp-block-columns { gap: 20px; }
.pma-docs-prose .wp-block-column { min-width: 0; }
.pma-docs-prose .wp-block-group:has(> .wp-block-image) { display: flex; flex-wrap: wrap; justify-content: center; align-items: start; gap: 16px; }
.pma-docs-prose .wp-block-group > .wp-block-image { flex: 0 1 230px; }
.pma-docs-prose :where(pre, code) { font-size: .875em; background: #f6f7f8; }
.pma-docs-prose pre { padding: 16px; border-radius: 6px; }
.pma-docs-toc { position: sticky; top: 104px; grid-column: 2; grid-row: 1 / span 3; min-width: 0; max-height: calc(100dvh - 128px); overflow-y: auto; border-left: 1px solid var(--color-rule); padding-left: 20px; scrollbar-width: thin; }
.pma-docs-toc h2 { margin-bottom: 12px; max-width: none; font-size: 12px; font-weight: 600; line-height: 1.7; letter-spacing: 0; }
.pma-docs-toc a { display: block; padding-block: 7px; color: var(--color-muted); text-decoration: none; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pma-docs-toc a[data-toc-depth="nested"] { padding-left: 12px; }
.pma-docs-toc a:hover, .pma-docs-toc a[aria-current="location"] { color: var(--color-primary); }
.pma-docs-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-rule); }
.pma-docs-pagination a { display: grid; align-content: start; gap: 8px; min-height: 64px; text-decoration: none; }
.pma-docs-pagination span { color: var(--color-muted); font-size: 12px; }
.pma-docs-pagination strong { font-size: 14px; font-weight: 500; line-height: 1.7; }
.pma-docs-pagination a:hover strong { color: var(--color-primary); }
.pma-docs-next { grid-column: 2; text-align: right; }
.admin-bar .pma-docs-sidebar, .admin-bar .pma-docs-toc { top: 136px; max-height: calc(100dvh - 160px); }
@media (max-width: 80rem) {
  .pma-docs-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 32px; }
  .pma-docs-reading { display: block; }
  .pma-docs-toc { position: static; max-height: none; margin-bottom: 28px; padding: 0 16px; border: 1px solid var(--color-rule); border-radius: 4px; }
  .pma-docs-toc summary { display: list-item; }
  .pma-docs-toc h2 { display: none; }
  .pma-docs-toc nav { padding-bottom: 12px; }
}
@media (max-width: 60rem) {
  .pma-docs-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; }
  .pma-docs-sidebar { position: static; max-height: none; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .pma-docs-sidebar .pma-site-search { max-width: none; margin-bottom: 12px; }
  .pma-docs-sidebar .pma-site-search > div { flex-wrap: nowrap; }
  .pma-docs-sidebar .pma-site-search input { flex: 1; width: auto; }
  .pma-docs-menu > summary { display: list-item; }
  .pma-docs-menu nav { max-height: 50dvh; overflow-y: auto; padding-bottom: 12px; }
  .pma-docs-heading .pma-breadcrumb { margin-bottom: 16px; }
  .pma-docs-heading h1 { font-size: clamp(26px, 5vw, 32px); }
  .pma-docs-topic + .pma-docs-topic { margin-top: 32px; }
  .pma-docs-toc a { min-height: 44px; padding-block: 12px; font-size: 13px; }
}
@media print {
  .pma-docs-sidebar, .pma-docs-toc, .pma-docs-pagination { display: none; }
  .pma-docs-layout, .pma-docs-reading { display: block; }
  .pma-docs-prose { max-width: none; }
}

/* Capture assets retain readable phone proportions and link to the original size. */
.pma-docs-prose .pma-guide-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 24px; align-items: start; margin-block: 24px 32px; }
.pma-docs-prose .pma-guide-shot { width: 100%; max-width: 390px; margin: 0 auto; }
.pma-guide-shot a { display: block; cursor: zoom-in; }
.pma-guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--color-rule); border-radius: 6px; }
.pma-guide-shot figcaption { margin-top: 10px; color: var(--color-muted); font-size: 12px; line-height: 1.7; }
.pma-docs-prose .pma-guide-image-note { margin-top: 32px; color: var(--color-muted); font-size: 12px; line-height: 1.8; }
