/* Styles for the guides (guides.html and every guide page, which @import this file).
   Shared tokens and components live in css/styles.css. */
.page-hero .eyebrow:empty { display: none; }

/* ---------- Guides index ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.guide-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: border-color .15s; }
.guide-card:hover { border-color: var(--ink); }
.guide-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.guide-card-body { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); }
.guide-card h2 { font-size: var(--t-xl); }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-card { position: relative; }
.guide-card p { color: var(--ink-2); }
.guide-card h2 a:focus-visible { outline: none; }
.guide-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.guides-more { margin-top: var(--s7); padding: var(--s6); background: var(--surface); border-radius: var(--radius); display: grid; gap: var(--s2); }
.guides-more p { color: var(--ink-2); max-width: 68ch; }

/* ---------- Guide article ---------- */
.guide-layout { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: var(--s8); align-items: start; justify-content: space-between; }
.guide-body { max-width: 68ch; min-width: 0; }
.guide-meta { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s5); }
.guide-body h2 { font-size: var(--t-xl); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.guide-body h3 { font-size: var(--t-lg); }
.guide-body h2 + *, .guide-body h3 + * { margin-top: var(--s3); }
.guide-body * + h2 { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.guide-body * + h3 { margin-top: var(--s5); }
.guide-body p, .guide-body li, .guide-body td, .guide-body dd { color: var(--ink-2); line-height: 1.65; }
.guide-body p + p, .guide-body p + ul, .guide-body ul + p, .guide-body p + ol, .guide-body .table-scroll + p { margin-top: var(--s4); }
.guide-body ul, .guide-body ol:not(.guide-picks) { padding-left: 1.2em; display: grid; gap: var(--s2); }
.guide-body li::marker { color: var(--muted); }
.guide-body strong { color: var(--ink); font-weight: 600; }

.guide-answer { padding: var(--s5); background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.guide-answer h2 { font-size: var(--t-lg); margin: 0; padding: 0; border: 0; }
.guide-answer p { color: var(--ink); }


.guide-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.guide-table th, .guide-table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { color: var(--muted); font-weight: 500; }
.guide-table tbody th { color: var(--ink); font-weight: 600; }

/* Product picks: photo, name, designer, stats */
.guide-picks { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s4); counter-reset: pick; }
.guide-picks li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s4); align-items: start; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); position: relative; }
.guide-picks.is-ranked li { counter-increment: pick; }
.guide-picks.is-ranked li::before { content: counter(pick); position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 500 var(--t-xs)/1 var(--font-mono, monospace); }
.guide-picks img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.guide-picks h3 { margin: 0; font-size: var(--t-lg); }
.guide-picks h3 a { color: var(--ink); }
.pick-meta { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.guide-picks li > div > p:not(.pick-meta) { margin-top: var(--s2); }

/* Sidebar */
.guide-aside { position: sticky; top: calc(var(--header-h) + var(--s5)); display: grid; gap: var(--s5); }
.guide-aside h2 { font: 600 var(--t-sm)/1.3 var(--font-body); color: var(--muted); margin-bottom: var(--s2); }
.guide-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.guide-aside a { display: block; padding: 6px 0 6px var(--s4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); }
.guide-aside a:hover { color: var(--ink); border-left-color: var(--ink); }

.guide-cta { margin-top: var(--s7); padding: var(--s6); background: var(--surface); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.guide-cta > div { display: grid; gap: var(--s1); }
.guide-cta h2 { margin: 0; padding: 0; border: 0; font-size: var(--t-xl); }
.guide-cta .btns { display: flex; flex-wrap: wrap; gap: var(--s3); }

@media (max-width: 1023px) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .guide-body { max-width: none; }
  .guide-aside { position: static; order: -1; }
  .guide-aside .aside-shop { display: none; }
  .guide-aside ul { display: flex; flex-wrap: wrap; gap: var(--s2); border-left: 0; }
  .guide-aside a { margin: 0; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); }
}
@media (max-width: 620px) {
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .guide-picks li { grid-template-columns: 80px minmax(0, 1fr); gap: var(--s3); }
  .guide-picks img { width: 80px; height: 80px; }
  .guide-cta { padding: var(--s5); }
  .guide-cta .btns, .guide-cta .btn { width: 100%; }
}
