/* ============================================================
   Product Documentation Portal — SUNE website design language.

   Loaded on every page (body.theme-sune, see doc_theme()), on top of
   style.css: all product manuals, the product chooser, sign-in and
   access-request pages, admin and error pages. Rules are scoped to
   .theme-sune so style.css remains the unthemed fallback.

   Tokens are taken from the SUNE company website design system:
   one typeface (Manrope), warm paper neutrals, near-black ink, SUNE red,
   near-zero radii, thin rules instead of boxes.
   ============================================================ */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens (SUNE website) ---------- */
.theme-sune {
    --ink: #0b0b0c;
    --ink-2: #141416;
    --paper: #f4f2ef;
    --paper-2: #e9e5e0;
    --paper-3: #dcd6cf;
    --white: #fff;
    --red: #e8331f;
    --red-deep: #c0230f;
    --red-soft: rgba(232, 51, 31, .12);
    --t-1: #0b0b0c;
    --t-2: #423d39;
    --t-3: #605b55;
    --t-3-inv: #8b857e;
    --line: rgba(11, 11, 12, .12);
    --line-2: rgba(11, 11, 12, .07);
    --line-inv: rgba(255, 255, 255, .12);
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    --r-1: 2px;
    --sh-1: 0 2px 8px rgba(11, 11, 12, .06);
    --sh-2: 0 24px 48px -24px rgba(11, 11, 12, .28);
    --e-out: cubic-bezier(.16, .84, .44, 1);
    --t-fast: .22s;
    --t-mid: .42s;

    /* documentation chrome */
    --gut: clamp(16px, 2.6vw, 44px);
    --nav-h: 72px;
    --pnav-h: 52px;
    --stick-h: calc(var(--nav-h) + var(--pnav-h));
    --side-w: 300px;
    --read-w: 920px;

    /* the base stylesheet's tokens, remapped so shared components follow */
    --bg: var(--paper);
    --surface: var(--white);
    --border: var(--line);
    --text: var(--t-1);
    --text-muted: var(--t-3);
    --accent: var(--red-deep);
    --accent-dark: var(--red);
    --code-bg: var(--paper-2);
    --radius: var(--r-1);

    margin: 0;
    background: var(--paper);
    color: var(--t-1);
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html:has(body.theme-sune) {
    scroll-behavior: smooth;
    /* in-page anchors clear the sticky header + sub-navigation */
    scroll-padding-top: calc(72px + 52px + 20px);
}
@media (prefers-reduced-motion: reduce) {
    html:has(body.theme-sune) { scroll-behavior: auto; }
    .theme-sune *, .theme-sune *::before, .theme-sune *::after { transition: none !important; animation: none !important; }
}

.theme-sune ::selection { background: var(--red); color: #fff; }
.theme-sune a { color: var(--red-deep); text-decoration: none; transition: color var(--t-fast); }
.theme-sune a:hover { color: var(--red); }
.theme-sune :is(a, button, input):focus { outline: none; }
.theme-sune :is(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.theme-sune .skip-link { color: var(--ink); font-weight: 700; z-index: 700; }

/* ---------- header (SUNE pinned navigation) ---------- */
.theme-sune .sune-nav {
    position: sticky;
    top: 0;
    z-index: 600;
    background: rgba(244, 242, 239, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(11, 11, 12, .03);
}
.theme-sune .sune-nav-in {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    height: var(--nav-h);
    padding-inline: var(--gut);
}
.theme-sune .sune-logo { flex: none; display: block; line-height: 0; }
.theme-sune .sune-logo img { width: clamp(118px, 9vw, 150px); height: auto; }
.theme-sune .sune-nav-tag {
    padding-left: clamp(14px, 2vw, 28px);
    border-left: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.014em;
    color: var(--t-2);
    white-space: nowrap;
}
.theme-sune .sune-nav-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 24px);
}
.theme-sune .sune-nav-link {
    position: relative;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.014em;
    color: var(--t-1);
}
.theme-sune .sune-nav-link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 1.5px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-fast) var(--e-out);
}
.theme-sune .sune-nav-link:hover { color: var(--t-1); }
.theme-sune .sune-nav-link:hover::after { transform: scaleX(1); }
.theme-sune .sune-nav-user {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-3);
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* buttons — SUNE .btn / .btn-s */
.theme-sune .sune-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: var(--r-1);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.014em;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.theme-sune .sune-btn-s { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.theme-sune .sune-btn-s:hover { background: var(--ink); color: #fff; }

/* compact-width menu control (SUNE .m-burger) */
.theme-sune .sune-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    place-content: center;
    justify-items: end;
    gap: 5px;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.theme-sune .sune-burger:hover { border-color: var(--ink); }
.theme-sune .sune-burger > span:not(.sune-burger-t) {
    display: block;
    height: 2px;
    background: currentColor;
    transition: width var(--t-fast), transform var(--t-fast) var(--e-out);
}
.theme-sune .sune-burger > span:nth-child(1) { width: 22px; }
.theme-sune .sune-burger > span:nth-child(2) { width: 14px; }
.theme-sune .sune-burger[aria-expanded="true"] > span:nth-child(1) { width: 20px; transform: translateY(3.5px) rotate(45deg); }
.theme-sune .sune-burger[aria-expanded="true"] > span:nth-child(2) { width: 20px; transform: translateY(-3.5px) rotate(-45deg); }
.theme-sune .sune-burger-t {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- product sub-navigation (SUNE .pnav) ---------- */
.theme-sune .sune-pnav {
    position: sticky;
    top: var(--nav-h);
    z-index: 500;
    background: rgba(244, 242, 239, .94);
    border-bottom: 1px solid var(--line);
}
.theme-sune .sune-pnav-in {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
    min-height: var(--pnav-h);
    padding-inline: var(--gut);
}
.theme-sune .sune-pnav-t {
    flex: none;
    width: calc(var(--side-w) - var(--gut) - 16px);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--t-1);
}
.theme-sune .sune-pnav-t:hover { color: var(--red-deep); }
.theme-sune .sune-pnav-links {
    display: flex;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.theme-sune .sune-pnav-links::-webkit-scrollbar { display: none; }
.theme-sune .sune-pnav-links a {
    padding: 14px 12px 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--t-2);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.theme-sune .sune-pnav-links a:hover { color: var(--t-1); border-bottom-color: var(--paper-3); }
.theme-sune .sune-pnav-links a.is-here { color: var(--t-1); border-bottom-color: var(--red); }

/* ---------- documentation shell ---------- */
.theme-sune .docs-shell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    align-items: stretch;
    min-height: calc(100vh - var(--stick-h));
}
.theme-sune .sidebar-wrap {
    min-height: 0;
    background: var(--paper);
    border-right: 1px solid var(--line);
}
.theme-sune .sidebar {
    position: sticky;
    top: var(--stick-h);
    max-height: calc(100vh - var(--stick-h));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 18px 48px var(--gut);
    scrollbar-width: thin;
    scrollbar-color: var(--paper-3) transparent;
}
.theme-sune .sidebar-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.024em;
    text-transform: none;
    color: var(--t-1);
}
.theme-sune .sidebar-back {
    display: inline-flex;
    margin: 0 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-3);
}
.theme-sune .sidebar-back:hover { color: var(--red-deep); text-decoration: none; }

