/* TRIPP SPORT : la course et ses informations passent en premier. */
body.single-course main.site-main > #tripp-publicites-root,
body.single-course main.site-main > .tripp-partner-ad--top,
body.page-template-page-courses-nord-pas-de-calais-php main.site-main > #tripp-publicites-root,
body.page-template-page-courses-nord-pas-de-calais-php main.site-main > .tripp-partner-ad--top,
main.site-main:has(> .ts-agenda-page) > :is(#tripp-publicites-root,.tripp-partner-ad--top) {display:none!important}
.tsm #outils.tsm-tools {box-sizing:border-box;background:#f1f7f6!important;border:1px solid #93b4b1;border-radius:14px;padding-inline:clamp(16px,2.4vw,36px);margin-block:clamp(18px,3vw,34px);position:relative;isolation:isolate}
.tsm #outils .tsm-tools-grid a.tsm-tool {background:#fff!important;border:1px solid #789b9a!important;border-top:3px solid #02616b!important;color:#163239;box-shadow:0 2px 6px #173a390f}
.tsm #outils .tsm-tool small,.tsm #outils .tsm-section-head p:not(.tsm-eyebrow),.tsm .ts-weekend-races .ts-weekend-note {color:#364e52!important;opacity:1}
.tsm #outils .tsm-tool:hover,.tsm #outils .tsm-tool:focus-visible {background:#e5f2f1!important;border-color:#02616b!important}
.tsm #outils .tsm-tool:focus-visible {outline:3px solid #8a5700;outline-offset:3px}
.tripp-conseil-local {padding:16px 18px;margin:18px 0;background:#edf7f5;border-left:4px solid #02616b;color:#1b3d40}
.tripp-conseil-local a,.tripp-edition-local a {color:#025761;text-underline-offset:.18em}
.tripp-edition-local h3,.tripp-conseil-local h3 {color:#17363b}
.tripp-edition-local li {margin:.3em 0}


.tripp-agenda-service,.tripp-edition,.tripp-course-nav,.tripp-card-programme {box-sizing:border-box}
.tripp-agenda-service {display:grid;grid-template-columns:minmax(0,1fr) clamp(130px,20%,240px);overflow:hidden;background:#eff7f5;color:#172e32;border:1px solid #8bb0ae;border-left:5px solid #02616b;border-radius:14px;margin:26px 0}
.ts-agenda-page>.tripp-agenda-service {width:min(1120px,calc(100% - 32px));margin:22px auto}
.tripp-agenda-copy {min-width:0;padding:clamp(16px,2.5vw,30px)}
.tripp-agenda-copy .tripp-agenda-label {font:700 .78rem/1.3 system-ui,sans-serif;letter-spacing:.07em;color:#075c63;text-transform:uppercase}
.tripp-agenda-service h2 {margin:.38em 0;color:#153538;font-size:clamp(1.25rem,2.6vw,1.9rem);line-height:1.16}
.tripp-agenda-service p {margin:.5em 0 1em;color:#273e41;max-width:70ch;line-height:1.5}
.tripp-agenda-service img {width:100%;height:100%;max-height:320px;min-height:0;object-fit:cover;object-position:55% 60%;align-self:center}
.tripp-agenda-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.tripp-agenda-actions a,.tripp-edition a,.tripp-course-nav a {color:#02575e;text-underline-offset:.18em;font-weight:650}
.tripp-agenda-actions a.tripp-agenda-book {background:#02616b;color:#fff;padding:11px 16px;border-radius:7px;text-decoration:none;line-height:1.4}
.tripp-agenda-copy small {display:block;margin-top:12px;color:#40565a}
.tripp-course-nav {display:flex;gap:8px 18px;flex-wrap:wrap;padding:9px 0;margin:0 0 12px}
.tripp-course-nav a {padding:5px 0}
.tripp-edition {margin:20px 0;padding:clamp(16px,3vw,30px);border:1px solid #97b4b1;border-radius:12px;color:#152f33;background:white}
.tripp-edition h2,.tripp-edition h3 {color:#17363b}
.tripp-edition h2 {margin:0 0 .4em}
.tripp-edition h3 {font-size:1.05rem;margin:1.1em 0 .24em}
.tripp-edition p {margin:.3em 0;line-height:1.55}
.tripp-edition-formats {margin:1em 0;padding:0}
.tripp-edition-formats div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;padding:10px 12px;border-bottom:1px solid #c8d8d6}
.tripp-edition-formats div:nth-child(odd) {background:#eff6f5}
.tripp-edition-formats dt {font-weight:700}
.tripp-edition-formats dd {margin:0}
.tripp-edition-sources {display:grid;justify-items:start;gap:6px;border-top:1px solid #c8d8d6;padding-top:12px;margin-top:16px}
.tripp-card-programme {margin:8px 0;font-weight:650;color:#234447}
.tripp-edition,.ts-course-shell section[id] {scroll-margin-top:6rem}
@media(max-width:640px){.tripp-agenda-service {grid-template-columns:1fr}.tripp-agenda-service img {display:none}.tripp-agenda-actions {align-items:flex-start}.tripp-edition-formats div {grid-template-columns:1fr;gap:2px}.tripp-agenda-copy {padding:16px}.tsm #outils.tsm-tools {padding-inline:14px}}

.ts-course:has(.tripp-edition) .tripp-edition-local,.ts-course:has(.tripp-agenda-service) .tripp-conseil-local {display:none!important}
