/* Today card (homepage) (2026-10-11, features Phase 4; /lottery and its tile removed 2026-10-18).
   The card is one row of compact chips that scrolls sideways, so it never
   pushes the hero or the tool list down on a phone. */
.cz-today { padding: 0 16px; }
.cz-today .tc-in { max-width: 1180px; margin: 0 auto; }
.tc-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.tc-head h2 { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: .02em; }
.tc-head small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tc-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tc-chip { flex: 0 0 auto; width: 190px; min-height: 104px; box-sizing: border-box; scroll-snap-align: start; display: grid; align-content: start; gap: 4px;
  padding: 10px 12px; border: 2px solid var(--edge, #2b1a12); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: 0 3px 0 var(--ink-sh, var(--ink, #2b1a12)); }
.tc-chip:active { transform: translateY(3px); box-shadow: none; }
.tc-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.tc-top img { width: 18px; height: 18px; }
.tc-chip b { font-size: 16px; font-weight: 900; line-height: 1.25; }
.tc-chip small { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.tc-chip em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); opacity: .85; line-height: 1.3; }
.tc-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tc-chip .tc-num { font-size: 18px; }
.tc-chip.hot { background: var(--accent-soft, #ffe1d6); border-color: var(--accent, #ff4b2b); }
.tc-chip.hot b { color: var(--accent, #ff4b2b); }
.tc-chip.empty { background: var(--bg); border-style: dashed; box-shadow: none; }
.tc-mali { display: flex; gap: 6px; align-items: center; }
.tc-mali img { width: 26px; height: 26px; flex: none; }
.tc-wait { background: linear-gradient(90deg, var(--surface) 25%, var(--bg) 50%, var(--surface) 75%); background-size: 200% 100%; animation: tc-wait 1.2s linear infinite; box-shadow: none; border-style: dashed; }
@keyframes tc-wait { to { background-position: -200% 0; } }
.tc-sw { display: flex; gap: 3px; flex-wrap: wrap; padding: 2px 0; }
.tc-sw .lk-sw { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .tc-wait { animation: none; } .tc-chip:active { transform: none; } }

/* swatches (same as food.css, which the homepage doesn't load) */
.cz-today .lk-sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--sw); border: 2px solid #2b1a12; }
.hm-home > .cz-today { margin: 6px 0 22px; }
@media (min-width: 701px) { .cz-today { padding: 0 24px; } .tc-chip { width: 210px; } }
/* the hub style.css pads every <section>; the card stays compact */
.hm-home > .cz-today { padding-top: 0 !important; padding-bottom: 0 !important; }

/* =====================================================================
   BIG TODAY CARD (2026-10-17): every "today" thing in one card on the
   homepage — a warm header (title, date, Mali), the three tiles as a grid
   (no sideways scroll; the fuel tile and list left 2026-10-18, the lottery tile too), and the signed-in "วันนี้กับมะลิ"
   strip. Desktop keeps the ink outline (--edge / --hard); on phones
   soft.css turns those into the soft look.
   ===================================================================== */
.hm-home > .cz-today { margin: 8px 0 30px; }
.tc-big {
  position: relative; overflow: hidden; padding: 22px; border-radius: 28px;
  border: 2px solid var(--edge, #2b1a12); box-shadow: var(--hard, 0 4px 0 #2b1a12);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, var(--surface)) 0, var(--surface) 150px);
}
.tc-big .tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.tc-big .tc-head-t { display: grid; gap: 4px; min-width: 0; }
html body .tc-big .tc-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; text-transform: none; }
.tc-big .tc-head small { font-size: 14px; font-weight: 700; color: var(--muted); }
.tc-head-mali { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 8px 10px rgba(43, 26, 18, .18)); }

/* tiles: a grid inside the card */
.tc-big .tc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 0; scroll-snap-type: none; }
.tc-big .tc-chip {
  width: auto; min-height: 138px; padding: 14px; gap: 6px; border: 0; border-radius: 20px; box-shadow: none;
  background: var(--t3); transition: transform 200ms cubic-bezier(.2, .8, .2, 1);
}
.tc-big .tc-chip:hover { transform: translateY(-2px); }
.tc-big .tc-chip:active { transform: scale(.98); box-shadow: none; }
.tc-big .tc-chip.lucky { background: var(--t4); }
.tc-big .tc-chip.hol { background: var(--t3); }
.tc-big .tc-chip.pra { background: var(--t5); }
.tc-big .tc-top { font-size: 12.5px; color: color-mix(in srgb, var(--text) 70%, transparent); }
.tc-big .tc-top img { width: 22px; height: 22px; }
.tc-big .tc-chip b { font-size: 17px; }
.tc-big .tc-chip .tc-num { font-size: 20px; }
.tc-big .tc-chip small { color: color-mix(in srgb, var(--text) 65%, transparent); }
.tc-big .tc-chip em { margin-top: auto; color: color-mix(in srgb, var(--text) 55%, transparent); }
.tc-big .tc-sw .lk-sw { width: 20px; height: 20px; }
.tc-big .tc-chip.empty { background: var(--bg); border: 1.5px dashed var(--line-strong); }
.tc-big .tc-wait { min-height: 138px; border: 0; }

/* the signed-in strip: who owes you, the next trip … */
.tc-mine { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed var(--line-strong); }
.tc-mine[hidden] { display: none; }
.tc-mine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
html body .tc-mine-head h3 { margin: 0; font-size: 16px; font-weight: 900; text-transform: none; letter-spacing: 0; }
.tc-mine-head a { font-size: 13px; font-weight: 800; color: var(--accent); text-decoration: none; }
.tc-mine .mali-today-chips { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tc-mine .mali-today-chip { border: 0; box-shadow: none; border-radius: 18px; background: var(--surface-soft); }
.tc-mine .mali-today-chip:hover { box-shadow: none; }

/* phones: two columns; lucky colours across the top, then the holiday and วันพระ */
@media (max-width: 700px) {
  .hm-home > .cz-today { margin: 0; padding: 0 !important; }
  .cz-today .tc-in { max-width: none; }
  .tc-big { padding: 18px 14px 14px; border-radius: 26px; }
  .tc-big .tc-head { margin-bottom: 14px; padding: 0 4px; }
  .tc-head-mali { width: 48px; height: 48px; }
  .tc-big .tc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tc-big .tc-chip { min-height: 120px; padding: 12px; border-radius: 18px; }
  .tc-big .tc-chip.lucky { grid-column: 1 / -1; min-height: 0; }
  .tc-big .tc-chip b { font-size: 15.5px; }
  .tc-big .tc-wait { min-height: 120px; }
  .tc-mine .mali-today-chips { grid-template-columns: 1fr; }
}
/* long names wrap inside the strip instead of pushing the card wider */
.tc-mine .mali-today-chip { min-width: 0; }
.tc-mine .mali-today-chip .mt-text { min-width: 0; overflow-wrap: anywhere; }
