/* SkinLedger shell styles on top of Pico.css. */

:root {
  --sl-accent: #1f6f5c;
}

body > header nav ul li a {
  text-decoration: none;
}

body > footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1.5rem;
  opacity: 0.8;
}

main.container {
  padding-block: 1.5rem;
}

/* -- P08 timeline ---------------------------------------------------------- */

.timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.timeline-card {
  margin: 0;
  padding: 0.9rem;
  min-width: 0;
}

.timeline-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.timeline-card h2 {
  margin: 0;
  font-size: 0.95rem;
}

.timeline-chart-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  min-width: 0;
}

.timeline-chart-wrap canvas {
  max-width: 100%;
}

.timeline-legend {
  font-size: 0.9rem;
  opacity: 0.85;
}

.timeline-banner {
  border-left: 4px solid var(--sl-accent);
  padding: 0.75rem 1rem;
}

.timeline-banner p,
.timeline-banner a {
  margin: 0;
}

.timeline-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-block: 0.4rem;
}

.timeline-status {
  color: #8a4b08;
}

.timeline-links {
  margin-top: 1.5rem;
}

.sl-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 111, 92, 0.12);
  color: #1f6f5c;
  font-size: 0.78rem;
}

.sl-chip-unstable {
  background: #e8eaed;
  color: #3c4043;
}

.sl-chip small {
  opacity: 0.75;
}

/* -- P09 product log ------------------------------------------------------- */

.product-table-wrap {
  overflow-x: auto;
}

.product-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .product-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-aspect {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin-block: 0.15rem;
}

.product-aspect input {
  margin: 0;
}

.product-unstable {
  color: #5f6368;
}

.product-notice {
  color: #1f6f5c;
}

.product-error {
  color: #8a1c1c;
}

/* -- P11 verdict screen and home cards ------------------------------------- */

.verdict-card {
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem;
  border-left: 6px solid #5f6368;
}

.verdict-header h1 {
  margin-bottom: 0.25rem;
}

.verdict-outcome {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.verdict-action {
  font-size: 1.05rem;
}

.verdict-keep {
  border-left-color: #1f6f5c;
  background: #eef7f2;
}

.verdict-no_change {
  border-left-color: #b26a00;
  background: #fff6e5;
}

.verdict-worse {
  border-left-color: #b3261e;
  background: #fdeeee;
}

.verdict-too_early,
.verdict-no_band,
.verdict-need_checkin {
  border-left-color: #5f6368;
  background: #f1f3f4;
}

.verdict-banner,
.demo-banner {
  border-left: 4px solid #b26a00;
  background: #fff6e5;
  padding: 0.75rem 1rem;
  margin-inline: auto;
  max-width: 46rem;
}

.verdict-table-wrap {
  overflow-x: auto;
}

.verdict-table-wrap table {
  font-size: 0.9rem;
}

.verdict-unstable {
  font-size: 0.9rem;
}

.verdict-warning {
  color: #7a4b00;
}

.verdict-changes {
  padding-left: 1.1rem;
}

.verdict-arrow {
  display: inline-block;
  min-width: 1.1em;
  font-weight: 700;
}

.verdict-masks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.verdict-masks figure {
  margin: 0;
  padding: 0.5rem;
  background: #f1f3f4;
  border-radius: 0.5rem;
  text-align: center;
}

.verdict-masks img {
  max-width: 100%;
  height: auto;
  background: #e8eaed;
}

.verdict-masks figcaption {
  font-size: 0.8rem;
  opacity: 0.8;
}

.verdict-checkin {
  margin-top: 1.25rem;
}

.verdict-disclaimer {
  margin-top: 0.75rem;
  opacity: 0.85;
}

.home-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-product-card {
  margin: 0;
  padding: 0.9rem;
  border-left: 4px solid #5f6368;
}

.home-product-card.home-verdict-keep {
  border-left-color: #1f6f5c;
}

.home-product-card.home-verdict-no_change {
  border-left-color: #b26a00;
}

.home-product-card.home-verdict-worse {
  border-left-color: #b3261e;
}

.home-product-card h3 {
  margin-bottom: 0.35rem;
}

.home-product-outcome {
  margin: 0;
  font-weight: 700;
}

/* -- P12 routine and shopping list ----------------------------------------- */

.routine-card {
  margin: 0 0 1rem;
  padding: 0.9rem;
}

.routine-table-wrap {
  overflow-x: auto;
}

.routine-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .routine-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.routine-week th,
.routine-week td {
  font-size: 0.85rem;
}

.routine-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

.routine-data {
  opacity: 0.85;
}

.routine-keep {
  color: #1f6f5c;
}

.routine-shopping {
  list-style: none;
  padding-left: 0;
}

.routine-shopping li {
  margin-block: 0.3rem;
}

.routine-acne-disclaimer {
  border-left: 4px solid #b26a00;
  background: #fff6e5;
  padding: 0.75rem 1rem;
}

.routine-footer {
  margin-top: 1rem;
  opacity: 0.85;
}