/* page filter — SUNE .input */
.theme-sune .sidebar-search input[type="search"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    font-family: inherit;
    font-size: 15px;
    color: var(--t-1);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.theme-sune .sidebar-search input[type="search"]::placeholder { color: #8f8981; }
.theme-sune .sidebar-search input[type="search"]:hover { border-color: rgba(11, 11, 12, .24); }
.theme-sune .sidebar-search input[type="search"]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.theme-sune .search-empty { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--t-3); }

.theme-sune .nav-sections { margin: 22px 0 0; }
.theme-sune .nav-section { margin: 0 0 6px; }
.theme-sune .nav-section-title,
.theme-sune .nav-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 0 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    text-align: left;
    color: var(--t-3);
}
.theme-sune .nav-section-toggle { cursor: pointer; transition: color var(--t-fast); }
.theme-sune .nav-section-toggle:hover,
.theme-sune .nav-section.has-active .nav-section-toggle { color: var(--t-1); }

/* plus/minus mark — SUNE accordion .pm */
.theme-sune .nav-pm { position: relative; flex: none; width: 11px; height: 11px; }
.theme-sune .nav-pm::before,
.theme-sune .nav-pm::after {
    content: "";
    position: absolute;
    background: var(--red);
    transition: transform var(--t-fast) var(--e-out);
}
.theme-sune .nav-pm::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.theme-sune .nav-pm::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.theme-sune .nav-section-toggle[aria-expanded="true"] .nav-pm::after { transform: scaleY(0); }

