/* Research, Work and the case sheets in the iTunes look of the home page and the films' pages (Kari, 2026-10-27:
   "do research and work too"). Loaded after base.css, the page's own styles and itunes.css. The pages keep their parts
   (the story wall, the work cards, the case sheets) and take the iTunes chrome, type and panes:
     - the silver toolbar, its LCD idle (nothing plays on these pages), the sections as a segmented control;
     - the page's hero on the black stage;
     - everything else in white panes under list-header bars, with striped lists and glossy buttons;
     - the status bar.
   The case sheets stay dark, like iTunes' Cover Flow, with the toolbar's silver on their bar. */
:root {
  color-scheme: light;
  --ground: #fff;
  --raised: #f2f2f2;
  --fg: #1d1d1d;
  --mid: #6b6b6b;
  --rule: #d3d3d3;
  --type: var(--ui);
  --s-body: 14px;
  --s-label: 15px;
  --s-title: clamp(19px, 1.7vw, 24px);
  --s-display: clamp(26px, 2.5vw, 36px);
  --warm: #3875d7;              /* the playhead: Aqua blue */
  --gutter: var(--pad);         /* the same side margin as the toolbar's */
}
.stage, .sheet {
  color-scheme: dark;
  --ground: #000;
  --raised: #161616;
  --fg: #f2f2f0;
  --mid: #9a9a95;
  --rule: #2f2f2f;
  color: var(--fg);             /* the page's text colour is inherited as a value; here it turns light */
}

