/* ============================================================
   bearings-common.css — Shared styles for bearings section
   Consolidated from inline <style> blocks and local CSS copies
   ============================================================ */

/* === LAYOUT === */
.customify-container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 16px;
}
.page-titlebar {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.content-inner {
    background: #fff;
    border: 1px solid #ecf1f2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    padding: 20px;
}
.site-content {
    padding: 20px 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
}
.has-text-align-center {
    text-align: center;
}
a.inline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* === SEPARATOR === */
.wp-block-separator {
    border: none;
    height: 1px;
    background: #ecf1f2;
    margin: 16px 0;
}
hr.wp-block-separator {
    border: none;
    height: 1px;
    background: #ecf1f2;
    margin: 16px 0;
}

/* === SPACERS === */
.spacer-20 {
    height: 20px;
}
.wp-block-spacer {
    clear: both;
}

/* === IMAGES & FIGURES === */
figure.aligncenter {
    margin: 12px auto;
    text-align: center;
}
figure.aligncenter figcaption {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}
.img-resp {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* === MEDIA ROWS (horizontal illustration rows) === */
.media-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}
.img-frame {
    width: clamp(240px, 32vw, 300px);
    height: clamp(200px, 26vw, 240px);
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin: 0;
}
.img-frame > img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

/* === SERIES BUTTONS (pills) === */
.series-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 8px 0 4px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #235787;
    text-decoration: none;
    line-height: 1;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease, transform .05s ease-in-out, box-shadow .2s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    white-space: nowrap;
}
.btn:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
}
.btn:active {
    transform: translateY(1px);
}
.btn.is-disabled {
    color: #9aa3af;
    cursor: default;
    pointer-events: none;
    background: #f5f6f7;
}

/* === TABLES (dimension tables) === */
.wp-block-table {
    overflow-x: auto;
    margin: 16px 0;
}
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}
.wp-block-table table td,
.wp-block-table table th {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: center;
}
.wp-block-table table th {
    background: #f9fafb;
    font-weight: 600;
}

/* === LISTS === */
.wp-block-list {
    padding-left: 20px;
}
.wp-block-list li {
    margin-bottom: 4px;
}

/* === QUOTES === */
.wp-block-pullquote {
    font-size: 1.5em;
    line-height: 1.6;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

/* === SPECS GRID (used on some pages) === */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.spec-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    background: #fafafa;
}
.spec-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #235787;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .content-inner {
        padding: 12px;
    }
    .media-row {
        gap: 12px;
    }
    .img-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }
    .series-buttons {
        gap: 6px 8px;
    }
    .btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}
