/* 280.48: the new teams pages (Carsten, 25 Nov). The directory below is styled by the Team Importer (0.30.0). */
body.wtr-teams-page { background: #000; }
body.wtr-teams-page .wtr-utility-main { background: #000; }

.wtr-tp-head { --tp-blue: #62d0f5; --tp-display: var(--wtr-font-display, Anton, Impact, sans-serif); --tp-body: var(--wtr-font-body, Inter, system-ui, sans-serif); position: relative; overflow: hidden; background: #000; color: #fff; font-family: var(--tp-body); }

/* The photo: the boats run to the right, the headline sits on the left where the photo fades out. */
.wtr-tp-photo { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,.6) 32%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,.6) 32%, #000 48%); }
.wtr-tp-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 22%, rgba(0,0,0,0) 45%); }
.wtr-tp-photo picture { position: absolute; inset: 0; display: block; } /* 280.50: it had no size, so the photo inside it had none either */
.wtr-tp-photo img { position: absolute; display: block; }
.wtr-tp-photo img { left: 14vw; top: -75px; width: 88%; height: auto; max-width: none; filter: brightness(.97) saturate(.95) contrast(1.08); transform-origin: 60% 40%; animation: wtr-tp-zoom 7s ease-out both; }

/* 280.49: a photo chosen in Control Centre → Teams pages fills the band, cropped round its centre point, with its zoom. */
.wtr-tp-photo.is-custom img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--wtr-px, 50%) var(--wtr-py, 50%); scale: var(--wtr-pz, 1); transform-origin: var(--wtr-px, 50%) var(--wtr-py, 50%); }
.wtr-tp-inner { position: relative; z-index: 2; padding: 52px 64px 30px; animation: wtr-tp-up 1s ease-out both; }
.wtr-tp-eyebrow { margin: 0 0 10px; color: var(--tp-blue); font: 700 12px/1.2 var(--tp-body); letter-spacing: .2em; text-transform: uppercase; }
.wtr-tp-title { margin: 0; color: #fff; font: 400 84px/.92 var(--tp-display); text-transform: uppercase; white-space: nowrap; }
.wtr-tp-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; }
.wtr-tp-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0 44px; margin: 0; }
.wtr-tp-stats > div { display: flex; flex-direction: column-reverse; gap: 8px; }
.wtr-tp-stats dd { margin: 0; font: 400 44px/1 var(--tp-display); font-variant-numeric: tabular-nums; }
.wtr-tp-stats dt { color: var(--tp-blue); font: 700 11px/1.2 var(--tp-body); letter-spacing: .16em; text-transform: uppercase; }
.wtr-tp-status { margin-bottom: 6px; }
.wtr-tp-status.is-phone { display: none; }
.wtr-tp-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wtr-tp-pill { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px; border: 1px solid rgba(98, 208, 245, .5); border-radius: 999px; background: rgba(0, 0, 0, .55); white-space: nowrap; }
.wtr-tp-pill.is-live { gap: 10px; border-color: rgba(255, 77, 77, .6); }
.wtr-tp-pill-label { color: var(--tp-blue); font: 700 11px/1 var(--tp-body); letter-spacing: .18em; text-transform: uppercase; }
.wtr-tp-pill-big { font: 400 24px/1 var(--tp-display); letter-spacing: .02em; text-transform: uppercase; }
.wtr-tp-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: wtr-tp-pulse 1.6s ease-in-out infinite; }
.wtr-tp-pill.is-link { color: #fff; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.wtr-tp-pill.is-link:hover, .wtr-tp-pill.is-link:focus-visible { border-color: var(--tp-blue); background: var(--tp-blue); color: #000; }
.wtr-tp-pill-arrow { font: 700 18px/1 var(--tp-body); }
.wtr-tp-btn { display: inline-block; padding: 14px 22px; border-radius: 999px; /* 280.55: pill-shaped, to sit with the pill */ background: var(--tp-blue); color: #000; font: 800 13px/1 var(--tp-body); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.wtr-tp-btn:hover { background: #fff; color: #000; }

/* The flags: drifting slowly, pausing under the mouse; a finger can stop and swipe them on a phone. */
.wtr-tp-ribbon { position: relative; z-index: 2; padding: 4px 0 22px; }
.wtr-tp-ribbon-track { display: flex; overflow-x: auto; padding: 34px 0 6px; margin-top: -30px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wtr-tp-ribbon-track::-webkit-scrollbar { display: none; }
.wtr-tp-flag { flex: 0 0 auto; margin: 0 30px 0 0; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; opacity: .9; transition: opacity .2s ease, transform .2s ease; }
.wtr-tp-flag img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; }
.wtr-tp-flag:hover, .wtr-tp-flag:focus-visible, .wtr-tp-flag.is-on { opacity: 1; transform: scale(1.15); }
.wtr-tp-flag:focus-visible { outline: 2px solid var(--tp-blue); outline-offset: 3px; border-radius: 3px; }
.wtr-tp-flag-name { position: absolute; z-index: 3; top: 0; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; background: rgba(8, 10, 13, .94); color: #fff; font: 700 11px/1.2 var(--tp-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }
.wtr-tp-flag-name[hidden] { display: none; }

/* Below the header: straight on black, no grey box. */
body.wtr-teams-page .wtr-tp-body { padding: 40px 64px 72px; background: #000; color: #fff; } /* 280.50: an older rule made it grey */
.wtr-tp-wrap { max-width: 1440px; margin: 0 auto; }

@keyframes wtr-tp-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes wtr-tp-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes wtr-tp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 1179px) {
    .wtr-tp-inner { padding: 44px 40px 26px; }
    .wtr-tp-title { font-size: 72px; }
    .wtr-tp-photo img { left: 8vw; top: -40px; width: 100%; }
    body.wtr-teams-page .wtr-tp-body { padding: 36px 40px 64px; }
}
@media (max-width: 767px) {
    .wtr-tp-inner { padding: 36px 24px 22px; }
    .wtr-tp-title { font-size: 52px; }
    .wtr-tp-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; }
    .wtr-tp-photo.is-custom img { object-position: var(--wtr-px, 50%) var(--wtr-py, 50%); }
    .wtr-tp-stats { gap: 0 26px; }
    .wtr-tp-stats dd { font-size: 34px; }
    .wtr-tp-stats dt { font-size: 10px; }
    .wtr-tp-pill { gap: 10px; padding: 10px 16px; }
    .wtr-tp-pill-big { font-size: 20px; }
    .wtr-tp-pill-label { font-size: 10px; }
    .wtr-tp-flag { margin-right: 22px; }
    .wtr-tp-flag img { width: 26px; height: 20px; }
    .wtr-tp-ribbon { padding-bottom: 18px; }
    body.wtr-teams-page .wtr-tp-body { padding: 26px 20px 56px; }
}
/* Normal phones: the photo on top, cropped on the bows with the race numbers and flags; the text below it. */
@media (max-width: 559px) {
    .wtr-tp-photo { bottom: auto; height: 250px; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
    .wtr-tp-photo::after { display: none; }
    .wtr-tp-photo img { object-position: 28% 47%; }
    .wtr-tp-photo.is-custom img { object-position: var(--wtr-px-m, var(--wtr-px, 50%)) var(--wtr-py-m, var(--wtr-py, 50%)); scale: var(--wtr-pz-m, var(--wtr-pz, 1)); transform-origin: var(--wtr-px-m, var(--wtr-px, 50%)) var(--wtr-py-m, var(--wtr-py, 50%)); }
    .wtr-tp-inner { padding: 228px 20px 22px; }
    .wtr-tp-bar { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 20px; }
    .wtr-tp-status.is-phone { display: block; margin: 0; }
    .wtr-tp-status.is-wide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wtr-tp-photo img, .wtr-tp-inner, .wtr-tp-dot { animation: none; }
}

/* 280.69 (Carsten): the counters in Anton like the other number strips (a site-wide rule had them in Inter) */
.wtr-tp-stats dd { font-family: var(--wtr-font-display, Anton, Impact, sans-serif) !important; font-weight: 400 !important; }
/* 280.69 (Carsten): on phones the filters line up with the page edge, like the text above (two containers added spacing) */
@media (max-width: 767px) {
    body.wtr-teams-page .wtr-tp-wrap { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; max-width: none !important; }
    /* the directory keeps its own centring (a margin and a shift), just at the full width */
    body.wtr-teams-page .wtr-team-directory.wtr-td2 { width: 100% !important; max-width: none !important; }
}

/* 280.81 (Carsten's Pacific 2026 teams mock-up): on laptops narrower than 1320px, THE RESULTS ARE IN sits on the left above
   the numbers instead of on the photo (it covered the boat's stern at 1268px). */
@media (max-width: 1319px) and (min-width: 768px) {
    .wtr-tp-bar { flex-direction: column; align-items: flex-start !important; justify-content: flex-start !important; gap: 0 !important; }
    .wtr-tp-status.is-phone { display: block; margin: 0 0 14px; }
    .wtr-tp-status.is-wide { display: none; }
}
