/* Church sermon builder and the public page a share link opens. */
.ez_slide-thumb {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ez-color-border);
  border-radius: var(--ez-radius-md);
}

.ez_shared {
  max-width: 48rem;
  margin-inline: auto;
}

.ez_shared__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--ez-radius-md);
}

.ez_shared__quote {
  margin: 0;
  padding-inline-start: var(--ez-space-4);
  border-inline-start: 0.25rem solid var(--ez-color-accent);
}

.ez_shared__quote footer {
  color: var(--ez-color-text-muted);
}

.ez_viewer__slide {
  display: none;
  min-height: 16rem;
  padding: var(--ez-space-6);
  background: var(--ez-color-surface);
  border: 1px solid var(--ez-color-border);
  border-radius: var(--ez-radius-lg);
  font-size: var(--ez-font-size-lg);
}

.ez_viewer__slide[data-active] {
  display: block;
}

.ez_viewer__bar {
  justify-content: space-between;
  align-items: center;
}

/* The sermon editor: slide rail, live preview and rich text. Everything here only applies once the script has run. */
.ez_builder--js {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: var(--ez-space-4);
  align-items: start;
}

.ez_builder__main > .ez_preview {
  max-inline-size: 26rem;
}

.ez_builder__rail {
  display: flex;
  flex-direction: column;
  gap: var(--ez-space-2);
  position: sticky;
  top: var(--ez-space-3);
  max-height: 80vh;
  overflow-y: auto;
}

.ez_thumb {
  display: flex;
  align-items: flex-start;
  gap: var(--ez-space-2);
  flex: none;
  padding: var(--ez-space-1);
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: var(--ez-radius-md);
  cursor: pointer;
}

.ez_thumb:hover {
  background: var(--ez-color-surface-container);
}

.ez_thumb[hidden] {
  display: none;
}

.ez_thumb__frame {
  flex: 1;
  min-inline-size: 0;
  border: 2px solid var(--ez-color-border);
  border-radius: var(--ez-radius-sm);
  overflow: hidden;
}

.ez_thumb[aria-current="true"] {
  background: var(--ez-color-surface-container-high);
}

.ez_thumb[aria-current="true"] .ez_thumb__frame {
  border-color: var(--ez-color-action-primary);
}

.ez_thumb[data-dragging] {
  opacity: 0.4;
}

.ez_thumb[data-over] .ez_thumb__frame {
  border-style: dashed;
  border-color: var(--ez-color-accent);
}

.ez_thumb__number {
  min-inline-size: 1rem;
  padding-block-start: var(--ez-space-1);
  font-size: var(--ez-font-size-xs);
  color: var(--ez-color-text-muted);
  text-align: end;
}

.ez_rail-search {
  flex: none;
  max-inline-size: none;
  min-block-size: 2.25rem;
  margin-block-end: var(--ez-space-1);
}

/* A slide drawn at any size: type scales with the box it is in. */
.ez_canvas-box {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ez-color-surface-sunken);
  border-radius: var(--ez-radius-md);
}

.ez_canvas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3cqw;
  box-sizing: border-box;
  inline-size: 100%;
  block-size: 100%;
  padding: 5cqw;
  font-size: calc(4cqw * var(--ez-fit, 1));
  line-height: 1.25;
  color: var(--ez-color-text-primary);
}

.ez_canvas__heading {
  font-size: calc(6.5cqw * var(--ez-fit, 1));
  font-weight: var(--ez-font-weight-medium);
}

.ez_canvas[data-type="title"] {
  align-items: center;
  text-align: center;
}

.ez_canvas[data-type="title"] .ez_canvas__heading {
  font-size: calc(8cqw * var(--ez-fit, 1));
}

.ez_canvas__verses {
  font-style: italic;
}

.ez_canvas__verses p,
.ez_canvas__body p {
  margin: 0 0 1.5cqw;
}

.ez_canvas__ref {
  color: var(--ez-color-text-muted);
  font-size: calc(3.5cqw * var(--ez-fit, 1));
}

.ez_canvas__pic {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 0;
  flex: 1;
}

.ez_canvas__pic img {
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
}

.ez_canvas[data-layout="left"],
.ez_canvas[data-layout="right"] {
  flex-direction: row;
  align-items: center;
}

.ez_canvas[data-layout="right"] {
  flex-direction: row-reverse;
}

.ez_canvas[data-layout="bottom"] {
  flex-direction: column-reverse;
}

.ez_canvas__text {
  flex: 1;
  min-inline-size: 0;
}

.ez_thumb .ez_canvas {
  pointer-events: none;
}

.ez_canvas[data-type="point"] {
  align-items: center;
  text-align: center;
}

