/* Documentation and support pages. */
.site main.docs { display: block; flex: 1 0 auto; border-bottom: 1px solid var(--line); }
.docs-head { max-width: 1200px; margin: 0 auto; padding: 72px 24px 48px; box-sizing: border-box; }
.docs h1 { margin: 16px 0 12px; max-width: 18em; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.docs-head p { margin: 0; max-width: 34em; font-size: 18px; color: var(--soft); }
.docs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.site a.docs-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; }
.site a.docs-btn.btn-p { background: var(--fill); }
.site a.docs-btn.btn-p:hover { background: #b23d00; }
.site a.docs-btn.btn-s { border: 1px solid var(--line); background: var(--card); }
.docs-head p.docs-small { max-width: none; margin-top: 12px; font-size: 14px; color: var(--muted); }
.docs-body { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; box-sizing: border-box; display: flex; gap: 56px; align-items: flex-start; }
.docs-toc { position: sticky; top: 96px; flex: 0 0 220px; display: flex; flex-direction: column; gap: 2px; }
.site .docs-toc a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--soft); font-size: 14.5px; font-weight: 500; }
.site .docs-toc a:hover { background: var(--elev); color: var(--ink); }
.docs-text { flex: 1 1 auto; min-width: 0; }
.docs-text p, .docs-text li { max-width: 38em; color: var(--soft); }
.docs-text li { margin-bottom: 6px; }
.ds { padding: 40px 0 8px; border-top: 1px solid var(--line); }
.ds h2, .docs-cards h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; }
.ds h3 { margin: 28px 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.docs code { padding: 2px 6px; border-radius: 6px; background: var(--elev); font-family: "Source Code Pro", ui-monospace, monospace; font-size: .88em; color: var(--ink); overflow-wrap: anywhere; }
.docs .callout { max-width: 38em; margin: 20px 0; padding: 16px 18px; border: 1px solid var(--bline); border-radius: 14px; background: var(--card); color: var(--soft); }
.ds details { max-width: 44em; border-bottom: 1px solid var(--line); }
.ds summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-weight: 600; }
.ds summary::after { content: ""; flex: none; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ds details[open] summary::after { transform: rotate(225deg); }
.ds details p { margin-top: 0; padding-bottom: 16px; }
.docs-more { margin-top: 40px; }
/* Where to go next from a guide: set apart from the troubleshooting list. */
.guide-more { margin-top: 56px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.guide-more h2 { margin: 0 0 16px; font-size: 18px; letter-spacing: -0.015em; font-weight: 800; }
.guide-more div { display: flex; flex-wrap: wrap; gap: 12px; }
.site .guide-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; }
.site .guide-more a:hover { border-color: var(--bline); background: var(--bsoft); color: var(--btext); text-decoration: none; }
.docs-cards { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; box-sizing: border-box; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.docs-cards section { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.docs-cards section:first-child { grid-row: span 2; }
.docs-cards h2 { font-size: 21px; }
.docs-cards p, .docs-cards li { color: var(--soft); }
.docs-cards li { margin-bottom: 8px; }
.docs-cards ul { padding-left: 0; }
/* Bulleted lists carry the check of the home page, in orange. An empty string keeps the list semantics that
   some screen readers drop with list-style: none. Numbered lists keep their numbers. */
.docs-text ul { padding-left: 0; }
.docs-text ul li, .docs-cards ul li { position: relative; padding-left: 30px; list-style-type: ""; }
.docs-text ul li::before, .docs-cards ul li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; background: var(--btext); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.site main.docs { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
/* Limits are not good news: a dash, not a check. */
.site main.docs #scope { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
/* Changelog: each entry says what kind of change it is, in a column of its own. The tags replace the marks. */
.docs-text ul.log li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 12px; align-items: start; max-width: 46em; padding-left: 0; margin-bottom: 10px; }
.docs-text ul.log li::before { content: none; }
.tags-log { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-log { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
/* One filled style for every tag; only the colour says the kind. Orange is the brand, so it is Pro. */
.site main.docs { --new: #1d4ed8; --newsoft: rgba(37,99,235,.1); --sec: #6d28d9; --secsoft: rgba(124,58,237,.1); }
.site.dark main.docs { --new: #8ab8ff; --newsoft: rgba(59,130,246,.18); --sec: #c8adff; --secsoft: rgba(139,92,246,.2); }
.tag-log.is-new { background: var(--newsoft); color: var(--new); }
.tag-log.is-improved { background: var(--line); color: var(--soft); }
.tag-log.is-fixed { background: var(--oksoft); color: var(--ok); }
.tag-log.is-security { background: var(--secsoft); color: var(--sec); }
.tag-log.is-pro { background: var(--bsoft); color: var(--btext); }
@media (max-width: 560px) { .docs-text ul.log li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; margin-bottom: 16px; } }
@media (max-width: 900px) {
	.docs-body { flex-direction: column; gap: 24px; }
	/* On phones the list of sections sits above the text, as chips. */
	.docs-toc { position: static; flex: none; flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.site .docs-toc a { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid var(--line); background: var(--card); }
	.docs-cards { grid-template-columns: minmax(0, 1fr); }
	.docs-cards section:first-child { grid-row: auto; }
	.docs-head { padding-top: 48px; }
}
/* Plugins page: the name above its description. */
.plugs .docs-cards li strong { display: block; color: var(--ink); }
/* Plugins page: cards read left to right, then down; equal heights; one column on phones. */
.plugs .docs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.plugs .docs-cards section, .plugs .docs-cards section:first-child { grid-row: auto; }
.plugs .docs-cards section { display: flex; flex-direction: column; }
.plugs .docs-cards section p { margin: 0; }
.plugs .docs-cards section p + p { margin-top: 10px; }
@media (max-width: 900px) { .plugs .docs-cards { grid-template-columns: minmax(0, 1fr); } }
/* Plugins page: each plugin's own logo, in its own colours, next to the name. */
.plugs .plug-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.plugs .plug-head h2 { margin: 0; }
.plugs .plug-logo { flex: none; inline-size: 40px; block-size: 40px; border-radius: 8px; object-fit: contain; }
.plugs .docs-cards section p.plug-report { margin-top: 12px; font-weight: 600; }
