/*! ©111101.net — all rights reserved */
/* The writings' colours (owner, 29.10.2026, direction A of two mock-ups: "paper and ink"; the other, B "a colour for
   each kind", is kept in _maintenance/mockups/v3/looks-writings.css). For the pages on V2's writing template, once
   their head is in the top-right square and their left column in the bottom-left one: the writing as a printed
   dossier. The squares are one paper stock, the folder (top left, bottom left) a shade deeper than the page; the head
   is the dark cover with a serif title; the text is set in a serif for long reading; one vermilion, the
   proof-reader's, marks what can be followed (links, note numbers, the current box, "cite"). The shell's rules are
   scoped to #stage.is-writing; the page's to html.v3-writing inside the frame, which v3.js gives this same sheet. */

html #stage.is-writing.has-head[data-state="icons2"]:not(.is-art-head):not(.has-tone) {
  --tl: #ECE4D4; --tr: #221F1B; --bl: #ECE4D4; --br: #F6F1E6; --line: #221F1B; --mark: #221F1B;
  --sec: #A63B25 !important; }
html #stage.is-writing.has-head[data-state="icons2"] .frame-box iframe { background: #F6F1E6; }
html #stage.is-writing.has-head[data-state="icons2"] .tile { background: #F6F1E6; border-color: #221F1B; }

/* the head: the cover */
html #stage.is-writing.has-head .w-head { color: #F1EBDF; }
html #stage.is-writing.has-head .wh-kind { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #E2765A; }
html #stage.is-writing.has-head .wh-title { margin-top: 10px; font: normal var(--wh-title, 30px)/1.14 Georgia, "Iowan Old Style", "Times New Roman", serif; letter-spacing: .005em; color: #F6F1E6; }
html #stage.is-writing.has-head .wh-sub { font: italic 15px/1.35 Georgia, "Times New Roman", serif; letter-spacing: 0; color: #D6CCBA; }
html #stage.is-writing.has-head .wh-by { margin-top: 8px; font: italic 15px/1.4 Georgia, "Times New Roman", serif; color: #F1EBDF; }
html #stage.is-writing.has-head .wh-dates { margin-top: 10px; font-style: normal; letter-spacing: .03em; color: #A99E8B; }
html #stage.is-writing.has-head .wh-about { margin-top: 6px; font: 12.5px/1.55 Georgia, "Times New Roman", serif; color: #CBC1AF; }

/* the top-left square: the folder */
html #stage.is-writing.has-head[data-state="icons2"] .cb-b { background: #F6F1E6; border-color: #9C8F78; color: #3A332B; }
html #stage.is-writing.has-head[data-state="icons2"] .cb-b.here { background: #221F1B; border-color: #221F1B; color: #F6F1E6; }
html #stage.is-writing.has-head[data-state="icons2"] .cb-n { color: #8C806C; }
html #stage.is-writing.has-head[data-state="icons2"] .cb-b:hover { color: #A63B25; border-color: #A63B25; }
html #stage.is-writing.has-head[data-state="icons2"] .cb-svg path { stroke: #9C8F78; }
html #stage.is-writing.has-head[data-state="icons2"] .cb-svg path.halo { stroke: #ECE4D4; }
html #stage.is-writing.has-head .trail .tr-cite { color: #A63B25; }
html #stage.is-writing.has-head .stop-note { color: #A63B25; }
html #stage.is-writing.has-head .stop-note button { color: #221F1B; }

/* the bottom-left square: the margin, notes and the lifted column on the folder's paper */
html #stage.is-writing.has-head .note { font: 11.5px/1.5 Georgia, "Times New Roman", serif; color: #5C5044; }
html #stage.is-writing.has-head .note-n { font: bold 10px/1.5 var(--font); }
html #stage.is-writing.has-head .note-tie { background: #CDBFA6; }
html #stage.is-writing.has-head .side-col .side-cell { padding-top: 8px !important; border-top: 1px solid #CDBFA6 !important; }
html #stage.is-writing.has-head .side-col .side-cell,
html #stage.is-writing.has-head .side-col .side-cell * { background-color: transparent !important; background-image: none !important; border-color: #D8CCB6 !important;
  color: #5C5044 !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 12px !important; line-height: 1.5 !important; }
html #stage.is-writing.has-head .side-col .side-cell :is(.sectionstit, .tabnotest, .sections > b, .tabextra1t, .tabextra2t, .extra) {
  font: 9px/1.6 var(--font) !important; letter-spacing: .18em !important; text-transform: uppercase; color: #221F1B !important; }
