/* Simpler home page and the public product pages (flag `simple_home`,
   Nov 2026). Self-contained; fonts come from analysis/home/simple_head.html.

   Design direction (third revision, 8 Nov 2026: Oliver and a colleague
   chose the rays drawing with the marked quotes, in the quiet, light,
   Nordic look of the "stack" sketch, with a real light theme):
   - Light first. A pale frost ground with navy ink is the light theme; a
     deep navy one is the dark theme. Both follow the site's theme switch
     (html.dark), header and footer included.
   - Two voices. Doksa speaks in Schibsted Grotesk (headings, buttons,
     relevance, codes, captions); the sources speak in Newsreader (the
     research question, paper titles, quotes).
   - One drawing: the papers of the literature example as nerves round the
     question, drawn like the rays of the logo (straight trunks, forking
     branches, round nodes); the closer a paper to the question, the longer
     and brighter its nerve. It grows once and holds still.
   - The margin. Doksa's notes sit to the right of the text they belong
     to, behind one thin rule, the way a researcher writes codes in the
     margin of a transcript. Source text sits on a solid sheet. A paper's
     relevance carries the same nerve end as in the drawing.
   - Full-width rules and a lot of air group things; no boxes round
     every block, no pills, no glows. Left aligned.
   - Brand: navy and Doksa gold, on every page (Oliver, 9 Nov 2026: the
     Qualitative Coding page was purple, with no reason to be). Body text
     at 4.5:1 or better in both themes. */

/* The colours are the site's colour settings (--look-*, site-look.css,
   light under :root and dark under html.dark), so the home page and the
   rest of the site share one palette. Only the stack drawing's sheets are
   this page's own. A page with the site look that loads this file (the
   About page, for its small copies of the drawings) gets them too. */
.hs-page,
body:has(.hs-page),
body.site-look {
  --hs-bg: var(--look-bg);
  --hs-sheet: var(--look-sheet);
  --hs-ink: var(--look-ink);
  --hs-text: var(--look-text);
  --hs-muted: var(--look-muted);
  --hs-line: var(--look-line);
  --hs-gold: var(--look-gold);
  --hs-gold-line: var(--look-gold-line);
  --hs-gold-rule: var(--look-gold-rule);
  --hs-gold-fill: var(--look-gold-fill);
  --hs-gold-fill-hover: var(--look-gold-fill-hover);
  --hs-gold-mark: var(--look-gold-mark);
  /* the sheets of the stack drawing (Literature Analysis page) */
  --hs-paper-top: #ffffff;
  --hs-paper-front: #e8ecf4;
  --hs-paper-side: #d9dfeb;
  --hs-paper-edge: rgba(21, 34, 87, 0.62);
  --hs-paper-gold-top: #e6b84a;
  --hs-paper-gold-front: #c99a2e;
  --hs-paper-gold-side: #b3871f;
  --hs-paper-gold-edge: #8a6408;
  --hs-sans: var(--look-sans);
  --hs-serif: var(--look-serif);
}
html.dark .hs-page,
html.dark body:has(.hs-page),
html.dark body.site-look {
  --hs-paper-top: #1d2856;
  --hs-paper-front: #151e46;
  --hs-paper-side: #10183a;
  --hs-paper-edge: rgba(195, 201, 216, 0.62);
  --hs-paper-gold-top: #e6b84a;
  --hs-paper-gold-front: #c4952b;
  --hs-paper-gold-side: #a87d1c;
  --hs-paper-gold-edge: #f0c75f;
}

.hs-page {
  color: var(--hs-text);
  font-family: var(--hs-sans);
  -webkit-font-smoothing: antialiased;
}
.hs-page *, .hs-page *::before, .hs-page *::after { box-sizing: border-box; }
:where(.hs-page) p, :where(.hs-page) dl, :where(.hs-page) dd, :where(.hs-page) ul,
:where(.hs-page) ol, :where(.hs-page) figure { margin: 0; }

/* ---------- the site around these pages ----------
   The background, menu and footer of these pages follow the theme for
   real; the rules are in site-look.css, shared with every page that has
   the light look. */

