.ev-wrap {
  --ev-text: var(--ink, #172b53);
  --ev-muted: var(--muted, #465470);
  --ev-brand: var(--brand, #1450ab);
  --ev-accent: var(--accent, #3882cc);
  --ev-line: var(--line, #cbd1d7);
  --ev-paper: var(--surface, #f9fdff);
  --ev-tint: var(--tint, #e6f2fd);
  --ev-cold: #345880;
  --ev-cold-light: #e8f4f6;
  --ev-warm-light: #e8effe;
  --ev-mark: #154a9c;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  font-family: var(--ui, inherit);
  color: var(--ev-text);
}
html[data-theme=nord] .ev-wrap { --ev-cold: #164c77; --ev-cold-light: #dcedf6; --ev-warm-light: #e7e5fa; --ev-mark: #514690; }
html[data-theme=alpine] .ev-wrap { --ev-cold: #386256; --ev-cold-light: #e5eddf; --ev-warm-light: #f7e6cc; --ev-mark: #97522a; }
.ev-wrap *, .ev-wrap ::before, .ev-wrap ::after { box-sizing: border-box; }
.ev-wrap :is(h2,h3,h4,p,ol,ul,figure,dl,dd) { margin: 0; }
.ev-card {
  min-width: 0; margin: 0 0 clamp(26px,4vw,56px); padding: clamp(21px,4.8vw,56px);
  background: var(--ev-paper); border: 1px solid var(--ev-line); border-radius: var(--corner, 16px);
  scroll-margin-top: 6rem;
}
.ev-head { max-width: 65rem; }
.ev-type {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ev-brand);
  font-size: .79rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; line-height: 1.4;
}
.ev-type::before { content: ''; width: 20px; height: 3px; display: block; background: currentColor; }
.ev-head h2 {
  font: 800 clamp(2.6rem,6.5vw,5.2rem)/.99 var(--display,Arial,sans-serif);
  letter-spacing: -.065em; color: var(--ev-text); margin: .15em 0 .25em;
}
html[data-theme=alpine] .ev-head h2 { font-weight: 600; letter-spacing: -.06em; }
.ev-head p,.ev-intro,.ev-detail p,.ev-note { max-width: 77ch; color: var(--ev-muted); line-height: 1.55; font-size: 1rem; }
.ev-head .ev-date { margin-bottom: .55rem; color: var(--ev-brand); font-weight: 700; }
.ev-wrap h3,.ev-wrap caption,.ev-section-title {
  color: var(--ev-text); text-align: left; line-height: 1.18;
  font-family: var(--display,Arial,sans-serif); font-size: clamp(1.3rem,2.65vw,2.1rem);
  font-weight: 700; letter-spacing: -.035em; margin: 0 0 12px;
}
.ev-block { margin-top: clamp(23px,4vw,44px); }
.ev-stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 20px!important; border-block: 1px solid var(--ev-line); }
.ev-stages>li { min-width: 0; padding: 15px clamp(10px,1.7vw,23px); }
.ev-stages>li:first-child { padding-left: 0; }
.ev-stages>li+li { border-left: 1px solid var(--ev-line); }
.ev-stage-name { font-size: .81rem; font-weight: 700; color: var(--ev-muted); }
.ev-stages strong { display: block; font-size: clamp(1.15rem,2vw,1.55rem); letter-spacing: -.035em; line-height: 1.12; margin-top: 4px; }
.ev-stages.ev-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ev-exercises { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(10px,1.4vw,20px); margin-top: 16px!important; }
.ev-exercises>li { min-width: 0; background: var(--ev-paper); border: 1px solid var(--ev-line); border-radius: var(--corner,12px); overflow: hidden; }

.ev-art { position: relative; overflow: hidden; aspect-ratio: 1.26; border-bottom: 1px solid #c2d9ed;
  background: linear-gradient(126deg,rgba(255,255,255,.48),rgba(218,240,255,.36)); }
.ev-athlete { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; padding:clamp(10px,1.25vw,18px); }
.ev-art,.ev-distance-art,.ev-turn { background: radial-gradient(ellipse at center,#fff 5%,#f1faff 55%,#d9edf8 100%); }
.ev-exercises.ev-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ev-pair .ev-art { aspect-ratio:auto; height:clamp(193px,20vw,266px); }
.ev-relay-round { display:grid; grid-template-columns: minmax(135px,.65fr) minmax(0,2fr); gap:clamp(10px,1.45vw,22px); margin-top:16px; }
.ev-relay-round .ev-cycle { align-self:stretch; display:flex; flex-direction:column; justify-content:space-between; margin-top:0!important; }
.ev-turn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:12px; border:1px solid var(--ev-line); border-radius:var(--corner,12px); }
.ev-turn img { display:block; height:clamp(122px,10vw,149px); width:100%; object-fit:contain; }
.ev-turn figcaption { text-align:center; color:var(--ev-cold); font-size:.89rem; font-weight:700; line-height:1.25; }
.ev-distance-grid>li { overflow:hidden; }
.ev-distance-art { display:flex; align-items:center; justify-content:center; height:clamp(139px,15vw,191px); border-bottom:1px solid var(--ev-line); margin:calc(-1 * var(--dist-pad)) calc(-1 * var(--dist-pad)) 15px; }
.ev-distance-art img { display:block; width:100%; height:100%; object-fit:contain; padding:9px 16px; }
.ev-swim img { padding-inline:clamp(14px,2vw,30px); }

.ev-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ev-reps { display: inline-block; color: #175594; font-size: .79rem; font-weight: 700; line-height: 1.4; margin-top: 9px; font-variant-numeric: tabular-nums; }
.ev-ex-txt { padding: 13px clamp(12px,1.4vw,20px) 17px; }
.ev-ex-txt h4 { font-size: clamp(1.02rem,1.6vw,1.28rem); line-height: 1.16; letter-spacing: -.025em; }
.ev-ex-txt p { line-height: 1.45; font-size: .94rem; color: var(--ev-muted); margin-top: 7px; }
.ev-note { margin-top: 12px!important; }
.ev-note strong,.ev-intro strong { color: var(--ev-text); }
.ev-table { border-collapse: collapse; width: 100%; line-height: 1.4; font-size: 1rem; color: var(--ev-text); font-variant-numeric: tabular-nums; }
.ev-table :is(th,td) { text-align: left; border: 0; border-bottom: 1px solid var(--ev-line); padding: 11px 12px; vertical-align: middle; }
.ev-table thead th { color: var(--ev-muted); background: var(--ev-tint); font-size: .86rem; font-weight: 650; }
.ev-table tbody th { color: var(--ev-text); font-size: .87rem; font-weight: 750; }
.ev-table tbody td { font-weight: 700; }
.ev-table caption { caption-side: top; }
.ev-tablewrap { min-width: 0; }
.ev-cycle { border: 1px solid var(--ev-line); border-radius: var(--corner,12px); overflow: hidden; margin-top: 15px!important; }
.ev-cycle table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; color: var(--ev-text); }
.ev-cycle th,.ev-cycle td { padding: 12px clamp(6px,2vw,21px); line-height: 1.25; }
.ev-cycle thead { background: var(--ev-tint); }
.ev-cycle thead th { font-size: .86rem; font-weight: 650; }
.ev-cycle thead th:first-child { width: 27%; }
.ev-cycle tbody th { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ev-cycle tbody tr+tr { border-top: 1px solid var(--ev-line); }
.ev-role { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-size: .9rem; }
.ev-role svg { width: 36px; height: 36px; flex: none; padding: 6px; border-radius: 7px; color: var(--ev-mark); background: var(--ev-warm-light); }
.ev-role.run svg { color: var(--ev-cold); background: var(--ev-cold-light); }
.ev-water { margin: 0; display: flex; align-items: center; gap: 12px; padding: 13px clamp(10px,2vw,21px); color: var(--ev-cold); background: var(--ev-cold-light); border-top: 1px solid var(--ev-line); line-height: 1.4; }
.ev-water img { flex: none; width: clamp(78px,13vw,162px); height: auto; }
.ev-water b { color: var(--ev-text); }
.ev-teamlist { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin-bottom: 5px!important; color: var(--ev-muted); }
.ev-teamlist li { display: inline-flex; align-items: baseline; gap: 6px; }
.ev-teamlist b { color: var(--ev-text); font-weight: 800; }
.ev-figure { margin: 14px 0 0!important; padding: clamp(12px,2.4vw,24px); background: var(--ev-tint); border-radius: var(--corner,12px); }
.ev-legend { display: flex; flex-wrap: wrap; gap: 6px 19px; align-items: center; color: var(--ev-muted); font-size: .85rem; line-height: 1.4; font-weight: 650; }
.ev-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ev-legend i { width: 13px; height: 12px; flex: none; }
.ev-solid { background: var(--ev-mark); }
.ev-hatch { background: repeating-linear-gradient(135deg,var(--ev-cold) 0 3px,var(--ev-cold-light) 3px 5px); border: 1px solid var(--ev-cold); }
.ev-ladder { list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(3px,1vw,12px); padding: 0; max-width: 44rem; margin: 14px auto 0!important; }
.ev-ladder li { min-width: 0; text-align: center; }
.ev-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 78px; border-bottom: 1px solid var(--ev-line); }
.ev-bars i { width: min(28%,28px); height: calc(var(--n) * 14px); border-radius: 3px 3px 0 0; }
.ev-ladder b { display: block; font-size: 1rem; margin-top: 6px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ev-distance-grid { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; gap: clamp(8px,1.6vw,18px); }
.ev-distance-grid>li { min-width: 0; --dist-pad:clamp(13px,2.3vw,24px); padding:var(--dist-pad); border-radius: var(--corner,12px); background: var(--ev-cold-light); border: 1px solid var(--ev-line); }
.ev-distance-grid h4 { font-size: 1.22rem; font-weight: 760; line-height: 1.25; color: var(--ev-text); margin: 0 0 13px; }
.ev-distance-grid .ev-distances { display: grid; gap: 13px; }
.ev-distance-grid .ev-distances>div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px; align-items: baseline; }
.ev-distance-grid .ev-cat { font-size: .8rem; font-weight: 700; letter-spacing: .025em; color: var(--ev-cold); }
.ev-distance-grid .ev-meters { font-weight: 780; font-size: 1.27rem; font-variant-numeric: tabular-nums; color: var(--ev-text); }
.ev-distance-grid .water dd { font-variant-numeric: tabular-nums; }
.ev-track { grid-column: 1/-1; position: relative; height: 10px; background: var(--ev-paper); border-radius: 20px; }
.ev-track i { position: absolute; height: 100%; width: var(--portion); display: block; border-radius: inherit; }
.ev-track.trail i { background: repeating-linear-gradient(90deg,var(--ev-cold) 0 15px,transparent 15px 17px); }
.ev-track.pool i { background: repeating-linear-gradient(135deg,var(--ev-cold) 0 3px,var(--ev-cold-light) 3px 6px); border: 1px solid var(--ev-cold); }
.ev-ages { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: .65rem 0; }
.ev-ages>div { display: flex; align-items: baseline; gap: 6px; }
.ev-ages dt { font-weight: 800; font-size: .9rem; }
.ev-ages dd { color: var(--ev-muted); }
.ev-detail { margin: 0; border-top: 1px solid var(--ev-line); }
.ev-details { margin-top: clamp(22px,3vw,35px); }
.ev-detail summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; min-height: 48px; gap: 12px; padding: 12px 0; font-weight: 700; line-height: 1.35; }
.ev-detail summary::-webkit-details-marker { display: none; }
.ev-detail summary::after { content: ''; display: block; width: 9px; height: 9px; margin: -3px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; flex: none; color: var(--ev-brand); }
.ev-detail[open] summary::after { rotate: 225deg; margin-top: 4px; }
.ev-detail div { padding-bottom: 15px; }
.ev-detail p+p { margin-top: .5em; }
.ev-detail:has(summary:focus-visible) { outline: 2px solid var(--ev-brand); outline-offset: 2px; }
.ev-price { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--ev-line); padding-top: 20px; }
.ev-price div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ev-price div span { color: var(--ev-muted); font-size: .9rem; }
.ev-price strong { font-weight: 780; font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.ev-price a { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 16px; min-height: 46px; text-align:center; border-radius: var(--corner,8px); background: var(--ev-brand); color: #fff; font-weight: 700; text-decoration: none; line-height: 1.3; }
.ev-price a:hover { filter: brightness(.9); }
.ev-price a:focus-visible { outline: 3px solid var(--ev-text); outline-offset: 3px; }
@media(max-width:740px) {
  .ev-wrap { width: min(100% - 24px, 1160px); }
  .ev-card { padding: clamp(16px,3.7vw,27px); }
  .ev-exercises { gap: 9px; }
  .ev-cycle .ev-role { flex-wrap: wrap; gap: 4px; }
  .ev-price div { flex-direction: column; gap: 5px; }
}
@media(max-width:590px) {
  .ev-card { scroll-margin-top: 76px; }
  .ev-head h2 { font-size: clamp(2.05rem,8.8vw,3rem); }
  .ev-exercises { grid-template-columns: 1fr; gap: 12px; }
  .ev-art { aspect-ratio: 1.42; }
  .ev-exercises.ev-pair { grid-template-columns: 1fr; }
  .ev-relay-round { grid-template-columns: 1fr; }
  .ev-turn { flex-direction:row; gap:18px; }
  .ev-turn img { width:60px; height:92px; }
  .ev-turn figcaption { text-align:left; }
  .ev-distance-art { height:145px; }
  .ev-water { align-items:center; gap:9px; }

  .ev-ex-txt { padding: 13px 14px 16px; }
  .ev-ex-txt h4 { font-size: 1.13rem; }
  .ev-block { margin-top: 26px; }
  .ev-stages { grid-template-columns: 1fr; }
  .ev-stages>li { display: grid; grid-template-columns: minmax(74px,.8fr) minmax(0,1.2fr); align-items: center; gap: 6px; padding: 8px 0; }
  .ev-stages>li+li { border: 0; border-top: 1px solid var(--ev-line); }
  .ev-stages strong { margin: 0; font-size: 1rem; }
  .ev-table.responsive, .ev-table.responsive tbody, .ev-table.responsive tr { display: block; }
  .ev-table.responsive caption { display: block; }
  .ev-table.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ev-table.responsive tbody { display: grid; gap: 8px; }
  .ev-table.responsive tbody tr { background: var(--ev-tint); padding: 9px 12px; border-radius: var(--corner,8px); }
  .ev-table.responsive tbody th { display: block; border: 0; padding: 3px 0 8px; font-size: .92rem; }
  .ev-table.responsive tbody td { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 7px; border: 0; padding: 3px 0; line-height: 1.25; }
  .ev-table.responsive tbody td::before { content: attr(data-label); color: var(--ev-muted); font-weight: 500; font-size: .88rem; }
  .ev-distance-grid { grid-template-columns: 1fr; }
  .ev-distance-grid h4 { font-size: 1.05rem; margin-bottom: 6px; }
  .ev-distance-grid .ev-meters { font-size: 1.09rem; }
  .ev-distance-grid .ev-distances { gap: 6px; }
  .ev-cycle th,.ev-cycle td { padding: 10px 5px; }
  .ev-cycle thead th { font-size: .8rem; }
  .ev-cycle .ev-role { display: grid; justify-items: start; }
}
@media(max-width:380px) {
  .ev-wrap { width: calc(100% - 16px); }
  .ev-card { padding: 16px 13px; }
  .ev-price { align-items: stretch; flex-direction: column; gap: 12px; }
  .ev-price div { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

html[data-theme=ice] .ev-wrap {
  --ev-text: #0d3256; --ev-muted: #35556e; --ev-brand: #125298;
  --ev-accent: #2684bd; --ev-line: #b7cfe0; --ev-paper: #f9fcff;
  --ev-tint: #e5f2fb; --ev-cold: #195991; --ev-cold-light: #e1f2ff;
  --ev-warm-light: #e3ecfc; --ev-mark: #173f85;
}
html[data-theme=ice] .ev-card {
  position: relative; isolation: isolate;
  background: linear-gradient(133deg,rgba(255,255,255,.92),rgba(244,251,255,.84) 65%,rgba(228,244,255,.87));
  border: 1px solid rgba(155,190,217,.76);
  box-shadow: inset 1px 1px 1px #fff,inset -2px -2px 0 rgba(180,214,238,.27),0 9px 30px rgba(64,116,152,.06);
}
html[data-theme=ice] .ev-card::before {
  position: absolute; content: ''; inset: 0; pointer-events: none; z-index: -1;
  border-radius: inherit; background: linear-gradient(148deg,rgba(255,255,255,.72),transparent 12%,transparent 86%,rgba(165,212,244,.12));
}
html[data-theme=ice] :is(.ev-exercises>li,.ev-figure,.ev-distance-grid>li,.ev-cycle) {
  border: 1px solid rgba(145,182,210,.75);
  background: linear-gradient(139deg,rgba(255,255,255,.83),rgba(228,244,255,.62));
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.98), inset -2px -2px 0 rgba(179,213,238,.28);
}
html[data-theme=ice] :is(.ev-exercises>li,.ev-distance-grid>li,.ev-figure) { -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
html[data-theme=ice] .ev-stages { gap: 8px; border: 0; }
html[data-theme=ice] .ev-stages>li {
  border: 1px solid rgba(149,189,218,.75); border-radius: 10px; padding: 13px clamp(10px,1.5vw,19px);
  background: linear-gradient(130deg,rgba(255,255,255,.9),rgba(223,239,250,.62));
  box-shadow: inset 1px 1px 0 #fff,inset -1px -1px 0 #e0f1ff;
}
html[data-theme=ice] .ev-stage-name { display: inline-flex; align-items: center; gap: 7px; color: #315b7f; }
html[data-theme=ice] .ev-stage-name svg { width: 22px; height: 22px; flex: none; }
html[data-theme=ice] .ev-track { height: 12px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px #bdd2e4; }
html[data-theme=ice] .ev-solid { border:1px solid #1e548b; background: linear-gradient(to right,#c7e4fa,#79b1d8); }
html[data-theme=ice] .ev-hatch { border:1px solid #3e6c9c; background:repeating-linear-gradient(135deg,#c1def2 0 2px,#eff9ff 2px 6px); }
html[data-theme=ice] .ev-track.trail i { background: repeating-linear-gradient(90deg,#3978a9 0 14px,#d8eefc 14px 17px); border:1px solid #447ba1; }
html[data-theme=ice] .ev-track.pool i { background: repeating-linear-gradient(135deg,#b0d5ee 0 3px,#effaff 3px 7px); border:1px solid #4179a2; }
html[data-theme=ice] .ev-teamlist b { padding:2px 7px; color:#184c7b; border:1px solid #aecae0; border-radius:6px; background:rgba(239,249,255,.8); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme=ice] .ev-card {
    background: linear-gradient(133deg,rgba(255,255,255,.80),rgba(244,251,255,.72) 65%,rgba(228,244,255,.75));
  }
  html[data-theme=ice] :is(.ev-exercises>li,.ev-figure,.ev-distance-grid>li,.ev-cycle) {
    background: linear-gradient(139deg,rgba(255,255,255,.71),rgba(228,244,255,.50));
  }
  html[data-theme=ice] .ev-stages>li {
    background: linear-gradient(130deg,rgba(255,255,255,.78),rgba(223,239,250,.50));
  }
}
@media (max-width:590px) {
  html[data-theme=ice] .ev-stages { gap:5px; }
  html[data-theme=ice] .ev-stages>li { padding: 9px 10px; grid-template-columns: minmax(100px,.86fr) minmax(0,1.14fr); }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-theme=ice] :is(.ev-card,.ev-figure,.ev-distance-grid>li,.ev-exercises>li,.ev-cycle,.ev-stages>li) { backdrop-filter:none; -webkit-backdrop-filter:none; background:#f2f8fd; }
}
