/* Keep the three daily lessons in reach; decoration never displaces them. */
.home-screen { padding-top:16px; }
.home-screen .hero-card { min-height:0; padding:0; border:0; border-radius:0; background:none; color:var(--ink); box-shadow:none; overflow:visible; }
.home-screen .hero-card::after,.home-screen .hero-glow { display:none; }
.home-screen .date-navigation { grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:3px; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.home-screen .date-arrow { width:44px; min-height:44px; margin:0; padding:0; color:var(--ink); background:none; border:0; box-shadow:none; }
.home-screen .date-arrow-disc { width:40px; height:40px; border:0; background:transparent; border-radius:12px; box-shadow:none; }
.home-screen .date-arrow-disc svg { width:20px; height:20px; }
.home-screen .date-arrow-caption { display:none; }
.home-screen .date-copy .date-select { display:grid; grid-template-columns:minmax(0,1fr) 18px; align-content:center; align-items:center; column-gap:6px; row-gap:2px; width:100%; min-height:60px; margin:0; padding:4px; color:var(--ink); border:0; border-radius:12px; background:none; }
.date-select #hebrew-date { grid-column:1; font-family:"Noto Serif Hebrew",David,serif; font-size:1.125rem; font-weight:700; line-height:1.5; }
.date-select #gregorian-date { grid-column:1; color:var(--ink-soft); font-size:.8125rem; font-weight:400; line-height:1.5; }
.date-select-hint { grid-column:2; grid-row:1 / 3; display:flex; font-size:0; color:var(--ink-soft); }
.date-select-hint svg { width:18px; height:18px; }
.home-screen .today-link { margin:3px 0 4px; min-height:44px; color:var(--ink); background:var(--gold-soft); border:0; font-size:.75rem; }
.home-screen .calendar-policy { display:flex; flex-wrap:wrap; justify-content:center; column-gap:12px; margin:8px 0 0; font-size:.8125rem; line-height:1.5; color:var(--ink-soft); }
.calendar-policy span:first-child { color:var(--ink); font-weight:600; }
.home-screen .holiday-note { margin:8px 0 0; font-size:.75rem; border:1px solid var(--line); }
.home-screen .daily-progress { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) 56px; align-items:center; gap:12px; margin-top:14px; padding:16px 18px; border:0; border-radius:18px; color:#fffefa; background:#143252; overflow:hidden; }
.home-screen .progress-message { grid-column:1; grid-row:1; display:block; min-width:0; }
.home-screen .progress-message h3 { margin:0; font-family:"Noto Serif Hebrew",David,serif; font-size:1.375rem; font-weight:700; line-height:1.4; }
.home-screen .progress-message p { display:block; margin:4px 0 0; font-size:.8125rem; font-weight:400; line-height:1.6; color:#dae4ee; }
.home-screen .progress-ring { grid-column:2; grid-row:1; width:56px; height:56px; padding:3px; box-shadow:none; background:conic-gradient(#e0bb75 var(--progress),#ffffff26 0); }
.home-screen .progress-ring-inner { width:50px; height:50px; background:#173654; }
.home-screen .progress-ring strong { font-size:1rem; }
.home-screen .progress-ring-inner > span { display:none; }
.progress-book { position:absolute; z-index:-1; bottom:-16px; inset-inline-end:-12px; width:180px; height:90px; fill:none; stroke:#d9bb82; stroke-width:1; opacity:.08; pointer-events:none; }
.home-screen .daily-progress #continue-study { grid-column:1 / -1; min-height:46px; margin:0; padding:10px 16px; color:#143252; background:#fffefa; border:0; border-radius:12px; box-shadow:none; font-size:.9375rem; }
.home-screen .daily-progress #continue-study:hover:not(:disabled) { background:#f2e8d3; }
.home-screen .section-heading { align-items:center; margin:12px 0 6px; padding-inline:2px; }
.home-screen .section-heading h2 { font-family:"Noto Serif Hebrew",David,serif; font-size:1.3125rem; font-weight:700; }
.home-screen .refresh-button { width:44px; height:44px; border:0; background:none; }
.home-screen .study-list { grid-template-columns:1fr; gap:10px; }
.home-screen .study-card { grid-template-columns:48px minmax(0,1fr) 22px; gap:12px; min-height:96px; padding:12px 14px; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); background:var(--surface); }
.home-screen .study-card::before,.home-screen .study-card::after { display:none; }
.home-screen .study-monogram { grid-row:1; width:48px; height:52px; border:0; border-radius:13px; box-shadow:none; }
.lesson-icon { width:31px; height:31px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.home-screen .study-card-content { grid-row:1; }
.home-screen .study-card-topline { display:block; }
.home-screen .study-card-topline strong { font-family:"Noto Serif Hebrew",David,serif; font-size:1.25rem; font-weight:700; line-height:1.3; }
.home-screen .duration { display:none; }
.home-screen .study-ref { display:block; margin-top:3px; font-size:.875rem; line-height:1.6; font-weight:500; white-space:normal; overflow:visible; -webkit-line-clamp:unset; overflow-wrap:anywhere; }
.home-screen .study-note { margin-top:2px; font-size:.8125rem; line-height:1.5; white-space:normal; }
.home-screen .card-chevron { grid-row:1; grid-column:3; display:grid; width:22px; height:32px; color:var(--ink-soft); background:none; border-radius:0; }
.home-screen .card-chevron svg { width:18px; height:18px; stroke-width:1.7; }
.home-screen .completion-mark { position:static; grid-column:2 / 4; justify-self:start; height:auto; margin-top:-5px; padding:3px 7px; box-shadow:none; font-size:.6875rem; }
.home-screen .study-card.is-complete { border-color:color-mix(in srgb,var(--success) 45%,var(--line)); box-shadow:none; }
.home-utilities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.home-utilities .secondary-button { display:flex; align-items:center; justify-content:center; gap:7px; min-width:0; min-height:48px; margin:0; padding:10px 8px; font-size:.8125rem; line-height:1.5; background:transparent; }
.home-utilities svg { flex:0 0 18px; width:18px; height:18px; }
.home-utilities .offline-shortcut { margin:0; grid-column:auto; grid-row:auto; }
.home-screen .streak-row { margin:16px 0 0; }
.home-screen .streak-chip { padding:6px 10px; font-size:.8125rem; background:none; box-shadow:none; border:0; }
.home-screen .flame { color:var(--gold-ink); background:var(--gold-soft); }
.home-screen .daily-thought { position:relative; justify-content:center; margin-top:18px; padding:16px 4px; background:none; border:0; border-radius:0; box-shadow:none; text-align:center; }
.home-screen .daily-thought .quote-mark { display:none; }
.home-screen .daily-thought p { font-family:"Noto Serif Hebrew",David,serif; font-size:1.0625rem; font-weight:600; }
.home-screen .daily-thought div span { font-size:.8125rem; margin-top:6px; }
.home-screen .source-credit { font-size:.8125rem; }
.creator-inquiry { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 .6em; grid-column:1 / -1; margin-block:8px; color:var(--ink-soft); font-size:.9rem; }
.creator-inquiry a { display:inline-flex; align-items:center; min-height:44px; gap:.35em; color:var(--ink); font-weight:600; text-underline-offset:.22em; }
@media print { .creator-inquiry { display:none; } }
.home-screen .status-pill { color:var(--ink-soft); border:0; background:none; font-size:.8125rem; font-weight:500; padding:0; }
.home-screen .status-pill i { width:5px; height:5px; background:#36715b; box-shadow:none; }
.home-screen .status-pill.is-offline { color:var(--gold-ink); }
.home-screen .status-pill.is-offline i { background:var(--gold-ink); box-shadow:none; }
.home-screen .hero-card :focus-visible { outline-color:var(--gold-ink); }
@media (max-width:360px) {
  .home-screen .daily-progress { padding:14px; column-gap:8px; }
  .home-screen .progress-message h3 { font-size:1.25rem; }
  .date-select #hebrew-date { font-size:1rem; }
  .home-screen .study-card { grid-template-columns:42px minmax(0,1fr) 18px; padding:12px; gap:9px; }
  .home-screen .study-monogram { width:42px; height:48px; }
  .home-utilities .secondary-button { gap:4px; font-size:.8125rem; }
}
@media (max-width:520px) {
  .date-dialog { inset:auto 0 0; margin:0 auto; width:100%; max-width:520px; max-height:calc(100dvh - 16px); padding:20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius:26px 26px 0 0; overflow-y:auto; }
}
@media (min-width:700px) {
  .home-screen .study-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .home-screen .study-card { grid-template-columns:minmax(0,1fr) 22px; align-content:start; min-height:194px; padding:18px; row-gap:12px; }
  .home-screen .study-monogram { grid-column:1; grid-row:1; width:56px; height:60px; }
  .home-screen .study-card-content { grid-column:1 / -1; grid-row:2; }
  .home-screen .card-chevron { grid-column:2; grid-row:1; }
  .home-screen .completion-mark { grid-column:1 / -1; grid-row:3; }
  .home-screen .study-card-topline strong { font-size:1.5rem; }
  .home-screen .study-ref { font-size:.875rem; }
}
@media (min-width:900px) {
  .screen.home-screen { max-width:1080px; padding-top:24px; }
  .home-screen.is-active { display:block; }
  .home-screen .date-navigation { width:420px; margin-inline:auto; }
  .home-screen .daily-progress { grid-template-columns:minmax(0,1fr) 76px 210px; gap:32px; padding:26px 30px; margin-top:20px; }
  .home-screen .progress-message h3 { font-size:1.875rem; }
  .home-screen .progress-message p { font-size:.9375rem; margin-top:4px; }
  .home-screen .progress-ring { width:76px; height:76px; }
  .home-screen .progress-ring-inner { width:70px; height:70px; }
  .home-screen .progress-ring strong { font-size:1.25rem; }
  .progress-book { width:320px; height:160px; bottom:-20px; inset-inline-end:100px; opacity:.08; }
  .home-screen .daily-progress #continue-study { grid-column:3; grid-row:1; }
  .home-screen .section-heading { margin-top:20px; }
  .home-screen .section-heading h2 { font-size:1.5rem; }
  .home-utilities { max-width:520px; margin:14px auto 0; }
  .home-screen .streak-row { justify-content:center; }
  .home-screen .daily-thought { margin-top:14px; }
}
@media (hover:hover) {
  .home-screen .study-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--subject-color) 45%,var(--line)); box-shadow:var(--shadow-md); }
  .home-screen .date-arrow:hover .date-arrow-disc { background:var(--paper-deep); }
  .home-screen .date-select:hover { background:var(--paper); }
}
@media print { .home-utilities { display:none; } }
.web-footer .builder-credit { flex-basis:100%; text-align:center; }
