/* The Swiss German edition: the red band on the English page, and the edition switch in the header. */
.edition {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px;
  border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--card); color: var(--ink);
  font: 700 14px/1 var(--mono); letter-spacing: 0.04em; text-decoration: none; flex: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.top-nav a.edition { display: inline-flex; color: var(--ink); }
.ch-flag { width: 26px; height: 26px; flex: none; }
.edition-en { padding: 0 12px; }
@media (hover: hover) and (pointer: fine) {
  .top-nav a.edition:hover { background: var(--red); border-color: var(--red); color: #fff; }
  .edition:hover .ch-flag rect { fill: #B80000; }
}
.edition:active { background: var(--paper); }

/* The band is the flag: white cross on the page's one red, across the whole width. */
.ch-band { position: relative; left: 50%; width: 100vw; margin-left: -50vw; background: var(--red); color: #fff; }
.ch-band-in {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 28px; align-items: center;
}
.ch-cross { grid-row: 1 / 3; width: 76px; height: 76px; }
.ch-copy { display: contents; }
.ch-band h2 { margin: 0; font: 800 clamp(26px, 3.2vw, 40px)/1.08 var(--sans); letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.ch-band h2 { grid-column: 2; align-self: end; }
.ch-flaps { grid-column: 2; align-self: start; display: flex; gap: 2px; min-width: 0; }
.ch-flaps .flap {
  width: 26px; height: 34px; font: 700 19px/1 var(--sans); border-radius: 3px;
  background: linear-gradient(var(--board-2) 0 49%, #11152f 49% 51%, var(--board-2) 51% 100%);
}
.ch-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 22px;
  background: #fff; color: var(--red-dark); border-radius: var(--r-sm); text-decoration: none;
  grid-column: 3; grid-row: 1 / 3;
  font: 800 19px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.14s var(--ease);
}
.ch-go svg { width: 22px; height: 22px; fill: currentColor; transition: transform 0.18s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ch-go:hover { background: var(--board); color: #fff; }
  .ch-go:hover svg { transform: translateX(4px); }
}
.ch-go:active { transform: scale(0.97); }
.ch-go:focus-visible, .ch-band a:focus-visible { outline-color: #fff; }
.ch-band + .hero { padding-top: 44px; }

/* Episode rows on the English board. */
.dep-ch {
  display: inline-block; margin-top: 6px; color: #fff; font: 600 12px/1.4 var(--mono);
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px;
}
.dep-ch:hover { text-decoration-color: #fff; }
.dep-older { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
html[data-edition="ch"] .dep.is-current .dep-date::after { content: "Uf Sändig"; }

@media (max-width: 800px) {
  .ch-band-in { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; padding: 20px 24px 22px; }
  .ch-cross { grid-row: 1; width: 56px; height: 56px; }
  .ch-flaps { grid-column: 1 / -1; }
  .ch-go { grid-column: 1 / -1; grid-row: auto; width: 100%; }
}
@media (max-width: 520px) {
  .ch-flaps { gap: 1px; }
  .ch-flaps .flap { width: calc((100vw - 62px) / 15); height: 30px; font-size: min(15px, 4vw); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-go, .ch-go svg, .edition { transition: none; }
}
