.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* masthead */
.mast { background: var(--navy); color: #fff; position: relative; }
.mast-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 40px; padding-bottom: 28px; flex-wrap: wrap; }
/* photo from last year's meet behind the title; fades in once it has loaded */
.mast-top { position: relative; isolation: isolate; overflow: hidden; }
.mast-top::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url(/img/meet/meet-cauldron.webp) center 30% / cover no-repeat;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 9s cubic-bezier(.2,.7,.2,1); }
.mast-top.ph-on::before { opacity: 1; transform: scale(1); }
.mast-top::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,31,85,.96) 0%, rgba(10,31,85,.86) 38%, rgba(10,31,85,.45) 70%, rgba(10,31,85,.2) 100%), linear-gradient(0deg, rgba(10,31,85,.85) 0%, rgba(10,31,85,0) 55%); }
@media (max-width: 720px) { .mast-top::after { background: linear-gradient(0deg, rgba(10,31,85,.95) 0%, rgba(10,31,85,.72) 60%, rgba(10,31,85,.55) 100%); } }
@media (prefers-reduced-motion: reduce) { .mast-top::before { transition: opacity .3s; transform: none; } }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.crest { width: 74px; height: 74px; flex: none; display: grid; place-items: center; }
.crest img { max-width: 100%; max-height: 100%; }
.mast h1 { margin: 0; font-size: clamp(38px, 6.4vw, 78px); font-weight: 800; line-height: .92; letter-spacing: -.005em; }
.mast .sub { margin: 6px 0 0; color: var(--yellow-2); font-weight: 600; font-size: 15px; }
.mast-side { display: grid; gap: 12px; justify-items: end; }
.mast-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn.light { color: #fff; }
.btn.light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.prog { font-size: 14px; color: #c9d5f5; text-align: right; }
.prog b { color: #fff; font-family: var(--display); font-size: 24px; font-weight: 700; }
.prog .rail { width: 230px; height: 5px; background: rgba(255,255,255,.14); border-radius: 3px; margin-top: 6px; overflow: hidden; margin-left: auto; }
.prog .rail i { display: block; height: 100%; background: var(--yellow); }

/* the track */
.track { background: var(--navy-2); padding: 22px 0 30px; border-top: 6px solid var(--yellow); position: relative; }
.track::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 44px); opacity: .9; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.track-head h2 { margin: 0; font-size: 30px; font-weight: 700; }
.track-head p { margin: 0; color: #b9c7ee; font-size: 14px; }
.lanes { list-style: none; margin: 0; padding: 0; }
.lane { display: grid; grid-template-columns: 52px minmax(150px, 220px) 1fr 160px 96px; align-items: center; gap: 14px; padding: 11px 0; border-top: 2px dashed rgba(255,255,255,.16); }
.lane:last-child { border-bottom: 2px dashed rgba(255,255,255,.16); }
.lane .no { width: 44px; height: 44px; border-radius: 8px; background: #fff; color: var(--navy); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 28px; }
.lane.first .no { background: var(--yellow); }
.lane .who { min-width: 0; }
.lane .who b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane .who span { font-size: 13px; color: #b9c7ee; }
.lane .run { height: 30px; background: rgba(255,255,255,.06); border-radius: 4px; position: relative; overflow: hidden; }
.lane .run i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; transition: width .9s cubic-bezier(.2,.8,.2,1); box-shadow: inset -6px 0 0 rgba(255,255,255,.35); }
.lane .med { display: flex; gap: 10px; justify-content: flex-end; font-weight: 700; }
.lane .med span { display: inline-flex; align-items: center; gap: 5px; }
.lane .med .medal { width: 22px; height: 22px; font-size: 0; }
.lane .pts { text-align: right; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.lane .pts small { display: block; font-family: var(--body); font-size: 12px; font-weight: 600; color: #b9c7ee; }
@media (prefers-reduced-motion: reduce) { .lane .run i { transition: none; } }
@media (max-width: 760px) {
  .lane { grid-template-columns: 46px 1fr auto; row-gap: 8px; column-gap: 12px; }
  .lane .no { width: 40px; height: 40px; font-size: 24px; grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .lane .who { grid-column: 2; grid-row: 1; }
  .lane .pts { grid-column: 3; grid-row: 1 / span 2; font-size: 32px; }
  .lane .med { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .lane .run { grid-column: 1 / -1; grid-row: 3; height: 12px; }
  .mast-side { justify-items: start; }
  .prog { text-align: left; }
  .prog .rail { margin-left: 0; }
}

/* tabs */
.tabs { display: flex; gap: 4px; margin: 26px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--yellow); }
.panel { min-height: 300px; padding-bottom: 40px; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; }

/* results */
.two { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }
.res { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.res-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) repeat(3, 1fr); gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line-2); cursor: pointer; align-items: center; }
.res-row:first-child { border-top: 0; }
.res-row:hover { background: #fafbfe; }
.res-ev { display: flex; gap: 10px; align-items: center; min-width: 0; }
.res-ev .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--chalk); display: grid; place-items: center; color: var(--blue); flex: none; }
.res-ev b { display: block; line-height: 1.25; }
.res-ev small { color: var(--muted); }
.res-p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.res-p > div { min-width: 0; }
.res-p .n { font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-p .c { font-size: 12px; }
@media (max-width: 760px) { .res-row { grid-template-columns: 1fr; gap: 8px; } }
.side h3 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; }
.feed { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--yellow); }
.feed li { padding: 0 0 14px 14px; font-size: 14px; }
.feed li small { display: block; color: var(--muted); font-size: 12px; }
.feed li.final { font-weight: 600; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* events */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.schip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 14px; }
.schip small { color: var(--muted); font-weight: 600; }
.schip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.schip[aria-pressed="true"] small { color: var(--yellow-2); }
.filters .in { width: auto; min-width: 150px; }
.sgroup { margin-bottom: 26px; }
.sgroup h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; margin: 0 0 8px; }
.sgroup h3 small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 600; }
.evlist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.evrow { display: grid; grid-template-columns: 1fr 120px 150px 190px 96px; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line-2); align-items: center; cursor: pointer; font-size: 14px; }
.evrow:first-child { border-top: 0; }
.evrow:hover { background: #fafbfe; }
.evrow b { font-weight: 600; }
.evrow .r { text-align: right; }
@media (max-width: 860px) { .evrow { grid-template-columns: 1fr auto; } .evrow .hide-sm { display: none; } }

/* up next */
.nextrow { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-2); align-items: center; cursor: pointer; }
.nextrow:first-child { border-top: 0; }
.nextrow .vs { font-weight: 600; }
.nextrow .vs em { font-style: normal; color: var(--muted); font-weight: 500; margin: 0 6px; }
@media (max-width: 760px) { .nextrow { grid-template-columns: 1fr; gap: 4px; } }

