.ts-score-landing {
    display: grid;
    gap: 32px;
}

.ts-score-landing *,
.ts-score-landing *::before,
.ts-score-landing *::after {
    box-sizing: border-box;
}

.ts-hero-search *,
.ts-hero-search *::before,
.ts-hero-search *::after {
    box-sizing: border-box;
}

.ts-hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    justify-items: stretch;
    align-items: start;
    padding: 38px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.05);
}

.ts-hero-search__content,
.ts-hero-search__panel {
    min-width: 0;
    width: 100%;
}

.ts-hero-search__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0;
    justify-items: start;
    text-align: left;
}

.ts-hero-search__content > .ts-eyebrow,
.ts-hero-search__content > h1,
.ts-hero-search__content > .ts-hero-search__lead,
.ts-hero-search__content > .ts-hero-search__chips {
    grid-column: 1;
    justify-self: start;
    text-align: left;
}

.ts-hero-search__content .ts-eyebrow {
    margin-bottom: 0;
}

.ts-hero-search__content h1 {
    margin: 0;
    width: 100%;
    max-width: none;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.ts-hero-search__lead {
    margin: 0;
    width: 100%;
    max-width: none;
    color: #64748b;
    font-size: 1.08rem;
    line-height: 1.65;
}

.ts-hero-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.ts-hero-search__chips span {
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 0.98rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ts-hero-search__panel {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ts-score-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px);
    gap: 24px;
    align-items: stretch;
    padding: 32px;
    border: 1px solid var(--ts-border);
    border-radius: 28px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
}

.ts-score-hero__content,
.ts-score-hero__form,
.ts-score-search-form,
.ts-score-search-grid,
.ts-field,
.ts-field input {
    min-width: 0;
}

.ts-score-hero__form {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ts-score-hero__content h1,
.ts-section-head h2,
.ts-score-cta__content h2 {
    margin: 0;
    line-height: 1.15;
}

.ts-score-hero__lead,
.ts-section-head p,
.ts-score-benefit span,
.ts-guide-card p,
.ts-score-search-form p,
.ts-score-cta__content p {
    color: #475569;
}

.ts-score-benefits,
.ts-score-guide {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.ts-score-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ts-score-benefit,
.ts-guide-card {
    padding: 18px;
    border: 1px solid var(--ts-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
}

.ts-score-benefit {
    display: grid;
    gap: 6px;
}

.ts-score-search-form {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding: 26px 28px 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.08);
}

.ts-score-search-form__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 16px;
    align-items: center;
}

.ts-score-search-form__head h2 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}

.ts-score-search-form__badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.ts-score-search-form__head p {
    grid-column: 1 / -1;
    margin: 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.6;
}

.ts-score-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    width: 100%;
    align-items: start;
}

.ts-score-search-grid > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.ts-field {
    display: grid;
    gap: 8px;
    color: #334155;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-weight: 600;
}

.ts-field input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 15px 16px;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

.ts-field span {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.ts-field input::placeholder {
    color: #94a3b8;
    text-overflow: ellipsis;
}

.ts-field input:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
    transform: translateY(-1px);
}

.ts-hero-search .ts-score-search-form {
    margin-top: 0;
}

.ts-score-search-actions {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.ts-score-search-actions button {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ts-score-search-actions button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
}

.ts-score-search-note {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

.ts-section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.ts-score-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ts-guide-card--safe {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.ts-guide-card--match {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.ts-guide-card--consider {
    border-color: #fde68a;
    background: #fffbeb;
}

.ts-score-results-panel {
    padding: 24px;
    border: 1px solid var(--ts-border);
    border-radius: 24px;
    background: #fff;
}

.ts-score-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ts-score-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ts-border);
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.ts-score-tab.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.ts-score-tab__count {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    text-align: center;
}

.ts-score-tab.is-active .ts-score-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

.ts-score-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.ts-score-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--ts-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ts-score-card__top,
.ts-score-card__meta,
.ts-score-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ts-score-card__logo {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.ts-score-card__heading {
    flex: 1;
    min-width: 180px;
}

.ts-score-card__heading h3,
.ts-score-card__heading p,
.ts-guide-card h3,
.ts-card h3 {
    margin: 0;
}

.ts-score-card__heading p,
.ts-score-card__meta,
.ts-score-card__history,
.ts-faq-item p {
    color: #475569;
}

.ts-score-card__badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #eff6ff;
    color: #1d4ed8;
}

.ts-score-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ts-score-card__stats > div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ts-score-card__stats strong {
    font-size: 1.15rem;
}

.ts-score-card__stats span {
    color: #64748b;
    font-size: 0.92rem;
}

.ts-secondary-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.ts-faq-list {
    display: grid;
    gap: 14px;
}

.ts-faq-item {
    padding: 18px 20px;
    border: 1px solid var(--ts-border);
    border-radius: 18px;
    background: #fff;
}

.ts-faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.ts-score-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
}

.ts-score-cta .ts-eyebrow,
.ts-score-cta .ts-score-cta__content p {
    color: rgba(255, 255, 255, 0.85);
}

.ts-score-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.ts-score-cta__actions .ts-secondary-link,
.ts-score-cta__actions .ts-header__cta {
    color: #fff;
}

.ts-score-empty,
.ts-score-loading {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    color: #475569;
}

@media (max-width: 1080px) {
    .ts-score-hero,
    .ts-score-cta {
        grid-template-columns: 1fr;
    }

    .ts-score-benefits,
    .ts-score-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ts-score-search-grid,
    .ts-score-guide,
    .ts-score-benefits,
    .ts-score-card__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ts-hero-search {
        padding: 26px 20px 22px;
        border-radius: 24px;
    }

    .ts-hero-search__content h1 {
        max-width: 100%;
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .ts-hero-search__lead {
        font-size: 1rem;
    }

    .ts-score-card__stats {
        grid-template-columns: 1fr;
    }

    .ts-score-hero,
    .ts-score-results-panel,
    .ts-score-cta {
        padding: 20px;
    }

    .ts-score-search-form {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .ts-score-search-form__head h2 {
        font-size: 1.5rem;
    }

    .ts-score-search-form__head {
        grid-template-columns: 1fr;
    }

    .ts-field input {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .ts-score-search-actions button {
        padding: 16px 18px;
        font-size: 1rem;
    }
}
