/* Studio Guide — uses the site's CSS variables from styles.css.
 * Layout: 272px left sidebar (sticky) + main content. Mobile:
 * sidebar collapses to a horizontal tab strip at the top. */

#section-guide { padding-top: 80px; min-height: 100vh; }

.guide-shell {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* ===== SIDEBAR ===== */
.guide-sidebar {
    width: 272px;
    flex: 0 0 272px;
    border-right: 1px solid var(--border);
    padding: 28px 18px 24px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 240px);
}
.guide-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px 22px;
}
.guide-brand .logo-text {
    font-family: var(--heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}
.guide-brand .logo-text .accent { color: var(--accent); }
.guide-brand-sub {
    font-size: 11.5px;
    color: var(--text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-left: 1px;
}
.guide-nav-label {
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 0 10px;
    margin: 0 0 10px;
}
.guide-nav { display: flex; flex-direction: column; gap: 2px; }
.guide-nav-item {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--body);
    border: 1px solid transparent;
    background: none;
    text-align: left;
    width: 100%;
    transition: background .16s, color .16s, border-color .16s;
}
.guide-nav-item:hover { background: var(--surface); color: var(--text); }
.guide-nav-item--active {
    background: rgba(212, 169, 87, .08);
    color: var(--accent);
    border-color: rgba(212, 169, 87, .22);
    font-weight: 600;
}
/* "Copy guide" — copies the full llms.txt to the clipboard so users can
   paste it as context into an external LLM. Sits above the side-foot,
   pinned to the bottom of the sidebar via margin-top: auto. */
.guide-copy-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--body);
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    width: 100%;
    transition: background .16s, color .16s, border-color .16s;
}
.guide-copy-btn svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
@media (hover: hover) {
    .guide-copy-btn:hover {
        background: rgba(212,169,87,0.06);
        border-color: rgba(212,169,87,0.22);
        color: var(--text);
    }
    .guide-copy-btn:hover svg { opacity: 1; }
}
.guide-copy-btn--ok {
    background: rgba(212,169,87,0.10);
    border-color: rgba(212,169,87,0.35);
    color: var(--accent);
}
.guide-copy-btn--err {
    background: rgba(249,115,22,0.08);
    border-color: rgba(249,115,22,0.30);
    color: #f97316;
}
.guide-side-foot {
    padding: 14px 10px 2px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
}
.guide-side-foot a { color: var(--accent); }

/* ===== MAIN ===== */
.guide-main {
    flex: 1;
    min-width: 0;
    padding: 46px 56px 120px;
}
.guide-loading, .guide-empty {
    color: var(--text-3);
    font-size: 14px;
    padding: 40px 0;
    text-align: center;
}
.guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
    font-family: var(--heading);
}
.guide-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--accent);
}
.guide-title {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text);
}
.guide-lede {
    font-size: 16px;
    color: var(--text-2);
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* ===== FEATURES ===== */
.guide-features { display: flex; flex-direction: column; gap: 36px; }
.guide-feature {
    border-top: 1px solid var(--border);
    padding-top: 28px;
}
.guide-feature-title {
    font-family: var(--heading);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.01em;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 14px;
}
.guide-feature-body { color: var(--text-2); line-height: 1.7; max-width: 720px; }
.guide-feature-body p { margin-bottom: 16px; font-size: 15px; }
.guide-feature-body p:last-child { margin-bottom: 0; }
.guide-feature-body h5 {
    font-family: var(--heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 18px 0 10px;
    letter-spacing: -.005em;
}
.guide-feature-body kbd {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-block;
    line-height: 1.4;
}
.guide-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-steps li {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14.5px;
    line-height: 1.65;
}
.guide-steps li strong {
    color: var(--text);
    font-weight: 600;
    font-family: var(--heading);
    font-size: 13.5px;
    letter-spacing: -.005em;
}
.guide-sub {
    font-family: var(--heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin: 22px 0 10px;
    letter-spacing: -.005em;
}
/* Note callout — split into a small uppercase tag chip and the body text.
   noteType modifier (`tip`, `warn`, ...) only changes the accent stripe
   colour; default looks like Tip so the data shipped today renders
   correctly without per-type CSS. */
.guide-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-left: 2px solid var(--accent);
    background: rgba(212, 169, 87, .04);
    border-radius: 0 6px 6px 0;
    color: var(--text);
    font-size: 14px;
    margin: 16px 0;
}
.guide-note-tag {
    flex: 0 0 auto;
    font-family: var(--heading);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 2px;
}
.guide-note-body { flex: 1; line-height: 1.65; }
.guide-note--warn { border-left-color: #f97316; }
.guide-note--warn .guide-note-tag { color: #f97316; }

/* ===== RESPONSIVE — mobile collapses sidebar to top tab strip ===== */
@media (max-width: 900px) {
    .guide-shell { flex-direction: column; }
    .guide-sidebar {
        width: 100%;
        flex: none;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 18px 16px;
    }
    .guide-side-foot { display: none; }
    .guide-copy-btn { display: none; }
    .guide-brand { padding-bottom: 14px; }
    .guide-nav-label { padding: 0; margin-bottom: 8px; }
    .guide-nav {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 6px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .guide-nav::-webkit-scrollbar { display: none; }
    .guide-nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 7px 10px;
    }
    .guide-main { padding: 28px 18px 80px; }
    .guide-title { font-size: 26px; }
    .guide-lede { font-size: 15px; }
    .guide-feature-title { font-size: 17px; }
}

/* ===== Page pager (prev / next) at the end of each guide page ===== */
.guide-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.guide-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--body);
    font-size: 14.5px;
    color: var(--text-2);
    transition: color .15s;
}
.guide-pager-next { margin-left: auto; }
.guide-pager-btn:hover { color: var(--accent); }
.guide-pager-ico { opacity: .65; transition: transform .15s, opacity .15s; }
.guide-pager-btn:hover .guide-pager-ico { opacity: 1; }
.guide-pager-prev:hover .guide-pager-ico { transform: translateX(-2px); }
.guide-pager-next:hover .guide-pager-ico { transform: translateX(2px); }
.guide-pager-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .guide-pager { margin-top: 34px; } }
