/* Editor-only styles paired with af-editor.js. */
.application-document-actions .outline-navigation { align-items: center; gap: .3rem; }
.application-document-actions .outline-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2rem;
  padding: .25rem .55rem;
  line-height: 1.25;
  white-space: nowrap;
}
.application-document-actions .outline-navigation .outline-step { width: 2rem; min-width: 2rem; padding-inline: .25rem; }
.application-document-actions .outline-reference { margin-inline-start: .35rem; }
.workspace-view-well .formatting-toggle { display: inline-grid; place-items: center; flex: 0 0 2rem; width: 2rem; min-height: 2rem; padding: .25rem; }
.workspace-view-well .formatting-toggle[hidden], .continuous-formatting[hidden] { display: none; }
.continuous-formatting { margin-block-end: .45rem; }
.continuous-view-tools { margin-block-end: .65rem; }
@media (max-width: 1100px) {
  .application-document-actions.actions-open .outline-navigation { align-items: stretch; }
  .application-document-actions.actions-open .outline-navigation .outline-step { width: auto; justify-content: flex-start; }
  .application-document-actions.actions-open .outline-navigation .outline-step .visually-hidden { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }
  .application-document-actions.actions-open .outline-reference { margin-inline-start: 0; }
}
.af-editor-surface {
  min-height: 260px;
  line-height: 1.65;
  font-size: 1.08rem;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.af-editor-surface:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent);
}

