/* Research guides (doc section 17.3). Article typography comes from content.css (.prose, .content-toc). */
.breadcrumb { padding-top: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; color: var(--muted-foreground); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a:hover { color: var(--primary); }

.guides-lead { max-width: 44rem; font-size: 1.0625rem; line-height: 1.7; }
.guides-section { padding-bottom: 4rem; }
.guides-heading { margin-bottom: 1.25rem; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--primary); }

.guides-categories { display: grid; gap: 1rem; padding-bottom: 3.5rem; }
.guide-category { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1.35rem; background: var(--card); transition: border-color .15s, transform .2s var(--ease-rise); }
.guide-category:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-category b { font-size: 1.0625rem; }
.guide-category .muted { font-size: .875rem; line-height: 1.6; }

.guide-grid { display: grid; gap: 1rem; }
.guide-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1.35rem; background: var(--card); }
.guide-card h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.guide-card h3 a:hover { color: var(--primary); }
.guide-card .muted { font-size: .9375rem; line-height: 1.6; }
.guide-meta { display: inline-flex; align-items: center; gap: .375rem; margin-top: auto; font-family: var(--font-mono); font-size: .75rem; color: var(--muted-foreground); }
.guide-meta svg { width: .875rem; height: .875rem; }

.guide-list { display: flex; flex-direction: column; }
.guide-list li { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.guide-list a:hover { color: var(--primary); }
.guide-list p { font-size: .9375rem; line-height: 1.6; }

.guides-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 2rem; }
.guides-tabs a { display: inline-flex; height: 2.25rem; align-items: center; padding: 0 1rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); font-size: .875rem; font-weight: 500; }
.guides-tabs a:hover, .guides-tabs a[aria-current="page"] { border-color: var(--primary); color: var(--primary); }

.guide-head { padding-bottom: 1rem; }
.guide-ruo { display: flex; align-items: flex-start; gap: .625rem; max-width: 48rem; margin-bottom: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: .875rem; background: var(--secondary); font-size: .8125rem; line-height: 1.6; color: var(--muted-foreground); }
.guide-ruo svg { flex-shrink: 0; margin-top: .125rem; color: var(--primary); }
.prose table { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; font-size: .9375rem; }.prose th, .prose td { padding: .625rem .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose code { padding: .0625rem .375rem; border-radius: .375rem; background: var(--secondary); font-family: var(--font-mono); font-size: .875em; }
.prose blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--primary); color: var(--muted-foreground); }
.prose h3 { scroll-margin-top: 7rem; }

@media (min-width: 768px) {
  .guides-categories { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .guides-categories { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-products { grid-template-columns: repeat(4, 1fr); }
}

/* Cover images */
.guide-card.has-cover { padding: 0; overflow: hidden; }
.guide-card-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--secondary); }
.guide-card-body { display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.guide-card.has-cover .guide-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.guide-cover { display: block; width: 100%; max-width: 56rem; height: auto; aspect-ratio: 16 / 9; margin-top: 1.5rem; object-fit: cover; border-radius: 1.35rem; background: var(--secondary); }
