/* WordPress-only additions. The design itself is docs.css (unchanged copy of the original stylesheet). */

/* Logged-in admin bar: keep the sticky header below it. */
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }

/* Screen-reader helper used by WordPress. */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Search form fallback (no JavaScript). */
.q-form button[type="submit"] { cursor: pointer; }

/* Home built with Elementor: its wrappers must not add spacing around the original blocks. */
.sheet .elementor, .sheet .elementor-element, .sheet .e-con, .sheet .e-con-inner { margin: 0; padding: 0; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --widgets-spacing: 0px; --kit-widget-spacing: 0px; --row-gap: 0px; --column-gap: 0px; gap: 0; }
.sheet .e-con { display: block; }
.sheet .elementor-widget:not(:last-child) { margin-block-end: 0; }
.sheet .elementor-widget-container { margin: 0; padding: 0; }

/* Search results: page links (new in WordPress; styled with the site's own tokens). Highlighting uses the original mark style. */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; }
.pagination .pg { min-width: 40px; padding: 9px 14px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: 600 14px/1 var(--head); text-align: center; }
.pagination a.pg:hover { box-shadow: 0 0 0 1.5px var(--brand); color: var(--brand-ink); text-decoration: none; }
.pagination .pg.current { background: var(--brand-solid); color: #fff; box-shadow: none; }
.pagination .pg.gap { background: none; box-shadow: none; color: var(--muted); }
.prose picture { display: contents; }

/* Accessibility: two tokens moved by about 1.5% so white button text and secondary text reach 4.5:1 (WCAG AA); nothing else in the palette changed. */
:root { --brand-solid: #d5413d; --muted: #6e717c; }
:root[data-theme="dark"] { --brand-solid: #d5413d; }
:root[data-theme="dark"] mark { background: color-mix(in srgb, #facc15 32%, transparent); color: #fff; }

/* Skip link: first thing a keyboard user reaches, visible only when focused. */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--brand-solid); color: #fff; font: 600 14px/1 var(--head); }
.skip-link:focus { top: 12px; text-decoration: none; outline: 3px solid var(--ink); outline-offset: 2px; }
#app:focus { outline: none; }
.related .related-title { margin: 0 0 14px; font: 800 18px/1.3 var(--head); }

/* Print: a clean article. */
@media print {
  body { background: #fff; color: #000; }
  .skip-link, .copy-btn, .scrim, .pal, .lightbox, .pagination { display: none !important; }
  .article-card { padding: 0; border: 0; }
  .prose figure, .prose pre, .prose table, .prose .callout-note { break-inside: avoid; }
  .prose figure img { box-shadow: none; max-width: 100%; }
  .prose a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 12px; word-break: break-all; }
  h1, h2, h3 { break-after: avoid; }
}

/* WCAG 2.5.8: larger hit area for breadcrumb links; inline padding does not change layout */
.crumbs a { padding: 4px 0; }
/* topic pill link: larger invisible hit area (24 px high) without changing the layout */
a.pill { position: relative; }
a.pill::after { content: ""; position: absolute; inset: -2px -4px; }