.af-bold { font-weight: 700; }
.af-italic { font-style: italic; }
.af-underline { text-decoration: underline; }
.af-strike { text-decoration: line-through; }
.af-mark-for-deletion { text-decoration: line-through; text-decoration-thickness: .12em; text-decoration-color: #9f2929; }
.af-superscript { vertical-align: super; font-size: .78em; }
.af-subscript { vertical-align: sub; font-size: .78em; }
.af-annotation { background: #ffe69c; color: #2d2412; border-bottom: 2px solid #b66d14; }
.af-footnote-reference { font-size: .78em; vertical-align: super; }
.af-footnote-body { margin: 1.5rem 0 0; padding: .75rem 1rem; border-top: 1px solid #a89c8b; font-size: .9em; }
.af-editor-surface h1,.af-editor-surface h2,.af-editor-surface h3,.af-editor-surface h4,.af-editor-surface h5,.af-editor-surface h6{font-family:Georgia,serif;line-height:1.25;margin:1.2em 0 .45em}.af-editor-surface blockquote{margin:1em 2rem;padding-inline-start:1rem;border-inline-start:4px solid #b86d2c;color:#5b5145}.af-editor-surface pre{white-space:pre-wrap;background:#eee7da;padding:1rem;border-radius:4px;font-family:ui-monospace,monospace}.af-editor-surface hr{border:0;border-top:2px solid #948b7e;margin:2rem auto;width:35%}.af-editor-surface a{color:#704521;text-decoration:underline}

.af-editor-surface ul,
.af-editor-surface ol {
  margin: .35em 0;
  padding-inline-start: 2em;
}

.af-editor-surface li { margin: .15em 0; }
.af-editor-surface li > ul,
.af-editor-surface li > ol {
  margin-top: .35em;
  margin-bottom: .15em;
}

.af-editor-surface table {
  border-collapse: collapse;
  margin: .75em 0;
  min-width: min(320px, 100%);
}

.af-editor-surface td,
.af-editor-surface th {
  min-width: 88px;
  min-height: 34px;
  border: 1px solid #948b7e;
  padding: 8px 10px;
  vertical-align: top;
}

.af-editor-surface td[data-af-cell-selected="1"],
.af-editor-surface th[data-af-cell-selected="1"] {
  box-shadow: inset 0 0 0 2px #b86d2c;
  background: #f6dfbd;
}

[data-af-marker-kind] {
  display: inline-block;
  width: 0;
  height: 0;
  overflow: hidden;
  line-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.af-editor-toolbar {
  overflow-x: auto;
  scrollbar-width: thin;
}

.af-editor-toolbar button {
  min-width: 2.15rem;
  white-space: nowrap;
}
.af-editor-toolbar .block-type-select{width:auto;min-width:8.5rem;background-color:#25282d;border-color:#3d4249;color:#ddd}

.af-editor-toolbar button[aria-pressed="true"] {
  color: #fff;
  background: #3a3028;
  box-shadow: inset 0 -2px var(--accent);
}

.af-editor-toolbar button:disabled { opacity: .35; }
.af-editor-toolbar .toolbar-divider { flex: 0 0 1px; height: 1.4rem; }
.af-editor-toolbar .toolbar-symbol { font: 700 .8rem/1 Georgia, serif; }

/* Desktop synthesis overrides: the toolbar is one stable row with grouped menus. */
.af-editor-toolbar { overflow: visible; }
.af-editor-toolbar .block-type-select {
  width: auto;
  min-width: 8.5rem;
  background-color: #fffdf8;
  border-color: #c8c0b4;
  color: #26231f;
}
.af-editor-toolbar button { min-width: 40px; min-height: 40px; }
.af-editor-toolbar button[aria-pressed="true"] {
  color: #193b4c;
  background: #dce9ef;
  box-shadow: inset 0 -3px #365f73;
}
.af-editor-toolbar button:disabled { opacity: .55; }
.editor-paper.af-editor-surface {
  font-family: var(--editor-font-family, Georgia, "Times New Roman", serif);
  font-size: calc(var(--editor-base-size, 18px) * var(--editor-zoom, 1));
  line-height: var(--editor-line-height, 1.7);
}

.af-editor-surface [data-af-alignment="left"] { text-align: left; }
.af-editor-surface [data-af-alignment="center"] { text-align: center; }
.af-editor-surface [data-af-alignment="right"] { text-align: right; }
.af-editor-surface [data-af-alignment="justify"] { text-align: justify; }
.af-editor-surface [data-af-keep-with-next="true"] { break-after: avoid; }
.af-editor-surface .af-tab {
  display: inline-block;
  width: var(--af-tab-width, .5em);
  min-width: 1px;
  height: 1em;
  overflow: hidden;
  vertical-align: baseline;
  white-space: nowrap;
  user-select: all;
}
.af-editor-surface .af-tab::before {
  color: color-mix(in srgb, currentColor 45%, transparent);
  content: "";
}
.show-invisibles .af-editor-surface .af-tab::before { content: "\2192"; }
.af-editor-surface[data-af-script-format-id] > [data-af-script-element] { overflow-wrap:normal; word-break:normal; }
.af-editor-surface[data-af-script-format-id] > [data-af-script-element]:focus-within { outline:1px dotted color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:3px; }

.af-editor-surface figure.af-document-transclusion {
  display: block;
  max-width: 100%;
  margin: 1.25rem 0;
  padding: .75rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  border-inline-start: 5px solid var(--accent, #365f73);
  border-radius: .35rem;
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82em;
  line-height: 1.45;
  white-space: normal;
}
.af-editor-surface figure.af-document-transclusion figcaption { margin: 0; }
.af-editor-surface figure.af-document-transclusion a { color: inherit; font-weight: 700; text-decoration-thickness: .1em; }
.af-editor-surface figure.af-table-of-contents {
  display: block;
  max-width: 42rem;
  margin: 1.25rem 0;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  border-inline-start: 5px solid var(--accent, #365f73);
  border-radius: .35rem;
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82em;
  line-height: 1.45;
  white-space: normal;
}
.af-editor-surface figure.af-table-of-contents figcaption { margin: 0 0 .4rem; font-weight: 700; }
.af-editor-surface figure.af-table-of-contents ol,
.af-editor-surface figure.af-table-of-contents ul { margin: 0; padding-inline-start: 1.6rem; }
.af-editor-surface figure.af-table-of-contents:focus-visible { outline: 3px solid var(--accent, #365f73); outline-offset: 2px; }
.af-editor-surface [data-af-reference-health="healthy"] { text-decoration-style: solid; }
.af-editor-surface [data-af-reference-health="broken"],
.af-editor-surface figure.af-document-transclusion.af-reference-broken {
  color: #8f1d18;
  border-color: currentColor;
  text-decoration-style: wavy;
}
html[data-color-theme="dark"] .af-editor-surface a { color: #8ed8f5; }
html[data-color-theme="dark"] .af-editor-surface figure.af-document-transclusion a { color: inherit; }
html[data-color-theme="dark"] .af-editor-surface [data-af-reference-health="broken"],
html[data-color-theme="dark"] .af-editor-surface figure.af-document-transclusion.af-reference-broken { color: #ffaaa4; }
@media (forced-colors: active) {
  .af-editor-surface figure.af-document-transclusion,
  .af-editor-surface figure.af-table-of-contents { border-color: CanvasText; background: Canvas; forced-color-adjust: auto; }
  .af-editor-surface [data-af-reference-health="broken"] { color: LinkText; outline: 2px dashed LinkText; outline-offset: 2px; }
}
