/* School Timings page. The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with tm- so no other page is touched. */

.tm-times { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.tm-times__title { margin: 0 0 clamp(1.5rem, 1.25rem + 2vw, 3rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }

/* one band for each group of classes: the name at the left, the hours at the right */
.tm-list { counter-reset: tm; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tm-row { counter-increment: tm; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem clamp(1rem, 0.5rem + 2.5vw, 3rem); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) clamp(1.25rem, 1rem + 2vw, 2.75rem); border-radius: var(--r-lg); background: #fff; border-left: 6px solid var(--flame); box-shadow: 0 1.25rem 3rem -2rem rgba(12, 74, 143, 0.35); transition: transform 0.3s, box-shadow 0.3s; }
.tm-row:hover { transform: translateX(6px); box-shadow: 0 1.5rem 3.5rem -2rem rgba(12, 74, 143, 0.5); }
.tm-row::before { content: counter(tm, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--amber); }
.tm-row__label { font-family: var(--display); font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.25rem); font-weight: 300; font-style: italic; line-height: 1.1; letter-spacing: -0.02em; color: var(--maroon); }
.tm-row__time { font-family: var(--display); font-size: clamp(1.15rem, 1rem + 0.9vw, 1.75rem); font-weight: 330; line-height: 1.2; color: var(--ink); text-align: right; }

@media (max-width: 700px) {
  .tm-row { grid-template-columns: auto minmax(0, 1fr); }
  .tm-row__time { grid-column: 2; text-align: left; }
}
