/* Docs Editor — paper-like writing surface */

.docs-editor__shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.docs-editor__title-field {
  margin-bottom: 0;
}

.docs-editor__title-input {
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.25rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.docs-editor__title-input:focus-visible {
  outline: 2px solid var(--accent, #e85d4c);
  outline-offset: 2px;
}

.docs-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  background: var(--surface);
  position: sticky;
  top: 0.5rem;
  z-index: 2;
}

.docs-editor__toolbar-btn {
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.docs-editor__toolbar-btn:hover {
  background: color-mix(in srgb, var(--accent, #e85d4c) 12%, var(--bg));
}

.docs-editor__surface-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  background: var(--bg);
  min-height: 24rem;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 8%, transparent);
}

.docs-editor__surface {
  min-height: 22rem;
  padding: 1.5rem 1.75rem;
  line-height: 1.6;
  outline: none;
}

.docs-editor__surface:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent, #e85d4c) 40%, transparent);
}

.docs-editor__surface h1 {
  font-size: 1.75rem;
  margin: 0.75rem 0 0.5rem;
}

.docs-editor__surface h2 {
  font-size: 1.35rem;
  margin: 0.75rem 0 0.5rem;
}

.docs-editor__surface h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.5rem;
}

.docs-editor__surface blockquote {
  margin: 0.75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: color-mix(in srgb, var(--text) 75%, transparent);
}

.docs-editor__surface ul,
.docs-editor__surface ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.docs-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.docs-editor__statusbar {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  padding: 0.25rem 0;
}

@media print {
  .app-auth-bar,
  .docs-editor__toolbar,
  .docs-editor__actions,
  .tool-nav,
  .tool-breadcrumb,
  .tool-header,
  .tool-privacy-badge,
  .ad-slot {
    display: none !important;
  }

  .docs-editor__surface-wrap {
    border: none;
    box-shadow: none;
  }
}
