/* The First 39: This Week (/this-week/). Built by tools/build_this_week.py; js/this-week.js marks this week.
   Season colors match the Church Year's (css/church-year.css) and are only ever used for rails and markers, never text. */

.tw-c-advent { --c: var(--accent); }
.tw-c-christmas, .tw-c-easter { --c: var(--gold); }
.tw-c-epiphany, .tw-c-pentecost { --c: var(--gold-deep); }
.tw-c-ordinary { --c: var(--cedar); }
.tw-c-lent { --c: var(--minor); }
.tw-c-holy-week { --c: var(--ink); }

.tw-hero .lead { max-width: 56ch; }
.tw-wrap { padding-block: var(--s-7) var(--s-9); }
.tw-wrap > section + section { margin-top: var(--s-8); }
.tw-intro { max-width: 68ch; color: var(--stone); }

/* This week */
.tw-now { padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: var(--radius); }
.tw-now-k { margin: 0 0 var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-deep); }
.tw-now h2 { margin: 0 0 var(--s-2); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.tw-now-small { display: block; font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--stone); }
.tw-now-who { margin: 0 0 var(--s-4); font-size: 1.125rem; }
.tw-now-cta { margin: 0 0 var(--s-4); }
.tw-now-soon { margin: 0 0 var(--s-4); color: var(--stone); }
.tw-now-next { margin: 0; font-size: var(--fs-small); color: var(--stone); }
.tw-now-next b { color: var(--ink); }

/* How it works */
.tw-how { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.tw-how h2 { grid-column: 1 / -1; margin: 0; }
.tw-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.tw-points li { padding-left: var(--s-4); border-left: 3px solid var(--gold); }
.tw-points b { display: block; margin-bottom: 2px; }
.tw-sign { padding: var(--s-5); background: var(--linen); border-radius: var(--radius); }
.tw-sign h3 { margin: 0 0 var(--s-2); }
.tw-sign p { margin-bottom: 0; }

/* The year */
.tw-year h2 { margin-bottom: var(--s-3); }
.tw-season { margin-top: var(--s-6); }
.tw-season h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-3);
  padding-bottom: var(--s-2); border-bottom: 4px solid var(--c); }
.tw-span { font-family: var(--font-body, inherit); font-size: var(--fs-small); font-weight: 400; color: var(--stone); }
.tw-weeks { list-style: none; margin: 0; padding: 0; }
.tw-week { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--line); }
.tw-when { padding-top: 3px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--stone); }
.tw-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tw-trait { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
a.tw-trait { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a.tw-trait:hover { text-decoration-color: var(--ink); }
.tw-who { font-size: var(--fs-small); color: var(--stone); overflow-wrap: anywhere; }
.tw-title { font-size: var(--fs-small); }
.tw-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tw-tags:empty { display: none; }
.tw-tag, .tw-nowtag { display: inline-block; margin-top: var(--s-1); padding: 1px var(--s-2); border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700; line-height: 1.6; }
.tw-tag { background: var(--linen); color: var(--ink); }
.tw-nowtag { background: var(--accent); color: #fff; }
.tw-nowtag[hidden] { display: none; }
.tw-week.is-now { position: relative; padding-left: var(--s-3); margin-left: calc(-1 * var(--s-3)); background: #fff;
  box-shadow: inset 4px 0 0 var(--c); border-radius: var(--radius); }
.tw-again { margin-top: var(--s-6); color: var(--stone); }

.tw-earlier { padding-left: var(--s-5); }
.tw-earlier li { margin-bottom: var(--s-2); }
.tw-more { margin-top: var(--s-8); color: var(--stone); }

@media (max-width: 767px) {
  .tw-how { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .tw-now { padding: var(--s-5); }
}
@media (max-width: 479px) {
  .tw-week { grid-template-columns: 3.75rem minmax(0, 1fr); gap: var(--s-2); }
}
