/* Manual writing and the three-step publishing workflow. */
.professional-editor [hidden] { display: none !important; }
.professional-editor .chatgpt-workspace-launch { justify-self: start; align-self: start; width: fit-content; max-width: 100%; margin: 0 0 8px; }
.professional-editor .editor-step-heading { display: grid; gap: 12px; }
#editor-dialog .editor-page-shell { max-width: 1280px; margin-inline: auto; }
#editor-dialog .professional-editor .editor-content-step-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
#editor-dialog .professional-editor .editor-content-sidebar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; position: static; padding: 0; min-width: 0; }
#editor-dialog .professional-editor .editor-content-sidebar > * { grid-column: auto; min-width: 0; }
#editor-dialog .professional-editor .rich-editor-field { grid-row: auto; }
.professional-editor .editor-content-main { min-width: 0; }
#editor-dialog .professional-editor .editor-content-sidebar label,
#editor-dialog .professional-editor .editor-dateline-fields label { font-size: 14px; line-height: 1.5; gap: 8px; min-width: 0; align-content: start; }
#editor-dialog .professional-editor .editor-dateline-fields input { font-size: 16px; line-height: 1.4; height: 48px; min-height: 48px; width: 100%; min-width: 0; padding: 10px 12px; background: white; box-sizing: border-box; }
#editor-dialog .professional-editor .field-hint,
#editor-dialog .professional-editor .editor-status-row,
#editor-dialog .professional-editor .editor-publication-status { font-size: 13px; line-height: 1.55; }
#editor-dialog .professional-editor .editor-step-heading { display: grid; justify-content: stretch; }
#editor-dialog .professional-editor .editor-step-heading h3 { font-size: 18px; }
#editor-dialog .professional-editor .editor-step-heading p { font-size: 13px; }
#editor-dialog .professional-editor .editor-workflow-step,
#editor-dialog .professional-editor .editor-workflow-label,
#editor-dialog .professional-editor .editor-workflow-number,
#editor-dialog .professional-editor .editor-ribbon-tab { font-size: 13px; }
#editor-dialog .professional-editor .rich-editor { min-height: 390px; padding: 28px 32px; }
#editor-dialog .professional-editor .rich-editor-toolbar button i { font-size: 18px; }
/* Keep essential toolbar icons visible even if the icon font is unavailable. */
#editor-dialog .rich-editor-toolbar i:is(.bi-text-left,.bi-text-center,.bi-text-right,.bi-justify,.bi-link-45deg,.bi-eraser,.bi-arrow-counterclockwise,.bi-arrow-clockwise) { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--editor-icon) center / contain no-repeat; mask: var(--editor-icon) center / contain no-repeat; }
#editor-dialog .rich-editor-toolbar i:is(.bi-text-left,.bi-text-center,.bi-text-right,.bi-justify,.bi-link-45deg,.bi-eraser,.bi-arrow-counterclockwise,.bi-arrow-clockwise)::before { display: none; }
#editor-dialog .rich-editor-toolbar .bi-text-left { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-text-left.svg'); }
#editor-dialog .rich-editor-toolbar .bi-text-center { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-text-center.svg'); }
#editor-dialog .rich-editor-toolbar .bi-text-right { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-text-right.svg'); }
#editor-dialog .rich-editor-toolbar .bi-justify { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-justify.svg'); }
#editor-dialog .rich-editor-toolbar .bi-link-45deg { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-link-45deg.svg'); }
#editor-dialog .rich-editor-toolbar .bi-eraser { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-eraser.svg'); }
#editor-dialog .rich-editor-toolbar .bi-arrow-counterclockwise { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-arrow-counterclockwise.svg'); }
#editor-dialog .rich-editor-toolbar .bi-arrow-clockwise { --editor-icon: url('/assets/vendor/bootstrap-icons/editor-arrow-clockwise.svg'); }
#editor-dialog .professional-editor .editor-image-standard :is(strong, span, small),
#editor-dialog .professional-editor .editor-gallery-caption-label,
#editor-dialog .professional-editor .editor-image-drag-handle,
#editor-dialog .professional-editor .editor-image-order-label,
#editor-dialog .professional-editor .editor-image-actions,
#editor-dialog .professional-editor .editor-image-actions button { font-size: 12px; line-height: 1.5; }
#editor-dialog .professional-editor .editor-gallery-caption-label input { font-size: 16px; min-height: 44px; }
#editor-dialog .professional-editor .editor-image-order-controls { grid-template-columns: minmax(0,1fr) 44px auto 44px; }
#editor-dialog .professional-editor .editor-image-order-controls button,
#editor-dialog .professional-editor .editor-image-actions button { min-height: 44px; min-width: 44px; }
#editor-dialog .professional-editor .editor-media-preview-head { align-items: start; flex-direction: column; gap: 4px; }
#editor-dialog .professional-editor .editor-media-preview-head strong { font-size: 15px; }
#editor-dialog .professional-editor .editor-media-preview-head span { font-size: 12px; }
#editor-dialog .professional-editor .editor-final-preview-wrap { max-width: none; }
#editor-dialog .professional-editor .editor-title-field { font-size: 15px; }
#editor-dialog .professional-editor .rich-editor-toolbar button[data-command="bold"],
#editor-dialog .professional-editor .rich-editor-toolbar button[data-command="italic"],
#editor-dialog .professional-editor .rich-editor-toolbar button[data-command="underline"],
#editor-dialog .professional-editor .rich-editor-toolbar button[data-command="insertOrderedList"],
#editor-dialog .professional-editor .rich-editor-toolbar button[data-command="insertUnorderedList"] { font-size: 17px; }
.professional-editor .editor-dateline-helper { border: 1px solid #d7e8f3; border-radius: 9px; background: #f2f9fd; padding: 16px; }
.editor-dateline-helper h4 { color: #0e1f53; font-size: 15px; font-weight: 600; margin: 0; }
.professional-editor .editor-dateline-fields { padding-top: 14px; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; }
.editor-dateline-fields .field-hint, .editor-dateline-status { grid-column: 1/-1; margin: 0; }
.editor-dateline-status { color: #27617f; font-size: 13px; line-height: 1.5; }
.editor-dateline-status:empty { display: none; }
.editor-highlight-picker { min-width: 0; font-size: 14px; }
.editor-highlight-picker p { font-size: 13px; line-height: 1.55; margin: 7px 0; color: #42566e; }
.editor-highlight-words { display: flex; gap: 5px; flex-wrap: wrap; background: #0e1f53; border-radius: 9px; padding: 12px; }
.professional-editor .editor-highlight-words button { border: 1px solid transparent; padding: 6px 7px; background: transparent; color: white; border-radius: 5px; min-height: 40px; max-width: 100%; overflow-wrap: anywhere; font-weight: 700; font-size: 16px; }
.professional-editor .editor-highlight-words button[aria-pressed="true"] { color: #0aaef3; border-color: #0aaef3; background: #132e60; }
.professional-editor .editor-highlight-picker > button { color: #0e1f53; background: white; border: 1px solid #c3d5e7; border-radius: 7px; min-height: 40px; padding: 8px 10px; }
.professional-editor .editor-step-errors { border: 1px solid #b45c66; border-radius: 10px; background: #fff6f7; padding: 14px 18px; color: #65212b; }
.editor-step-errors ul { margin: 8px 0 0; padding-left: 18px; }
.professional-editor .editor-step-errors button { color: #65212b; background: transparent; border: 0; text-align: left; padding: 5px 0; text-decoration: underline; font-size: 14px; }
.professional-editor .editor-media-layout { display: block; }
.editor-step-panel--media .editor-image-crop-frame { cursor: default; touch-action: auto; }
.professional-editor .editor-publication-review { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 22px; }
.professional-editor .editor-final-preview-wrap { min-width: 0; }
.editor-preview-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.professional-editor .editor-preview-actions button, .professional-editor .editor-publication-crop button { border: 1px solid #b9d3e6; color: #0e1f53; background: white; border-radius: 7px; padding: 8px 10px; min-height: 42px; font-size: 13px; }
.professional-editor .editor-preview-actions button[aria-pressed="true"] { background: #e2f5ff; border-color: #007fbd; }
.professional-editor .editor-final-preview-wrap .cover-live-column { display: block; padding: 0; background: transparent; margin: 16px auto; max-width: 440px; }
.professional-editor .editor-final-preview-wrap .cover-live-card { pointer-events: auto; }
.professional-editor .cover-live-card .publication-card-image { cursor: move; touch-action: none; }
.professional-editor .cover-live-card .publication-card-image img { display: block; user-select: none; -webkit-user-drag: none; }
.professional-editor .editor-final-preview-wrap .cover-live-card h3 { font-size: 23px; line-height: 1.25; }
.professional-editor .editor-final-preview-wrap .cover-live-card .publication-summary { font-size: 15px; line-height: 1.55; }
.professional-editor .editor-final-preview-wrap .publication-author-copy strong { font-size: 14px; }
.professional-editor .editor-final-preview-wrap .publication-author-copy > span { font-size: 12px; }
.professional-editor .editor-final-preview-wrap .publication-read { font-size: 14px; }
.editor-publication-position-controls { display: grid; gap: 10px; max-width: 440px; margin: 12px auto; width: 100%; }
.professional-editor .editor-publication-position-controls button { border: 1px solid #b9d3e6; color: #0e1f53; background: white; border-radius: 7px; padding: 8px 12px; min-height: 44px; font-size: 14px; }
.professional-editor .editor-sharing-preview { position: static; min-width: 0; }
.editor-link-preview-copy { background: #f1f6fa; padding: 14px; display: grid; gap: 7px; border: 1px solid #d5e1ed; border-radius: 0 0 10px 10px; }
.editor-link-preview-copy p { margin: 0; font-size: 13px; line-height: 1.6; }
.editor-link-preview-copy small { font-size: 12px; color: #52677f; }
.editor-publication-crops, .editor-final-checks { padding: 16px; border: 1px solid #d5e1ed; border-radius: 10px; background: white; margin-top: 14px; }
.editor-publication-crops > summary, .editor-final-checks > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #0e1f53; }
.editor-publication-crops > p { font-size: 13px; color: #42566e; }
.editor-publication-crop-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.editor-publication-crop { display: grid; gap: 10px; min-width: 0; }
.editor-publication-crop .editor-image-crop-frame { position: relative; aspect-ratio: 16/10; width: 100%; overflow: hidden; touch-action: none; cursor: move; }
.editor-publication-crop .editor-image-crop-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.professional-editor .editor-crop-control { display: grid; gap: 4px; font-size: 13px; }
.professional-editor input[type="range"] { padding: 0; accent-color: #007fbd; min-height: 36px; }
.editor-final-checks { grid-column: 1/-1; }
.editor-final-checks .editor-publication-checklist { margin-top: 14px; }
.professional-editor button:focus-visible, .professional-editor summary:focus-visible { outline: 3px solid #007fbd; outline-offset: 3px; }
@media (max-width: 1050px) {
  #editor-dialog .professional-editor .editor-content-sidebar { grid-template-columns: minmax(0,1fr); }
  .professional-editor .editor-publication-review { grid-template-columns: minmax(0,1fr); }
  .professional-editor .editor-sharing-preview { max-width: 500px; width: 100%; justify-self: center; }
}
@media (max-width: 600px) {
  #editor-dialog .professional-editor .rich-editor { padding: 22px 16px; min-height: 340px; }
  .professional-editor .editor-dateline-fields, .editor-publication-crop-gallery { grid-template-columns: minmax(0,1fr); }
  .professional-editor input:not([type="range"]):not([type="checkbox"]), .professional-editor textarea, .professional-editor select { font-size: 16px; }
  .professional-editor .editor-top-actions { gap: 7px; }
  .professional-editor .editor-top-publish { min-width: 105px; }
  .editor-highlight-words { padding: 8px; }
  .professional-editor .editor-highlight-words button { min-height: 44px; }
}