.ez_canvas[data-type="point"] .ez_canvas__heading {
  font-size: calc(7cqw * var(--ez-fit, 1));
}

.ez_thumb [data-frame] {
  display: block;
}

.ez_rte {
  display: block;
  inline-size: 100%;
}

.ez_field__box:has(> .ez_rte) {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Rich text: a flat toolbar over a page-like text area, laid out like a word processor. */
.ez_rte__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ez-space-1);
  padding: var(--ez-space-1) var(--ez-space-2);
  background: var(--ez-color-surface-container);
  border: 1px solid var(--ez-color-border);
  border-block-end: 0;
  border-radius: var(--ez-radius-sm) var(--ez-radius-sm) 0 0;
}

.ez_rte__group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-inline-end: var(--ez-space-2);
  margin-inline-end: var(--ez-space-1);
  border-inline-end: 1px solid var(--ez-color-border);
}

.ez_rte__group:last-child {
  border-inline-end: 0;
}

.ez_rte__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  padding: 0;
  font: inherit;
  font-size: var(--ez-font-size-sm);
  color: var(--ez-color-text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.ez_rte__btn:hover:not(:disabled) {
  background: var(--ez-color-surface-container-high);
  border-color: var(--ez-color-border);
}

.ez_rte__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.ez_rte__style {
  block-size: 2rem;
  padding-inline: var(--ez-space-2);
  font: inherit;
  font-size: var(--ez-font-size-sm);
  color: var(--ez-color-text-primary);
  background: var(--ez-color-surface);
  border: 1px solid var(--ez-color-border);
  border-radius: 3px;
}

.ez_rte__area {
  min-block-size: 10rem;
  max-block-size: 32rem;
  overflow-y: auto;
  resize: vertical;
  padding: var(--ez-space-4);
  font-size: var(--ez-font-size-lg);
  line-height: 1.5;
  color: var(--ez-color-text-primary);
  background: var(--ez-color-surface);
  border: 1px solid var(--ez-color-border);
  border-radius: 0 0 var(--ez-radius-sm) var(--ez-radius-sm);
}

.ez_rte__area:focus {
  outline: 2px solid var(--ez-color-action-primary);
  outline-offset: -1px;
}

.ez_rte__area h3 {
  margin: 0 0 0.4em;
  font-size: 1.25em;
}

.ez_rte__area blockquote {
  margin: 0.4em 0;
  padding-inline-start: var(--ez-space-3);
  border-inline-start: 3px solid var(--ez-color-accent);
  color: var(--ez-color-text-muted);
}

/* One slide's fields: kind and heading on one line. */
.ez_slide__legend {
  padding-inline: var(--ez-space-2);
  font-size: var(--ez-font-size-sm);
  font-weight: var(--ez-font-weight-medium);
  color: var(--ez-color-text-muted);
}

.ez_slide__top {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: var(--ez-space-3);
  align-items: start;
}

@media (max-width: 40rem) {
  .ez_slide__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The Export menu opens under its button. */
.ez_export > summary {
  list-style: none;
}

.ez_export > summary::-webkit-details-marker {
  display: none;
}

.ez_export > summary::after {
  content: "";
  margin-inline-start: var(--ez-space-2);
  border: 4px solid transparent;
  border-block-start-color: currentColor;
  transform: translateY(3px);
}

/* Studio: with the script on, the sermon page fills the screen under the top bar and never scrolls as a whole. The slide
   rail and the open slide scroll on their own; the sermon's details, sharing and delete open in a drawer on request. */
@media (min-width: 64rem) {
  .ez_sermon-page.ez_studio--on {
    --ez-studio-h: calc(100vh - var(--ez-topbar-height) - var(--ez-space-5) * 2);
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: var(--ez-space-4);
    block-size: var(--ez-studio-h);
    overflow: hidden;
  }

  .ez_studio--on > .ez_studio__top {
    grid-column: 1 / -1;
    margin-block-end: var(--ez-space-3);
  }

  .ez_studio--on > .ez_sermon-form,
  .ez_studio--on .ez_builder--js {
    display: contents;
  }

  .ez_studio--on .ez_builder__rail {
    grid-column: 1;
    grid-row: 2;
    position: static;
    max-height: none;
    min-block-size: 0;
    overflow-y: auto;
  }

  .ez_studio--on .ez_builder__main {
    grid-column: 2;
    grid-row: 2;
    min-inline-size: 0;
    min-block-size: 0;
    overflow-y: auto;
    padding-inline-end: var(--ez-space-2);
  }
}

.ez_studio--on .ez_studio__top {
  margin-block-end: var(--ez-space-3);
}

.ez_studio--on .ez_studio__top h1 {
  font-size: var(--ez-font-size-xl);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ez_studio--on [data-form-save],
.ez_studio--on [data-autosave-hint] {
  display: none;
}

/* The add-slide controls sit under the thumbnails and stay in view. */
.ez_studio--on .ez_addbar {
  position: sticky;
  inset-block-end: 0;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  padding: var(--ez-space-2);
  background: var(--ez-color-surface);
}

.ez_studio--on .ez_addbar .ez_field {
  inline-size: 100%;
}

/* Drawers: details, share, send and delete. Only one is open at a time. */
.ez_studio--on [data-panel] {
  display: none;
}

.ez_studio--on [data-panel][data-open] {
  display: flex;
  position: fixed;
  inset-block: var(--ez-topbar-height) 0;
  inset-inline-end: 0;
  z-index: 40;
  inline-size: min(24rem, 100vw);
  min-inline-size: 0;
  margin: 0;
  overflow-y: auto;
  border-radius: var(--ez-radius-lg) 0 0 var(--ez-radius-lg);
  box-shadow: var(--ez-shadow-lg);
  background: var(--ez-color-surface);
  flex-direction: column;
}

.ez_drawer__head {
  flex: none;
  flex-wrap: nowrap;
  justify-content: space-between;
  inline-size: 100%;
}

.ez_drawer__close {
  flex: none;
  margin-inline-start: auto;
}

.ez_drawer__title {
  margin: 0;
  font-size: var(--ez-font-size-lg);
}

/* Slideshow: the sermon full screen, one slide at a time. */
.ez_show {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--ez-stage-bg);
  color: var(--ez-stage-text);
}

.ez_show[hidden] {
  display: none;
}

.ez_show__slide {
  display: grid;
  place-items: center;
  min-block-size: 0;
  padding: var(--ez-space-3);
}

.ez_show__slide > .ez_canvas-box {
  inline-size: min(100%, calc((100vh - 8rem) * 16 / 9));
}

.ez_show__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ez-space-3);
  padding: var(--ez-space-3);
  opacity: 0.75;
}

