/* ════════════════════════════════════════════════════════════════════════
   cv.acupofmoka.com — Site-wide supplements
   - no-img placeholder
   - detail meta / method / step styles
   - category quicklinks
   - rank list
   - cross-page refinements (desktop stage, spacing)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Tagline in header (replaces news date strip on home/list pages) ── */
.hd-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3px;
  color: var(--mid);
}

/* ── Placeholder block when no image is available ── */
.no-img {
  background: linear-gradient(135deg, var(--border) 0%, #d8d2c5 100%);
  width: 100%;
  position: relative;
}
.no-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.4) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.4) 25%, transparent 25%);
  background-size: 18px 18px;
  opacity: .35;
}
.no-img.strip-img,
.no-img.grid-img,
.no-img.lcard-thumb,
.no-img.art-thumb,
.no-img.rel-thumb {
  display: block;
}
.no-img.hero-img,
.no-img.art-feat-img,
.no-img.det-img {
  aspect-ratio: 16 / 9;
}

/* ── Detail page: step / author / updated stats ── */
.det-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}
.det-stat {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mid);
}
.det-stat b { color: var(--dark); }

/* ── Detail page: method heading (Method N badge for multi-method articles) ── */
.det-method {
  background: var(--white);
  padding: 18px 16px 4px;
}
.det-method-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.det-method-ttl {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--dark);
}

/* ── Detail page: single step (numbered badge + text + image) ── */
.det-step {
  display: flex;
  gap: 12px;
  background: var(--white);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.det-step-num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.det-step-body { flex: 1; min-width: 0; }
.det-step-text {
  font-size: 15px;
  line-height: 1.68;
  color: #2b3340;
}
.det-step-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  margin-top: 10px;
}
.det-step + .det-step { border-top: 1px solid rgba(232,80,60,.15); }
.det-step:last-child { border-bottom: none; }

/* ── Home: category quicklinks strip ── */
.cat-quicklinks {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  background: var(--white);
  padding: 12px 16px 16px;
  margin-bottom: 12px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.cat-quicklinks::-webkit-scrollbar { display: none; }
.cat-quicklink {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 40px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-quicklink:active { transform: scale(.97); }
.cat-quicklink:hover { box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* ── Home: spotlight wrap (reuses art-card.featured) ── */
.spotlight-wrap {
  background: var(--white);
}

/* ── Home: rank list (text-only numbered list) ── */
.rank-list {
  background: var(--white);
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  transition: background .12s ease;
}
.rank-item:nth-child(odd) { background: rgba(251,246,238,.6); }
.rank-item:active { background: var(--light); }
.rank-item:last-child { border-bottom: none; }
.rank-num {
  flex: 0 0 36px;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--brand);
  border: none;
  border-right: 2px solid var(--brand);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 10px;
}
.rank-item:nth-child(-n+3) .rank-num {
  background: none;
  color: var(--brand);
  border-color: var(--brand);
  font-size: 30px;
}
.rank-ttl {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.36;
}
.rank-item:active .rank-ttl,
.rank-item:hover .rank-ttl { color: var(--brand); }

/* ════════════════════════════════════════════════════════════════════════
   Cross-page refinements — card surfaces, hover/press feedback, desktop
   ════════════════════════════════════════════════════════════════════════ */

/* Each section becomes a soft elevated card on desktop */
.s-hero,
.s-strip,
.s-grid,
.s-list,
.cat-quicklinks,
.cat-banner {
  margin: 0 12px 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.det-fig { overflow: hidden; }

/* Unified thumbnail corners */
.lcard-thumb,
.art-thumb {
  border-radius: var(--r);
}

/* Card tap / press feedback */
.grid-card,
.lcard,
.art-card,
.rank-item,
.rel-item,
.strip-card,
.cat-quicklink,
.hero-link {
  transition: transform .12s ease, opacity .12s ease;
}
.grid-card:active,
.lcard:active,
.art-card:active,
.rank-item:active,
.rel-item:active,
.strip-card:active,
.cat-quicklink:active,
.hero-link:active {
  transform: scale(.98);
  opacity: .92;
}

/* Nav capsule hover (desktop) */
.hd-nav a:hover:not(.active) { background: var(--border); color: var(--brand); }
.sec-more:hover { text-decoration: underline; }

/* Category count emphasis */
.cat-count b,
.cat-count strong { color: var(--brand); }

/* ═══ Desktop stage (≥720px): present the 480px column on a wider canvas ═══ */
@media (min-width: 720px) {
  body {
    box-shadow: var(--shadow-lg);
    background: var(--light);
  }
  .s-hero,
  .s-strip,
  .s-grid,
  .s-list,
  .cat-quicklinks,
  .cat-banner {
    box-shadow: var(--shadow-md);
  }
  /* Bring out a softer separation from the surrounding desktop background */
  header { box-shadow: var(--shadow-md); }
  footer { box-shadow: 0 -4px 12px rgba(43,51,64,.06); }
}