.tfxe {
    --tfxe-ink: #13283b;
    --tfxe-muted: #466076;
    --tfxe-accent: #065e58;
    --tfxe-line: #d4e0e5;
    color: var(--tfxe-ink);
    font-family: system-ui, sans-serif;
}
.tfxe [hidden] { display: none !important; }
.tfxe .tfxe-hero {
    background: #102b3c;
    color: #f3f9fa;
    border-radius: 16px;
    padding: clamp(1.5rem, 5vw, 3.5rem);
}
.tfxe .tfxe-hero h2 { color: inherit; font-size: clamp(2rem, 5vw, 3.2rem); }
.tfxe .tfxe-hero p { max-width: 58ch; }
.tfxe .tfxe-label { font-size: .83rem; font-weight: 700; letter-spacing: .035em; margin: 0; }
.tfxe .tfxe-hero .tfxe-label { color: #a4e4d8; }
.tfxe .tfxe-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) auto;
    gap: .8rem;
    align-items: end;
    padding: 1.15rem 0;
}
.tfxe .tfxe-filters label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 650; min-width: 0; }
.tfxe input, .tfxe select {
    color: var(--tfxe-ink);
    background: white;
    padding: .55rem;
    font: inherit;
    min-width: 0;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #8198a5;
    border-radius: 6px;
}
.tfxe button { cursor: pointer; font: inherit; min-height: 44px; }
.tfxe .tfxe-filters button { color: white; background: var(--tfxe-accent); padding: .55rem .9rem; border: 1px solid var(--tfxe-accent); border-radius: 6px; }
.tfxe a { color: var(--tfxe-accent); text-underline-offset: .17em; }
.tfxe :focus-visible { outline: 3px solid #a35403; outline-offset: 3px; }
.tfxe .tfxe-results-bar, .tfxe .tfxe-actions, .tfxe .tfxe-pagination { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.tfxe .tfxe-results-bar { justify-content: space-between; }
.tfxe .tfxe-shortlist summary { cursor: pointer; font-weight: 650; }
.tfxe .tfxe-shortlist p { color: var(--tfxe-muted); font-size: .9rem; }
.tfxe .tfxe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 1rem; }
.tfxe .tfxe-card { display: flex; flex-direction: column; border: 1px solid var(--tfxe-line); border-radius: 12px; padding: 1.15rem; background: white; }
.tfxe .tfxe-card h3 { font-size: 1.25rem; margin: .45rem 0 0; }
.tfxe .tfxe-card .tfxe-actions { margin-top: auto; }
.tfxe .tfxe-actions { font-size: .93rem; padding-top: .5rem; }
.tfxe .tfxe-save { color: var(--tfxe-accent); background: white; border: 1px solid var(--tfxe-accent); border-radius: 6px; padding: .4rem .65rem; }
.tfxe .tfxe-save[aria-pressed="true"] { background: #dff4ee; }
.tfxe .tfxe-metrics { display: grid; gap: .65rem; font-size: .92rem; }
.tfxe .tfxe-metrics dt { font-weight: 700; }
.tfxe .tfxe-metrics dd { margin: 0; color: var(--tfxe-muted); white-space: pre-line; }
.tfxe .tfxe-pagination { justify-content: center; margin: 1.2rem 0; }
.tfxe .tfxe-next { margin-top: 1.6rem; background: #edf6f5; border-radius: 12px; padding: 1.2rem; }
.tfxe .tfxe-next h3 { margin-top: 0; }
.tfxe .tfxe-next a { display: inline-block; margin-right: 1rem; }
@media (max-width: 760px) {
    .tfxe .tfxe-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .tfxe .tfxe-filters { grid-template-columns: minmax(0, 1fr); }
}
.tfxe .tfxe-more-filters { grid-column: 1 / -2; }
.tfxe .tfxe-filters > button { grid-column: -2 / -1; }
.tfxe .tfxe-more-filters summary, .tfxe .tfxe-guidance summary { cursor: pointer; font-weight: 650; }
.tfxe .tfxe-facet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: .6rem 0; }
.tfxe .tfxe-method { color: var(--tfxe-muted); font-size: .9rem; }
.tfxe .tfxe-guidance { border-block: 1px solid var(--tfxe-line); padding: .8rem 0; }
@media (max-width: 760px) {
    .tfxe .tfxe-facet-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .tfxe .tfxe-more-filters, .tfxe .tfxe-filters > button { grid-column: 1; }
}
@media (min-width: 761px) {
    .tfxe .tfxe-filters > button { grid-row: 1; }
    .tfxe .tfxe-more-filters { grid-column: 1 / -1; }
}
.tfxe .tfxe-sector-links { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1rem; }
.tfxe .tfxe-sector-links a { border: 1px solid var(--tfxe-line); border-radius: 99px; padding: .4rem .8rem; font-size: .9rem; text-decoration: none; }
.tfxe .tfxe-sector-links a:hover { background: #edf6f5; text-decoration: underline; }
