.ec-finder {
    --ec-ink: #101f37;
    --ec-muted: #536174;
    --ec-blue: #134d92;
    --ec-rule: #d5dce3;
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
    background: #f3f6fc;
    border-bottom: 1px solid var(--ec-rule);
}
.ec-layout {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.35fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
}
.ed-home .ec-intro h2 { max-width: 12ch; font: 700 clamp(2.25rem, 4vw, 3.75rem)/1.06 'Bricolage Grotesque', var(--font-heading); letter-spacing: -.027em; }
.ed-home .ec-intro > p { max-width: 36ch; margin-top: 1rem; color: var(--ec-muted); font-size: 1.05rem; }
.ed-home .ec-intro [lang="ta"] { font-size: .9rem; line-height: 1.85; }
.ec-support { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ec-rule); }
.ec-phone { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; min-height: 44px; font-weight: 650; }
.ec-phone span { font-variant-numeric: tabular-nums; }
.ed-home .ec-resource { margin-top: .3rem; color: var(--ec-muted); font-size: .9rem; line-height: 1.5; }
.ec-resource a, .ec-fallback a { text-decoration: underline; text-underline-offset: .2em; }
.ec-catalog {
    min-width: 0; background: #fff; color: var(--ec-ink);
    border: 1px solid var(--ec-rule); border-radius: 14px;
}
.ec-search { padding: clamp(1rem, 2.3vw, 1.6rem) clamp(1rem, 2.3vw, 1.6rem) .5rem; }
.ec-search label { display: block; margin-bottom: .5rem; color: var(--ec-ink); font-size: 1rem; font-weight: 700; }
.ec-field { position: relative; }
.ec-field::before, .ec-field::after { content: ""; position: absolute; pointer-events: none; }
.ec-field::before { width: 13px; height: 13px; top: calc(50% - 8px); left: 15px; border: 1.7px solid #596e89; border-radius: 50%; }
.ec-field::after { width: 7px; height: 1.7px; top: calc(50% + 5px); left: 25px; background: #596e89; transform: rotate(48deg); }
.ec-search input {
    display: block; width: 100%; min-height: 48px; padding: .65rem .85rem .65rem 2.7rem;
    border: 1px solid #98a8ba; border-radius: 7px; background: #fff;
    color: var(--ec-ink); font: inherit; font-size: 1rem;
}
.ec-search input::placeholder { color: #5a687b; }
.ec-search input::-webkit-search-cancel-button { display: none; }
.ec-search input:focus-visible, .ec-finder :is(button,summary,a):focus-visible {
    outline: 3px solid #a46619; outline-offset: 2px;
}
.ec-feedback { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ec-feedback p { color: var(--ec-muted); font-size: .9rem; }
.ec-clear {
    flex: none; padding: .35rem .15rem; min-height: 44px; border: 0; background: transparent;
    color: var(--ec-blue); font: 650 .89rem/1.35 var(--font-body, "DM Sans", sans-serif);
    text-decoration: underline; text-underline-offset: .22em; cursor: pointer;
}
.ec-finder [hidden] { display: none; }
.ec-group { border-top: 1px solid var(--ec-rule); }
.ec-group:first-child { border-top: 0; }
.ec-search:not([hidden]) + #ec-groups .ec-group:first-child { border-top: 1px solid var(--ec-rule); }
.ed-home .ec-group summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 12px;
    min-height: 58px; padding: .85rem clamp(1rem, 2.3vw, 1.6rem); cursor: pointer; list-style: none;
    color: var(--ec-ink); font: 650 clamp(1.05rem, 1.5vw, 1.21rem)/1.35 var(--font-body, "DM Sans", sans-serif);
    letter-spacing: -.015em;
}
.ec-group summary::-webkit-details-marker { display: none; }
.ec-group summary:hover { background: #f7f8fa; }
.ec-group[open] > summary { background: #eef2f8; }
.ec-group:last-child:not([open]) > summary { border-radius: 0 0 14px 14px; }
.ec-search[hidden] + #ec-groups .ec-group:first-child > summary { border-radius: 14px 14px 0 0; }
.ec-count { color: var(--ec-muted); font: 500 .82rem/1.4 var(--font-body, "DM Sans", sans-serif); letter-spacing: 0; white-space: nowrap; }
.ec-chevron { width: 8px; height: 8px; border: solid var(--ec-blue); border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg); }
.ec-group[open] .ec-chevron { transform: translateY(2px) rotate(225deg); }
.ec-group ul { list-style: none; padding: 0 clamp(1rem, 2.3vw, 1.6rem); }
.ec-group li {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(80px,.36fr) auto;
    gap: .9rem; align-items: center; padding: .9rem 0;
}
.ec-group li + li { border-top: 1px solid #e3e8ec; }
.ec-group li[hidden] { display: none; }
.ed-home .ec-group h3 { color: var(--ec-ink); font: 650 1rem/1.45 var(--font-body,"DM Sans",sans-serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ed-home .ec-fee { color: var(--ec-muted); font-size: .82rem; }
.ec-fee strong { display: block; color: var(--ec-ink); font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.ed-home .ec-group li a {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
    padding: .35rem .75rem; border: 1px solid #bccadb; border-radius: 6px;
    color: var(--ec-blue); background: white; font-size: .94rem; font-weight: 650;
}
.ec-group li a:hover { border-color: #134d92; background: #f2f5fb; }
.ec-resource a:hover, .ec-phone:hover, .ec-fallback a:hover { text-decoration: underline; text-underline-offset: .2em; }
.ec-fallback { padding: clamp(1.25rem, 3vw, 2rem); }
.ed-home .ec-fallback p { color: var(--ec-muted); margin-block: .5rem .8rem; }
@media (max-width: 760px) {
    .ec-layout { grid-template-columns: 1fr; gap: 1.4rem; }
    .ed-home .ec-intro h2 { max-width: none; }
    .ed-home .ec-intro > p { max-width: 58ch; }
    .ec-support { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; margin-top: .75rem; padding-top: .5rem; }
    .ed-home .ec-resource { margin: 0; }
}
@media (max-width: 520px) {
    .ec-group li { grid-template-columns: minmax(0,1fr) auto; gap: .15rem .65rem; }
    .ec-group li h3 { grid-area: 1 / 1; }
    .ec-group li .ec-fee { grid-area: 2 / 1; }
    .ec-fee strong { display: inline; margin-left: .25rem; font-size: .92rem; }
    .ec-group li a { grid-column: 2; grid-row: 1 / 3; }
    .ec-feedback { align-items: center; }
}