.ez_show__notes {
  max-inline-size: 60rem;
  margin: 0 auto;
  padding: 0 var(--ez-space-4) var(--ez-space-3);
  color: var(--ez-stage-muted);
  white-space: pre-wrap;
}

/* Text formatting a slide may carry (see _docs/design/slide-text-format.md): alignment, a hex colour and a relative size.
   Sizes are taken from one base (never from the parent), so a size inside a size is the nearest one, not both. */
.ez_canvas__body {
  --ez-slide-fs: calc(4cqw * var(--ez-fit, 1));
}

.ez_rte__area,
.ez_viewer__slide,
.ez_shared__body {
  --ez-slide-fs: 1.125rem;
}

.ez_canvas__body [align="left"],
.ez_rte__area [align="left"],
.ez_viewer__slide [align="left"],
.ez_shared__body [align="left"] {
  text-align: left;
}

.ez_canvas__body [align="center"],
.ez_rte__area [align="center"],
.ez_viewer__slide [align="center"],
.ez_shared__body [align="center"] {
  text-align: center;
}

.ez_canvas__body [align="right"],
.ez_rte__area [align="right"],
.ez_viewer__slide [align="right"],
.ez_shared__body [align="right"] {
  text-align: right;
}

.ez_canvas__body span[s="sm"],
.ez_rte__area span[s="sm"],
.ez_viewer__slide span[s="sm"],
.ez_shared__body span[s="sm"] {
  font-size: calc(var(--ez-slide-fs) * 0.6);
}

.ez_canvas__body span[s="lg"],
.ez_rte__area span[s="lg"],
.ez_viewer__slide span[s="lg"],
.ez_shared__body span[s="lg"] {
  font-size: calc(var(--ez-slide-fs) * 1.4);
}

.ez_canvas__body span[s="xl"],
.ez_rte__area span[s="xl"],
.ez_viewer__slide span[s="xl"],
.ez_shared__body span[s="xl"] {
  font-size: calc(var(--ez-slide-fs) * 1.9);
}

/* Colour palette in the editor toolbar. */
.ez_rte__colour {
  position: relative;
}

.ez_rte__swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border-block-end: 3px solid var(--ez-color-accent);
  font-size: var(--ez-font-size-sm);
}

.ez_rte__palette {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-start: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  inline-size: 11.5rem;
  padding: var(--ez-space-2);
  background: var(--ez-color-surface);
  border: 1px solid var(--ez-color-border);
  border-radius: var(--ez-radius-md);
  box-shadow: var(--ez-shadow-lg);
}

