/* ==========================================================================
   Hologramu — documentation

   Loaded only by docs.php, on top of style.css and its tokens. Same principle
   as the rest of the site: surfaces are lifted with light, not drawn with
   borders. The one place that breaks the rule on purpose is the tag badge —
   it has to read as a label at a glance, so it gets a tinted outline.
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ============================ Layout ============================ */

.docs {
    padding: 40px 0 92px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.docs-body {
    min-width: 0;
    padding-top: 6px;
}

/* Content and its "on this page" rail. The rail drops under the text when
   there is no room for a third column. */
.docs-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
    align-items: start;
}

.doc-content { min-width: 0; }

/* ============================ Sidebar ============================ */

.docs-sidebar {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 195, 240, 0.22) transparent;
}

.docs-sidebar::-webkit-scrollbar { width: 8px; }
.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(120, 195, 240, 0.2);
    border-radius: 999px;
}

/* The shell is a <details> so the whole sidebar folds away on phones. On wide
   screens it is always open and its summary is hidden. */
.docs-sidebar-toggle { display: none; }
.docs-sidebar-shell > summary { list-style: none; }
.docs-sidebar-shell > summary::-webkit-details-marker { display: none; }

.docs-search {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 14px;
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--hairline);
    margin-bottom: 18px;
}

.docs-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    padding: 7px 0;
}

.docs-search input::placeholder { color: var(--text-dim); }
.docs-search input:focus { outline: none; }
.docs-search:focus-within { box-shadow: inset 0 0 0 1px rgba(76, 221, 255, 0.45); }

.docs-search button {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--r-sm);
    background: rgba(120, 195, 240, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.docs-search button:hover { color: var(--white); background: rgba(120, 195, 240, 0.2); }
.docs-search button svg { width: 16px; height: 16px; }

.docs-nav-home {
    display: block;
    padding: 7px 10px;
    margin-bottom: 6px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
}

.docs-nav-home:hover { color: var(--white); background: rgba(120, 195, 240, 0.07); }
.docs-nav-home.is-current { color: var(--cyan); }

.docs-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Every level indents by the same amount and keeps a hairline guide, so depth
   is readable without numbering the levels. */
.docs-nav-list:not(.docs-nav-list--0) {
    margin-left: 9px;
    padding-left: 10px;
    border-left: 1px solid var(--hairline);
}

.docs-nav-item { margin: 1px 0; }

/* One row: title left, badges hard right. The row is allowed to wrap, and the
   title's min-width is what decides when it does — so a short title keeps its
   badges beside it and only a long title (or many badges) pushes them onto a
   second line, still right-aligned. */
.docs-nav-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 0.89rem;
    line-height: 1.4;
    color: var(--text-dim);
    transition: color 0.16s ease, background 0.16s ease;
}

.docs-nav-text {
    flex: 1 1 auto;
    min-width: 7.5em;
}

a.docs-nav-link:hover { color: var(--white); background: rgba(120, 195, 240, 0.07); }

a.docs-nav-link.is-current {
    color: var(--white);
    background: rgba(76, 221, 255, 0.11);
    box-shadow: inset 2px 0 0 var(--cyan);
}

.docs-nav-link.is-plain { color: var(--text); font-weight: 600; cursor: default; }

.docs-nav-group > summary {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    cursor: pointer;
}

.docs-nav-group > summary::-webkit-details-marker { display: none; }
.docs-nav-group > summary .docs-nav-link { flex: 1; }

.docs-nav-caret {
    flex: none;
    width: 14px;
    height: 14px;
    margin-left: -4px;
    background: currentColor;
    color: var(--text-dim);
    opacity: 0.65;
    transition: transform 0.18s ease;
    /* A caret drawn in CSS — one less request than an icon file. */
    clip-path: polygon(35% 22%, 70% 50%, 35% 78%);
}

.docs-nav-group[open] > summary .docs-nav-caret { transform: rotate(90deg); }
.docs-nav-group > summary:hover .docs-nav-caret { opacity: 1; }

.docs-nav-empty {
    padding: 10px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

/* ============================ Tags ============================ */

.doc-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 9px;
    vertical-align: middle;
}

.doc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.7;
    white-space: nowrap;
    color: var(--text-dim);
    background: rgba(120, 195, 240, 0.08);
    box-shadow: inset 0 0 0 1px rgba(120, 195, 240, 0.22);
    transition: background 0.16s ease, color 0.16s ease;
}

.doc-tag:hover { color: var(--white); }

.doc-tag--free {
    color: #B7F0D8;
    background: rgba(140, 240, 200, 0.1);
    box-shadow: inset 0 0 0 1px rgba(140, 240, 200, 0.34);
}

