/* One field treatment across TopFxRanking pages. Hover stays pale; focus uses the coral accent. */
:is(.tfr-site, .tfr-site.tfr-inner) :is(input:not(:where([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="range"], [type="file"])), textarea, select) {
    border: 1px solid #b7c4d9 !important;
    box-shadow: none !important;
    transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease !important;
}

@media (hover: hover) {
    :is(.tfr-site, .tfr-site.tfr-inner) :is(input:not(:where([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="range"], [type="file"])), textarea, select):hover:not(:where(:focus, :disabled)) {
        background-color: #f7f9fc !important;
        border-color: #aebed2 !important;
    }
}

:is(.tfr-site, .tfr-site.tfr-inner) :is(input:not(:where([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="range"], [type="file"])), textarea, select):focus {
    outline: none !important;
    background-color: #fff5f0 !important;
    border-color: #c9472b !important;
    box-shadow: none !important;
}

:is(.tfr-site, .tfr-site.tfr-inner) :is(input:not(:where([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="range"], [type="file"])), textarea, select):focus-visible {
    outline: none !important;
    border-color: #c9472b !important;
    box-shadow: none !important;
}

:is(.tfr-site, .tfr-site.tfr-inner) :is(.tfr-select__trigger, .dropdown__button, [role="combobox"]) {
    box-shadow: none !important;
    transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease !important;
}
:is(.tfr-site, .tfr-site.tfr-inner) :is(.tfr-select__trigger, .dropdown__button, [role="combobox"]):focus-visible,
:is(.tfr-site, .tfr-site.tfr-inner) :is(.tfr-select__trigger, .dropdown__button, [role="combobox"])[aria-expanded="true"] {
    outline: none !important;
    border-color: #c9472b !important;
    background-color: #fff5f0 !important;
    box-shadow: none !important;
}
@media (hover: hover) {
    :is(.tfr-site, .tfr-site.tfr-inner) :is(.tfr-select__trigger, .dropdown__button, [role="combobox"]):hover:not(:focus-visible):not([aria-expanded="true"]) {
        border-color: #aebed2 !important;
        background-color: #f7f9fc !important;
    }
}

:is(.tfr-site, .tfr-site.tfr-inner) :is(.search-container, .search-container-find-broker, .comparison-broker-search, .tfr-detail-search__field):has(.search-input:focus, input:focus) {
    border-color: #c9472b !important;
    box-shadow: none !important;
}

