.hf-page { --hf-green: #005b30; --hf-soft: #edf7f0; --hf-border: #d4e2d9; --hf-ink: #19382b; max-width: 1040px; margin: auto; padding: 28px 24px 70px; color: var(--hf-ink); width: 100%; }
.hf-page *, .hf-page *::before, .hf-page *::after { box-sizing: border-box; }
.hf-page [hidden] { display: none !important; }
.hf-heading { margin: 25px 0 22px; }
.hf-eyebrow { color: #557062; font-size: .85rem; margin-bottom: 6px; }
.hf-page h1 { font-size: clamp(1.65rem, 4vw, 2.55rem); line-height: 1.55; font-weight: 800; margin: 0 0 12px; }
.hf-page h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 14px; line-height: 1.6; }
.hf-page p { line-height: 1.95; }
.hf-heading > p:last-child { max-width: 740px; margin: 0; }
.hf-page a:not(.hf-jumps a) { text-decoration: underline; text-underline-offset: 4px; }
.hf-panel { padding: 26px; border: 1px solid var(--hf-border); border-radius: 24px; background: #fff; margin: 22px 0; scroll-margin-top: 100px; }
.hf-primary { border-top: 4px solid #dec999; background: linear-gradient(140deg,#fff 65%,#f3f8f1); }
.hf-jumps, .hf-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hf-jumps { margin: 18px 0; font-size: .9rem; }
.hf-jumps a { border-bottom: 1px solid #aac4b3; padding: 4px 0; margin-inline-end: 12px; }
.hf-page .hf-jumps a { color: var(--hf-green); }
.hf-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hf-clock { color: #426151; font-size: .9rem; }
.hf-clock bdi { display: inline-block; min-width: 5.5em; font-variant-numeric: tabular-nums; }
.hf-next { background: linear-gradient(110deg,#006b3b,#004e29); color: #fff; padding: 22px; border-radius: 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.hf-next small { color: #d0eddd; }
.hf-next strong { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.6; }
.hf-count { direction: ltr; font-variant-numeric: tabular-nums; font-size: clamp(1.6rem,4vw,2.3rem); font-weight: 700; padding: 12px 20px; border: 1px solid #77a68b; border-radius: 14px; text-align: center; min-width: 165px; }
.hf-previous { font-size: .9rem; margin: 12px 0 20px; color: #476252; }
.hf-page button, .hf-page select, .hf-page input { font: inherit; min-height: 44px; border: 1px solid #a8c2b1; border-radius: 10px; padding: 9px 13px; max-width: 100%; background: white; color: var(--hf-ink); }
.hf-page button { cursor: pointer; font-weight: 700; }
.hf-page button:hover { background: #e9f5ed; }
.hf-page button[aria-pressed="true"], .hf-page button[type="submit"] { background: var(--hf-green); color: white; border-color: var(--hf-green); }
.hf-page button:disabled { opacity: .55; cursor: wait; }
.hf-page :focus-visible { outline: 3px solid #b27a21; outline-offset: 3px; }
.hf-date-pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 18px 0; }
.hf-date-pair > span { color: #5c7064; font-size: .9rem; }
.hf-prayers { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.hf-prayer { padding: 16px 10px; border: 1px solid var(--hf-border); border-radius: 14px; background: #f8fbf8; min-width: 0; text-align: center; }
.hf-prayer strong { display: block; font-size: 1.7rem; line-height: 1.7; font-variant-numeric: tabular-nums; font-weight: 750; }
.hf-prayer small { display: block; color: #4c6457; font-size: .75rem; }
.hf-prayer.is-next { background: #e4f3e8; border: 2px solid #1c8b50; padding: 15px 9px; }
.hf-sunrise { font-size: .92rem; margin: 16px 0; }
.hf-sunrise bdi { font-weight: 700; margin-inline: 10px; }
.hf-sunrise span { color: #667969; }
.hf-note { font-size: .86rem; color: #5c6a60; }
.hf-notice { background: #faf3e3; border-inline-start: 3px solid #b68430; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.hf-status { min-height: 1.8em; color: #6c5127; font-size: .88rem; margin: 10px 0 0; }
.hf-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.hf-field { display: grid; gap: 5px; min-width: 0; }
.hf-field label { font-size: .85rem; font-weight: 700; }
.hf-date-fields { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hf-field input[type="number"] { width: 104px; }
.hf-result { background: #f5f9f5; padding: 18px; border-radius: 16px; border: 1px solid var(--hf-border); margin-top: 15px; }
.hf-result h3 { font-weight: 800; font-size: 1.1rem; }
.hf-table-wrap { width: 100%; margin-top: 14px; }
.hf-table { border-collapse: collapse; width: 100%; text-align: center; font-size: .9rem; }
.hf-table caption { text-align: start; padding: 10px 0 16px; font-weight: 700; font-size: 1rem; }
.hf-table thead { background: #e9f2e9; }
.hf-table th, .hf-table td { padding: 12px 8px; border-bottom: 1px solid #dfe8df; }
.hf-table tbody th { text-align: start; font-weight: 600; max-width: 240px; }
.hf-table tbody th span { display: block; font-size: .8rem; color: #617266; font-weight: 400; }
.hf-is-today { background: #edf8ed; }
.hf-today-label { display: inline-block; color: #fff; background: #005b30; padding: 0 7px; border-radius: 5px; margin-inline-start: 5px; font-size: .7rem; }
.hf-method { background: #faf7ef; }
.hf-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.hf-facts > div { border-bottom: 1px solid #dcded0; padding-bottom: 10px; }
.hf-facts dt { font-size: .8rem; color: #697465; }
.hf-facts dd { margin: 3px 0 0; font-size: .95rem; }
.hf-page details { border-bottom: 1px solid var(--hf-border); padding: 14px 0; }
.hf-page summary { cursor: pointer; font-weight: 700; line-height: 1.9; }
.hf-page details p { margin: 10px 0; }
.hf-print-only { display: none; }
@media (max-width: 700px) {
  .hf-page { padding: 18px 16px 45px; }
  .hf-panel { padding: 18px 14px; border-radius: 18px; }
  .hf-prayers { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hf-prayers > :last-child { grid-column: 1 / -1; }
  .hf-heading { margin: 16px 0; }
  .hf-heading h1 { font-size: 1.65rem; }
  .hf-heading > p:last-child { font-size: .9rem; }
  .hf-primary { display: flex; flex-direction: column; }
  .hf-primary .hf-topline { order: 0; margin-bottom: 12px; }
  .hf-primary h2, #hf-day-controls label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hf-primary .hf-clock { margin: 0; }
  #hf-day-controls { order: 1; gap: 7px; }
  #hf-day-controls button, #hf-day-controls select { font-size: .8rem; padding: 8px 9px; }
  #hf-day { order: 2; }
  #hf-comparison { order: 3; }
  #hf-live { order: 4; }
  #hf-previous { order: 5; }
  #hf-day-actions { order: 6; }
  #hf-day-status, #hf-retry { order: 7; }
  .hf-primary > .hf-note, .hf-primary > noscript { order: 8; }
  #hf-day .hf-prayers { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  #hf-day .hf-prayer { padding: 8px 3px; }
  #hf-day .hf-prayer.is-next { padding: 7px 2px; }
  #hf-day .hf-prayer:last-child { grid-column: auto; }
  #hf-day .hf-prayer strong { font-size: 1.1rem; }
  #hf-day .hf-prayer > span { font-size: .83rem; }
  #hf-day .hf-prayer small { font-size: .64rem; }
  .hf-prayer { padding: 12px 8px; }
  .hf-prayer.is-next { padding: 11px 7px; }
  .hf-next { grid-template-columns: 1fr; padding: 18px; }
  .hf-count { width: 100%; }
  .hf-facts { grid-template-columns: 1fr; }
  .hf-form > .hf-field, .hf-form > .hf-date-fields { flex: 1 1 100%; }
  .hf-date-fields > .hf-field { flex: 1 1 65px; }
  .hf-date-fields select, .hf-date-fields input { width: 100%; }
  .hf-date-pair { display: grid; gap: 3px; }
  .hf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hf-table, .hf-table tbody { display: block; width: 100%; }
  .hf-table caption { display: block; }
  .hf-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--hf-border); border-radius: 14px; padding: 12px; gap: 8px; margin-bottom: 12px; }
  .hf-table tbody th { display: block; grid-column: 1 / -1; max-width: none; text-align: start; padding: 4px 0 12px; }
  .hf-table td { display: flex; gap: 4px; flex-direction: column; padding: 8px 2px; border: 0; background: #f5f8f3; border-radius: 7px; }
  .hf-table td::before { content: attr(data-label); color: #637264; font-size: .8rem; }
  .hf-table td:last-child { grid-column: 1 / -1; }
  .hf-table bdi { font-size: 1.05rem; font-weight: 600; }
}
@media (prefers-reduced-motion: no-preference) { .hf-primary { animation: hf-enter .4s ease-out both; } @keyframes hf-enter { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
@media print {
  body > :not(main), .hf-page .breadcrumb, .hf-heading, .hf-jumps, .hf-panel, .hf-toolbar, .hf-form, .hf-status { display: none !important; }
  .hf-page { max-width: none; padding: 0; color: #000; }
  .hf-page .hf-print-target { display: block !important; border: 0; margin: 0; padding: 0; }
  .hf-print-container > :not(.hf-print-target) { display: none !important; }
  .hf-print-only { display: block; }
  .hf-table { display: table; font-size: 10pt; }
  .hf-table caption { display: table-caption; }
  .hf-table thead { display: table-header-group; position: static; clip-path: none; width: auto; height: auto; }
  .hf-table tbody { display: table-row-group; }
  .hf-table tr { display: table-row; break-inside: avoid; }
  .hf-table tbody th, .hf-table td { display: table-cell; padding: 5px; }
  .hf-table td::before { content: none; }
  .hf-prayers { grid-template-columns: repeat(5,1fr); }
  .hf-prayers > :last-child { grid-column: auto; }
}
