/* =====================================================
   NueCtrl DAW Guides — shared styles
   -----------------------------------------------------
   Scoped to /guides/*. Loaded AFTER /styles.css so it can
   rely on the site design tokens (--label-*, --system-*,
   --separator, --radius-*) declared in :root there.

   Prefix is `guide-` rather than `support-` on purpose:
   support-midi-setup.html declares its own `.support-*`
   rules in a page-local <style> block, so the two namespaces
   must not collide if a future page loads both.
   ===================================================== */

.guide-page {
    max-width: 820px;
    margin: 0 auto;
    /* 120px top clears the fixed 52px header; matches
       support-midi-setup.html so guides sit at the same
       vertical rhythm as the existing support pages. */
    padding: 120px 20px 80px;
}

.guide-page-wide {
    max-width: 1100px;
}

.guide-breadcrumb {
    font-size: 0.938rem;
    color: var(--label-secondary);
    margin-bottom: 16px;
}

.guide-breadcrumb a {
    color: var(--label-secondary);
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--label-primary);
    margin-bottom: 20px;
}

.guide-lede {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--label-secondary);
    margin-bottom: 32px;
}

.guide-content {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--label-primary);
}

.guide-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--separator);
}

.guide-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.guide-content p {
    margin-bottom: 20px;
}

.guide-content ol,
.guide-content ul {
    margin: 20px 0;
    padding-left: 24px;
}

.guide-content li {
    margin-bottom: 12px;
}

.guide-content a {
    color: var(--label-primary);
    font-weight: 500;
    text-decoration: underline;
}

.guide-content code {
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 6px;
    background-color: var(--system-secondary-background);
}

/* Callout — used for platform caveats and honesty notes.
   Kept visually quiet (no accent colour) because the site
   palette is a strict monochrome Apple-HIG system. */
.guide-note {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--separator);
    background-color: var(--system-secondary-background);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--label-primary);
}

.guide-note p:last-child {
    margin-bottom: 0;
}

/* Requirements / spec list */
.guide-reqs {
    margin: 24px 0;
    padding: 8px 0;
    list-style: none;
    padding-left: 0;
}

.guide-reqs li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, var(--separator));
    margin-bottom: 0;
}

.guide-reqs li:last-child {
    border-bottom: none;
}

/* FAQ */
.guide-faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--separator);
}

.guide-faq-item:last-child {
    border-bottom: none;
}

.guide-faq-q {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--label-primary);
}

.guide-faq-a {
    margin-bottom: 0;
    color: var(--label-secondary);
}

/* CTA block */
.guide-cta {
    margin: 56px 0 0;
    padding: 32px;
    border-radius: var(--radius-md);
    background-color: var(--system-secondary-background);
    text-align: center;
}

.guide-cta h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 12px;
    border-top: none;
    padding-top: 0;
}

.guide-cta p {
    color: var(--label-secondary);
    margin-bottom: 24px;
}

/* Related-guides grid (also used by the hub index) */
.guide-related {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--separator);
}

.guide-related h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-grid li {
    margin: 0;
}

.guide-card {
    display: block;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--separator);
    border-radius: var(--radius-sm);
    color: var(--label-primary);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
    background-color: var(--system-secondary-background);
    transform: translateY(-2px);
}

.guide-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.guide-card-desc {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--label-secondary);
}

/* Trademark / affiliation disclaimer */
.guide-disclaimer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--separator);
    font-size: 0.813rem;
    line-height: 1.6;
    color: var(--label-tertiary);
}

@media (max-width: 768px) {
    .guide-page {
        padding: 100px 20px 60px;
    }

    .guide-title {
        font-size: 1.75rem;
    }

    .guide-lede {
        font-size: 1.0625rem;
    }

    .guide-content h2 {
        font-size: 1.3125rem;
        margin-top: 40px;
    }

    .guide-cta {
        padding: 24px 20px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }
}
