/* ================= Consistency heatmap ================= */
.heat__lead { color: var(--muted); max-width: 680px; margin: -24px 0 40px; }

.heat__card {
  position: relative;
  padding: clamp(18px, 3vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(198,255,61,.07), transparent 45%),
    #111113;
  border: 1px solid rgba(198,255,61,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.heat__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.heat__tab {
  font: 600 .9rem var(--body); color: var(--muted);
  padding: 10px 20px; border-radius: 99px; border: 1px solid transparent;
  background: rgba(255,255,255,.05); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.heat__tab:hover { color: var(--text); }
.heat__tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.heat__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* grid scrolls sideways inside the card on narrow screens, never the page */
.heat__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
.heat__grid-wrap { min-width: 640px; }
.heat__months { display: grid; grid-template-columns: repeat(53, 1fr); margin: 0 0 8px 34px; font-size: .72rem; color: #cfcfd6; height: 1.2em; }
.heat__months span { white-space: nowrap; }
.heat__body { display: flex; gap: 8px; }
.heat__days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; width: 26px; font-size: .62rem; color: var(--muted); }
.heat__days span { display: flex; align-items: center; }
.heat__grid {
  flex: 1;
  display: grid; grid-template-columns: repeat(53, 1fr); grid-template-rows: repeat(7, auto); grid-auto-flow: column;
  gap: 4px;
}
.heat__cell {
  aspect-ratio: 1; border-radius: 3px;
  background: #1b1c1e; border: 1px solid rgba(255,255,255,.03);
  transition: transform .15s, box-shadow .15s;
}
.heat__cell.is-empty { visibility: hidden; }
.heat__cell.l1 { background: rgba(198,255,61,.18); }
.heat__cell.l2 { background: rgba(198,255,61,.36); }
.heat__cell.l3 { background: rgba(198,255,61,.62); }
.heat__cell.l4 { background: #c6ff3d; box-shadow: 0 0 10px rgba(198,255,61,.35); }
.heat__cell:hover { transform: scale(1.35); box-shadow: 0 0 0 1px #fff; position: relative; z-index: 1; }
.heat__grid.is-hidden .heat__cell:not(.is-empty) { opacity: 0; }

.heat__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: .78rem; color: #cfcfd6; }
.heat__note { color: var(--muted); }
.heat__note::before { content: "ⓘ "; color: var(--accent); }
.heat__legend { display: inline-flex; align-items: center; gap: 5px; }
.heat__legend i { width: 14px; height: 14px; border-radius: 3px; background: #1b1c1e; display: inline-block; }
.heat__legend .l1 { background: rgba(198,255,61,.18); }
.heat__legend .l2 { background: rgba(198,255,61,.36); }
.heat__legend .l3 { background: rgba(198,255,61,.62); }
.heat__legend .l4 { background: #c6ff3d; }

.heat__tip {
  position: absolute; z-index: 3; pointer-events: none;
  padding: 7px 11px; border-radius: 8px; font-size: .72rem; white-space: nowrap;
  background: #f4f4f0; color: #0a0a0c; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  opacity: 0; transform: translate(-50%, -120%); transition: opacity .12s;
}
.heat__tip.is-on { opacity: 1; }

.heat__kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.heat__kinds li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 2px; }
.heat__kinds b { font-family: var(--display); font-weight: 500; }
.heat__kinds span { color: var(--muted); font-size: .85rem; }
@media (max-width: 1279px) { .heat__kinds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .heat__lead { margin-top: -16px; } }
