[hidden] { display: none !important; }
.imported-menu-popup, .imported-sheet-panel {
  background: var(--popover, white); color: var(--popover-foreground, black);
  border: 1px solid var(--border, #ddd); border-radius: var(--radius, .5rem);
  box-shadow: 0 8px 24px #0003; padding: .5rem; overflow-y: auto;
}
.imported-menu-popup { position: fixed; width: 280px; z-index: 70; }
.imported-menu-link { display: block; padding: .6rem .75rem; border-radius: .35rem; text-decoration: none; cursor: pointer; }
.imported-menu-link:hover, .imported-menu-link:focus-visible { background: var(--accent, #eee); color: var(--accent-foreground, black); }
.imported-sheet-backdrop { position: fixed; inset: 0; background: #0008; z-index: 80; }
.imported-sheet-panel { position: absolute; inset: 0 0 0 auto; width: min(90vw, 390px); border-radius: 0; padding: 3.5rem 1rem 1rem; }
.imported-menu-close { position: absolute; top: .5rem; right: .75rem; font-size: 1.75rem; width: 2.5rem; height: 2.5rem; }
.imported-sheet-panel details > div { padding-left: .75rem; }
[data-slot="collapsible-content"], [data-slot="accordion-content"] { animation: none !important; }
[data-imported-rules] [data-slot="collapsible-trigger"] :is(h2,h3) { white-space: normal; overflow-wrap: anywhere; }
/* Published rich text can contain full URLs inside headings. Keep every character on mobile. */
main [data-cms-type="richtext"] { overflow-wrap: anywhere; }
