/*! ©111101.net — all rights reserved */
/* V4: Memory & Creation's war by dates (dates4.js; owner, 11.11.2026). The table is the whole bottom-right square,
   white; the top-right square says what happened (newsprint, as the chronologies' days), the bottom-left where the
   day sits (the folder's paper). The day under the pointer is orange, a held day ringed in black. Nothing floats:
   the line of time stands on the axis, the months on the table's top edge. */
#stage.has-dt[data-state="icons2"] { --tr: #F3F1EB !important; --bl: #E6E3DB !important; }
#stage.has-dt .w-head { display: none !important; }

.dt { position: absolute; inset: 0; z-index: 3; font-family: var(--font); color: #141414; }
.dt[hidden] { display: none; }
.dt a { color: inherit; }
.dt-tr { overflow: hidden; background: #F3F1EB; }
.dt-bl { overflow: hidden; background: #E6E3DB; }

/* the bottom-right square: the table, the whole square */
.dt-page { position: absolute; inset: 0; overflow: auto; background: #fff; scrollbar-width: thin; }
.dt-grid { display: grid; grid-template-columns: 52px repeat(12, minmax(0, 1fr)); grid-template-rows: 26px repeat(16, minmax(min-content, 1fr));
  height: 100%; box-sizing: border-box; padding: 0 18px 12px calc(var(--nbw, 48px) / 2 + 8px); }
.dt-wait { grid-column: 1 / -1; margin: 24px 0; font: 13px/18px Georgia, serif; color: #6c6c6c; }
.dt-c { min-width: 0; box-sizing: border-box; }
.dt-mh { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-end; padding: 0 0 6px 4px; background: #fff; border-bottom: 1px solid #141414;
  font: 10px/12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #444; }
.dt-y { display: block; padding: 1px 10px 0 0; text-align: right; border-bottom: 1px solid #ece8e0; font: 14px/18px Georgia, "Times New Roman", serif; color: #141414; text-decoration: none; }
.dt-y:hover, .dt-y.is-row { color: #f60; }
.dt-y.is-phase { color: #880000; }
.dt-m { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0; padding: 2px 2px; border-left: 1px solid #ece8e0; border-bottom: 1px solid #ece8e0; }
.dt-m.is-row { background: #faf7f1; }
.dt-m.is-phase { background: #f6ede6; }
.dt-d, .dt-key .k-d { display: inline-block; min-width: 16px; box-sizing: border-box; padding: 1px 1px 1px; border-radius: 7px; text-align: center;
  font: 11px/12px var(--font); font-variant-numeric: tabular-nums; font-style: normal; color: #141414; text-decoration: none; }
.dt-d.n2, .dt-key .k-d.n2 { font-weight: bold; color: #880000; }
.dt-d.span { padding-left: 4px; padding-right: 4px; }
.dt-d:hover, .dt-d.is-shown, .dt-d.is-near, .dt-key .k-d.is-shown { background: #f60; color: #fff; }
.dt-d.is-held, .dt-key .k-d.is-held { box-shadow: inset 0 0 0 1.5px #141414; }
.dt-d.is-held.is-shown { background: #141414; color: #fff; }

/* the top-right square: what happened, over the line of time */
.dt-head { position: absolute; left: calc(var(--nbw, 48px) / 2 + 32px); right: 24px; top: 18px; bottom: 104px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 0 36px; }
.dt-hl, .dt-hr { min-height: 0; overflow: hidden; }
.dt-k { font: 10px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #880000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-k.is-quiet { color: #6c6c6c; }
.dt-t { margin: 4px 0 4px; font: 22px/27px Georgia, "Times New Roman", serif; color: #141414; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-x { margin: 4px 0 0; font: 14px/20px Georgia, serif; color: #333; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dt-x.is-short { -webkit-line-clamp: 2; }
.dt-also { margin: 6px 0 0; padding-left: 8px; border-left: 2px solid #880000; font: 13px/18px Georgia, serif; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-also b { font-weight: normal; color: #141414; }
.dt-foot { margin: 6px 0 0; font: 11px/15px var(--font); color: #8a8a8a; }
.dt-hr p { margin: 4px 0 0; font: 12px/17px Georgia, serif; color: #555; }
.dt-hr p:first-of-type { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1180px) { .dt-head { grid-template-columns: minmax(0, 1fr); } .dt-hr { display: none; } }
/* a low top-right square (a small window): the phases leave the line of time (they are in the bottom-left), the bars
   shorten, the head keeps its date and title */
.dt-tr.is-low .dt-head { top: 12px; bottom: 50px; }
.dt-tr.is-low .dt-time { height: 44px; }
.dt-tr.is-low .dt-lanes { display: none; }
.dt-tr.is-low .dt-bars { height: 26px; }
.dt-tr.is-low .dt-t { font-size: 18px; line-height: 22px; -webkit-line-clamp: 1; margin: 2px 0; }
.dt-tr.is-low .dt-x { font-size: 13px; line-height: 18px; -webkit-line-clamp: 2; }
.dt-tr.is-low .dt-also, .dt-tr.is-low .dt-foot { display: none; }
.dt-tr.is-low .dt-hr p + p { display: none; }
.dt-tr.is-low .dt-hr p:first-of-type { -webkit-line-clamp: 4; }

.dt-time { position: absolute; left: calc(var(--nbw, 48px) / 2 + 32px); right: 24px; bottom: 0; height: 96px; }
.dt-lanes { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.dt-ph { position: absolute; top: calc(var(--l) * 15px); left: calc(var(--a) / 16 * 100%); width: calc(var(--n) / 16 * 100% - 3px); height: 14px; border-bottom: 1px solid #b5ae9f;
  font: 10px/13px var(--font); color: #6c6c6c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.dt-ph:hover { color: #880000; border-bottom-color: #880000; }
.dt-bars { position: absolute; left: 0; right: 0; bottom: 16px; height: 46px; display: flex; align-items: flex-end; gap: 3px; }
.dt-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; text-decoration: none; }
.dt-bar i { display: block; width: 100%; height: calc(var(--v) * 100%); min-height: 2px; background: #b9b1a2; }
.dt-bar:hover i { background: #880000; }
.dt-bar.on i { background: #f60; }
.dt-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 15px; display: flex; gap: 3px; }
.dt-ticks span { flex: 1; text-align: center; font: 9px/15px var(--font); color: #8a8a8a; }

/* the bottom-left square: where the day sits */
.dt-ctx { position: absolute; inset: 0; overflow: auto; padding: 14px calc(var(--nbw, 48px) / 2 + 14px) 24px 18px; scrollbar-width: thin; }
.dt-sec { margin: 0 0 14px; }
.dt-sec-k { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding-bottom: 3px; border-bottom: 1px solid #141414;
  font: 10px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #141414; }
.dt-sec-n { color: #6c6c6c; letter-spacing: 0; text-transform: none; }
.dt-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dt-cal-w { font: 9px/14px var(--font); color: #8a8a8a; text-align: center; }
.dt-cal-d { display: block; font: 11px/20px var(--font); font-variant-numeric: tabular-nums; text-align: center; color: #b3ab9b; text-decoration: none; }
.dt-cal-d.has { background: #fff; color: #141414; }
.dt-cal-d.has:hover { background: #f60; color: #fff; }
.dt-cal-d.is-day { background: #141414; color: #fff; }
.dt-cal-d.is-span { background: #d9d3c6; color: #141414; }
.dt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 5px 0; border-bottom: 1px solid #d6d1c6; text-decoration: none; }
.dt-row-d { font: 11px/17px var(--font); color: #880000; white-space: nowrap; }
.dt-row-t { grid-column: 1 / -1; grid-row: 2; font: 13px/17px Georgia, serif; color: #141414; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-row-n { grid-column: 2; grid-row: 1; text-align: right; font: 10px/17px var(--font); color: #8a8a8a; white-space: nowrap; }
a.dt-row:hover .dt-row-t { text-decoration: underline; text-underline-offset: 3px; }
.dt-row.is-phase { cursor: default; }
.dt-row.is-phase:hover .dt-row-t { color: #880000; }
.dt-none { margin: 4px 0; font: 12px/17px Georgia, serif; color: #6c6c6c; }
.dt-go { display: inline-block; margin-top: 2px; font: 12px/16px var(--font); color: #141414; text-decoration: underline; text-underline-offset: 3px; }
.dt-key { margin: 3px 0; font: 12px/18px var(--font); color: #444; }
.dt-key .k-d { margin-right: 6px; }
