/* Study Quest — css/writer.css (V7.2.1 "The writer + Tomeforging", builder v721-writer)
 * The writer on real A4 pages, like Word's page layout (docs/V8-PLAN.md piece B; the user, 15 Oct: "real A4 pages"):
 *   - the desk is the iron of Ember & Iron; each page is a FLAT Vellum sheet (#f4ecdb, ink #211a12 = 14.6:1), no texture
 *     behind text; a bronze hairline and a soft shadow, page breaks with a gap, page numbers and header/footer in the
 *     margins; footnotes at the foot of their page;
 *   - the page is the document's own size and margins (A4 by default: 210 x 297 mm, 2.5 cm margins), at the document's
 *     own text size (12 pt) in the reading face (Iowan Old Style); zoom: fit width / whole page / 100 %;
 *   - text flows round the margins line by line: one float (.wr-bands) with a shape-outside polygon covers every
 *     "bottom margin + gap + top margin" band, so a paragraph breaks across pages exactly like in Word (js/writer-layout.js).
 *     Nothing in the text may start a new block formatting context (no overflow, flex, flow-root, table or block math
 *     inside .wr-text): such a box would jump below the whole float.
 * Tokens: the study look's --st-* (css/study.css, .st-root[data-page="vellum"]).
 */

.wr-root {
  position: fixed; inset: 0; z-index: 995;   /* over the HUD, windows and map cards (990); under dialogs (1000), the boot screen and tooltips */ display: grid;
  grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: 44px 40px minmax(0, 1fr) 34px;
  background: #0d0c0b; color: #e8e1d3; font-family: var(--st-read); -webkit-font-smoothing: antialiased;
  --wr-bar: #121110; --wr-line: #26231f; --wr-btn: #1a1917; --wr-btn-line: #3b3832; --wr-ui-text: #d8d0c1; --wr-ui-meta: #a39c8f;
  --wr-gold: #e3b562;
}
.wr-root.hidden { display: none; }
.wr-root button { font: 600 13px/1 var(--st-ui); color: var(--wr-ui-text); background: var(--wr-btn); border: 1px solid var(--wr-btn-line);
  border-radius: 3px; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
.wr-root button:hover { border-color: var(--st-bronze); color: #f1eadc; }
.wr-root button:focus-visible { outline: 2px solid var(--st-ember); outline-offset: 1px; }
.wr-root button.is-on { border-color: var(--st-ember); color: #ffd9bd; background: #241a12; }
.wr-root button[disabled] { opacity: .45; cursor: default; }
.wr-meta { font: 500 13px/1.35 var(--st-ui); color: var(--wr-ui-meta); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wr-meta b { color: #efe8da; font-weight: 600; }

/* ---------------------------------------------------------------------------------------------- the top bar */
.wr-top { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--wr-bar);
  border-bottom: 1px solid var(--wr-line); min-width: 0; }
.wr-top .wr-title { font: 600 15px/1.2 var(--st-ui); color: #f1eadc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 20em; max-width: 32%; min-width: 7em; flex: 0 1 auto; border: 1px solid transparent; border-radius: 3px; padding: 4px 6px; background: none; }
.wr-top .wr-title:focus { outline: none; border-color: var(--st-bronze); background: #1a1917; }
.wr-top .wr-saved { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.wr-top .wr-grow { flex: 1 1 auto; }
.wr-seg { display: inline-flex; }
.wr-seg button { border-radius: 0; margin-left: -1px; }
.wr-seg button:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
.wr-seg button:last-child { border-radius: 0 3px 3px 0; }
.wr-word-ico { display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; border-radius: 2px;
  background: #2b579a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ---------------------------------------------------------------------------------------------- the format strip */
.wr-strip { grid-column: 1 / 3; grid-row: 2; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #171614;
  border-bottom: 1px solid var(--wr-line); min-width: 0; overflow: hidden; }
.wr-strip select { font: 600 13px/1 var(--st-ui); color: var(--wr-ui-text); background: var(--wr-btn); border: 1px solid var(--wr-btn-line);
  border-radius: 3px; padding: 6px 8px; height: 29px; }
.wr-strip .wr-sep { width: 1px; height: 20px; background: var(--wr-line); margin: 0 4px; flex: none; }
.wr-strip button { padding: 6px 9px; min-width: 30px; }
.wr-strip .wr-b { font-weight: 800; font-family: var(--st-read); font-size: 15px; }
.wr-strip .wr-i { font-style: italic; font-family: var(--st-read); font-size: 15px; font-weight: 500; }
.wr-strip .wr-hint { margin-left: auto; white-space: nowrap; }

/* ---------------------------------------------------------------------------------------------- the side */
.wr-side { grid-column: 1; grid-row: 3; background: var(--wr-bar); border-right: 1px solid var(--wr-line); padding: 16px 12px; overflow: auto; min-height: 0; }
.wr-side h4 { font: 700 11px/1 var(--st-title, Cinzel, serif); letter-spacing: .14em; color: var(--wr-ui-meta); margin: 4px 4px 10px; text-transform: uppercase; }
.wr-side ol { list-style: none; margin: 0 0 18px; padding: 0; font: 500 14px/1.35 var(--st-ui); color: #c9c1b2; }
.wr-side li { padding: 6px 8px; border-left: 2px solid transparent; cursor: pointer; border-radius: 0 2px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-side li:hover { background: rgba(255,255,255,.03); }
.wr-side li.is-here { color: #f1eadc; border-left-color: var(--st-ember); background: rgba(255,138,61,.07); }
.wr-side li.lv2 { padding-left: 20px; font-size: 13px; }
.wr-side li.lv3 { padding-left: 32px; font-size: 13px; color: var(--wr-ui-meta); }
.wr-side li .wr-meta { display: block; font-size: 12px; margin-top: 2px; }
.wr-side .wr-sidebtns { display: grid; gap: 6px; margin: 0 4px 18px; }
.wr-side .wr-sidebtns button { text-align: left; }
.wr-side .wr-empty { font: italic 400 13px/1.4 var(--st-ui); color: var(--wr-ui-meta); padding: 2px 8px 14px; }

/* ---------------------------------------------------------------------------------------------- the desk and the pages */
.wr-desk { grid-column: 2; grid-row: 3; overflow: auto; min-height: 0; background: #0d0c0b; position: relative; }
.wr-zoombox { position: relative; margin: 0 auto; }
.wr-stack { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wr-sheet { position: absolute; left: 0; background: var(--st-page); color: var(--st-text);
  box-shadow: 0 0 0 1px #050505, inset 0 0 0 1px rgba(122, 82, 41, .55), 0 10px 34px rgba(0, 0, 0, .6); }
.wr-hdr, .wr-ftr { position: absolute; font: 400 10.5pt/1.3 var(--st-read); color: var(--st-text-2); white-space: pre-wrap; overflow: hidden; }
.wr-hdr { border-bottom: 0; }
.wr-hdr .r, .wr-ftr .r { float: right; }
.wr-ftr { text-align: center; }
.wr-pgno { font: 500 10pt/1 var(--st-ui); color: var(--st-meta); letter-spacing: .04em; }
.wr-fnarea { position: absolute; font: 400 10pt/1.35 var(--st-read); color: var(--st-text); }
.wr-fnarea::before { content: ""; display: block; width: 33%; height: 0; border-top: 1px solid var(--st-text-2); margin: 0 0 6px; }
.wr-fnarea p { margin: 0 0 3px; padding-left: 1.3em; text-indent: -1.3em; cursor: text; }
.wr-fnarea p:hover { background: rgba(226, 84, 31, .06); }
.wr-fnarea sup { font: 700 .72em/1 var(--st-ui); color: #9a3a12; margin-right: .35em; }
.wr-flowbox { position: absolute; }
.wr-bands { float: left; width: 100%; pointer-events: none; }

/* the text itself (12 pt = 16 px at 100 %) */
.wr-text { white-space: pre-wrap; outline: none; font-size: 12pt; line-height: 1.55; color: var(--st-text); caret-color: #c2410c; min-height: 1.6em;
  font-family: var(--st-read); text-align: left; word-wrap: break-word; hyphens: manual; }
.wr-text ::selection { background: rgba(226, 84, 31, .24); }
.wr-text p, .wr-text li { margin: 0 0 .6em; }
.wr-text p { margin: var(--wr-pb, 0) 0 var(--wr-pa, .6em); }   /* V7.2.1 fixer: the document's own paragraph spacing (writer.js applyLook) */
.wr-text.is-loading { cursor: progress; }
.wr-text h1 { font: 700 1.55em/1.22 var(--st-read); margin: .5em 0 .4em; letter-spacing: -.005em; }
.wr-text h2 { font: 700 1.25em/1.28 var(--st-read); margin: .9em 0 .35em; }
.wr-text h3 { font: 700 1.06em/1.35 var(--st-read); margin: .8em 0 .3em; font-style: italic; }
.wr-text h1:first-child, .wr-text h2:first-child { margin-top: 0; }
.wr-text p.wr-title-p { font: 700 2em/1.15 var(--st-read); margin: 0 0 .3em; }
.wr-text p.wr-sub-p { font: 400 1.05em/1.4 var(--st-ui); color: var(--st-text-2); margin: 0 0 1.4em; }
/* a quote: indented, italic, a bronze opening mark on its first line (no border: a border would cross the page gap) */
.wr-text blockquote, .wr-text p.wr-quote { margin: .7em 2.2em .8em 2.2em; font-style: italic; color: var(--st-text-2); }
.wr-text blockquote::first-line { color: var(--st-text-2); }
.wr-text p.wr-quote::before { content: "\201C"; font: 700 1.6em/0 var(--st-read); color: #7a5229; margin-left: -.6em; margin-right: .05em; vertical-align: -.32em; }
.wr-text ul, .wr-text ol { margin: 0 0 .6em; padding-left: 1.6em; }
.wr-text li { margin-bottom: .25em; }
.wr-text li::marker { color: #7a5229; }
.wr-text li[data-lvl="1"] { margin-left: 1.6em; }
.wr-text li[data-lvl="2"] { margin-left: 3.2em; }
.wr-text li[data-lvl="3"] { margin-left: 4.8em; }
.wr-text [data-align="center"] { text-align: center; }
.wr-text [data-align="right"] { text-align: right; }
.wr-text [data-align="both"] { text-align: justify; }
.wr-text sup.wr-fn { font: 700 .66em/1 var(--st-ui); color: #9a3a12; padding: 0 .08em; cursor: pointer; vertical-align: super; -webkit-user-modify: read-only; }
.wr-text sup.wr-fn:hover { background: rgba(226, 84, 31, .12); }
.wr-text .wr-cite { color: var(--st-text); border-bottom: 1px dotted #9a7a50; }
.wr-text math { font-family: var(--st-math); font-size: 1.08em; }
.wr-text .wr-math { -webkit-user-modify: read-only; cursor: pointer; padding: 0 .1em; border-radius: 2px; }
.wr-text .wr-math:hover { background: rgba(226, 84, 31, .08); }
.wr-text p.wr-mathp { text-align: center; margin: .5em 0 .7em; }
.wr-text p.wr-mathp math { font-size: 1.16em; }
/* a part the writer keeps exactly as Word wrote it (a table, a picture, a field, a tracked change): shown, never rewritten */
.wr-text .wr-atom { -webkit-user-modify: read-only; color: var(--st-text-2); }
.wr-text .wr-atom.wr-ins { color: #1f5e4f; text-decoration: underline; text-decoration-color: #2f7a68; }
.wr-text .wr-atom.wr-del { color: #8a2414; text-decoration: line-through; }
.wr-text .wr-atom.wr-mark { display: inline-block; width: 0; overflow: visible; }
.wr-text .wr-atom.wr-mark::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: -2px; transform: rotate(45deg) translateY(-.2em);
  background: #b58a3c; opacity: .75; }
.wr-text .wr-atom.wr-comment::after { background: #2f5a9a; }
.wr-text .wr-atom.wr-hidden-mark::after { display: none; }
.wr-text .wr-atom img { max-width: 100%; vertical-align: bottom; }
.wr-text .wr-keep { -webkit-user-modify: read-only; margin: .4em 0 .8em; padding: 0; color: var(--st-text-2); font-size: .92em; }
.wr-text .wr-keep .wr-keep-note { display: block; font: 500 11px/1.3 var(--st-ui); letter-spacing: .03em; color: var(--st-meta); margin: 0 0 4px; }
.wr-text .wr-keep .wr-row { display: block; border-top: 1px solid #c9b48a; white-space: nowrap; }
.wr-text .wr-keep .wr-row:last-child { border-bottom: 1px solid #c9b48a; }
.wr-text .wr-keep .wr-cell { display: inline-block; vertical-align: top; white-space: normal; padding: 3px 6px; box-sizing: border-box; }
.wr-text .wr-pagebreak { -webkit-user-modify: read-only; display: block; height: 0; }
.wr-text .is-current { }
.wr-root.is-focus .wr-text > *:not(.is-current) { color: var(--st-text-2); }
.wr-root.is-focus .wr-text > .is-current { color: var(--st-text); }

/* ---------------------------------------------------------------------------------------------- the status line */
.wr-bottom { grid-column: 1 / 3; grid-row: 4; display: flex; align-items: center; gap: 22px; padding: 0 16px; background: var(--wr-bar);
  border-top: 1px solid var(--wr-line); min-width: 0; white-space: nowrap; overflow: hidden; }
.wr-goal { display: inline-flex; align-items: center; gap: 10px; }
.wr-goal .wr-bar { width: 150px; height: 4px; background: #3a342c; border-radius: 2px; overflow: hidden; flex: none; }
.wr-goal .wr-bar > i { display: block; height: 100%; width: var(--v, 0%); background: linear-gradient(90deg, #d0601c, #f39433); }
.wr-bottom .wr-grow { flex: 1 1 auto; }
.wr-bottom .wr-tf { color: var(--wr-gold); }
.wr-bottom .wr-esc { color: var(--wr-ui-meta); }

/* ---------------------------------------------------------------------------------------------- focus mode */
.wr-root.is-focus { grid-template-columns: 0 minmax(0, 1fr); grid-template-rows: 0 0 minmax(0, 1fr) 34px; }
.wr-root.is-focus .wr-top, .wr-root.is-focus .wr-strip, .wr-root.is-focus .wr-side { visibility: hidden; overflow: hidden; border: 0; padding: 0; }
.wr-root.is-focus .wr-bottom { opacity: .72; }
.wr-root.is-focus .wr-bottom:hover { opacity: 1; }
.wr-root .wr-focusexit { display: none; }
.wr-root.is-focus .wr-focusexit { display: inline-block; }

/* ---------------------------------------------------------------------------------------------- pop-overs (versions, export, notes, formulas) */
.wr-pop { position: absolute; z-index: 5; right: 14px; top: 50px; width: 420px; max-height: calc(100% - 110px); overflow: auto; background: #171614;
  border: 1px solid #3b3832; box-shadow: 0 0 0 1px #050505, inset 0 0 0 1px rgba(122, 82, 41, .5), 0 18px 50px rgba(0,0,0,.7); border-radius: 3px; padding: 14px 16px; }
.wr-pop.hidden { display: none; }
.wr-pop h3 { font: 700 13px/1 var(--st-title, Cinzel, serif); letter-spacing: .12em; text-transform: uppercase; color: #d8d0c1; margin: 2px 0 12px; }
.wr-pop p { font: 400 14px/1.45 var(--st-ui); color: #c9c1b2; margin: 0 0 10px; }
.wr-pop .wr-row2 { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; flex-wrap: wrap; }
.wr-pop input[type=text], .wr-pop input[type=number], .wr-pop textarea { font: 400 14px/1.4 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832;
  border-radius: 3px; padding: 7px 9px; width: 100%; box-sizing: border-box; }
.wr-pop textarea { min-height: 84px; resize: vertical; font-family: var(--st-read); font-size: 15px; }
.wr-pop .wr-preview { min-height: 40px; padding: 10px; margin: 8px 0 10px; background: var(--st-page); color: var(--st-text); border-radius: 2px; text-align: center; font-size: 18px; }
.wr-pop ol.wr-vers { list-style: none; margin: 0; padding: 0; }
.wr-pop ol.wr-vers li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 4px; border-top: 1px solid #26231f; }
.wr-pop ol.wr-vers li:first-child { border-top: 0; }
.wr-pop ol.wr-vers li.is-sel { background: rgba(255,138,61,.07); }
.wr-pop ol.wr-vers .wr-vt { font: 600 14px/1.3 var(--st-ui); color: #efe8da; }
.wr-pop ol.wr-vers .wr-vs { font: 500 12px/1.3 var(--st-ui); color: #a39c8f; grid-column: 1; }
.wr-pop ol.wr-vers button { grid-row: 1 / 3; grid-column: 2; }
.wr-pop .wr-close { position: absolute; right: 10px; top: 10px; padding: 4px 8px; }
.wr-banner { position: absolute; z-index: 6; left: 50%; top: 92px; transform: translateX(-50%); max-width: 640px; padding: 10px 16px; border-radius: 3px;
  font: 500 14px/1.4 var(--st-ui); color: #f1eadc; background: #241a12; border: 1px solid var(--st-ember); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.wr-banner.hidden { display: none; }
.wr-banner button { margin-left: 10px; }
.wr-drop { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(13, 12, 11, .82); border: 2px dashed var(--st-ember);
  font: 600 20px/1.4 var(--st-ui); color: #f1eadc; pointer-events: none; }
.wr-drop.hidden { display: none; }

/* V7.2.1 fixer: middle-sized windows (1024 x 700): the bottom line fits (the Esc hint and the goal bar give way first) */
@media (max-width: 1180px) {
  .wr-bottom { gap: 14px; padding: 0 12px; }
  .wr-bottom .wr-esc { display: none; }
  .wr-goal .wr-bar { width: 80px; }
}

/* ---------------------------------------------------------------------------------------------- small windows (480 x 360 and below) */
@media (max-width: 760px), (max-height: 520px) {
  .wr-root { grid-template-columns: 0 minmax(0, 1fr); grid-template-rows: 38px 34px minmax(0, 1fr) 28px; }
  .wr-side { visibility: hidden; padding: 0; border: 0; }
  .wr-top { gap: 6px; padding: 0 8px; }
  .wr-top .wr-title { min-width: 4em; }   /* V7.8 lead (finish-r7 F2): the new close X took room: the title gives way first at 480 */
  .wr-top .wr-saved, .wr-top .wr-hide-s, .wr-strip .wr-hint, .wr-strip .wr-hide-s { display: none; }
  .wr-root button { padding: 5px 7px; font-size: 12px; }
  .wr-strip { gap: 4px; padding: 0 8px; }
  .wr-strip select { height: 25px; padding: 3px 4px; font-size: 12px; }
  .wr-bottom { gap: 12px; padding: 0 8px; }
  .wr-bottom .wr-hide-s { display: none; }
  .wr-goal .wr-bar { width: 60px; }
  .wr-meta { font-size: 12px; }
  .wr-pop { left: 8px; right: 8px; width: auto; top: 40px; }
}
/* list levels (Tab / Shift+Tab): Word's usual marks for the deeper levels */
.wr-text ul li[data-lvl="1"] { list-style-type: circle; }
.wr-text ul li[data-lvl="2"] { list-style-type: square; }
.wr-text ol li[data-lvl="1"] { list-style-type: lower-alpha; }
.wr-text ol li[data-lvl="2"] { list-style-type: lower-roman; }

/* ---------------------------------------------------------------------------------------------- V7.2.3 fonts lane
 * Word layout (.is-wordview): every paragraph in the file's own font, size, line height, space before / after and
 * indents (CSS variables writer.js sets per paragraph from the file's styles: --wf font, --wz size, --wl line height,
 * --wsb / --wsa space before / after (padding: Word adds them, no collapsing), --wil / --wir / --wti indents); a run with a
 * font or size of its own (.wr-wf) carries its own. Reading (no class) is the calm book face as before. */
.wr-viewslot { display: inline-flex; }
.wr-root.is-wordview .wr-text { hyphens: var(--wdh, manual); -webkit-hyphens: var(--wdh, manual); }
.wr-root.is-wordview .wr-text > *, .wr-root.is-wordview .wr-text li, .wr-root.is-wordview .wr-text blockquote > *,
.wr-root.is-wordview .wr-text div > p {
  font-family: var(--wf, "Times New Roman", serif); font-size: var(--wz, 12pt); line-height: var(--wl, 1.15);
  font-weight: var(--wb, 400); font-style: var(--wi, normal); text-transform: var(--wtt, none); font-variant: var(--wfv, normal);
  letter-spacing: var(--wls, normal); text-align: var(--wjc, left); text-indent: var(--wti, 0);
  margin: 0; padding: var(--wsb, 0) var(--wir, 0) var(--wsa, 0) var(--wil, 0); color: var(--wco, var(--st-text));   /* v723f trim: + the style's colour */
  hyphens: var(--wh, manual); -webkit-hyphens: var(--wh, manual); }
.wr-root.is-wordview .wr-text ul, .wr-root.is-wordview .wr-text ol, .wr-root.is-wordview .wr-text blockquote {
  margin: 0; padding: 0; font: inherit; font-style: normal; color: var(--st-text); }
.wr-root.is-wordview .wr-text li { padding-left: 0; margin-left: var(--wil, 36pt) !important; list-style-position: outside; }
.wr-root.is-wordview .wr-text .wr-wf { font-family: var(--wf); font-size: var(--wz); line-height: var(--wl); }
.wr-root.is-wordview .wr-text p.wr-quote::before { content: none; }
.wr-root.is-wordview .wr-text .wr-keep { margin: 0; font: 400 var(--wz, 12pt)/1.15 var(--wf, "Times New Roman", serif); }
.wr-root.is-wordview .wr-text .wr-keep .wr-keep-note { display: none; }
.wr-root.is-wordview .wr-text math { font-size: 1em; }
.wr-root.is-wordview .wr-text p.wr-mathp { text-align: var(--wjc, center); }
.wr-root.is-wordview .wr-fnarea { font-family: var(--wnf, "Times New Roman", serif); font-size: var(--wnz, 10pt); line-height: var(--wnl, 1.15); }
.wr-root.is-wordview .wr-fnarea::before { height: var(--wnsep, 15px); margin: 0; border: 0;
  background: linear-gradient(var(--st-text-2), var(--st-text-2)) 0 50% / 33% 1px no-repeat; }
.wr-root.is-wordview .wr-fnarea p { margin: 0; padding: var(--wnsb, 0) 0 var(--wnsa, 0) 0; text-indent: 0; }
.wr-root.is-wordview .wr-fnarea sup { font: inherit; font-size: .7em; vertical-align: super; line-height: 0; color: inherit; margin-right: .2em; }
.wr-fnmeasure { display: block !important; }

/* the font menu */
.wr-strip .wr-fontbtn { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wr-pop[data-pop="font"] { width: 380px; }
.wr-pop .wr-scope { margin: 0 0 10px; }
.wr-pop .wr-scope button:disabled { opacity: .45; cursor: default; }
.wr-pop select.wr-size { font: 600 13px/1 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832; border-radius: 3px; padding: 5px 6px; }
.wr-pop .wr-fontlists { max-height: 46vh; overflow: auto; border-top: 1px solid #26231f; }
.wr-pop .wr-fontlists h4 { font: 700 11px/1 var(--st-title, Cinzel, serif); letter-spacing: .14em; text-transform: uppercase; color: #a39c8f; margin: 12px 2px 6px; }
.wr-pop button.wr-fontitem { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left;
  background: transparent; border: 0; border-radius: 2px; padding: 6px 6px; color: #efe8da; cursor: pointer; }
.wr-pop button.wr-fontitem:hover, .wr-pop button.wr-fontitem:focus-visible { background: rgba(255, 138, 61, .1); }
.wr-pop .wr-fontface { font-size: 17px; font-weight: 400; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-pop button.wr-fontitem.is-on { background: rgba(255, 138, 61, .07); box-shadow: inset 2px 0 0 var(--st-ember); }   /* v723f trim: the font at the caret */
.wr-pop .wr-fontnote2 { font: 500 11px/1.2 var(--st-ui); color: var(--wr-ui-meta); white-space: nowrap; }   /* "default" */
.wr-pop .wr-fontmissing { margin: 10px 2px 2px; }
.wr-pop .wr-fontdef { font: italic 500 13px/1.3 var(--st-ui); color: #c9c1b2; }
.wr-pop .wr-fonthint { font-size: 13px; color: #b8b0a2; }
.wr-pop .wr-linkbtn { background: none; border: 0; padding: 0; color: #ff9a55; text-decoration: underline; cursor: pointer; font: inherit; }

/* a font the page cannot draw */
.wr-fontnote { position: absolute; z-index: 5; left: 50%; bottom: 46px; transform: translateX(-50%); width: min(720px, calc(100% - 40px));
  box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 3px;
  font: 500 13px/1.4 var(--st-ui); color: #f1eadc; background: #1f1a14; border: 1px solid #6b4a2a; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.wr-fontnote.hidden { display: none; }
.wr-fontnote .wr-fontnote-t { flex: 1; }
.wr-fontnote button { flex: none; }
.wr-fontnote .wr-close { position: static; }
.wr-fontnote button.wr-usetnr { border-color: var(--st-ember); color: #ffd9bd; }   /* v723f trim: the one click */
@media (max-width: 760px), (max-height: 520px) {
  .wr-viewslot { display: none; }   /* the font menu holds the view switch in a small window */
  .wr-strip .wr-fontbtn { max-width: 120px; }
  .wr-fontnote { bottom: 34px; font-size: 12px; padding: 4px 6px 4px 8px; gap: 6px; }
  .wr-fontnote .wr-fontnote-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* v723f fixer: one line */
  .wr-pop[data-pop="font"] { width: auto; }
}
