/* ============================================================================
 * shared/windows/03-ad-setup-gpo/style.css
 * ───────────────────────────────────────────────────────────────────────────
 * Module-specific overrides for the YAML walkthrough + side-panel + chain of
 * trust. Structural pattern mirrors shared/linux/06-config-yaml :
 *   - YAML panel (left, scrollable, auto-scrolls to first active line)
 *   - Side panel (right, tag/title/body/fields-table, recap = checklist mode)
 *   - Chain of trust row (4 zen-box at y=85%)
 *   - Badge "passwordless" (data-at anchored above smartcard box)
 *
 * Positioning is declarative (data-at on each element) — this file only
 * handles sizing and the scroll/table/checklist visuals.
 * ============================================================================ */

/* ── YAML viewer — wider + scrollable body ──────────────────────────────── */
#code-yaml {
    width: 820px;
    max-height: 760px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#code-yaml .zen-code__header {
    flex: 0 0 auto;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
#code-yaml #code-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}
#code-yaml #code-body::-webkit-scrollbar { width: 8px; }
#code-yaml #code-body::-webkit-scrollbar-track { background: transparent; }
#code-yaml #code-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
#code-yaml #code-body::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.5); }

#code-yaml .zen-code__line {
    padding: 1px 8px;
    font-size: 0.8rem;
    line-height: 1.55;
}

/* ── Side-panel — denser body + key/value fields table + checklist recap ── */
#side-panel {
    width: 460px;
    max-height: 760px;
    overflow-y: auto;
    padding: 18px 22px;
}
#side-panel .zen-side__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
#side-panel .zen-side__body {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Fields table (key / value rows) — mirrors module 06 */
#side-fields {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.8rem;
}
#side-fields td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}
#side-fields td:first-child {
    color: var(--cyan);
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    width: 38%;
    white-space: nowrap;
}
#side-fields td:last-child {
    color: var(--gray);
    line-height: 1.4;
}

/* Recap / checklist mode — green theme on the side panel */
#side-panel.checklist-mode {
    background: linear-gradient(145deg, #0f2a1e, #0d3320);
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 28px rgba(0, 230, 118, 0.12);
}
#side-panel.checklist-mode .zen-side__tag,
#side-panel.checklist-mode .zen-side__title {
    color: var(--green);
}
.side-checklist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    display: none;
}
.side-checklist li {
    padding: 8px 12px;
    margin: 6px 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
    background: rgba(0, 230, 118, 0.05);
    border-left: 3px solid var(--green);
    border-radius: 4px;
}
.side-checklist li::before {
    content: "✓ ";
    color: var(--green);
    font-weight: 700;
    margin-right: 6px;
}

/* ── Chain-of-trust boxes ───────────────────────────────────────────────── */
#chain-teleport, #chain-gpo, #chain-ntauth, #chain-smartcard {
    width: 200px;
    min-height: 120px;
    padding: 14px 12px;
}
#chain-teleport h3, #chain-gpo h3, #chain-ntauth h3, #chain-smartcard h3 {
    font-size: 0.95rem;
    letter-spacing: 0.6px;
}
#chain-teleport .sub, #chain-gpo .sub, #chain-ntauth .sub, #chain-smartcard .sub {
    font-size: 0.78rem;
    line-height: 1.35;
}

/* ── Chain badge — data-at positions it above smartcard box ─────────────── */
#chain-badge {
    position: absolute;
    z-index: 3;
    font-size: 0.8rem;
    padding: 5px 14px;
}