/* ---------- type ---------- */
.hs-page h1, .hs-page h2, .hs-page h3 {
  font-family: var(--hs-sans); font-weight: 500; margin: 0;
  color: var(--hs-ink); text-wrap: balance;
}
.hs-h1 { font-size: 64px; line-height: 1.04; letter-spacing: -0.03em; max-width: 15em; }
.hs-h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.022em; }
.hs-lead {
  font-size: 21px; line-height: 1.5; color: var(--hs-text);
  max-width: 28em; text-wrap: pretty;
}

/* ---------- buttons and links ---------- */
.hs-button {
  display: inline-block; font-family: var(--hs-sans); font-size: 16px; font-weight: 600;
  padding: 13px 22px; border-radius: 5px; text-decoration: none;
  background: var(--hs-gold-fill); color: #16120a;
  transition: background-color 0.15s ease;
}
.hs-button:hover { background: var(--hs-gold-fill-hover); }
.hs-link {
  font-family: var(--hs-sans); font-size: 15.5px; font-weight: 500;
  color: var(--hs-gold); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; text-decoration-color: var(--hs-gold-rule);
}
.hs-link:hover { text-decoration-color: currentColor; }
.hs-page :focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 4px; border-radius: 2px; }

/* ---------- layout ---------- */
.hs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.hs-hero { padding-top: 84px; }
.hs-hero .hs-lead { margin-top: 26px; }
.hs-hero .hs-button { margin-top: 34px; }
.hs-section { padding-top: 128px; }
.hs-section > .hs-h2 { margin-bottom: 48px; }

/* ---------- the drawing (home page) ---------- */
.hs-hero--rays {
  max-width: 1360px; padding-top: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  column-gap: 56px; align-items: center;
}
.hs-hero--rays .hs-h1 { font-size: 60px; max-width: 11em; }
.hs-rays { min-width: 0; }
/* As on the product pages, the words sit level with the nerves and their
   key, and the caption runs on below; its text changes length as the
   pointer moves from paper to paper, and the words must not move with it. */
.hs-hero--rays .hs-hero-copy { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.hs-hero--rays .hs-rays {
  grid-column: 2; grid-row: 1 / 4; align-self: stretch; display: grid; grid-template-rows: subgrid;
}
.hs-rays-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hs-ray-line, .hs-ray-branch { fill: none; stroke: var(--hs-gold-line); stroke-linecap: round; stroke-linejoin: round; }
.hs-ray-line { stroke-width: 1.8; }
.hs-ray-branch { stroke-width: 1.4; }
.hs-ray-node { fill: var(--hs-gold-line); }
/* The further a paper's band from the question, the fainter its nerve. */
.hs-ray--rel :is(.hs-ray-line, .hs-ray-branch, .hs-ray-node) { opacity: 0.66; }
.hs-ray--mod :is(.hs-ray-line, .hs-ray-branch, .hs-ray-node) { opacity: 0.44; }
.hs-ray--low :is(.hs-ray-line, .hs-ray-branch, .hs-ray-node) { opacity: 0.27; }
.hs-ray--rel .hs-ray-line, .hs-ray--mod .hs-ray-line, .hs-ray--low .hs-ray-line { stroke-width: 1.5; }
.hs-ray-hit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; }
.hs-ray.is-on :is(.hs-ray-line, .hs-ray-branch, .hs-ray-node) { opacity: 1; }
.hs-ray.is-on .hs-ray-line, .hs-ray.is-on .hs-ray-branch { stroke: var(--hs-ink); }
.hs-ray.is-on .hs-ray-node { fill: var(--hs-ink); }
.hs-rays-q { font-family: var(--hs-serif); font-size: 112px; fill: var(--hs-gold); }
.hs-ray-name { font-family: var(--hs-sans); font-size: 15px; font-weight: 500; fill: var(--hs-ink); pointer-events: none; }
.hs-ray-band { font-weight: 400; fill: var(--hs-gold); }

