/* Shared explorer: venue, race and discipline stay together on every screen. */
.ptcm-explorer .ptcm-header{padding-top:22px;padding-bottom:21px}
.ptcm-explorer .ptcm-brand{margin-bottom:24px}
.ptcm-explorer h1{font-size:clamp(32px,4.5vw,57px)}
.ptcm-explorer .ptcm-distance{font-size:53px}
.ptcm-selectors{padding:0 34px 22px;display:grid;gap:11px}
.ptcm-choice-row{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:20px}
.ptcm-choice-label{display:flex;align-items:center;gap:9px;margin:0;font-size:9px;font-weight:700;letter-spacing:1.1px;color:#c9ddec;white-space:nowrap}
.ptcm-choice-label>span{display:grid;place-items:center;width:21px;height:21px;border:1px solid #8db0cc6b;border-radius:50%;font-size:9px;color:#fff}
.ptcm-venue-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:680px}
.ptcm-venue-options button{min-height:44px;padding:10px 16px;border:1px solid #90b4cd80;border-radius:5px;background:#10345ac2;color:#e9f3fb;font-size:12px;font-weight:700}
.ptcm-venue-options button[aria-pressed=true]{background:#eef5fc;color:#113155;border-color:#eef5fc}
.ptcm-explorer .ptcm-race-options{max-width:680px;gap:8px}
.ptcm-explorer .ptcm-race-options button{min-height:44px;padding:10px;flex-direction:row}
.ptcm-leg-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:680px}
.ptcm-leg-options button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:49px;padding:10px 12px;border-radius:5px;background:#092c4ea8;color:#c4d9e9;border:1px solid #81a4bf55;font-size:11px;font-weight:700;letter-spacing:.5px}
.ptcm-leg-options button svg{width:22px;height:22px}
.ptcm-leg-options button small{font-size:9px;letter-spacing:0;font-weight:500;margin-left:3px;white-space:nowrap;color:#b9cddd}
.ptcm-leg-options button[aria-pressed=true]{border-color:#ffce1b;box-shadow:inset 0 -2px #ffce1b;background:#0b2c4b;color:#ffda4d}
.ptcm-leg-options button[aria-pressed=true] small{color:#ffda4d}
.ptcm-selection-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;background:#102f54;border-top:1px solid #c3e5ff22;border-bottom:1px solid #c3e5ff22}
.ptcm-selection-strip p{display:flex;align-items:center;gap:13px;margin:0;font-size:11px;line-height:1.6;min-width:0}
.ptcm-selection-strip strong{font-weight:700}.ptcm-selection-strip p>span{color:#c2d5e5}
.ptcm-selection-actions{display:flex;align-items:center;gap:18px;flex:none}
#share-course{display:flex;align-items:center;gap:7px;background:transparent;font-size:10px;font-weight:600;min-height:44px;padding:8px 0;color:#e5f0f7}
#share-course svg{width:17px;height:17px}
.ptcm-explorer .ptcm-lapbar{min-height:54px;border-top:0}
.ptcm-explorer .ptcm-laps button{min-height:54px;padding-top:10px;padding-bottom:10px}
.ptcm-explorer .ptcm-laps{flex:initial;justify-content:flex-start}
.ptcm-share-fallback{padding:12px 28px;background:#102f54}.ptcm-share-fallback label{display:block;font-size:10px;margin-bottom:7px}.ptcm-share-fallback input{width:100%;color:#fff;background:#153c5d;border:1px solid #99b7ce;padding:12px;border-radius:4px;font-size:12px}
.ptcm-empty{min-height:355px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px 24px 48px;text-align:center;background:linear-gradient(120deg,#123c60,#102c50)}
.ptcm-empty-icon{width:68px;height:68px;border:1px solid #8db5d45c;background:#214b7166;border-radius:50%;display:grid;place-items:center;margin-bottom:20px;color:#bdd5e9}
.ptcm-empty-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ptcm-empty-selection{margin:0 0 12px;color:#ffdb58;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.ptcm-empty h2{font-size:clamp(22px,3vw,32px);line-height:1.25;font-weight:800;margin:0;color:#fff;letter-spacing:-.5px}
.ptcm-empty-copy{font-size:12px;line-height:1.85;color:#bfd4e5;max-width:400px;margin:15px 0 23px}
#explore-available{display:flex;gap:12px;align-items:center;justify-content:center;padding:13px 19px;min-height:46px;background:#ffce1b;border-radius:5px;color:#112e50;font-size:11px;font-weight:800}
.ptcm-explorer.is-pending .ptcm-distance{display:none}.ptcm-explorer.is-pending .ptcm-course-stat{display:flex;flex-direction:column;align-items:flex-end;padding-bottom:3px}
.ptcm-explorer.is-pending .ptcm-category{font-size:12px}.ptcm-explorer.is-pending .ptcm-format{color:#cee0ee;font-size:10px}
.ptcm-explorer.is-expanded .ptcm-selectors{padding-top:12px;padding-bottom:12px;gap:7px}
.ptcm-explorer.is-expanded .ptcm-selection-strip{padding-top:2px;padding-bottom:2px}
.ptcm-explorer.is-expanded .ptcm-map-area{height:calc(100dvh - 510px);min-height:230px}
.ptcm-two-stops{grid-template-columns:repeat(2,1fr)}
.ptcm-two-stops button{border-bottom:0!important}
.ptcm-two-stops button:last-child{border-right:0}
@media(max-width:800px){.ptcm-selectors{padding-left:22px;padding-right:22px}.ptcm-choice-row{grid-template-columns:106px minmax(0,1fr);gap:12px}.ptcm-leg-options button{gap:6px;padding:9px}.ptcm-leg-options button small{margin-left:0;font-size:8px}.ptcm-leg-options button svg{width:18px;height:18px}}
@media(max-width:620px){
 .ptcm-explorer .ptcm-header{padding:18px 18px 20px}.ptcm-explorer .ptcm-brand{margin-bottom:20px}.ptcm-explorer .ptcm-brand img{width:242px}
 .ptcm-explorer .ptcm-title-row{align-items:flex-end;gap:12px}.ptcm-explorer h1{font-size:29px;line-height:1.07;letter-spacing:-1.25px}.ptcm-explorer h1 strong{display:inline}
 .ptcm-explorer .ptcm-eyebrow{font-size:8px;letter-spacing:1px;gap:7px;margin-bottom:8px}.ptcm-explorer .ptcm-nich{padding-right:7px}.ptcm-explorer .ptcm-nich img{width:59px}
 .ptcm-explorer .ptcm-course-stat{padding-top:0;gap:1px}.ptcm-explorer .ptcm-distance{font-size:36px}.ptcm-explorer .ptcm-distance small{font-size:11px}.ptcm-explorer .ptcm-category{font-size:9px;margin-top:1px}.ptcm-explorer .ptcm-format{font-size:8px;line-height:1.5;margin-top:3px;max-width:105px}
 .ptcm-selectors{padding:0 18px 18px;gap:13px}.ptcm-choice-row{display:block}.ptcm-choice-label{font-size:8px;letter-spacing:.85px;margin-bottom:6px;gap:6px}.ptcm-choice-label>span{width:16px;height:16px;font-size:8px}
 .ptcm-venue-options button{font-size:11px;min-height:44px;padding:10px}.ptcm-explorer .ptcm-race-options button{min-height:44px;padding:10px 5px}.ptcm-explorer .ptcm-race-options strong{font-size:10px;letter-spacing:.35px}
 .ptcm-leg-options{gap:7px}.ptcm-leg-options button{display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:7px;row-gap:5px;min-height:60px;font-size:10px;padding:8px 5px}.ptcm-leg-options button svg{width:18px;height:18px}.ptcm-leg-options button small{grid-column:1/-1;text-align:center;font-size:9px}
 .ptcm-selection-strip{padding:6px 15px;gap:8px}.ptcm-selection-strip p{flex-direction:column;align-items:flex-start;gap:0;font-size:10px}.ptcm-selection-strip p>span{font-size:9px}.ptcm-selection-actions{gap:12px}#share-course{font-size:9px;gap:5px}#share-course span{max-width:48px;text-align:left;line-height:1.45}.ptcm-explorer .ptcm-expand{min-width:44px}
 .ptcm-explorer .ptcm-laps{flex:1;justify-content:flex-start;gap:6px}.ptcm-explorer .ptcm-laps button{padding-left:12px;padding-right:12px;min-height:56px;font-size:10px}.ptcm-explorer .ptcm-lapbar{min-height:56px}
 .ptcm-explorer.is-pending .ptcm-category{font-size:9px}.ptcm-explorer.is-pending .ptcm-format{font-size:8px;white-space:nowrap}
 .ptcm-empty{min-height:335px;padding:32px 22px 38px}.ptcm-empty h2{font-size:24px;max-width:245px}.ptcm-empty-copy{font-size:11px}.ptcm-empty-selection{font-size:9px;letter-spacing:.7px}
 .ptcm-explorer.is-expanded .ptcm-selectors{padding:10px 12px;gap:7px}.ptcm-explorer.is-expanded .ptcm-choice-label{display:none}.ptcm-explorer.is-expanded .ptcm-venue-options button,.ptcm-explorer.is-expanded .ptcm-race-options button{min-height:44px}.ptcm-explorer.is-expanded .ptcm-leg-options button{min-height:45px;display:flex;gap:6px}.ptcm-explorer.is-expanded .ptcm-leg-options button small{display:none}
 .ptcm-explorer.is-expanded .ptcm-map-area{height:calc(100dvh - 550px);min-height:220px}.ptcm-explorer.is-expanded .ptcm-selection-strip{padding:0 12px}
 .ptcm-share-fallback{padding:12px 18px}.ptcm-explorer .ptcm-two-stops button{flex-direction:row;align-items:center}
}
@media(max-width:350px){.ptcm-explorer h1{font-size:25px}.ptcm-explorer .ptcm-header{padding-left:15px;padding-right:15px}.ptcm-selectors{padding-left:15px;padding-right:15px}.ptcm-explorer .ptcm-course-stat{max-width:94px}.ptcm-explorer .ptcm-format{font-size:7px}.ptcm-explorer .ptcm-eyebrow{font-size:7px}.ptcm-explorer .ptcm-nich img{width:47px}.ptcm-explorer .ptcm-distance{font-size:32px}.ptcm-explorer .ptcm-laps{gap:2px}.ptcm-explorer .ptcm-laps button{padding-left:10px;padding-right:10px}}

.ptcm-explorer[data-venue=maraetai] .ptcm-map-area{height:550px}
.ptcm-explorer[data-venue=maraetai] .ptcm-watermark{left:65%;top:40px}
@media(max-width:620px){.ptcm-explorer[data-venue=maraetai] .ptcm-map-area{height:460px}.ptcm-explorer[data-venue=maraetai] .ptcm-watermark{left:50%;top:100px}.ptcm-explorer[data-venue=maraetai] .ptcm-two-stops button{gap:7px}.ptcm-explorer[data-venue=maraetai] .ptcm-two-stops strong{font-size:10px}}
.ptcm-explorer.is-expanded[data-venue=maraetai] .ptcm-map-area{height:calc(100dvh - 510px);min-height:300px}
@media(max-width:620px){.ptcm-explorer.is-expanded[data-venue=maraetai] .ptcm-map-area{height:calc(100dvh - 550px);min-height:240px}}

.ptcm-five-stops{grid-template-columns:repeat(5,1fr)}
.ptcm-explorer[data-leg=swim] .ptcm-map-area{height:450px}
.ptcm-explorer[data-leg=run] .ptcm-map-area{height:440px}
.ptcm-explorer[data-leg=swim] .ptcm-watermark{display:none}
.ptcm-explorer[data-leg=swim] .ptcm-label{display:none}
.ptcm-explorer[data-leg=run] .ptcm-marker-start .ptcm-pin-tag{transform:translateX(-90%)}
.ptcm-explorer[data-leg=run] .ptcm-marker-finish .ptcm-pin-tag{transform:translateX(-10%)}
@media(max-width:620px){.ptcm-explorer[data-leg=swim] .ptcm-map-area{height:365px}.ptcm-explorer[data-leg=run] .ptcm-map-area{height:335px}.ptcm-five-stops{grid-template-columns:repeat(2,1fr)}.ptcm-five-stops button:last-child{grid-column:1/-1}.ptcm-explorer .ptcm-laps button{padding-left:10px;padding-right:10px}}
.ptcm-explorer.is-expanded[data-leg=swim] .ptcm-map-area,.ptcm-explorer.is-expanded[data-leg=run] .ptcm-map-area{height:calc(100dvh - 510px);min-height:240px}
@media(max-width:620px){.ptcm-explorer.is-expanded[data-leg=swim] .ptcm-map-area,.ptcm-explorer.is-expanded[data-leg=run] .ptcm-map-area{height:calc(100dvh - 550px);min-height:220px}}

.ptcm-explorer[data-leg=swim]:not([data-race=olympic]) .ptcm-marker-start .ptcm-pin-tag{bottom:auto;top:44px}
.ptcm-explorer[data-venue=mission-bay][data-leg=run] .ptcm-marker-start .ptcm-pin-tag{transform:translateX(-10%)}

/* Leg sponsors use the supplied artwork. Shoe Science's black canvas is
   masked by layout and screen blending; the original image is unchanged. */
.ptcm-course-sponsor{display:flex;align-items:center;justify-content:center;min-height:36px;padding-right:15px;border-right:1px solid #ffffff52;flex:none}
.ptcm-sponsor-logo{display:block;line-height:0;flex:none}
.ptcm-sponsor-logo img{display:block;width:94px;height:auto}
.ptcm-sponsor-nich img{filter:brightness(0) invert(1)}
.ptcm-sponsor-blue70 img{width:54px}
.ptcm-sponsor-shoe-science{position:relative;width:108px;aspect-ratio:396/128;overflow:hidden;mix-blend-mode:screen}
.ptcm-sponsor-shoe-science img{position:absolute;width:112.87878788%;max-width:none;height:auto;left:-7.57575758%;top:-125.78125%}
@media(max-width:620px){.ptcm-course-sponsor{min-height:28px;padding-right:8px}.ptcm-sponsor-nich img{width:72px}.ptcm-sponsor-blue70 img{width:42px}.ptcm-sponsor-shoe-science{width:84px}}
@media(max-width:350px){.ptcm-course-sponsor{min-height:25px}.ptcm-sponsor-nich img{width:60px}.ptcm-sponsor-blue70 img{width:37px}.ptcm-sponsor-shoe-science{width:74px}}

.ptcm-explorer h1,.ptcm-explorer h1 strong{font-weight:700}