.theme-sune .nav-section > ul { padding: 6px 0 8px; }
.theme-sune .nav-section > ul[hidden] { display: none; }
.theme-sune .nav-sections li { margin: 0; }
.theme-sune .nav-page {
    display: block;
    margin-left: -12px;
    padding: 7px 10px 7px 10px;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.012em;
    color: var(--t-2);
    transition: color var(--t-fast), transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.theme-sune .nav-page:hover { background: none; color: var(--red-deep); transform: translateX(3px); }
.theme-sune .nav-page.is-active,
.theme-sune .nav-page.is-active:hover {
    background: var(--white);
    border-left-color: var(--red);
    color: var(--t-1);
    font-weight: 700;
    transform: none;
}
/* "Documentation Home" sits above the first section rule */
.theme-sune .nav-sections > .nav-section:first-child { margin-bottom: 10px; }

/* compact-width backdrop, created by docs.js */
.theme-sune .sune-backdrop { display: none; }

/* ---------- content ---------- */
.theme-sune :is(.doc-content, .app-content) {
    max-width: none;
    min-width: 0;
    padding: clamp(28px, 3.2vw, 52px) clamp(20px, 4.4vw, 80px) 72px;
    background: var(--white);
    color: var(--t-2);
}
.theme-sune :is(.doc-content, .app-content) > * { max-width: var(--read-w); }

/* breadcrumb — SUNE .pcrumb */
.theme-sune .doc-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 26px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--t-3);
}
.theme-sune .doc-crumb a { color: var(--t-3); }
.theme-sune .doc-crumb a:hover { color: var(--red-deep); }
.theme-sune .doc-crumb span[aria-current] { color: var(--t-1); }
.theme-sune .doc-crumb i { font-style: normal; opacity: .55; }

/* section eyebrow — SUNE .idx */
.theme-sune .doc-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--t-3);
}
.theme-sune .doc-eyebrow::before { content: ""; flex: none; width: 22px; height: 1px; background: var(--red); }

