/* Shared single-article layout, aligned with the best-broker guide. */
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-masthead {
    margin-bottom: 40px;
    padding: 30px 34px;
    border: 1px solid #dfe4ec;
    border-top: 3px solid #ed603f;
    border-radius: 0 0 12px 12px;
    background: #f7f8fb;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-masthead .broker-single-item__card {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-masthead .broker-single-item__title {
    max-width: 25ch;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.13;
    letter-spacing: -.035em;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-deck {
    max-width: 70ch;
    margin-top: 18px;
    color: #47566c;
    font-size: 16px;
    line-height: 1.75;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "reading contents";
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-reading {
    grid-area: reading;
    display: grid;
    gap: 32px;
    min-width: 0;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-article {
    display: grid;
    gap: 32px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-article .admin-content {
    min-width: 0;
    color: #33445e;
    overflow-wrap: anywhere;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-article .admin-content p { max-width: 70ch; }
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-article .admin-content :is(h2, h3, h4) { color: #172641; scroll-margin-top: 140px; }
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-aside {
    grid-area: contents;
    position: sticky;
    top: 100px;
    display: grid;
    gap: 20px;
    min-width: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-aside #toc-section {
    padding: 23px 18px;
    border: 1px solid #dfe4ec;
    border-top: 3px solid #172641;
    border-radius: 8px;
    background: #fff !important;
    box-shadow: none !important;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-aside .toc-list a {
    display: block;
    padding: 9px 8px;
    white-space: normal !important;
    font-size: 13px;
    line-height: 1.5;
    color: #47566c;
    overflow-wrap: anywhere;
}
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-top-brokers > section {
    padding: 22px 18px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    background: #f3f5f9;
    box-shadow: none !important;
}
.tfr-comment-list { display: grid; gap: 20px; margin-bottom: 40px; }
.tfr-comment-list > h2 { margin: 0; padding-bottom: 14px; border-bottom: 1px solid #dfe4ec; color: #172641; font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; }
.tfr-comment-list__items { display: grid; gap: 20px; }
.tfr-comment-list__more { display: inline-flex; align-items: center; justify-self: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid #b7c4d9; border-radius: 6px; background: #fff; color: #172641; font-weight: 600; cursor: pointer; }
.tfr-comment-list__more:hover { background: #f3f5f9; }
.tfr-comment-list__more:focus-visible,
:is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-aside a:focus-visible { outline: none; box-shadow: 0 0 0 3px #ed603f; }
.tfr-article-list { margin-block: 48px 40px; }
.tfr-article-list__heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #dfe4ec; }
.tfr-article-list__heading h2 { margin: 0; color: #172641; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.2; }
.tfr-article-list__heading a { color: #a83d25; font-size: 13px; font-weight: 700; }
.tfr-article-list__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.tfr-article-card { min-width: 0; border: 1px solid #dfe4ec; border-radius: 9px; background: #fff; transition: border-color 200ms, transform 200ms; }
.tfr-article-card > a { display: flex; flex-direction: column; height: 100%; padding: 9px; color: inherit; text-decoration: none; border-radius: inherit; }
.tfr-article-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 5px; background: #f3f5f9; }
.tfr-article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms; }
.tfr-article-card__copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px 9px 9px; }
.tfr-article-card__category { color: #a83d25; font-size: 11px; font-weight: 700; line-height: 1.5; }
.tfr-article-card h3 { margin: 8px 0; color: #172641; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tfr-article-card__description { display: -webkit-box; overflow: hidden; color: #5f6b7e; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tfr-article-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 16px; color: #5f6b7e; font-size: 11px; }
.tfr-article-card__meta:empty { padding-top: 0; }
.tfr-article-card__action { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #dfe4ec; color: #172641; font-size: 12px; font-weight: 700; }
.tfr-article-card__action > span { color: #a83d25; font-size: 19px; }
.tfr-article-card__number { color: #a83d25; font-size: 11px; font-weight: 700; }
.tfr-article-card--row { border: 0; border-bottom: 1px solid #dfe4ec; border-radius: 0; background: transparent; }
.tfr-article-card--row > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 20px; padding: 16px 4px; }
.tfr-article-card--row .tfr-article-card__number { grid-column: 1; grid-row: 1; }
.tfr-article-card--row .tfr-article-card__number + .tfr-article-card__image { grid-column: 1; grid-row: 2; }
.tfr-article-card--row .tfr-article-card__image { width: 96px; aspect-ratio: 1; border: 1px solid #dfe4ec; }
.tfr-article-card--row .tfr-article-card__copy { grid-column: 2; grid-row: 1 / span 2; padding: 0; }
.tfr-article-card--row .tfr-article-card__meta { margin: 0; padding-top: 8px; }
.tfr-article-card--row .tfr-article-card__action { justify-content: flex-start; margin-top: 8px; padding: 0; border: 0; }
.tfr-article-card--row:not(:has(.tfr-article-card__image)) > a { grid-template-columns: 42px minmax(0, 1fr); }
.tfr-article-card--row:not(:has(.tfr-article-card__image)) .tfr-article-card__copy { grid-column: 2; }
.tfr-article-card--row:not(:has(.tfr-article-card__image)):not(:has(.tfr-article-card__number)) > a { grid-template-columns: minmax(0, 1fr); }
.tfr-article-card--row:not(:has(.tfr-article-card__image)):not(:has(.tfr-article-card__number)) .tfr-article-card__copy { grid-column: 1; }
.tfr-article-card a:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #ed603f; }
@media (hover: hover) { .tfr-article-card:hover { border-color: #9caac0; transform: translateY(-2px); } .tfr-article-card:hover img { transform: scale(1.025); } }
@media (max-width: 1182px) { .tfr-article-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1050px) {
    :is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}
@media (max-width: 767px) {
    :is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-masthead { margin-bottom: 28px; padding: 24px 20px; }
    :is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-layout { display: flex; flex-direction: column; gap: 28px; }
    :is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-aside { order: -1; position: static; width: 100%; max-height: none; overflow: visible; }
    :is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-top-brokers { display: none; }
    :is(.tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single) .tfr-guide-reading { width: 100%; }
}
@media (max-width: 525px) { .tfr-article-list__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 525px) { .tfr-article-card--row > a { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; } .tfr-article-card--row .tfr-article-card__image { width: 72px; } .tfr-article-card--row h3 { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .tfr-article-card, .tfr-article-card img { transition: none; } }

/* Consistent visible focus across the single-page controls. */
:is(.tfr-page--best-broker-single, .tfr-page--broker-post-single, .tfr-page--education-single, .tfr-page--comparison-single, .tfr-page--brokers-list-single) :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px #ed603f;
}
