/**
 * Home — Technology Stack & Platforms
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 * Layout: domain tabs + KEY TECHNOLOGIES pill cloud
 */

.hts-section {
    --hts-primary: #00332b;
    --hts-primary-mid: #004236;
    --hts-accent: #f7d15e;
    --hts-bg: #e6f4f9;
    --hts-card: #f0f8fb;
    --hts-cream: #f5f0e8;
    --hts-text: #1a3d36;
    --hts-muted: #4a6b65;
    --hts-white: #ffffff;
    --hts-line: rgba(0, 51, 43, 0.1);
    --hts-radius: 16px;
    --hts-shadow: 0 14px 40px rgba(0, 51, 43, 0.08);
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, var(--hts-white) 0%, var(--hts-bg) 48%, var(--hts-white) 100%);
    position: relative;
    overflow: hidden;
}

.hts-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 51, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 43, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 10%, #000 18%, transparent 72%);
    pointer-events: none;
}

.hts-section__head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2rem;
    position: relative;
}

.hts-section__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hts-primary-mid);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 66, 54, 0.1);
    border-left: 3px solid var(--hts-accent);
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.hts-section__title {
    font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--hts-text);
    line-height: 1.2;
    margin: 0 0 0.65rem;
}

.hts-section__title-accent {
    color: var(--hts-primary);
}

.hts-section__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hts-muted);
    margin: 0 0 0.35rem;
}

.hts-section__subtitle--secondary {
    font-size: 0.9375rem;
    color: #64748b;
}

.hts-section__subtitle--secondary strong,
.hts-section__subtitle--secondary b {
    color: var(--hts-primary);
}

.hts-empty {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--hts-muted);
    margin: 0;
}

.hts-shell {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 2.05fr);
    gap: 1.35rem;
    align-items: stretch;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Sidebar domains */
.hts-sidebar {
    background: var(--hts-cream);
    border-radius: var(--hts-radius);
    padding: 1.35rem 1.15rem;
    border: 1px solid rgba(0, 51, 43, 0.06);
}

.hts-sidebar__heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hts-primary);
    margin-bottom: 0.9rem;
}

.hts-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hts-tab {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    text-align: left;
    color: var(--hts-text);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hts-tab:hover {
    background: rgba(255, 255, 255, 0.65);
}

.hts-tab.is-active {
    background: var(--hts-primary);
    color: var(--hts-white);
    box-shadow: 0 8px 20px rgba(0, 51, 43, 0.18);
}

.hts-tab__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 51, 43, 0.08);
    color: var(--hts-muted);
}

.hts-tab.is-active .hts-tab__icon {
    background: rgba(247, 209, 94, 0.28);
    color: var(--hts-white);
}

.hts-tab__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hts-tab__label {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.hts-tab__chev {
    flex-shrink: 0;
    opacity: 0.5;
}

.hts-tab.is-active .hts-tab__chev {
    opacity: 1;
    color: var(--hts-white);
}

/* Content panel */
.hts-panels {
    min-width: 0;
}

.hts-pane {
    display: none;
    background: var(--hts-white);
    border: 1px solid var(--hts-line);
    border-radius: var(--hts-radius);
    box-shadow: var(--hts-shadow);
    padding: 1.5rem 1.4rem 1.4rem;
    min-height: 280px;
}

.hts-pane.is-visible {
    display: block;
}

.hts-pane__head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.hts-pane__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hts-primary);
    color: var(--hts-white);
    overflow: hidden;
}

.hts-pane__icon img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.hts-pane__title {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hts-primary);
    line-height: 1.25;
    margin: 0 0 0.35rem;
}

.hts-pane__desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--hts-muted);
    margin: 0;
}

.hts-pane__empty {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

/* KEY TECHNOLOGIES divider + pills */
.hts-keys__label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.hts-keys__line {
    flex: 1;
    height: 1px;
    background: rgba(0, 51, 43, 0.12);
}

.hts-keys__text {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hts-muted);
}

.hts-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hts-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.55rem 1rem;
    background: var(--hts-white);
    border: 1px solid rgba(0, 51, 43, 0.12);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 51, 43, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hts-pill:hover {
    border-color: rgba(0, 66, 54, 0.22);
    box-shadow: 0 6px 16px rgba(0, 51, 43, 0.08);
    transform: translateY(-1px);
}

.hts-pill--has-icon {
    padding-left: 0.55rem;
}

.hts-pill__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hts-card);
    border: 1px solid rgba(0, 51, 43, 0.08);
}

.hts-pill__icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
}

.hts-pill__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hts-primary);
    line-height: 1.35;
    word-break: break-word;
}

/* Tablet */
@media (max-width: 991.98px) {
    .hts-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hts-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .hts-tab {
        flex: 0 0 auto;
        width: auto;
        max-width: 85vw;
        min-height: 44px;
    }

    .hts-tab__chev {
        display: none;
    }

    .hts-pane {
        min-height: 0;
        padding: 1.25rem 1.15rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .hts-section {
        padding: 2.75rem 0 3rem;
    }

    .hts-section__head {
        margin-bottom: 1.35rem;
    }

    .hts-section__title {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    }

    .hts-section__subtitle {
        font-size: 0.9375rem;
    }

    .hts-sidebar {
        padding: 1rem 0.9rem;
        border-radius: 14px;
    }

    .hts-pane {
        border-radius: 14px;
        padding: 1.1rem 1rem 1.15rem;
    }

    .hts-pane__head {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .hts-pane__icon {
        width: 42px;
        height: 42px;
    }

    .hts-keys__label {
        gap: 0.6rem;
        margin-bottom: 0.85rem;
    }

    .hts-pills {
        gap: 0.5rem;
    }

    .hts-pill {
        padding: 0.5rem 0.85rem;
        min-height: 40px;
    }

    .hts-pill--has-icon {
        padding-left: 0.45rem;
    }

    .hts-pill__name {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575.98px) {
    .hts-section {
        padding: 2.35rem 0 2.6rem;
    }

    .hts-tab__label {
        font-size: 0.8125rem;
    }

    .hts-pill {
        max-width: 100%;
    }
}

@media (hover: none), (pointer: coarse) {
    .hts-pill:active {
        transform: scale(0.98);
    }

    .hts-tab:active {
        opacity: 0.92;
    }
}
