/* Ring Style Finder: guide pages (hub + articles). Loads after base.css. */

/* ── page hero (hub) ── */
.g-hero { padding: clamp(28px, 4vw, 52px) 0 8px; }
.g-hero h1 {
  margin: 0; max-width: 16ch; font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 5vw, 60px); line-height: 1.0; letter-spacing: -0.025em; text-wrap: balance;
}
.g-hero .lead { margin: 16px 0 0; max-width: 60ch; color: var(--ink-soft); font-size: 18.5px; font-weight: 500; line-height: 1.5; }

/* ── guide cards (hub grid) ── */
.guide-cards { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(18, 20, 30, 0.05); text-decoration: none; color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(18, 20, 30, 0.1); }
.guide-card-photo { position: relative; height: 190px; overflow: hidden; }
.guide-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card-photo .caps { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.9); color: var(--accent-strong); font-size: 9.5px; letter-spacing: 0.14em; box-shadow: 0 6px 14px rgba(18, 20, 30, 0.12); }
.guide-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.guide-card-body h2, .guide-card-body h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.12; letter-spacing: -0.01em; }
.guide-card-body p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.guide-card-more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--divider); color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.guide-card-more::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); }

/* ── CTA strip ── */
.cta-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-strip h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.06; letter-spacing: -0.015em; max-width: 20ch; text-wrap: balance; }
.cta-strip p { margin: 8px 0 0; max-width: 46ch; color: var(--ink-soft); font-size: 16px; }
.cta-strip .store-badge { width: 184px; height: auto; display: block; }

/* ── article layout ── */
.article-shell { padding-top: 22px; }
.article-back { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.article-back--bottom { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--divider); width: 100%; }
.article-head { margin-top: 4px; }
.article-head h1 { margin: 0; max-width: 18ch; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.022em; text-wrap: balance; }
.article-head .lead { margin: 16px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: 19px; font-weight: 500; line-height: 1.5; }

.article-figure { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(19, 19, 22, 0.1); }
.article-figure img { width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; object-position: 50% 42%; display: block; }

.article-grid { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }

.article-body { max-width: 68ch; }
.article-body section + section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--divider); }
.article-body h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.12; letter-spacing: -0.015em; }
.article-body h3 { margin: 20px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.article-body p { margin: 12px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.62; }
.article-body ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 22px; margin-top: 10px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.article-body li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.before-after { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-cell { display: grid; justify-items: center; gap: 10px; margin: 0; }
.ba-cell .frame { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(19, 19, 22, 0.1); box-shadow: 0 12px 28px rgba(18, 20, 30, 0.1); background: #f2f2f5; }
.ba-cell .frame img { width: 100%; aspect-ratio: 719 / 1120; object-fit: cover; display: block; }

.inline-figure { margin: 18px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(19, 19, 22, 0.1); position: relative; }
.inline-figure img { width: 100%; height: clamp(220px, 28vw, 320px); object-fit: cover; display: block; }
.inline-figure figcaption { position: absolute; top: 12px; left: 12px; }

.faq h3 { margin-top: 18px; }
.faq p { margin-top: 8px; font-size: 16px; }

/* ── article aside ── */
.article-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }
.aside-card { padding: 22px; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 26px rgba(18, 20, 30, 0.06); }
.aside-card h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; }
.aside-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.aside-card .store-badge { margin-top: 16px; width: 168px; height: auto; display: block; }
.related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--divider); color: var(--accent-strong); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.related a:first-of-type { border-top: 1px solid var(--divider); }

@media (max-width: 900px) {
  .guide-cards { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 620px) {
  .before-after { grid-template-columns: 1fr; }
  .cta-strip .store-badge { width: 168px; }
}
