/* ==========================================================================
   LatinosPC - Ergonomic & Computer Chairs Guide Stylesheet
   Preserving the distinctive soul of chair.css (seafoam/aquamarine mint cards,
   coral/rose badges, warm wheat hover/focus highlights, skyblue tier legends)
   with simple, modern elegance and responsive site harmony.
   ========================================================================== */

:root {
    --chair-primary: #1e3a8a;
    --chair-secondary: #0d9488;
    --chair-text-main: #1e293b;
    --chair-text-muted: #475569;
    
    /* Soul Colors: Mint / Aquamarine Card Foundation */
    --chair-mint-bg: rgba(204, 251, 241, 0.42);
    --chair-mint-card: linear-gradient(145deg, rgba(204, 251, 241, 0.45) 0%, rgba(240, 253, 250, 0.7) 100%);
    --chair-mint-border: rgba(45, 212, 191, 0.45);
    --chair-mint-border-hover: rgba(20, 184, 166, 0.7);
    --chair-mint-shadow: 0 4px 18px rgba(15, 118, 110, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    
    /* Soul Colors: Coral / Crimson Badges & Selection */
    --chair-coral-pill-bg: rgba(254, 205, 211, 0.65);
    --chair-coral-pill-text: #9f1239;
    --chair-coral-pill-border: rgba(244, 63, 94, 0.35);
    --chair-coral-active: #be123c;
    
    /* Soul Colors: Warm Wheat / Golden Cream Accents */
    --chair-wheat-text: #fffbeb;
    --chair-wheat-hover: #fef3c7;
    
    /* Soul Colors: Skyblue Legend Badge */
    --chair-legend-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --chair-legend-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    
    /* Soul Colors: Deep Blue & Cyan Drawer Hover Gradient */
    --chair-drawer-hover: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
}

/* Main Container */
.article.fullbar.chair-guide,
.chair-guide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3.5rem 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--chair-text-main);
    box-sizing: border-box;
}

/* Back to Peripherals Navigation Button */
.back-peripherals-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 1.75rem 0;
    text-align: center;
}

.back-peripherals-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1.6rem;
    background: #f0fdfa;
    color: #0f766e !important;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.back-peripherals-btn:hover {
    background: #0f766e;
    color: #ffffff !important;
    border-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
}

.back-peripherals-btn .btn-arrow {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.back-peripherals-btn:hover .btn-arrow {
    transform: translateX(-3px);
}

/* Page Hero Header */
.chair-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.chair-hero a,
.article.fullbar.chair-guide > a:first-of-type,
.article.fullbar.chair-guide > a h1 {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.chair-hero h1,
.article.fullbar h1#chair,
#chair h1,
#chair {
    color: var(--chair-primary);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin: 0.5rem 0 1.25rem 0;
    letter-spacing: -0.025em;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.chair-hero a:hover h1,
.chair-hero a:focus h1 {
    color: #2563eb;
    cursor: pointer;
}

/* Section Headings */
.chair-section {
    margin-bottom: 3rem;
}

.chair-guide h1,
.chair-guide h2,
.chair-guide h3,
.chair-section h2,
.chair-section h3 {
    font-family: inherit;
}

.sub_title {
    font-family: inherit;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    margin: 1.75rem 0 0.85rem 0;
    letter-spacing: -0.015em;
}

.sub_title_lead {
    font-family: inherit;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--chair-text-muted);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.sub_sub_title {
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--chair-primary);
    text-align: center;
    margin: 0.75rem 0 1rem 0;
}

.spacer_shape {
    margin-bottom: 1.25rem;
}

.space {
    margin-bottom: 1.25rem;
}

/* 2-Column Responsive Layout Grid */
.colms2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0;
}

/*(-.-)Zzz...--|c[_]|--☁【ツ】☁--|c[_]|--\(^-^)/--|c[_]|--(╯°□°）╯ ︵ ┻━┻ **`ღ´***/

/* The Mint/Aquamarine Cards (Preserved & Elevated) */
.element,
fieldset {
    background: var(--chair-mint-card);
    background-color: var(--chair-mint-bg);
    padding: 1.25rem 1.4rem;
    margin: 0;
    border-radius: 18px;
    box-shadow: var(--chair-mint-shadow);
    border: 1px solid var(--chair-mint-border);
    list-style: none;
    break-inside: avoid;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.element:hover,
fieldset:hover {
    border-color: var(--chair-mint-border-hover);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.element.element-full {
    margin-top: 1rem;
}

.element li {
    break-inside: avoid;
    list-style: none;
}

/* The Signature Coral/Rose Pill Badges (Preserved & Elevated) */
.element strong,
.over_overlay {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--chair-coral-pill-text);
    background-color: var(--chair-coral-pill-bg);
    border: 1px solid var(--chair-coral-pill-border);
    border-radius: 999px;
    padding: 0.3rem 0.95rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 3px rgba(159, 18, 57, 0.08);
}

/* The Signature Warm Wheat & Coral Hover/Focus Interaction (Preserved & Elevated) */
.element li p,
dd {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #334155;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin: 0 0 0.45rem 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    outline: none;
}

.element li p:hover,
dd:hover {
    background-color: var(--chair-coral-active);
    color: var(--chair-wheat-text) !important;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(190, 18, 60, 0.25);
    transform: translateX(4px);
}

.element li p:focus,
dd:focus {
    /* Selected text stays highlighted */
    background-color: var(--chair-coral-active);
    color: var(--chair-wheat-text) !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.35), 0 3px 12px rgba(190, 18, 60, 0.25);
    border-radius: 10px;
    cursor: pointer;
    outline: none;
}

