/* SEM-EDS page — extends main.css + menu.css */

/* ── Signal color palette ── */
:root {
    --se:   rgba(80, 190, 150, 1);
    --bse:  rgba(80, 130, 210, 1);
    --eds:  rgba(200, 140, 50,  1);
    --stem: rgba(160, 100, 220, 1);
}

/* ── Active nav ── */
.nav-links li a.nav-active {
    color: rgba(230, 238, 242, 0.95) !important;
}

/* ── Hero ── */

.sem-hero {
    min-height: 460px;
    padding: 44px 8vw 60px;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(80, 130, 210, 0.07), transparent 42%),
        radial-gradient(ellipse at 10% 75%, rgba(80, 190, 150, 0.05), transparent 38%),
        linear-gradient(180deg, #0d1316 0%, #1a2022 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sem-back-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(165, 175, 183, 0.45);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 22px;
    transition: color 0.2s;
}
.sem-back-link:hover { color: rgba(195, 205, 212, 0.72); }

.sem-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(80, 130, 210, 0.75);
    font-weight: 500;
    margin: 0 0 10px;
}

.sem-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #dde4e8;
    margin: 0 0 6px;
}

.sem-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #8b2222;
    margin-top: 10px;
    margin-bottom: 16px;
}

.sem-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(188, 200, 207, 0.78);
    margin: 0 0 14px;
}

.sem-intro {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(152, 165, 173, 0.55);
    max-width: 640px;
    line-height: 1.85;
    font-weight: 300;
    margin: 0 0 32px;
}

/* Feature chips */
.sem-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 14px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
}

.chip-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(175, 186, 194, 0.65);
    font-weight: 300;
}

.chip-mode {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.mode-se   { color: var(--se);   border: 1px solid rgba(80, 190, 150, 0.4); }
.mode-bse  { color: var(--bse);  border: 1px solid rgba(80, 130, 210, 0.4); }
.mode-eds  { color: var(--eds);  border: 1px solid rgba(200, 140, 50,  0.4); }
.mode-stem { color: var(--stem); border: 1px solid rgba(160, 100, 220, 0.4); }

/* ── Sections ── */

.sem-section {
    padding: 60px 8vw;
    max-width: 100%;
}

.sem-section.alt-bg {
    background: #171d1f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── Section headings ── */

.sem-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #d0d8dc;
    font-weight: 500;
    margin: 0 0 18px;
}

.sem-section-title::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #8b2222;
    margin-top: 8px;
}

.sem-section-title.centered { text-align: left; }

/* ── Body text ── */

.sem-body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(170, 182, 190, 0.68);
    line-height: 1.88;
    font-weight: 300;
    margin: 0 0 16px;
}

/* ── Technical collapsible ── */

.technical-detail {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    margin-top: 18px;
    overflow: hidden;
}

.technical-detail summary {
    padding: 10px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(165, 105, 105, 0.68);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}
.technical-detail summary::-webkit-details-marker { display: none; }
.technical-detail summary:hover { color: rgba(185, 130, 130, 0.85); }
.technical-detail[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.technical-detail-content {
    padding: 14px 16px;
}

.technical-detail-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(158, 170, 178, 0.65);
    line-height: 1.75;
    font-weight: 300;
    margin: 0 0 10px;
}

.tech-list {
    margin: 0;
    padding-left: 16px;
}

.tech-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(158, 170, 178, 0.62);
    line-height: 1.72;
    font-weight: 300;
    margin-bottom: 4px;
}

/* ── Equation box ── */

.equation-box {
    background: rgba(8, 14, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid rgba(139, 34, 34, 0.45);
    border-radius: 3px;
    padding: 10px 16px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(185, 196, 206, 0.8);
    overflow-x: auto;
    letter-spacing: 0.5px;
}

/* ── Key message ── */

.key-message {
    border-left: 2px solid rgba(139, 34, 34, 0.45);
    padding: 10px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(182, 194, 200, 0.72);
    font-weight: 300;
    font-style: italic;
    margin-top: 20px;
    line-height: 1.6;
}

.se-border   { border-color: rgba(80, 190, 150, 0.45); }
.bse-border  { border-color: rgba(80, 130, 210, 0.45); }
.eds-border  { border-color: rgba(200, 140, 50,  0.45); }
.stem-border { border-color: rgba(160, 100, 220, 0.45); }

/* ── Diagram placeholders ── */

.diagram-placeholder {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #0e1416;
}

.diagram-label {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(145, 158, 165, 0.42);
}

.diagram-content-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(145, 158, 165, 0.45);
    font-weight: 300;
}