/* Search shells own their border and focus state; the text field must not draw a second one. */
.tfr-site :is(.search-container, .search-container-find-broker, .comparison-broker-search, .tfr-detail-search__field, .tfr-preferences__search) input:not([type="hidden"]),
.tfr-site :is(.search-container, .search-container-find-broker, .comparison-broker-search, .tfr-detail-search__field, .tfr-preferences__search) input:not([type="hidden"]):is(:hover, :focus, :focus-visible) {
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Directory hero forms have no bordered shell, so their input keeps the visible field border. */
.tfr-site .brokers-list-hero__search .search-container input:not([type="hidden"]),
.tfr-site .brokers-list-hero__search .search-container input:not([type="hidden"]):is(:hover, :focus, :focus-visible) {
    border: 1px solid #b7c4d9 !important;
    background: #fff !important;
}
.tfr-site .brokers-list-hero__search .search-container input:not([type="hidden"]):focus {
    border-color: #c9472b !important;
    background: #fff5f0 !important;
}

/* Remove the browser's rectangular focus outline from the rounded broker slot. */
.tfr-site.tfr-page--comparison-index .comparison-add-broker-btn { outline: none !important; box-shadow: none !important; }
.tfr-site.tfr-page--comparison-index .comparison-add-broker-btn:focus-visible {
    outline: none !important;
    border-color: #c9472b !important;
    background: #fff8f5;
    box-shadow: none !important;
}

/* Numbered native FAQ disclosures shared by all single pages. */
.tfr-inner .tfr-review-faq-kicker { color: #b83f24; font-size: 13px; font-weight: 600; line-height: 1.5; }
.tfr-inner .tfr-review-faq-list { width: 100%; }
.tfr-inner .tfr-review-question { overflow: hidden; border-bottom: 1px solid #dfe4ec; box-sizing: border-box; transition: background-color 300ms ease; }
.tfr-inner .tfr-review-question[open] { border-radius: 8px; background: #f4f6fa; }
.tfr-inner .tfr-review-question summary { display: flex; align-items: center; gap: 16px; padding: 22px 18px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.5; }
.tfr-inner .tfr-review-question summary::-webkit-details-marker { display: none; }
.tfr-inner .tfr-review-question summary:focus-visible { outline: none; border: 1px solid #c9472b; border-radius: 5px; background: #fff5f0; }
.tfr-inner .tfr-question-number { flex: none; color: #b83f24; font-size: 11px; font-variant-numeric: tabular-nums; }
.tfr-inner .tfr-question-toggle { position: relative; display: grid; flex: none; place-items: center; width: 28px; height: 28px; margin-inline-start: auto; border-radius: 50%; background: #172641; color: #fff; font-size: 0; }
.tfr-inner .tfr-question-toggle::before, .tfr-inner .tfr-question-toggle::after { position: absolute; width: 10px; height: 2px; background: currentColor; content: ''; transition: transform 300ms ease; }
.tfr-inner .tfr-question-toggle::after { transform: rotate(90deg); }
.tfr-inner .tfr-review-question[open] .tfr-question-toggle::after { transform: rotate(90deg) scaleX(0); }
.tfr-inner .tfr-review-question[data-expanded="false"] .tfr-question-toggle::after { transform: rotate(90deg); }
.tfr-inner .tfr-question-answer { padding: 0 62px 24px 48px; color: #47566c; font-size: 15px; line-height: 1.8; }
.tfr-inner .tfr-question-answer .admin-content { color: inherit; font-size: inherit; line-height: inherit; }
.tfr-inner .tfr-rating label > span { border: 1px solid #b7c4d9; box-shadow: none; transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
.tfr-inner .tfr-rating input:focus-visible + span { outline: none !important; border-color: #c9472b !important; background: #fff5f0; box-shadow: none !important; }
@media (hover: hover) {
    .tfr-inner .tfr-review-question summary:hover:not(:focus-visible) { background: #edf1f6; }
    .tfr-site .tfr-comment-list__more:hover:not(:focus-visible) { background: #f7f9fc; border-color: #aebed2; }
    .tfr-inner .tfr-rating label:hover > span { background: #f7f9fc; border-color: #aebed2; }
}
@media (max-width: 600px) {
    .tfr-inner .tfr-review-question summary { gap: 12px; padding: 18px 12px; font-size: 15px; }
    .tfr-inner .tfr-question-answer { padding: 0 18px 22px 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .tfr-site :where(input, textarea, select), .tfr-site :is(.tfr-select__trigger, .dropdown__button, [role="combobox"]), .tfr-inner .tfr-review-question, .tfr-inner .tfr-question-toggle::after { transition: none !important; }
}

/* The broker review's Show all action is a quiet, easy to find control. */
.tfr-site .tfr-comment-list__more--all { display: flex; width: 124px; height: 108px; flex-direction: column; justify-content: center; gap: 8px; padding: 12px; border: 1px solid #b7c4d9; border-radius: 6px; background: #fff; color: #172641; text-decoration: none; text-align: center; font: inherit; font-weight: 600; cursor: pointer; transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
.tfr-site .tfr-comment-list__more--all svg { display: none; }
.tfr-site .tfr-comment-list__more--all::after { width: 16px; height: 2px; background: currentColor; content: ''; }
.tfr-site .tfr-comment-list__more--all:focus-visible { outline: none; border-color: #c9472b; background: #fff5f0; box-shadow: none; }
@media (hover: hover) {
    .tfr-site .tfr-comment-list__more--all:hover:not(:focus-visible) { border-color: #aebed2; background: #f7f9fc; }
}

/* Editorial singles use the broker review's three-up comment cards. */
.tfr-site .tfr-comment-list .tfr-comment-list__items--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.tfr-site .tfr-comment-list__items--cards > .comment-item { display: flex; min-width: 0; }
@media (max-width: 1100px) {
    .tfr-site .tfr-comment-list .tfr-comment-list__items--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tfr-site .tfr-comment-list .tfr-comment-list__items--cards { grid-template-columns: minmax(0, 1fr); }
}

/* Reuse the broker review comment card treatment wherever single pages list comments. */
.tfr-site .tfr-comment-list .comment-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    min-height: 100%;
    flex: 1 1 auto;
    padding: 24px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}
.tfr-site .tfr-comment-list .comment-card__header { align-items: center; gap: 12px; }
.tfr-site .tfr-comment-list .comment-card__avatar,
.tfr-site .tfr-comment-list .comment-card__avatar :is(svg, img) { width: 40px; height: 40px; }
.tfr-site .tfr-comment-list .comment-card__author { color: #172641; font-size: 14px; font-weight: 600; line-height: 1.5; }
.tfr-site .tfr-comment-list .comment-card__content { margin: 0; color: #526078; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.tfr-site .tfr-comment-list .comment-card__footer { flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid #dfe4ec; }
.tfr-site .tfr-comment-list .comment-card__date { color: #59667a; font-size: 11px; }

/* The best-broker discussion panel is the common submission pattern for single pages. */
.tfr-site .tfr-single-comment-form {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 42px;
    margin: 48px 0 64px;
    padding: 36px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #f7f8fb;
    color: #172641;
}
.tfr-site .tfr-single-comment-form__intro { min-width: 0; }
.tfr-site .tfr-single-comment-form__intro h2 { margin: 13px 0 16px; color: #172641; font-size: 31px; font-weight: 650; line-height: 1.25; letter-spacing: -1px; }
.tfr-site .tfr-single-comment-form__intro p { color: #5f6b7e; font-size: 14px; line-height: 1.8; }
.tfr-site .tfr-single-comment-form__intro svg { width: 170px; height: 104px; margin-top: 25px; }
.tfr-site .tfr-single-comment-form > section { min-width: 0; margin: 0 !important; }
.tfr-site .tfr-single-comment-form .new-comment-card { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tfr-site .tfr-single-comment-form .new-comment-card h2 { margin: 0; color: #172641; font-size: 23px; letter-spacing: -.6px; }
.tfr-site .tfr-single-comment-form .new-comment { display: grid; gap: 20px; margin: 20px 0 0; }
.tfr-site .tfr-single-comment-form .new-comment label { color: #172641; font-size: 13px; line-height: 1.5; }
.tfr-site .tfr-single-comment-form .new-comment .new-comment__input { width: 100%; min-height: 48px; height: 48px; padding: 12px 14px; border: 1px solid #cbd3df; border-radius: 6px; background: #fff; color: #172641; box-shadow: none; }
.tfr-site .tfr-single-comment-form .new-comment .new-comment__input::placeholder { color: #697589; font-size: 13px; opacity: 1; }
.tfr-site .tfr-single-comment-form .new-comment .new-comment__textarea { min-height: 132px; height: 132px; resize: vertical; }
.tfr-site .tfr-single-comment-form .new-comment .new-comment__input:focus,
.tfr-site .tfr-single-comment-form .new-comment .new-comment__input:focus-visible { outline: none; border: 1px solid #c9472b; background: #fff5f0; box-shadow: none; }
.tfr-site .tfr-single-comment-form .tfr-rating legend { margin-bottom: 8px; color: #47566c; font-size: 12px; }
.tfr-site .tfr-single-comment-form .tfr-rating span { display: grid; min-width: 42px; min-height: 40px; place-items: center; background: #fff; }
.tfr-site .tfr-single-comment-form .tfr-rating input:checked + span { border-color: #172641; background: #172641; color: #fff; }
.tfr-site .tfr-single-comment-form #comment-submit-btn { align-self: end; min-height: 44px; padding-inline: 28px; }
@media (max-width: 1182px) {
    .tfr-site .tfr-single-comment-form { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 28px; }
}
@media (max-width: 767px) {
    .tfr-site .tfr-single-comment-form { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
    .tfr-site .tfr-single-comment-form__intro h2 { font-size: 28px; }
    .tfr-site .tfr-single-comment-form__intro svg { display: none; }
}
@media (max-width: 525px) {
    .tfr-site .tfr-single-comment-form { gap: 20px; margin-block: 32px 44px; padding: 22px 18px; }
}
@media (hover: hover) {
    .tfr-site .tfr-single-comment-form .new-comment .new-comment__input:hover:not(:focus) { border-color: #aebed2; background: #f7f9fc; }
}

/* Remove page-specific search-wrapper halos while keeping a clear coral focus edge. */
:is(.tfr-site, .tfr-site.tfr-inner) :is(.comparison-broker-search, .tfr-detail-search__field, .tfr-contact__field):focus-within,
:is(.tfr-site, .tfr-site.tfr-inner) :is(.comparison-broker-search, .tfr-detail-search__field, .tfr-contact__field):has(input:focus, textarea:focus) {
    border-color: #c9472b !important;
    box-shadow: none !important;
}
