/* Shared date-strip component (dstrip)
 * Markup: nav.dstrip > div.dstrip__days > a.dstrip__d(.is-on/.is-today) + label.dstrip__cal > input[type=date]
 * Visual spec mirrors the jingcai (/lottery) page: compact 44×40 chips, 7px radius, soft-pill
 * selected state, 32×32 calendar button and a 1px bottom rule. Page wrappers own the outer
 * horizontal padding; this file owns chip geometry, spacing, states and the calendar button.
 * Do not add page-specific overrides here — put those in the page stylesheet.
 */
.dstrip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--m-line);
}
.dstrip__days {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}
.dstrip__days::-webkit-scrollbar { display: none; }
.dstrip__d {
  flex: 0 0 44px;
  min-width: 44px;
  height: 40px;
  padding: 4px 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  background: transparent;
  color: var(--m-text-3);
  text-align: center;
}
.dstrip__d b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--m-text-2);
  line-height: 1.2;
}
.dstrip__d.is-on {
  background: var(--m-brand-soft);
  color: var(--m-brand);
}
.dstrip__d.is-on b {
  color: var(--m-brand);
  font-weight: 600;
}
/* 日历按钮平时不铺底色（用户要求去掉灰底），只在 hover / 下拉打开时给一层 surface-2 反馈。 */
.dstrip__cal {
  position: relative;
  flex: 0 0 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: var(--m-text-2);
}
.dstrip__cal svg { width: 22px; height: 22px; pointer-events: none; }
.dstrip__cal input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

@media (hover: hover) {
  .dstrip__d:not(.is-on):hover { background: var(--m-surface-2); }
  .dstrip__cal:hover { background: var(--m-surface-2); color: var(--m-text); }
}
