/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.chore-preview {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  color: #334155;
}

.chore-preview > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.chore-preview > header strong {
  color: #0f172a;
  font-size: clamp(0.72rem, 1.5vw, 1.05rem);
}

.chore-preview > header span {
  color: #64748b;
  font-size: clamp(0.42rem, 0.85vw, 0.7rem);
}

.chore-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(5rem, 1.9fr) repeat(7, minmax(1.45rem, 1fr));
  grid-auto-rows: minmax(1.15rem, 1fr);
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.chore-grid > * {
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.chore-grid b,
.chore-grid em {
  padding: 0.22rem;
  overflow: hidden;
  font-size: clamp(0.34rem, 0.72vw, 0.62rem);
  font-style: normal;
  text-overflow: ellipsis;
}

.chore-grid strong {
  position: relative;
}

.chore-grid strong::after {
  width: 75%;
  border-bottom: 1px solid currentColor;
  content: "";
  opacity: 0.55;
}

.chore-grid i::after {
  display: block;
  width: clamp(0.32rem, 0.75vw, 0.62rem);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  content: "";
}

.chore-marker-circles .chore-grid i::after {
  border-radius: 50%;
}

.chore-marker-stars .chore-grid i::after {
  border: 0;
  content: "☆";
  font-size: clamp(0.5rem, 1.15vw, 0.92rem);
  line-height: 1;
}

.chore-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.6rem;
}

.chore-footer span {
  min-height: clamp(1.8rem, 5vw, 3.4rem);
  padding: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 0.35rem;
  font-size: clamp(0.38rem, 0.75vw, 0.64rem);
}
