/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Theme Variables */
:root {
    --background: #EFEFEF;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
    --surface-light: rgba(0, 0, 0, 0.03);
    --surface-dark: #1E2331;
    --primary: #5C7FAD;
    --primary-hover: #4A7BBF;
    --secondary: #5C7FAD;
    --accent: #9772DE;
    --success: #4ADE80;
    --border: rgba(0, 0, 0, 0.1);
    --logo-primary: #6298E0;
    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* Effects */
    --blur-sm: blur(2px);
    --blur-md: blur(12px);
    --blur-lg: blur(16px);
    --tm-module-color-general: #2f79cb;
    --tm-module-color-er: #ed8b39;
    --tm-module-color-data-plus: #ad4dc7;
    --tm-module-color-enviro: #c09767;
    --tm-module-color-suppliers: #837ee5;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;

}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary) !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* background-image: url('/images/5585664.jpg');
    background-repeat: no-repeat;
    background-size: cover; */
}

h3 {
    font-size: 1rem;
    color: var(--text-primary) !important;
}
/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* padding: 0.75rem 1.5rem; */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .btn i {
        font-size: 0.875rem;
    }

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(98, 152, 224, 0.25);
}

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(98, 152, 224, 0.3);
    }

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        background: var(--surface-hover);
    }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .btn-outline:hover {
        background: var(--surface-light);
    }

.btn-large {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 12px rgba(98, 152, 224, 0.2);
}

    .btn-large:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(98, 152, 224, 0.25);
    }

/* Navigation */
.top-nav {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--logo-primary);
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

    .search-container input {
        width: 100%;
        height: 36px;
        padding: 0 2.5rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 6px;
        font-family: 'Poppins', sans-serif;
        font-size: 0.875rem;
        color: var(--text-primary);
    }

    .search-container i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 0.875rem;
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle, .unit-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
#unitSwitch {
    background-color: white;
}

    .theme-toggle:hover, .unit-switch:hover {
        background: var(--surface-hover);
        border-color: var(--primary);
    }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

    .breadcrumb a {
        color: var(--text-secondary);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: var(--primary);
        }

    .breadcrumb i {
        font-size: 0.75rem;
    }

/* Material Header */
.material-title {
    position: relative;
    padding: 2rem 1rem;
    margin: 0 0 0 0;
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 50%, transparent 100%);
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .material-title h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: 2rem;
        font-weight: 600;
        margin: 0;
        color: var(--text-primary);
        margin-right: 0.5rem;
    }

.standard-badge {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Material Tags */
.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

    .tag:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        background: var(--surface-light);
    }

    .tag i {
        color: var(--primary);
    }

/* Material Description */
.material-description {
    max-width: 90%;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.975rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 16px;
}

.access-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6a5acd, #8a79ff);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: pulse 1.5s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.download {
    color: white;
    background: var(--primary);
}

.access-button i {
    margin-right: 8px;
    font-size: 1.2em;
    color: inherit;
}

.access-button:hover {
    box-shadow: 0px 4px 10px rgba(106, 90, 205, 0.5);
    transform: translateY(-2px);
}

/* Property Cards Grid */
.property-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

/* Property Cards */
.property-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    transform-origin: center;
}

    .property-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .property-card i {
        color: var(--primary);
        font-size: 1.25rem;
    }

.property-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.property-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.property-icon {
    width: 40px;
    height: 40px;
    background: var(--surface-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
    display: none;
}

.value-range {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.temp-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--surface-light);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    background: var(--background);
    z-index: 90;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(8px);
}

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

.nav-tab {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    margin: 0 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

    .nav-tab:hover {
        color: var(--primary);
    }

    .nav-tab.active {
        color: var(--primary);
        font-weight: 600;
        border-bottom-color: var(--primary);
    }

    .nav-tab::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-tab.active::after {
        transform: scaleX(1);
    }

/* Tab Content */
.tab-content {
    margin-bottom: 0.5rem;
    scroll-margin-top: 150px;
}

/* Material Layout */
.material-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.material-left-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Main Content Area */
.property-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

/* .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    margin-left: -1rem;
    border-bottom: 1px solid var(--border);
    /*padding-bottom: 1r
} */


.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Premium Content */
.premium {
    position: relative;
}

    .premium .blur {
        filter: var(--blur-sm);
        opacity: 0.5;
    }

.premium-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, #b57bff 100%);
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(151, 114, 222, 0.3);
    animation: pulse 2s infinite;
    letter-spacing: 0.3px;
}

    .premium-badge i {
        color: rgba(255, 255, 255, 0.9);
        animation: bounce 1s infinite;
    }