.doc-tag--pro {
    color: var(--pink);
    background: rgba(255, 115, 196, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 115, 196, 0.38);
}

.doc-tag--studio {
    color: var(--lavender);
    background: rgba(120, 195, 240, 0.13);
    box-shadow: inset 0 0 0 1px rgba(120, 195, 240, 0.42);
}

.doc-tag--beta,
.doc-tag--planned {
    color: #FFD9A8;
    background: rgba(255, 200, 140, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 200, 140, 0.32);
}

.doc-tag--os,
.doc-tag--kind {
    color: var(--cyan);
    background: rgba(76, 221, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(76, 221, 255, 0.3);
}

.doc-tag--todo {
    color: #FFB0B0;
    background: rgba(255, 130, 130, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 130, 130, 0.34);
}

.doc-tag--muted { opacity: 0.75; }

.doc-tag.is-current {
    color: #041019;
    background: var(--cyan);
    box-shadow: none;
}

.doc-tag-count {
    font-size: 0.66rem;
    font-weight: 600;
    opacity: 0.7;
}

/* In the sidebar the badges are smaller and pushed to the right edge of their
   row, wherever that row ends up. */
.doc-tags--nav {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 3px;
}

.doc-tags--nav .doc-tag {
    padding: 0 6px;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
}

/* ============================ Rendered Markdown ============================ */

.doc-content {
    font-size: 1rem;
    color: var(--text);
}

.doc-content > :first-child { margin-top: 0; }

.doc-content h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    margin: 0 0 0.5em;
}

.doc-content h2 {
    margin: 2.1em 0 0.6em;
    padding-top: 0.5em;
    font-size: 1.42rem;
    border-top: 1px solid var(--hairline);
}

.doc-content h3 { margin: 1.7em 0 0.5em; font-size: 1.13rem; }
.doc-content h4 { margin: 1.5em 0 0.4em; font-size: 1rem; color: var(--lavender); }

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
    scroll-margin-top: 90px;
}