.ez_rte__palette[hidden] {
  display: none;
}

.ez_rte__chip {
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border: 1px solid var(--ez-color-border);
  border-radius: 50%;
}

.ez_rte__default {
  inline-size: auto;
  padding-inline: var(--ez-space-2);
  margin-block-start: 2px;
}

/* Lists keep their bullets and numbers (the page's reset removes them). */
.ez_canvas__body ul,
.ez_canvas__body ol,
.ez_rte__area ul,
.ez_rte__area ol,
.ez_shared__body ul,
.ez_shared__body ol {
  margin: 0 0 0.4em;
  padding-inline-start: 1.4em;
  text-align: start;
}

.ez_canvas__body ul,
.ez_rte__area ul,
.ez_shared__body ul {
  list-style: disc;
}

.ez_canvas__body ol,
.ez_rte__area ol,
.ez_shared__body ol {
  list-style: decimal;
}

.ez_canvas__body p,
.ez_canvas__body li {
  margin: 0 0 1.5cqw;
}

/* Inline editing (wide screens): the slide is drawn big and typed into directly. The slide's form fields stay in the page
   but out of sight; the toolbar above the slide and the notes strip below it replace them. */
.ez_studio--live [data-slide] {
  display: none;
}

.ez_studio--live .ez_builder__main {
  gap: var(--ez-space-3);
}

.ez_studio__tools {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--ez-space-2);
  padding-block-end: var(--ez-space-1);
  background: var(--ez-color-bg);
}

.ez_studio__tools[hidden] {
  display: none;
}

.ez_studio__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ez-space-2);
}

.ez_studio__row > span[hidden] {
  display: none;
}

.ez_studio__actions {
  display: flex;
  gap: var(--ez-space-1);
  margin-inline-start: auto;
}

.ez_studio--live .ez_builder__main > .ez_preview {
  inline-size: min(100%, calc((100vh - 23rem) * 16 / 9));
  max-inline-size: none;
  margin-inline: auto;
}

.ez_stage .ez_canvas {
  overflow-y: auto;
  justify-content: safe center;
}

.ez_stage__note {
  margin-block-start: var(--ez-space-2);
  text-align: center;
  font-size: var(--ez-font-size-sm);
}

.ez_stage [contenteditable]:hover,
.ez_stage .ez_canvas__ref-input:hover,
.ez_stage .ez_canvas__pic--edit:hover {
  outline: 1px dashed var(--ez-color-border);
  outline-offset: 0.5cqw;
}

.ez_stage [contenteditable]:focus,
.ez_stage .ez_canvas__ref-input:focus,
.ez_stage .ez_canvas__pic--edit:focus-visible {
  outline: 2px solid var(--ez-color-action-primary);
  outline-offset: 0.5cqw;
}

.ez_stage [data-placeholder][data-empty]::before {
  content: attr(data-placeholder);
  color: var(--ez-color-text-muted);
  opacity: 0.7;
  font-weight: var(--ez-font-weight-regular);
  pointer-events: none;
}

.ez_stage .ez_canvas__heading {
  min-block-size: 1.2em;
}

.ez_canvas__body .ez_rte__area {
  --ez-slide-fs: calc(4cqw * var(--ez-fit, 1));
  min-block-size: 3em;
  max-block-size: none;
  overflow: visible;
  resize: none;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.ez_canvas__body .ez_rte__area:focus {
  outline-offset: 0.5cqw;
}

.ez_canvas__ref-input {
  inline-size: 100%;
  padding: 0;
  font: inherit;
  font-size: calc(3.5cqw * var(--ez-fit, 1));
  background: transparent;
  border: 0;
}

.ez_canvas__pic--edit {
  position: relative;
  cursor: pointer;
  min-block-size: 20cqw;
  border-radius: var(--ez-radius-sm);
}

.ez_canvas__pic--edit[data-empty]::before {
  content: attr(data-empty);
  color: var(--ez-color-text-muted);
  font-size: 3cqw;
}

.ez_canvas__pic-remove {
  position: absolute;
  inset-block-start: 1cqw;
  inset-inline-end: 1cqw;
  inline-size: 5cqw;
  block-size: 5cqw;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 3.5cqw;
  line-height: 1;
  color: var(--ez-color-on-danger);
  background: var(--ez-color-danger);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ez_notes {
  max-inline-size: 60rem;
}

.ez_notes > summary {
  cursor: pointer;
  margin-block-end: var(--ez-space-1);
  color: var(--ez-color-text-muted);
  font-size: var(--ez-font-size-sm);
}

.ez_notes__box {
  inline-size: 100%;
  padding: var(--ez-space-3);
  font: inherit;
  color: var(--ez-color-text-primary);
  background: var(--ez-color-surface-container);
  border: 0;
  border-radius: var(--ez-radius-md);
  resize: vertical;
}

.ez_export > summary.ez_button--icon::after {
  content: none;
}

.ez_stage__warn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ez-space-3);
  margin-block-start: var(--ez-space-2);
  padding: var(--ez-space-2) var(--ez-space-3);
  text-align: center;
  font-size: var(--ez-font-size-sm);
  color: var(--ez-color-on-warning-container);
  background: var(--ez-color-warning-container);
  border-radius: var(--ez-radius-md);
}