/* Chemical Composition Table */
.composition-table {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

    .table-row.header {
        background: linear-gradient(90deg, var(--surface-light) 0%, rgba(98, 152, 224, 0.05) 100%);
        font-weight: 500;
        color: var(--text-secondary);
    }

    .table-row:last-child {
        border-bottom: none;
    }

    .table-row:hover {
        background: rgba(98, 152, 224, 0.02);
    }

.cell {
    padding: 0.5rem;
    border: none;
    margin-top: auto;
    margin-bottom: auto;
}

.element {
    display: flex;
    flex-direction: column;
}

.element-symbol {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.element-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.standard-ref {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Sidebar */
.sidebar {
    /*position: sticky;*/
    top: 2rem;
    align-self: start;
}

.material-side-column {
    width: 370px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.tracker-container {
    width:100%;
    position: static;
    top: auto;
    align-self: start;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 92%, rgba(98, 152, 224, 0.08) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.premium-features {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 90%, rgba(98, 152, 224, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

    .premium-features h3 {
        align-items: flex-start;
        gap: 0.85rem;
        margin: 0 0 0.65rem;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.55;
        color: #373F4E;
        letter-spacing: 0;
    }

    .premium-features h3 img {
        width: 65px;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .premium-features h4 {
        margin: 0 0 1.1rem;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.55;
        color: #435065;
    }

.premium-features .feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

    .premium-features .feature-list > p {
        margin: 0 0 0.15rem;
        color: #5C7FAD;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.4;
    }

.premium-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #435065;
    font-size: 0.875rem;
    line-height: 1.55;
}

    .premium-features .feature-item span {
        white-space: normal;
    }

    .premium-features .feature-item i {
        color: var(--success);
        flex-shrink: 0;
        margin-top: 0.3rem;
        font-size: 0.75rem;
    }

/* Data Verification */
.data-verification {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

    .data-verification h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

.verification-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

    .verification-item i {
        color: var(--primary);
    }

/* Counters */
.counters {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 0.15rem;
}

    .counters li {
        border-radius: 6px;
        padding: 0.25rem 1rem;
        font-size: 0.875rem;
        color: var(--text-secondary);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        margin: 0.1rem;
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
        box-sizing: border-box;
        color: rgb(33, 37, 41);
        display: flex;
        font-family: "IBM Plex Sans", sans-serif;
        font-size: 13px;
        font-weight: 400;
        height: 22px;
        line-height: 19.5px;
        list-style-image: none;
        list-style-position: outside;
        list-style-type: none;
        text-align: left;
        text-size-adjust: 100%;
        unicode-bidi: isolate;
        padding-left: 0;
        padding-right: 0;
        column-gap: 1rem;
        ;
    }

        .counters li span {
            font-weight: 600;
            margin-right: 0.25rem;
            flex: 2;
            white-space: nowrap;
            text-decoration: underline;
        }

            .counters li span:first-child {
                flex: 1;
                white-space: nowrap;
                text-align: right;
                text-decoration: none;
            }

    .counters strong {
        font-weight: 600;
        margin-left: 0.25rem;
    }

.tracker-container .counters {
    margin: 0;
}

.tracker-container .counters li {
    height: auto;
    min-height: 30px;
    padding: 0.4rem 0;
    margin: 0;
    column-gap: 0;
}

.tracker-container .counters li span {
    text-decoration: none;
}

.tracker-container .counters li span:first-child {
    flex: 0 0 34px;
    text-align: center;
    font-size: 0.95rem;
}

.tracker-container .counters li span:last-child {
    flex: 1 1 auto;
    white-space: normal;
    line-height: 1.35;
    margin-right: 0.75rem;
}

.tracker-container .counters hr {
    margin: 0.35rem 0;
    opacity: 0.12;
}

.tracker-container .counters li .d-flex {
    width: 100%;
    align-items: center;
}

    .tracker-container .counters li .d-flex::after {
        content: "\ec02";
        font-family: 'totalmateria';
        font-size: 0.9rem;
        color: #8a9ab5;
        margin-left: auto;
        flex-shrink: 0;
        line-height: 1;
        padding-right: 0.5rem;
    }

.tracker-container .counters li .d-flex.counter-unlocked::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    padding-right: 0;
    font-size: 0;
    color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%234ADE80'%3E%3Cpath d='M240-160h480v-400H240v400Zm296.5-143.5Q560-327 560-360t-23.5-56.5Q513-440 480-440t-56.5 23.5Q400-393 400-360t23.5 56.5Q447-280 480-280t56.5-23.5ZM240-160v-400 400Zm0 80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h280v-80q0-83 58.5-141.5T720-920q83 0 141.5 58.5T920-720h-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80h120q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.into-mat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.utility-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom:3rem;
}

.material-title-standard {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .mat-header-demo-btn {
    display:inline-block;
    white-space:nowrap;
    }
    .material-layout {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .material-side-column {
        width: 100%;
        gap: 1rem;
    }

    .material-left-column {
        gap: 1.5rem;
    }

    /* Additional responsive adjustments */
    .sidebar {
        position: static;
    }

    .tracker-container {
        position: static;
        margin-top: 1rem;
    }

    .counters {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-content {
        margin-top: 1rem;
    }

    .tracker-container {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
        max-width: none;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .property-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

        .action-buttons .btn {
            width: 100%;
        }

    .nav-tabs {
        gap: 1rem;
        overflow-x: auto;
    }

    .material-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .into-mat-info {
        flex-direction: column;
    }

    .material-description {
        max-width: 100%;
    }

    .material-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .property-cards {
        grid-template-columns: 1fr;
    }

    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.875rem;
    }

    .temp-range {
        display: none;
    }
}

/* Focus States */
.btn:focus, .theme-toggle:focus, input:focus, .unit-switch:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Print Styles */
@media print {
    .nav-tabs, .action-buttons, .premium-features {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .property-section {
        break-inside: avoid;
    }

    .blur {
        filter: none;
        opacity: 1;
    }
}

/* Additional Utility Classes */
.blur {
    filter: var(--blur-sm);
    opacity: 0.5;
    user-select: none;
}

.updating {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.value-range.updating {
    opacity: 0.5;
}



/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(151, 114, 222, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(151, 114, 222, 0.5);
    }

    100% {
        box-shadow: 0 4px 15px rgba(151, 114, 222, 0.3);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100%;
    }

    100% {
        background-position: 100%;
    }
}
/* Core layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Top Actions */
.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.unit-toggle {
    display: flex;
    gap: 0.5rem;
}

.btn-units {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

    .btn-units.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

/* Material Header */
.material-title-section {
    min-width: 0;
}

.properties-container {
    min-width: 0;
}

.material-title-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin: 0;
}

.star-rating {
    color: #FFD700;
    font-size: 1.5rem;
}

.replaced-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.material-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.label {
    color: var(--text-secondary);
}

/* View Controls */
.view-controls {
    margin-bottom: 2rem;
}

.toggle-buttons {
    display: flex;
    gap: 1rem;
}

.btn-toggle {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
}

    .btn-toggle.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

/* Temperature Scale */
.temperature-scale {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to bottom, #ff4b4b 0%, #4b83ff 100%);
    border-radius: 8px;
    width: 24px;
}

.temp-marker {
    font-size: 0.75rem;
    color: transparent;
    cursor: pointer;
    height: 24px;
    width: 24px;
    border-radius: 50%;
}

    .temp-marker.active {
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

/* Properties Container */
.properties-container {
    display: flex;
    flex-direction: column;
}

.property-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.section-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.property-list {
    display: flex;
    flex-direction: column;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid #D2CFCF;
    column-gap: 1rem;
}

.property-name {
    text-align: end;
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.property-value {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.details-link {
    font-size: 0.75rem;
    color: #6CB744;
    text-decoration: none;
    display: flex;
}

/* Reference Stats */
.reference-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Tracker Section */
.tracker-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    width: 250px;
}

.tracker-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    /*  .content-grid {
        grid-template-columns: auto 1fr;
    }

    .tracker-section {
        grid-column: 1 / -1;
        width: 100%;
    } */
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .temperature-scale {
        display: none;
    }

    .top-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .material-title-section {
        flex-direction: column;
    }
}

.box {
    padding: 20px;
    padding-top: 0;
}

.box-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: normal;
}

/* Unified temperature picker — vertical thermometer on desktop, horizontal bar on mobile */
.temperature-picker {
    display: flex;
    align-items: center;
    gap: 15px;
}

.thermometer-container {
    position: relative;
}

.temperature-color {
    width: 0.45rem;
    height: 210px;
    background: linear-gradient(to bottom, #b85555, #c5b0bd, #64c8f0);
    border-radius: 1px;
    position: relative;
}

    .temperature-color::before {
        content: '';
        position: absolute;
        left: -4px;
        width: 16px;
        height: 200px;
        background: repeating-linear-gradient(to bottom, transparent, transparent 39px, white 39px, white 40px);
        pointer-events: none;
    }

    .temperature-color::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        background: #64c8f0;
        border-radius: 50%;
    }

/* Horizontal gradient bar — mobile only (hidden on desktop) */
.temp-bar {
    display: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #64c8f0, #ebc1c1, #d66565);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* 5 fixed rows matching the thermometer segments; each range lands in its logical row */
.temperature-options {
    display: grid;
    grid-template-rows: repeat(5, 42px);
    height: 210px;
    padding-top: 5px;
}

.temperature-option[data-range="1"] { grid-row: 5; }
.temperature-option[data-range="2"] { grid-row: 4; }
.temperature-option[data-range="3"] { grid-row: 3; }
.temperature-option[data-range="4"] { grid-row: 2; }
.temperature-option[data-range="5"] { grid-row: 1; }

.temperature-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.temperature-checkbox {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background: white;
    border: .8px solid #bababa;
}

    .temperature-checkbox:checked {
        background-color: #6DA930;
    }

        .temperature-checkbox:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 11px;
        }

.temperature-option.disabled {
    opacity: 0.5;
}

    .temperature-option.disabled input {
        cursor: not-allowed;
    }

.temperature-value {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.temperature-checkbox[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Mobile: horizontal picker */
@media (max-width: 890px) {
    .temperature-picker {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .thermometer-container {
        display: none;
    }

    .temp-bar {
        display: block;
    }

    .temperature-options {
        grid-template-rows: none;
        grid-template-columns: repeat(5, 1fr);
        height: auto;
        padding: 0 10px;
    }

    .temperature-option[data-range="1"] { grid-row: 1; grid-column: 1; }
    .temperature-option[data-range="2"] { grid-row: 1; grid-column: 2; }
    .temperature-option[data-range="3"] { grid-row: 1; grid-column: 3; }
    .temperature-option[data-range="4"] { grid-row: 1; grid-column: 4; }
    .temperature-option[data-range="5"] { grid-row: 1; grid-column: 5; }

    .temperature-option {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 8px;
        position: relative;
    }

    .temperature-option::before {
        content: '';
        position: absolute;
        top: -18px;
        left: 50%;
        width: 1px;
        height: 10px;
        background-color: #ccc;
        transform: translateX(-50%);
    }

    .temperature-checkbox {
        width: 14px;
        height: 14px;
        border-radius: 2px;
        border: 1px solid #ccc;
    }

    .temperature-value {
        font-size: 11px;
        color: #666;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
    }
}

.property-section {
    margin-bottom: 2rem;
    box-shadow: 20px 20px 60px #cbcbcb, -20px -20px 60px #ffffff;
}

.section-header {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.points-table {
    width: 100%;
    border-collapse: collapse;
}

.points-table-header {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 2px solid #eee;
    padding: 0.75rem 1rem;
}

.points-table-header-cell {
    font-weight: 600;
    color: #666;
    font-size: 0.875rem;
}

.columnCriteria {
    width: 15%;
}

.columnValue {
    width: 20%;
}

.columnUnit {
    width: 10%;
}

.columnCAS {
    width: 20%;
}

.columnCRM {
    width: 35%;
}

.points-table-body table {
    width: 100%;
}

.points-table-body tr {
    border-bottom: 1px solid #eee;
}

.points-table-body td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #333;
}

    .points-table-body td a {
        color: #2f79cb;
        text-decoration: none;
    }

        .points-table-body td a:hover {
            text-decoration: underline;
        }

.composition-metal-value {
    color: #666;
}

.screen-sm {
    display: none;
}

@media (max-width: 768px) {
    .screen-larger-than-sm {
        display: none;
    }

    .screen-sm {
        display: block;
    }
}

@media (max-width: 1200px) {
    /* ... existing media query content ... */

    .counters li {
        border: 1px solid transparent;
        padding: 0.75rem 1rem;
        border-radius: 7px;
    }

        /* Add colored borders based on the icon colors */
        .counters li:nth-child(-n+7) {
            border-color: #2f79cb;
        }

        .counters li:nth-child(n+8):nth-child(-n+12) {
            border-color: #ed8b39;
        }

        .counters li:nth-child(n+13):nth-child(-n+16) {
            border-color: #ad4dc7;
        }

        .counters li:nth-child(n+17):nth-child(-n+20) {
            border-color: var(--tm-module-color-data-plus);
        }

        .counters li:nth-child(n+21):nth-child(-n+24) {
            border-color: var(--tm-module-color-enviro);
        }

        .counters li:nth-child(n+25) {
            border-color: var(--tm-module-color-suppliers);
        }

        .counters li span {
            text-decoration: none;
        }

}

@media (max-width: 890px) {
    .material-header {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .data-flex {
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }
}

.points-table {
    width: 100%;
}

.points-table-header {
    display: none; /* Hidden on mobile */
    background-color: #f5f5f5;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* Mobile card view */
.composition-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    margin-bottom: 0.5rem;
}

.field-group {
    margin: 0.5rem 0;
}

.field-label {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.field-value {
    color: #333;
    font-size: 0.875rem;
}

.element-symbol {
    font-weight: bold;
    font-size: 1rem;
    color: #000;
}

.listed-value {
    color: #2f79cb;
}

.empty-value {
    color: #999;
}

/* Desktop table view */
@media (min-width: 768px) {
    .points-table {
        display: table;
        border-collapse: collapse;
    }

    .points-table-header {
        display: table-header-group;
    }

    .points-table-body {
        display: table-row-group;
    }

    .points-table-header-row {
        display: table-row;
    }

    .points-table-header-cell {
        display: table-cell;
        padding: 1rem;
        text-align: left;
        border-bottom: 2px solid #eee;
    }

    .composition-row {
        display: table-row;
        border: none;
        margin: 0;
        padding: 0;
    }

    .field-group {
        display: table-cell;
        padding: 1rem;
        margin: 0;
        /* border-bottom: 1px solid #eee; */
        vertical-align: middle;
    }

    .field-label {
        display: none; /* Hide labels on desktop */
    }

    .field-value {
        margin: 0;
    }

    /* Column widths */
    .column-criteria {
        width: 15%;
    }

    .column-value {
        width: 20%;
    }

    .column-unit {
        width: 10%;
    }

    .column-cas {
        width: 20%;
    }

    .column-crm {
        width: 35%;
    }
}

/* Container styles */
.box {
    padding: 20px;
    padding-top: 0;
}

.box-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: normal;
}

.verification-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .verification-item i {
        color: #2f79cb;
        width: 20px;
    }

.update-history-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
}

.update-history-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

    .update-history-header i {
        color: #2f79cb;
        width: 20px;
    }

.update-history-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: 1rem;
}

    .update-history-pills.is-collapsed .history-pill:nth-child(n+6) {
        display: none;
    }

.history-pill {
    background: #f0f4fa;
    color: #5c7fad;
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

    .history-pill--empty {
        color: #aaa;
        background: transparent;
        padding-left: 0;
    }

.history-show-more {
    background: none;
    border: none;
    color: #6298E0;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.15rem 0;
    margin-left: 1.75rem;
}

    .history-show-more:hover {
        text-decoration: underline;
    }

.tm-module-color-general {
    color: var(--tm-module-color-general);
}

.tm-module-color-er {
    color: var(--tm-module-color-er);
}

.tm-module-color-data-plus {
    color: var(--tm-module-color-data-plus);
}

.tm-module-color-enviro {
    color: var(--tm-module-color-enviro);
}

.tm-module-color-suppliers {
    color: var(--tm-module-color-suppliers);
}

@media (max-width: 560px) {
    .property-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name name"
            "value details";
        align-items: center;
        gap: 0.35rem 0.75rem;
        padding: 0.75rem 0;
    }

    .property-item .property-name {
        grid-area: name;
        text-align: left;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
        line-height: 1.35;
    }

    .property-item .property-value {
        grid-area: value;
        min-width: 0;
    }

    .property-item .details-wrapper,
    .property-item .details-link {
        grid-area: details;
        justify-self: end;
    }

    .property-item.property-item-no-border,
    .property-item.padding-border-top-n {
        display: none;
    }
}

.tm-condition {
    margin-top: 1rem;
    font-style: italic;
    padding-left: 1rem;
    padding-right: 1rem;
}
.value-wrapper {
    display: inline-block;
}

.custom-tooltip-v2 {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: max-content;
    max-width: min(20rem, calc(100vw - 2rem));
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

    .custom-tooltip-v2 a {
        color: #6298E0;
        text-decoration: underline;
        font-weight: bold;
    }

    .custom-tooltip-v2 a,
    .custom-tooltip-v2 span {
        white-space: normal;
        overflow-wrap: anywhere;
    }

.value-wrapper:hover .custom-tooltip-v2,
.value-wrapper:focus-within .custom-tooltip-v2 {
    display: flex !important;
    cursor: pointer;
}

/* Tooltip trigger for wrapped CTAs: hover the link (and the tooltip itself, so user can reach its CTA) */
.details-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

    .details-wrapper .custom-tooltip-v2 {
        left: auto;
        right: 0;
    }

.details-wrapper:hover .custom-tooltip-v2,
.details-wrapper:focus-within .custom-tooltip-v2 {
    display: flex !important;
    cursor: pointer;
}

/* Promo CTA tooltip: float above the button, centered */
.promo-cta-wrapper .custom-tooltip-v2 {
    top: auto;
    left: 50%;
    right: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: min(315px, calc(100vw - 2rem));
}

@media (max-width: 768px) {
    .custom-tooltip-v2 {
        max-width: calc(100vw - 1.5rem);
    }

    .promo-cta-wrapper .custom-tooltip-v2 {
        left: 0;
        right: auto;
        transform: none;
        max-width: calc(100vw - 2rem);
    }
}

.blur {
    filter: blur(4px);
    cursor: pointer;
    pointer-events: all;
    font-weight:bold;
}

.property-value, .field-value {
    position: relative;
}

/*.counters a {
    all: unset;*/ /* Resets all inherited styles */
    /*display: unset;*/ /* Ensures block behavior for your layout */
    /*text-align: center;*/ /* Centers content */
/*}*/
.counters li {
display:block;
width:100%;
}
.counters a {
text-decoration:unset;
color:unset;
}
@media  (max-width: 1200px) {
    .counters li {
        display: flex;
        width: unset;
    }
}
.mat-alt {
    /* margin-top: 4rem; */
}

/* Prevent horizontal overflow on the material page (absolutely-positioned
   tooltips + dropdowns must not push the document wider than the viewport) */
body.mat-alt {
   /* overflow-x: clip;*/
}
a.smallCTA {
width:fit-content;
margin:auto;
}
/* Inline CTA */
.inline-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #e8eef8 0%, #edf2fb 50%, #e4ecf7 100%);
    border: 1px solid rgba(98, 152, 224, 0.2);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.inline-cta::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(98, 152, 224, 0.07) 0px,
        rgba(98, 152, 224, 0.07) 1px,
        transparent 1px,
        transparent 28px
    );
    pointer-events: none;
}

.inline-cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #373F4E;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.inline-cta-sub {
    font-size: 0.85rem;
    color: #5C7FAD;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.inline-cta-btn {
    background: #6298E0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 10px;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.promo-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.promo-actions .promo-cta-wrapper,
.promo-actions .inline-cta-btn {
    flex: 0 1 auto;
}

.promo-actions .promo-cta-wrapper {
    position: relative;
    padding-bottom: 1.75rem;
}

.promo-actions .promo-cta-wrapper .promo-subtitle-blue {
    position: absolute;
    top: calc(100% - 1.25rem);
    left: 0;
    width: max-content;
    max-width: min(32rem, calc(100vw - 4rem));
    margin: 0;
}

.promo-actions .inline-cta-btn {
    min-width: 12.75rem;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.inline-cta-btn-demo {
    background-color: #7bbf4a;
    border-color: #7bbf4a;
}

.inline-cta-btn:hover {
    background: #5C7FAD;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 152, 224, 0.35);
}

.inline-cta-btn-demo:hover {
    background-color: #6eaf42;
    color: white;
    box-shadow: 0 6px 20px rgba(123, 191, 74, 0.32);
}

.mat-sticky-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 72px;
    left: 1rem;
    bottom: auto;
    right: auto;
    z-index: 999;
    width: auto;
    min-width: 220px;
    max-width: calc(100vw - 2rem);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    background-color: #7bbf4a;
    border: 2px solid #7bbf4a;
    box-shadow: 0 10px 24px rgba(123, 191, 74, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, top 0.2s ease, left 0.2s ease;
}

.mat-sticky-demo-btn:hover {
    background-color: #6eaf42;
    border-color: #6eaf42;
}

.mat-sticky-demo-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .mat-sticky-demo-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .inline-cta {
        padding: 1.5rem 1rem;
    }

    .promo-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.05rem;
        width: 100%;
    }

    .promo-actions .promo-cta-wrapper {
        width: 100%;
        padding-bottom: 2.15rem;
    }

    .promo-actions .promo-cta-wrapper .promo-subtitle-blue {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .inline-cta-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .inline-cta .inline-cta-btn + p a,
    .inline-cta-btn + p a,
    .promo-subtitle-blue {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Book demo nudge — micro-copy under CTA buttons.
   Structural sibling selector catches any <p> directly after .inline-cta-btn,
   so styling survives even when the TinyMCE rich-text editor strips custom classes.
   The .book-demo-nudge class is kept as a parallel hook. */
.book-demo-nudge,
.inline-cta .inline-cta-btn + p,
.inline-cta-btn + p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5C7FAD;
    margin-top: 0.75rem;
    margin-bottom: 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.book-demo-nudge a,
.inline-cta .inline-cta-btn + p a,
.inline-cta-btn + p a {
    color: #6298E0;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.book-demo-nudge a:hover,
.inline-cta .inline-cta-btn + p a:hover,
.inline-cta-btn + p a:hover {
    text-decoration: underline;
}

/* Book demo prompt — centered line between CTA blocks */
.book-demo-prompt {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #5C7FAD;
    margin: 0;
    line-height: 1.5;
}

.book-demo-prompt a {
    color: #6298E0;
    text-decoration: underline;
    font-weight: 600;
}

.book-demo-prompt a:hover {
    text-decoration: underline;
}

/* ===========================
   Header – Mobile Optimizations
   =========================== */

/* Keep the material header fixed above the page at all sizes. */
#header.fixed-top,
#header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;
}

/* Keep logo and language switcher on one row at all sizes */
.mat-alt .navbar,
.mat-alt .tm-main-menu-container {
    flex-wrap: nowrap !important;
    align-items: center;
}

.mat-alt .navbar {
    position: relative;
    display: flex;
    justify-content: flex-start;
    box-sizing: border-box;
    height: 72px;
    padding: 0;
    color: #fff;
    font-weight: 300;
    line-height: 1.5;
    background-image: linear-gradient(
        to top,
        rgba(46, 48, 52, 0) 0%,
        rgb(46, 48, 52) 41.9%,
        rgb(46, 48, 52) 100%
    );
}

.mat-alt .tm-main-menu-container {
    display: flex;
    justify-content: space-between;
}

.mat-alt .navbar-collapse {
    display: flex;
    flex: 1;
    align-items: center;
}

.mat-alt .navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mat-alt .tm-main-menu-container > .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.mat-header-demo-item {
    display: none;
}

.mat-header-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: 0.25rem;
   /* max-width: 9rem;*/
    padding: 0.55rem 0.8rem;
    background-color: #7bbf4a;
    border: 2px solid #7bbf4a;
    color: #ffffff;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.1;
    white-space: nowrap;
}

.mat-header-demo-btn:hover,
.mat-header-demo-btn:focus {
    background-color: #6eaf42;
    border-color: #6eaf42;
    color: #ffffff;
}

.mat-alt picture.logo,
.mat-alt a.logo {
    flex-shrink: 0;
    display: inline-block;
}

.mat-alt a.logo picture.logo {
    width: 100%;
}

.mat-alt .logo img {
    display: block;
    width: 100%;
    height: auto;
}
/* Logo sizing per <picture> source breakpoints
   >=1400px : wide logo (group-1.svg)      ~232px
   740-1399 : wide logo (group-1.svg)      ~180px
   <740px   : compact logo (webp)          ~70px  */
#header .logo {
    min-width: 232px;
    max-width: 232px;
    margin-right: 0;
}

@media (max-width: 1399px) {
    #header .logo {
        min-width: 180px;
        max-width: 180px;
    }
}

@media (max-width: 739px) {
    #header .logo {
        min-width: 70px;
        max-width: 70px;
    }
}
.lng-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.lng-switch:hover,
.lng-switch:focus {
    color: #fff;
    text-decoration: none;
}

.lng-switch .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
    margin: 0 !important;
}

.lng-switch::after {
    content: "\e5cf"; /* expand_more */
    font-family: "Material Symbols Outlined";
    font-size: 1.1rem;
    line-height: 1;
    color: #fff;
    border: 0;
    margin: 0;
    transition: transform 0.15s ease;
}

.lng-switch[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
/* Dropdown base (Bootstrap CSS not loaded; provide minimal show/hide) */
.mat-alt .nav-item.dropdown {
    position: relative;
}

.mat-alt .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 12rem;
    padding: 0.5rem 0;
    margin: 0.25rem 0 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mat-alt .dropdown-menu.show {
    display: block;
}

@media (max-width: 1199px) {
    .mat-alt .tm-main-menu-container {
        gap: 0.5rem;
    }

    .mat-alt .navbar-collapse {
        flex: 0 0 auto;
    }

    .mat-header-demo-item {
        display: block;
    }
}

@media (min-width: 1200px) {
    .mat-header-demo-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .material-symbols-outlined {
        margin-left: 0 !important;
    }
        .mat-alt .tm-main-menu-container > .navbar-nav {
        gap: 0.5rem;
    }

    .mat-header-demo-btn {
       /* max-width: 7.5rem;*/
        padding: 0.48rem 0.6rem;
        font-size: 0.74rem;
    }

    .lng-switch {
        gap: 0.15rem;
        padding-inline: 0.25rem;
        font-size: 0;
    }

    .lng-switch .material-symbols-outlined,
    .lng-switch::after {
        font-size: 1.2rem;
    }
}

/* Languages mega-menu — full-width panel below header */
.mat-alt header .nav-item.dropdown {
    position: static;
}

.mat-alt header .dropdown-menu.languages-menu,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu {
    display: none;
    position: absolute !important;
    top: 100%;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 72px);
    overflow-x: hidden;
    overflow-y: auto;
    transform: none !important;
    margin: 0;
    padding: 1.5rem 0 1.75rem;
    border: 0;
    border-radius: 0 0 8px 8px;
    background-color: #2E3034;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    color: #fff;
    z-index: 1060;
}

.mat-alt header .dropdown-menu.languages-menu.show,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu.show {
    display: block;
}

.mat-alt header .languages-menu .lng-label {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}

.mat-alt header .languages-menu .lang-title {
    position: relative;
    margin-left: 10px;
    color: #FCFCFC;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.75px;
    line-height: 17px;
    text-transform: uppercase;
}

.mat-alt header .languages-menu .lang-title:before {
    content: "|";
    position: absolute;
    top: 0;
    left: -10px;
    color: #6298E0;
    font-weight: normal;
}

.mat-alt header .dropdown-menu.languages-menu ul,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    list-style: none;
}

.mat-alt header .dropdown-menu.languages-menu ul li,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li {
    display: flex;
    width: 20%;
    padding-right: 0.5rem;
    margin-bottom: 6px;
}

.mat-alt header .dropdown-menu.languages-menu ul li a,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li a {
    display: block;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 6px 12px 6px 40px;
    position: relative;
    color: #F8F8F8;
    text-decoration: none;
    font-size: 15px;
    line-height: 20px;
}

.mat-alt header .dropdown-menu.languages-menu ul li a:before,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li a:before {
    content: "\e836";
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #B0B5BB;
}

.mat-alt header .dropdown-menu.languages-menu ul li.current a,
.mat-alt header .dropdown-menu.languages-menu ul li a:hover,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li.current a,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li a:hover {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    border: 1px solid #D9D9D9;
}

.mat-alt header .dropdown-menu.languages-menu ul li.current a:before,
.mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li.current a:before {
    content: "\e86c";
    color: #6298E0;
}

/* Column count adjustments */
@media (max-width: 1199px) {
    .mat-alt header .dropdown-menu.languages-menu ul li,
    .mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .mat-alt header .dropdown-menu.languages-menu ul li,
    .mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li {
        width: 33.33%;
    }
}

@media (max-width: 480px) {
    .mat-alt header .dropdown-menu.languages-menu ul li,
    .mat-alt header .dropdown-menu[data-bs-popper].languages-menu ul li {
        width: 50%;
    }
}
.promo-subtitle-blue {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5c7fad;
    margin: 0.75rem 0 0 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.mat-alt .nav-link dropdown-toggle, .mat-alt .navbar-light .navbar-nav .nav-link {
    color: white;
}
main.mat-alt {
    background-color: white;
}

.material-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.material-footer-legal-links a {
    color: inherit;
    text-decoration: none;
}

.material-footer-legal-links a:hover {
    color: #2f79cb;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .material-footer-legal-links {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
}

/* Base utilities (Bootstrap not loaded) */
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-end { text-align: right; }
.text-uppercase { text-transform: uppercase; }

.pp-gap {
    column-gap: 3rem;
}
.property-item-no-border {
    border-top: none;
    padding-top: 0;
}
.c-gap-3 {
    column-gap: 3rem;
}
.padding-border-top-n {
    border-top: none;
    padding-top: 0;
}

/* Cross References (international equivalents) */
.cross-ref-intro { color: #5a6470; font-size: 0.95rem; margin: 0.25rem 0 1.25rem; }
.cross-ref-intro strong { color: #1f2a37; }
.cross-ref-table .points-table-header-row,
.cross-ref-table .composition-row.cross-ref-row {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; width: 100%;
}
.cross-ref-table .composition-row.cross-ref-row {
    padding: 0.875rem 0; border-bottom: 1px solid #eef1f5; transition: background-color 120ms ease;
}
.cross-ref-table .composition-row.cross-ref-row:hover { background-color: #f8fafd; }
.cross-ref-table .composition-row.cross-ref-row:last-child { border-bottom: none; }
.cross-ref-table .points-table-header-cell,
.cross-ref-table .field-group { padding: 0 0.75rem; box-sizing: border-box; }
.cross-ref-table .column-material { flex: 0 0 26%; }
.cross-ref-table .column-standard { flex: 0 0 22%; }
.cross-ref-table .column-country  { flex: 0 0 26%; }
.cross-ref-table .column-equiv    { flex: 0 0 26%; }
.cross-ref-table .field-group .field-label { display: none; }
.cross-ref-table .field-group .field-value { font-size: 0.95rem; color: #1f2a37; line-height: 1.35; }
.cross-ref-table .column-material .field-value { font-weight: 600; }
.cross-ref-table .column-standard .field-value { color: #5a6470; font-size: 0.92rem; }
.cross-ref-table .equiv-badge { display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.78rem; font-weight: 600; border-radius: 999px; letter-spacing: 0.02em; }
.cross-ref-table .equiv-identical { background: #e6f4ea; color: #1f7a3d; border: 1px solid #c7e6d1; }
.cross-ref-table .equiv-similar { background: #eaf2fd; color: #1e6cd6; border: 1px solid #cfddf6; }
.cross-ref-table .equiv-equivalent { background: #fff4e0; color: #9a5a00; border: 1px solid #f3dcb1; }
.cross-ref-table .cr-link { color: #1e6cd6; text-decoration: none;  font-weight: 500; }
.cross-ref-table .cr-link:hover { color: #0b4ea8; border-bottom-color: #0b4ea8; }
@media (max-width: 768px) {
    .cross-ref-table .points-table-header { display: none; }
    .cross-ref-table .composition-row.cross-ref-row { flex-direction: column; align-items: flex-start; padding: 1rem 0; }
    .cross-ref-table .field-group { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0.5rem; }
    .cross-ref-table .field-group .field-label { display: inline-block; font-size: 0.72rem; font-weight: 600; color: #8892a0; letter-spacing: 0.04em; }
    .cross-ref-table .field-group .field-value { text-align: right; }
}

/* Indicative Price (inline in material header) */
.indicative-price-row .info-icon {
    color: #8892a0;
    font-size: 0.8em;
    margin-left: 0.15rem;
    cursor: help;
}
.indicative-price-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 8.75rem;
    border: 1px solid rgba(47, 121, 203, 0.28);
    border-radius: 999px;
    background-color: #f7fbff;
    padding: 0.12rem 1.85rem 0.12rem 0.55rem;
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    color: #173f6f;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%235a6470' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 8px 5px;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.indicative-price-select:hover {
    border-color: rgba(47, 121, 203, 0.55);
    background-color: #eef6ff;
}
.indicative-price-select:focus {
    outline: none;
    border-color: #2f79cb;
    box-shadow: 0 0 0 3px rgba(47, 121, 203, 0.14);
}
.indicative-price-select option {
    color: #1e293b;
    background-color: #ffffff;
    font-weight: 500;
}

/* Related Articles */
.related-articles-section .related-articles-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem; margin-top: 1rem;
}
.related-article-card {
    background: #fff; border: 1px solid #e5e9ef; border-radius: 10px; padding: 1rem;
    transition: box-shadow 150ms ease, transform 150ms ease;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 0.5rem; min-height: 130px;
}
.related-article-card:hover {
    box-shadow: 0 6px 18px rgba(15,30,60,0.08); transform: translateY(-2px);
    color: inherit; text-decoration: none;
}
.related-article-category {
    font-size: 0.72rem; font-weight: 600; color: #1e6cd6;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.related-article-title { font-size: 0.95rem; font-weight: 600; color: #1f2a37; line-height: 1.35; margin: 0; }
.related-article-meta { font-size: 0.78rem; color: #8892a0; margin-top: auto; }
.related-article-meta i { margin-right: 0.3rem; }
b { font-weight: 500; }
.ht-list li {
    list-style-type: none;
}
.ma-page-container {
padding-top:4rem;
}
#mat-trial, #mat-trial-sticky {
text-decoration:none;
}