/* Image gradient themes */
.app-img-se          { background: linear-gradient(145deg, #0c2028, #1a3840); }
.app-img-bio         { background: linear-gradient(145deg, #0c2020, #18322a); }
.app-img-bse         { background: linear-gradient(145deg, #101828, #1c2a40); }
.app-img-mineral     { background: linear-gradient(145deg, #141020, #241830); }
.app-img-eds         { background: linear-gradient(145deg, #1c1408, #2c2010); }
.app-img-map         { background: linear-gradient(145deg, #181008, #281818); }
.app-img-stem        { background: linear-gradient(145deg, #100c1c, #1c1430); }
.app-img-np          { background: linear-gradient(145deg, #0e0c1c, #1a1428); }
.app-img-nano        { background: linear-gradient(145deg, #0c1018, #182030); }
.app-img-coating     { background: linear-gradient(145deg, #0e1a10, #182820); }
.app-img-fracture    { background: linear-gradient(145deg, #141414, #202020); }

/* ── Signal Tabs ── */

.signal-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 0;
}

.signal-tab-btn {
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(158, 170, 178, 0.48);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    white-space: nowrap;
}

.signal-tab-btn:hover { color: rgba(200, 210, 215, 0.75); }

.signal-tab-btn.active.se   { color: rgba(80,  190, 150, 0.9); border-bottom-color: rgba(80,  190, 150, 0.7); }
.signal-tab-btn.active.bse  { color: rgba(80,  130, 210, 0.9); border-bottom-color: rgba(80,  130, 210, 0.7); }
.signal-tab-btn.active.eds  { color: rgba(200, 140, 50,  0.9); border-bottom-color: rgba(200, 140, 50,  0.7); }
.signal-tab-btn.active.stem { color: rgba(160, 100, 220, 0.9); border-bottom-color: rgba(160, 100, 220, 0.7); }

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-se   { background: rgba(80,  190, 150, 0.7); }
.dot-bse  { background: rgba(80,  130, 210, 0.7); }
.dot-eds  { background: rgba(200, 140, 50,  0.7); }
.dot-stem { background: rgba(160, 100, 220, 0.7); }

.signal-panel { display: none; }
.signal-panel.active { display: grid; }

.panel-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 16px;
}

.se-text   { color: rgba(80,  190, 150, 0.82); }
.bse-text  { color: rgba(80,  130, 210, 0.82); }
.eds-text  { color: rgba(200, 140, 50,  0.82); }
.stem-text { color: rgba(160, 100, 220, 0.82); }

/* ── Comparison Table ── */

.table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.sem-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.sem-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(155, 168, 176, 0.55);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    font-weight: 400;
    white-space: nowrap;
}

.sem-table td {
    padding: 14px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(168, 180, 188, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 300;
    line-height: 1.55;
    vertical-align: top;
}

.sem-table tr:last-child td { border-bottom: none; }
.sem-table tr:hover td { background: rgba(255, 255, 255, 0.015); }

.mode-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    padding: 3px 9px;
    border-radius: 2px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}
.badge-se   { color: rgba(80,  190, 150, 0.9); border: 1px solid rgba(80,  190, 150, 0.35); }
.badge-bse  { color: rgba(80,  130, 210, 0.9); border: 1px solid rgba(80,  130, 210, 0.35); }
.badge-eds  { color: rgba(200, 140, 50,  0.9); border: 1px solid rgba(200, 140, 50,  0.35); }
.badge-stem { color: rgba(160, 100, 220, 0.9); border: 1px solid rgba(160, 100, 220, 0.35); }

/* ── Sample Preparation ── */

.prep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.prep-card {
    background: rgba(20, 28, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 20px 20px 22px;
}

.prep-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #ccd4d8;
    font-weight: 400;
    margin: 0 0 10px;
}

.prep-body {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(158, 170, 178, 0.58);
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
}

/* ── Signal panel real images ── */

.signal-img-container {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.07);
    /* preserve 1024×882 aspect ratio */
    aspect-ratio: 1024 / 882;
}

/* Single image variant fills available column height */
.signal-img-single {
    aspect-ratio: 1024 / 882;
}

/* EDS images — wider format 1662×980 */
.signal-img-eds {
    aspect-ratio: 1662 / 980;
}

.signal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: opacity 0.25s ease;
}

.signal-img-container:hover .signal-img { opacity: 1; }

.signal-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: rgba(200, 210, 215, 0.72);
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* ── Application Gallery ── */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
}

.app-card {
    background: rgba(20, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.app-card:hover {
    border-color: rgba(139, 34, 34, 0.3);
    transform: translateY(-2px);
}

/* Placeholder cards — muted, no hover lift */
.app-card-placeholder { opacity: 0.45; }
.app-card-placeholder:hover { transform: none; border-color: rgba(255,255,255,0.07); }

/* Image container: preserve common aspect ratio (512×442 ≈ 1024×882) */
.app-card-img {
    width: 100%;
    aspect-ratio: 512 / 442;
    overflow: hidden;
    position: relative;
    background: #0e1416;
}

.app-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.86;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.app-card:hover .app-img {
    opacity: 1;
    transform: scale(1.02);
}

.app-card-body {
    padding: 15px 17px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-mode-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 8px;
    display: block;
}

.app-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #cdd5da;
    margin: 0 0 8px;
    line-height: 1.35;
}

.app-card-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(155, 168, 176, 0.52);
    font-weight: 300;
    line-height: 1.65;
    margin: 0;
}

/* ── EDS CTA Section ── */

.eds-cta-section { background: #1a2022; }

.eds-cta-block {
    background: rgba(14, 20, 22, 0.9);
    border: 1px solid rgba(200, 140, 50, 0.18);
    border-radius: 4px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 40px;
    align-items: center;
}

.eds-cta-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(200, 140, 50, 0.65);
    font-weight: 500;
    margin: 0 0 10px;
}

.eds-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #d5dde2;
    margin: 0 0 14px;
}

.eds-cta-title::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(200, 140, 50, 0.6);
    margin-top: 8px;
    margin-bottom: 14px;
}

.eds-cta-body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(162, 175, 182, 0.6);
    font-weight: 300;
    line-height: 1.82;
    margin: 0 0 22px;
}

.eds-cta-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(200, 140, 50, 0.8);
    text-decoration: none;
    border: 1px solid rgba(200, 140, 50, 0.35);
    padding: 10px 20px;
    border-radius: 2px;
    display: inline-block;
    transition: all 0.2s ease;
}
.eds-cta-link:hover {
    background: rgba(200, 140, 50, 0.08);
    border-color: rgba(200, 140, 50, 0.7);
    color: rgba(220, 158, 70, 0.95);
}

/* ── References ── */

.ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ref-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(152, 165, 173, 0.52);
    font-weight: 300;
    line-height: 1.72;
    padding: 8px 0 8px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.ref-list li em {
    color: rgba(172, 184, 192, 0.72);
    font-style: italic;
}

/* ── Responsive ── */

@media (max-width: 920px) {
    .two-col,
    .two-col.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .two-col.reverse > * { direction: ltr; }

    .signal-panel.active { display: block; }

    .prep-grid {
        grid-template-columns: 1fr 1fr;
    }

    .eds-cta-block {
        grid-template-columns: 1fr;
    }

    .eds-cta-visual { display: none; }
}

@media (max-width: 640px) {
    .sem-hero,
    .sem-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .sem-title {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .prep-grid {
        grid-template-columns: 1fr;
    }

    .signal-tabs-nav {
        gap: 0;
        overflow-x: auto;
    }

    .signal-tab-btn {
        padding: 10px 14px;
        font-size: 9px;
    }

    .eds-cta-block {
        padding: 24px 20px;
    }
}
