/* POPHIES application detail — page-specific rules only.
   Source: 网站规划.md §8 (lines 440–479), §13 (lines 766–793), §18 (lines
   926–939). Shared classes and tokens live in assets/css/tokens.css and
   style.css. */

/* ---------- Password-protected record ---------- */

.app-locked { max-width: var(--read); }

/* ---------- Pain points and technical tips ---------- */

.checklist#app-pains,
.checklist#app-tips { max-width: var(--read); margin-top: 2.5rem; }

/* ---------- Space, power and light ---------- */

.app-conditions { margin-top: 2.5rem; }

.app-condition {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-condition .card__title { margin: 0 0 0.75rem; }

.app-condition .card__text { margin: 0; }

.app-condition .card__text p { margin: 0 0 0.75rem; }

.app-condition .card__text p:last-child { margin-bottom: 0; }

/* ---------- Selection guidance ---------- */

.app-choose { margin-top: 2.5rem; max-width: var(--read); }

.app-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brass);
}

.app-choose__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  margin: 2rem 0 0;
}

/* The label takes the full row above the tags. */
.app-choose__types .app-label { flex: 0 0 100%; margin-bottom: 0.25rem; }

.app-choose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
}

/* ---------- Records: fittings and projects ---------- */

.app-block__title {
  margin: 3rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: var(--track-tight);
}

.app-block__title:first-child { margin-top: 0; }

.app-records { margin-top: 0; }

.app-projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-project__title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
}

.app-project__text {
  margin: 0.35rem 0 0;
  color: var(--graphite);
}

/* ---------- Gallery ---------- */

.app-gallery { margin-top: 2.5rem; }

/* ---------- Related articles ---------- */

.app-links {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--read);
}

.app-links > li { padding: 0.7rem 0; border-top: 1px solid var(--stone); }

.app-links > li:last-child { border-bottom: 1px solid var(--stone); }

.app-links a { color: var(--ink); }

/* ---------- The record's own closing call to action ---------- */

.app-cta__label {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brass);
}

.app-cta__actions { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 660px) {
  .app-conditions,
  .app-choose,
  .app-gallery { margin-top: 2rem; }
  .app-block__title { margin: 2.25rem 0 1.25rem; }
}
