/* Comp A8 About (Cindy's handoff, 2026-11-15: reference/handoffs/2026-11-15-about-a8.md). Shares system.css, a8.css
   (lines, labels, name, footer) and a7-system.css (header, grid). Cells placed by a8-about.js on the A8 grid */
.about { position: relative; z-index: 1; height: var(--abh, auto); }
.js .about > * { position: absolute; margin: 0; }
.js .ab-places > * { position: absolute; margin: 0; }
.ab-places { left: 0; top: 0; width: 100%; height: 0; }
.ab-mast { left: 0; top: 0; }
/* the paragraphs: Body 05 (.t-body), three modules wide (Cindy's handoff, updated 2026-11-15) */
.ab-p { text-wrap: pretty; }
/* the portrait: exactly its 2 x 2 module cell, the lines on its edges */
.ab-fig { overflow: visible; }
.ab-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.js .ab-fig > .ab-cap { position: absolute; margin: 0; }
h2.lab { font-weight: 500; }
.ab-foot { --gap: 0px; }   /* (no gap band: the footer's rule right under Places lived) */

/* ---------- Places lived: blocks 9px on an 11px pitch; names in the body font over their segments, ticks down to them ---------- */
.ab-chart { overflow: visible; }
.ab-chart > * { position: absolute; display: block; }
.ab-chart svg.ab-grid { left: 0; shape-rendering: crispEdges; }
.ab-nm.now { color: var(--accent-text); }
.ab-axis { left: 0; margin: 0; display: flex; justify-content: space-between; font: 500 12px/16px "Inconsolata", ui-monospace, monospace; color: var(--gray); }
.ab-nm { font: 400 12px/16.5px var(--text-font); color: var(--ink); white-space: nowrap; }
.ab-tk { width: var(--lf, 1px); background: #8D8C87; }
.ab-legend { margin: 0; padding: 0; list-style: none; font: 400 12px/19.5px var(--text-font); color: var(--gray); }
.ab-legend .now { color: var(--accent-text); }

/* ---------- motion (a8-about.js): the entrance's paper strips; the chart waits for its fill ---------- */
.about > i.wipe { position: absolute; z-index: 4; display: block; background: var(--paper); transform-origin: 100% 0; pointer-events: none; }
body.draw-pre .about > * { opacity: 0 !important; }
.ab-chart.pre > *, .ab-legend.pre > * { visibility: hidden; }
.ab-tk { transform-origin: 0 0; }
/* home to About: the header holds still (site-header); the rest swaps at once and About's entrance plays (text never fades) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ---------- phones: the cells stack; the lines go ---------- */
@media (max-width: 1023px) {
  .about { height: auto; display: flex; flex-direction: column; padding: 60px 16px 22px; }
  .js .about > *, .js .ab-places > *, .js .ab-fig > .ab-cap { position: static; }
  .js .about > .ab-mast { order: 1; } .js .about > .ab-fig { order: 2; margin-top: 22px; width: 100%; height: auto; }
  .ab-fig img { aspect-ratio: 1; height: auto; }
  .js .ab-fig > .ab-cap { margin-top: 8px; }
  .js .about > .ab-l1 { order: 3; margin-top: 44px; } .js .about > .ab-p1 { order: 4; margin-top: 6px; }
  .js .about > .ab-l2 { order: 5; margin-top: 33px; } .js .about > .ab-p2 { order: 6; margin-top: 6px; }
  .js .about > .ab-l3 { order: 7; margin-top: 33px; } .js .about > .ab-p3 { order: 8; margin-top: 6px; }
  .js .about > .ab-places { order: 9; position: static; height: auto; margin-top: 44px; }
  .js .ab-places > .ab-l5 { margin-top: 4px; }
  .js .ab-places > .ab-chart { position: relative; margin-top: 16px; }
  .js .ab-places > .ab-legend { margin-top: 16px; }
  body.sys .ab-mast { font-size: clamp(48px, 18vw, 72px); }
}

/* (no list to the right of the chart: Cindy 2026-11-16; on phones it stays, under the chart, since the names over the
   chart are dropped there) */
@media (min-width: 1024px) { .ab-legend { display: none; } }

/* ---------- mobile audit A2, 2026-11-19: the portrait doesn't push the text below the fold. Two options (the "pt"
   switch): under ABOUT at 60% of the width, left-aligned, 4:5 (default); or beside ABOUT, about 140px wide ---------- */
@media (max-width: 1023px) {
  html.pt-below .js .about > .ab-fig, html.pt-below body .about > .ab-fig { width: 60%; max-width: 360px; }
  html.pt-below .ab-fig img, html.pt-beside .ab-fig img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  html.pt-beside body .about { display: grid; grid-template-columns: minmax(0, 1fr) 140px; column-gap: 16px; align-items: start; }
  html.pt-beside body .about > * { grid-column: 1 / -1; }
  html.pt-beside body .about > .ab-mast { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(40px, 13vw, 72px); }
  html.pt-beside body .about > .ab-fig { grid-column: 2; grid-row: 1; width: 140px; margin-top: 0; }
  html.pt-beside body .about > .ab-l1 { grid-row: 2; } html.pt-beside body .about > .ab-p1 { grid-row: 3; }
  html.pt-beside body .about > .ab-l2 { grid-row: 4; } html.pt-beside body .about > .ab-p2 { grid-row: 5; }
  html.pt-beside body .about > .ab-l3 { grid-row: 6; } html.pt-beside body .about > .ab-p3 { grid-row: 7; }
  html.pt-beside body .about > .ab-places { grid-row: 8; }
}
