/* InvestFellow guides. Loaded after site.css. */

.crumbs {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--muted-foreground);
}

.crumbs a {
  color: var(--muted-foreground);
}

.crumbs a:hover {
  color: var(--primary);
}

.byline {
  margin: 0.9rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.guide .prose h2 {
  margin-top: 2.6rem;
}

.guide .prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 1.6rem 0 0.5rem;
  color: var(--foreground);
}

.guide .prose p,
.guide .prose li {
  max-width: 42rem;
}

.guide .prose ul,
.guide .prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.guide .prose li {
  margin-bottom: 0.5rem;
}

.guide-figure {
  margin: 1.25rem 0 1.5rem;
  max-width: 42rem;
}

.guide-figure.is-wide {
  max-width: 100%;
}

.guide-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.guide-figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.45;
}

.table-wrap caption {
  caption-side: bottom;
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table-wrap thead th {
  background: var(--card);
  color: var(--foreground);
}

.table-wrap tbody th {
  color: var(--foreground);
  font-weight: 600;
}

.table-wrap tr:last-child th,
.table-wrap tr:last-child td {
  border-bottom: 0;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
}

.guide-list .card h2 {
  margin: 0;
  font-size: 1.8rem;
}

.related {
  margin-top: 2.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.sources li {
  overflow-wrap: anywhere;
}

/* Articles use the full container width for tables and screenshots. Text stays at a readable measure. */
.guide .container.prose {
  max-width: var(--max);
}

.guide .guide-figure {
  max-width: 100%;
}

.site-header .crumbs {
  border-bottom: 0;
}

.guide .prose .guide-list {
  padding-left: 0;
}

.guide .prose .guide-list li {
  margin-bottom: 0;
  max-width: none;
}
