/* Guide article layout — shared by /guides/* */
.guide-page {
  min-height: 100vh;
  background: var(--color-bg, #fdf8f4);
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border, #e8ddd6);
}

.guide-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guide-back {
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text, #1a1412);
  text-decoration: none;
}

.guide-back:hover {
  color: var(--color-primary, #c94a42);
}

.guide-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.guide-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #6b5e56);
  margin-bottom: 0.75rem;
}

.guide-article__tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-primary-light, #ffe8e4);
  color: var(--color-primary, #c94a42);
  font-weight: 600;
}

.guide-article h1 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--color-text, #1a1412);
}

.guide-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text, #1a1412);
}

.guide-prose h2 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}

.guide-prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.guide-prose h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
}

.guide-prose p {
  margin: 0 0 1rem;
}

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

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

.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-prose th,
.guide-prose td {
  border: 1px solid var(--color-border, #e8ddd6);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.guide-prose th {
  background: var(--color-surface-offset, #faf6f2);
  font-weight: 600;
}

.guide-prose pre.mermaid {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e8ddd6);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.4;
}

.guide-cta-band {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-xl, 1rem);
  background: linear-gradient(135deg, #ff6f61 0%, #ffd5a1 100%);
  color: #1a120e;
}

.guide-cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.guide-cta-band p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.guide-cta-band .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #1a1412;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.guide-cta-band .btn:hover {
  opacity: 0.92;
}

.article-card__link {
  display: block;
  color: var(--color-text, #1a1412);
  text-decoration: none !important;
}

.article-card__link:hover,
.article-card__link:focus,
.article-card__link:visited {
  color: var(--color-text, #1a1412);
  text-decoration: none !important;
}

.d3-hub__guides .article-card__link h3,
.d3-hub__guides .article-card__link .tag,
.d3-hub__guides .feature-hero--guides h3 {
  text-decoration: none !important;
  color: var(--color-text, #1a1412);
}

.d3-hub__guides .article-card__link:hover h3 {
  color: var(--color-text, #1a1412);
}

.guide-hero {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  border: 1px solid var(--color-border, #e8ddd6);
  box-shadow: 0 8px 28px rgba(26, 20, 18, 0.06);
}

.guide-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  border: 1px solid var(--color-border, #e8ddd6);
  background: var(--color-surface, #fff);
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.guide-figure__cap {
  padding: 0.55rem 0.85rem;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #6b5e56);
  text-align: center;
  border-top: 1px solid var(--color-border, #e8ddd6);
}
