/* Tillsammans: two big choices (Träningar, Tävlingar) and the schedule for the chosen one. */
.together-shell{margin-top:22px}
.together-heading{margin:4px 0 18px;color:#173a5e;font-size:clamp(28px,4vw,40px);font-weight:800;line-height:1.1;letter-spacing:-1px}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.together-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.together-choice{
  position:relative;isolation:isolate;overflow:hidden;
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:18px;align-items:center;align-content:center;
  min-width:0;min-height:172px;margin:0;padding:26px 28px;
  border:1px solid #1b3f7a;border-radius:20px;
  --together-ribbons:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 170'%3E%3Cdefs%3E%3Cfilter id='g' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='5'/%3E%3C/filter%3E%3ClinearGradient id='y' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23ffc400'/%3E%3Cstop offset='.55' stop-color='%23ffe773'/%3E%3Cstop offset='1' stop-color='%23ffcc12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 175C120 120 210 60 305 18L305 32C215 74 130 132 50 175Z' fill='%234f95ff' opacity='.55'/%3E%3Cpath d='M70 175C150 140 220 90 305 52L305 80C225 112 160 150 112 175Z' fill='%23ffd21f' opacity='.55' filter='url(%23g)'/%3E%3Cpath d='M70 175C150 140 220 90 305 52L305 80C225 112 160 150 112 175Z' fill='url(%23y)'/%3E%3Cpath d='M150 175C210 150 260 126 305 110L305 115C262 132 214 156 163 175Z' fill='%23fff2a8' opacity='.8'/%3E%3C/svg%3E");
  background:var(--together-ribbons) right bottom / auto 100% no-repeat,linear-gradient(120deg,#0a2a6e 0%,#0f3d9c 55%,#1650c0 100%);
  color:#fff;font:inherit;text-align:left;cursor:pointer;
  box-shadow:0 8px 18px #0b2a641c,0 18px 36px #0b2a641a;
  transition:transform .18s,box-shadow .18s,border-color .18s;
}
.together-choice-icon{
  grid-row:1 / span 2;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffffff2e,#ffffff0d 70%);color:#ffd84a;
  box-shadow:inset 0 0 0 2px #ffd21f,0 0 22px #ffd21f40;
}
.together-choice-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.together-choice-label{font-size:clamp(26px,3.2vw,36px);font-weight:850;line-height:1.05;letter-spacing:-.8px;text-shadow:0 2px 0 #0a2a6e,0 6px 18px #00103a66}
.together-choice-count{margin-top:7px;color:#cfe0ff;font-size:13px;font-weight:600;line-height:1.35}
.together-choice:hover{transform:translateY(-3px);border-color:#3b6fc4;box-shadow:0 12px 24px #0b2a642b,0 22px 42px #0b2a6424}
.together-choice:focus-visible{outline:3px solid #c68a20;outline-offset:5px}
.together-choice[aria-pressed="true"]{border-color:#ffd21f;box-shadow:0 0 0 3px #ffd21f,0 14px 32px #0b2a6438}
.together-choice[aria-pressed="true"] .together-choice-count{color:#fff}
body[data-together-selected="training"] .together-choice--competition,
body[data-together-selected="competition"] .together-choice--training{filter:saturate(.8) brightness(.94)}
body[data-together-selected="training"] .together-choice--competition:hover,
body[data-together-selected="competition"] .together-choice--training:hover{filter:none}

.together-schedule{margin-top:22px;padding:24px 26px 26px;border:1px solid #d5e0ec;border-radius:20px;background:#fff;box-shadow:0 6px 22px #173a5e0d}
.together-schedule-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:6px}
.together-schedule-head h2{margin:0;color:#173a5e;font-size:24px;font-weight:800;letter-spacing:-.5px}
.together-status{margin:0;color:#5f738a;font-size:13px}
.together-status[data-state="error"]{color:#b4232a;font-weight:650}
.together-list,.together-week-list{margin:0;padding:0;list-style:none}
.together-week{margin-top:18px}
.together-week-title{display:flex;align-items:baseline;gap:10px;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #e3eaf2;color:#173a5e;font-size:14px;font-weight:800;letter-spacing:.2px}
.together-week-title small{color:#61738a;font-size:12px;font-weight:550}
.together-week-list{display:grid;gap:10px}
.together-item{
  display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px;
  padding:12px 16px 12px 12px;border:1px solid #dfe7f0;border-left:4px solid #1468b6;border-radius:14px;background:#f8fbfe;
}
.together-item[data-kind="competition"]{border-left-color:#e3b100}
.together-item[data-state="live"]{border-color:#9fd3b4;border-left-color:#1f8a52;background:#f1faf5}
.together-date{
  display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:64px;border-radius:12px;
  background:linear-gradient(160deg,#123f95,#0a2a6e);color:#fff;line-height:1.05;text-align:center;
}
.together-date-weekday,.together-date-month{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#cfe0ff}
.together-date-day{margin:2px 0;color:#ffd84a;font-size:24px;font-weight:850}
.together-info{display:flex;flex-direction:column;min-width:0}
.together-item-title{color:#173a5e;font-size:16px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.together-item-time{margin-top:3px;color:#52697d;font-size:13px;line-height:1.4}
.together-badge{padding:5px 10px;border-radius:999px;background:#eaf2fb;color:#1a4f8b;font-size:11px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
.together-badge[data-state="live"]{background:#1f8a52;color:#fff}
.together-badge[data-state="today"]{background:#ffd84a;color:#4a3700}
.together-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.together-more{
  min-height:44px;padding:10px 18px;border:1px solid #c5d5e7;border-radius:999px;background:#fff;color:#173a5e;
  font:inherit;font-size:13px;font-weight:700;cursor:pointer;
}
.together-more:hover{border-color:#82a8ce;background:#edf3fa}
.together-more:disabled{cursor:progress;opacity:.7}
.together-more:focus-visible{outline:3px solid #c68a20;outline-offset:4px}
.together-noscript{padding:16px;border:1px solid #dfe6ef;border-radius:12px;background:#fff}

@media(max-width:760px){
  .together-shell{width:calc(100% - 36px);margin-top:16px}
  .together-heading{margin-bottom:14px}
  .together-choices{gap:12px}
  .together-choice{grid-template-columns:1fr;grid-template-rows:auto auto auto;justify-items:start;min-height:150px;padding:18px 16px;border-radius:16px}
  /* Keep the ribbons in the top corner on phones so they never cross the label. */
  .together-choice{background-size:auto 44%,100% 100%,100% 100%;background-position:right top,center,center}
  .together-choice-icon{grid-row:auto;width:48px;height:48px;margin-bottom:10px}
  .together-choice-icon svg{width:26px;height:26px}
  .together-choice-label{font-size:24px}
  .together-choice-count{margin-top:4px;font-size:11.5px}
  .together-schedule{margin-top:16px;padding:18px 14px 20px;border-radius:16px}
  .together-schedule-head h2{font-size:20px}
  .together-item{grid-template-columns:54px minmax(0,1fr);gap:12px;padding:10px 12px 10px 10px}
  .together-date{min-height:56px}
  .together-date-day{font-size:20px}
  .together-item-title{font-size:15px}
  .together-badge{grid-column:2;justify-self:start;margin-top:-4px}
}
@media(max-width:370px){
  .together-shell{width:calc(100% - 28px)}
  .together-choice{padding:15px 13px}
  .together-choice-label{font-size:21px}
}
@media(prefers-reduced-motion:reduce){
  .together-choice{transition:none}
  .together-choice:hover{transform:none}
}

html[data-theme="dark"] .together-heading,
html[data-theme="dark"] .together-schedule-head h2,
html[data-theme="dark"] .together-week-title,
html[data-theme="dark"] .together-item-title{color:var(--theme-text)}
html[data-theme="dark"] .together-schedule,
html[data-theme="dark"] .together-noscript{background:var(--theme-surface);border-color:var(--theme-line)}
html[data-theme="dark"] .together-item{background:var(--theme-raised);border-color:var(--theme-line);border-left-color:#4f95ff}
html[data-theme="dark"] .together-item[data-kind="competition"]{border-left-color:#e3b100}
html[data-theme="dark"] .together-item[data-state="live"]{border-left-color:#3cc07a}
html[data-theme="dark"] :is(.together-status,.together-week-title small,.together-item-time){color:var(--theme-muted)}
html[data-theme="dark"] .together-week-title{border-color:var(--theme-line)}
html[data-theme="dark"] .together-badge[data-state="soon"]{background:#1d3557;color:#cfe0ff}
html[data-theme="dark"] .together-more{background:var(--theme-raised);border-color:var(--theme-line);color:var(--theme-text)}
html[data-theme="dark"] .together-more:hover{background:var(--theme-hover)}
