/* /dissertation/idea: what this page adds to opening.css (the shared story layout and inks). */

/* ---- the drawings' own inks: bars in the colour of their group, captions in the page's serif */
.idea :is(#stage, .psvg) .bar { fill: currentColor; }
.idea :is(#stage, .psvg) text.cap { font-size: 15px; fill: var(--ink-2); }
.idea :is(#stage, .psvg) text.label { fill: var(--ink-2); }
/* the heads of the tower: every level is drawn once and scaled, so its line is set here, as thick as the level is deep */
.idea :is(#stage, .psvg) .lvl path.hand { stroke-width: calc(var(--sw, 1.7) * 1px); }
.idea :is(#stage, .psvg) .lvl path.hand.tip { stroke-width: calc(var(--sw, 1.7) * 0.5px); }
.idea :is(#stage, .psvg) .lvl path.hand.soft { stroke-width: calc(var(--sw, 1.7) * 0.6px); }

/* ---- a narrow column or a phone draws the stage small: its words are set larger there, and the formulas, too small
   to read at that size, are left to the text beside the drawing */
@media (max-width: 1120px) {
  .idea :is(#stage, .psvg) text.cap, .idea :is(#stage, .psvg) text.label { font-size: 19px; }
}
@media (max-width: 820px) {
  .idea :is(#stage, .psvg) .wideonly { display: none; }
}

/* ---- wide screens: the first drawing stands beside the title, not a screen below it. idea.js measures the heading
   (--headh) and marks the page .headfit; the story is pulled up under the heading by that much, and its text starts
   below the heading. The foldable layouts (css/fold.css) keep their own arrangement. */
@media (min-width: 821px) {
  html:not(.fold-book):not(.fold-table) .idea.headfit .ideahead { position: relative; z-index: 2; pointer-events: none; width: min(1100px, 100% - 40px); }
  html:not(.fold-book):not(.fold-table) .idea.headfit .ideahead > * { max-width: calc(50% - 2rem); pointer-events: auto; }
  html:not(.fold-book):not(.fold-table) .idea.headfit .ideahead h1 { font-size: clamp(2.4rem, 4.7vw, 4.1rem); }
  html:not(.fold-book):not(.fold-table) .idea.headfit .story { margin-top: calc(-1 * var(--headh, 0px)); }
  html:not(.fold-book):not(.fold-table) .idea.headfit .steps { padding-top: calc(var(--headh, 0px) + 2.6rem); }
  html:not(.fold-book):not(.fold-table) .idea.headfit .step:first-child { min-height: 64vh; justify-content: flex-start; }
}