.theme-sune :is(.doc-content, .app-content) h1,
.theme-sune :is(.doc-content, .app-content) h2,
.theme-sune :is(.doc-content, .app-content) h3,
.theme-sune :is(.doc-content, .app-content) h4 { color: var(--t-1); text-wrap: balance; }
.theme-sune :is(.doc-content, .app-content) h1 {
    margin: 0 0 clamp(24px, 2.4vw, 36px);
    font-size: clamp(32px, 3.3vw, 52px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.034em;
}
.theme-sune :is(.doc-content, .app-content) h2 {
    margin: 52px 0 14px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    font-size: clamp(22px, 1.9vw, 29px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.028em;
}
.theme-sune :is(.doc-content, .app-content) h1 + h2,
.theme-sune :is(.doc-content, .app-content) h1 + p + h2 { margin-top: 0; }
.theme-sune :is(.doc-content, .app-content) h3 {
    margin: 34px 0 10px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -.02em;
}
.theme-sune :is(.doc-content, .app-content) h4 {
    margin: 26px 0 8px;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.014em;
}
.theme-sune :is(.doc-content, .app-content) p { margin: 0 0 16px; text-wrap: pretty; }
.theme-sune :is(.doc-content, .app-content) strong { color: var(--t-1); font-weight: 700; }
.theme-sune :is(.doc-content, .app-content) em { color: var(--t-1); }

.theme-sune :is(.doc-content, .app-content) a:not(.doc-figure-link, .doc-crumb a, .doc-cards a, .page-nav a, .admin-stats a, .product-grid a, .btn) {
    text-decoration: underline;
    text-decoration-color: rgba(192, 35, 15, .3);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.theme-sune :is(.doc-content, .app-content) a:not(.doc-figure-link, .doc-crumb a, .doc-cards a, .page-nav a, .admin-stats a, .product-grid a, .btn):hover { color: var(--red); text-decoration-color: currentColor; }

/* lists: red square markers, red step numbers */
.theme-sune :is(.doc-content, .app-content) ul:not(.doc-cards, .product-grid, .admin-stats),
.theme-sune :is(.doc-content, .app-content) ol { margin: 0 0 18px; padding: 0; list-style: none; }
.theme-sune :is(.doc-content, .app-content) :is(ul:not(.doc-cards, .product-grid, .admin-stats), ol) > li { position: relative; margin: 0 0 8px; padding-left: 26px; }
.theme-sune :is(.doc-content, .app-content) ul:not(.doc-cards, .product-grid, .admin-stats) > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .66em;
    width: 6px;
    height: 6px;
    background: var(--red);
}
.theme-sune :is(.doc-content, .app-content) li ul:not(.doc-cards, .product-grid, .admin-stats) > li::before { background: none; border: 1.5px solid var(--t-3); width: 6px; height: 6px; }
.theme-sune :is(.doc-content, .app-content) ol { counter-reset: sune-step; }
.theme-sune :is(.doc-content, .app-content) ol:not(.doc-cards) > li { counter-increment: sune-step; padding-left: 36px; }
.theme-sune :is(.doc-content, .app-content) ol > li::before {
    content: counter(sune-step);
    position: absolute;
    left: 0;
    top: .12em;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.theme-sune :is(.doc-content, .app-content) li > :is(ul, ol) { margin: 8px 0 0; }
.theme-sune :is(.doc-content, .app-content) li > p:last-child { margin-bottom: 0; }

/* inline code and code blocks */
.theme-sune :is(.doc-content, .app-content) code {
    padding: .12em .42em;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--r-1);
    color: var(--t-1);
    font-family: var(--mono);
    font-size: .84em;
    white-space: normal;
    overflow-wrap: anywhere;
}
.theme-sune :is(.doc-content, .app-content) pre {
    margin: 0 0 20px;
    padding: 18px 20px;
    background: var(--ink-2);
    color: #ece8e3;
    border-radius: var(--r-1);
    overflow-x: auto;
}
.theme-sune :is(.doc-content, .app-content) pre code { padding: 0; background: none; border: 0; color: inherit; white-space: pre; }

/* exact on-screen text */
.theme-sune :is(.doc-content, .app-content) blockquote {
    margin: 0 0 20px;
    padding: 4px 0 4px 20px;
    background: none;
    border-left: 2px solid var(--red);
    border-radius: 0;
    color: var(--t-1);
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.012em;
}
.theme-sune :is(.doc-content, .app-content) blockquote p:last-child { margin-bottom: 0; }

/* callouts */
.theme-sune :is(.doc-content, .app-content) :is(.note, .warning) {
    margin: 0 0 22px;
    padding: 16px 20px;
    border-radius: var(--r-1);
    border-left: 3px solid var(--ink);
    background: var(--paper);
    color: var(--t-2);
    font-size: 15.5px;
    line-height: 1.6;
}
.theme-sune :is(.doc-content, .app-content) .warning { background: rgba(232, 51, 31, .07); border-left-color: var(--red); }
.theme-sune :is(.doc-content, .app-content) :is(.note, .warning) > :last-child { margin-bottom: 0; }
.theme-sune :is(.doc-content, .app-content) :is(.note, .warning) > strong:first-child { color: var(--t-1); }
.theme-sune :is(.doc-content, .app-content) .warning > strong:first-child { color: var(--red-deep); }
.theme-sune :is(.doc-content, .app-content) :is(.note, .warning) code { background: var(--white); }

/* tables */
.theme-sune :is(.doc-content, .app-content) .table-wrap {
    margin: 0 0 26px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    background: var(--white);
    -webkit-overflow-scrolling: touch;
}
.theme-sune :is(.doc-content, .app-content) table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    font-size: 15px;
    line-height: 1.55;
}
.theme-sune :is(.doc-content, .app-content) table:has(th:nth-child(3)) { min-width: 620px; }
.theme-sune :is(.doc-content, .app-content) table:has(th:nth-child(4)) { min-width: 760px; }
.theme-sune :is(.doc-content, .app-content) th,
.theme-sune :is(.doc-content, .app-content) td {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    text-align: left;
    vertical-align: top;
}
.theme-sune :is(.doc-content, .app-content) th {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    color: var(--t-1);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.005em;
    white-space: nowrap;
}
.theme-sune :is(.doc-content, .app-content) td { color: var(--t-2); }
.theme-sune :is(.doc-content, .app-content) td:first-child { color: var(--t-1); font-weight: 600; }
.theme-sune :is(.doc-content, .app-content) tbody tr:last-child td { border-bottom: 0; }
.theme-sune :is(.doc-content, .app-content) tbody tr { transition: background var(--t-fast); }
.theme-sune :is(.doc-content, .app-content) tbody tr:hover { background: #faf9f7; }

/* screenshots */
.theme-sune .doc-figure { margin: 8px 0 30px; }
.theme-sune .doc-figure-link {
    display: block;
    padding: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    box-shadow: var(--sh-1);
    line-height: 0;
    cursor: zoom-in;
    transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.theme-sune .doc-figure-link:hover { border-color: rgba(11, 11, 12, .3); box-shadow: var(--sh-2); transform: translateY(-2px); }
.theme-sune .doc-figure img { width: 100%; height: auto; border-radius: 0; }
.theme-sune .doc-figure figcaption {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--t-3);
}
.theme-sune .doc-figure figcaption::before { content: ""; flex: none; width: 22px; height: 1px; margin-top: .72em; background: var(--red); }

/* lightbox — SUNE overlay */
.theme-sune .lightbox {
    z-index: 900;
    padding: 64px 24px 24px;
    background: rgba(6, 6, 7, .86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.theme-sune .lightbox img { border-radius: var(--r-1); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .72); }
.theme-sune .lightbox-close {
    top: 14px;
    right: 18px;
    min-height: 40px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--r-1);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    transition: background var(--t-fast), color var(--t-fast);
}
.theme-sune .lightbox-close:hover { background: #fff; color: var(--ink); }

/* product home module cards */
.theme-sune :is(.doc-content, .app-content) .doc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin: 6px 0 30px;
    padding: 0;
    list-style: none;
}
.theme-sune :is(.doc-content, .app-content) .doc-cards li {
    position: relative;
    margin: 0;
    padding: 20px 22px 18px;
    background: var(--paper);
    border: 1px solid transparent;
    border-radius: var(--r-1);
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.theme-sune :is(.doc-content, .app-content) .doc-cards li:hover { background: var(--white); border-color: var(--line); box-shadow: var(--sh-2); transform: translateY(-2px); }
.theme-sune :is(.doc-content, .app-content) .doc-cards h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.018em; }
.theme-sune :is(.doc-content, .app-content) .doc-cards h3 a { color: var(--t-1); text-decoration: none; }
.theme-sune :is(.doc-content, .app-content) .doc-cards h3 a::before { content: ""; position: absolute; inset: 0; }
.theme-sune :is(.doc-content, .app-content) .doc-cards h3 a::after { content: " \2192"; color: var(--red); transition: margin var(--t-fast); }
.theme-sune :is(.doc-content, .app-content) .doc-cards li:hover h3 a::after { margin-left: 4px; }
.theme-sune :is(.doc-content, .app-content) .doc-cards p { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--t-3); }

/* previous / next */
.theme-sune .page-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 16px;
}
.theme-sune .page-nav > span { display: block; color: var(--red); font-weight: 700; }
.theme-sune .page-nav > span:last-child { text-align: right; }
.theme-sune .page-nav > span:has(a) {
    position: relative;
    padding: 16px 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.theme-sune .page-nav > span:has(a):hover { border-color: var(--ink); background: var(--paper); }
.theme-sune .page-nav > span:has(a)::before {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--t-3);
}
.theme-sune .page-nav > span:first-child:has(a)::before { content: "Previous"; }
.theme-sune .page-nav > span:last-child:has(a)::before { content: "Next"; }
.theme-sune .page-nav a { color: var(--t-1); font-weight: 700; letter-spacing: -.014em; text-decoration: none; }
.theme-sune .page-nav a::after { content: ""; position: absolute; inset: 0; }
.theme-sune .page-nav > span:has(a):hover a { color: var(--red-deep); }