/* The toolbar, over base.css's header */
header.bar .seg { gap: 0; width: auto; justify-content: flex-start; }
header.bar .seg a { background-size: auto; }
header.bar .seg a[aria-current="page"] { background: var(--gloss-down); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.lcd.idle { padding-block: 7px 8px; }

/* The stage: the page's hero, on black */
.stage { padding: 28px 0 44px; }                       /* its parts carry their own side margins (.pad) */
.stage .page-intro { padding-block: 4px 28px; gap: 10px; }
.stage .page-intro h1 { font-size: var(--s-display); letter-spacing: -.01em; max-width: 26ch; }
.stage .page-intro p { font-size: var(--s-label); }
.stage section.block { padding-block: 0; }
.stage .label { font-size: 12px; margin-bottom: 14px; }
.stage .cap h3 { font-weight: bold; font-size: 14px; }
.stage .cap > span { font-size: 12px; }
.stage .aside { font-size: 13px; }
.stage .transport .btns { font-size: 12px; }
.stage .transport .btns button, .sheet .sheet-bar button, .price-card .book {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border: 1px solid #555; border-radius: 999px;
  background: var(--gloss); color: #1d1d1d; font: bold 12px/1.4 var(--ui); text-decoration: none; text-shadow: 0 1px 0 #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.stage .transport .btns button:active, .sheet .sheet-bar button:active, .price-card .book:hover, .price-card .book:focus-visible {
  background: var(--gloss-down); }

/* White panes under list-header bars */
main > section.block { padding-block: 0 40px; }
main > section.block > .label {
  margin: 0 calc(var(--gutter) * -1) 26px; padding: 5px var(--gutter); font: bold 12px/1.5 var(--ui); color: #2f2f2f;
  text-shadow: 0 1px 0 #fff; background: linear-gradient(#fbfbfb, #e2e2e2); border-top: 1px solid #b8b8b8;
  border-bottom: 1px solid #9e9e9e; }
main > section.block a.link { color: var(--link); background: none; text-decoration: underline; text-underline-offset: 2px; }
.aside { margin-top: 16px; font-size: 13px; line-height: 1.5; }
.big-line, .ask { font: bold 19px/1.35 var(--ui); letter-spacing: 0; }
.ask { margin-top: 32px; }
.lead-line { font: bold 17px/1.35 var(--ui); letter-spacing: 0; max-width: 46ch; }
.contact .row { margin-top: 14px; font-size: 15px; }

/* Lists: striped rows in a frame, numbered like a track list */
.when-list, .get { border: 1px solid #a8a8a8; max-width: 720px; }
.when-list li, .get li { border-top: 0; padding: 8px 12px; font: 14px/1.45 var(--ui); letter-spacing: 0; }
.when-list li:nth-child(even), .get li:nth-child(even) { background: var(--stripe); }
.get li { grid-template-columns: 1.4em minmax(0, 1fr); gap: 10px; }
.get li::before { text-align: right; }
table.changes { max-width: 720px; border: 1px solid #a8a8a8; }
.changes th, .changes td { padding: 7px 12px; font-size: 13px; line-height: 1.45; border-bottom: 0; }
.changes thead th { padding: 3px 12px; font: bold 11px/1.5 var(--ui); color: #2c2c2c; text-shadow: 0 1px 0 #fff;
  background: linear-gradient(#fdfdfd, #e1e1e1); border-bottom: 1px solid #a2a2a2; }
.changes thead th + th { border-left: 1px solid #c6c6c6; }
.changes tbody tr:nth-child(even) { background: var(--stripe); }

/* The price: an iTunes Store buy box */
.price-row { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px clamp(24px, 4vw, 56px); }
.price-card { gap: 8px; padding: 18px 18px 20px; color: var(--fg); background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #a8a8a8; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.price-card h3 { font: bold 15px/1.3 var(--ui); letter-spacing: 0; }
.price-card .price { font: bold 28px/1.1 var(--ui); letter-spacing: -.01em; }
.price-card .when { font-size: 13px; color: var(--mid); }
.price-card .what { font-size: 13px; line-height: 1.45; padding-top: 10px; border-top: 1px solid #c9c9c9; }
.price-card .book { margin-top: 6px; }
#how .plain { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; }   /* no price beside it, for now */
.plain { gap: 18px; }
.plain > div { padding-top: 12px; gap: 4px; align-content: start; }
.plain h3 { font: bold 13px/1.4 var(--ui); }
.plain p { font-size: 13px; line-height: 1.5; color: #444; }

/* Questions, folded, with iTunes' disclosure triangles */
.qa.fold { max-width: 720px; border: 1px solid #a8a8a8; }
.qa.fold details { border-top: 1px solid #dcdcdc; }
.qa.fold details:first-child { border-top: 0; }
.qa.fold summary { justify-content: flex-start; align-items: baseline; gap: 9px; padding: 8px 12px; font: 14px/1.45 var(--ui); }
.qa.fold summary::after, .qa.fold details[open] summary::after { content: none; }
.qa.fold summary::before { content: ""; flex: none; width: 0; height: 0; border-left: 6px solid #6b6b6b;
  border-block: 4px solid transparent; transition: transform .15s; }
.qa.fold details[open] summary::before { transform: rotate(90deg); }
.qa.fold details p { padding: 0 12px 12px 27px; font-size: 13px; color: #444; }
.qa.fold details p a.link { color: var(--link); background: none; text-decoration: underline; }

/* The status bar */
body > footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0;
  padding: 6px var(--gutter); background: var(--metal); border-top: 1px solid #7a7a7a; color: #333; font-size: 11px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
body > footer > :last-child { justify-self: end; }

/* The case sheet: dark, its bar the toolbar's silver */
.sheet .sheet-bar { align-items: center; margin-inline: calc(var(--gutter) * -1); padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 8px; color: #1d1d1d;
  font-size: 12px; background: var(--metal); border-bottom: 1px solid #6c6c6c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.sheet .sheet-bar button:focus-visible, .bar .seg a:focus-visible, .price-card .book:focus-visible,
.stage .transport .btns button:focus-visible { outline: 2px solid #6fa0e6; outline-offset: 1px; }   /* Aqua's focus ring */

@media (max-width: 760px) {
  header.bar { position: relative; }
  .stage { padding-top: 18px; }
  .price-row { grid-template-columns: minmax(0, 1fr); }
  #how .plain { grid-template-columns: minmax(0, 1fr); }
  body > footer { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; text-align: center; }
  body > footer > :last-child { justify-self: center; }
}