/*(-.-)Zzz...--|c[_]|--☁【ツ】☁--|c[_]|--\(^-^)/--|c[_]|--(╯°□°）╯ ︵ ┻━┻ **`ღ´***/

/* Definition Lists */
dl {
    margin: 0;
    padding: 0;
}

dl dt,
.tier-dl dt,
legend dt {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.85rem 0 0.35rem 0;
}

dl dt:first-child,
.tier-dl dt:first-child {
    margin-top: 0.25rem;
}

dl dd,
.tier-dl dd {
    margin: 0 0 0.4rem 0.5rem;
    padding-left: 0.75rem;
    position: relative;
}

dd::before {
    content: "• ";
    color: var(--chair-secondary);
    font-weight: 700;
    margin-right: 0.35rem;
}

/* User Tier Fieldsets & Skyblue Legend (Preserved & Elevated) */
fieldset.tier-card,
fieldset.curiosity-card {
    position: relative;
    padding-top: 1.5rem;
}

article legend,
fieldset legend {
    background: var(--chair-legend-gradient);
    color: #ffffff;
    padding: 0.45rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--chair-legend-shadow);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 auto;
    text-align: center;
}

legend dt {
    color: #ffffff !important;
    display: inline;
    margin: 0;
}

/* Callout Box - Compact & Tiny */
.chair-callout-card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    align-self: center;
    justify-self: center;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(254, 249, 195, 0.75) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
    box-sizing: border-box;
    text-align: left;
    margin: 1rem auto;
}

.chair-callout-card .callout-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}

.chair-callout-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #92400e;
    font-weight: 500;
    margin: 0;
}

/*(-.-)Zzz...--|c[_]|--☁【ツ】☁--|c[_]|--\(^-^)/--|c[_]|--(╯°□°）╯ ︵ ┻━┻ **`ღ´***/

/* Collapsible Interactive Drawers (Preserved & Elevated) */
.chair-drawers {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0;
}

details.overlay {
    background: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

details.overlay[open] {
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.08);
}

summary.overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.35) 0%, rgba(240, 253, 250, 0.7) 100%);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: all 0.25s ease;
}

summary.overlay::-webkit-details-marker {
    display: none;
}

summary.overlay::after {
    content: "▼";
    font-size: 0.85rem;
    color: var(--chair-secondary);
    transition: transform 0.3s ease;
}

details.overlay[open] > summary.overlay::after {
    transform: rotate(180deg);
}

summary.overlay:hover {
    background: var(--chair-drawer-hover);
    color: var(--chair-wheat-hover);
}

summary.overlay:hover::after {
    color: var(--chair-wheat-hover);
}

details.overlay ul.element {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 1rem 1.4rem 1.25rem 1.4rem;
}

/* Summary Box & Outro Notes */
.chair-summary-box {
    margin: 1.75rem auto 1rem auto;
    text-align: center;
    max-width: 950px;
}

.chair-summary-box .sub_sub_title {
    color: var(--chair-text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.chair-section-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin: 0.5rem auto 1.25rem auto;
    border: 1px solid #bae6fd;
}

.outro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--chair-text-muted);
    font-weight: 500;
    text-align: center;
    max-width: 900px;
    margin: 1.5rem auto 0 auto;
}

/* Research Footnote (Standardized ChatGPT Disclaimer) */
.research-footnote {
    margin: 2.5rem auto 1.5rem auto;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
    box-sizing: border-box;
    clear: both;
}

.footnote-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem auto 1rem auto;
    max-width: 100%;
}

.footnote-text,
.research-footnote h3,
.research-footnote p {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    font-style: italic;
    font-family: inherit;
    text-align: center;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article.fullbar.chair-guide {
        padding: 0.75rem 1rem 2.5rem 1rem;
    }
    
    .chair-hero h1 {
        font-size: 1.85rem;
    }
    
    .sub_title {
        font-size: 1.3rem;
    }
    
    .colms2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .element,
    fieldset {
        padding: 1rem 1.15rem;
    }
    
    summary.overlay {
        font-size: 1.05rem;
        padding: 0.85rem 1.15rem;
    }
}
