/* Jewish holiday pages. Builds on /learn/learn.css tokens. */
.h-wrap { max-width: 860px; margin: 0 auto; padding: 18px 24px 56px; }
.he { font-family: var(--font-he); }

/* Hero */
.h-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 44px 44px 36px; margin: 4px 0 20px;
  color: #FBF8F2; background: linear-gradient(140deg, var(--g1), var(--g2) 58%, var(--g3)); }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 70% at 100% 0%, rgba(255,255,255,.16), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(0,0,0,.18), transparent 70%); }
.h-bg { position: absolute; z-index: -1; right: -12px; bottom: -.28em; font-size: clamp(6rem, 22vw, 11rem); line-height: 1; font-weight: 600;
  color: rgba(255,255,255,.07); white-space: nowrap; pointer-events: none; user-select: none; }
.h-kicker { margin: 0 0 6px; font-size: .95rem; font-weight: 500; opacity: .85; }
.h-kicker .he, .h-hero .h-kicker { font-family: var(--font-he), var(--font); }
.h-hero h1 { margin: 0 0 30px; color: #fff; font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 650; max-width: 18ch; }
.h-lede { margin: 0 0 18px; max-width: 58ch; font-size: 1.08rem; line-height: 1.55; opacity: .92; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-chip, .h-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 550;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.h-status { background: #fff; color: var(--g2); border-color: #fff; }
.h-status.now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: hpulse 1.8s ease-in-out infinite; }
@keyframes hpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .h-status.now::before { animation: none; } }

/* Themes: each holiday has its own palette */
.t-honey  { --g1: #7A3E0B; --g2: #B8650F; --g3: #E0A43A; }
.t-white  { --g1: #29344F; --g2: #4B5A7E; --g3: #9AA8C4; }
.t-green  { --g1: #183A26; --g2: #2E6B3F; --g3: #8DA64A; }
.t-blue   { --g1: #0D2A5C; --g2: #1F4FA3; --g3: #5F93DB; }
.t-night  { --g1: #0E1330; --g2: #1A2152; --g3: #3B2A48; }
.t-slate  { --g1: #262A33; --g2: #454C5A; --g3: #7D8594; }
.t-purple { --g1: #2E1650; --g2: #5A2D91; --g3: #B06AB3; }
.t-wine   { --g1: #3F0E1E; --g2: #7A1F3A; --g3: #C2575E; }
.t-fire   { --g1: #4A1606; --g2: #A3360E; --g3: #E8872B; }
.t-ash    { --g1: #1F1D1C; --g2: #3A3634; --g3: #6B625C; }
.t-rose   { --g1: #5A1937; --g2: #A3335F; --g3: #E58FA5; }
.t-sky    { --g1: #0B3A55; --g2: #1672A3; --g3: #5CC0DE; }

/* Glance tiles */
.h-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; }
.h-glance div { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 18px; padding: 14px 16px; min-width: 0;
  box-shadow: 0 1px 2px rgba(20,18,12,.04); }
.h-glance span { font-size: .7rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.h-glance b { font-size: 1.12rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.h-glance small { font-size: .82rem; color: var(--muted); }

/* Times box */
.h-card-box { background: var(--surface); border-radius: 24px; padding: 20px 22px 16px; margin: 0 0 8px;
  box-shadow: 0 1px 2px rgba(20,18,12,.04), 0 10px 30px rgba(20,18,12,.06); }
.h-box-head h2 { margin: 0 0 12px; font-size: 1.2rem; }
.h-box-head h2 span { color: var(--accent); }
.h-places { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 12px; padding: 2px 22px 4px; }
.h-places::-webkit-scrollbar { display: none; }
.h-places button { flex: none; font: 550 .88rem/1 var(--font); color: var(--ink); background: var(--surface-2); border: 1px solid transparent;
  padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.h-places button[aria-pressed="true"] { background: var(--night); color: #fff; }
.h-places button.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.h-search { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.h-search input { font: 400 1rem var(--font); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
.h-search ul { list-style: none; margin: 0; padding: 0; }
.h-search li button { width: 100%; text-align: left; font: 500 .95rem var(--font); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 4px; cursor: pointer; }
.h-rows { list-style: none; margin: 0; padding: 0; }
.h-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.h-row:first-child { border-top: 0; }
.h-day { display: flex; flex-direction: column; line-height: 1.2; font-size: .8rem; color: var(--muted); }
.h-day b { font-size: .95rem; color: var(--ink); font-weight: 650; }
.h-lab { font-size: .98rem; line-height: 1.35; }
.h-t { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-row.candles .h-t, .h-row.menorah .h-t { color: var(--accent); }
.h-row.havdalah .h-lab, .h-row.fast .h-lab { color: var(--muted); }
.h-none { margin: 4px 0 6px; color: var(--muted); }
.h-note { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: .92rem; }
.h-loading { opacity: .45; transition: opacity .2s; }

/* Sections */
.h-section h2 { margin-top: 38px; }
.h-section h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.h-days { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; overflow: hidden; }
.h-days li { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--line); }
.h-days li:first-child { border-top: 0; }
.h-days .dd { font-weight: 650; font-size: .92rem; }
.h-days .dt { font-size: .98rem; }
.h-days .dt small { display: block; font-size: .85rem; color: var(--muted); }
.h-days .dh { font-size: .82rem; color: var(--muted); text-align: right; }
.pill { display: inline-block; font-style: normal; font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; margin-left: 4px; }
.pill.soft { background: var(--surface-2); color: var(--muted); }
.h-obs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h-obs li { position: relative; background: var(--surface); border-radius: 14px; padding: 12px 16px 12px 40px; }
.h-obs li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Holiday cards */
.h-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.h-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 124px; padding: 16px 18px; border-radius: 20px;
  color: #FBF8F2; text-decoration: none; background: linear-gradient(140deg, var(--g1), var(--g2) 70%, var(--g3)); transition: transform .15s ease, box-shadow .15s ease; }
.h-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px var(--g2); }
.hc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hc-top b { font-size: 1.1rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.hc-top .he { font-size: 1rem; opacity: .7; white-space: nowrap; }
.hc-date { font-size: .9rem; opacity: .85; }
.hc-s { margin-top: auto; align-self: flex-start; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.hc-s.now { background: #fff; color: var(--g2); }
.h-month h2 { margin: 34px 0 12px; font-size: 1.1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.h-more { margin: 14px 0 0; }
.h-more a { font-weight: 600; text-decoration: none; }
.h-links { display: flex; flex-wrap: wrap; gap: 8px; }
.h-links a { background: var(--surface); color: var(--ink); text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 550; font-size: .94rem; border: 1px solid var(--line); }
.h-links a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) { .h-glance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .h-wrap { padding: 12px 16px 48px; }
  .h-hero { border-radius: 24px; padding: 26px 22px 22px; }
  .h-card-box { padding: 18px 16px 12px; border-radius: 20px; }
  .h-places { margin: 0 -16px 12px; padding: 2px 16px 4px; }
  .h-row { grid-template-columns: 58px 1fr auto; gap: 10px; }
  .h-t { font-size: 1.15rem; }
  .h-days li { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .h-days .dd { grid-column: 1 / -1; margin-bottom: -6px; font-size: .82rem; color: var(--muted); }
}

/* Begin / end dates: the point of the page */
.h-when { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 30px; }
.h-when.one { grid-template-columns: 1fr; }
.h-w { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.h-w + .h-w { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.22); }
.h-wk { font-size: .95rem; font-weight: 500; opacity: .78; }
.h-w b { font-size: clamp(1.7rem, 4vw, 2.3rem); white-space: nowrap; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.h-intro { margin: 0 4px 20px; font-size: 1.1rem; line-height: 1.6; color: var(--ink); opacity: .82; max-width: 62ch; }
@media (max-width: 520px) {
  .h-hero { padding: 30px 24px 26px; }
  .h-hero h1 { margin-bottom: 24px; }
  .h-when { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
  .h-w + .h-w { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
  .h-intro { font-size: 1rem; }
}

/* Chanukah blessings */
.h-bless { border-top: 1px solid var(--line, #e6e1d6); padding: 14px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.hb-l { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #B8650F); }
.hb-he { font-family: "Noto Sans Hebrew", sans-serif; font-size: 1.3rem; line-height: 1.75; text-align: right; margin: 0; }
.hb-tr { font-weight: 500; margin: 0; }
.hb-en { font-size: .92rem; color: var(--muted, #6b6a72); margin: 0; }

/* Chanukah: reminder and tonight links */
.h-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.h-act { padding: 11px 14px; font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2; color: var(--ink); background: none; border: 1px solid var(--line); cursor: pointer; text-decoration: none; }
.h-act[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.cc-h1 { margin: 18px 0 10px; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
