/* ==========================================================================
   LatinosPC - Speakers and Subwoofers Stylesheet
   Simple, elegant styling following the clean site aesthetic
   ========================================================================== */

/* Main Container */
.article.fullbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* Page Heading */
.article.fullbar > a:first-of-type,
.article.fullbar > a h1 {
    text-decoration: none;
}

.article.fullbar h1 {
    color: #1e3a8a;
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin: 1.5rem 0 1.25rem 0;
    letter-spacing: -0.02em;
}

/* Headings & Section Dividers */
.sub_title,
.article h2,
.article h3 {
    color: #0f172a;
    font-weight: 700;
    margin: 1.5rem 0 0.85rem 0;
    line-height: 1.35;
}

.article h2 {
    font-size: 1.6rem;
}

.article h3,
.sub_title {
    font-size: 1.25rem;
}

.sub_title.center,
.article h2.center,
.article h3.center {
    text-align: center;
}

.spacer_shape {
    text-align: center;
    color: #1e3a8a;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Section Containers (Blurbs) */
.blurb {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.blurb p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
}

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

.borderdl {
    background: #f8fafc;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 1.15rem 1.25rem !important;
    margin-bottom: 1rem !important;
    break-inside: avoid;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.borderdl:hover,
.borderdl:focus {
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

dt,
dt.sub_sub_title {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.4rem 0;
    display: block;
    line-height: 1.4;
}

dd {
    margin: 0 !important;
    padding: 0 !important;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

dd.selection_2 {
    margin-top: 0 !important;
    padding: 0.25rem 0 0 0 !important;
}

/* Column Layouts */
.colms2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.colms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

/* Ordered & Unordered List Items */
ol.selection.colms,
ul.selection.colms {
    list-style: none;
    padding: 0;
    margin: 0;
}

ol.selection.colms li,
.article li.selection_2 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0 !important; /* Overrides legacy 10% spacing */
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

ol.selection.colms li:hover,
.article li.selection_2:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Fieldsets & Legends */
fieldset {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 0 0 1.5rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

legend {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
    padding: 0.35rem 0.95rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

legend h2,
legend h3 {
    margin: 0;
    font-size: inherit;
    color: inherit;
    display: inline;
}

/* Details & Collapsible Accordions */
details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    break-inside: avoid-column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

summary {
    background: #f8fafc;
    padding: 1rem 1.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

summary:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

details[open] summary {
    background: #eff6ff;
    color: #1d4ed8;
    border-bottom: 1px solid #e2e8f0;
}

details dl {
    padding: 1.25rem 1.35rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

details dl dt.borderdl {
    margin-bottom: 0.25rem !important;
}

/* Spans & Text Selection */
.selection_2 {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

.center {
    text-align: center;
}

/* Image Thumbnail & Modal Component */
.thumbnail-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.thumbnail-container:hover {
    transform: scale(1.03);
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.thumbnail-container img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bottom Table Adjustment */
table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .article.fullbar {
        padding: 0.75rem 0.5rem 2rem 0.5rem;
    }

    .blurb {
        padding: 1.25rem 1rem;
    }

    .article.fullbar h1 {
        font-size: 1.75rem;
    }

    .colms2,
    .colms {
        grid-template-columns: 1fr;
    }

    details dl {
        grid-template-columns: 1fr;
        padding: 1rem 0.75rem;
    }

    fieldset {
        padding: 1.25rem 1rem;
    }
}

/* ==========================================================================
   Shared Hardware Research Footnote (ChatGPT Preview 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;
}