/* ---------- footer (SUNE .foot) ---------- */
.theme-sune .sune-foot {
    background: #000;
    color: #fff;
    padding: clamp(44px, 4.4vw, 72px) var(--gut) 26px;
}
.theme-sune .sune-foot-in {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr);
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: clamp(24px, 3vw, 56px);
    padding-bottom: clamp(28px, 3vw, 48px);
    border-bottom: 1px solid var(--line-inv);
}
.theme-sune .sune-foot-brand img { width: 160px; height: auto; }
.theme-sune .sune-foot-brand p { margin: 16px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--t-3-inv); }
.theme-sune .sune-foot-h { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: var(--red); }
.theme-sune .sune-foot-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.theme-sune .sune-foot-links li { margin: 0; }
.theme-sune .sune-foot a { color: #ded8d1; font-size: 15px; }
.theme-sune .sune-foot a:hover { color: var(--red); }
.theme-sune .sune-foot-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 22px;
}
.theme-sune .sune-foot-base p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--t-3-inv); }
.theme-sune .sune-foot-base .sune-foot-top { font-size: 13px; font-weight: 600; color: var(--t-3-inv); }
.theme-sune .sune-foot-base .sune-foot-top::after { content: " \2191"; }

/* ---------- plain pages: landing and admin (layout-app) ---------- */
.theme-sune .app-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 64px) var(--gut) 80px;
    background: transparent;
}
.theme-sune .app-content > * { max-width: none; }
.theme-sune .app-content > h1 { max-width: 22ch; }
.theme-sune .app-content > .card { max-width: 820px; }
.theme-sune .app-content .table-wrap { background: var(--white); }
.theme-sune .doc-meta { margin: -14px 0 24px; font-size: 13.5px; font-weight: 600; color: var(--t-3); }

