/* Transparent opening header; the fixed frame never changes document flow. */
body.breakdance .sv-header.sv-shell {position:fixed;z-index:1000;top:0;left:50%;transform:translateX(-50%);width:calc(100% - 80px);max-width:1280px;min-height:100px;margin:0;padding:24px 0;background:transparent;border:1px solid transparent;border-radius:0;transition:width .25s ease,max-width .25s ease,padding .25s ease,background .25s ease,border-radius .25s ease,top .25s ease;}
body.breakdance .sv-header.is-scrolled {top:12px;width:calc(100% - 32px);max-width:1120px;min-height:68px;padding:10px 24px;border-color:#2c4260;border-radius:20px;background:rgba(10,17,29,.95);box-shadow:0 12px 40px #0005;backdrop-filter:blur(16px);}
body.breakdance .sv-header.is-scrolled .sv-logo {width:170px;}
body.breakdance .sv-header.is-scrolled .sv-button {padding:10px 20px;min-height:44px;}
body.breakdance .sv-main {padding-top:100px;}
body.breakdance.home .sv-main {padding-top:0;}
body.breakdance.home .sv-jubilee {padding-top:140px;}
body.breakdance .sv-main .sv-page-hero::before {top:-100px;}
body.admin-bar.breakdance .sv-header {top:32px;}
body.admin-bar.breakdance .sv-header.is-scrolled {top:44px;}
body.breakdance .sv-skip {z-index:1100;}
body.breakdance :is(#tapahtumat,#kilpailijalle,#aikataulu,#saapuminen) {scroll-margin-top:110px;}

/* Alternating vertical timeline. DOM order remains chronological at every width. */
body.breakdance.home #tapahtumat .sv-events-grid {display:flex;flex-direction:column;gap:0;position:relative;padding:8px 0 0;isolation:isolate;}
body.breakdance.home #tapahtumat .sv-events-grid::before {content:'';position:absolute;top:54px;bottom:54px;left:calc(50% - 1px);width:2px;background:linear-gradient(#2293ff,#5689b9 80%,transparent);z-index:-1;}
body.breakdance.home #tapahtumat .sv-event-card {width:calc(50% - 40px);align-self:flex-start;padding:26px;gap:16px;border:1px solid #2b405c;border-radius:22px;background:linear-gradient(145deg,#17283d,#101621);overflow:visible;min-width:0;position:relative;transform:none;box-shadow:0 18px 50px #0002;}
body.breakdance.home #tapahtumat .sv-event-card + .sv-event-card {margin-top:-240px;}
body.breakdance.home #tapahtumat .sv-event-card:nth-child(even) {align-self:flex-end;}
body.breakdance.home #tapahtumat .sv-event-card::before {content:'';position:absolute;right:-40px;left:auto;top:51px;width:40px;height:2px;background:#4d8ec6;pointer-events:none;}
body.breakdance.home #tapahtumat .sv-event-card::after {content:'';position:absolute;right:-48px;left:auto;top:44px;width:16px;height:16px;border:3px solid #8ec8ff;border-radius:50%;background:#0f0e14;box-shadow:0 0 18px #2293ff55;pointer-events:none;}
body.breakdance.home #tapahtumat .sv-event-card:nth-child(even)::before {left:-40px;right:auto;}
body.breakdance.home #tapahtumat .sv-event-card:nth-child(even)::after {left:-48px;right:auto;}
body.breakdance.home #tapahtumat .sv-card-date {order:-1;font-size:36px;line-height:1.15;min-height:42px;margin:0 0 2px;color:#8ec8ff;}
body.breakdance.home #tapahtumat .sv-event-card-image {width:100%;max-width:100%;height:230px;margin:0;object-fit:cover;border-radius:13px;}
body.breakdance.home #tapahtumat .sv-card-title {font-size:36px;line-height:1.14;}
body.breakdance.home #tapahtumat .sv-card-place {font-size:17px;color:#d5e4f4;}
body.breakdance.home #tapahtumat .sv-card-description {font-size:17px;line-height:1.65;color:#acbdcc;margin:0;}
body.breakdance.home #tapahtumat .sv-card-description:empty {display:none;}
body.breakdance.home #tapahtumat .sv-card-link {padding-top:18px;margin-top:4px;width:100%;border-top:1px solid #2b405c;}
body.breakdance.home #tapahtumat .sv-event-card:hover {border-color:#5186b7;box-shadow:0 18px 50px #0003;}
body.breakdance.home #tapahtumat .sv-event-card:hover::after {background:#2293ff;box-shadow:0 0 24px #2293ff88;}

/* The same CMS records feed the main row, directory, event panels and footer. */
body.breakdance .sv-main-partners {width:min(100% - 80px,1280px);margin:0 auto;padding:12px 0 64px;display:flex;flex-direction:column;gap:28px;}
body.breakdance .sv-main-partners:has(.sv-partner-grid) {border-bottom:1px solid #222b47;}
body.breakdance .sv-main-partners:not(:has(.sv-partner-grid)) {display:none;}
body.breakdance .sv-partner-grid {list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:20px;padding:0;margin:0;width:100%;}
body.breakdance .sv-partner-item {list-style:none;margin:0;padding:0;min-width:0;}
body.breakdance .sv-partner-logo {display:flex;align-items:center;justify-content:center;width:100%;min-height:116px;padding:24px;border:1px solid #293b55;border-radius:14px;text-decoration:none;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;background:#162236;color:#fff;}
body.breakdance .sv-partner-logo--light {background:#eef3f8;color:#101923;}
body.breakdance .sv-partner-logo-image {display:block;width:100%;height:68px;object-fit:contain;max-width:200px;}
body.breakdance .sv-partner-fallback {font-weight:600;text-align:center;font-size:18px;}
body.breakdance a.sv-partner-logo:hover {transform:translateY(-3px);border-color:#67b3ff;box-shadow:0 8px 28px #2293ff14;}
body.breakdance .sv-partner-logo:focus-visible,body.breakdance .sv-scroller-toggle:focus-visible,body.breakdance .sv-partner-viewport:focus-visible {outline:3px solid #2aff9c;outline-offset:4px;}
body.breakdance .sv-event-partners {display:flex;flex-direction:column;gap:28px;}
body.breakdance .sv-footer-partners {display:flex;flex-direction:column;gap:18px;padding-bottom:32px;border-bottom:1px solid #222b47;min-width:0;width:100%;}
body.breakdance .sv-footer-partners:not(:has(.sv-partner-scroller)) {display:none;}
body.breakdance .sv-footer-partners .sv-h3 {font-size:30px;}
body.breakdance .sv-partner-scroller {width:100%;min-width:0;}
body.breakdance .sv-partner-controls {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;}
body.breakdance .sv-scroller-toggle {font:inherit;font-size:14px;color:#dfefff;background:transparent;border:1px solid #354762;border-radius:30px;padding:9px 16px;cursor:pointer;min-height:40px;}
body.breakdance .sv-scroller-toggle[hidden] {display:none;}
body.breakdance .sv-partner-viewport {overflow-x:auto;overflow-y:hidden;width:100%;scrollbar-width:thin;scrollbar-color:#314f71 transparent;overscroll-behavior-x:contain;padding:6px 0 12px;}
body.breakdance .sv-partner-track {display:flex;width:max-content;}
body.breakdance .sv-partner-strip {display:flex;gap:20px;list-style:none;margin:0;padding:0 20px 0 0;}
body.breakdance .sv-partner-strip .sv-partner-item {flex:0 0 190px;width:190px;}
body.breakdance .sv-partner-strip .sv-partner-logo {min-height:100px;padding:18px;}
body.breakdance .sv-partner-strip .sv-partner-logo-image {height:60px;}
@media (max-width:1023px) {
 body.breakdance .sv-header.sv-shell {width:calc(100% - 48px);}
 body.breakdance .sv-header.is-scrolled {width:calc(100% - 32px);}
 body.breakdance .sv-main-partners {width:calc(100% - 48px);}
}
@media (max-width:767px) {
 body.breakdance .sv-header.sv-shell {width:calc(100% - 40px);min-height:78px;padding:18px 0;}
 body.breakdance .sv-header.is-scrolled {width:calc(100% - 24px);top:8px;padding:8px 14px;min-height:58px;border-radius:16px;}
 body.breakdance .sv-header.is-scrolled .sv-logo {width:145px;}
 body.breakdance .sv-main {padding-top:78px;}
 body.breakdance.home .sv-jubilee {padding-top:110px;}
 body.breakdance .sv-main .sv-page-hero::before {top:-78px;}
 body.breakdance .sv-mobile-menu nav {top:48px;max-height:calc(100dvh - 110px);overflow-y:auto;max-width:calc(100vw - 40px);}
 body.admin-bar.breakdance .sv-header {top:46px;}
 body.admin-bar.breakdance .sv-header.is-scrolled {top:54px;}
 body.breakdance .sv-main-partners {width:calc(100% - 40px);padding-bottom:40px;gap:22px;}
 body.breakdance .sv-partner-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 body.breakdance .sv-partner-logo {min-height:94px;padding:15px;}
 body.breakdance .sv-partner-logo-image {height:60px;}
 body.breakdance .sv-partner-strip .sv-partner-item {flex-basis:165px;width:165px;}
 body.breakdance .sv-partner-strip {gap:14px;padding-right:14px;}
}
@media (prefers-reduced-motion:reduce) {
 body.breakdance .sv-header.sv-shell,body.breakdance .sv-partner-logo {transition:none;}
}

/* Full-bleed partner strip; controls and heading stay aligned with the footer. */
body.breakdance .sv-footer-partners .sv-partner-viewport {width:calc(100vw - 24px);max-width:none;margin-left:calc((100% - (100vw - 24px)) / 2);mask-image:linear-gradient(to right,transparent,#000 clamp(28px,7vw,140px),#000 calc(100% - clamp(28px,7vw,140px)),transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 clamp(28px,7vw,140px),#000 calc(100% - clamp(28px,7vw,140px)),transparent);}
body.breakdance .sv-footer-partners .sv-partner-viewport:focus-within {mask-image:none;-webkit-mask-image:none;}
body.breakdance .sv-footer-partners .sv-partner-controls {justify-content:flex-end;}
@media (max-width:1023px) and (min-width:768px) {
 body.breakdance.home #tapahtumat .sv-event-card {padding:20px;width:calc(50% - 28px);gap:14px;}
 body.breakdance.home #tapahtumat .sv-event-card::before {right:-28px;width:28px;}
 body.breakdance.home #tapahtumat .sv-event-card::after {right:-36px;}
 body.breakdance.home #tapahtumat .sv-event-card:nth-child(even)::before {left:-28px;}
 body.breakdance.home #tapahtumat .sv-event-card:nth-child(even)::after {left:-36px;}
 body.breakdance.home #tapahtumat .sv-card-title {font-size:30px;}
 body.breakdance.home #tapahtumat .sv-card-date {font-size:30px;}
 body.breakdance.home #tapahtumat .sv-event-card-image {height:180px;}
}
@media (max-width:767px) {
 body.breakdance.home #tapahtumat .sv-events-grid {padding-left:26px;gap:28px;}
 body.breakdance.home #tapahtumat .sv-event-card + .sv-event-card {margin-top:0;}
 body.breakdance.home #tapahtumat .sv-events-grid::before {left:6px;top:44px;bottom:36px;}
 body.breakdance.home #tapahtumat .sv-event-card,body.breakdance.home #tapahtumat .sv-event-card:nth-child(even) {align-self:stretch;width:100%;padding:18px;gap:14px;margin:0;border-radius:18px;}
 body.breakdance.home #tapahtumat .sv-event-card::before,body.breakdance.home #tapahtumat .sv-event-card:nth-child(even)::before {left:-20px;right:auto;top:36px;width:20px;height:2px;}
 body.breakdance.home #tapahtumat .sv-event-card::after,body.breakdance.home #tapahtumat .sv-event-card:nth-child(even)::after {left:-28px;right:auto;top:29px;}
 body.breakdance.home #tapahtumat .sv-card-date {font-size:28px;min-height:34px;margin:0;}
 body.breakdance.home #tapahtumat .sv-card-title {font-size:30px;}
 body.breakdance.home #tapahtumat .sv-event-card-image {height:auto;aspect-ratio:1.6;}
 body.breakdance.home #tapahtumat .sv-card-description,body.breakdance.home #tapahtumat .sv-card-place {font-size:16px;}
}

/* One native event link covers the card; no nested anchors or click handlers. */
body.breakdance.home #tapahtumat .sv-card-link {position:static;}
body.breakdance.home #tapahtumat .sv-card-link::after {content:'';position:absolute;inset:0;z-index:2;border-radius:22px;}
body.breakdance.home #tapahtumat .sv-event-card:has(.sv-card-link:focus-visible) {outline:3px solid #2aff9c;outline-offset:5px;}
@media (min-width:1024px) {
 body.breakdance.home #tapahtumat .sv-event-card + .sv-event-card {margin-top:var(--sv-timeline-overlap,-240px);}
}
/* The rail ends at the first/last date marker, rather than the card bottoms. */
body.breakdance.home #tapahtumat .sv-events-grid.has-timeline-tracker::before {top:var(--sv-rail-start);bottom:auto;height:var(--sv-rail-length);background:#2a4567;}
body.breakdance.home #tapahtumat .sv-events-grid.has-timeline-tracker::after {content:'';position:absolute;left:calc(50% - 1px);top:var(--sv-rail-start);width:2px;height:var(--sv-rail-length);z-index:-1;pointer-events:none;background:linear-gradient(#2293ff,#a9dcff);box-shadow:0 0 14px #2293ff88;transform-origin:top;transform:scaleY(var(--sv-rail-progress,0));}
body.breakdance.home #tapahtumat .sv-event-card.is-timeline-current {border-color:#8fcfff;box-shadow:0 0 0 1px #2293ff55,0 12px 50px #2293ff24,inset 0 0 70px #2293ff14;}
body.breakdance.home #tapahtumat .sv-event-card.is-timeline-current .sv-card-date {color:#e2f3ff;}
body.breakdance.home #tapahtumat .sv-event-card.is-timeline-current::before {background:#9bd5ff;}
body.breakdance.home #tapahtumat .sv-event-card.is-timeline-current::after {background:#c9eaff;border-color:#fff;box-shadow:0 0 24px #2293ffcc;}
body.breakdance.home #tapahtumat .sv-event-card::after,body.breakdance.home #tapahtumat .sv-card-date {transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease,color .25s ease;}
@media (max-width:767px) {
 body.breakdance.home #tapahtumat .sv-events-grid.has-timeline-tracker::after {left:6px;}
 body.breakdance.home #tapahtumat .sv-card-link::after {border-radius:18px;}
}
@media (prefers-reduced-motion:reduce) {
 body.breakdance.home #tapahtumat .sv-events-grid.has-timeline-tracker::after {display:none;}
 body.breakdance.home #tapahtumat .sv-event-card,body.breakdance.home #tapahtumat .sv-event-card::after,body.breakdance.home #tapahtumat .sv-card-date {transition:none;}
}
