/* SPDX-License-Identifier: LicenseRef-BernardEngine-Proprietary */
/* Copyright (c) 2026 AArts Lab */
/* The player's developer documentation (site/docs/, site/fr/docs/; tools/site_player_docs.py), after final.css: the
   pages are Markdown set in the IT page's text styles (.it-body), with the blocks that page has none of (sub-headings,
   numbered and nested lists, rules, quotes, the headings' anchors) and the list of the developer pages. */
.pdoc-body { max-width: 900px; }
.page .pdoc-body h2, .pdoc-body h3, .pdoc-body h4, .pdoc-body h5, .pdoc-body h6 { scroll-margin-top: 84px; }
.page .pdoc-body h3 { margin: 32px 0 12px; font-size: 19px; line-height: 1.3; font-weight: 500; color: #ECEEF0; }
.page .pdoc-body h4, .page .pdoc-body h5, .page .pdoc-body h6 { margin: 24px 0 10px; font-size: 16px; line-height: 1.35; font-weight: 500; color: #ECEEF0; }
.pdoc-body strong { color: #ECEEF0; font-weight: 500; }
.pdoc-body ol { margin: 0 0 14px; padding-left: 24px; }
.pdoc-body li > ul, .pdoc-body li > ol { margin: 8px 0 0; }
.pdoc-body li > pre { margin-top: 10px; }
.pdoc-body pre code { font-size: 13px; }
.pdoc-body hr { margin: 40px 0; border: 0; border-top: 1px solid #1C2025; }
.pdoc-body blockquote { margin: 0 0 14px; padding: 2px 0 2px 16px; border-left: 2px solid #2C3A5C; color: #A8AFB7; }
.pdoc-body table { min-width: 0; }
.pdoc-body td code { white-space: normal; overflow-wrap: anywhere; }
.it-body a.hd-anchor { margin-left: 6px; color: #4A525C; text-decoration: none; font-weight: 400; opacity: 0; }
.pdoc-body :is(h2, h3, h4, h5, h6):hover .hd-anchor, .it-body a.hd-anchor:focus { opacity: 1; }
.it-body a.hd-anchor:hover { color: #8FB0FF; }
.pdoc-nav { margin: 56px 0 0; padding: 24px 0 0; border-top: 1px solid #1C2025; }
.pdoc-nav .pdoc-nav-title { margin: 0 0 10px; font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #8B939C; }
.pdoc-nav ul { margin: 0 0 18px; padding: 0; list-style: none; }
.pdoc-nav li { margin: 0 0 6px; }
.it-body .pdoc-nav a[aria-current] { color: #ECEEF0; text-decoration: none; }
@media (hover: none) { .it-body a.hd-anchor { opacity: 1; } }
/* The user guide's screenshots (site/docs/guide/captures/), at most the text's width. */
.pdoc-body .pdoc-shot { margin: 22px 0 10px; }
.pdoc-body .pdoc-shot img { display: block; max-width: 100%; height: auto; border: 1px solid #1C2025; border-radius: 6px; }
.pdoc-body .pdoc-shot + p em { font-size: 13px; color: #8B939C; }
/* The user guide's own blocks (site/docs/guide/; tools/site_player_docs.py, guide.js): the search, the task cards of
   the contents page, the "In short" box, the "Technical details" folds, the Copy buttons; then the printed page, the
   shortcut sheet on one A4 sheet. The site is dark, as the player is by default. */
.pdoc [hidden] { display: none !important; }
.it-body a.hd-anchor { display: inline-flex; vertical-align: middle; position: relative; }
.it-body a.hd-anchor svg { display: block; }
.it-body a.hd-anchor[data-copied]::after { content: attr(data-copied); position: absolute; left: 22px; top: -2px; white-space: nowrap;
  padding: 2px 8px; font: 12px/1.5 "Geist", system-ui, sans-serif; letter-spacing: 0; color: #ECEEF0; background: #1C2A44; border-radius: 3px; }
.gsearch { position: relative; max-width: 640px; margin: 6px 0 0; }
.gsearch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gsearch input { box-sizing: border-box; width: 100%; padding: 12px 44px 12px 14px; font: 16px/1.4 "Geist", system-ui, sans-serif;
  color: #ECEEF0; background: #0E1013; border: 1px solid #2C3A5C; border-radius: 4px; -webkit-appearance: none; appearance: none; }
.gsearch input::placeholder { color: #737B85; }
.gsearch input:not(:placeholder-shown) ~ .gsearch-key { display: none; }
.gsearch input:focus { outline: 2px solid #8FB0FF; outline-offset: 1px; border-color: #3A4A6E; }
.gsearch-key { position: absolute; right: 12px; top: 12px; padding: 1px 7px; font: 12px/1.5 "Geist Mono", monospace; color: #8B939C;
  border: 1px solid #2C3A5C; border-radius: 3px; pointer-events: none; }
.gsearch-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  max-height: min(70vh, 520px); overflow-y: auto; background: #0E1013; border: 1px solid #2C3A5C; border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.gsearch-list li { margin: 0; border-radius: 3px; }
.gsearch-list li[aria-selected="true"] { background: #16202F; }
.gsearch-list a { display: block; padding: 9px 10px; color: #C9CED4; text-decoration: none; }
.gsearch-where { display: block; font-size: 15px; font-weight: 500; color: #ECEEF0; }
.gsearch-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #8B939C; }
.gsearch-status { margin: 6px 0 0; font-size: 13px; color: #8B939C; }
.gsearch-status:empty { display: none; }
/* The contents page: "What do you want to do?" */
.pdoc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0 0 10px; padding: 0; list-style: none; }
.it-body .pdoc-cards li { margin: 0; }
.it-body .pdoc-card a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; color: #C9CED4; text-decoration: none;
  background: #0E1013; border: 1px solid #1C2025; border-radius: 4px; overflow: hidden; transition: border-color .15s ease; }
.it-body .pdoc-card a:hover, .it-body .pdoc-card a:focus-visible { border-color: #3A4A6E; }
.pdoc-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid #1C2025; }
.pdoc-card-title { display: block; padding: 14px 16px 4px; font-size: 17px; line-height: 1.3; font-weight: 500; color: #ECEEF0; }
.pdoc-card-line { display: block; padding: 0 16px 16px; font-size: 14px; line-height: 1.5; color: #A8AFB7; }
.pdoc-body .pdoc-credit { margin: 6px 0 12px; }
.pdoc-body .pdoc-credit em { font-size: 13px; color: #8B939C; }
/* "In short": three steps and the page's main screenshot, small. */
.pdoc-short { margin: 0 0 36px; padding: 18px 20px 14px; background: #10141C; border: 1px solid #2C3A5C; border-radius: 4px; }
.pdoc-body .pdoc-short-title { margin: 0 0 10px; font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #8FB0FF; }
.pdoc-short-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 22px; align-items: start; }
.pdoc-short ol { margin: 0; padding-left: 22px; }
.pdoc-short li { margin: 0 0 8px; }
.pdoc-short-shot { margin: 0; }
.pdoc-short-shot img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; object-position: top left;
  border: 1px solid #1C2025; border-radius: 3px; }
.pdoc-short-shot figcaption { margin-top: 6px; font-size: 13px; }
.pdoc-short-shot .pdoc-credit { margin: 4px 0 0; line-height: 1.3; }
@media (max-width: 720px) { .pdoc-short-grid { grid-template-columns: minmax(0, 1fr); } .pdoc-short-shot { max-width: 320px; } }
/* "Technical details": the deep parts folded, opened by a click (no script needed). */
.pdoc-details { margin: 22px 0; padding: 0 18px; border: 1px solid #1C2025; border-radius: 4px; background: #0C0E11; }
.pdoc-details > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 0; cursor: pointer; list-style: none; color: #ECEEF0; }
.pdoc-details > summary::-webkit-details-marker { display: none; }
.pdoc-details > summary::before { content: "\25B8"; color: #8FB0FF; font-size: 14px; transition: transform .15s ease; }
.pdoc-details[open] > summary::before { transform: rotate(90deg); }
.pdoc-details[open] > summary { border-bottom: 1px solid #1C2025; margin-bottom: 14px; }
.pdoc-tech { font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #8FB0FF;
  border: 1px solid #2C3A5C; border-radius: 3px; padding: 2px 7px; }
.page .pdoc-body .pdoc-details > summary :is(h2, h3) { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; }
.pdoc-sum { font-size: 16px; font-weight: 500; }
/* The Copy button of a code block. */
.it-body pre.pdoc-has-copy { position: relative; padding-right: 76px; }
.pdoc-copy { position: absolute; top: 8px; right: 8px; padding: 3px 10px; font: 12px/1.5 "Geist", system-ui, sans-serif; color: #C9CED4;
  background: #16191D; border: 1px solid #2C3A5C; border-radius: 3px; cursor: pointer; }
.pdoc-copy:hover, .pdoc-copy:focus-visible { color: #ECEEF0; border-color: #8FB0FF; }
/* Printed: black on white, without the site's frame, the search, the menus and the buttons. */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body, .page, .page > div { background: #FFFFFF !important; }
  .page header.site-header, .page footer, .gsearch, .pdoc-nav, .pdoc-copy, .it-body a.hd-anchor { display: none !important; }
  .page section.pdoc-guide { display: block !important; padding: 0 !important; margin: 0 !important; }
  .page section.pdoc-guide * { color: #000000 !important; background: transparent !important; box-shadow: none !important; }
  .page .pdoc-guide h1 { font-size: 24pt !important; line-height: 1.1 !important; }
  .page .pdoc-guide .pdoc-head { gap: 6px !important; margin-bottom: 12px; }
  .it-body a { text-decoration: none; }
  .it-body pre, .pdoc-details, .pdoc-short, .pdoc-card a { border-color: #999999 !important; }
  .it-body th, .it-body td { border-color: #BBBBBB !important; }
  .it-body table { min-width: 0; }
  .pdoc-shot, .pdoc-short, .it-scroll, tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  /* The shortcut sheet: one A4 sheet, in two columns. */
  .page .pdoc-sheet h1 { font-size: 18pt !important; }
  .page .pdoc-sheet .pdoc-head > span, .page .pdoc-sheet .pdoc-head > p { font-size: 8pt !important; line-height: 1.3 !important; }
  .pdoc-sheet .pdoc-body { max-width: none; columns: 2; column-gap: 8mm; font-size: 9pt; line-height: 1.3; }
  .pdoc-sheet .pdoc-body > p { margin: 0 0 4px; }
  .page .pdoc-sheet .it-body h2 { margin: 7px 0 2px !important; font-size: 10.5pt !important; }
  .pdoc-sheet .it-scroll { margin: 0 0 4px; overflow: visible; }
  .pdoc-sheet .it-body table { font-size: 9pt; }
  .pdoc-sheet .it-body th { display: none; }
  .pdoc-sheet .it-body td { padding: 1.5px 6px 1.5px 0; }
  .pdoc-sheet .it-body code { font-size: 8.5pt; }
}