/* awards */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.award { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: var(--radius); padding: 16px 18px; }
.award h4 { margin: 0 0 10px; font-family: var(--display); font-size: 21px; line-height: 1.15; }
.award .win { font-size: 20px; font-weight: 700; }
.award ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }

/* event modal header */
.evhead { display: flex; gap: 14px; align-items: flex-start; }
.evhead .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; flex: none; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.meta span { font-size: 13px; padding: 2px 9px; border-radius: 6px; background: var(--chalk); color: var(--muted); font-weight: 600; }
.block-title { font-family: var(--display); font-size: 20px; margin: 18px 0 8px; }

/* live now */
.livesec { background: #eef2fb; border-bottom: 1px solid var(--line); padding: 14px 0 6px; }
.livesec h2 { margin: 0 0 8px; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.livesec h2::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.lvhead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 4px 0 14px; }
.lvhead .tm { display: flex; flex-direction: column; gap: 2px; }
.lvhead .tm:last-child { text-align: right; align-items: flex-end; }
.lvhead .tm b { font-family: var(--display); font-size: 28px; line-height: 1; }
.lvhead .tm span { color: var(--muted); font-size: 13px; }
.lvhead .tm i { width: 34px; height: 5px; border-radius: 3px; display: block; margin-bottom: 4px; }
.lvhead .sc { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.lvhead .sc small { display: block; font-size: 18px; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .lvhead .sc { font-size: 40px; } .lvhead .tm b { font-size: 20px; } }

.award .aw-ph { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; float: right; margin-left: 10px; }
.award.tba { opacity: .75; border-style: dashed; }
