/* beindie — release calendar (/calendar). Paper-arcade: 1px lines, hard ink
   shadows, yellow as the only UI accent, no gradients, no rounded blobs. */

/* ------------------------------------------------------------ kind colours */
/* .pill draws its dot from --accent, so a kind only needs to swap that. */
.pill--release  { --accent: var(--yellow); }
.pill--demo     { --accent: var(--blue); }
.pill--nextfest { --accent: var(--orange); }
.pill--sale     { --accent: var(--green); }
.pill--event    { --accent: var(--muted); }

/* The filter chips repeat the kind colour as a small square, the way .pill and
   .tag already do site-wide. Scoped so no other .chip on the page changes. */
[data-cal-filters] .chip--release::before,
[data-cal-filters] .chip--demo::before,
[data-cal-filters] .chip--nextfest::before,
[data-cal-filters] .chip--sale::before,
[data-cal-filters] .chip--event::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid var(--ink);
}
[data-cal-filters] .chip--release::before  { background: var(--yellow); }
[data-cal-filters] .chip--demo::before     { background: var(--blue); }
[data-cal-filters] .chip--nextfest::before { background: var(--orange); }
[data-cal-filters] .chip--sale::before     { background: var(--green); }
[data-cal-filters] .chip--event::before    { background: var(--muted); }

.chip__n { font-family: var(--pixel); font-size: 9px; color: var(--muted); }
.chip[aria-current="true"] .chip__n { color: inherit; }

/* ----------------------------------------------------------- subscribe row */

.cal-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-sub__hint { margin-top: 14px; max-width: 62ch; }

/* --------------------------------------------------------------- the list */

.cal { display: grid; gap: clamp(28px, 4vw, 44px); }
.cal-month { display: grid; gap: 0; }

.cal-month__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 4px;
}
.cal-month__label {
  margin: 0;
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cal-month__head .rule { flex: 1; }

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.cal-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.cal-row:hover { background: var(--shade); }
.cal-row[hidden] { display: none; }

.cal-row__when { display: grid; gap: 4px; }
.cal-row__date {
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink);
  text-transform: uppercase;
}
.cal-row__approx { color: var(--muted); }

.cal-row__body { display: grid; gap: 6px; min-width: 0; }
.cal-row__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-row__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.cal-row__src { color: var(--muted); }
.cal-row__note { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 62ch; }

/* A left tick in the kind colour, so a long list still scans by category. */
.cal-row { border-left: 3px solid transparent; padding-left: 12px; }
.cal-row--release  { border-left-color: var(--yellow); }
.cal-row--demo     { border-left-color: var(--blue); }
.cal-row--nextfest { border-left-color: var(--orange); }
.cal-row--sale     { border-left-color: var(--green); }
.cal-row--event    { border-left-color: var(--line-strong); }

/* --------------------------------------------------------------- earlier */

.cal-earlier {
  margin-top: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  padding: 0 18px;
  background: var(--paper);
}
.cal-earlier[open] { box-shadow: 4px 4px 0 var(--line); }
.cal-earlier__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cal-earlier__summary::-webkit-details-marker { display: none; }
.cal-earlier__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--muted);
}
.cal-earlier[open] .cal-earlier__summary::after { content: "\2212"; }
.cal-earlier__summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cal-earlier__label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.cal-earlier .hint { margin-bottom: 14px; }
.cal-list--past { margin-bottom: 18px; opacity: .82; }
.cal-list--past .cal-row__title { font-size: 1.02rem; }

.cal-foot { margin-top: clamp(28px, 4vw, 48px); max-width: 68ch; }

/* ----------------------------------------------------------------- small */

@media (max-width: 720px) {
  .cal-row { grid-template-columns: 1fr; gap: 10px; }
  .cal-row__when { display: flex; align-items: baseline; gap: 10px; }
}

/* Print: a journalist or a producer will put this on a wall. */
@media print {
  .cal-sub, .chips, .cal-sub__hint, .arrow-link { display: none !important; }
  .cal-row { break-inside: avoid; }
  .cal-earlier { display: none; }
}
