/* Guide-only layout. Typography, palette and UI components come from the site. */
.dg { color: var(--ink, #111827); }
.dg [id] { scroll-margin-top: 112px; }
.dg [hidden], .dg-print-only { display: none !important; }
.dg h2 { color: #0f172a; font-size: 30px; line-height: 1.25; margin-bottom: 20px; }
.dg h3 { color: #0f172a; font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
.dg p { color: #475569; margin-bottom: 20px; }
.dg a:not(.btn-primary):not(.btn-secondary):not(.dg-path) { text-underline-offset: 4px; }
.dg a:not(.btn-primary):not(.btn-secondary):not(.dg-path):hover { text-decoration: underline; }
.dg a:focus-visible, .dg button:focus-visible, .dg input:focus-visible, .dg summary:focus-visible { outline: 3px solid var(--ink, #111827); outline-offset: 5px; }
.dg .dg-lead { font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
.dg-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.dg-breadcrumb { font-size: 14px; color: #475569; margin-bottom: 32px; }
.dg-breadcrumb a, .dg-text-links a, .dg-scene-copy>a, .dg-work-step a, .dg-reading a, .dg-howto a { font-weight: 500; }
.dg .dg-paths h2 { font-size: 20px; margin-bottom: 24px; }
.dg-path-grid { display: grid; gap: 16px; }
.dg-path { display: block; padding: 24px; color: inherit; }
.dg-path:hover { border-color: #94a3b8; box-shadow: 0 8px 24px -12px rgb(17 24 39 / .18); }
.dg-path h3 { font-size: 22px; margin: 8px 0 12px; }
.dg-path p { margin-bottom: 16px; }
.dg-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; color: #475569; }
.dg-path-link { color: var(--ink, #111827); font-size: 14px; font-weight: 600; }
.dg-overview ol { display: grid; gap: 12px; }
.dg-overview a { display: flex; align-items: center; gap: 16px; background: white; border-radius: 12px; padding: 16px; color: #0f172a; font-weight: 500; }
.dg-overview a>span:last-child { margin-left: auto; }
.dg-number { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: 14px; font-weight: 600; }
.dg-section-intro { max-width: 672px; margin-bottom: 48px; }
.dg-features ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dg-features li { padding: 28px; }
.dg-features h3 { font-size: 20px; margin-bottom: 12px; }
.dg-features li p { margin-bottom: 0; }
.dg-story { padding-top: 80px; }
.dg-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding: 48px 0; }
.dg-scene-copy .dg-number { margin-bottom: 20px; background: white; }
.dg-scene:nth-of-type(even) .dg-scene-copy { order: 2; }
.dg-media { margin: 0; min-width: 0; }
.dg-shot { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 28px; }
.dg-shot a { display: block; width: 100%; }
.dg-shot img { display: block; width: 100%; height: auto; margin: auto; border-radius: 8px; background: white; box-shadow: 0 4px 16px rgb(17 24 39 / .06); }
.dg-shot img[width="250"] { max-width: 250px; }
.dg-media figcaption { font-size: 13px; color: #475569; line-height: 1.5; margin-top: 12px; }
.dg-note { margin-top: 32px; }
.dg-routing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding: 80px 0; }
.dg-rule { display: grid; gap: 28px; max-width: 400px; width: 100%; margin: auto; }
.dg-rule li { position: relative; padding: 20px; text-align: center; background: white; border: 1px solid #e2e8f0; border-radius: 16px; }
.dg-rule li+li:before { content: '↓'; position: absolute; top: -27px; left: calc(50% - 6px); color: #64748b; }
.dg-text-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.dg-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.dg-work-step { padding: 32px; }
.dg-work-step .dg-number { margin-bottom: 24px; }
.dg-work-step h2 { font-size: 24px; }
.dg-work-step .dg-text-links { margin: 16px 0 0; }
.dg-bottom { padding-top: 80px; padding-bottom: 56px; }
.dg-prep, .dg-faq, .dg-reading, .dg-howto { margin-bottom: 64px; }
.dg-paper .dg-howto { padding-bottom: 64px; margin-bottom: 0; }
.dg-prep>p, .dg-focus>p, .dg-next>p { max-width: 760px; }
.dg-prep ol { list-style: decimal; padding-left: 24px; }
.dg-prep li { padding: 8px 0 8px 8px; color: #475569; }
.dg-faq { max-width: 864px; }
.dg-faq details { padding: 20px 0; border-bottom: 1px solid #e2e8f0; }
.dg-faq summary { cursor: pointer; font-weight: 600; color: #0f172a; }
.dg-faq details p { margin: 16px 0 0; }
.dg-reading ul, .dg-howto ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.dg-reading li, .dg-howto li { padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.dg-next { padding: 40px; background: #f8fafc; }
.dg-next .dg-text-links { margin: 24px 0 0; }
.dg-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; padding: 0; margin: 28px 0; }
.dg-topic { display: flex; align-items: center; gap: 12px; padding: 20px; cursor: pointer; }
.dg-topic:has(input:checked) { border-color: var(--ink, #111827); background: #f8fafc; }
.dg-topic input { accent-color: var(--ink, #111827); width: 20px; height: 20px; flex-shrink: 0; }
.dg-generated { padding: 24px; background: #f8fafc; margin-bottom: 20px; }
.dg-generated .dg-copy-status { font-size: 14px; margin: 12px 0 0; }
.dg .dg-language-note { font-size: 14px; color: #64748b; }
.dg-meta { border-top: 1px solid #e2e8f0; padding-top: 24px; margin-top: 48px; font-size: 13px; }
.dg-meta p { margin-bottom: 8px; }
.dg-meta a { overflow-wrap: anywhere; }
/* Shared inbound paragraph, used by existing feature/help/blog pages. */
.dg-related-link { max-width: var(--content, 1128px); margin: 26px auto; padding: 16px 24px; border-left: 3px solid var(--ink, #111827); font-size: 16px; line-height: 1.7; }
.dg-related-link a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .dg h2 { font-size: 26px; }
  .dg h3 { font-size: 22px; }
  .dg .dg-lead { font-size: 17px; }
  .dg-actions { align-items: stretch; flex-direction: column; }
  .dg-features ul, .dg-scene, .dg-routing, .dg-steps, .dg-topics, .dg-reading ul, .dg-howto ul { grid-template-columns: 1fr; }
  .dg-scene { gap: 24px; padding: 32px 0; }
  .dg-scene:nth-of-type(even) .dg-scene-copy { order: 0; }
  .dg-shot { padding: 20px; min-height: 160px; }
  .dg-story, .dg-bottom { padding-top: 56px; }
  .dg-routing { padding: 56px 0; gap: 32px; }
  .dg-steps { padding-top: 56px; padding-bottom: 56px; }
  .dg-work-step, .dg-next { padding: 24px; }
  .dg-prep, .dg-faq, .dg-reading, .dg-howto { margin-bottom: 48px; }
}
@media print {
  @page { size: A4; margin: 16mm 15mm 17mm; }
  .dg { font-size: 10pt; line-height: 1.5; }
  .dg .container-custom { max-width: none; padding-left: 0; padding-right: 0; }
  .dg .section, .dg-bottom { padding-top: 18pt; padding-bottom: 18pt; }
  .dg .dg-flow-hero { padding-top: 0; }
  .dg-flow-hero .grid { display: block; }
  .dg h1 { font-size: 27pt; line-height: 1.16; margin-bottom: 14pt; }
  .dg h2 { font-size: 17pt; margin-bottom: 10pt; }
  .dg h3 { font-size: 13pt; }
  .dg .dg-lead { font-size: 11pt; }
  .dg p { margin-bottom: 10pt; }
  .dg .dg-paths { padding: 14pt; margin-top: 18pt; break-inside: avoid; }
  .dg-path-grid { grid-template-columns: 1fr 1fr; gap: 12pt; }
  .dg-path { padding: 12pt; }
  .dg-path h3 { font-size: 14pt; }
  .dg-path-link { font-size: 9pt; }
  .dg-path p, .dg-eyebrow { font-size: 9pt; }
  .dg-section-intro { margin-bottom: 18pt; text-align: left; }
  .dg-features ul { gap: 12pt; }
  .dg-features li { padding: 12pt; break-inside: avoid; }
  .dg-features h3 { font-size: 12pt; margin-bottom: 6pt; }
  .dg-prep, .dg-faq, .dg-reading, .dg-howto { margin-bottom: 22pt; }
  .dg-prep, .dg-next, .dg-reading, .dg-howto, .dg-work-step { break-inside: avoid; }
  .dg-prep li { padding: 3pt; }
  .dg-faq details { break-inside: avoid; padding: 10pt 0; }
  .dg-reading ul, .dg-howto ul { gap: 8pt 18pt; }
  .dg-reading li, .dg-howto li { padding-bottom: 6pt; }
  .dg-next { padding: 18pt; }
  .dg-meta { margin-top: 18pt; padding-top: 12pt; font-size: 8pt; }
  .dg .card-elevated { box-shadow: none; }
  .dg-no-print, .dg-generated, .dg-overview { display: none !important; }
  .dg-print-only { display: block !important; }
  .dg a { color: #0f172a; }
}
