/* 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.6rem 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; position: sticky; top: 3.4rem; z-index: 4; background: var(--night); }
.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 .mh { align-self: start; position: sticky; top: 8rem; }
.sc .month h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.25; font-weight: 500; }
.sc .month .cnt { display: block; margin-top: 0.25rem; color: var(--moon-dim); font-size: 0.85rem; }
.sc .month.cur h2 { color: var(--lamp); }

.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; align-items: center; gap: 0.4rem; }
/* rows: a faint divider and a soft highlight on hover, so a long month reads as separate lines */
.sc .g { border-radius: 10px; transition: background .2s; }
.sc .g + .g { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.sc .g:hover { background: var(--night-2); }
.sc .when b { color: var(--lamp); }
.sc .g.past .when b { color: var(--moon-dim); }
.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 .months { padding-bottom: 3.5rem; }

/* larger screens have the room: bigger pills, easier to read */
@media (min-width: 761px) {
  .sc .note { font-size: 1.05rem; padding: 0.2rem 1.1rem; }
  .sc .note .lu { font-size: 1.15em; line-height: 1.6; }
  .sc .tags { gap: 0.6rem; }
  /* city and pills on one line, the pills right beside the city (to its left in Urdu) */
  .sc .g { align-items: center; }
  .sc .when, .sc .where { align-self: center; }
  .sc .where { flex-wrap: nowrap; align-items: center; align-content: center; }
  .sc .city { flex: 0 1 auto; line-height: 1.4; }
  .sc .city .lu { line-height: 1.5; }
  .sc .tags, .sc .note { align-self: center; margin-block: 0; }
}
@media (max-width: 760px) {
  .sc .nextup { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1.2rem; }
  /* the month stays in the first column, the gatherings beside it */
  .sc .month { grid-template-columns: 5.4rem minmax(0, 1fr); gap: 0.4rem 0.9rem; padding-block: 1.3rem 0.6rem; }
  .sc .mh { position: sticky; top: 7rem; display: block; background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; }
  .sc .month h2 { font-size: 1.05rem; }
  .sc .month .cnt { margin-top: 0.2rem; font-size: 0.78rem; }
  .sc .chain { margin: 0 0.2rem; }
  /* the pill stays on the city's line; a long city name wraps inside its own space instead of pushing the pill down */
  .sc .where { flex-wrap: nowrap; align-items: center; gap: 0 0.5rem; }
  .sc .city { flex: 0 1 auto; min-width: 0; line-height: 1.4; }
  .sc .tags { flex: none; align-items: center; }
  .sc .note { margin: 0; padding: 0.05rem 0.6rem; font-size: 0.75rem; white-space: nowrap; }
  .sc .jump { top: 3rem; }
  .sc .g { grid-template-columns: minmax(0, 1fr); padding-block: 0.7rem; padding-inline-start: 1.2rem; }
  .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; }
}
