/*! ©111101.net — all rights reserved */
/* V3 mock-up B, "the rail": 111101 as V2 knows it, white paper and black ink. The cross is drawn in black, and
   below the crossing its vertical arm is the V2 rail itself, 60px of black down to the foot of the screen, with
   the digits at its top. The giant ////o/ is stippled like the home image, which comes back in its panel.
   Colour is an accent only: the section lights the current tab, the pressed icon, the rows, the dashed rules. */

#stage { --line: #000; --tile-bg: #000; --tile-bd: #000; }
.band { display: block; width: 60px; bottom: 0; background: #000; z-index: 24; }
.pendant { padding-top: 2px; }

#stage[data-state="opening"], #stage[data-state="home"] { --tl: #fff; --tr: #fff; --br: #fff; --bl: #fff;
  --mark: #333; --glyph: #000; --glyph-o: .5; --icon: #000; --icon-txt: #777; }
#stage[data-state="home"] { --tr: #F4F4F2; }
#stage[data-state="icons"], #stage[data-state="icons2"] {
  --tl: #fff; --tr: #F4F4F2; --br: #fff; --bl: #fff;
  --mark: #333; --icon: #000; --icon-txt: #666; --row: var(--sec);
  --cap: #333; --cap-bg: #fff; }
#stage[data-state="about"] { --tl: #fff; --tr: #000; --br: var(--sec); --bl: #fff;
  --mark: #333; --icon: #fff; --icon-txt: #aaa; }
#stage[data-state="slideshow"] { --tl: #000; --tr: #000; --br: #000; --bl: #000; --line: #fff;
  --ss-year: #880000; --ss-date: #333; --ss-text: #222; --ss-dim: #888; --ss-btn: #eee; }
#stage.is-ss { background: #fff; }

/* the glyph in the bottom-right panel gives way to the home image */
.glyph-br { display: none; }
.home-image { display: block; position: absolute; left: 40px; top: 18px; opacity: 0; transition: opacity 1.6s linear; pointer-events: none; }
.home-image img { display: block; image-rendering: pixelated; }
#stage[data-state="opening"] .home-image, #stage[data-state="home"] .home-image { opacity: 1; }

.caption { border-bottom: 1px dashed var(--sec); }
.cap-mark { color: var(--sec); }
.rows .row + .row { border-top: 1px dashed color-mix(in srgb, var(--sec) 35%, transparent); }
.t-page { --page: #fff; --page-bd: rgba(0, 0, 0, .4); }
.t-year { --year-bg: #fff; --year-txt: var(--sec); box-shadow: inset 0 0 0 1px var(--sec); }
.t-day { --day-0: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec) 40%, transparent); }
.content iframe { box-shadow: 0 0 0 1px #000; }

/* ---------- the page joined to the axes ---------- */

/* the page starts where the rail ends */
.viewer { left: 29px; }
/* the rail below the digits is the page's ruler: its sections are dashes like the digits, the bracket is what shows */
.ruler { width: 60px; cursor: pointer; }
.tick { position: absolute; left: 11px; width: 14px; height: 1px; padding: 0; background: #8a8a8a; cursor: pointer; }
.tick::after { content: ''; position: absolute; inset: -5px -4px; }
.tick:hover { background: var(--orange); }
.tick.on { left: 9px; width: 18px; height: 2px; margin-top: -.5px; background: #fff; }
.ruler-window { position: absolute; left: 38px; width: 8px; border: 1px solid #fff; border-left: 0; transition: top .12s linear; pointer-events: none; }
/* the sections hang from the rail on cables, as the boxes of the V2 site map do */
.cables { position: absolute; left: 0; top: 0; overflow: visible; }
.cables path { fill: none; stroke: #c4c4c4; stroke-width: .7; }
.cables path.on { stroke: var(--sec); stroke-width: 1.2; }
.branch-label { position: absolute; pointer-events: auto; padding: 0; font: 10px/14px var(--font); color: #777; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch-label:hover { color: var(--orange); }
.branch-label.on { color: var(--sec); font-weight: bold; }
/* the open square is tied down to the axis */
.tie { background: var(--sec); }
.tie::after { content: ''; position: absolute; left: -2px; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--sec); }
/* About: its lines hang from the vertical axis, the other way round */
.about-branches { font-size: 11px; color: #333; }
.branch { display: flex; align-items: flex-end; white-space: nowrap; }
.b-key { color: #880000; }
.b-rule { width: 54px; height: 1px; margin: 0 5px 4px; background: #333; }
.b-hook { width: 16px; height: 14px; margin-bottom: 4px; border: solid #333; border-width: 0 1px 1px 0; border-bottom-right-radius: 10px; }
/* the page's previous / next: a black knot on the wire, at its right end */
.axis-steps { background: #000; color: #fff; padding: 0 2px; }
.axis-steps-label { color: #bbb; }
/* the path, up the vertical axis */
.trail { color: #999; }

/* ---------- a filter's items, standing on the axis after their icon ---------- */
.strip .rows { position: static; display: flex; align-items: flex-end; gap: 7px; margin: 0 8px 0 4px; }
.strip .row { position: relative; display: flex; align-items: flex-end; gap: var(--ig, 2px); height: auto; min-width: 0 !important; border: 0 !important; }
.strip .row-title { position: static; max-width: none; max-inline-size: 76px; overflow: visible; white-space: normal; margin-right: 2px;
  writing-mode: vertical-rl; transform: rotate(180deg); font: 8px/1.15 var(--font); letter-spacing: .07em; color: var(--sec); opacity: .85; }
.strip .th { position: relative; top: auto; left: auto !important; margin: 0; width: var(--iw, 12px); height: var(--h, 16px); display: block; transform-origin: 50% 100%; animation: rise .35s ease-out both; }
@keyframes rise { from { transform: scaleY(0); } to { transform: none; } }
.strip .th > *, .strip .th img { display: block; width: 100%; height: 100%; }
.strip .th img { object-fit: cover; }
.strip .t-page { padding: 3px 2px 0; gap: 2px; overflow: hidden; }
.strip .t-spine { width: 100% !important; height: 100% !important; }
.strip .t-day b { display: none; }
.strip .t-day { background: color-mix(in srgb, var(--sec) calc(35% + var(--lv) * 65%), #fff); }
.strip .t-year { font-size: 0; background: var(--sec); box-shadow: none; }
.strip .th:hover, .strip .th:focus-visible, .strip .th.is-target { transform: scale(1.35); z-index: 3; }
.strip .th[aria-current="true"] { transform: scale(1.35); z-index: 2; box-shadow: 0 0 0 1px #000; }
.strip .rows:has(.th:hover) .th[aria-current="true"]:not(:hover) { transform: none; }

/* ---------- a page's pictures: large in the bottom-right panel, their thumbnails on the axis in the bottom-left ---------- */
.lightbox { position: absolute; inset: 0; z-index: 5; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 32px 24px 18px; background: rgba(255, 255, 255, .97); animation: fade-in .3s ease-out both; }
.lightbox img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; box-shadow: 0 0 0 1px #ddd; }
.lb-close { position: absolute; top: 30px; right: 10px; font-size: 22px; line-height: 1; color: #333; }
.lb-close:hover { color: var(--orange); }
.gallery { position: absolute; z-index: 26; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 6px; overflow: auto; animation: fade-in .5s ease-out both; }
.gallery .g-thumb { position: relative; width: 64px; height: 48px; padding: 0; box-shadow: 0 0 0 1px #ddd; }
.gallery .g-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery .g-thumb:hover { box-shadow: 0 0 0 1px var(--orange); }
.gallery .g-thumb.on { box-shadow: 0 0 0 2px var(--sec); }

/* ---------- margin notes, in the bottom-left panel, tied to the axis ---------- */
.notes { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.note { position: absolute; pointer-events: auto; font: 10px/1.45 var(--font); color: #555; text-align: left; transition: top .12s linear; }
.note-n { padding: 0; font: bold 10px/1.45 var(--font); color: var(--sec); }
.note-n:hover { color: var(--orange); }
.note em { font-style: italic; }
.note.on { color: #000; }
.note.on .note-n { color: var(--orange); }
.note-tie { position: absolute; height: 1px; background: #c4c4c4; pointer-events: none; }
.note-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--sec); pointer-events: none; }
/* with notes in the margin, the sections stay on the ruler only */
#stage.has-notes .branches { display: none; }
.strip .th-cover img { object-fit: cover; box-shadow: 0 0 0 1px #ccc; }
