/* Generel bredde — læser, arbejdslag, ordbog, værktøj, praksis */

:root {
  --ab18-work-max: var(--ab18-page);
  --ab18-prose-max: min(68rem, 100%);
}

body.text-first.dronte-on {
  --aw1-guide-max: var(--ab18-work-max);
}

body.text-first.dronte-on .dronte-guide-header,
body.text-first.dronte-on .dronte-problem-slot,
body.text-first.dronte-on .decision-starter,
body.text-first.dronte-on .scenario-trail,
body.text-first.dronte-on .scenario-trail.is-editorial,
body.text-first.dronte-on .context-action-card,
body.text-first.dronte-on .dronte-layer-note {
  max-width: var(--ab18-work-max) !important;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

body.text-first.dronte-on .scenario-trail-lead,
body.text-first.dronte-on .dronte-guide-lead {
  max-width: var(--ab18-prose-max) !important;
}

body.text-first.dronte-on .scenario-panel,
body.text-first.dronte-on .scenario-materials,
body.text-first.dronte-on #scenario-praksis.scenario-panel,
body.text-first.dronte-on .scenario-section .scenario-panel {
  grid-template-columns: 1fr !important;
  gap: 4px 0 !important;
  padding: 10px 12px !important;
}

body.text-first.dronte-on .scenario-panel > strong,
body.text-first.dronte-on .scenario-materials > strong,
body.text-first.dronte-on .scenario-panel > .dronte-voice-heading {
  white-space: normal !important;
}

body.text-first.dronte-on .action-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

body.text-first.dronte-on .scenario-steps {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

body.text-first.dronte-on .about-sheet-body,
body.text-first.dronte-on .sources-panel-lead {
  max-width: var(--ab18-prose-max) !important;
}

body.tools-page .tools-detail,
body.tools-page .tools-card,
body.tools-page .tools-problem-inner {
  max-width: none;
}

body.ordbog-page .ordbog-detail {
  max-width: var(--ab18-prose-max);
}

body.praksis-page .praksis-disclaimer {
  max-width: var(--ab18-prose-max);
}

.sources-fold-body,
body.feedback-page .public-feed-lede {
  max-width: var(--ab18-prose-max);
}