/* ==========================================================================
   TeMetaTech — additive styles for new functionality only.
   Reuses existing design tokens (colors, fonts, spacing) from style.css.
   Nothing here overrides or changes the original site design.
   ========================================================================== */

/* Job status badge (careers listing) */
.job-row { position: relative; }
.job-status {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line, #d7dee6);
    color: var(--ink, #14181f);
}
.job-status.is-open { border-color: #1f9d55; color: #1f9d55; }
.job-status.is-closed { border-color: #b3261e; color: #b3261e; }
.job-row.is-closed { opacity: .55; pointer-events: none; }
.job-row button.job-apply-trigger {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* Modal overlay (Careers apply flow) */
.tmt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 24, .55);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tmt-modal-overlay.is-open { display: flex; }
.tmt-modal {
    background: #fff;
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 44px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.tmt-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line, #d7dee6);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.tmt-modal h3 { margin: 0 0 6px; }
.tmt-modal .tmt-job-meta { color: #718096; font-size: 14px; margin-bottom: 22px; }
.tmt-modal .tmt-section-title {
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    color: #718096;
    margin: 22px 0 10px;
}
.tmt-modal ul.tmt-list { margin: 0; padding-left: 18px; }
.tmt-modal ul.tmt-list li { margin-bottom: 6px; line-height: 1.5; }
.tmt-modal-actions { margin-top: 30px; display: flex; gap: 12px; }

.tmt-apply-form { display: none; margin-top: 10px; }
.tmt-apply-form.is-visible { display: block; }
.tmt-apply-form .field { margin-bottom: 16px; }
.tmt-apply-form input[type="file"] { border: 1px dashed var(--line, #d7dee6); padding: 12px; width: 100%; border-radius: 10px; background: #fafbfc; }
.tmt-form-note { font-size: 12px; color: #718096; margin-top: 6px; }
.tmt-form-message { margin-top: 14px; font-size: 14px; display: none; }
.tmt-form-message.is-success { color: #1f9d55; display: block; }
.tmt-form-message.is-error { color: #b3261e; display: block; }
.tmt-hp-field { position: absolute; left: -9999px; top: -9999px; }
.tmt-submitting { opacity: .6; pointer-events: none; }

/* Technology details dialog */
.tech-modal-overlay { position: fixed; inset: 0; z-index: 9997; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(7, 17, 31, .68); backdrop-filter: blur(4px); }
.tech-modal-overlay.is-open { display: flex; }
.tech-modal { position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto; padding: 48px; background: var(--paper, #f6f9fc); color: var(--ink, #07111f); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.tech-modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--line, #dfe7f0); background: transparent; color: inherit; font-size: 24px; line-height: 1; }
.tech-modal h2 { margin: 0 0 18px; font-size: clamp(32px, 5vw, 52px); }
.tech-modal-description { max-width: 560px; font-size: 17px; line-height: 1.7; }
.tech-modal h3 { margin: 30px 0 12px; font-size: 20px; }
.tech-modal-list { margin: 0; padding-left: 20px; }
.tech-modal-list li { margin-bottom: 8px; }
.tech-modal-stack { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line, #dfe7f0); }
.tech-modal-stack > span { display: block; margin-bottom: 12px; color: var(--muted, #708096); font: 11px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
.tech-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-modal-tags span { padding: 7px 10px; background: var(--blue, #6daafd); font: 11px var(--mono, monospace); }
body.modal-open { overflow: hidden; }

/* Event detail page */
.event-detail-hero { padding: 190px 0 105px; background: var(--ink, #07111f); color: #fff; }
.event-detail-hero.is-highlight { background: var(--blue, #6daafd); color: var(--ink, #07111f); }
.event-detail-head { max-width: 900px; }
.event-detail-head h1 { max-width: 820px; margin: 0 0 30px; font-size: clamp(48px, 8vw, 110px); line-height: .98; }
.event-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.event-detail-meta span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); font: 11px var(--mono, monospace); text-transform: uppercase; }
.event-detail-hero.is-highlight .event-detail-meta span { border-color: rgba(7,17,31,.35); }
.event-detail-content { padding: 80px 0 120px; background: var(--paper, #f6f9fc); }
.event-detail-image { height: min(52vw, 560px); margin-bottom: 70px; background-position: center; background-size: cover; }
.event-body { margin: 0 auto; }
.event-body p { font-size: 18px; line-height: 1.75; }
.event-detail-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--line, #dfe7f0); }
.event-gallery { position: relative; margin-bottom: 70px; overflow: hidden; }
.event-gallery-track { display: flex; transition: transform .45s ease; }
.event-gallery-slide { min-width: 100%; height: min(52vw, 560px); }
.event-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-gallery-prev, .event-gallery-next { position: absolute; top: calc(50% - 21px); width: 42px; height: 42px; border: 0; background: var(--ink, #07111f); color: #fff; font-size: 20px; cursor: pointer; }
.event-gallery-prev { left: 18px; }
.event-gallery-next { right: 18px; }
.event-gallery-dots { display: flex; justify-content: center; gap: 7px; padding-top: 16px; }
.event-gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #becbd8; cursor: pointer; }
.event-gallery-dots button.is-active { background: var(--blue-dark, #3f83df); }

@media (max-width: 650px) {
    .event-detail-hero { padding: 140px 0 75px; }
    .event-detail-content { padding: 50px 0 80px; }
    .event-detail-image { height: 240px; margin-bottom: 45px; }
    .event-gallery { margin-bottom: 45px; }
    .event-gallery-slide { height: 240px; }
    .event-body p { font-size: 16px; }
}

/* T-bot visitor assistant */
.tbot-widget { position: fixed; right: 24px; bottom: 24px; z-index: 9996; font-family: var(--sans, sans-serif); }
.tbot-launcher { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 10px; border: 0; border-radius: 999px; background: var(--ink, #07111f); color: #fff; box-shadow: 0 12px 30px rgba(7,17,31,.25); font-weight: 700; }
.tbot-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue, #6daafd); color: var(--ink, #07111f); }
.tbot-panel { display: none; position: absolute; right: 0; bottom: 58px; width: min(370px, calc(100vw - 32px)); overflow: hidden; background: #fff; color: var(--ink, #07111f); border: 1px solid var(--line, #dfe7f0); box-shadow: 0 20px 60px rgba(7,17,31,.25); }
.tbot-panel.is-open { display: block; }
.tbot-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; background: var(--ink, #07111f); color: #fff; }
.tbot-header strong, .tbot-header span { display: block; }
.tbot-header span { margin-top: 2px; color: #a8cdfb; font: 10px var(--mono, monospace); text-transform: uppercase; letter-spacing: .08em; }
.tbot-close { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.tbot-messages { display: flex; flex-direction: column; gap: 9px; height: 280px; overflow-y: auto; padding: 16px; background: var(--paper, #f6f9fc); }
.tbot-message { max-width: 88%; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.tbot-message.bot { align-self: flex-start; background: #e9f1fa; }
.tbot-message.user { align-self: flex-end; background: var(--blue, #6daafd); }
.tbot-quick-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px 4px; background: #fff; }
.tbot-quick-actions button { padding: 7px 9px; border: 1px solid var(--line, #dfe7f0); background: #fff; color: var(--ink, #07111f); font-size: 11px; cursor: pointer; }
.tbot-form { display: flex; gap: 8px; padding: 12px 16px 16px; background: #fff; }
.tbot-input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid var(--line, #dfe7f0); background: #fff; color: var(--ink, #07111f); font: inherit; font-size: 13px; }
.tbot-send { width: 42px; border: 0; background: var(--blue, #6daafd); color: var(--ink, #07111f); font-size: 20px; cursor: pointer; }
.tbot-send:disabled { opacity: .55; cursor: wait; }

@media (max-width: 650px) {
    .tbot-widget { right: 16px; bottom: 16px; }
    .tbot-panel { bottom: 57px; }
}

@media (max-width: 650px) {
    .tech-modal { padding: 40px 24px 30px; }
    .tech-modal-description { font-size: 15px; }
}

/* Product/job admin custom fields (front-end read-only extras) */
.product-result span.stat-empty { display: none; }
