/* 2026-27 schedule. Scoped under .sc; colours come from the shared theme tokens.
   The gatherings are drawn as a chain on a thin line, like the lineage on the home page. */
.sc .titlebar { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; align-items: flex-end; justify-content: space-between; padding-block: 1.2rem 2rem; }
.sc .titlebar h1 .lu { font-size: 0.8em; line-height: 1.8; }
.sc .titlebar p { max-width: 40rem; }
.sc .acts-top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.sc .acts-top .btn { min-height: 3rem; border-radius: 10px; }
.sc .acts-top small { color: var(--moon-dim); font-size: 0.88rem; }

/* next gathering: one solid band; its label is the heading of the row */
.sc .nextup { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.6rem 2rem; align-items: center; background: var(--night-3); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 2rem; }
.sc .nextup h2 { font-size: 1.35rem; color: var(--lamp); font-weight: 500; }
.sc .nextup .nx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2.4rem; }
.sc .nextup .nd { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; margin: 0; }
.sc .nextup .nc { margin: 0; font-size: 1.3rem; font-weight: 600; }
[data-theme="light"] .sc .nextup { background: var(--band); border-color: transparent; color: var(--band-ink); }
[data-theme="light"] .sc .nextup h2 { color: var(--band-accent); }

/* month chips: scroll sideways on a phone instead of wrapping into a tall block */
.sc .jump { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 1.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.sc .jump a { flex: none; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 1.1rem; min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 600; font-size: 0.95rem; transition: border-color .2s, color .2s; }
.sc .jump a:hover { border-color: var(--lamp); color: var(--lamp); }
.sc .jump a[aria-current="date"] { background: var(--chip); color: var(--chip-ink); border-color: transparent; }

.sc .month { display: grid; grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr); gap: 0.4rem clamp(1.2rem, 4vw, 3rem); padding-block: 1.8rem 0.8rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.sc .month h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.25; align-self: start; font-weight: 500; }

.sc .chain { list-style: none; margin: 0 0.4rem; padding: 0; border-inline-start: 1px solid var(--line); }
.sc .g { position: relative; display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0.2rem 1.6rem; align-items: center; padding-block: 0.9rem; padding-inline-start: 2.1rem; }
.sc .node { position: absolute; inset-inline-start: -6px; top: 50%; margin-top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 1.5px solid var(--lamp); }
.sc .g.next .node, .sc .g.now .node { inset-inline-start: -8px; margin-top: -8px; width: 15px; height: 15px; background: var(--lamp); border: 3px solid var(--night); }
.sc .when b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.sc .when small { display: block; color: var(--moon-dim); font-size: 0.9rem; }
.sc .where { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.9rem; }
.sc .city { font-weight: 600; font-size: 1.25rem; }
.sc .tags { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.sc .note { font-size: 0.8rem; color: var(--moon-dim); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.75rem; }
.sc .note .lu { font-size: 1em; line-height: 1.7; }
.sc .note.on { background: var(--chip); color: var(--chip-ink); border-color: transparent; font-weight: 600; }
.sc .note.hot { background: var(--lamp); color: var(--night); border-color: transparent; font-weight: 600; }

/* finished gatherings step back by colour, never by opacity, so the text stays readable */
.sc .g.past .when b, .sc .g.past .city { color: var(--moon-dim); }
.sc .g.past .node { border-color: var(--line); }

/* the annual gathering is the largest link in the chain */
.sc .g.big { background: var(--night-2); border-radius: 12px; margin-block: 0.5rem; padding-block: 1.3rem; padding-inline-end: 1.4rem; }
.sc .g.big .node { inset-inline-start: -11px; margin-top: -11px; width: 21px; height: 21px; background: var(--chip); border: 4px solid var(--night); }
.sc .g.big .when b { font-size: 1.8rem; }
.sc .g.big .city { font-size: 1.6rem; }

.sc .fine { color: var(--moon-dim); font-size: 0.92rem; margin-block: 1.8rem 3.5rem; max-width: 42rem; }

@media (max-width: 760px) {
  .sc .nextup { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1.2rem; }
  .sc .month { grid-template-columns: minmax(0, 1fr); padding-block: 1.3rem 0.6rem; }
  .sc .g { grid-template-columns: minmax(0, 1fr); padding-block: 0.7rem; padding-inline-start: 1.5rem; }
  .sc .when b { font-size: 1.3rem; }
  .sc .g.big .when b { font-size: 1.5rem; }
  .sc .g.big .city { font-size: 1.35rem; }
}
@media print {
  .sc .jump, .sc .acts-top { display: none; }
  .sc .g { break-inside: avoid; }
}