.hs-fig-key {
  list-style: none; margin: 14px 0 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 6px 32px;
  font-size: 13.5px; color: var(--hs-muted);
}
.hs-fig-key li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hs-fig-caption {
  display: block; margin-top: 18px; min-height: 7.4em;
  font-size: 14.5px; line-height: 1.55; color: var(--hs-muted);
}
.hs-fig-caption > span { display: block; }
.hs-fig-caption > span[hidden] { display: none; }
.hs-fig-question {
  display: block; margin-bottom: 6px;
  font-family: var(--hs-serif); font-size: 18px; line-height: 1.35; color: var(--hs-ink); text-wrap: pretty;
}
.hs-fig-text { display: block; max-width: 36em; }
.hs-fig-text .hs-link { font-size: 14.5px; margin-left: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .hs-rays-svg .hs-ray-line { stroke-dasharray: 1; animation: hsDraw 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hs-rays-svg .hs-ray-branch { stroke-dasharray: 1; animation: hsDraw 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hs-rays-svg .hs-ray-node { animation: hsFade 0.4s ease backwards; }
  .hs-ray-name { animation: hsFade 0.5s ease 1.9s backwards; }
}
@keyframes hsDraw { from { stroke-dashoffset: 1; } }

/* ---------- the stack (Literature Analysis page) ---------- */
.hs-hero--stack, .hs-hero--piles {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  column-gap: 48px; align-items: center;
}
.hs-hero--stack .hs-story, .hs-hero--piles .hs-story { grid-column: 1 / -1; }
.hs-stack, .hs-piles { min-width: 0; }
/* The words sit level with the drawing and its key; the caption, or the
   record that opens in its place, runs on below, so opening a record
   never moves the words. */
.hs-hero--stack .hs-hero-copy, .hs-hero--piles .hs-hero-copy { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.hs-hero--stack .hs-stack, .hs-hero--piles .hs-piles {
  grid-column: 2; grid-row: 1 / 4; align-self: stretch; display: grid; grid-template-rows: subgrid;
}
.hs-fig > .hs-fig-caption, .hs-fig > .hs-record { grid-row: 3; align-self: start; }
.hs-fig.has-record > .hs-fig-caption { display: none; }
/* The piles stand taller than the stack, with the list of patterns under
   them. The words start level with the first piles, and an open card's
   record takes the list's place (it names its pattern), so the record
   opens right under the card and the words still do not move. */
.hs-hero--piles .hs-hero-copy { align-self: start; padding-top: 72px; }
.hs-fig.has-record > .hs-pile-list { display: none; }
.hs-stack-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* A sheet's colour is the paper colour mixed with gold: all gold for a
   highly relevant paper, less for each band further from the question. */
.hs-sheet { --hs-mix: 0%; }
.hs-sheet--high { --hs-mix: 100%; }
.hs-sheet--rel { --hs-mix: 42%; }
.hs-sheet--mod { --hs-mix: 18%; }
.hs-sheet polygon {
  stroke: color-mix(in srgb, var(--hs-paper-gold-edge) var(--hs-mix-edge, var(--hs-mix)), var(--hs-paper-edge));
  stroke-width: 1; stroke-linejoin: round;
}
.hs-sheet-top { fill: color-mix(in srgb, var(--hs-paper-gold-top) var(--hs-mix-top, var(--hs-mix)), var(--hs-paper-top)); }
.hs-sheet-front { fill: color-mix(in srgb, var(--hs-paper-gold-front) var(--hs-mix-edge, var(--hs-mix)), var(--hs-paper-front)); }
.hs-sheet-side { fill: color-mix(in srgb, var(--hs-paper-gold-side) var(--hs-mix-edge, var(--hs-mix)), var(--hs-paper-side)); }
/* On navy a little gold turns muddy, so in the dark theme a paler sheet
   keeps a navy face and shows its band in the colour of its edges. */
html.dark .hs-sheet--rel { --hs-mix-top: 0%; --hs-mix-edge: 100%; }
html.dark .hs-sheet--mod { --hs-mix-top: 0%; --hs-mix-edge: 50%; }
.hs-stack-svg .hs-sheet { cursor: pointer; outline: none; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hs-stack-svg .hs-sheet.is-on polygon,
.hs-stack-svg .hs-sheet.is-open polygon,
.hs-stack-svg .hs-sheet:focus-visible polygon { stroke: var(--hs-ink); stroke-width: 1.6; }
/* A sheet whose record is open slides a little further out. */
.hs-stack-svg .hs-sheet.is-open { transform: translateX(var(--hs-open)); }
.hs-sheet-name { font-family: var(--hs-sans); font-size: 16px; font-weight: 500; fill: var(--hs-ink); pointer-events: none; }
.hs-sheet-band { font-weight: 400; fill: var(--hs-gold); }
.hs-stack .hs-fig-caption { min-height: 10.5em; }
.hs-fig-field { display: block; margin-top: 4px; }
.hs-fig-field-name { color: var(--hs-ink); font-weight: 500; }
.hs-glyph--sheet { width: 26px; height: 12px; }
.hs-glyph--sheet polygon { stroke-width: 0.8; }
/* ---------- small, still copies (About page) ----------
   The stack and the piles at a fraction of their size, in a band of one
   height, standing on its bottom edge. Edges stay one pixel wide at any
   size, so the small sheets do not turn into outlines. */
.hs-mini-svg { display: block; width: 100%; height: auto; max-height: 148px; }
@media (min-width: 768px) {
  /* Side by side, both bands are one height, so the titles under them line up. */
  .hs-mini-svg { height: 148px; }
}
.hs-mini-svg :is(polygon, rect) { vector-effect: non-scaling-stroke; }
.hs-mini-svg .hs-sheet polygon, .hs-mini-svg .hs-slip polygon { stroke-width: 0.8; }
/* ---------- the piles of passages (Qualitative Coding page) ---------- */
.hs-piles-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hs-tier { font-family: var(--hs-sans); font-size: 17px; font-weight: 500; fill: var(--hs-ink); }
/* The speeches, each cut into its passages; a coded passage is marked. */
.hs-speech { fill: var(--hs-paper-top); stroke: var(--hs-paper-edge); stroke-width: 1; }
.hs-strip { fill: none; stroke: var(--hs-paper-edge); stroke-width: 1; stroke-dasharray: 3 2.5; }
.hs-strip--coded { fill: var(--hs-gold-mark); stroke: none; }
/* On navy the light mark turns grey, so the dark theme marks harder. */
html.dark .hs-strip--coded { fill: rgba(220, 174, 69, 0.5); }
.hs-strip.is-on, .hs-strip.is-lit { fill: var(--hs-gold-line); stroke: none; }
.hs-speech-name { font-family: var(--hs-sans); font-size: 14px; fill: var(--hs-muted); }
/* The piles: slips of paper like the stack's sheets, gold where lit. */
.hs-slip polygon { stroke: var(--hs-paper-edge); stroke-width: 1; stroke-linejoin: round; }
.hs-slip-top { fill: var(--hs-paper-top); }
.hs-slip-front { fill: var(--hs-paper-front); }
.hs-slip-side { fill: var(--hs-paper-side); }
.hs-slip-line { fill: none; stroke: var(--hs-line); stroke-width: 1.2; }
.hs-slip-line--mark { stroke: var(--hs-gold-line); stroke-width: 3; opacity: 0.75; }
.hs-pile-number { font-family: var(--hs-serif); font-size: 24px; fill: var(--hs-gold); }
.hs-piles-svg .hs-pile, .hs-piles-svg .hs-prop { cursor: pointer; outline: none; }
.hs-pile { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hs-pile.is-lit .hs-slip polygon, .hs-pile.is-on .hs-slip polygon,
.hs-pile.is-open .hs-slip polygon, .hs-pile:focus-visible .hs-slip polygon { stroke: var(--hs-paper-gold-edge); }
.hs-pile.is-on .hs-slip-top, .hs-pile.is-open .hs-slip-top,
.hs-pile:focus-visible .hs-slip-top { fill: color-mix(in srgb, var(--hs-paper-gold-top) 30%, var(--hs-paper-top)); }
.hs-slip.is-lit .hs-slip-top { fill: var(--hs-paper-gold-top); }
.hs-slip.is-lit .hs-slip-front { fill: var(--hs-paper-gold-front); }
.hs-slip.is-lit .hs-slip-side { fill: var(--hs-paper-gold-side); }
/* A pile whose record is open is lifted a little off the table. */
.hs-pile.is-open { transform: translateY(-8px); }
/* The propositions: a row of dots under the piles each one rests on. */
.hs-guide { fill: none; stroke: var(--hs-line); stroke-width: 1; stroke-dasharray: 2 4; }
.hs-prop-hit { fill: transparent; }
.hs-prop-number { font-family: var(--hs-serif); font-size: 19px; fill: var(--hs-gold); }
.hs-prop-line { fill: none; stroke: var(--hs-gold-line); stroke-width: 2; stroke-linecap: round; }
.hs-prop-dot { fill: var(--hs-gold-line); stroke: var(--hs-bg); stroke-width: 2; }
.hs-prop.is-on .hs-prop-hit, .hs-prop.is-open .hs-prop-hit, .hs-prop.is-lit .hs-prop-hit,
.hs-prop:focus-visible .hs-prop-hit { fill: var(--hs-gold-mark); }
.hs-prop.is-on .hs-prop-number, .hs-prop.is-open .hs-prop-number { font-weight: 600; }
.hs-pile-list {
  list-style: none; margin: 16px 0 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
  font-size: 13.5px; line-height: 1.4; color: var(--hs-text);
}
.hs-pile-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 6px; }
.hs-pile-list-no { font-family: var(--hs-serif); font-size: 17px; line-height: 1.1; color: var(--hs-gold); }
.hs-pile-list-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--hs-muted); }
.hs-record-quotes { margin-top: 12px; }
.hs-record-quote {
  padding: 6px 0 6px 12px; border-left: 2px solid var(--hs-gold-rule);
  font-family: var(--hs-serif); font-size: 16.5px; line-height: 1.4; color: var(--hs-ink);
}
.hs-record-quote + .hs-record-quote { margin-top: 6px; }
.hs-record-quote .hs-speaker { margin-right: 4px; }
.hs-quote-code { display: block; margin-top: 3px; font-family: var(--hs-sans); font-size: 12.5px; color: var(--hs-gold); }
.hs-record-statement { margin: 12px 0 0 0; font-family: var(--hs-serif); font-size: 17px; line-height: 1.45; color: var(--hs-ink); text-wrap: pretty; }
.hs-rests { list-style: none; margin: 0; padding: 0; }
.hs-rests li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 6px; }
.hs-rests li + li { margin-top: 4px; }

/* A paper's record: the card turns over, from its top edge, into the
   place of the caption. */
.hs-record {
  margin-top: 20px; padding: 20px 22px 16px 22px;
  background: var(--hs-sheet); color: var(--hs-text);
  border: 1px solid var(--hs-line); border-top: 2px solid var(--hs-gold-line); border-radius: 4px;
  font-size: 14.5px; line-height: 1.5;
  transform-origin: 50% 0;
}
.hs-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hs-record-title { margin: 0; font-family: var(--hs-serif); font-size: 19px; line-height: 1.3; color: var(--hs-ink); text-wrap: pretty; }
.hs-record-close {
  flex: none; padding: 3px 12px; border: 1px solid var(--hs-line); border-radius: 3px;
  background: transparent; color: var(--hs-ink); font: inherit; font-size: 13.5px; cursor: pointer;
}
.hs-record-close:hover, .hs-record-close:focus-visible { border-color: var(--hs-ink); }
.hs-record-who {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  margin: 6px 0 0 0; font-size: 13.5px; color: var(--hs-muted);
}
.hs-record-band { display: inline-flex; align-items: center; gap: 8px; color: var(--hs-gold); }
.hs-record-fields { margin: 14px 0 0 0; }
.hs-record-fields > div {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--hs-line);
}
.hs-record-fields dt { color: var(--hs-ink); font-weight: 500; font-size: 13.5px; line-height: 1.4; padding-top: 1px; }
.hs-record-fields dt .hs-own { margin-top: 2px; font-size: 12px; line-height: 1.3; }
.hs-record-fields dd { margin: 0; text-wrap: pretty; }
.hs-record-note { margin: 0; padding-top: 10px; border-top: 1px solid var(--hs-line); font-size: 13.5px; color: var(--hs-muted); }
.hs-record-note .hs-link { font-size: 13.5px; margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hs-stack-svg .hs-sheet--out { animation: hsSlide 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  .hs-sheet-name { animation: hsFade 0.5s ease 1.4s backwards; }
  .hs-record.is-turning { animation: hsTurn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-stack-svg .hs-sheet, .hs-piles-svg .hs-pile { transition: none; }
}
@keyframes hsTurn {
  from { transform: perspective(1000px) rotateX(-90deg); opacity: 0; }
  35% { opacity: 1; }
}
@keyframes hsSlide { from { transform: translateX(var(--hs-from)); } }
@keyframes hsFade { from { opacity: 0; } }

/* ---------- source text on a sheet, Doksa's notes in its margin ---------- */
.hs-story {
  --hs-note: 220px;
  min-width: 0; margin-top: 56px;
  background: var(--hs-sheet);
  border: 1px solid var(--hs-line);
  border-radius: 4px;
}
.hs-scenes { padding: 32px 34px 28px 34px; }
.hs-question {
  font-family: var(--hs-serif); font-size: 24px; line-height: 1.3; color: var(--hs-ink);
  max-width: 34em; margin-bottom: 22px; text-wrap: balance;
}
.hs-source { font-size: 13.5px; color: var(--hs-muted); margin-bottom: 14px; }
.hs-source .hs-link { font-size: 13.5px; margin-left: 4px; }

.hs-row {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--hs-note);
  column-gap: 26px;
}
.hs-rows--rank { border-top: 1px solid var(--hs-line); }
.hs-rows--rank .hs-row { border-bottom: 1px solid var(--hs-line); }
.hs-rows--rank .hs-paper { padding: 14px 0 13px 0; }
.hs-note {
  display: flex; align-items: center; gap: 10px;
  border-left: 1px solid var(--hs-gold-rule); padding: 8px 0 8px 18px;
  font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--hs-muted);
}
.hs-note--high { color: var(--hs-gold); }
.hs-note--code { color: var(--hs-gold); border-left-color: var(--hs-gold-rule); }
.hs-glyph { flex: none; width: 24px; height: 10px; overflow: visible; }
.hs-glyph .hs-ray-line { stroke-width: 1.6; }
/* Beside a passage the code stands level with the marked words, which end
   each row; beside a quote that starts with its mark it starts at the top. */