.ez_stage__warn[hidden] {
  display: none;
}

/* Scripture picker */
.ez_picker {
  position: fixed;
  inset-block: var(--ez-topbar-height) 0;
  inset-inline-end: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--ez-space-3);
  inline-size: min(22rem, 100vw);
  padding: var(--ez-space-4);
  overflow-y: auto;
  background: var(--ez-color-surface);
  border-radius: var(--ez-radius-lg) 0 0 var(--ez-radius-lg);
  box-shadow: var(--ez-shadow-lg);
}

@media (min-width: 64rem) {
  .ez_studio--picker .ez_builder__main,
  .ez_studio--picker .ez_studio__top {
    padding-inline-end: 23rem;
  }
}

.ez_picker[hidden] {
  display: none;
}

.ez_picker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ez-space-1);
}

.ez_picker__crumb {
  padding: var(--ez-space-1) var(--ez-space-2);
  font: inherit;
  font-size: var(--ez-font-size-sm);
  color: var(--ez-color-text-primary);
  background: transparent;
  border: 0;
  border-radius: var(--ez-radius-sm);
  cursor: pointer;
}

.ez_picker__crumb:hover {
  background: var(--ez-color-surface-container-high);
}

.ez_picker__crumb + .ez_picker__crumb::before {
  content: "/";
  margin-inline-end: var(--ez-space-2);
  color: var(--ez-color-text-muted);
}

.ez_picker__done {
  margin-inline-start: auto;
}

.ez_picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
  gap: var(--ez-space-1);
}

.ez_picker__item {
  min-block-size: 2.25rem;
  padding: var(--ez-space-1) var(--ez-space-2);
  font: inherit;
  font-size: var(--ez-font-size-sm);
  color: var(--ez-color-text-primary);
  background: var(--ez-color-surface);
  border: 0;
  border-radius: var(--ez-radius-sm);
  cursor: pointer;
}

.ez_picker__item--wide {
  grid-column: span 3;
}

.ez_picker__item:hover {
  background: var(--ez-color-surface-container-high);
}

.ez_picker__item[aria-pressed="true"] {
  color: var(--ez-color-on-action-primary);
  background: var(--ez-color-action-primary);
}

.ez_picker__hint {
  grid-column: 1 / -1;
  font-size: var(--ez-font-size-xs);
}

.ez_studio__top [data-save-status] {
  max-inline-size: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ez_picker__search {
  flex: none;
  inline-size: 100%;
  min-block-size: 2.5rem;
  padding: 0 var(--ez-space-3);
  font: inherit;
  color: var(--ez-color-text-primary);
  background: var(--ez-color-surface-container);
  border: 0;
  border-radius: var(--ez-radius-md);
}

.ez_picker__body,
.ez_picker__results {
  display: flex;
  flex-direction: column;
  gap: var(--ez-space-2);
}

.ez_picker__hit {
  display: flex;
  flex-direction: column;
  gap: var(--ez-space-1);
  padding: var(--ez-space-2) var(--ez-space-3);
  font: inherit;
  font-size: var(--ez-font-size-sm);
  text-align: start;
  color: var(--ez-color-text-primary);
  background: var(--ez-color-surface-container);
  border: 0;
  border-radius: var(--ez-radius-md);
  cursor: pointer;
}

.ez_picker__hit:hover {
  background: var(--ez-color-surface-container-high);
}

.ez_picker__hit mark {
  color: inherit;
  background: var(--ez-color-warning-container);
  border-radius: 2px;
}

.ez_studio__row > [hidden] {
  display: none;
}

/* The sermons list: one row of tools, icons where the meaning is clear. */
.ez_sermons__tools {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.ez_search--compact {
  inline-size: min(18rem, 100%);
}

.ez_openfile {
  display: flex;
}

.ez_openfile > label:focus-within {
  outline: 2px solid var(--ez-color-action-primary);
  outline-offset: 2px;
}

.ez_openfile[data-open-file] > label {
  cursor: pointer;
}
