/* Platform 88.2.5 — Tools index & category hero */

.fe8825-tools {
    --fe8825-tools-accent: #2563eb;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 35%, #f8fafc 100%);
    min-height: 100%;
}

.fe8825-tools-hero {
    padding: 1.25rem 0 1rem;
}

.fe8825-tools-hero__panel {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.35rem 1.25rem;
    border-radius: var(--eds-radius-xl, 1rem);
    background: linear-gradient(135deg, #0052cc 0%, #1d4ed8 52%, #4f46e5 100%);
    color: #fff;
    box-shadow: var(--eds-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.12));
    overflow: hidden;
}

.fe8825-tools-hero__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.fe8825-tools-hero__panel--category {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--fe8825-tools-accent) 88%, #0f172a) 0%,
        #1d4ed8 48%,
        #312e81 100%
    );
}

.fe8825-tools-hero__panel--category::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--fe8825-tools-accent);
    border-radius: var(--eds-radius-xl, 1rem) 0 0 var(--eds-radius-xl, 1rem);
}

@media (min-width: 768px) {
    .fe8825-tools-hero__panel {
        display: grid;
        grid-template-columns: 1fr minmax(15rem, 21rem);
        align-items: center;
        gap: 1.75rem;
        padding: 1.5rem 1.75rem;
    }
}

.fe8825-tools-hero__main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.fe8825-tools-hero__aside {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .fe8825-tools-hero__aside {
        justify-content: center;
    }
}

.fe8825-tools-hero__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    color: #bfdbfe;
}

.fe8825-tools-hero__crumb a {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.2s;
}

.fe8825-tools-hero__crumb a:hover {
    color: #fff;
}

.fe8825-tools-hero__crumb i {
    font-size: 0.55rem;
    opacity: 0.75;
}

.fe8825-tools-hero__crumb span[aria-current] {
    color: #fff;
    font-weight: 600;
}

.fe8825-tools-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    padding: 0.22rem 0.7rem;
    border-radius: var(--eds-radius-full, 9999px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #dbeafe;
}

.fe8825-tools-hero__title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.45rem;
}

.fe8825-tools-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--eds-radius-lg, 0.75rem);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.2rem;
    color: #fff;
}

.fe8825-tools-hero__panel--category .fe8825-tools-hero__icon {
    background: color-mix(in srgb, var(--fe8825-tools-accent) 35%, transparent);
    border-color: color-mix(in srgb, var(--fe8825-tools-accent) 55%, #fff);
    color: #fff;
}

.fe8825-tools-hero__title {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.fe8825-tools-hero__subtitle {
    margin: 0 0 0.85rem;
    max-width: 36rem;
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    line-height: 1.55;
    color: #bfdbfe;
}

.fe8825-tools-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fe8825-tools-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--eds-radius-full, 9999px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.fe8825-tools-hero__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.fe8825-tools-hero__btn--primary {
    background: #fff;
    border-color: #fff;
    color: #1d4ed8;
}

.fe8825-tools-hero__btn--primary:hover {
    background: #eff6ff;
    color: #1e40af;
}

.fe8825-tools-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    min-width: 0;
}

.fe8825-tools-hero__aside .fe8825-tools-hero__stats {
    margin-top: 0;
}

@media (max-width: 767px) {
    .fe8825-tools-hero__aside {
        margin-top: 0.15rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .fe8825-tools-hero__stats {
        padding-top: 0;
        border-top: 0;
    }

    .fe8825-tools-hero__panel--category .fe8825-tools-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fe8825-tools-hero__stat {
    text-align: center;
    padding: 0.6rem 0.4rem;
    border-radius: var(--eds-radius-md, 0.5rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.fe8825-tools-hero__stat-value {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.fe8825-tools-hero__stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93c5fd;
}

.fe8825-tools-body {
    padding: 1.25rem 0 2.5rem;
}

.fe8825-tools-body .container {
    max-width: 72rem;
}

/* Hero tools search */
.fe8825-tools-search {
    position: relative;
    margin: 0;
    max-width: none;
    width: 100%;
}

.fe8825-tools-hero__aside .fe8825-tools-search__field {
    border-radius: var(--eds-radius-lg, 0.75rem);
}

.fe8825-tools-hero__aside .fe8825-tools-search__dropdown {
    left: 0;
    right: 0;
}

.fe8825-tools-search__form {
    margin: 0;
}

.fe8825-tools-search__field {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--eds-radius-full, 9999px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.fe8825-tools-search__field:focus-within {
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.fe8825-tools-search__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.9rem;
    padding-left: 0.35rem;
}

.fe8825-tools-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.35rem;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
}

.fe8825-tools-search__input::placeholder {
    color: #94a3b8;
}

.fe8825-tools-search__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.3rem;
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: var(--eds-radius-full, 9999px);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.fe8825-tools-search__submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.fe8825-tools-search__submit-icon {
    display: none;
}

@media (max-width: 480px) {
    .fe8825-tools-search__submit-text {
        display: none;
    }

    .fe8825-tools-search__submit {
        padding: 0.45rem 0.75rem;
    }

    .fe8825-tools-search__submit-icon {
        display: inline;
    }
}

.fe8825-tools-search__dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 18rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--eds-radius-lg, 0.75rem);
    box-shadow: var(--eds-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.12));
}

.fe8825-tools-search__dropdown[hidden] {
    display: none !important;
}

.fe8825-tools-search__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.fe8825-tools-search__item:last-child {
    border-bottom: 0;
}

.fe8825-tools-search__item:hover,
.fe8825-tools-search__item.is-active {
    background: #eff6ff;
}

.fe8825-tools-search__item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.fe8825-tools-search__item-main strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.fe8825-tools-search__item-main mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.1em;
    border-radius: 0.15rem;
}

.fe8825-tools-search__item-cat {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.15rem 0.45rem;
    border-radius: var(--eds-radius-full, 9999px);
}

.fe8825-tools-search__item-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fe8825-tools-search__empty {
    padding: 0.85rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
