/* The public Hindu calendar page. Phone first, in the temple theme's colours when it's active, and printable. */
.tb-hc{--tb-line:var(--rule,#D9A55A);--tb-soft:var(--rule-soft,#EBD3A0);--tb-accent:var(--vermilion,#B4441E);--tb-ink:var(--ink,#3A1D12);--tb-muted:var(--ink-soft,#6A3E22);--tb-paper:var(--paper,#FFFBF0);--tb-good:#2E7D4F;--tb-bad:#B3261E;--tb-okay:#E8DCC2;max-width:760px;margin:24px 0;display:flex;flex-direction:column;gap:20px;color:var(--tb-ink);font-variant-numeric:tabular-nums}
.tb-hc h2{margin:0;font-size:1.45em;line-height:1.2}
.tb-hc h3{margin:0 0 10px;font-size:1.08em}
.tb-hc h4{margin:12px 0 4px;font-size:.95em}
.tb-hc p{margin:0}
.tb-hc-day{display:flex;flex-direction:column;gap:14px}
.tb-hc-nav,.tb-hc-actions,.tb-hc-monthhead{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tb-hc-nav{justify-content:space-between}
.tb-hc-monthhead{justify-content:space-between}
.tb-hc-small{padding:8px 14px;border:1px solid var(--tb-line);border-radius:8px;background:var(--tb-paper);color:inherit;font:inherit;font-size:.92em;cursor:pointer}
.tb-hc-small:disabled{opacity:.4;cursor:default}
.tb-hc button:focus-visible,.tb-hc a:focus-visible,.tb-hc select:focus-visible{outline:2px solid var(--tb-accent);outline-offset:2px}
.tb-hc-vara{color:var(--tb-muted)}
.tb-hc-month{line-height:1.5}
.tb-hc-marks{display:flex;flex-wrap:wrap;gap:6px}
.tb-hc-mark{padding:3px 10px;border-radius:14px;background:var(--tb-accent);color:#FFF6E4;font-size:.9em;font-weight:600}
.tb-hc-elements,.tb-hc-sky{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.tb-hc-elements dt,.tb-hc-sky dt{font-weight:600}
.tb-hc-elements dd,.tb-hc-sky dd{margin:0}
.tb-hc-sky{grid-template-columns:auto 1fr auto 1fr auto 1fr}
.tb-hc-card{padding:16px;border:1px solid var(--tb-line);border-radius:10px;background:var(--tb-paper)}
.tb-hc-timeline{margin:10px 0 2px}
.tb-hc-bar{position:relative;height:18px;border-radius:5px;overflow:hidden;background:var(--tb-okay)}
.tb-hc-now{position:absolute;top:0;bottom:0;width:3px;margin-left:-1px;background:var(--tb-ink);box-shadow:0 0 0 1px #fff}
.tb-hc-hours{position:relative;height:1.3em;margin-top:2px;font-size:.72em;color:var(--tb-muted)}
.tb-hc-hour{position:absolute;transform:translateX(-50%);white-space:nowrap}
.tb-hc-hour::before{content:"";position:absolute;left:50%;top:-4px;height:4px;border-left:1px solid var(--tb-muted)}
.tb-hc-explain{margin:0 0 4px}
.tb-hc-rightnow{margin:8px 0 4px;padding:10px 12px;border-radius:8px;background:#fff;border:1px solid var(--tb-line);line-height:1.6}
.tb-hc-badge{display:inline-block;min-width:4.6em;padding:1px 8px;border-radius:12px;font-size:.85em;font-weight:700;white-space:nowrap}
.tb-hc-badge.tb-hc-good{background:var(--tb-good);color:#fff}
.tb-hc-badge.tb-hc-bad{background:var(--tb-bad);color:#fff}
.tb-hc-badge.tb-hc-okay{background:var(--tb-okay);color:var(--tb-ink)}
.tb-hc-stretches{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.tb-hc-row{display:grid;grid-template-columns:6em 14em 1fr auto;align-items:center;gap:4px 10px;padding:6px 8px;border-radius:6px;border-left:4px solid var(--tb-okay);background:#fff}
.tb-hc-row-good{border-left-color:var(--tb-good)}
.tb-hc-row-bad{border-left-color:var(--tb-bad)}
.tb-hc-row-now{outline:2px solid var(--tb-ink);outline-offset:-1px}
.tb-hc-when{font-weight:600}
.tb-hc-why{color:var(--tb-muted);font-size:.92em}
.tb-hc-nowtag{padding:1px 8px;border-radius:10px;background:var(--tb-ink);color:#fff;font-size:.78em;font-weight:700}
.tb-hc-taralist li{margin:6px 0}
.tb-hc-seg{position:absolute;top:0;bottom:0}
.tb-hc-good{background:var(--tb-good)}
.tb-hc-bad{background:var(--tb-bad)}
.tb-hc-okay{background:var(--tb-okay)}
.tb-hc-list{margin:0;padding:0;list-style:none}
.tb-hc-list li{margin:3px 0}
.tb-hc-label{display:block;font-weight:600;margin-bottom:4px}
.tb-hc select{max-width:100%;padding:8px 10px;border:1px solid var(--tb-line);border-radius:8px;background:#fff;color:inherit;font:inherit}
.tb-hc-hint,.tb-hc-foot{color:var(--tb-muted);font-size:.88em;margin-top:6px}
.tb-hc-taras{margin:8px 0;font-size:.92em}
.tb-hc-note{padding:12px 16px;border-left:4px solid var(--tb-accent);background:var(--tb-paper);border-radius:4px}
.tb-hc-share{display:inline-block;padding:10px 20px;border-radius:24px;background:#1F7A45;color:#fff;font-weight:600;text-decoration:none}
.tb-hc-share:hover{color:#fff;background:#18653A}
.tb-hc-monthview{display:flex;flex-direction:column;gap:10px}
.tb-hc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.tb-hc-wd{text-align:center;font-size:.8em;font-weight:600;color:var(--tb-muted)}
.tb-hc-cell{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:86px;padding:5px;border:1px solid var(--tb-soft);border-radius:6px;background:var(--tb-paper);color:inherit;font:inherit;font-size:.72em;line-height:1.25;text-align:left;cursor:pointer;overflow:hidden}
.tb-hc-cell:disabled{opacity:.45;cursor:default;background:transparent}
.tb-hc-empty{border:0;background:none}
.tb-hc-cell > span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-hc-n{font-size:1.25em;font-weight:700}
.tb-hc-s{color:var(--tb-muted)}
.tb-hc-m{color:var(--tb-accent);font-weight:600}
.tb-hc-e{color:#1F5F8B}
.tb-hc-marked{border-color:var(--tb-accent)}
.tb-hc-today .tb-hc-n{color:var(--tb-accent)}
.tb-hc-chosen{outline:2px solid var(--tb-accent);outline-offset:-2px}
@media (max-width:600px){
  .tb-hc-sky{grid-template-columns:auto 1fr}
  .tb-hc-row{grid-template-columns:auto 1fr auto}
  .tb-hc-why{grid-column:1/-1}
  .tb-hc-hour-minor{display:none}
  .tb-hc-cell{min-height:64px;padding:3px}
  .tb-hc-s,.tb-hc-e{display:none}
  .tb-hc-share{flex:1 1 auto;text-align:center}
}
@media print{
  .tb-hc{margin:0;gap:10px}
  .tb-hc-nav,.tb-hc-actions,.tb-hc-monthview,.tb-hc-nostar,.tb-hc-mine select,.tb-hc-mine .tb-hc-label,.tb-hc-mine .tb-hc-hint{display:none}
  .tb-hc-card{break-inside:avoid;background:none}
  .tb-hc-rightnow,.tb-hc-now,.tb-hc-nowtag{display:none}
  .tb-hc-row-now{outline:0}
  .tb-hc-bar,.tb-hc-seg,.tb-hc-badge,.tb-hc-mark{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