/* ---------- cards ---------- */
.theme-sune .card {
    padding: clamp(24px, 3vw, 40px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    box-shadow: var(--sh-1);
    color: var(--t-2);
}
.theme-sune .card h1,
.theme-sune .card h2 { color: var(--t-1); }

/* ---------- buttons (SUNE .btn-p / .btn-s) ---------- */
.theme-sune .btn,
.theme-sune .sune-btn-p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 22px;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: var(--r-1);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.014em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-sune .btn:hover,
.theme-sune .sune-btn-p:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; transform: translateY(-2px); }
.theme-sune .btn:active,
.theme-sune .sune-btn-p:active { transform: none; }
.theme-sune .sune-btn-p { min-height: 40px; padding: 9px 16px; font-size: 14.5px; }
.theme-sune .btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.theme-sune .btn-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.theme-sune .btn-danger { background: var(--ink); border-color: var(--ink); }
.theme-sune .btn-danger:hover { background: var(--ink-2); border-color: var(--ink-2); }
.theme-sune .btn-small { min-height: 36px; padding: 7px 13px; font-size: 13.5px; }
.theme-sune .btn-block { display: flex; width: 100%; margin-top: 24px; }
.theme-sune .btn[disabled] { opacity: .45; pointer-events: none; }
.theme-sune .btn-link {
    background: none;
    border: 0;
    padding: 2px 0;
    color: var(--red-deep);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.theme-sune .btn-link:hover { color: var(--red); }
.theme-sune td .inline-form { display: inline-block; margin: 2px 6px 2px 0; }
.theme-sune :is(.doc-content, .app-content) p > .btn + .btn { margin-left: 10px; }

/* ---------- forms (SUNE .field / .input) ---------- */
.theme-sune label {
    margin: 18px 0 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .005em;
    color: var(--t-3);
}
.theme-sune :is(input[type="text"], input[type="email"], input[type="password"], textarea, select) {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    color: var(--t-1);
    font-family: inherit;
    font-size: 16px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.theme-sune :is(input[type="text"], input[type="email"], input[type="password"], textarea, select):hover { border-color: rgba(11, 11, 12, .24); }
.theme-sune :is(input[type="text"], input[type="email"], input[type="password"], textarea, select):focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}
.theme-sune input[aria-invalid="true"] { border-color: var(--red); background: rgba(232, 51, 31, .04); }
.theme-sune input[type="checkbox"] { accent-color: var(--red); }
.theme-sune .field-hint { margin: 7px 0 0; font-size: 13px; color: var(--t-3); }
.theme-sune .field-error { margin: 7px 0 0; font-size: 13px; font-weight: 600; color: var(--red-deep); }
.theme-sune .form-footer { margin: 22px 0 0; font-size: 14.5px; color: var(--t-3); }
.theme-sune .captcha-box { margin-top: 18px; }
.theme-sune .captcha-image { border-color: var(--line); border-radius: var(--r-1); }

/* ---------- alerts and badges ---------- */
.theme-sune .alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 0;
    border-left: 3px solid var(--ink);
    border-radius: var(--r-1);
    background: var(--paper);
    color: var(--t-1);
    font-size: 15px;
    font-weight: 600;
}
.theme-sune .alert-success { border-left-color: #1d6b33; background: #eef6f0; color: #154d25; }
.theme-sune .alert-error { border-left-color: var(--red); background: rgba(232, 51, 31, .08); color: var(--red-deep); }
.theme-sune .alert-warning { border-left-color: var(--red); background: rgba(232, 51, 31, .06); }
.theme-sune .badge {
    padding: 3px 9px;
    border-radius: var(--r-1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: capitalize;
}
.theme-sune .badge-pending { background: var(--paper-2); color: var(--t-1); }
.theme-sune .badge-approved { background: #e3f1e6; color: #154d25; }
.theme-sune .badge-rejected { background: rgba(232, 51, 31, .12); color: var(--red-deep); }
.theme-sune .badge-inactive { background: var(--paper); color: var(--t-3); }
.theme-sune .table-empty { color: var(--t-3); font-style: normal; }

/* ---------- centered card pages: sign in, request access, errors ---------- */
.theme-sune.layout-auth .page-centered,
.theme-sune.layout-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: clamp(32px, 6vw, 88px) var(--gut);
    background:
        radial-gradient(ellipse 70% 60% at 85% 0%, rgba(232, 51, 31, .07), transparent 60%),
        var(--paper);
}
.theme-sune.layout-error { min-height: 100vh; }
.theme-sune.layout-auth .card,
.theme-sune.layout-error .card { max-width: 480px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-2); }
.theme-sune.layout-auth .card:has(#full_name) { max-width: 540px; }
.theme-sune .auth-logo { display: inline-block; margin: 0 0 22px; line-height: 0; }
.theme-sune .auth-logo img { width: 150px; height: auto; }
.theme-sune .auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--t-3);
}
.theme-sune .auth-brand::before { content: ""; width: 22px; height: 1px; background: var(--red); }
.theme-sune.layout-auth .card h1,
.theme-sune.layout-error .card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.034em;
    color: var(--t-1);
}
.theme-sune .card p { margin: 0 0 14px; }
.theme-sune .card a:not(.btn, .auth-logo) { text-decoration: underline; text-decoration-color: rgba(192, 35, 15, .3); text-underline-offset: 3px; }
.theme-sune .error-code {
    margin: 0 0 6px;
    font-size: clamp(56px, 7vw, 88px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.05em;
    color: var(--red);
}
.theme-sune .sune-foot-min { padding-top: 0; }
.theme-sune .sune-foot-min .sune-foot-base { padding-top: 20px; }

/* ---------- header: current area ---------- */
.theme-sune .sune-nav-docs .lbl-short { display: none; }
.theme-sune .sune-nav-link.is-active { color: var(--t-1); }
.theme-sune .sune-nav-link.is-active::after { transform: scaleX(1); }

/* ---------- documentation home: product cards ---------- */
.theme-sune :is(.doc-content, .app-content) .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 18px;
    max-width: none;
    margin: 8px 0 34px;
    padding: 0;
    list-style: none;
}
.theme-sune :is(.doc-content, .app-content) .product-grid > li { margin: 0; padding: 0; }
.theme-sune :is(.doc-content, .app-content) .product-grid > li::before { content: none; }
.theme-sune .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.theme-sune .product-card:hover { border-color: rgba(11, 11, 12, .28); box-shadow: var(--sh-2); transform: translateY(-3px); }
.theme-sune .product-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 80% 10%, rgba(232, 51, 31, .10), transparent 65%),
        var(--paper);
    border-bottom: 1px solid var(--line-2);
}
.theme-sune .product-card-media img {
    position: absolute;
    inset: 9% 8% 0;
    width: 84%;
    height: 91%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 30px rgba(11, 11, 12, .18));
    transition: transform var(--t-mid) var(--e-out);
}
.theme-sune .product-card:hover .product-card-media img { transform: translateY(-4px) scale(1.02); }
/* full-bleed product photography and full-screen captures */
.theme-sune .product-card-kiosk .product-card-media img,
.theme-sune .product-card-admin-panel .product-card-media img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: none;
}
.theme-sune .product-card-admin-panel .product-card-media img { object-position: left top; }
.theme-sune .product-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.theme-sune :is(.doc-content, .app-content) .product-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.theme-sune :is(.doc-content, .app-content) .product-card h3 a { color: var(--t-1); text-decoration: none; }
.theme-sune :is(.doc-content, .app-content) .product-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.theme-sune :is(.doc-content, .app-content) .product-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--t-2); }
.theme-sune :is(.doc-content, .app-content) .product-card .product-card-cta {
    margin-top: auto;
    padding-top: 16px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--red-deep);
}
.theme-sune .product-card-cta::after { content: " \2192"; display: inline-block; transition: transform var(--t-fast); }
.theme-sune .product-card:hover .product-card-cta::after { transform: translateX(4px); }

