/* /ladda-ner (ladda-ner.html, download.js). Egen fil så att sidan inte rör booqy.css. */
.legal h3 { margin: 1.4em 0 0.3em; font: 750 1.05rem/1.3 var(--font-sans); color: var(--print); }
.legal ol { margin: 0 0 1em; padding-left: 1.3em; }
.legal ol li { margin: 0.3em 0; }
.legal code { font: 0.85em/1.4 var(--font-mono, ui-monospace, monospace); background: var(--paper-shade, #f1eee6); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
.dl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 1.2em 0 0.4em; }
.dl-pick[hidden] { display: none; }
.dl-pick-note { color: var(--print-2); }
.legal .dl-list { list-style: none; padding: 0; margin: 0.6em 0 1.2em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.legal .dl-list b, .legal .dl-list a span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.legal .dl-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 14px;
  border: 1px dashed var(--paper-line, #d9d4c8); border-radius: 3px; color: var(--print); text-decoration: none;
  transition: background-color 160ms var(--ease-out, ease), border-color 160ms var(--ease-out, ease); }
.legal .dl-list a:hover { background: var(--paper-shade, #f1eee6); }
.legal .dl-list a span { color: var(--print-2); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.8125rem; }
.legal .dl-list .is-yours a { border-style: solid; border-color: var(--accent, #9e1d26); }
.legal .dl-pick a.btn-print { color: var(--snow, #fbfaf6); text-decoration: none; }
.legal .dl-list .dl-badge { font-style: normal; font: 700 0.75rem/1.2 var(--font-sans); padding: 3px 9px; border-radius: 999px; background: #1c1918; color: #fbfaf6; margin-right: auto; margin-left: 10px; align-self: center; }

/* Rader: hela raden är en nedladdningslänk: lyft, tydligare kant, en
   nedladdningspil till höger och fokusring. Den rekommenderade raden
   reagerar likadant. */
.legal .dl-list a { position: relative; padding-right: 46px;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.legal .dl-list a::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 19.5h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 19.5h14'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translateY(-3px); transition: opacity 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.legal .dl-list a:hover, .legal .dl-list a:focus-visible { border-color: var(--print); border-style: solid; background: var(--paper-shade, #f1eee6);
  }
.legal .dl-list a:hover::after, .legal .dl-list a:focus-visible::after { opacity: 1; transform: none; }
.legal .dl-list a:focus-visible { outline: 2px solid var(--accent, #9e1d26); outline-offset: 2px; }
.legal .dl-list a:active { transform: none; box-shadow: none; }
@media (max-width: 400px) { .legal .dl-list a { padding-right: 38px; } .legal .dl-list a::after { right: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .legal .dl-list a, .legal .dl-list a::after { transition: none; }
  .legal .dl-list a:hover, .legal .dl-list a:focus-visible { transform: none; }
}

/* Installera med ett kommando. */
.legal .dl-cmd { margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.legal .dl-cmd-row button { flex: none; }
.legal .dl-cmd[hidden] { display: none; }
.legal .dl-cmd > span { color: var(--print-2); font-size: 0.875rem; }
.legal .dl-cmd-row { display: flex; gap: 8px; align-items: stretch; }
.legal .dl-cmd-row code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 10px 12px; border-radius: 3px;
  background: var(--paper-shade, #f1eee6); border: 1px solid var(--paper-line, #d9d4c8); user-select: all; }
/* the command scrolls sideways on small screens: reachable with the keyboard (tabindex) and a visible focus ring */
.legal .dl-cmd-row code:focus-visible { outline: 2px solid var(--accent, #9e1d26); outline-offset: 2px; }
html:not(.js) .legal [data-copy] { display: none; }