.hs-rows--passage .hs-note { align-items: flex-end; padding-bottom: 10px; }
.hs-rows--quotes .hs-note { align-items: flex-start; padding-top: 14px; }

.hs-paper { min-width: 0; }

/* ---------- the evidence table (Literature Analysis page) ---------- */
.hs-evidence { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; color: var(--hs-text); }
.hs-evidence th {
  text-align: left; vertical-align: bottom; padding: 0 18px 10px 0;
  font-size: 13px; font-weight: 500; color: var(--hs-muted);
  border-bottom: 1px solid var(--hs-line);
}
.hs-evidence th:last-child, .hs-evidence td:last-child { padding-right: 0; }
.hs-own { display: block; font-weight: 400; font-size: 12.5px; color: var(--hs-gold); }
.hs-evidence td { vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--hs-line); }
.hs-evidence th:nth-child(1) { width: 29%; }
.hs-evidence th:nth-child(2) { width: 13%; }
.hs-evidence th:nth-child(3) { width: 25%; }
.hs-evidence th:nth-child(4) { width: 18%; }
.hs-evidence .hs-paper-name { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 17.5px; }
.hs-evidence-band { white-space: nowrap; font-weight: 500; color: var(--hs-muted); }
.hs-evidence-band-in { display: inline-flex; align-items: center; gap: 8px; }
.hs-evidence-band.hs-note--high { color: var(--hs-gold); }
.hs-evidence .hs-row--low td { color: var(--hs-muted); }
.hs-paper-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--hs-serif); font-size: 19px; line-height: 1.3; color: var(--hs-ink);
}
.hs-meta { display: block; font-size: 13px; color: var(--hs-muted); margin-top: 3px; }
.hs-row--low .hs-paper-name { color: var(--hs-muted); }

