/* Sprint 012: compact event editor, email recovery, API help, and feedback orientation. */

/* The left-edge label should read naturally from top to bottom. */
.feedback-edge-tab { transform: translateY(-50%); }

.event-source-switcher {
  margin: 0 0 26px;
  padding: 14px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.event-source-options { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
.event-source-options a,.event-source-options strong,.event-source-options span { font-weight: 850; }
.event-source-options .is-current { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.event-source-options .is-unavailable { opacity: .48; }

.event-editor-compact { display: grid; gap: 14px; }
.event-editor-section {
  border: 0;
  border-top: 3px solid var(--ink);
  padding: 0;
  margin: 0;
}
.event-editor-section > summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0 12px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 900;
  text-transform: uppercase;
}
.event-editor-section > summary::-webkit-details-marker { display: none; }
.event-editor-section > summary::after { content: '+'; font-size: 1.35rem; }
.event-editor-section[open] > summary::after { content: '−'; }
.event-editor-section > summary .section-summary-note {
  margin-left: auto;
  font-family: var(--serif);
  font-size: .75rem;
  font-weight: 650;
  text-transform: none;
  opacity: .68;
}
.event-editor-section-body { padding: 4px 0 24px; }
.event-editor-section .editor-grid { margin: 0; }
.event-editor-section .editor-section { border: 0; padding: 0; margin: 0; }
.event-editor-section .recurrence-fields { margin-top: 12px; }

.event-editor-finish {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 20px 0 4px;
  border-top: 3px solid var(--ink);
}
.event-editor-finish .form-actions { margin: 0; }
.appearance-preview-launcher.compact-preview { border: 0; margin: 0; padding: 0; }

.recovery-page { max-width: 720px; margin-inline: auto; }
.recovery-page h1 { max-width: 10ch; }
.recovery-form { max-width: 600px; }

.email-settings-grid { display: grid; grid-template-columns: 1fr 150px; gap: 16px 22px; }
.email-settings-grid .wide-field { grid-column: 1 / -1; }
.email-test-panel { border-top: 2px solid var(--ink); margin-top: 26px; padding-top: 22px; }
.email-test-panel h3 { margin-top: 0; }

.api-help-page { max-width: 1050px; }
.api-help-jump { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.api-help-jump a { color: var(--ink); font-weight: 850; }
.api-help-page pre { overflow-x: auto; padding: 14px 16px; border-left: 7px solid var(--sky); background: rgba(0,0,0,.045); white-space: pre-wrap; overflow-wrap: anywhere; }
.api-help-page code { font-size: .88em; }
.api-help-page h3 { margin-top: 24px; }

@media (max-width: 720px) {
  .event-source-options { display: grid; gap: 11px; }
  .event-editor-section > summary { align-items: center; }
  .event-editor-section > summary .section-summary-note { display: none; }
  .event-editor-finish { display: grid; }
  .email-settings-grid { grid-template-columns: 1fr; }
  .email-settings-grid .wide-field { grid-column: auto; }
}
