/* ==========================================================================
   LatinosPC - Anti-Slip Mats 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;
    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 Dividers & Headings */
.sub_title {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0 1.25rem 0;
    line-height: 1.35;
    text-align: center;
}

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

.section-lead {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

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

/* Intro Description Paragraphs */
.intro-description {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.intro-description p {
    font-size: 1.025rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 0.9rem;
    text-align: left;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.feature-header strong {
    color: #1e3a8a;
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}

.feature-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-body .carousel-group {
    flex-shrink: 0;
    margin: 0;
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Thumbnail Styling */
.thumbnail-container {
    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 {
    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: 100px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Materials & Construction Callout */
.materials-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.materials-title {
    color: #14532d;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.materials-desc {
    color: #334155;
    font-size: 0.975rem;
    line-height: 1.65;
    margin: 0;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.15rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem 0;
}

.app-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

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

.app-card strong {
    color: #1e3a8a;
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

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

/* Considerations Grid */
.considerations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.15rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem 0;
}

.consideration-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

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

.consideration-card strong {
    color: #1e3a8a;
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

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

/* Callout & Conclusion Boxes */
.callout-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
    border-radius: 10px;
    padding: 1.15rem 1.35rem;
    margin: 1.25rem 0;
    color: #0369a1;
    font-size: 0.975rem;
    line-height: 1.65;
}

.conclusion-box {
    background: #fbfbfe;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.65;
}

/* Fieldset Grids */
.fieldset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.15rem;
    margin: 1.25rem 0;
}

fieldset {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin: 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: 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;
}

fieldset span {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
}

/* Callout Summary (Bottom Tips) */
.callout-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.75rem;
}

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

.summary-tip-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.55;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Research Footnote */
.research-footnote {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.footnote-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0 1rem 0;
}

.footnote-text,
.research-footnote h3 {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* Table styling for fallback */
table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

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

/* Backwards-compatible utility classes */
.colms2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

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

.spacer {
    height: 1rem;
}

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

.card2 {
    box-shadow: none;
}

.center {
    text-align: center;
}

/* Focus states for accessibility */
.selection:focus,
.selection_2:focus,
fieldset:focus,
.feature-card:focus,
.app-card:focus,
.consideration-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive Media Queries */
@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;
    }

    .features-grid,
    .applications-grid,
    .considerations-grid,
    .fieldset-grid,
    .colms2,
    .colms {
        grid-template-columns: 1fr;
    }

    .feature-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-text {
        text-align: left;
    }

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