.hs-quote {
  font-family: var(--hs-serif); font-size: 19.5px; line-height: 1.6; color: var(--hs-text);
  padding: 2px 0 10px 0; text-wrap: pretty;
}
.hs-rows--passage .hs-row + .hs-row .hs-quote { padding-top: 0; }
.hs-speaker { font-family: var(--hs-sans); font-size: 13px; font-weight: 500; color: var(--hs-muted); margin-right: 6px; }
.hs-mark {
  color: var(--hs-ink); background: var(--hs-gold-mark);
  padding: 1px 2px; margin: 0 -2px; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hs-core { font-family: var(--hs-serif); font-size: 23px; line-height: 1.3; color: var(--hs-gold); padding: 16px 0 10px 0; text-wrap: balance; }

.hs-caption { margin-top: 22px; font-size: 13.5px; line-height: 1.6; color: var(--hs-muted); }
.hs-caption .hs-link { font-size: 13.5px; margin-left: 4px; }

/* ---------- the two products (home page), in full-width rows ---------- */
.hs-prows { border-top: 1px solid var(--hs-line); }
.hs-prow {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px;
  padding: 52px 0 56px 0; border-bottom: 1px solid var(--hs-line);
}
.hs-prow .hs-story { margin-top: 6px; }
.hs-product-name { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.hs-prow .hs-product-name { color: var(--hs-gold); }
.hs-product-claim { margin-top: 16px; font-size: 21px; line-height: 1.4; color: var(--hs-ink); max-width: 20em; }
.hs-product-text { margin-top: 12px; font-size: 17.5px; line-height: 1.55; max-width: 26em; text-wrap: pretty; }
.hs-product-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* ---------- three points (home page) ---------- */
.hs-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; }
.hs-points dt { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: var(--hs-ink); }
.hs-points dd { margin-top: 10px; font-size: 17px; line-height: 1.55; }
.hs-points dd p + p { margin-top: 12px; }

/* ---------- side heads (product page sections) ---------- */
.hs-sides { display: flex; flex-direction: column; gap: 56px; }
.hs-side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; }
.hs-side-head { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
.hs-side-body { font-size: 18px; line-height: 1.6; max-width: 32em; text-wrap: pretty; }
.hs-side-body > * + * { margin-top: 14px; }
.hs-list { list-style: none; padding: 0; }
.hs-list li { position: relative; padding-left: 22px; }
.hs-list li + li { margin-top: 10px; }
.hs-list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 9px; height: 1px; background: var(--hs-gold-line); }
.hs-steps { list-style: decimal; padding-left: 1.3em; }
.hs-steps li + li { margin-top: 6px; }
.hs-steps li::marker { font-size: 15px; color: var(--hs-gold); }
.hs-kinds { color: var(--hs-muted); }

