/* Study Quest — ink.css (V7.4 "Towns and home", lane K, builder v74-ink: K2; CONTRACTS c6). GENERATED by
 * work/v9/v74/v74-ink/tools/make-ink-css.py: edit the script, not this file.
 * THE INKWELL'S TONE colours only YOUR WRITING: in the Nauka the Library's editor lines (notes, cards, the scroll), the
 * card table's front and back, and the line you type; in the writer the page text (.wr-text: the tome view). body[data-ink]
 * is set by js/ui-ink.js ("<inkId>" or "grey"; absent = plain Chernila: the books' own ink). Every tone has the PLAIN INK'S
 * LIGHTNESS at each wear stage (the same contrast: >= 7:1 on the page; at Battered and Falling apart the faded ink's, so
 * BOOK-WEAR's floors hold); grey is >= 7:1 on the clean page. NEVER: practice (#st-layer, its editor panel .pr-panel),
 * the Opsada (the exams tab), the Letopis, the Azbuka, the exports, the .docx (it is made from the document, never from
 * the screen). tests/ink.test.js reads this file and measures every tone.
 * @paper #f4ecdb · @pot-words 5000
 */
/* tamna */
body[data-ink="tamna"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #0f1b30; --nk-ink-2: #35425b; }
body[data-ink="tamna"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #4d586d; --nk-ink-2: #505b70; }
body[data-ink="tamna"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #6b7486; --nk-ink-2: #6c7687; }
body[data-ink="tamna"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #0f1b30; --nk-ink-2: #35425b; }   /* typing: the pot's full ink */
body[data-ink="tamna"] .wr-text { --st-text: #0f1b30; }
/* duba */
body[data-ink="duba"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #2e1400; --nk-ink-2: #65360b; }
body[data-ink="duba"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #765031; --nk-ink-2: #795234; }
body[data-ink="duba"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #8e6d55; --nk-ink-2: #8f6e56; }
body[data-ink="duba"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #2e1400; --nk-ink-2: #65360b; }   /* typing: the pot's full ink */
body[data-ink="duba"] .wr-text { --st-text: #2e1400; }
/* rumena */
body[data-ink="rumena"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #400002; --nk-ink-2: #851113; }
body[data-ink="rumena"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #943c35; --nk-ink-2: #973f38; }
body[data-ink="rumena"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #a95f58; --nk-ink-2: #ab6159; }
body[data-ink="rumena"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #400002; --nk-ink-2: #851113; }   /* typing: the pot's full ink */
body[data-ink="rumena"] .wr-text { --st-text: #400002; }
/* modra */
body[data-ink="modra"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #040764; --nk-ink-2: #1e3b93; }
body[data-ink="modra"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #3a559c; --nk-ink-2: #3c589f; }
body[data-ink="modra"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #5972ae; --nk-ink-2: #5b74b0; }
body[data-ink="modra"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #040764; --nk-ink-2: #1e3b93; }   /* typing: the pot's full ink */
body[data-ink="modra"] .wr-text { --st-text: #040764; }
/* morska */
body[data-ink="morska"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #001f21; --nk-ink-2: #004a4e; }
body[data-ink="morska"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #266063; --nk-ink-2: #2a6366; }
body[data-ink="morska"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #4f7b7e; --nk-ink-2: #517d7f; }
body[data-ink="morska"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #001f21; --nk-ink-2: #004a4e; }   /* typing: the pot's full ink */
body[data-ink="morska"] .wr-text { --st-text: #001f21; }
/* zlatna */
body[data-ink="zlatna"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #251900; --nk-ink-2: #553f00; }
body[data-ink="zlatna"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #6c551c; --nk-ink-2: #6f571e; }
body[data-ink="zlatna"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #857146; --nk-ink-2: #877348; }
body[data-ink="zlatna"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #251900; --nk-ink-2: #553f00; }   /* typing: the pot's full ink */
body[data-ink="zlatna"] .wr-text { --st-text: #251900; }
/* grey */
body[data-ink="grey"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #3e3e3e; --nk-ink-2: #414141; }
body[data-ink="grey"][data-wear-nauka="3"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #585858; --nk-ink-2: #5a5a5a; }
body[data-ink="grey"][data-wear-nauka="4"] .nk-layer:not([data-tab="exams"]) :is(.ed-tx, .lib-ledger td.f, .lib-ledger td.b):not(.pr-panel *) { --nk-ink: #737373; --nk-ink-2: #757575; }
body[data-ink="grey"] .nk-layer:not([data-tab="exams"]) :is(.ed-ta, .lib-ledger td.edit, .ed-tx [contenteditable="true"]):not(.pr-panel *) { --nk-ink: #3e3e3e; --nk-ink-2: #414141; }   /* typing: the pot's full ink */
body[data-ink="grey"] .wr-text { --st-text: #3e3e3e; }   /* (V7.4 fixer B, critic-safety M4: grey >= 7:1 also on the Library's card rows, ledger rows and switched-off cards) */
body[data-ink] .nk-layer .lib-ledger td.f { color: var(--nk-ink); }   /* the front cell inherits a colour: name the variable */

/* the inkwell (js/ui-ink.js): the card, the Library's toolbar button, the pot's swatch and ring */
.ik-card { position: fixed; z-index: 1300; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
  padding: 18px 20px 14px; color: #e8e1d3; font: 400 14px/1.45 "Avenir Next", Avenir, "Helvetica Neue", "Alegreya Sans", sans-serif; }
.ik-card h3 { margin: 0 0 2px; font: 700 21px/1.2 var(--cx-font-title, serif); letter-spacing: 0.04em; color: #f4d58c; }
.ik-card .bw-sub { margin: 0 0 12px; color: #c2baab; font-size: 13.5px; }
.ik-card .bw-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: #c2baab; font-size: 22px; line-height: 1; cursor: pointer; }
.ik-card .bw-x:hover, .ik-card .bw-x:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); outline: none; }
.ik-now { display: grid; grid-template-columns: 52px 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; background: #1d1a16; box-shadow: inset 0 0 0 1px #3b3832; }
.ik-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #2c2925; }
.ik-h { margin: 14px 0 2px; font: 700 11px/1 var(--cx-font-title, serif); letter-spacing: 0.14em; text-transform: uppercase; color: #a39c8f; }
.ik-name { display: block; font-weight: 700; color: #f2ebdd; }
.ik-left { display: block; color: #c2baab; font-size: 13px; }
.ik-does { display: block; margin-top: 2px; color: #a39c8f; font-size: 12.5px; font-style: italic; }
/* a slip of the books' own paper with a word in that ink: the tone is shown where it is used (on the page) */
.ik-chip { display: grid; place-items: center; width: 52px; height: 34px; border-radius: 3px; background: #f4ecdb; box-shadow: 0 0 0 1px #7a5229, 0 1px 2px rgba(0, 0, 0, 0.5);
  font: italic 600 19px/1 var(--nk-read, "Iowan Old Style", Georgia, serif); }
.ik-ring { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(#e3b562 var(--ik-left, 100%), #2c2925 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.ik-where { margin: 12px 0 0; color: #a39c8f; font-size: 12.5px; }
.ik-card .bw-btn { min-width: 112px; height: 30px; padding: 0 12px; border: 0; border-radius: 4px; cursor: pointer; font: 600 13px/1 "Avenir Next", Avenir, "Helvetica Neue", "Alegreya Sans", sans-serif; color: #1b140c; background: linear-gradient(180deg, #e8c681, #b8955a); box-shadow: 0 0 0 1px #5f4218; }
.ik-card .bw-btn:hover, .ik-card .bw-btn:focus-visible { filter: brightness(1.08); outline: none; }
.ik-card .bw-btn[disabled] { cursor: default; color: #8f877a; background: #2c2925; box-shadow: 0 0 0 1px #3b3832; filter: none; }
.ik-card .bw-btn--ghost { color: #e8e1d3; background: #24201b; box-shadow: 0 0 0 1px #3b3832; }
.ik-card .bw-msg { min-height: 20px; margin: 10px 0 0; color: #e3b562; font-size: 13.5px; }
.ik-card .bw-msg.is-bad { color: #f2a07a; }
.ik-card .bw-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #2c2925; color: #a39c8f; font-size: 13px; }
/* the Library's toolbar inkwell: the pot in the ink's tone, a thin ring for what is left */
.lib-tools .nk-btn.ik-tool { position: relative; color: var(--ik-tone, #211a12); }
.ik-tool__ring { position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(rgba(122, 82, 41, 0.75) var(--ik-left, 100%), rgba(122, 82, 41, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); pointer-events: none; }
.ik-tool svg { position: relative; }
.ik-letopis b { font-weight: 700; }
@media (max-width: 520px) { .ik-now { grid-template-columns: 52px minmax(0, 1fr); } .ik-now .ik-ring { display: none; } .ik-row { grid-template-columns: 52px minmax(0, 1fr); } .ik-row .bw-btn { grid-column: 1 / -1; } }
