:root {
    /* Color Palette - Premium Bench Instrument Aesthetic */
    --bg-main: #f4f6f8;         /* Anti-glare soft background gray */
    --bg-card: #ffffff;         /* Crisp white for active content separation */
    --text-primary: #1a1f2c;    /* Deep charcoal for excellent text readability */
    --text-secondary: #5c6470;  /* Subdued slate for meta-text and subtitles */
    --accent-blue: #0056b3;     /* Trustworthy industrial link/action color */
    --accent-hover: #003d80;    /* Darker blue for active hover states */
    --border-color: #e2e8f0;    /* Clean, non-distracting dividers */
    --alert-bg: #fff9e6;        /* Soft amber tint for critical batch/status updates */
    --alert-border: #d99b00;    /* Defined amber border */
    
    /* Typography Stack */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Document Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Main Layout Framework */
#contentcontainer {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

#content {
    width: 100%;
    max-width: 1000px; /* Restricts maximum desktop stretch to keep reading lines comfortable */
    margin: 0 auto;
}

/* Structural Dividers */
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Global Link Interfacing */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Product Card Isolation (Handles active/background separation) */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Typography & Titles Override (Normalizing the inline PT metrics safely) */
.product-title-area h2 {
    font-size: 1.85rem !important; /* Dynamically sizes down beautifully on mobile scales */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.product-title-area p {
    font-size: 1.15rem !important;
    color: var(--text-secondary);
    margin: 0;
}

/* Production/Status Broadcast Callout Box */
div[style*="background-color: #fff3cd"] {
    background-color: var(--alert-bg) !important;
    border-left: 4px solid var(--alert-border) !important;
    color: #7a5300 !important;
    padding: 1.25rem !important;
    font-size: 0.95rem;
    border-radius: 0 6px 6px 0;
    margin: 1.5rem 0 !important;
}

/* Lists and Hierarchies */
.product-description ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.product-description li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-description li ul {
    margin-top: 0.4rem;
    list-style-type: circle;
}

/* Technical Specification Tables */
table[style*="border-collapse: collapse"] {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px;
    overflow: hidden;
    margin: 2rem 0 !important;
}

th {
    background-color: #f8fafc !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem !important;
    border-bottom: 2px solid var(--border-color) !important;
}

td {
    padding: 0.85rem 1rem !important;
    border: 1px solid var(--border-color) !important;
    font-size: 0.95rem;
    vertical-align: middle;
}

tr:nth-child(even) {
    background-color: #fdfefe; /* Soft zebra tinting for tracking columns easily */
}

/* Responsive Blockquotes */
blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--text-secondary);
    margin: 1.5rem 0;
    padding: 1.2rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}

/* Embedded Media Containers (Prevents YouTube overflow) */
.video-container {
    max-width: 100% !important;
    width: 100%;
}

/* Mobile & Tablet Adaptation Viewport Rules */
@media (max-width: 768px) {
    body {
        font-size: 15px; /* Tiny adjustment downward for optimal mobile viewport reading density */
    }

    .product-card {
        padding: 1.5rem; /* Shrinks white padding on tight mobile screens to maximize screen space */
        margin: 1rem 0;
    }

    .product-title-area h2 {
        font-size: 1.5rem !important;
    }

    /* Convert structural spec tables into fluid, vertical block rows on mobile */
    table[style*="border-collapse: collapse"], 
    table[style*="border-collapse: collapse"] tbody, 
    table[style*="border-collapse: collapse"] tr, 
    table[style*="border-collapse: collapse"] td {
        display: block;
        width: 100%;
    }

    table[style*="border-collapse: collapse"] tr {
        border-bottom: 2px solid var(--border-color);
        padding: 0.5rem 0;
    }

    table[style*="border-collapse: collapse"] td {
        border: none !important;
        padding: 0.4rem 0.5rem !important;
    }

    table[style*="border-collapse: collapse"] td:first-child {
        font-weight: bold;
        background-color: #f8fafc;
        font-size: 0.85rem;
        text-transform: uppercase;
        color: var(--text-secondary);
    }
}