/* module cards on a product home: title + one-line description */
.theme-sune :is(.doc-content, .app-content) .doc-cards p { font-weight: 500; line-height: 1.5; color: var(--t-2); }

/* ---------- admin ---------- */
.theme-sune .admin-intro { margin: -8px 0 28px; font-size: 17px; color: var(--t-2); }
.theme-sune :is(.doc-content, .app-content) .admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}
.theme-sune :is(.doc-content, .app-content) .admin-stats > li { margin: 0; padding: 0; }
.theme-sune :is(.doc-content, .app-content) .admin-stats > li::before { content: none; }
.theme-sune .admin-stat a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 20px 22px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    color: var(--t-1);
    text-decoration: none;
    transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.theme-sune .admin-stat a:hover { border-color: rgba(11, 11, 12, .3); box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--t-1); }
.theme-sune .admin-stat a::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    height: 3px;
    background: var(--paper-3);
}
.theme-sune .admin-stat-approved a::before { background: #1d6b33; }
.theme-sune .admin-stat-inactive a::before { background: var(--ink); }
.theme-sune .admin-stat-pending.needs-action a::before { background: var(--red); }
.theme-sune .admin-stat.is-current a { border-color: var(--ink); }
.theme-sune .admin-stat-num {
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}
.theme-sune .admin-stat-pending.needs-action .admin-stat-num { color: var(--red); }
.theme-sune .admin-stat-label { margin-top: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.014em; }
.theme-sune .admin-stat-hint { font-size: 13px; font-weight: 600; color: var(--t-3); }

.theme-sune .admin-tabs {
    display: flex;
    gap: 2px;
    margin: 0 0 4px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}
.theme-sune .admin-tabs[hidden] { display: none; }
.theme-sune .admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
    padding: 13px 16px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--t-3);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.016em;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.theme-sune .admin-tab:hover { color: var(--t-1); }
