/* Loaded only by CircuitosTornfy. All selectors stay inside its root. */
.tf-circuits { background: #f3f7f8; color: #13294b; min-height: calc(100vh - 56px); }
.tf-circuits .tf-circuits-hero { padding: 32px 40px; border-radius: 16px; background: linear-gradient(120deg, #153547, #17685f); color: #fff; }
.tf-circuits .tf-circuits-hero h1 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 3vw, 44px); font-weight: 750; letter-spacing: -.8px; }
.tf-circuits .tf-circuits-hero p { margin: 0; color: #cee0e4; font-size: 17px; line-height: 1.6; }
.tf-circuits .tf-circuits-search { display: flex; gap: 16px; align-items: center; margin: 22px 0 28px; padding: 20px 24px; background: #fff; border-radius: 16px; box-shadow: 0 5px 20px #153c7210; }
.tf-circuits .tf-circuits-query { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 0 16px; background: #eff5f4; border: 1px solid transparent; border-radius: 9px; }
.tf-circuits .tf-circuits-query > i { color: #647c9b; font-size: 18px; }
.tf-circuits .tf-circuits-query input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; color: #13294b; background: transparent; font-size: 14px; }
.tf-circuits .tf-circuits-query input::placeholder { color: #5e7390; opacity: 1; }
.tf-circuits .tf-circuits-query:focus-within { border-color: #087e74; box-shadow: 0 0 0 3px #087e7420; }
.tf-circuits .tf-circuits-filter { flex: 0 1 260px; min-width: 180px; }
.tf-circuits .tf-circuits-filter select { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid #dce5f0; border-radius: 9px; color: #13294b; background: #fff; font-size: 14px; }
.tf-circuits .tf-circuits-primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 11px 20px; border: 0; border-radius: 8px; background: #087e74; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tf-circuits .tf-circuits-primary:hover { background: #09685f; color: #fff; }
.tf-circuits .tf-circuits-search > button { min-height: 50px; min-width: 140px; }
.tf-circuits .tf-circuits-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.tf-circuits .tf-circuits-heading h2 { margin: 0; color: #13294b; font-size: 23px; font-weight: 700; }
.tf-circuits .tf-circuits-heading > span { color: #5e7390; font-size: 13px; }
.tf-circuits .tf-circuits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tf-circuits .tf-circuits-card { container: tf-circuit-card / inline-size; display: flex; flex-direction: column; min-width: 0; padding: 24px; background: #fff; border: 1px solid #e8eff8; border-radius: 18px; box-shadow: 0 4px 18px #153c7208; }
.tf-circuits .tf-circuits-card-top { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; align-items: start; gap: 18px; flex: 1; padding-bottom: 22px; }
.tf-circuits .tf-circuits-logo { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden; border: 1px solid #e8eff8; border-radius: 8px; color: #16867c; text-decoration: none; font-size: 34px; }
.tf-circuits .tf-circuits-logo img { width: 100%; height: 100%; object-fit: contain; }
.tf-circuits .tf-circuits-logo [hidden] { display: none; }
.tf-circuits .tf-circuits-info { flex: 1; min-width: 0; }
.tf-circuits .tf-circuits-sport { display: inline-block; max-width: 100%; padding: 6px 12px; border-radius: 20px; background: #e5f3ef; color: #09685f; font-size: 11px; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.tf-circuits .tf-circuits-info h3 { margin: 9px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.tf-circuits .tf-circuits-info h3 a { color: #13294b; text-decoration: none; }
.tf-circuits .tf-circuits-info h3 a:hover { color: #087e74; }
.tf-circuits .tf-circuits-info p { margin: 0; font-size: 14px; line-height: 1.55; color: #5e7390; overflow-wrap: anywhere; }
.tf-circuits .tf-circuits-favorite { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; margin: 0; border-radius: 9px; color: #5e7390; font-size: 22px; text-decoration: none; }
.tf-circuits .tf-circuits-favorite:hover, .tf-circuits .tf-circuits-favorite.is-saved { color: #09685f; background: #e5f3ef; }
.tf-circuits .tf-circuits-card-bottom { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1fr); align-items: center; gap: 16px 12px; padding-top: 18px; border-top: 1px solid #e6edf6; }
.tf-circuits .tf-circuits-count { color: #405675; font-size: 15px; white-space: nowrap; }
.tf-circuits .tf-circuits-count strong { color: #13294b; font-size: 28px; font-weight: 750; margin-right: 3px; }
.tf-circuits .tf-circuits-status { display: inline-flex; justify-self: end; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 8px 12px; border-radius: 12px; color: #536983; background: #eff5f4; font-size: 12px; line-height: 1.5; }
.tf-circuits .tf-circuits-status.is-open { color: #08765f; background: #e3f8f1; }
.tf-circuits .tf-circuits-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tf-circuits .tf-circuits-card-bottom > a { grid-column: 1 / -1; width: 100%; margin: 0; }
.tf-circuits .tf-circuits-empty { padding: 48px 24px; background: #fff; border-radius: 18px; text-align: center; }
.tf-circuits .tf-circuits-empty > i { color: #647c9b; font-size: 28px; margin-bottom: 18px; }
.tf-circuits .tf-circuits-empty h3 { color: #13294b; font-size: 20px; }
.tf-circuits .tf-circuits-empty p { color: #5e7390; font-size: 15px; }
.tf-circuits .tf-circuits-empty a { display: inline-block; padding: 12px; color: #09685f; }
.tf-circuits .tf-circuits-pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 28px; }
.tf-circuits .tf-circuits-pagination > a, .tf-circuits .tf-circuits-pagination > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid #dce5f0; border-radius: 9px; color: #405675; background: #fff; font-size: 15px; text-decoration: none; }
.tf-circuits .tf-circuits-pagination > a:hover { border-color: #087e74; color: #087e74; }
.tf-circuits .tf-circuits-pagination .is-current { background: #087e74; border-color: #087e74; color: #fff; font-weight: 700; }
.tf-circuits a:focus-visible, .tf-circuits button:focus-visible, .tf-circuits select:focus-visible { outline: 3px solid #087e74; outline-offset: 3px; }
.tf-circuits .tf-circuits-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1199px) {
    .tf-circuits .tf-circuits-card { padding: 20px; }
    .tf-circuits .tf-circuits-card-top { grid-template-columns: 80px minmax(0, 1fr) 36px; gap: 14px; }
    .tf-circuits .tf-circuits-logo { width: 80px; height: 80px; }
    .tf-circuits .tf-circuits-filter { flex-basis: 210px; }
}
@media (max-width: 991px) {
    .tf-circuits .tf-circuits-grid { grid-template-columns: minmax(0, 1fr); }
    .tf-circuits .tf-circuits-search { flex-wrap: wrap; }
    .tf-circuits .tf-circuits-query { flex-basis: 100%; }
    .tf-circuits .tf-circuits-filter { flex: 1; }
}
@media (max-width: 575px) {
    .tf-circuits .tf-circuits-hero { padding: 26px 22px; }
    .tf-circuits .tf-circuits-hero p { font-size: 15px; }
    .tf-circuits .tf-circuits-search { gap: 12px; padding: 16px; margin-top: 16px; }
    .tf-circuits .tf-circuits-query { padding: 0 10px; gap: 8px; }
    .tf-circuits .tf-circuits-query input { font-size: 13px; }
    .tf-circuits .tf-circuits-filter { min-width: 0; }
    .tf-circuits .tf-circuits-search > button { min-width: 80px; padding: 12px 16px; }
    .tf-circuits .tf-circuits-heading { flex-direction: column; gap: 6px; }
    .tf-circuits .tf-circuits-heading h2 { font-size: 21px; }
    .tf-circuits .tf-circuits-card { padding: 18px; }
    .tf-circuits .tf-circuits-card-top { grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 10px; }
    .tf-circuits .tf-circuits-logo { width: 64px; height: 64px; }
    .tf-circuits .tf-circuits-info h3 { font-size: 17px; }
    .tf-circuits .tf-circuits-info p { font-size: 13px; }
    .tf-circuits .tf-circuits-card-bottom { gap: 12px; }
    .tf-circuits .tf-circuits-pagination { justify-content: center; gap: 5px; }
    .tf-circuits .tf-circuits-pagination > a, .tf-circuits .tf-circuits-pagination > span { min-width: 38px; }
}
/* Use the actual card width, including when the sidebar is expanded/collapsed. */
@container tf-circuit-card (min-width: 520px) {
    .tf-circuits .tf-circuits-card-bottom { grid-template-columns: 112px minmax(0, 1fr) max-content; }
    .tf-circuits .tf-circuits-card-bottom > a { grid-column: auto; width: auto; }
    .tf-circuits .tf-circuits-status { justify-self: start; }
}