html #stage.is-writing.has-head .side-col .side-cell a { color: #A63B25 !important; text-decoration: none !important; }
html #stage.is-writing.has-head .side-col .side-cell a:hover { color: #221F1B !important; text-decoration: underline !important; }
html #stage.is-writing.has-head .side-col .side-cell img { box-shadow: 0 0 0 1px #CDBFA6; }

/* the page: paper, ink and a serif for reading */
html.v3-writing, html.v3-writing body.frame-view, html.v3-writing main#content, html.v3-writing .original-document,
html.v3-writing #content .maintable, html.v3-writing #content .maintable > tbody > tr > td:not(.hd) { background-color: #F6F1E6 !important; }
html.v3-writing #content .maintable :is(.content, .contentp) { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif !important; font-size: 17px !important;
  line-height: 1.68 !important; color: #2A2520 !important; }
html.v3-writing #content .maintable :is(.content, .contentp) :is(p, span, font, div, li, td, th, em, i, b, strong, blockquote, u, sup, sub, small, center) { font-family: inherit !important; }
html.v3-writing #content .maintable :is(.content, .contentp) blockquote { color: #4A4239 !important; font-style: italic; }
html.v3-writing #content .maintable :is(.content, .contentp, .sign) a { font-family: inherit !important; color: #A63B25 !important; background: none !important;
  text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 2px; text-decoration-color: rgba(166, 59, 37, .4) !important; }
html.v3-writing #content .maintable :is(.content, .contentp, .sign) a:hover { color: #221F1B !important; text-decoration-color: #221F1B !important; }
html.v3-writing #content .maintable .title { background: none !important; border: 0 !important; border-top: 1px solid #221F1B !important; color: #221F1B !important;
  font: 11px/1.5 Verdana, Geneva, sans-serif !important; letter-spacing: .22em !important; text-transform: uppercase; padding: 12px 28px 2px !important; }
html.v3-writing #content .maintable :is(.titlesub, .titlesub2, .titlesubsub) { background: none !important; border: 0 !important; color: #221F1B !important;
  font-family: Georgia, "Times New Roman", serif !important; font-style: italic; font-weight: normal !important; letter-spacing: 0 !important; font-size: 19px !important; }
html.v3-writing #content .maintable .sign { font-family: Georgia, "Times New Roman", serif !important; font-style: italic; color: #5C5044 !important; }
html.v3-writing #content .maintable .cp11 { background: #221F1B !important; color: #A99E8B !important; }

/* a singular page's own squares (owner, 30.10.2026: "use background colours for singularities"): a rebuilt page names
   them on its root (--sq-tl, --sq-tr, --sq-bl, --sq-br); v3.js squaresFromPage hands them to #stage as --pg-* with a
   class per square, and they hold over the page's tone and its head's colour while the page is open */
#stage.pg-tl[data-state="icons2"] { --tl: var(--pg-tl) !important; }
#stage.pg-tr[data-state="icons2"] { --tr: var(--pg-tr) !important; }
#stage.pg-bl[data-state="icons2"] { --bl: var(--pg-bl) !important; }
/* a dark top-left square (--sq-tl-ink: light; the Legislation pages, owner 10.11.2026): the mark, the line of the
   edition, the trail and the cite in light ink; the menu's boxes stay white on it */
#stage.pg-tl-dark[data-state="icons2"] { --mark: #fff; }
#stage.pg-tl-dark[data-state="icons2"] .v4-line, #stage.pg-tl-dark[data-state="icons2"] .v4-sep { color: #8d8d8d; }
#stage.pg-tl-dark[data-state="icons2"] .v4-part { color: #ccc; }
#stage.pg-tl-dark[data-state="icons2"] .v4-ed { color: #9cc0e6; border-color: #9cc0e6; }
#stage.pg-tl-dark[data-state="icons2"] .trail { color: #ccc; }
#stage.pg-tl-dark[data-state="icons2"] .trail .tr-cite { color: #ff9a9a; }
#stage.pg-br[data-state="icons2"] { --br: var(--pg-br) !important; }

/* Letters (owner, 30.10.2026): V2's list of letters in the bottom-left square, drawn as V2 drew it: the window edged
   in #666, the titles in white on #8A9C98 between the dark bars, orange under the pointer, the letter being read on
   the letter's own #555; the plane arrows and their track in the 24px left of the vertical axis, under the ant */
