/* ============================================
 * Setup Guides & Info Pages
 * ============================================ */
.setup-guide { max-width: 780px; margin: 0 auto; }
.setup-guide h2 { font-size: 1.25rem; font-weight: 700; color: var(--black); margin: 0 0 0.75rem; }
.setup-guide h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.setup-guide p { color: var(--gray-700); line-height: 1.7; }

/* Notice box */
.setup-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0,128,128,0.06), rgba(0,128,128,0.02));
    border: 1px solid rgba(0,128,128,0.15);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}
.setup-notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.15rem; }
.setup-notice p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* Device grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}
.device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s;
}
.device-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0,128,128,0.12);
    transform: translateY(-2px);
}
.device-card img { max-width: 120px; max-height: 90px; object-fit: contain; }
.device-icon-placeholder {
    font-size: 3rem; line-height: 1; height: 90px;
    display: flex; align-items: center; justify-content: center;
}
.device-label { font-size: 0.85rem; font-weight: 600; text-align: center; color: var(--gray-700); }

/* Divider */
.setup-divider { border: none; border-top: 1px solid var(--gray-200); margin: 2.5rem 0; }

/* Table */
.setup-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}
.setup-table th {
    text-align: left; padding: 0.6rem 1rem;
    background: var(--gray-100); font-weight: 600;
    color: var(--gray-700); border-bottom: 2px solid var(--gray-200);
}
.setup-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.setup-table tr:hover td { background: rgba(0,128,128,0.02); }
.setup-table code {
    background: var(--gray-100); padding: 0.15rem 0.4rem;
    border-radius: 4px; font-size: 0.85rem; font-weight: 600;
    color: var(--teal-dark);
}

/* Code block */
.setup-code {
    background: var(--gray-900, #1a1a1a); color: #4ade80;
    padding: 1rem 1.25rem; border-radius: var(--radius-md);
    font-size: 0.8rem; overflow-x: auto;
    margin: 0.75rem 0 1.5rem; line-height: 1.6;
}

/* Steps — light style */
.setup-step {
    position: relative;
    margin: 0;
    padding: 1.25rem 0 1.25rem 3.25rem;
    border-bottom: 1px solid var(--gray-150, #eee);
}
.setup-step:last-of-type { border-bottom: none; }
.setup-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.setup-step-number {
    position: absolute;
    left: 0;
    top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.setup-step h2 { margin: 0; font-size: 1.1rem; }
.setup-step ol, .setup-step ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.setup-step li { margin: 0.3rem 0; line-height: 1.6; color: var(--gray-700); font-size: 0.92rem; }
.setup-step p { font-size: 0.92rem; margin: 0.4rem 0; }
.setup-step code {
    background: var(--gray-100); padding: 0.15rem 0.4rem;
    border-radius: 4px; font-size: 0.85rem; font-weight: 600;
}
.setup-code-inline {
    display: inline-block; background: var(--gray-100);
    padding: 0.3rem 0.6rem; border-radius: 4px;
    font-size: 0.8rem; font-weight: 600;
    word-break: break-all; margin: 0.25rem 0;
    color: var(--teal-dark);
}

/* Details/summary */
.setup-details {
    margin-top: 0.75rem; padding: 0.75rem 1rem;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}
.setup-details summary { cursor: pointer; font-weight: 600; color: var(--teal-dark); font-size: 0.9rem; }
.setup-details summary:hover { color: var(--teal); }
.setup-details[open] summary { margin-bottom: 0.5rem; }

/* Tabs */
.setup-tabs {
    display: flex; gap: 0.25rem; margin: 0.75rem 0 0;
    padding: 0.25rem; background: var(--gray-100);
    border-radius: var(--radius-lg);
}
.setup-tab {
    flex: 1; padding: 0.5rem 1rem;
    border: none; border-radius: var(--radius-md);
    background: transparent; font-family: inherit;
    font-size: 0.85rem; font-weight: 500;
    color: var(--gray-600); cursor: pointer; transition: all 0.2s;
}
.setup-tab:hover { color: var(--black); background: rgba(255,255,255,0.5); }
.setup-tab.active {
    background: var(--white); color: var(--black);
    font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.setup-tab-panel { display: none; padding: 1rem 0 0; }
.setup-tab-panel.active { display: block; }

/* Help box */
.setup-help {
    margin-top: 1.5rem; padding: 1rem 1.25rem;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
}
.setup-help p { margin: 0; font-size: 0.9rem; color: var(--gray-600); }
.setup-help a { color: var(--teal); }

/* Mobile */
@media (max-width: 640px) {
    .device-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .device-card { padding: 1rem 0.75rem; }
    .device-card img { max-width: 80px; max-height: 60px; }
    .setup-step { padding-left: 2.75rem; }
    .setup-step-number { width: 28px; height: 28px; font-size: 0.8rem; }
    .setup-tabs { flex-wrap: wrap; }
    .setup-tab { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
}
