/* Guide pages + index (content engine, Part B). Layered on shared.css. */
.guide-header { border-bottom: 1px solid #e5e7eb; background: #fff; }
.guide-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.guide-header__brand { font-weight: 700; color: var(--brand-color); text-decoration: none; }
.guide-header__guides { color: #374151; text-decoration: none; font-size: .92rem; }
.breadcrumb { background: #f9fafb; font-size: .82rem; }
.breadcrumb .container { padding: 8px 20px; color: #6b7280; }
.breadcrumb a { color: var(--brand-color); text-decoration: none; }
.breadcrumb span[aria-current] { color: #374151; }

.guide-hero { position: relative; background: #111; color: #fff; }
.guide-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.guide-hero__inner { position: relative; padding: 48px 20px; max-width: 840px; }
.guide-hero__cluster { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--brand-accent); margin: 0 0 8px; }
.guide-hero h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; }
.guide-hero__intro { margin: 0; color: #e5e7eb; max-width: 60ch; }

.ad-slot[data-status="reserved"] { min-height: 90px; }

.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 32px 20px; align-items: start; }
.guide-toc { position: sticky; top: 16px; font-size: .88rem; }
.guide-toc__title { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; color: #6b7280; margin: 0 0 8px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e5e7eb; }
.guide-toc li { margin: 0; }
.guide-toc a { display: block; padding: 5px 12px; color: #374151; text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; }
.guide-toc a:hover { color: var(--brand-color); border-left-color: var(--brand-color); }

.guide-body { max-width: 72ch; font-size: 1.04rem; line-height: 1.7; color: #1f2937; }
.guide-body h2 { margin: 2em 0 .6em; font-size: 1.5rem; scroll-margin-top: 16px; }
.guide-body h3 { margin: 1.4em 0 .4em; font-size: 1.2rem; }
.guide-body p { margin: 0 0 1.1em; }
.guide-body ul, .guide-body ol { margin: 0 0 1.1em 1.2em; }
.guide-body li { margin: .3em 0; }
.guide-body svg { display: block; max-width: 100%; height: auto; margin: 1.4em auto; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.guide-body th, .guide-body td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.guide-body th { background: #f9fafb; }
.guide-body a { color: var(--brand-color); }

.callout { border-radius: 8px; padding: 14px 18px; margin: 1.4em 0; border-left: 4px solid; }
.callout__label { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; font-weight: 700; margin: 0 0 6px; }
.callout--tip { background: #f0fdf4; border-color: #16a34a; }
.callout--warning { background: #fffbeb; border-color: #d97706; }
.callout--key-takeaway { background: #eff6ff; border-color: #2563eb; }
.callout--danger { background: #fef2f2; border-color: #dc2626; }
.callout--note { background: #f8fafc; border-color: #64748b; }
.callout--info { background: #eff6ff; border-color: #0ea5e9; }
.callout p:last-child { margin-bottom: 0; }

.guide-faq { margin-top: 2.4em; }
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 4px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; margin-right: 10px; color: var(--brand-color); font-weight: 700; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item__a { padding: 0 0 12px; color: #374151; }

.guide-signup { margin-top: 2.4em; background: #f9fafb; border-radius: 10px; padding: 22px; }
.guide-signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-signup input { flex: 1 1 220px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; }

.guide-related { background: #f9fafb; padding: 32px 0; margin-top: 32px; }
.related-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; }
.related-card a { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; text-decoration: none; color: #1f2937; font-weight: 600; }
.guide-pager { display: flex; justify-content: space-between; gap: 16px; padding: 24px 20px; }
.guide-pager a { color: var(--brand-color); text-decoration: none; max-width: 45%; }
.guide-pager__next { margin-left: auto; text-align: right; }

/* index */
.guides-index__main { padding: 32px 20px; max-width: 820px; }
.guides-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.guides-list__item a { display: block; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; text-decoration: none; color: #1f2937; }
.guides-list__item a:hover { border-color: var(--brand-color); }
.guides-list__cluster { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-accent); }
.guides-list__title { display: block; font-size: 1.15rem; margin: 4px 0; }
.guides-list__desc { color: #6b7280; font-size: .95rem; }

@media (max-width: 760px) {
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .guide-toc { position: static; border-bottom: 1px solid #e5e7eb; padding-bottom: 12px; }
}
