/* ==========================================================
   THEME: workorder — ink background, paper folder rows,
   condensed caps headers. Reuses the exact same markup and
   the same per-folder --accent variable as the base theme;
   only the look changes.
   ========================================================== */

[data-theme="workorder"] {
    --wo-ink: #15171c;
    --wo-paper: #ece7dc;
    --wo-paper-dim: #dcd5c5;
    --wo-ink-text: #1d1f24;
    --wo-ink-text-soft: #33302a;
    --wo-muted: #8b93a1;
    --wo-line: #33363d;
    --wo-line-on-paper: #c9c1ac;
    --wo-orange: #ff5a1f;
}

[data-theme="workorder"] body {
    background: var(--wo-ink);
    background-image: radial-gradient(ellipse at top left, rgba(255,90,31,0.10), transparent 55%);
    color: var(--wo-paper);
    font-family: 'Inter', sans-serif;
}

[data-theme="workorder"] a:focus-visible,
[data-theme="workorder"] button:focus-visible {
    outline-color: var(--wo-orange);
}

[data-theme="workorder"] header {
    border-bottom: 1px solid var(--wo-line);
    padding-bottom: 14px;
}

[data-theme="workorder"] h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.3rem, 7vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    display: block;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--wo-orange);
}

[data-theme="workorder"] .cursor {
    display: none;
}

[data-theme="workorder"] .subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--wo-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 68ch;
    margin-top: 10px;
    white-space: pre-line;
}

[data-theme="workorder"] #dynamic-index .group {
    position: relative;
    background: var(--wo-paper);
    border-bottom: none;
    border-radius: 2px;
    padding: 14px 22px 16px 28px;
    margin-bottom: 10px;
}
[data-theme="workorder"] #dynamic-index .group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent, var(--wo-orange));
}
[data-theme="workorder"] #dynamic-index .group:first-child {
    padding-top: 14px;
}

/* Category reads like a taped-on paper label — like the previous
   design, just without the tilt. More visual weight than the
   destinations underneath it. */
[data-theme="workorder"] #dynamic-index h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--wo-ink-text);
    background: var(--wo-paper-dim);
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--wo-line-on-paper);
    transform: none;
    margin: 6px 0 6px;
}
[data-theme="workorder"] #dynamic-index h2::before {
    content: "";
}

[data-theme="workorder"] #dynamic-index ul {
    margin-top: 4px;
}

[data-theme="workorder"] #dynamic-index li:not(:last-child)::after {
    content: "/";
    color: var(--wo-line-on-paper);
    opacity: 1;
    margin: 0 12px;
}

[data-theme="workorder"] #dynamic-index a {
    padding: 4px 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--wo-ink-text-soft);
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
}
[data-theme="workorder"] #dynamic-index a:hover,
[data-theme="workorder"] #dynamic-index a:focus-visible {
    color: var(--wo-ink-text);
    background: none;
    border-color: var(--accent, var(--wo-orange));
}

[data-theme="workorder"] footer {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-top: 1px solid var(--wo-line);
    color: var(--wo-muted);
}

@media (max-width: 560px) {
    [data-theme="workorder"] #dynamic-index h2 {
        font-size: 1.1rem;
        padding: 7px 14px;
    }
    [data-theme="workorder"] #dynamic-index a {
        font-size: 1.2rem;
        padding: 7px 2px;
    }
    [data-theme="workorder"] #dynamic-index li:not(:last-child)::after {
        margin: 0 10px;
    }
}

