/* ==========================================================================
   Focusable components + the D-Pad focus indicator
   ========================================================================== */
.focusable {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: .2rem solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  position: relative;
  transform: scale(1);
  transition: transform .12s ease-out, box-shadow .12s ease-out, border-color .12s ease-out, background-color .12s;
}

.btn {
  padding: .5rem 1.25rem;
  border-radius: .75rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

/* Generic list row */
.row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.5rem;
  padding: .9rem 1.25rem;
  border-radius: 1rem;
}

/* Calendar day chips ---------------------------------------------------- */
.week {
  flex: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .6rem;
  padding: .6rem .4rem .4rem;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .65rem 0 .6rem;
  border-radius: 1rem;
  text-align: center;
}
.chip__dow { font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.chip__date { font-size: 1.9rem; font-weight: 700; }
.chip__dots { display: flex; gap: .25rem; height: .5rem; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.chip--today .chip__dow { color: var(--accent); }
.chip[aria-pressed="true"] { background: #0b4b66; border-color: #1d84ac; }

/* Calendar events -------------------------------------------------------- */
.event { border-left: .4rem solid var(--c, var(--accent)); }
.event__time { flex: none; width: 7.5rem; font-weight: 700; color: var(--muted); font-size: 1.3rem; }
.event__title { flex: 1; min-width: 0; font-size: 1.5rem; font-weight: 600; }
.event__chev {
  flex: none;
  width: .8rem; height: .8rem;
  border-right: .2rem solid var(--muted);
  border-bottom: .2rem solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s;
}
.event[aria-expanded="true"] .event__chev { transform: rotate(-135deg); }
.details {
  margin: .6rem .5rem 0 1rem;
  padding: .9rem 1.25rem;
  background: #121217;
  border-left: .3rem solid var(--c, var(--accent));
  border-radius: .75rem;
  font-size: 1.25rem;
  color: var(--muted);
}
.details p { margin: .2rem 0; }
.details strong { color: var(--text); }

/* Checklist rows (tasks + shopping) -------------------------------------- */
.check {
  flex: none;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: .2rem solid var(--muted);
  border-radius: .5rem;
}
.check-row[aria-checked="true"] .check { background: var(--ok); border-color: var(--ok); }
.check-row[aria-checked="true"] .check::after {
  content: "";
  width: .55rem; height: 1rem;
  margin-bottom: .2rem;
  border-right: .22rem solid #0b0b0d;
  border-bottom: .22rem solid #0b0b0d;
  transform: rotate(45deg);
}
.label { flex: 1; min-width: 0; font-weight: 600; }
.is-done .label { color: var(--muted); text-decoration: line-through; }
.tag {
  flex: none;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: #0b0b0d;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   FOCUS INDICATOR — keep last so it wins over component state styles.
   Bright cyan border + glow + scale(1.05), visible from 10+ feet.
   -------------------------------------------------------------------------- */
body .focusable:focus {
  border-color: var(--accent);
  background-color: #2a3a45;
  box-shadow: 0 0 0 .2rem rgba(0, 168, 232, .35), 0 0 1.1rem .2rem rgba(0, 168, 232, .75);
  transform: scale(1.05);
  z-index: 2;
}
