/* Shared appearance for content actions and safety tools. */
.leaf-theme main :is(.button:not([hidden]), .book-showcase a.link, .home-final-links a, .help-card a.safety-report-button, .safety-state-links a, .safety-download-sources > summary),
.leaf-theme main #hilfe-finden .finder-actions a.finder-button,
.leaf-theme main :is(#kurzvideo, #notrufvideo) .video-languages button,
.leaf-theme .safety-card-viewer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #89916f !important;
  border-radius: 6px;
  background: var(--action-bg, #b8c691) !important;
  color: var(--action-ink, #293722) !important;
  font: 500 14px/1.3 Arial, sans-serif !important;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.leaf-theme main :is(.button, .safety-report-button, .finder-button):is([hreflang="en"], [download$="-en.png"]),
.leaf-theme main :is(#kurzvideo, #notrufvideo) .video-languages button[data-lang="en"],
html[lang="en"] .help-contact-page main :is(button.button, .contact-email.button, .card-jump.button),
html[lang="en"] .help-contact-page main :is(.safety-pdf-link a, .safety-download-sources > summary, .safety-state-links a),
html[lang="en"] .leaf-theme .safety-card-viewer button {
  --action-bg: #f0e5cd;
  --action-hover: #e9d9b7;
  --action-ink: #413721;
}

.leaf-theme main :is(.button, .book-showcase a.link, .home-final-links a, .safety-report-button, .safety-state-links a, .safety-download-sources > summary):is(:hover, :focus-visible),
.leaf-theme main #hilfe-finden .finder-actions a.finder-button:is(:hover, :focus-visible, [aria-current="true"]),
.leaf-theme main :is(#kurzvideo, #notrufvideo) .video-languages button:is(:hover, :focus-visible),
.leaf-theme .safety-card-viewer button:is(:hover, :focus-visible) {
  background: var(--action-hover, #aab980) !important;
}

.leaf-theme main :is(#kurzvideo, #notrufvideo) .video-languages button[aria-pressed="true"],
.leaf-theme .safety-card-viewer button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px currentColor;
}

.leaf-theme main :is(.bilingual-actions, .safety-report-actions, .safety-download-actions),
.leaf-theme main #hilfe-finden .finder-actions.bilingual-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  align-items: stretch;
  gap: 8px;
}
.leaf-theme main :is(.bilingual-actions, .safety-report-actions, .safety-download-actions) > a {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.leaf-theme main .section-language-actions { margin-block: 12px; }
@media print {
  .leaf-theme main :is(.section-language-actions, .safety-download-actions) { display: none; }
}

.leaf-theme main :is(.content-action-pair, .section-language-actions, .safety-report-actions, .safety-download-actions) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaf-theme main .content-action-pair { width: 100%; margin-block: 12px; }

.leaf-theme.home-page main :is(.home-purpose, .home-final-links) .bilingual-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-inline-size: 34rem;
  gap: 6px;
}

.leaf-theme.home-page main :is(.home-purpose, .home-final-links) .bilingual-actions > a.button {
  align-self: stretch;
  padding: 4px 8px;
  font: 500 14px/1.3 Arial, sans-serif !important;
  hyphens: auto;
}

.leaf-theme main .memory-overview .destination-list > a {
  background: #b8c691;
  border-color: #89916f;
  color: #293722;
  border-radius: 6px;
}

.leaf-theme main .memory-overview .destination-list > a:is(:hover, :focus-visible) {
  background: #aab980;
}

/* Keep the contact and checklist copy in the surrounding reading style. */
.help-contact-page main :is(#kontakt, #reisecheck) p {
  font-family: 'Nunito Sans', Arial, sans-serif;
}

.leaf-theme main .safety-download-sources > summary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: 700 !important;
  text-align: start;
}