.doc-anchor {
    margin-left: 10px;
    font-weight: 400;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.doc-content h2:hover .doc-anchor,
.doc-content h3:hover .doc-anchor,
.doc-anchor:focus { opacity: 0.6; }

.doc-content p { margin: 0 0 1.05em; color: var(--text); }
.doc-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-content a:hover { color: var(--white); }

.doc-link-ext::after {
    content: "↗";
    margin-left: 3px;
    font-size: 0.85em;
    opacity: 0.7;
}

.doc-content ul,
.doc-content ol {
    margin: 0 0 1.1em;
    padding-left: 1.35em;
}

.doc-content li { margin: 0.32em 0; }
.doc-content li::marker { color: var(--lavender); }
.doc-content ul ul,
.doc-content ol ol,
.doc-content ul ol,
.doc-content ol ul { margin: 0.3em 0 0.4em; }

.doc-content hr {
    height: 1px;
    margin: 2.2em 0;
    border: 0;
    background: var(--hairline);
}

.doc-content strong { color: var(--white); }

.doc-content code {
    padding: 2px 6px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.87em;
    color: var(--cyan);
    background: rgba(76, 221, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(76, 221, 255, 0.14);
}

/* ---- Code blocks ---- */

.doc-code {
    position: relative;
    margin: 0 0 1.4em;
    border-radius: 14px;
    background: rgba(3, 8, 15, 0.75);
    box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow);
}

.doc-code pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.doc-code code {
    display: block;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #C6D8EC;
    font-size: 0.87rem;
    line-height: 1.65;
    white-space: pre;
}

.doc-code-lang {
    position: absolute;
    top: 9px;
    right: 14px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.6;
    pointer-events: none;
}

/* Injected by docs.js — no dead button when JS is off. */
.doc-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 11px;
    border: 0;
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(120, 195, 240, 0.1);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.doc-code:hover .doc-copy,
.doc-copy:focus-visible { opacity: 1; }
.doc-copy:hover { color: var(--white); background: rgba(120, 195, 240, 0.2); }
.doc-copy.is-done { color: #B7F0D8; }
.doc-code:has(.doc-copy) .doc-code-lang { right: 76px; }

/* ---- Quotes and callouts ---- */

.doc-content blockquote {
    margin: 0 0 1.3em;
    padding: 2px 0 2px 20px;
    border-left: 2px solid rgba(120, 195, 240, 0.35);
    color: var(--text-dim);
    font-style: italic;
}

.doc-note {
    margin: 0 0 1.4em;
    padding: 16px 20px 4px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.doc-note > :last-child { margin-bottom: 12px; }
.doc-note p { color: var(--text-dim); }
.doc-note strong { color: var(--white); }

/* Left edge carries the meaning; the fill stays quiet so a page full of TODOs
   is still readable. */
.doc-note--todo { box-shadow: inset 0 0 0 1px rgba(255, 130, 130, 0.22), inset 3px 0 0 #FF8A8A; }
.doc-note--todo strong { color: #FFB0B0; }
.doc-note--info { box-shadow: inset 0 0 0 1px rgba(76, 221, 255, 0.22), inset 3px 0 0 var(--cyan); }
.doc-note--info strong { color: var(--cyan); }
.doc-note--tip { box-shadow: inset 0 0 0 1px rgba(140, 240, 200, 0.22), inset 3px 0 0 #8CF0C8; }
.doc-note--tip strong { color: #B7F0D8; }
.doc-note--warn { box-shadow: inset 0 0 0 1px rgba(255, 200, 140, 0.24), inset 3px 0 0 #FFC88C; }
.doc-note--warn strong { color: #FFD9A8; }

/* ---- Images ---- */

.doc-figure {
    margin: 0 0 1.6em;
}

.doc-figure img,
.doc-content p > img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: rgba(120, 195, 240, 0.04);
    box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow);
}

.doc-figure figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
}

/* ---- Tables ---- */

.doc-table {
    margin: 0 0 1.5em;
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--hairline);
    scrollbar-width: thin;
}

.doc-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.doc-table th,
.doc-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

.doc-table th {
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    background: rgba(120, 195, 240, 0.06);
}

.doc-table td { color: var(--text-dim); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:hover td { background: rgba(120, 195, 240, 0.03); }

/* ============================ Page furniture ============================ */

.docs-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 0.84rem;
    color: var(--text-dim);
}

.docs-crumbs a { color: var(--text-dim); }
.docs-crumbs a:hover { color: var(--cyan); }
.docs-crumbs span[aria-hidden] { opacity: 0.4; }

.docs-fallback,
.docs-lead {
    color: var(--text-dim);
}

.docs-fallback {
    margin: 0 0 22px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    background: rgba(120, 195, 240, 0.05);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.docs-lead { font-size: 1.06rem; margin-bottom: 34px; }

/* ---- On this page ---- */

.docs-toc {
    position: sticky;
    top: 86px;
    order: 2;
    font-size: 0.85rem;
}

.docs-toc h2 {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 11px; border-left: 1px solid var(--hairline); }
.docs-toc li { margin: 0; }
.docs-toc a { display: block; padding: 4px 0; color: var(--text-dim); line-height: 1.4; }
.docs-toc a:hover { color: var(--white); }
.docs-toc a.is-active { color: var(--cyan); }
.docs-toc-3 a { padding-left: 12px; font-size: 0.94em; opacity: 0.85; }

/* ---- Sub-pages, results, pager ---- */

.docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
}

.docs-card {
    padding: 24px 24px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--hairline);
    transition: background 0.22s ease, transform 0.22s ease;
}

.docs-card:hover { background: var(--surface-hi); transform: translateY(-3px); }
.docs-card h2 { font-size: 1.08rem; margin-bottom: 0.35em; }
.docs-card h2 a { color: var(--white); }
.docs-card > p { margin: 0 0 12px; font-size: 0.88rem; color: var(--text-dim); }
.docs-card ul { list-style: none; margin: 0; padding: 0; }
.docs-card li { margin: 4px 0; font-size: 0.89rem; color: var(--text-dim); }
.docs-card li a { color: var(--text-dim); }
.docs-card li a:hover { color: var(--cyan); }
.docs-card-more a { font-weight: 600; color: var(--lavender); }

.docs-children,
.docs-results {
    margin-top: 42px;
}

.docs-children h2 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.docs-children ul,
.docs-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.docs-children li,
.docs-results li {
    padding: 15px 20px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.docs-children li > a,
.docs-results li > a {
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.docs-children li > a:hover,
.docs-results li > a:hover { color: var(--cyan); }

.docs-children li p,
.docs-results li p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.docs-result-path {
    display: block;
    margin-top: 3px;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    opacity: 0.65;
}

.docs-results mark {
    padding: 0 2px;
    border-radius: 3px;
    color: var(--white);
    background: rgba(76, 221, 255, 0.22);
}

.docs-result-count { color: var(--text-dim); font-size: 0.9rem; }
.docs-empty { color: var(--text-dim); }

.docs-tag-all {
    margin: 42px 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.docs-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 52px;
    padding-top: 26px;
    border-top: 1px solid var(--hairline);
}

.docs-pager a {
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--hairline);
    transition: background 0.2s ease, color 0.2s ease;
}

.docs-pager a:hover { background: var(--surface-hi); color: var(--white); }
.docs-pager-next { text-align: right; }

.docs-pager span {
    display: block;
    margin-bottom: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ============================ Responsive ============================ */

@media (max-width: 1080px) {
    .docs-page { grid-template-columns: minmax(0, 1fr); }

    /* Above the text rather than beside it, and no longer sticky — a bar that
       follows the scroll is only useful when it has its own column. */
    .docs-toc {
        position: static;
        order: 0;
        margin-bottom: 30px;
        padding: 14px 18px;
        border-radius: 14px;
        background: var(--surface);
        box-shadow: inset 0 0 0 1px var(--hairline);
    }

    .docs-toc ul { border-left: 0; padding-left: 0; columns: 2; }
}

@media (max-width: 860px) {
    .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }

    .docs-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .docs-sidebar-shell {
        border-radius: 14px;
        background: var(--surface);
        box-shadow: inset 0 0 0 1px var(--hairline);
    }

    .docs-sidebar-shell > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        font-weight: 600;
        color: var(--white);
        cursor: pointer;
    }

    .docs-sidebar-toggle { display: flex; }
    .docs-sidebar-toggle::after { content: "▾"; color: var(--text-dim); }
    .docs-sidebar-shell[open] .docs-sidebar-toggle::after { content: "▴"; }

    .docs-search { margin: 0 14px 14px; }
    .docs-nav { padding: 0 14px 16px; }

    .docs-pager { grid-template-columns: 1fr; }
    .docs-pager-next { text-align: left; }
    .docs-toc ul { columns: 1; }
}

@media (max-width: 560px) {
    .docs { padding-top: 26px; }
    .doc-content h2 { font-size: 1.24rem; }
    .doc-tags { margin-left: 6px; }
}

/* ============================ Hologram frames ============================
   Same frame as the rest of the site (see "Hologram frames" at the end of
   style.css): cut corners, glowing cut edges, brackets on the panels. */

.docs-search,
.doc-code,
.doc-note,
.docs-fallback,
.docs-card,
.docs-results li,
.docs-pager a {
    --cut: 10px;
    --acc: rgba(76, 221, 255, 0.45);
    --blen: 0px;
    --brk: rgba(255, 115, 196, 0.6);
    --scan: none;
    position: relative;
    border-radius: 0;
    clip-path: polygon(
        var(--cut) 0, 100% 0,
        100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
        0 100%, 0 var(--cut)
    );
}

.docs-search::after,
.doc-code::after,
.doc-note::after,
.docs-fallback::after,
.docs-card::after,
.docs-results li::after,
.docs-pager a::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            transparent calc(var(--cut) * 0.7071 - 1.5px),
            var(--acc) 0 calc(var(--cut) * 0.7071 + 0.5px),
            transparent 0) top left / var(--cut) var(--cut) no-repeat,
        linear-gradient(-45deg,
            transparent calc(var(--cut) * 0.7071 - 1.5px),
            var(--acc) 0 calc(var(--cut) * 0.7071 + 0.5px),
            transparent 0) bottom right / var(--cut) var(--cut) no-repeat,
        linear-gradient(var(--brk), var(--brk)) top right / var(--blen) 2px no-repeat,
        linear-gradient(var(--brk), var(--brk)) top right / 2px var(--blen) no-repeat,
        linear-gradient(var(--brk), var(--brk)) bottom left / var(--blen) 2px no-repeat,
        linear-gradient(var(--brk), var(--brk)) bottom left / 2px var(--blen) no-repeat,
        var(--scan);
}

.docs-card,
.doc-note,
.docs-fallback {
    --cut: 14px;
    --acc: rgba(255, 115, 196, 0.5);
    --blen: 12px;
    --scan: repeating-linear-gradient(to bottom,
        rgba(76, 221, 255, 0.03) 0 1px, transparent 1px 4px);
}

.docs-card:hover,
.docs-results li:hover,
.docs-pager a:hover {
    --acc: var(--pink);
    --blen: 10px;
}

.docs-search:focus-within { --acc: var(--cyan); }

/* Pictures, tables and small nav items just take the cut — no overlay. */
.doc-content p > img,
.doc-table,
.docs-nav-link,
.docs-nav-home {
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
/* .doc-table scrolls sideways, an overlay would scroll away with it. */
.doc-content p > img,
.doc-table {
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
