/* Documentation pages (techmanual, usermanual): layout + prose; complements Tailwind in meta.php */

.manual-shell {
    padding-top: 8rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .manual-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .manual-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.manual-layout {
    display: grid;
    gap: 1.5rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .manual-layout {
        grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
        align-items: start;
    }
}

.manual-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.manual-menu {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

.manual-menu-content {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #334155;
}

.manual-structure-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.manual-structure-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.75rem;
    border-left: 2px solid #e2e8f0;
}

.manual-structure-list .manual-structure-list {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.manual-structure-list li {
    margin: 0.25rem 0;
}

.manual-structure-list a {
    color: #475569;
    text-decoration: none;
    border-radius: 0.25rem;
    padding: 0.125rem 0;
    display: inline-block;
    transition: color 0.15s ease;
}

.manual-structure-list a:hover {
    color: #0891b2;
}

.manual-structure-list a.active-doc {
    color: #0e7490;
    font-weight: 600;
}

.manual-back-button {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0891b2;
    text-decoration: none;
}

.manual-back-button:hover {
    color: #0e7490;
    text-decoration: underline;
}

.manual-status {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    min-height: 1.25rem;
}

.manual-content {
    max-width: 52rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

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

.manual-content h1,
.manual-content h2,
.manual-content h3,
.manual-content h4 {
    color: #0f172a;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.manual-content h1 {
    font-size: 1.875rem;
}

.manual-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}

.manual-content h3 {
    font-size: 1.25rem;
}

.manual-content h4 {
    font-size: 1.1rem;
}

.manual-content p {
    margin: 0.75rem 0;
}

.manual-content a {
    color: #0891b2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.manual-content a:hover {
    color: #0e7490;
}

.manual-content ul,
.manual-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.manual-content li {
    margin: 0.35rem 0;
}

.manual-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #06b6d4;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 0.375rem 0.375rem 0;
}

.manual-content code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}

.manual-content pre {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.manual-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.manual-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.manual-content th,
.manual-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.manual-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.manual-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.manual-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
