/* "Uman today" hub. Layers on styles.css and reuses its :root tokens, with CSS
   logical properties throughout so the Hebrew RTL variant needs no separate
   rules — same approach as border.css, weather.css and currency.css. */
.td { background: var(--bg); color: var(--ink); }
.td-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* --- Chrome -------------------------------------------------------------- */
.td-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; flex-wrap: wrap;
}
.td-top .brand-148 { color: var(--primary); font-weight: 700; }
.td-top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-wa {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 15px;
}
.td-wa:hover { border-color: var(--primary); color: var(--primary-dark); }
.td-langs { display: flex; gap: 6px; }
.td-lang {
  font-size: var(--fs-sm); color: var(--mute); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
}
.td-lang:hover { color: var(--ink); border-color: var(--ink); }
.td-foot {
  border-top: 1px solid var(--line); margin-top: 34px;
  padding: 24px 0 calc(60px + env(safe-area-inset-bottom, 0px));
  color: var(--mute); font-size: var(--fs-xs);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.td-foot a { color: var(--mute); }
.td-foot a:hover { color: var(--ink); }

/* --- Hero and sections --------------------------------------------------- */
.td-hero { padding: 24px 0 8px; }
.td-kicker {
  display: inline-block; background: var(--accent-soft); color: var(--primary-dark);
  font-weight: 600; font-size: var(--fs-xs); padding: 5px 12px; border-radius: 999px;
}
.td-hero h1 {
  font-size: var(--fs-3xl); letter-spacing: -0.02em;
  line-height: 1.1; margin: 10px 0 12px;
}
.td-lead { font-size: var(--fs-lg); color: #3c3026; line-height: 1.65; max-width: 720px; margin: 0; }
.td-section { padding: 28px 0; border-top: 1px solid var(--line); margin-top: 28px; }
.td-section h2 { font-size: var(--fs-lg); letter-spacing: -0.01em; margin: 0 0 12px; }
.td-sub { color: var(--mute); font-size: var(--fs-base); margin: 0 0 18px; }

/* Temperature units — the reader's choice is remembered across both pages.
   The hub has no switch of its own; it follows what the weather page was set
   to, which is where somebody goes to change it. */
.t-f { display: none; }
[data-units="f"] .t-c { display: none; }
[data-units="f"] .t-f { display: inline; }

/* --- Clock and countdown ------------------------------------------------- */
.td-split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .td-split { grid-template-columns: 1.3fr 1fr; } }
.td-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.td-clock { margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.td-clock b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-figure); font-weight: 600; line-height: 1; color: var(--ink);
}
.td-tz { color: var(--mute); font-size: var(--fs-xs); }
.td-zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td-zones li {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: var(--fs-sm); padding-top: 8px; border-top: 1px solid var(--line);
}
.td-zones li:first-child { border-top: 0; padding-top: 0; }
.td-zones li.is-here { font-weight: 600; }
.td-zone-name { color: var(--ink); }
.td-zone-time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.td-zone-diff { color: var(--mute); font-size: var(--fs-xs); margin-inline-start: auto; }

.td-countdown { background: var(--accent-soft); border-color: #F3D9A4; }
.td-count { margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; }
.td-count b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-figure); font-weight: 600; line-height: 1; color: var(--primary-dark);
}
.td-count span { color: #6B4A12; font-size: var(--fs-base); }
.td-count-sub { margin: 0 0 12px; color: #6B4A12; font-size: var(--fs-sm); line-height: 1.55; }

/* --- The three summary cards --------------------------------------------- */
.td-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .td-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .td-cards { grid-template-columns: repeat(3, 1fr); } }
.td-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.td-card h2 {
  font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--mute); margin: 0 0 10px;
}
.td-card-figure { margin: 0 0 4px; }
.td-card-figure b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-2xl); font-weight: 600; color: var(--ink); line-height: 1;
}
.td-card-note { margin: 0; color: var(--mute); font-size: var(--fs-sm); }
.td-card-empty { margin: 0; color: var(--mute); font-size: var(--fs-sm); font-style: italic; }
.td-flag { margin: 8px 0 0; color: var(--primary-dark); font-size: var(--fs-xs); font-weight: 600; }

.td-rates, .td-borders { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.td-rates li, .td-borders li {
  display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-sm);
}
.td-rate-code, .td-border-name { color: var(--mute); }
.td-rates b, .td-borders b {
  margin-inline-start: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums; font-size: var(--fs-base); color: var(--ink);
}
/* Same severity ramp as the border page, so a figure means the same thing
   wherever it appears on this site. */
.td-borders b.is-calm { color: #4F7A3F; }
.td-borders b.is-moderate { color: #B45309; }
.td-borders b.is-heavy { color: var(--primary); }
.td-borders b.is-severe { color: #9A3412; }

.td-card-date { margin: 10px 0 0; color: var(--mute); font-size: var(--fs-xs); }

.td-units { margin: 12px 0 0; }

.td-more {
  margin-top: auto; padding-top: 12px; font-size: var(--fs-sm); font-weight: 600;
  color: var(--primary-dark);
}
.td-more:hover { text-decoration: underline; }

/* --- Links and CTA -------------------------------------------------------- */
.td-links { display: flex; gap: 10px; flex-wrap: wrap; }
.td-links a {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 15px; font-size: var(--fs-base);
  color: var(--ink);
}
.td-links a:hover { border-color: var(--primary); color: var(--primary-dark); }
.td-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 4px 0 0; }
.td-cta {
  display: inline-flex; align-items: center; background: var(--primary);
  color: #fff; font-weight: 600; font-size: var(--fs-md); padding: 14px 26px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.td-cta:hover { background: var(--primary-dark); }

@media (max-width: 620px) {
  .td-wrap { padding: 0 14px; }