.letters-side { position: absolute; left: 0; z-index: 26; pointer-events: none; }
.letters-side > * { position: absolute; pointer-events: auto; }
.ls-list { border-top: 3px solid #666; border-bottom: 3px solid #666; }
.ls-scroll { height: 100%; overflow: auto; scrollbar-width: none; }
.ls-scroll::-webkit-scrollbar { display: none; }
.ls-bar { display: block; background: #333; }
.ls-bar-top { height: 2px; }
.ls-bar-bottom { height: 7px; }
.ls-names { margin: 0 1%; border-left: 1px solid #666; border-right: 1px solid #666; background: #8A9C98; }
.ls-name { display: block; padding: 0 2px; border-bottom: 1px solid #9AAEAA; color: #fff; font: 10px/12px Verdana, Arial, sans-serif; letter-spacing: 1px; text-decoration: none; }
.ls-name:hover { background: #CC6600; }
.ls-name[aria-current] { background: #555; }
.ls-arrows { display: flex; flex-direction: column; width: 24px; }
.ls-arrows button { flex: none; width: 24px; height: 24px; overflow: hidden; }
.ls-arrows button img { display: block; width: 30px; max-width: none; height: 30px; margin: -3px; }
.ls-arrows button:hover img, .ls-arrows button:focus-visible img { filter: brightness(1.35); }
.ls-track { flex: 1; background-position: center; background-repeat: no-repeat; background-size: 30px 100%; }
.ls-author select { max-width: 100%; border: 1px solid #9AAEAA; background: #fff; color: #333; font: 10px Verdana, Arial, sans-serif; }
/* the head of a letter: V2's "Letters" in its archive outline, as large as the square lets it, standing on the axis
   behind the letter's name; the ruler's bracket is not needed beside the plane arrows */
.letters-mark { position: absolute; z-index: 0; overflow: hidden; opacity: .55; pointer-events: none; }
.letters-mark img { display: block; max-width: none; image-rendering: pixelated; }
#stage.is-letters .w-head { z-index: 1; }
#stage.is-letters :is(.ruler, .ruler-window) { display: none !important; }

/* a writer's page (owner, 10.11.2026: tools/writer_pages.py; an artwork's head that asks for the writings' look,
   data-look="writing"): the same paper and ink */
html #stage.is-writing.is-art-head.has-head[data-state="icons2"]:not(.has-tone) {
  --tl: #ECE4D4; --tr: #221F1B; --bl: #ECE4D4; --br: #F6F1E6; --line: #221F1B; --mark: #221F1B;
  --sec: #A63B25 !important; }
html #stage.is-writing.is-art-head.has-head[data-state="icons2"] .frame-box iframe { background: #F6F1E6; }
html #stage.is-writing.is-art-head.has-head[data-state="icons2"] .tile { background: #F6F1E6; border-color: #221F1B; }

/* the writer's menu at the top of the bottom-left square (v3.js "a writer's writings"): the band and the strip in ink,
   the writings on the page's paper, the one being read in ink, vermilion under the pointer */
html #stage.is-writing .vpm.am { background: #221F1B; }
html #stage.is-writing .vpm.am .vpm-title { background: #221F1B; color: #F6F1E6; }
html #stage.is-writing .vpm.am .vpm-title.on { background: #3A332B; }
html #stage.is-writing .vpm.am .am-n { color: #A99E8B; }
html #stage.is-writing .vpm.am .vpm-grid .vpm-i.am-i { background: #F6F1E6; box-shadow: inset 0 -1px 0 #CDBFA6; color: #221F1B;
  font: 14px/1.3 Georgia, "Times New Roman", serif; }
html #stage.is-writing .vpm.am .vpm-grid .am-i .vpm-t { font-weight: normal; }
html #stage.is-writing .vpm.am .am-k { font: 9px/1.3 Verdana, Geneva, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #A63B25; }
html #stage.is-writing .vpm.am .am-go { color: #B9AC95; }
html #stage.is-writing .vpm.am .vpm-grid .am-i:is(:hover, :focus-visible, .is-lit) { background: #FFFCF5; color: #A63B25; }
html #stage.is-writing .vpm.am .am-i:is(:hover, :focus-visible, .is-lit)::before { background: #A63B25; }
html #stage.is-writing .vpm.am .am-i:is(:hover, :focus-visible, .is-lit) .am-go { color: #A63B25; }
html #stage.is-writing .vpm.am .vpm-grid .am-i.on { background: #221F1B; color: #F6F1E6; box-shadow: inset 0 -1px 0 #000; }
html #stage.is-writing .vpm.am .am-i.on::before { background: #A63B25; }
html #stage.is-writing .vpm.am .am-i.on .am-k { color: #E2765A; }
html #stage.is-writing .vpm.am .am-i.on .am-go { font: 9px/1 Verdana, Geneva, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #E2765A; }
html #stage.is-writing .vpm.am .vpm-grid .am-i.on:is(:hover, :focus-visible) { background: #2E2A25; color: #F6F1E6; }
html #stage.is-writing .vpm.am .am-i:focus-visible { outline-color: #A63B25; }
