/* time.css - the Jewish time pages (builder B03): /shabbat/, /zmanim/, /calendar/, /omer/, /tools/, /my-settings/.
   Prefix tm-. Colours come from jewish.css tokens, so light and dark follow the site. Mobile first: the month grid
   becomes a list of days under 700px; wide tables scroll inside .jw-tablewrap. */
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-big { font-family: var(--jw-serif); font-size: 1.45rem; font-weight: 600; margin: 4px 0; line-height: 1.25; }
.tm-finder { position: relative; max-width: 640px; }
.tm-finder .jw-search { margin-bottom: 6px; }
.tm-finder-row { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tm-near-msg, .tm-saved { color: var(--jw-muted); font-size: .9rem; }
.tm-near svg { width: 15px; height: 15px; fill: currentColor; }
.tm-suggest { list-style: none; margin: 0 0 10px; padding: 4px 0; max-width: 560px; border: 1px solid var(--jw-line); border-radius: 8px; background: var(--jw-card); }
.tm-suggest li { padding: 0; }
.tm-suggest a { display: inline-block; padding: 6px 12px; color: var(--jw-ink); text-decoration: none; }
.tm-suggest a:hover, .tm-suggest a:focus { color: var(--jw-accent-ink); text-decoration: underline; }
.tm-citylist { columns: 2 220px; margin: 0; padding-left: 18px; }
.tm-citylist li { break-inside: avoid; padding: 2px 0; }
.tm-countries { margin: 8px 0 16px; }
.tm-card .tm-week dd { font-size: 1rem; }
.tm-week .tm-big { font-size: 1.6rem; margin-right: 6px; }
.tm-year tr.tm-fest td, .tm-list tr.tm-c-major td { background: var(--jw-soft); }
.tm-year td:first-child { white-space: nowrap; }
.tm-blessings .jw-blessing { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--jw-line); border-radius: var(--jw-radius); background: var(--jw-card); }
.tm-blessings .jw-blessing h3 { margin-top: 0; font-family: var(--jw-serif); }
.tm-mine { margin: 0 0 14px; }
.tm-mine p { margin: 0 0 4px; }
.tm-stale a { margin-left: 4px; }
.tm-mycity[aria-pressed="true"] { background: var(--jw-soft); }
.tm-mycity svg { width: 15px; height: 15px; fill: currentColor; }

/* zmanim */
.tm-dateform { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 6px 0 10px; }
.tm-dateform label { width: 100%; margin: 0; }
.tm-dateform input[type=date] { width: auto; }
.tm-zmanim th[scope=row] { font-weight: 600; color: var(--jw-ink); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.tm-zmanim .tm-zhe { font-weight: 400; font-size: .95rem; color: var(--jw-muted); }
.tm-zmanim .tm-zt { font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.tm-zmanim .tm-zhow { color: var(--jw-muted); font-size: .88rem; }
.tm-defs dt { font-weight: 600; }
@media (max-width: 600px) {
  .tm-zmanim thead { display: none; }
  .tm-zmanim tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--jw-line); padding: 6px 0; }
  .tm-zmanim th, .tm-zmanim td { border: 0; padding: 2px 4px; }
  .tm-zmanim .tm-zhow { grid-column: 1 / -1; }
  .jw-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .jw-dl dd { margin-bottom: 8px; }
}

/* calendar */
.tm-todaybox p { margin: 2px 0; }
.tm-optform { margin: 6px 0 12px; }
.tm-optrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.tm-optrow > span { display: flex; flex-direction: column; min-width: 140px; }
.tm-optrow label { margin: 0 0 4px; }
.tm-optrow input[type=text], .tm-optrow select { max-width: 240px; }
.tm-monthwrap { margin: 8px 0 14px; }
.tm-month { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tm-month th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--jw-muted); padding: 6px 4px; text-align: left; }
.tm-month td { vertical-align: top; border: 1px solid var(--jw-line); padding: 5px 6px; height: 96px; font-size: .84rem; }
.tm-month td.tm-empty { background: transparent; border-color: transparent; }
.tm-month td.tm-sh { background: var(--jw-soft); }
.tm-month td.tm-ytd { box-shadow: inset 0 3px 0 var(--jw-accent); }
.tm-dnum { display: block; margin-bottom: 3px; }
.tm-dnum b { font-size: 1.05rem; }
.tm-dnum small { color: var(--jw-muted); }
.tm-hnum { font-size: 1rem; color: var(--jw-accent-ink); }
.tm-wd { display: none; }
.tm-month ul, .tm-plain { list-style: none; margin: 0; padding: 0; }
.tm-month li { margin: 2px 0; line-height: 1.3; }
.tm-ev.tm-c-major, .tm-ev.tm-yt { font-weight: 600; }
.tm-ev.tm-c-fast { color: var(--jw-gold); }
.tm-ev.tm-c-rosh-chodesh, .tm-ev.tm-c-special-shabbat, .tm-ev.tm-c-mevarchim { color: var(--jw-muted); }
.tm-par { font-style: italic; }
.tm-cl, .tm-hv { color: var(--jw-muted); font-size: .8rem; }
.tm-pars { font-size: .9rem; color: var(--jw-muted); }
@media (max-width: 700px) {
  .tm-month, .tm-month tbody, .tm-month tr { display: block; }
  .tm-month thead { display: none; }
  .tm-month td { display: block; height: auto; border-width: 0 0 1px; padding: 8px 4px; }
  .tm-month td.tm-empty { display: none; }
  .tm-wd { display: inline; font-weight: 600; color: var(--jw-muted); }
  .tm-dnum { display: inline; }
}
.tm-subscribe { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-code { width: 100%; max-width: 640px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: 6px 8px; border: 1px solid var(--jw-line); border-radius: 6px; background: var(--jw-card); color: var(--jw-ink); }
.tm-answer h2 { font-family: var(--jw-serif); font-size: 1.15rem; margin: 0 0 6px; }
.tm-answer p { margin: 4px 0; }

/* tools */
.tm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 760px) { .tm-two { grid-template-columns: 1fr; } }
.tm-tool { margin: 4px 0 16px; }
.tm-radio { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; margin: 4px 14px 4px 0 !important; }
.tm-sources p { margin: 0 0 10px; }
.tm-hi td { background: var(--jw-soft); font-weight: 600; }
.tm-letters { display: flex; flex-wrap: wrap; gap: 6px; direction: rtl; }
.tm-gl { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 8px; border: 1px solid var(--jw-line); border-radius: 6px; background: var(--jw-card); }
.tm-gl .jw-he { font-size: 1.3rem; }
.tm-gl small { color: var(--jw-muted); direction: ltr; }
.tm-omer-he { font-size: 1.5rem; }
.tm-omer td:first-child { font-weight: 600; }

/* my settings */
.tm-settings fieldset { border: 1px solid var(--jw-line); border-radius: var(--jw-radius); padding: 8px 14px 12px; margin: 0 0 14px; max-width: 640px; }
.tm-settings legend { font-weight: 600; padding: 0 6px; }
.tm-banner b { font-weight: 700; }
