/* /today/ : one day of the Church's year. Consumes the shared --ui-* palette
   from interface.css; the only colour of its own is the colour of the day. */
body.today-page{margin:0;background:var(--ui-bg);color:var(--ui-ink);font:16px/1.55 var(--ui-font);-webkit-font-smoothing:antialiased}
body.today-page *{box-sizing:border-box}
.today-page [hidden]{display:none!important}
.td-main{max-width:900px;margin:auto;padding:0 24px 56px}
.td-green{--day:#2f7d3f}.td-violet{--day:#5e3a87}.td-red{--day:#a8322d}.td-rose{--day:#cf7f96}.td-white{--day:#c9a227}.td-black{--day:#1c1c1c}

/* Day navigation: three quiet links, the current one marked. */
.td-daynav{display:flex;justify-content:space-between;gap:12px;padding:18px 0 0;font-size:13px;color:var(--ui-muted)}
.td-daynav a{color:inherit;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:0 2px;border-bottom:1px solid transparent}
.td-daynav a:hover,.td-daynav a:focus-visible{color:var(--ui-accent);border-bottom-color:var(--ui-accent)}
.td-daynav a[aria-current]{color:var(--ui-ink);font-weight:600}
.td-turned{margin:8px 0 0;padding:10px 14px;border:1px solid var(--ui-rule);border-radius:12px;background:var(--ui-wash);font-size:14px}
.td-turned a{color:var(--ui-accent)}

/* The day itself. */
.td-hero{padding:34px 0 22px;text-align:center}
.td-eyebrow{margin:0 0 12px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ui-muted)}
.td-hero h1{margin:0;font-size:clamp(30px,5vw,50px);line-height:1.08;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
.td-rank{margin:14px 0 0;font-size:15px;color:var(--ui-muted)}
.td-dot{display:inline-block;width:.6rem;height:.6rem;border-radius:50%;background:var(--day);border:1px solid var(--ui-rule);margin-right:.45rem;vertical-align:-1px}
.td-also{margin:10px auto 0;max-width:640px;font-size:14px;color:var(--ui-muted)}

/* The plate: the painting sits in a wash the colour of the paper, never
   cropped, at most a screen tall. */
.td-plate{margin:8px 0 28px;padding:0}
.td-plate img{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain;background:var(--ui-wash);border-radius:16px;border:1px solid var(--ui-rule)}
.td-plate figcaption{margin:10px 4px 0;font-size:13px;line-height:1.5;color:var(--ui-muted)}
.td-plate-title{font-weight:600;color:var(--ui-ink)}
.td-plate-source{color:inherit;text-decoration:underline;text-decoration-color:var(--ui-rule);text-underline-offset:3px}
.td-plate-source:hover,.td-plate-source:focus-visible{color:var(--ui-accent)}

/* Four cards. */
.td-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"gospel readings" "mass readings" "hours hours";gap:16px;align-items:start}
.td-gospel{grid-area:gospel}.td-readings{grid-area:readings}.td-mass{grid-area:mass}.td-hours{grid-area:hours}
.td-card{background:var(--ui-panel);border:1px solid var(--ui-rule);border-radius:16px;padding:22px 24px}
.td-card h2{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ui-muted)}
.td-lede{margin:0 0 14px;font-size:14px;color:var(--ui-muted)}
.td-citation{margin:6px 0 8px;font-size:clamp(22px,3vw,28px);font-weight:650;letter-spacing:-.025em;line-height:1.2}
.td-note{margin:0;font-size:14px;color:var(--ui-muted)}
.td-links{list-style:none;margin:0;padding:0}
.td-links li{padding:6px 0;border-top:1px solid var(--ui-rule);font-size:15px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.td-links li:first-child{border-top:0}
.td-links a{color:var(--ui-accent);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.td-links a:hover,.td-links a:focus-visible{text-decoration-color:currentColor}
.td-src{font-size:12.5px;color:var(--ui-muted)}

/* The Hours: the hour at hand carries the colour of the day. */
.td-hour-list{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 24px}
.td-hour-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:8px 10px;border-radius:10px;font-size:15px;border-left:3px solid transparent}
.td-hour-list li.is-now{background:var(--ui-wash);border-left-color:var(--day)}
.td-hour-name{font-weight:600}
.td-latin{font-style:italic;color:var(--ui-muted)}
.td-band,.td-anytime{font-size:12.5px;color:var(--ui-muted)}
.td-anytime::before{content:"· "}
.td-now{margin-left:auto;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--day)}

/* The way to a Mass. */
.td-actions{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.td-button{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:10px;background:var(--ui-accent);color:var(--ui-on-accent);font-weight:600;font-size:14px;text-decoration:none}
.td-button:hover,.td-button:focus-visible{filter:brightness(1.08)}
.td-more{color:var(--ui-accent);font-size:14px;min-height:44px;display:inline-flex;align-items:center}

.td-scope{margin:28px 0 0;font-size:13px;line-height:1.55;color:var(--ui-muted)}
.td-scope a{color:inherit}
.td-footer{max-width:900px;margin:auto;padding:0 24px 40px;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;color:var(--ui-muted)}
.td-footer a{color:inherit;min-height:44px;display:inline-flex;align-items:center}
.td-footer nav{display:flex;gap:18px}

@media(max-width:700px){
  .td-main{padding:0 18px 40px}
  .td-grid{grid-template-columns:1fr;grid-template-areas:"gospel" "readings" "hours" "mass"}
  .td-hour-list{grid-template-columns:1fr}
  .td-hero{padding:26px 0 18px;text-align:left}
  .td-card{padding:18px}
  .td-daynav{font-size:12px}
  .td-footer{padding:0 18px 32px}
}