/* ---------- closing ---------- */
.hs-close { padding-top: 128px; padding-bottom: 136px; }
.hs-close .hs-h2 { font-size: 44px; }
.hs-close-text { margin-top: 14px; font-size: 20px; }
.hs-close .hs-button { margin-top: 30px; }

/* ---------- product pages ---------- */
.hs-product-page .hs-h1 { color: var(--hs-gold); }
.hs-claim { margin-top: 20px; font-size: 32px; font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; color: var(--hs-ink); max-width: 20em; text-wrap: balance; }
.hs-product-page .hs-lead { margin-top: 20px; }
.hs-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hs-ctas .hs-button { margin-top: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 1023px) {
  .hs-wrap { padding-left: 32px; padding-right: 32px; }
  .hs-hero { padding-top: 64px; }
  .hs-h1 { font-size: 52px; }
  .hs-hero--rays { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
  .hs-hero--rays .hs-h1 { font-size: 52px; max-width: 12em; }
  .hs-hero--rays .hs-hero-copy, .hs-hero--rays .hs-rays { grid-column: auto; grid-row: auto; }
  .hs-hero--rays .hs-rays { display: block; }
  .hs-rays { max-width: 560px; margin-top: 40px; }
  .hs-hero--stack, .hs-hero--piles { grid-template-columns: minmax(0, 1fr); }
  .hs-hero--stack .hs-hero-copy, .hs-hero--stack .hs-stack,
  .hs-hero--piles .hs-hero-copy, .hs-hero--piles .hs-piles { grid-column: auto; grid-row: auto; }
  .hs-hero--piles .hs-hero-copy { padding-top: 0; }
  .hs-hero--stack .hs-stack, .hs-hero--piles .hs-piles { display: block; }
  .hs-stack, .hs-piles { max-width: 540px; margin-top: 48px; }
  .hs-section { padding-top: 104px; }
  .hs-prow { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .hs-points { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hs-side { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .hs-close { padding-top: 104px; padding-bottom: 104px; }
  .hs-story { --hs-note: 190px; }
  /* Five columns need about 680 px, more than the sheet has below
     1,024 px (Oliver, 9 Nov: the relevance ran past the sheet's edge), so
     each row becomes a short record with its labels shown. */
  .hs-evidence thead { display: none; }
  .hs-evidence, .hs-evidence tbody, .hs-evidence tr, .hs-evidence td { display: block; width: auto !important; }
  .hs-evidence tr { padding: 14px 0 12px 0; border-bottom: 1px solid var(--hs-line); }
  .hs-evidence tr:first-child { border-top: 1px solid var(--hs-line); }
  .hs-evidence td { border: 0; padding: 3px 0; }
  .hs-evidence td.hs-paper { padding-bottom: 8px; }
  .hs-evidence td[data-label]::before { content: attr(data-label) ": "; color: var(--hs-ink); font-weight: 500; }
  .hs-evidence td.hs-evidence-band::before { content: none; }
  .hs-evidence-band { padding-top: 8px !important; }
}
@media (max-width: 640px) {
  /* base.html's <main> already gives 24 px at the sides. */
  .hs-wrap { padding-left: 0; padding-right: 0; }
  .hs-hero, .hs-hero--rays { padding-top: 36px; }
  .hs-h1, .hs-hero--rays .hs-h1 { font-size: 40px; line-height: 1.06; }
  .hs-h2 { font-size: 30px; }
  .hs-lead { font-size: 18.5px; }
  .hs-hero .hs-lead { margin-top: 18px; }
  .hs-hero .hs-button { margin-top: 26px; }
  .hs-rays { margin: 28px -12px 0 -12px; }
  .hs-rays .hs-fig-caption { padding: 0 12px; min-height: 9em; }
  .hs-ray-name { font-size: 26px; }
  .hs-ray-name--left { display: none; }
  .hs-stack { margin: 32px 0 0 0; }
  .hs-sheet-name { font-size: 24px; }
  .hs-sheet-name--right { display: none; }
  .hs-record { padding: 18px 18px 14px 18px; }
  .hs-record-fields > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .hs-piles { margin: 32px 0 0 0; }
  .hs-tier { font-size: 25px; }
  .hs-speech-name { display: none; }
  .hs-pile-number { font-size: 34px; }
  .hs-prop-number { font-size: 26px; }
  .hs-pile-list { grid-template-columns: minmax(0, 1fr); font-size: 14.5px; }
  .hs-rays .hs-fig-key { justify-content: start; padding: 0 12px; gap: 6px 20px; }
  .hs-rays-q { font-size: 124px; }
  .hs-claim { font-size: 24px; }
  .hs-section { padding-top: 80px; }
  .hs-section > .hs-h2 { margin-bottom: 32px; }
  .hs-prow { padding: 40px 0 44px 0; }
  .hs-product-name { font-size: 28px; }
  .hs-product-claim { font-size: 19.5px; }
  .hs-product-text, .hs-side-body { font-size: 17px; }
  .hs-sides { gap: 40px; }
  .hs-side-head { font-size: 23px; }
  .hs-close { padding-top: 80px; padding-bottom: 88px; }
  .hs-close .hs-h2 { font-size: 32px; }
  .hs-close-text { font-size: 18px; }
  /* The sheet runs to the screen edges, and the margin note moves under
     its text, still behind the rule. */
  .hs-story { margin-left: -24px; margin-right: -24px; border-radius: 0; border-left: 0; border-right: 0; margin-top: 40px; }
  .hs-prow .hs-story { margin-top: 0; }
  .hs-scenes { padding: 24px 24px 22px 24px; }
  .hs-question { font-size: 20px; margin-bottom: 16px; }
  .hs-row { grid-template-columns: minmax(0, 1fr); }
  .hs-note, .hs-rows--passage .hs-note, .hs-rows--quotes .hs-note {
    align-self: start; align-items: center; padding: 2px 0 2px 12px; margin: 2px 0 14px 0; font-size: 13.5px;
  }
  .hs-rows--rank .hs-paper { padding-bottom: 6px; }
  .hs-paper-name { font-size: 17.5px; }
  .hs-quote { font-size: 18px; padding-bottom: 6px; }
  .hs-core { font-size: 20px; padding: 6px 0 4px 0; }
}
