/* ==========================================================================
   LatinosPC - Desks Stylesheet
   Simple, elegant styling following the clean site aesthetic
   ========================================================================== */

/* Main Article 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;
    box-sizing: border-box;
}

/* 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;
}

/* Section Headings */
.sub_title {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.25rem 0 1rem 0;
    line-height: 1.35;
    text-align: center;
}

.sub_sub_title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.5rem 0;
    display: block;
    line-height: 1.4;
}

.sub_sub_sub_title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.6;
}

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

/* Section Dividers */
.spacer_double_lines {
    margin: 1.5rem 0;
    text-align: center;
}

.spacer_double_lines hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 4px auto;
    max-width: 90%;
}

.spacer {
    height: 1rem;
}

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

.back-peripherals-btn,
a.article.fullbar button.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.7rem 1.6rem;
    background: #eff6ff;
    color: #1e3a8a !important;
    border: 1px solid #bfdbfe;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.back-peripherals-btn:hover,
a.article.fullbar button.button:hover,
button.button:hover {
    background: #1e3a8a;
    color: #ffffff !important;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.22);
}

.back-arrow {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.back-peripherals-btn:hover .back-arrow,
a.article.fullbar button.button:hover .back-arrow,
button.button:hover .back-arrow {
    transform: translateX(-3px);
}

/* Handle inner text inside back button */
.back-peripherals-btn .spacer_double_lines,
button.button .spacer_double_lines {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 !important;
    color: inherit !important;
    font-weight: inherit;
    font-size: inherit;
    translate: none !important;
}

.back-peripherals-btn .spacer_double_lines hr,
button.button .spacer_double_lines hr {
    display: none !important;
}

/* Blurbs (Section Containers) */
.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);
    box-sizing: border-box;
}

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

.blurb p:last-child {
    margin-bottom: 0;
}

/* Grids */
.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;
}

/* Historical & User Level Cards */
.colms2 > p,
.colms > p {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.colms2 > p:hover,
.colms > p:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.selection_2 {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card2 {
    box-shadow: none;
}

/* Details & Summaries (Interactive Accordions) */
details.card2,
details.half_size,
details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

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

summary {
    background: #f8fafc;
    padding: 0.9rem 1.25rem;
    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;
}

summary .sub_sub_title,
summary dt {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

details ul {
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

details ul li {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Toggle Details Button */
.button_common_types {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem 0 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.button_common_types:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

/* Fieldsets & Legends */
fieldset {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.25rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

legend {
    font-size: 1rem;
    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;
}

fieldset p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

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

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

table h3 {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    font-style: italic;
    margin: 0;
}

table hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 0.5rem 0;
}

/* Focus states for accessibility */
.selection:focus,
.selection_2:focus,
fieldset:focus,
details:focus,
summary:focus,
.back-peripherals-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

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

    .blurb {
        padding: 1.25rem 1rem;
    }

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

    .sub_title {
        font-size: 1.3rem;
    }

    .spacer_shape {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   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;
}
