:root {
  --blue: #1B3BD6; --deep: #142B9E; --paper: #F6F1E7; --yellow: #FFC53D; --dim: #B9C4F6;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Schibsted Grotesk', system-ui, sans-serif;
  --gutter: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--blue); }
body {
  max-width: 760px; margin-inline: auto; padding-inline: var(--gutter);
  background: var(--blue); color: var(--paper); font: 500 16px/1.35 var(--text);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: flex-start; padding-block: 28px 18px; }
h1 span { display: block; font: 900 clamp(46px, 13vw, 96px)/.82 var(--display); text-transform: uppercase; }
h1 small { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--yellow);
  font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 1px; }
h1 small svg { width: 20px; height: 20px; fill: currentColor; }
.lang { flex: none; display: flex; gap: 12px; padding-top: 6px; font-weight: 700; letter-spacing: 1px; }
.lang a { color: var(--dim); text-decoration: none; }
.lang a[aria-current] { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.days {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: var(--blue);
  border-bottom: 2px solid var(--deep);
}
.days::-webkit-scrollbar { display: none; }
.days button {
  flex: none; padding: 8px 12px; border: 0; border-radius: 3px; background: none; cursor: pointer;
  font: 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--dim);
}
.days button[aria-pressed="true"] { background: var(--paper); color: var(--blue); }
.days .sep { flex: none; width: 2px; margin-inline: 4px; background: var(--deep); }

.tools { display: grid; gap: 14px; padding-block: 16px 8px; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--dim); }
.search:focus-within { border-bottom-color: var(--paper); }
.search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; border-radius: 0; background: none; font-size: 17px; outline: none; }
.search input::placeholder { color: var(--dim); }
.row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; flex: 1 1 80px; min-width: 0; }
.pick:last-of-type { flex: 1.4 1 124px; }
.pick summary, .toggle {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px 7px 12px; border: 1.5px solid var(--dim);
  border-radius: 3px; background: none; cursor: pointer; font-size: 14px; color: var(--paper); white-space: nowrap;
}
.pick summary { list-style: none; }
.pick summary::-webkit-details-marker { display: none; }
.pick summary span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.pick svg { flex: none; }
.pick .caret { width: 11px; height: 8px; }
.pick .sort { width: 15px; height: 15px; }
.pick[open] .caret { transform: rotate(180deg); }
.pick[open] summary { border-color: var(--paper); }
.pick.set summary { border-color: var(--yellow); color: var(--yellow); }
.toggle[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); color: var(--blue); }
.panel {
  position: absolute; z-index: 3; left: 0; top: calc(100% + 4px);
  min-width: 100%; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); max-height: 55vh; overflow-y: auto;
  padding: 4px 0; border-radius: 3px; background: var(--paper); color: var(--blue); box-shadow: 0 0 0 2px var(--deep);
}
.pick:last-of-type .panel { left: auto; right: 0; }
.panel p { padding: 6px 12px 2px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.panel button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%;
  padding: 6px 12px; border: 0; background: none; cursor: pointer; color: var(--blue); font-size: 14px; text-align: left;
}
.panel button:hover { background: rgb(27 59 214 / .1); }
.panel button[aria-pressed="true"] { font-weight: 700; }
.panel small { font-size: 12px; opacity: .6; }

.count { padding-block: 18px 0; color: var(--dim); font-size: 14px; letter-spacing: .5px; }
#list h2 {
  padding-block: 26px 10px; border-bottom: 3px solid var(--paper);
  font: 800 28px/1 var(--display); text-transform: uppercase;
}
.ev {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px;
  margin-inline: calc(-1 * var(--gutter)); padding: 14px var(--gutter); border-bottom: 2px solid var(--deep);
}
.ev:hover, .ev:active { background: var(--deep); }
.ev h3 { font-size: 19px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.ev .open { text-decoration: none; }
.ev .open::after { content: ""; position: absolute; inset: 0; }
.ev .open span { color: var(--dim); font-weight: 500; }
.meta { margin-top: 6px; color: var(--dim); font-size: 15px; }
.meta a { position: relative; z-index: 1; text-decoration: none; }
.meta .venue { color: var(--yellow); font-weight: 700; }
.meta a.venue:hover, .place:hover, .tickets:hover { text-decoration: underline; text-underline-offset: 3px; }
.place { white-space: nowrap; }
.place svg { width: 13px; height: 13px; margin-right: 2px; vertical-align: -1px; }
.tickets { margin-left: 4px; color: var(--yellow); font-size: 13px; font-weight: 700; white-space: nowrap; }
.meta em {
  display: inline-block; margin-left: 4px; padding: 0 7px; border: 1px solid var(--dim); border-radius: 999px;
  font-style: normal; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; vertical-align: 1px;
}
.when { text-align: right; color: var(--yellow); font: 800 26px/1 var(--display); }
.when .day { display: none; margin-bottom: 4px; font: 500 12px/1 var(--text); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
#list.dated .when .day { display: block; }
.when svg { width: 28px; height: 28px; color: var(--dim); }

.foot { display: flex; justify-content: space-between; gap: 12px; padding-block: 40px 32px; color: var(--dim); font-size: 13px; }
.foot a { color: var(--paper); font-weight: 700; text-decoration: none; }

@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .ev h3 { font-size: 21px; }
  .when { font-size: 30px; }
}
