/* /events/ page. Markup: mu-plugins/vortex-events-page.php. Navy in both themes, like /ranking/. */

body.vx-events #sidebar,
body.vx-events .entry-title,
body.vx-events .main_title { display: none; }
body.vx-events #main-content { background: #2a2e45; }
body.vx-events #main-content .container { width: 100%; max-width: none; padding: 0; }
body.vx-events #main-content .container:before { display: none; }
body.vx-events #left-area { float: none; width: 100%; padding: 0; }
body.vx-events .entry-content { padding: 0; }

.vx-ev { min-height: 560px; padding: 44px 0 72px; background: #2a2e45; color: #d5d8e5; font-size: 15px; line-height: 1.45; font-variant-numeric: lining-nums; }
.vx-ev-in { max-width: 1080px; margin: 0 auto; padding: 0 32px; box-sizing: content-box; }
.vx-ev p { padding: 0; }
#main-content .vx-ev h1 { margin: 0 0 24px; padding: 0; color: #fff; font-size: 48px; font-weight: 800; line-height: 1.1; }
#main-content .vx-ev h2 { margin: 0; padding: 0; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.25; }
#main-content .vx-ev a { color: #f29a8b; text-decoration: none; }
#main-content .vx-ev a:hover { color: #f8b9ae; text-decoration: underline; }
#main-content .vx-ev a:focus-visible { border-radius: 2px; outline: 2px solid #fff; outline-offset: 2px; }
#main-content .vx-ev [hidden] { display: none !important; }
#main-content .vx-ev ul { margin: 0; padding: 0; list-style: none; }
#main-content .vx-ev li { margin: 0; padding: 0; list-style: none; }

.vx-ev-failed { margin: 0; padding: 48px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: #1c1f31; text-align: center; }

/* Happening now + Coming up */
.vx-ev-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; margin-bottom: 32px; }
.vx-ev-panel { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #1c1f31; }
#main-content .vx-ev-panel h2 { margin-bottom: 12px; font-size: 16px; }
#main-content .vx-ev-panel li { padding: 9px 0 9px 18px; border-top: 1px solid rgba(255, 255, 255, .07); position: relative; }
#main-content .vx-ev-panel li:first-child { border-top: 0; padding-top: 0; }
#main-content .vx-ev-panel li:last-child { padding-bottom: 0; }
#main-content .vx-ev-panel li:before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c)); }
#main-content .vx-ev-panel li:first-child:before { top: 7px; }
@media (min-width: 821px) {
  /* Coming up runs across, so both panels end up about the same height. */
  #main-content .vx-ev-panel:last-child ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
  #main-content .vx-ev-panel:last-child li { padding: 0 0 0 18px; border-top: 0; }
  #main-content .vx-ev-panel:last-child li:before { top: 7px; }
}
.vx-ev-panel strong { display: block; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.35; }
.vx-ev-when { display: block; color: #b4b8cc; font-size: 13.5px; }
.vx-ev .vx-ev-none { margin: 0; color: #b4b8cc; }

/* Month title + arrows */
.vx-ev-bar-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
#main-content .vx-ev .vx-ev-title { font-size: 26px; }
.vx-ev-nav { display: flex; gap: 6px; }
#main-content .vx-ev-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #1c1f31;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
#main-content .vx-ev-nav .vx-ev-arrow { width: 44px; padding: 0; }
#main-content .vx-ev-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
#main-content .vx-ev-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#main-content .vx-ev-nav button:disabled { color: #6f7490; border-color: rgba(255, 255, 255, .08); cursor: not-allowed; }
/* The nav bar names the month once JavaScript has shown it; without it each month carries its own title. */
#main-content .vx-ev.is-ready .vx-ev-month-title { display: none; }
#main-content .vx-ev .vx-ev-month-title { margin: 24px 0 12px; font-size: 26px; }

/* Month grid */
.vx-ev-grid { overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #1c1f31; }
.vx-ev-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #14162a; }
.vx-ev-head div { padding: 11px 0; color: #b4b8cc; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.vx-ev-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 112px; padding-bottom: 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vx-ev-day { grid-row: 1 / -1; margin-bottom: -8px; padding: 7px 8px; border-left: 1px solid rgba(255, 255, 255, .07); }
.vx-ev-day:first-child { border-left: 0; }
.vx-ev-day span { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 13px; color: #d5d8e5; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vx-ev-day.is-out { background: rgba(0, 0, 0, .16); }
.vx-ev-day.is-out span { color: #7d829c; font-weight: 600; }
.vx-ev-day.is-today { background: rgba(213, 85, 66, .1); }
.vx-ev-day.is-today span { background: linear-gradient(100deg, #852b89, #bd4030); color: #fff; }

/* A bar spans its days. Where it runs on into the next week its end stays square. */
.vx-ev-bar {
  z-index: 1;
  align-self: start;
  overflow: hidden;
  margin: 0 6px 4px;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(var(--c), .3), rgba(var(--c), .1));
  color: rgb(var(--c));
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vx-ev-bar.from-before { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.vx-ev-bar.to-after { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.vx-ev-timed { z-index: 1; position: relative; min-width: 0; margin: 0 6px 4px; padding: 2px 3px 2px 14px; font-size: 12.5px; line-height: 1.35; }
.vx-ev-timed:before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--c)); }
.vx-ev-timed time { display: block; color: #b4b8cc; font-size: 12px; font-variant-numeric: tabular-nums; }
.vx-ev-timed span { display: block; overflow: hidden; color: #fff; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Day list: the phone layout, and what screen readers get on wide screens. */
.vx-ev-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vx-ev-zone { margin: 12px 0 0; color: #b4b8cc; font-size: 13px; text-align: right; }

/* Every day, Every week, Every year */
.vx-ev-guide { margin-top: 36px; }
#main-content .vx-ev-guide h2 { margin: 32px 0 14px; }
#main-content .vx-ev-guide h2:first-child { margin-top: 0; }
.vx-ev-timetable { overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #1c1f31; }
.vx-ev-slot { display: grid; grid-template-columns: 210px 260px minmax(0, 1fr); align-items: center; gap: 4px 18px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vx-ev-slot:first-child { border-top: 0; }
#main-content .vx-ev-slot h3 { margin: 0; padding: 0 0 0 16px; position: relative; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.35; }
#main-content .vx-ev-slot h3:before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c)); }
.vx-ev .vx-ev-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.vx-ev-times time { padding: 2px 8px; border-radius: 6px; background: rgba(var(--c), .16); color: rgb(var(--c)); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vx-ev .vx-ev-slot-text { margin: 0; color: #b4b8cc; font-size: 13.5px; line-height: 1.45; }
.vx-ev-bonus { display: block; margin-top: 2px; color: #d5d8e5; font-size: 13.5px; }
.vx-ev-guide dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; }
.vx-ev-guide dl > div { padding: 16px 18px; border: 1px solid rgba(var(--c), .3); border-radius: 12px; background: radial-gradient(120% 90% at 0% 0%, rgba(var(--c), .12), rgba(var(--c), 0) 65%), #1c1f31; }
.vx-ev-guide dt { margin: 0 0 2px; color: rgb(var(--c)); font-size: 16px; font-weight: 800; line-height: 1.35; }
.vx-ev-guide dd { margin: 6px 0 0; white-space: pre-line; }
.vx-ev-guide dd.vx-ev-when { margin-top: 0; white-space: normal; }

.vx-ev .vx-ev-foot { margin: 16px 0 0; color: #b4b8cc; font-size: 14px; }
.vx-ev-guide + .vx-ev-foot { margin-top: 24px; }
.vx-ev-foot code { padding: 1px 6px; border-radius: 4px; background: #14162a; color: #fff; font-size: 13px; }
@media (max-width: 1000px) {
  .vx-ev-slot { grid-template-columns: minmax(0, 1fr); }
  #main-content .vx-ev-slot h3 { margin-bottom: 4px; }
  .vx-ev .vx-ev-slot-text { margin-top: 6px; }
}

@media (max-width: 820px) {
  .vx-ev { padding: 28px 0 48px; }
  .vx-ev-in { padding: 0 16px; }
  #main-content .vx-ev h1 { font-size: 38px; }
  .vx-ev-panels { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 24px; }
  .vx-ev-panel { padding: 14px 16px; }
  #main-content .vx-ev .vx-ev-title { font-size: 19px; white-space: nowrap; }
  .vx-ev-bar-nav { gap: 10px; }
  .vx-ev-nav { flex: none; }
  #main-content .vx-ev-nav button { padding: 0 12px; }
  #main-content .vx-ev-nav .vx-ev-arrow { width: 40px; }
  .vx-ev-grid { display: none; }
  .vx-ev-zone { margin-top: 10px; text-align: left; }

  .vx-ev-list {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: #1c1f31;
  }
  .vx-ev-list-day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
  .vx-ev-list-day:first-child { border-top: 0; }
  .vx-ev-list-day.is-today { background: rgba(213, 85, 66, .1); }
  #main-content .vx-ev-list-day h3 { margin: 0; padding: 0; color: #b4b8cc; font-size: 12px; font-weight: 700; line-height: 1.3; }
  .vx-ev-list-day h3 time { display: block; text-overflow: ellipsis; overflow: hidden; }
  .vx-ev-list-day h3 b { display: block; color: #fff; font-size: 23px; font-weight: 800; line-height: 1.1; }
  .vx-ev-list-day.is-today h3 { color: #f29a8b; }
  #main-content .vx-ev-list-day li { padding: 0 0 0 16px; position: relative; }
  #main-content .vx-ev-list-day li + li { margin-top: 9px; }
  #main-content .vx-ev-list-day li:before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); }
  .vx-ev-list-day strong { display: block; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; }
  .vx-ev-list-day li span { display: block; color: #b4b8cc; font-size: 13px; }
  .vx-ev .vx-ev-list > .vx-ev-none { padding: 24px 16px; text-align: center; }
}
