/* export: styles of this feature only */

/* The export menu: a button that opens a short list of files. */
.export-menu { position: relative; display: inline-block; }
.export-menu > summary { list-style: none; user-select: none; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu[open] > summary { border-color: var(--ink-3); background: #f0ece1; }
.export-list {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 210px; max-width: calc(100vw - 32px);
  padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  display: flex; flex-direction: column; gap: 2px;
}
.export-menu.end .export-list { left: auto; right: 0; }
.export-menu.flip .export-list { left: auto; right: 0; }
.export-menu.end.flip .export-list { left: 0; right: auto; }
.export-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 7px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 13.5px; white-space: nowrap;
}
.export-item:hover, .export-item:focus-visible { background: var(--indigo-soft); outline: none; }
.export-check {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 10px 4px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}

/* The practice-paper button and the two files it makes. */
.export-paper { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.export-links { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
