/* Public tools pages use the same colors and typography as the Techvenation theme. */
.page-content .tvit-catalog,
.page-content .tvit-wrap {
    --tv-text: #18284a;
    --tv-muted: #50637e;
    --tv-blue: #254ec5;
    --tv-cyan: #2454bd;
    --tv-line: #dbe4f3;
    --tv-card: #fff;
    --tv-card2: #f3f7fd;
    color-scheme: light;
    color: var(--tv-text);
    font-family: inherit;
}

.page-content:has(.tvit-catalog) > .tvaes-tool-intro { display: none; }
.tvit-catalog [hidden] { display: none !important; }
.tvit-catalog-intro { max-width: 780px; margin-bottom: 1.65rem; }
.page-content .tvit-catalog h2,
.page-content .tvit-catalog h3 { color: var(--tv-text); letter-spacing: -.035em; }
.page-content .tvit-catalog h2 { margin: 0 0 .65rem; font-size: clamp(1.8rem, 3.4vw, 2.85rem); }
.page-content .tvit-catalog p { margin: 0; color: var(--tv-muted); line-height: 1.65; }
.page-content .tvit-catalog .tvit-catalog-note { margin-top: .5rem; font-size: .87rem; }
.tvit-catalog-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) auto;
    align-items: end;
    gap: .8rem 1rem;
    margin-bottom: 2rem;
    padding: clamp(.85rem, 2.5vw, 1.4rem);
    border: 1px solid var(--tv-line);
    border-radius: 14px;
    background: var(--tv-card);
}
.page-content .tvit-catalog-filters label {
    display: grid;
    gap: .35rem;
    color: var(--tv-text);
    font-weight: 700;
    font-size: .88rem;
}
.page-content .tvit-catalog-filters :is(input, select),
.page-content .tvit-wrap .tvit-form :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #a9b9d4;
    border-radius: 8px;
    background: #fff;
    color: var(--tv-text);
    font: inherit;
    font-size: 1rem;
    box-shadow: none;
}
.page-content .tvit-catalog .tvit-catalog-count {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: .88rem;
    white-space: nowrap;
}
.tvit-catalog-section { margin: clamp(1.75rem, 4vw, 3.15rem) 0; }
.page-content .tvit-catalog-section h3 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.page-content .tvit-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
    align-items: stretch;
    gap: .8rem;
    padding: 0;
    margin: .95rem 0 0;
    list-style: none;
}
.page-content .tvit-catalog-grid > li { list-style: none; margin: 0; }
.page-content .tvit-catalog-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    height: 100%;
    padding: clamp(.9rem, 1.65vw, 1.35rem);
    border: 1px solid var(--tv-line);
    border-radius: 12px;
    background: var(--tv-card);
    color: var(--tv-text);
    text-decoration: none;
}
.page-content .tvit-catalog-card:hover { border-color: #8ba7e2; background: #f9fbff; }
.tvit-catalog-card strong { font-size: 1.05rem; line-height: 1.35; }
.tvit-catalog-card > span { font-size: .88rem; line-height: 1.55; color: var(--tv-muted); }
.tvit-catalog-card .tvit-catalog-action { margin-top: auto; padding-top: .35rem; color: var(--tv-blue); font-weight: 700; }
.page-content .tvit-catalog-empty { padding: 1rem; border: 1px dashed #a9b9d4; border-radius: 12px; }

.page-content .tvit-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.page-content .tvit-wrap::before,
.page-content .tvit-wrap::after,
.page-content .tvit-wrap .tvit-hero::before,
.page-content .tvit-wrap .tvit-device-network::after,
.page-content .tvit-wrap .tvit-tool-card::after { display: none; }
.page-content .tvit-wrap :is(.tvit-hero, .tvit-device-network, .tvit-speedtest, .tvit-psi-shell, .tvit-cta,
    .tvit-download-hero, .tvit-download-section, .tvit-download-intro, .tvit-tool-card) {
    border: 1px solid var(--tv-line);
    border-radius: 14px;
    background: var(--tv-card2);
    box-shadow: none;
    color: var(--tv-text);
}
.page-content .tvit-wrap .tvit-hero { padding: clamp(1rem, 3vw, 1.75rem); }
.page-content .tvit-wrap :is(.tvit-hero h2, .tvit-download-copy h2) {
    margin: 0 0 .5rem;
    color: var(--tv-text);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    text-shadow: none;
}
.page-content .tvit-wrap > .tvit-hero .tvit-kicker { display: none; }
.page-content .tvit-wrap :is(h3, h4, .tvit-tool-card strong, .tvit-kv strong, .tvit-ip-location-info strong,
    .tvit-network-card strong, .tvit-speedtest .tvit-speed-number strong, .tvit-speed-metrics strong,
    .tvit-speed-transfer strong, .tvit-psi-meta strong, .tvit-psi-ring strong, .tvit-psi-metric strong,
    .tvit-psi-field-grid strong, .tvit-psi-audit summary, .tvit-packages strong, .tvit-location-title > strong,
    .tvit-download-faq summary) { color: var(--tv-text); text-shadow: none; }
.page-content .tvit-wrap :is(p, li, .tvit-tool-card > span, .tvit-cta span, .tvit-kv > div > span, .tvit-network-card > span,
    .tvit-network-card > small, .tvit-ip-location-info span, .tvit-speed-metrics span, .tvit-speed-transfer span,
    .tvit-speed-transfer small, .tvit-speed-quality span, .tvit-psi-score > span, .tvit-psi-field-status,
    .tvit-psi-metric > span, .tvit-psi-field-grid span, .tvit-packages small, .tvit-packages em,
    .tvit-monitor span, .tvit-monitor small, .tvit-muted) { color: var(--tv-muted); }
.page-content .tvit-wrap :is(.tvit-form, .tvit-kv > div, .tvit-subcard, .tvit-network-card, .tvit-ip-location,
    .tvit-ip-location-info > div, .tvit-myip-actions, .tvit-packages > div, .tvit-monitor, .tvit-score,
    .tvit-speedtest .tvit-speed-header, .tvit-speedtest .tvit-speed-console, .tvit-speed-metrics,
    .tvit-speed-transfer, .tvit-speed-quality, .tvit-psi-tabs, .tvit-psi-meta, .tvit-psi-score,
    .tvit-psi-metric, .tvit-psi-field-grid > div, .tvit-psi-audit, .tvit-download-card, .tvit-download-steps li) {
    background: var(--tv-card);
    border-color: var(--tv-line);
    color: var(--tv-text);
    box-shadow: none;
}
.page-content .tvit-wrap .tvit-form label { color: var(--tv-text); }
.page-content .tvit-wrap .tvit-form:has(> label:only-of-type):not(.tvit-pagespeed-form) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48rem;
}
.page-content .tvit-wrap .tvit-form:has(> label:only-of-type):not(.tvit-pagespeed-form) > button {
    justify-self: start;
}
.page-content .tvit-wrap .tvit-form input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--tv-blue); }
.page-content .tvit-wrap .tvit-form option { background: #fff; color: var(--tv-text); }
.page-content .tvit-wrap :is(.tvit-form button, .tvit-cta a, .tvit-speed-start, .tvit-myip-actions button,
    .tvit-psi-official, .tvit-download-primary) {
    min-height: 44px;
    background: #2c51cf !important;
    color: #fff !important;
    box-shadow: none;
}
.page-content .tvit-wrap :is(.tvit-download-secondary, .tvit-monitor button, .tvit-psi-tabs button.is-active, .tvit-tags span) {
    background: #eaf0ff;
    border-color: #c4d1ed;
    color: #23469f !important;
}
.page-content .tvit-wrap :is(.tvit-psi-tabs button, .tvit-tool-card b, .tvit-psi-audit summary b,
    .tvit-psi-meta > span, .tvit-psi-meta > b, .tvit-score em, .tvit-speed-phase, .tvit-speed-badge,
    .tvit-speed-number span, .tvit-speed-metrics small, .tvit-speed-quality strong, .tvit-map-note) { color: #28519f !important; }
.page-content .tvit-wrap .tvit-psi-ring::after { background: #fff; }
.page-content .tvit-wrap .tvit-speed-gauge text { fill: #50637e; }
.page-content .tvit-wrap :is(.tvit-loading, .tvit-notice) { background: #edf4ff; color: #233e72; border-color: #c5d5ef; box-shadow: none; }
.page-content .tvit-wrap :is(.tvit-error, .tvit-status-bad, .tvit-pill.bad) { background: #fff0f2; color: #952039; border-color: #edb6c1; box-shadow: none; }
.page-content .tvit-wrap :is(.tvit-status-good, .tvit-pill.ok, .tvit-live-dot) { background: #e6f7ef; color: #136647; border-color: #b6e2cf; box-shadow: none; }
.page-content .tvit-wrap :is(.tvit-notice a, .tvit-result a) { color: #244eb3; }
.page-content :is(.tvit-catalog, .tvit-wrap) :focus-visible { outline: 2px solid #2c51cf; outline-offset: 3px; }

@media (max-width: 700px) {
    .tvit-catalog-filters { grid-template-columns: minmax(0, 1fr); }
    .page-content .tvit-catalog .tvit-catalog-count { min-height: 0; }
    .page-content .tvit-wrap .tvit-form:has(> label:only-of-type):not(.tvit-pagespeed-form) > button {
        justify-self: stretch;
    }
}

.page-content .tvit-wrap .tvit-form button[data-tvit-load-example] {
    color:#2145a7 !important;
    background:#eef3ff !important;
    border:1px solid #b8c8ec;
}
