/* Gaming.cy agenda: a typographic calendar, not a grid of generic cards. */
:root {
  --agenda-paper: var(--paper, #faf8f1);
  --agenda-ink: var(--ink, #20231f);
  --agenda-muted: var(--muted, #555b51);
  --agenda-lime: var(--lime, #dce97a);
  --agenda-hot: var(--accent, #ab361e);
  --agenda-rule: var(--rule, #c7c8bb);
  --agenda-display: var(--display, "Arial Narrow", Arial, sans-serif);
}

main.wrap.agenda {
  max-width: 1328px;
  padding-top: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.agenda-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 40px;
  align-items: end;
  padding-bottom: clamp(24px, 3vw, 38px);
  border-bottom: 3px solid var(--agenda-ink);
}
.agenda-head h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--agenda-ink);
  font: 700 clamp(58px, 8vw, 118px)/.86 var(--agenda-display);
  letter-spacing: -.045em;
}
.agenda-head p {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--agenda-muted);
  font: 19px/1.42 Georgia, serif;
}
.agenda-download {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  gap: .6em;
  border: 1px solid var(--agenda-ink);
  color: var(--agenda-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.agenda-months {
  display: flex;
  gap: 7px clamp(14px, 3vw, 38px);
  overflow-x: auto;
  padding: 13px 0 11px;
  border-bottom: 0;
  scrollbar-width: thin;
}
.agenda-months a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 3px;
  white-space: nowrap;
  color: var(--agenda-muted);
  font: 700 13px/1 var(--agenda-display);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.agenda-month {
  scroll-margin-top: 116px;
  padding-top: clamp(30px, 5vw, 62px);
}
.agenda-month > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--agenda-ink);
  color: var(--agenda-ink);
  font: 700 clamp(34px, 4.5vw, 61px)/.95 var(--agenda-display);
  letter-spacing: -.035em;
}
.agenda-month > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--agenda-rule);
}
.agenda-list { border-bottom: 1px solid var(--agenda-rule); }
.agenda-row {
  border-bottom: 1px solid var(--agenda-rule);
}
.agenda-row > .agenda-link {
  display: grid;
  grid-template-columns: max-content minmax(0, 1.6fr) 32px;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  min-height: 122px;
  padding: 21px 0;
  border-bottom: 0;
  color: var(--agenda-ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, padding .2s ease;
}
.agenda-row:last-child { border-bottom: 0; }
.agenda-day {
  display: block;
  white-space: nowrap;
  color: var(--agenda-hot);
  font: 700 clamp(34px, 4vw, 58px)/.88 var(--agenda-display);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.agenda-detail h3 {
  max-width: 30ch;
  margin: 0;
  font: 700 clamp(22px, 2.25vw, 32px)/1.05 Georgia, serif;
  letter-spacing: -.025em;
}
.agenda-place {
  margin: 8px 0 0;
  color: var(--agenda-muted);
  font-size: 14px;
}
.agenda-arrow {
  justify-self: end;
  color: var(--agenda-hot);
  font: 700 24px/1 var(--agenda-display);
  transition: transform .2s ease;
}
.agenda-row:hover .agenda-arrow { transform: translateX(4px); }

/* The first event is the issue's anchor. Other rows stay quiet and scannable. */
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child {
  margin-top: 10px;
  border: 0;
}
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child > .agenda-link {
  padding: 26px clamp(18px, 3vw, 38px);
  background: var(--agenda-ink);
  color: var(--agenda-paper);
}
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child .agenda-day,
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child .agenda-arrow { color: var(--agenda-lime); }
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child .agenda-place { color: #c5cbbd; }
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child:hover > .agenda-link { background: #30372f; }

.agenda :focus-visible {
  outline: 3px solid #1177a0;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .agenda-download:hover { background: var(--agenda-ink); color: var(--agenda-paper); transform: translateY(-2px); }
  .agenda-months a:hover { color: var(--agenda-hot); }
  .agenda-row:hover > .agenda-link { padding-inline: 10px; background: rgba(220, 233, 122, .22); }
}

:lang(ru) .agenda-head h1 {
  max-width: 12ch;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 700px) {
  main.wrap.agenda { padding-top: 22px; }
  .agenda-head { grid-template-columns: 1fr; gap: 18px; }
  .agenda-head h1 { max-width: none; font-size: clamp(54px, 16vw, 82px); }
  .agenda-head p { margin-top: 12px; font-size: 18px; }
  .agenda-download { justify-self: start; }
  .agenda-month { scroll-margin-top: 104px; }
  .agenda-row > .agenda-link { grid-template-columns: max-content minmax(0, 1fr) 22px; gap: 13px; min-height: 108px; padding-block: 17px; }
  .agenda-day { font-size: 36px; }
  .agenda-detail h3 { font-size: 22px; }
  .agenda-place { font-size: 13px; }
  .agenda-row:hover > .agenda-link { padding-inline: 0; }
  .agenda-month:first-of-type .agenda-list > .agenda-row:first-child > .agenda-link { padding: 22px 15px; }
}

@media (max-width: 360px) {
  .agenda-months { margin-inline: -3px; padding-inline: 3px; }
  .agenda-row > .agenda-link { grid-template-columns: max-content minmax(0, 1fr) 18px; gap: 10px; }
  .agenda-day { font-size: 31px; }
  .agenda-detail h3 { font-size: 20px; }
  .agenda-place { font-size: 12px; }
  .agenda-arrow { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .agenda-download, .agenda-row, .agenda-arrow { transition: none; }
}
/* Dates and names keep their own column even when the range is longer. */
.agenda-row > .agenda-link { padding-inline: clamp(12px, 2vw, 30px); }
.agenda-month:first-of-type .agenda-list > .agenda-row:first-child > .agenda-link { padding-inline: clamp(12px, 2vw, 30px); }
.agenda-row:hover > .agenda-link { padding-inline: clamp(12px, 2vw, 30px); }
.agenda-day.agenda-long-day { white-space:normal; font:650 15px/1.25 Arial,sans-serif;letter-spacing:0; }
@media (max-width:700px) {
  .agenda-row > .agenda-link { grid-template-columns: minmax(66px, 5.3rem) minmax(0,1fr) 18px;gap:9px; }
}
@media (max-width:360px) {
  .agenda-row > .agenda-link { grid-template-columns: 67px minmax(0,1fr) 16px;gap:7px; }
}
@media (hover:none) {
  .agenda-row:hover .agenda-arrow, .agenda-download:hover { transform:none; }
}
body.motion-paused .agenda-row,body.motion-paused .agenda-arrow,body.motion-paused .agenda-download { transform:none!important; }
