/* 0.1.284: readable conditions in existing cards, without hiding their content. */
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) :is(.tr-card-summary, .tr-constraint, .tr-key-conditions__content dd, .tr-card-details__claims li) {
 font-size: 14px;
 line-height: 1.45;
}
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) :is(.tr-metric dt, .tr-metric__label, .tr-key-conditions__content dt, .tr-card-details__claims h3) {
 font-size: 12px;
 line-height: 1.35;
}
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-card__content .tr-metric dt {
 text-transform: none;
 letter-spacing: normal;
 word-break: normal;
 overflow-wrap: break-word;
}
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-key-conditions > summary {
 font-size: 13px;
 line-height: 1.4;
}
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) :is(.tr-badge, .tr-card__validity, .tr-checked, .tr-card__participation) {
 font-size: 12px;
 line-height: 1.35;
}
html .tr-ui .tr-card .tr-score-chip__label { font-size: 10px; line-height: 1.2; }
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-detail-link--card-action,
html body.taring-english .en-main .tr-card--localized .tr-detail-link.tr-detail-link--card-action {
 font-size: 14px;
 line-height: 1.3;
}
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-card__content .tr-metric { gap: 3px; padding: 6px 7px; }
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-card-details__claims section { padding: 7px 8px; }
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-card-details__claims ul { gap: 4px; }
html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-card-details .tr-key-conditions__content > dl { padding: 7px 8px; }

/* Languages uses a distinct archive card and H4 claim labels on home cards. */
html .en-main .en-card.en-card--archive .en-metrics dt { font-size:12px; line-height:1.35; text-transform:none; letter-spacing:normal; }
html .en-main .en-card.en-card--archive :is(.en-metrics dd,.en-card__summary,.en-card__highlights li) { font-size:14px; line-height:1.45; }
html .en-main .en-card.en-card--archive .en-card__highlights summary { font-size:13px; line-height:1.4; }
html .en-main .en-card.en-card--archive .tr-badge { font-size:12px; line-height:1.35; }
html body.taring-english .en-main .en-card.en-card--archive .en-card__actions > .button { font-size:14px; line-height:1.3; }
html .en-main .tr-card.tr-card--localized .tr-card__localized-summary { font-size:14px; line-height:1.45; }
html .en-main .tr-card.tr-card--localized .tr-card-details__claims h4 { font-size:12px; line-height:1.35; }

/* Preserve the existing custom switch's width/colours; make its hit area44px. */
html .site-header .color-mode__toggle { min-width: 44px; min-height: 44px; height: 44px; }
html .site-header .color-mode__toggle::after { top: calc(50% - 11.5px); }
@media (max-width:760px) { html .site-header .color-mode__toggle::after { top: calc(50% - 10.5px); } }
@media (max-width:360px) { html .site-header .color-mode__toggle::after { top: calc(50% - 9.5px); } }

/* Native form submission and failed enhancement land on a visible wrapper. */
.tr-ui #taring-filters { scroll-margin-top:6rem; }
.tr-ui #taring-filters:target:focus { outline:3px solid var(--tr-mint); outline-offset:3px; }

/* Same wrapped pill navigation as the editorial page, reused by profiles. */
:is(.operator-detail,.en-operator-profile) .editorial-jump { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.2rem; padding:0; list-style:none; }
:is(.operator-detail,.en-operator-profile) .editorial-jump li { margin:0; }
:is(.operator-detail,.en-operator-profile) .editorial-jump a { display:inline-flex; align-items:center; min-height:40px; padding:.45rem .8rem; border:1px solid var(--tr-line,var(--taring-line)); border-radius:999px; font-size:13px; font-weight:700; text-decoration:none; }
:is(.operator-detail,.en-operator-profile) [id^="operator-"] { scroll-margin-top:6rem; }

@media (max-width:720px) {
 html .tr-ui .registry-hero { margin-bottom:16px; padding-top:8px; }
 html .tr-ui .registry-hero p { margin-block:8px; }
 html .tr-ui .home-featured { padding-top:24px; }
 /* The server still sends six cards. CSS applies equally after fast updates. */
 .front-page.tr-ui :is(.home-comparison,.home-offer-selection) > .registry-grid > .tr-card-frame:nth-child(n+4) { display:none; }
}
@media (max-width:480px) {
 /* A120px minimum keeps long labels intact; a lone metric still fills its row. */
 html .tr-ui .tr-card:is(.tr-card--campaign, .tr-card--welcome) .tr-card__content > .tr-metrics { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
}
