/* Mat log: a journal page laid on a yoga mat */
.matlog {
  border-top: 6px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.matlog__head,
.matlog__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(64px, 1fr) minmax(5.5rem, auto) minmax(64px, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .5rem 0 .5rem .75rem;
  border-left: 2px solid var(--brand);
}
.matlog__head {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.matlog__row {
  border-bottom: 1px dashed var(--border);
}
.matlog__day {
  font-weight: 600;
  color: var(--ink);
}
.matlog__row input[type="number"] {
  min-width: 64px;
  width: 100%;
  padding: .45rem .55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.matlog__row input[type="number"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.matlog__row .check {
  white-space: nowrap;
}
.matlog .actions {
  margin-top: 1rem;
}
@media (max-width: 560px) {
  .matlog__head { display: none; }
  .matlog__row {
    grid-template-columns: 3rem minmax(64px, 1fr) minmax(64px, 1fr);
    grid-template-areas: "day yoga other" "day strength strength";
    row-gap: .4rem;
  }
  .matlog__day { grid-area: day; }
  .matlog__row input[id^="yoga-"] { grid-area: yoga; }
  .matlog__row input[id^="other-"] { grid-area: other; }
  .matlog__row .check { grid-area: strength; }
  .matlog__row input[id^="yoga-"]::placeholder,
  .matlog__row input[id^="other-"]::placeholder { color: var(--muted); }
}
.result-value.is-met {
  color: var(--brand);
}
/* Affiliate box links: darker green for AA contrast on the tinted box */
.aff-box a,
.aff-box a:visited {
  color: #3f5726;
}
/* Gear: space before the shop call to action */
.gear-grid + a,
.gear-grid + p,
.gear-grid + .btn {
  margin-top: 24px;
}
/* Gear cards: pattern tile and shop button */
.gear-grid .card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.gear-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  border-radius: var(--radius);
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(94, 125, 58, .16) 10px 12px),
    color-mix(in srgb, var(--brand) 14%, var(--surface));
}
.gear-btn {
  margin-top: auto;
  align-self: flex-start;
}
.gear-grid .card p {
  margin: 0 0 .5rem;
}
/* Low-intensity styles: keep rows compact */
lg-cards[variant="rows"] {
  display: block;
  max-width: 900px;
  margin-inline: auto;
}