.wt-discovery-panel,
.wt-discovery-next {
    position: relative;
    margin: 1.25rem 0 1.75rem;
    padding: 1.4rem;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(15, 108, 105, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(208, 113, 45, 0.14), transparent 22%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 229, 0.98));
    box-shadow: 0 22px 55px rgba(18, 42, 45, 0.12);
    color: #163234;
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

.wt-discovery-panel::before,
.wt-discovery-next::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(22, 50, 52, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 50, 52, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

.wt-discovery-head {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: start;
}

.wt-discovery-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(15, 108, 105, 0.12);
    color: #0f6c69;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wt-discovery-head h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.08;
}

.wt-discovery-head p,
.wt-discovery-state span,
.wt-discovery-case-copy p,
.wt-discovery-card p {
    margin: 0;
    color: #587073;
}

.wt-discovery-state {
    position: relative;
    z-index: 1;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(22, 50, 52, 0.08);
}

.wt-discovery-state strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #163234;
    font-size: 1.02rem;
}

.wt-discovery-chipbar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.2rem 0 1rem;
}

.wt-discovery-chip {
    display: inline-grid;
    gap: 0.2rem;
    min-width: 160px;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(22, 50, 52, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #163234;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wt-discovery-chip span {
    font-size: 0.95rem;
    font-weight: 800;
}

.wt-discovery-chip small {
    color: #60777b;
    font-size: 0.82rem;
}

.wt-discovery-chip:hover,
.wt-discovery-chip:focus-visible,
.wt-discovery-chip.is-active {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(15, 108, 105, 0.32);
    box-shadow: 0 14px 30px rgba(18, 42, 45, 0.08);
    background: linear-gradient(135deg, rgba(15, 108, 105, 0.09), rgba(255, 255, 255, 0.98));
}

.wt-discovery-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.wt-discovery-case {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(22, 50, 52, 0.08);
}

.wt-discovery-case-copy h3 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.15rem;
}

.wt-discovery-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wt-discovery-card {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(22, 50, 52, 0.08);
}

.wt-discovery-card-head {
    display: grid;
    gap: 0.25rem;
}

.wt-discovery-card-head strong {
    font-size: 1.08rem;
    line-height: 1.1;
}

.wt-discovery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.wt-discovery-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 108, 105, 0.08);
    color: #0f6c69;
    font-size: 0.76rem;
    font-weight: 800;
}

.wt-discovery-card .wt-button {
    width: fit-content;
}

.wt-discovery-next .wt-discovery-grid {
    margin-top: 1rem;
}

@media (max-width: 980px) {
    .wt-discovery-head,
    .wt-discovery-grid {
        grid-template-columns: 1fr;
    }

    .wt-discovery-chip {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .wt-discovery-panel,
    .wt-discovery-next {
        padding: 1rem;
        border-radius: 22px;
    }

    .wt-discovery-chipbar {
        display: grid;
    }
}
