/* Navigation icons use paths so iOS cannot substitute colour emoji. */
.ui-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
  pointer-events: none;
}

@media (max-width: 1000px) {
  /* Keep long Danish headings inside the reading column at larger type sizes. */
  #reader .guide-copy,
  #reader .guide-copy h3,
  #reader .case-section-title {
    overflow-wrap: anywhere;
  }
  #reader.large .guide-copy h3 {
    font-size: clamp(26px, 8.2vw, 29px);
  }

  .floating-nav .brand-text,
  .floating-nav .nav-center,
  .floating-nav .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .case-hero-foot .author-link,
  .menu-footer .author-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .case-hero-foot .author-link { font-size: 11px; }
  .case-hero-foot button { min-height: 44px; }
  .menu-chapter-picker select { font-size: 16px; }
  .dialog-head > button { min-width: 44px; min-height: 44px; }

  #reader .reader-bar {
    gap: 8px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 4px 8px;
  }
  #reader .reader-bar > button,
  #reader .reader-bar > div > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  #reader .reader-bar > button { padding-inline: 4px; }
  #reader .reader-bar > div { gap: 4px; padding-left: 8px; }

  .case-outline nav button > span:first-child { min-width: 0; }
  .case-outline nav .ui-arrow { width: 24px; height: 24px; }

  /* Let the next title shrink beside its portrait, including chapter 08's title. */
  .case-next-copy { min-width: 0; flex: 1; }
  .case-next-copy h2 {
    overflow-wrap: anywhere;
    font-size: clamp(22px, 6.7vw, 29px);
  }
  .case-next-main img { flex-shrink: 0; }
}
