/* Guides index and guide pages. Loaded only on /guides and /guides/{slug}. */

/* Index */
.gx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 22px; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-chips[hidden] { display: none; }
.gx-chip { font: inherit; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.gx-chip:hover { border-color: var(--text); }
.gx-chip[aria-pressed="true"] { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.gx-count { margin: 0; }
.gx-grid { list-style: none; padding: 0; margin: 0 0 72px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.gx-grid > li[hidden] { display: none; }
.gx-card { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.gx-card:hover { border-color: var(--text); transform: translateY(-2px); }
.gx-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.gx-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gx-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.gx-title { font-family: var(--head); font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.02em; }
.gx-sum { color: var(--muted); font-size: 0.95rem; }
.gx-meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 0.72rem; color: var(--accent-text); letter-spacing: 0.04em; }

/* Guide page: hero */
.guide .guide-head { max-width: 900px; margin-bottom: 28px; }
.gh-grid { display: grid; gap: 18px; }
.gh-text { display: flex; flex-direction: column; min-width: 0; }
.gh-text .kicker-pill { align-self: flex-start; }
.gh-text h1 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.guide .answer { margin: 0; padding: 18px 20px; border-radius: 18px; }
.guide .answer .kicker { margin-bottom: 8px; }
.guide .answer-text { font-size: 1.1rem; line-height: 1.5; }
.gh-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4 / 3; }
.gh-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .guide .guide-head { margin-bottom: 28px; }
  .gh-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: stretch; }
  .gh-text .answer { margin-top: auto; }
  .gh-img { aspect-ratio: auto; position: relative; min-height: 340px; }
  .gh-img img { position: absolute; inset: 0; }
}

/* What you need */
.need { margin: 36px 0 48px; }
.need-h { font-size: 1.4rem; margin-bottom: 14px; }
.need-row { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.need-item { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 250px; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; scroll-snap-align: start; }
.need-item:hover { border-color: var(--text); }
.need-art { grid-row: 1 / 3; display: block; width: 56px; height: 70px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.need-art img, .need-art svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.need-art img { padding: 3px; box-sizing: border-box; }
.need-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; align-self: end; }
.need-price { font-size: 0.82rem; color: var(--muted); align-self: start; }
.need-price .price-now { font-weight: 500; color: var(--text); }

/* Step cards */
.step-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: none; }
.step-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-ink); font-family: var(--mono); font-size: 0.78rem; }
.sc-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.sc-head { margin: 0; font-family: var(--head); font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.01em; }
.sc-det summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.sc-det summary::-webkit-details-marker { display: none; }
.sc-why { align-self: flex-start; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); border-bottom: 1px solid currentColor; }
.sc-why::after { content: " +"; }
.sc-det[open] .sc-why::after { content: " \2212"; }
.sc-text { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Numbers: big callouts */
.guide .stat-card { min-height: 0; }
.guide .stat-value { font-size: clamp(2.6rem, 7vw, 3.6rem); color: var(--accent-text); }

/* For your hair */
.bt-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.bt-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.bt-card .bt-who { font-family: var(--head); font-size: 1.1rem; margin: 0 0 6px; }
.bt-card .bt-text { font-size: 0.93rem; }

/* Myths as collapsible */
.myth details > summary { cursor: pointer; list-style: none; display: block; }
.myth details > summary::-webkit-details-marker { display: none; }
.myth details > summary::after { content: " +"; color: var(--accent-text); font-family: var(--mono); }
.myth details[open] > summary::after { content: " \2212"; }
.myth-q { color: var(--text); font-weight: 500; }
.myth details[open] > summary { margin-bottom: 10px; }
.guide .fig-set, .guide .fig-grid { max-width: 100%; }
@media (max-width: 480px) {
  .answer { padding: 20px; }
  .need-item { width: 230px; }
}

/* Cards always stacked in one column */
.guide .card-grid { grid-template-columns: 1fr; gap: 10px; }
.step-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; grid-template-areas: "n body icon"; align-items: center; gap: 14px; padding: 14px 16px; }
.step-card .sc-top { display: contents; }
.step-card .sc-n { grid-area: n; }
.step-card .sc-icon { grid-area: icon; width: 44px; height: 44px; border-radius: 13px; }
.step-card > .sc-head, .step-card > .sc-det { grid-area: body; }
