/* Study Quest — css/writer-word.css (V7.2.4 "The full study release", lane B, builder v724-writer-word)
 * The writer at Word's level (js/writer-word.js): the zoom control in the bottom bar, and the parts below.
 * Same tokens as css/writer.css (--wr-*, --st-*). Nothing inside .wr-text may start a block formatting context (see the
 * note at the top of writer.css): tables are rows of inline-flex boxes, so the page bands still break them row by row.
 */

/* ---------------------------------------------------------------------------------------------- zoom (bottom bar) */
.ww-zoom { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.wr-root .ww-zoom button.ww-zstep { padding: 3px 0; width: 22px; font-size: 15px; line-height: 1; }
.wr-root .ww-zoom button.ww-zmenu { padding: 3px 6px; font-size: 13px; }
.wr-bottom .wr-esc { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.wr-bottom .wr-esc.is-cut { color: transparent; }   /* fixer-b: no lone "E" when the bar is full (writer-word.js buildZoom) */
.ww-zslider { width: 128px; accent-color: var(--st-ember, #d9773a); cursor: pointer; margin: 0; }
.ww-zpct { width: 58px; font: 600 12px/1 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832;
  border-radius: 3px; padding: 4px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.ww-zpct:focus { outline: none; border-color: var(--st-bronze); }
.ww-zsteps button { min-width: 58px; }
@media (max-width: 760px) { .ww-zslider { width: 70px; } }
@media (max-width: 560px) { .ww-zslider, .wr-root .ww-zoom button.ww-zmenu { display: none; } }
.wr-pop[data-pop="zoom"] { top: auto; bottom: 44px; width: 320px; }

/* ---------------------------------------------------------------------------------------------- the ribbon (tabs) */
.ww-tabs { display: inline-flex; flex: none; gap: 0; margin-right: 6px; }
.wr-root .ww-tabs button.ww-tab { border-radius: 0; margin-left: -1px; padding: 6px 9px; background: transparent; border-color: transparent;
  border-bottom: 2px solid transparent; color: var(--wr-ui-meta); font-weight: 600; }
.wr-root .ww-tabs button.ww-tab:hover { color: #f1eadc; border-color: transparent; border-bottom-color: var(--st-bronze); }
.wr-root .ww-tabs button.ww-tab.is-on { color: #ffd9bd; background: transparent; border-color: transparent; border-bottom-color: var(--st-ember); }
.ww-pane { display: none; align-items: center; gap: 6px; min-width: 0; }
.ww-pane.is-on { display: inline-flex; }
.wr-pop .ww-h4 { font: 700 11px/1 var(--st-title, Cinzel, serif); letter-spacing: .12em; text-transform: uppercase; color: var(--wr-ui-meta); margin: 14px 0 8px; }
.wr-pop .ww-mlist { display: grid; gap: 6px; margin-bottom: 10px; }
.wr-root .wr-pop .ww-mlist button.ww-mbtn { display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.wr-pop .ww-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 6px 0 8px; font: 500 13px/1 var(--st-ui); color: #c9c1b2; }
.wr-pop .ww-mgrid input { width: 64px; text-align: right; }
.wr-pop .ww-err { color: #f0a070; min-height: 0; margin: 0 0 6px; }
.wr-pop .ww-err:empty { display: none; }
.wr-root button.ww-primary { border-color: var(--st-ember); color: #ffd9bd; }
@media (max-width: 900px) { .wr-root .ww-tabs button.ww-tab { padding: 6px 6px; } }

/* ---------------------------------------------------------------------------------------------- styles (Layout) */
.wr-pop.ww-wide { width: 620px; }
.wr-pop .ww-roles { flex-wrap: wrap; margin: 4px 0 12px; }
.wr-root .wr-pop .ww-roles button.ww-dirty::after { content: ' •'; color: var(--st-ember); }
.ww-stgrid { display: grid; gap: 8px; margin-bottom: 12px; }
.ww-strow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 500 13px/1 var(--st-ui); color: #c9c1b2; }
.ww-stlab { width: 96px; flex: none; color: var(--wr-ui-meta); }
.wr-pop .ww-strow select { font: 500 13px/1 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832; border-radius: 3px; padding: 5px 6px; }
.wr-pop input.ww-num { width: 62px; text-align: right; }
.wr-root .wr-pop button.ww-tog { min-width: 30px; padding: 5px 8px; }
.ww-swatches { display: inline-flex; gap: 5px; }
.wr-root .wr-pop button.ww-sw { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: 50%; border: 2px solid #3b3832; }
.wr-root .wr-pop button.ww-sw.is-on { border-color: #ffd9bd; box-shadow: 0 0 0 2px var(--st-ember); }
.ww-stprev { background: #0f0e0d; padding: 10px; border-radius: 3px; margin-bottom: 10px; }
.ww-stsheet { background: #f4ecdb; color: #211a12; padding: 14px 18px; max-height: 230px; overflow: auto; border-radius: 2px; }
.ww-stp { margin: 0; }
.ww-stp.is-on { outline: 1px dashed rgba(217,119,58,.6); outline-offset: 2px; }
.ww-stacts { margin-top: 4px; }

/* ---------------------------------------------------------------------------------------------- find & replace */
.ww-find { position: absolute; z-index: 4; top: 92px; right: 26px; background: #171614; border: 1px solid #3b3832; border-radius: 4px;
  padding: 8px; box-shadow: 0 8px 26px rgba(0,0,0,.5); display: grid; gap: 6px; max-width: calc(100% - 52px); }
.ww-find.hidden { display: none; }
.ww-frow { display: flex; align-items: center; gap: 5px; }
.ww-frep { display: none; }
.ww-find.ww-rep .ww-frep { display: flex; }
.ww-fq { width: 220px; font: 400 14px/1.3 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832; border-radius: 3px; padding: 5px 8px; min-width: 0; }
.ww-fq:focus { outline: none; border-color: var(--st-bronze); }
.ww-fcount { min-width: 64px; font-size: 12px; }
.wr-root .ww-find button { padding: 5px 8px; }
.wr-root .ww-find button.ww-fx { padding: 5px 7px; }
::highlight(ww-find) { background-color: rgba(243, 196, 76, .45); color: inherit; }
::highlight(ww-find-cur) { background-color: rgba(243, 148, 51, .85); color: #1a1208; }
@media (max-width: 700px) { .ww-find { left: 8px; right: 8px; top: 86px; } .ww-fq { width: auto; flex: 1 1 auto; } .wr-root .ww-find button.ww-ftog:not(.is-on) { display: none; } }

/* ---------------------------------------------------------------------------------------------- tables */
/* rows are inline-flex boxes (one per line, as wide as the column): the page bands move a whole row to the next page,
   like Word; nothing here starts a block formatting context in the text column itself */
.wr-text .wr-table { margin: 0 0 var(--wr-pa, .6em); padding: 0; line-height: 0; }
.wr-text .wr-tr { display: inline-flex; width: 100%; vertical-align: top; align-items: stretch; line-height: normal; }
.wr-text .wr-td { flex: none; box-sizing: border-box; padding: 0 7px; min-height: 1.2em; line-height: 1.15; overflow-wrap: anywhere; }
.wr-text .wr-td > p, .wr-text .wr-td > h1, .wr-text .wr-td > h2, .wr-text .wr-td > h3, .wr-text .wr-td > blockquote { margin-top: 0; margin-bottom: 0; }
.wr-text .ww-bd .wr-td { border-right: 1px solid #211a12; border-bottom: 1px solid #211a12; }
.wr-text .ww-bd .wr-tr:first-child .wr-td { border-top: 1px solid #211a12; }
.wr-text .ww-bd .wr-td:first-child { border-left: 1px solid #211a12; }
.wr-text .ww-nobd .wr-td { outline: 1px dashed rgba(33, 26, 18, .18); outline-offset: -1px; }
.wr-text .wr-td.ww-vmc > * { visibility: hidden; }
.wr-text .ww-bd .wr-td[data-vm="r"], .wr-text .ww-bd .wr-td.ww-vmc { border-bottom-color: transparent; }
/* Word gives a table style's paragraph spacing (Table Grid: none after, single) to cell paragraphs in the body style */
.wr-root.is-wordview .wr-text .ww-bd .wr-td > p:not([data-st]), .wr-root.is-wordview .wr-text .ww-bd .wr-td > p[data-st="Normal"] { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.15 !important; }
.wr-root .ww-tabs button.ww-tab.ww-ctx { color: #e3b562; }
.wr-root .ww-tabs button.ww-tab.hidden { display: none; }
.ww-tpick { display: grid; grid-template-columns: repeat(10, 22px); gap: 3px; margin: 4px 0 10px; }
.wr-root .wr-pop button.ww-tcell { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: 2px; background: #0f0e0d; }
.wr-root .wr-pop button.ww-tcell.is-on { background: #6b3a1c; border-color: var(--st-ember); }

/* ---------------------------------------------------------------------------------------------- pictures, captions */
.wr-text p[data-jc="center"] { text-align: center !important; text-indent: 0 !important; }
.wr-text .wr-img { cursor: pointer; }
.wr-text .wr-img img { display: inline-block; vertical-align: bottom; }
.wr-text p.wr-caption { font-style: italic; font-size: .75em; color: #44546a; margin: 0 0 1em; }
.wr-root.is-wordview .wr-text p.wr-caption:not([data-st]) { --wf: "Times New Roman"; font-style: italic !important; font-size: 9pt !important; color: #44546a !important; padding-bottom: 10pt !important; }
.wr-text .ww-seq { -webkit-user-modify: read-only; }
.wr-pop .ww-check { display: flex; align-items: center; gap: 6px; font: 500 13px/1.3 var(--st-ui); color: #c9c1b2; margin-top: 6px; }
.wr-pop select.ww-sel { font: 500 13px/1 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832; border-radius: 3px; padding: 6px; }

/* ---------------------------------------------------------------------------------------------- table of contents */
.wr-text .ww-toc { position: relative; margin: 0 0 1em; padding: 0; background: transparent; border: 0; }
.wr-root.is-wordview .wr-text .ww-toc { font: 400 var(--wz, 12pt)/1.15 var(--wf, "Times New Roman", serif); }
.wr-text .ww-toc .wr-row { display: flex; align-items: baseline; gap: 0; border: 0 !important; background: none !important; margin: 0; padding-top: 0; }
.wr-text .ww-toc .ww-toctitle { font-size: 16pt; color: #2f5496; margin-bottom: 6pt; }
.wr-text .ww-toc .ww-tocrow { cursor: pointer; padding: 0 0 5pt; }
.wr-text .ww-toc .ww-toc2 { padding-left: 12pt; }
.wr-text .ww-toc .ww-toc3 { padding-left: 24pt; }
.wr-text .ww-toc .ww-tocrow:hover .ww-toct { text-decoration: underline; }
.wr-text .ww-toc .ww-tocdots { flex: 1 1 auto; align-self: stretch; margin: 0 3px; min-width: 12px;
  background-image: radial-gradient(circle, rgba(33, 26, 18, .8) 0.9px, transparent 1.2px); background-size: 6px 6px; background-repeat: repeat-x; background-position: 0 calc(100% - 0.28em); }
.wr-text .ww-toc .ww-tocempty { font-style: italic; color: #6b5f4f; }
.wr-text .ww-tocbar { position: absolute; right: 0; top: -2px; display: none; gap: 4px; z-index: 1; }
.wr-text .ww-toc:hover .ww-tocbar, .wr-text .ww-bib:hover .ww-tocbar { display: flex; }
.wr-text button.ww-tocbtn { font: 600 11px/1 var(--st-ui); padding: 4px 7px; color: #f1eadc; background: #2b2722; border: 1px solid #4a443b; border-radius: 3px; cursor: pointer; }

/* ---------------------------------------------------------------------------------------------- comments */
.ww-cpanel { display: none; }
.wr-root.ww-cp-on { grid-template-columns: 236px minmax(0, 1fr) 300px; }
.wr-root.ww-cp-on .wr-top, .wr-root.ww-cp-on .wr-strip, .wr-root.ww-cp-on .wr-bottom { grid-column: 1 / -1; }
.wr-root.ww-cp-on .ww-cpanel { display: block; grid-column: 3; grid-row: 3; background: var(--wr-bar); border-left: 1px solid var(--wr-line);
  overflow: auto; min-height: 0; padding: 12px 12px 30px; }
.wr-root.is-focus.ww-cp-on { grid-template-columns: 0 minmax(0, 1fr) 0; }
.wr-root.is-focus .ww-cpanel { display: none !important; }
@media (max-width: 760px), (max-height: 520px) {
  .wr-root.ww-cp-on { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .wr-root.ww-cp-on .ww-cpanel { position: absolute; right: 0; top: 72px; bottom: 28px; width: min(300px, 80vw); z-index: 4; box-shadow: -6px 0 18px rgba(0,0,0,.45); }
}
.ww-cphead { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ww-cphead h4 { flex: 1 1 auto; margin: 0; font: 700 11px/1 var(--st-title, Cinzel, serif); letter-spacing: .14em; color: var(--wr-ui-meta); text-transform: uppercase; }
.wr-root .ww-cphead button { padding: 5px 8px; }
.ww-cpname { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.ww-cpname input { flex: 1 1 auto; min-width: 0; font: 400 13px/1.3 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832; border-radius: 3px; padding: 4px 6px; }
.ww-cpempty { font: italic 400 13px/1.4 var(--st-ui); color: var(--wr-ui-meta); }
.ww-card { background: #1d1b18; border: 1px solid #34302a; border-left: 3px solid #c9a227; border-radius: 3px; padding: 8px 10px; margin: 0 0 8px; cursor: pointer; }
.ww-card.is-on { border-color: #e3b562; box-shadow: 0 0 0 1px #e3b562 inset; }
.ww-card.ww-reply { margin-left: 16px; border-left-color: #8a7a52; }
.ww-card.ww-done { opacity: .55; border-left-color: #5c5a55; }
.ww-cardh { font: 500 12px/1.3 var(--st-ui); color: #e8e1d3; margin-bottom: 4px; }
.ww-cardt { font: 400 14px/1.4 var(--st-ui); color: #d9d2c4; white-space: pre-wrap; overflow-wrap: anywhere; }
.ww-cardb { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wr-root .ww-cardb button { padding: 3px 7px; font-size: 12px; }
.ww-cta { width: 100%; box-sizing: border-box; min-height: 64px; font: 400 14px/1.4 var(--st-ui); color: #efe8da; background: #0f0e0d; border: 1px solid #3b3832; border-radius: 3px; padding: 6px; resize: vertical; }
.wr-text .ww-cmref { display: inline-block; width: 9px; height: 8px; margin: 0 1px; background: #c9a227; border-radius: 2px 2px 2px 0; vertical-align: super; cursor: pointer; }
.wr-text .ww-cmref::after { content: none !important; }
.wr-text .ww-cm { display: inline; width: 0; }
.wr-text .wr-atom.ww-cm::after { display: none; }
/* the commented words: soft boxes in a layer behind the text (js cmHighlight) */
.ww-cmlayer { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ww-cmbox { position: absolute; background: rgba(233, 196, 106, .34); border-radius: 2px; }
.ww-cmbox.is-on { background: rgba(233, 170, 60, .55); box-shadow: 0 0 0 1px rgba(201, 140, 30, .6); }

/* ---------------------------------------------------------------------------------------------- track changes */
.wr-text ins.ww-ti { text-decoration: underline; text-decoration-color: var(--wwau, #1f6f8b); text-decoration-thickness: 1.5px; color: var(--wwau, #1f6f8b); }
.wr-text del.ww-td { text-decoration: line-through; text-decoration-color: var(--wwau, #8a2414); color: var(--wwau, #8a2414); -webkit-user-modify: read-only; }
.wr-text [data-pm]::after { content: "¶"; margin-left: 2px; font-size: .85em; color: #1f6f8b; }
.wr-text [data-pm*='"k":"del"']::after { color: #8a2414; text-decoration: line-through; }
.wr-root.ww-nomarkup .wr-text del.ww-td, .wr-root.ww-nomarkup .wr-text .wr-del { display: none; }
.wr-root.ww-nomarkup .wr-text ins.ww-ti, .wr-root.ww-nomarkup .wr-text .wr-ins { text-decoration: none; color: inherit; }
.wr-root.ww-nomarkup .wr-text [data-pm]::after { content: none; }
.wr-root button.ww-trk.is-on { border-color: #c0392b; color: #ffd0c4; background: #3a1a14; }
.wr-pop .ww-chtext { font-family: var(--st-read); font-style: italic; }

/* ---------------------------------------------------------------------------------------------- citations, bibliography */
.wr-text .ww-cite { color: inherit; border-bottom: 1px dotted rgba(47, 84, 150, .55); cursor: pointer; -webkit-user-modify: read-only; }
.wr-text .ww-bib { position: relative; margin: 0 0 1em; color: inherit; font-size: inherit; }
.wr-root.is-wordview .wr-text .ww-bib { font: 400 var(--wz, 12pt)/1.15 var(--wf, "Times New Roman", serif); }
.wr-text .ww-bib .wr-row { display: block; border: 0 !important; white-space: normal !important; }
.wr-text .ww-bib .ww-bibtitle { font-size: 16pt; color: #2f5496; margin: 12pt 0 6pt; }
.wr-text .ww-bib .ww-bibrow { padding: 0 0 8pt 36pt; text-indent: -36pt; }
.wr-pop .ww-srclist li { grid-template-columns: 1fr auto; }
.wr-pop .ww-srcbtns { display: inline-flex; gap: 4px; }
.wr-root .wr-pop .ww-srcbtns button { padding: 4px 8px; font-size: 12px; }
.wr-pop .ww-srcform { margin-top: 10px; border-top: 1px solid #26231f; padding-top: 4px; }
.wr-pop .ww-srcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 8px; }
.wr-pop .ww-srcgrid label { display: grid; gap: 3px; }
.wr-pop .ww-srcgrid input { width: 100%; box-sizing: border-box; }

.wr-root .wr-pop input::placeholder, .wr-root .wr-pop textarea::placeholder, .wr-root .ww-cpanel input::placeholder, .wr-root .ww-find input::placeholder { color: #6f685d; opacity: 1; }
.wr-strip select.ww-langsel { 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; }
/* a tab with many buttons scrolls sideways inside the strip (never the window) */
.ww-pane.is-on { min-width: 0; overflow-x: auto; overflow-y: hidden; flex: 0 1 auto; scrollbar-width: none; }
.ww-pane.is-on::-webkit-scrollbar { display: none; }
.ww-pane > * { flex: none; }

/* ---------------------------------------------------------------------------------------------- the print layout (PDF) */
#ww-print.ww-printroot { position: absolute; left: -100000px; top: 0; right: auto; bottom: auto; inset: auto; display: block; width: auto; height: auto;
  background: #fff; z-index: -1; overflow: visible; grid-template-columns: none; grid-template-rows: none; }
#ww-print .wr-desk { overflow: visible; background: #fff; position: relative; }
#ww-print .wr-sheet { background: #fff; box-shadow: none; color: #000; }
#ww-print .wr-text { color: #000; }
#ww-print .wr-hdr, #ww-print .wr-ftr, #ww-print .wr-pgno, #ww-print .wr-fnarea { color: #000; }
#ww-print .wr-atom.wr-mark::after, #ww-print .wr-keep-note { display: none; }
#ww-print .wr-fnarea p:hover { background: none; }
/* R10 (v724-late): "Include comments and tracked changes" = Word's Print Markup: the page a little smaller on the left of the
   same paper, the comments in a column beside it (js/writer-word.js markupPapers) */
.wr-pop .ww-pdfmk { display: flex; align-items: center; gap: 6px; font: 500 13px/1.3 var(--st-ui); color: var(--wr-ui-text); cursor: pointer; margin-top: 4px; }
.wr-pop .ww-pdfmk input { margin: 0; accent-color: #c9a227; }
/* fixer-b: plain paged prints (js/writer-word.js pdfSheets: a chapter's cards): A4 sheets stacked with no gap, so every sheet
   is one PDF page (no forced breaks, as the writer's own layout); the margins are inside the sheet */
#ww-print.ww-sheetsroot { width: 595.3pt; }
#ww-print .ww-sheet { width: 595.3pt; height: 841.9pt; box-sizing: border-box; padding: 20mm 18mm; background: #fff; color: #111; overflow: hidden; position: relative; }
#ww-print .ww-sheetbox { height: 100%; overflow: hidden; }
#ww-print .ww-sblock { break-inside: avoid; }
#ww-print .ww-papers { position: relative; background: #fff; }
#ww-print .ww-paper { position: relative; overflow: hidden; background: #fff; }
#ww-print .ww-pwin { position: absolute; left: 0; top: 0; overflow: hidden; background: #fff; }
#ww-print .ww-pwin .wr-sheet { box-shadow: none; outline: 1px solid #d8d4cc; }
#ww-print .ww-pcol { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #c9c2b4; padding: 0 0 0 8px; box-sizing: border-box; }
#ww-print .ww-pcm { position: absolute; left: 8px; right: 6px; background: #fbf3d9; border: 1px solid #d9b85a; border-left: 3px solid #c9a227; border-radius: 3px;
  padding: 4px 6px; font: 400 9pt/1.3 Georgia, "Times New Roman", serif; color: #222; box-sizing: border-box; }
#ww-print .ww-pcm.is-reply { left: 18px; border-left-color: #8a7a52; }
#ww-print .ww-pcm.is-done { opacity: .6; }
#ww-print .ww-pcmh { font: 600 8pt/1.2 Arial, sans-serif; color: #5a4a20; margin-bottom: 2px; }
#ww-print .ww-pcmh span { font-weight: 400; color: #7a6a40; }
#ww-print .ww-pcmt { white-space: pre-wrap; overflow-wrap: anywhere; }
#ww-print.ww-printmarkup .wr-text .ww-cmref { display: inline-block; width: 7px; height: 6px; background: #c9a227; vertical-align: super; }
@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; height: auto !important; width: auto !important; }
  body > *:not(#ww-print) { display: none !important; }
  #ww-print.ww-printroot { position: static !important; left: 0 !important; z-index: auto; }
  #ww-print .wr-zoombox { margin: 0 !important; }
}
