/* Shared production safeguards for mobile navigation, comic reading and generated assets. */

@media (max-width: 640px) {
  /* The legacy global nav rule hides every nav element. Restore content navigation. */
  .concept-jump-nav,
  .comic-navigation {
    display: flex;
  }
}

.comic-reader-controls {
  display: none;
}

@media (max-width: 900px) {
  .comic-reader-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
  }

  .comic-reader-help {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
  }

  .comic-reader-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 0 0 auto;
  }

  .comic-reader-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
  }

  .comic-reader-button:hover:not(:disabled),
  .comic-reader-button:focus-visible:not(:disabled) {
    border-color: var(--pink);
    background: var(--surface-2);
  }

  .comic-reader-button:disabled {
    opacity: .35;
    cursor: not-allowed;
  }

  .comic-reader-position {
    min-width: 6.5rem;
    text-align: center;
    color: var(--muted);
    font: 900 .75rem/1 ui-monospace, monospace;
  }

  .comic-panels:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
  }
}

@media (max-width: 560px) {
  .comic-reader-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .comic-reader-actions {
    width: 100%;
    justify-content: space-between;
  }
}