.theme-sune .admin-tab[aria-selected="true"] { color: var(--t-1); border-bottom-color: var(--red); }
.theme-sune .admin-tab-count {
    min-width: 24px;
    padding: 1px 7px;
    background: var(--paper-2);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: var(--t-2);
    text-align: center;
}
.theme-sune .admin-tab[aria-selected="true"] .admin-tab-count { background: var(--ink); color: #fff; }

.theme-sune .admin-panel { margin: 0 0 36px; }
.theme-sune .admin-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 0 0 14px;
}
.theme-sune :is(.doc-content, .app-content) .admin-panel-head h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.theme-sune.admin-tabbed :is(.doc-content, .app-content) .admin-panel-head { padding-top: 22px; }
.theme-sune.admin-tabbed :is(.doc-content, .app-content) .admin-panel-head h2 {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.theme-sune.admin-tabbed .admin-panel-head:not(:has(.admin-filter)) { display: none; }
.theme-sune input[type="search"].admin-filter {
    width: min(100%, 340px);
    min-height: 44px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    font-family: inherit;
    font-size: 15px;
}
.theme-sune input[type="search"].admin-filter:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.theme-sune .admin-actions { white-space: nowrap; }
.theme-sune .admin-panel .table-wrap { margin-bottom: 0; }
.theme-sune .admin-panel td time { white-space: nowrap; }
.theme-sune .admin-footnote { margin-top: 8px; font-size: 13.5px; color: var(--t-3); }
.theme-sune .muted { color: var(--t-3); }

@media (max-width: 860px) {
    .theme-sune :is(.doc-content, .app-content) .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .theme-sune { --side-w: 270px; }
    .theme-sune .sune-nav-user { display: none; }
}

/* compact width: the sidebar becomes an off-canvas panel (SUNE .m-menu) */
@media (max-width: 960px) {
    .theme-sune { --nav-h: 64px; --pnav-h: 48px; }
    html:has(body.theme-sune) { scroll-padding-top: calc(64px + 48px + 16px); }
    .theme-sune .sune-burger { display: grid; }
    .theme-sune .docs-shell { display: block; }
    .theme-sune .sidebar-wrap,
    .theme-sune .sidebar-wrap.is-open {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 800;
        width: min(360px, 88vw);
        min-height: 0;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        transform: translateX(-102%);
        visibility: hidden;
        transition: transform var(--t-mid) var(--e-out), visibility var(--t-mid);
    }
    .theme-sune .sidebar-wrap.is-open { transform: none; visibility: visible; box-shadow: 0 0 90px -20px rgba(11, 11, 12, .45); }
    .theme-sune .sidebar { position: static; max-height: 100%; height: 100%; padding: 24px 22px 40px; }
    .theme-sune .sune-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 790;
        background: rgba(6, 6, 7, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--t-mid), visibility var(--t-mid);
    }
    .theme-sune .sune-backdrop.is-on { opacity: 1; visibility: visible; }
    .theme-sune .sune-pnav-t { display: none; }
    .theme-sune .sune-pnav:has(.sune-pnav-links[hidden]) { display: none; }
    html:has(.sune-pnav-links[hidden]) { scroll-padding-top: calc(64px + 16px); }
    .theme-sune .sune-pnav-in { padding-inline: 0; }
    .theme-sune .sune-pnav-links { padding-inline: calc(var(--gut) - 12px); }
    .theme-sune :is(.doc-content, .app-content) { padding: 26px var(--gut) 56px; }
}

@media (max-width: 720px) {
    .theme-sune { font-size: 16px; }
    .theme-sune .sune-nav-tag,
    .theme-sune .sune-nav-docs .lbl-long { display: none; }
    .theme-sune .sune-nav-docs .lbl-short { display: inline; }
    .theme-sune .sune-nav-in { gap: 12px; }
    .theme-sune .sune-btn { min-height: 40px; padding: 8px 12px; }
    .theme-sune :is(.doc-content, .app-content) h2 { margin-top: 40px; padding-top: 22px; }
    .theme-sune :is(.doc-content, .app-content) :is(.note, .warning) { padding: 14px 16px; }
    .theme-sune :is(.doc-content, .app-content) th,
    .theme-sune :is(.doc-content, .app-content) td { padding: 11px 13px; }
    .theme-sune .page-nav { grid-template-columns: minmax(0, 1fr); }
    .theme-sune .page-nav > span:last-child { text-align: left; }
    .theme-sune .page-nav > span:not(:has(a)) { display: none; }
    .theme-sune .sune-foot-in { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
}

@media (max-width: 480px) {
    .theme-sune .sune-nav-in { gap: 10px; }
    .theme-sune .sune-nav-end { gap: 10px; min-width: 0; }
    .theme-sune .sune-logo img { width: 96px; }
    .theme-sune .sune-nav-link { padding-inline: 2px; font-size: 14px; }
    .theme-sune .sune-btn { min-height: 38px; padding: 6px 10px; font-size: 13.5px; }
    .theme-sune .sune-burger { width: 40px; height: 40px; }
}

@media (max-width: 359px) {
    .theme-sune .sune-nav-admin { display: none; }
}

@media print {
    .theme-sune .sune-nav,
    .theme-sune .sune-pnav,
    .theme-sune .sune-foot,
    .theme-sune .sune-backdrop { display: none; }
    .theme-sune .docs-shell { display: block; }
    .theme-sune :is(.doc-content, .app-content) { padding: 0; }
    .theme-sune :is(.doc-content, .app-content) > * { max-width: none; }
}
