@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/materialicons/v53/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

[data-controller=editor] ul {
  list-style-type: disc;
  margin-left: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;

}

[data-controller=editor] ol {
  list-style-type: decimal;
  margin-left: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

[data-controller=editor] li {
}

[data-controller=editor] blockquote {
  border-left: 2px solid #ddd;
  margin-left: 0;
  margin-right: 0;
  padding-left: 10px;
  color: #888;
  font-style: italic;
}

[data-controller=editor] p {
  margin-bottom: 1rem;
}

/* W cytacie Lexxy trzyma akapity */
[data-controller=editor] blockquote p {
  margin-bottom: 0;
}

/* Edytor Lexxy (editor/lexxy_editor.js). Arkusza stylów Lexxy nie ładujemy: z jego reguł
   są tu tylko te, bez których edytor nie działa - pusty akapit do kliknięcia pod listą
   albo cytatem, tekst w pustym edytorze, ukryty element dla czytników ekranu i podkreślenie,
   które Lexxy rysuje klasą. */
lexxy-editor {
  display: block;
  position: relative;
}

.lexxy-editor__content {
  padding: 1rem;
  background-color: #f7f7f7;
  min-height: 10rem;
  max-height: 20rem;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.lexxy-editor__content p.provisional-paragraph.hidden {
  height: 0.5ch;
  margin: 0;
}

.lexxy-editor--empty .lexxy-editor__content::before {
  content: attr(placeholder);
  position: absolute;
  opacity: 0.66;
  cursor: text;
  pointer-events: none;
  white-space: pre-line;
}

.lexxy-content__underline {
  text-decoration: underline;
}

lexxy-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Pasek z przyciskami */
lexxy-toolbar {
  display: block;
  padding: 0.5rem 1rem;
}

lexxy-toolbar button {
  margin-right: 0.5rem;
  color: #767884;
  cursor: pointer;
}

lexxy-toolbar button.group-start {
  padding-left: 0.25rem;
}

/* Lexxy zaznacza przyciski także wtedy, gdy kursora w edytorze jeszcze nie ma */
lexxy-editor:focus-within lexxy-toolbar button[aria-pressed=true] {
  color: black;
}

lexxy-toolbar button[aria-disabled=true] {
  color: #d3d2d6;
  cursor: default;
}

lexxy-toolbar .material-icons {
  font-size: 24px;
  vertical-align: text-bottom;
}
