/* Phone legibility, retailer cards, journal chapters, the launch checklist, small touch targets.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
/* Phone legibility: no label below 8px; the decorative caption is dropped instead of shrunk. */
@media (max-width: 760px) {
  .brand-caption {
    display: none;
  }
  .health-stat .eyebrow,
  .report-stat .eyebrow {
    font-size: 8px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .career-heading {
    min-width: 0;
    max-width: 124px;
  }
  .career-heading .eyebrow {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  .panel-header .eyebrow,
  .location-label {
    font-size: 8.5px;
  }
  .speed-buttons button,
  .time-controls .eyebrow {
    font-size: 9px;
  }
}
/* Retailer cards */
.retailer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 6px;
}
.retailer-card {
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.retailer-card header {
  display: flex;
  gap: 8px;
  align-items: center;
}
.retailer-card header div {
  flex: 1;
  min-width: 0;
}
.retailer-card strong {
  display: block;
  font-size: 12px;
  color: #2f4a39;
}
.retailer-card small {
  display: block;
  font-size: 9px;
  color: #626e60;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.retailer-card .grade-chip {
  width: 28px;
  height: 28px;
  font-size: 14px;
  flex: none;
}
.grade-chip.pending {
  background: #dfe4d6;
  color: #626e60;
}
.retailer-card.graded-A {
  border-color: #9cc7a8;
  background: #eef6ee;
}
.retailer-card.graded-D,
.retailer-card.graded-F {
  border-color: #e8c2b3;
  background: #fbf1ec;
}
.retailer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.retailer-stats span {
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #626e60;
}
.retailer-stats b {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  color: #365c46;
  text-transform: none;
  margin-top: 1px;
}
.trust-bar {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: #dfe6d4;
  overflow: hidden;
}
.trust-bar b {
  display: block;
  height: 100%;
  background: #5f8b56;
}
.retailer-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: #5f6f60;
}
/* Journal chapters: one line per six-shift review period */
.chapter-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef2e6;
}
.chapter-line .grade-chip {
  width: 32px;
  height: 32px;
  font-size: 15px;
  flex: none;
}
.chapter-line .grade-chip .icon {
  width: 14px;
  height: 14px;
}
.chapter-line .eyebrow {
  display: block;
  font-size: 8px;
  color: #626e60;
  margin-bottom: 3px;
}
.chapter-line p {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: #5f6f60;
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.chapter-line p .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}
.chapter-line p.good .icon {
  color: #c1924a;
}
.chapter-line p.bad .icon {
  color: #c66b4b;
}
.listing-tag {
  display: inline-block;
  margin-top: 3px;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #2e7650;
  background: #dff0e2;
  border-radius: 6px;
  padding: 2px 6px;
}
/* Earbuds launch checklist */
.launch-steps {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.launch-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
}
.launch-steps li.done {
  background: #eef6ee;
  border-color: #cfe3d2;
}
.launch-steps li > div {
  flex: 1;
  min-width: 0;
}
.launch-steps b {
  display: block;
  font-size: 11px;
  color: #2f4a39;
}
.launch-steps small {
  display: block;
  font-size: 9.5px;
  line-height: 1.4;
  color: #616f62;
  margin-top: 2px;
}
.step-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd6c2;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.launch-steps li.done .step-mark {
  background: #2e7650;
  border-color: #2e7650;
  color: #fff;
}
.step-mark .icon {
  width: 11px;
  height: 11px;
}
.launch-steps .text-button {
  flex: none;
  font-size: 10px;
  white-space: nowrap;
}
.partner-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.partner-line span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 12px;
  background: #e6f0e2;
  color: #2f5f45;
}
.partner-line span.bad {
  background: #fbf1ec;
  color: #a4563f;
}
.partner-line .icon {
  width: 11px;
  height: 11px;
}

.account-legal {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted, #6b7a72);
}
.account-legal a {
  color: inherit;
}
/* The reCAPTCHA notice is shown in the account dialog instead of the floating badge. */
.grecaptcha-badge {
  visibility: hidden;
}

/* Small links and toggles keep a 24px target (WCAG 2.2, 2.5.8). */
.lesson-ex,
.why > summary {
  min-height: 24px;
}
.why > summary {
  display: flex;
  align-items: center;
}
