/* ==========================================================================
   QUICK SWING — Admin Guide Page  (appearance_page_qs-guide)
   ========================================================================== */

.qs-gd-wrap { max-width: 1200px; }

/* ── Header ── */
.qs-gd-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 18px 24px;
    margin-bottom: 12px;
}
.qs-gd-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #00aa88;
    color: #fff;
    font-weight: 900;
    font-size: .95rem;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .04em;
}
.qs-gd-title h1 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.qs-gd-title p  { margin: 3px 0 0; color: #777; font-size: .76rem; }
.qs-gd-warn { color: #d63638; font-weight: 600; }
.qs-gd-header-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }

/* ── Stats strip ── */
.qs-gd-stats {
    display: flex;
    gap: 1px;
    background: #dcdcde;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.qs-gd-stat {
    flex: 1;
    background: #fff;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.qs-gd-stat-n {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00aa88;
    line-height: 1;
    font-family: monospace;
}
.qs-gd-stat-l {
    font-size: .65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-align: center;
}

/* ── Nav bar ── */
.qs-gd-nav {
    position: sticky;
    top: 32px;
    z-index: 100;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 0 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}
.qs-gd-nav a {
    display: block;
    padding: 11px 13px;
    font-size: .72rem;
    font-weight: 600;
    font-family: monospace;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    letter-spacing: .02em;
}
.qs-gd-nav a:hover { color: #00aa88; border-bottom-color: #00aa88; }

/* ── Sections ── */
.qs-gd-section {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 22px 24px;
    margin-bottom: 16px;
    scroll-margin-top: 58px;
}

.qs-gd-section-head { margin-bottom: 16px; }
.qs-gd-section-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin: 0 0 8px;
    flex-wrap: wrap;
}
.qs-gd-section-head > p { margin: 0; color: #666; font-size: .82rem; line-height: 1.55; }

.qs-gd-num {
    font-family: monospace;
    font-size: .62rem;
    font-weight: 700;
    color: #fff;
    background: #00aa88;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.qs-gd-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    background: #e0f7f4;
    color: #00795c;
    border-radius: 9px;
    font-size: .62rem;
    font-weight: 700;
    font-family: monospace;
    vertical-align: middle;
}

/* ── Subhead inside section ── */
.qs-gd-subhead {
    font-size: .88rem;
    color: #333;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── Two-column layout ── */
.qs-gd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ── Tables ── */
.qs-gd-table { font-size: .82rem; }
.qs-gd-table code {
    font-size: .76rem;
    background: #f6f7f7;
    padding: 1px 5px;
    border-radius: 3px;
}
.qs-gd-muted { color: #888; }

/* Column widths */
.qs-gd-table .col-title  { width: 22%; }
.qs-gd-table .col-slug   { width: 26%; }
.qs-gd-table .col-cat    { width: 22%; }
.qs-gd-table .col-block  { width: 28%; }
.qs-gd-table .col-css    { width: 28%; }
.qs-gd-table .col-src    { width: 8%; }
.qs-gd-table .col-opt-label { width: 18%; }
.qs-gd-table .col-opt-key   { width: 24%; }
.qs-gd-table .col-opt-val   { width: 14%; }
.qs-gd-table .col-opt-def   { width: 10%; }
.qs-gd-table .col-sc    { width: 22%; }
.qs-gd-table .col-sc-ctx{ width: 15%; }
.qs-gd-table .col-sc-dep{ width: 12%; }

/* Changed option value */
.qs-gd-val-changed { color: #0073aa !important; font-weight: 700; }

/* ── Pattern category badges ── */
.qs-gd-cat {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: .66rem;
    font-weight: 500;
    background: #f0f0f1;
    color: #555;
    margin: 1px 2px 1px 0;
    white-space: nowrap;
}
.qs-gd-cat--pages   { background: #e8f5e9; color: #2e7d32; }
.qs-gd-cat--hero    { background: #e3f2fd; color: #1565c0; }
.qs-gd-cat--cta     { background: #fff3e0; color: #e65100; }
.qs-gd-cat--pricing { background: #f3e5f5; color: #6a1b9a; }
.qs-gd-cat--contenu { background: #fce4ec; color: #880e4f; }
.qs-gd-cat--general { background: #e0f7f4; color: #00695c; }

/* ── Block style source badges ── */
.qs-gd-src {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: .65rem;
    font-weight: 600;
    font-family: monospace;
}
.qs-gd-src--php  { background: #e3f2fd; color: #1565c0; }
.qs-gd-src--json { background: #f3e5f5; color: #6a1b9a; }

/* ── Note under block styles table ── */
.qs-gd-note {
    font-size: .76rem;
    color: #888;
    margin: 8px 0 0;
    padding: 10px 14px;
    background: #f6f7f7;
    border-radius: 3px;
    line-height: 1.7;
}

/* ── Style variations grid ── */
.qs-gd-var-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.qs-gd-var {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 130px;
}
.qs-gd-var-grid--sm .qs-gd-var { min-width: 110px; }
.qs-gd-var-top { display: flex; align-items: center; gap: 6px; }
.qs-gd-var strong { font-size: .82rem; color: #333; }
.qs-gd-var code   { font-size: .68rem; color: #999; background: none; padding: 0; }
.qs-gd-var-tag    { font-size: .75rem; }

/* ── Shortcode plugin status ── */
.qs-gd-plugin-ok { color: #2e7d32; font-size: .72rem; font-weight: 600; }
.qs-gd-plugin-ko { color: #d63638; font-size: .72rem; font-weight: 600; }

/* ── Footer ── */
.qs-gd-footer {
    text-align: center;
    color: #bbb;
    font-size: .72rem;
    padding: 16px 0 4px;
}

/* ── Responsive ── */
@media ( max-width: 1100px ) {
    .qs-gd-two-col { grid-template-columns: 1fr; }
}
@media ( max-width: 782px ) {
    .qs-gd-header { flex-wrap: wrap; }
    .qs-gd-header-actions { margin-left: 0; }
    .qs-gd-stats { flex-wrap: wrap; }
    .qs-gd-stat  { min-width: 30%; }
    .qs-gd-nav a { padding: 9px 10px; font-size: .68rem; }
}
