/* =========================================================================
   Insights - the gallery and a visualization's page (session 103).
   The gallery's cards are the Catalog's (catalog.css, .hb-cat-*); the page
   is a news post's (news.css, .hb-nw-*) with the chart under its title and
   the box office page's band pieces (cards.css, boxoffice.css). Only what
   those do not have is here, all .hb-ins-*.
   ========================================================================= */

/* The gallery */
/* A chart's picture fills its card (Bill, session 103: the Catalog's light,
   padded box left a dark chart floating in white) - wider than the Catalog's
   4:3, on the page's own dark ground, cropped at the edges if it must. */
.hb-ins-card .hb-cat-pic { aspect-ratio: 16 / 10; background: #1c1c1c; }
.hb-ins-card .hb-cat-pic img { object-fit: cover; object-position: center top; padding: 0; }
.hb-ins-card .hb-ins-teaser { margin: 6px 0 0; color: var(--t2); font-size: 14px; line-height: 1.45; }
.hb-ins-draft { outline: 1px dashed var(--orange); outline-offset: -1px; }
.hb-ins-draft .hb-cat-kicker { color: var(--orange); }
.hb-ins-empty { color: var(--t2); }

/* The band: a label stays with its pills when the row wraps */
.hb-ins-ctl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.hb-ins-band { row-gap: 8px; }

/* The chart's panel */
.hb-ins-chart { margin: 18px 0 6px; }

/* The waves (static/js/waves.js): a row per band, its ridge a soft line in
   its own lighter hue (Bill: "a softer outline"); a row hovered is lit and
   the rest dim. */
.hb-wv-plot { position: relative; margin-top: 4px; }
.hb-wv-plot svg { display: block; width: 100%; overflow: visible; }
.hb-wv-plot text { font: 12px 'Raleway', sans-serif; fill: #c8c8c8; }
.hb-wv-plot .hb-wv-n, .hb-wv-plot .hb-wv-axis { fill: #8a8a8a; font-size: 11px; }
.hb-wv-grid { stroke: rgba(255,255,255,.06); }
.hb-wv-base { stroke: rgba(255,255,255,.12); }
.hb-wv-area { fill-opacity: .82; transition: opacity .1s; }
.hb-wv-ridge { stroke-width: 1.1; stroke-linejoin: round; transition: opacity .1s; }
.hb-wv-lit .hb-wv-area, .hb-wv-lit .hb-wv-ridge { opacity: .25; }
.hb-wv-lit .hb-wv-on .hb-wv-area, .hb-wv-lit .hb-wv-on .hb-wv-ridge { opacity: 1; }
.hb-wv-lit .hb-wv-on text { fill: #fff; }
.hb-wv-narrow .hb-wv-name { paint-order: stroke; stroke: #222; stroke-width: 3px; font-size: 11px; }
.hb-wv-tip { position: absolute; z-index: 5; pointer-events: none; background: #1c1c1c; border: 1px solid #565656;
  padding: 6px 9px; font-size: 12px; color: #eee; white-space: nowrap; }
.hb-wv-tip b { font-family: 'Oswald', sans-serif; letter-spacing: .5px; }

/* Draft a news post (insights/news.py): a form on the draft bar, and what
   comes back when it fails */
.hb-ins-newsform { display: inline; margin: 0; }
.hb-ins-said { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--orange); background: #2a2a2a; color: #eee; }

/* The card's picture, shown while editing only */
.hb-ins-pic { max-width: 320px; }

/* The road (static/js/road.js, session 104 - the Watch Order, Bill's): stops
   winding down the panel, each its story's picture ringed in the colour of
   the year it came out; a film a circle, a series a rounded square; the
   largest the first era category's (the saga films), a step down the
   second's; the way home in gold. The note shows on hover or focus. */
.hb-rd { position: relative; margin: 8px 0 4px; }
.hb-rd svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hb-rd-road { fill: none; stroke-width: 9; stroke-linecap: round; }
.hb-rd-lane { fill: none; stroke: rgba(0,0,0,.45); stroke-width: 1.2; stroke-dasharray: 5 7; }
.hb-rd-stop { position: absolute; z-index: 2; width: 118px; margin-left: -59px; text-align: center; }
.hb-rd-pic { display: block; width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: #1c1c1c; border: 4px solid #777; box-shadow: 0 0 0 3px #2a2a2a; transition: transform .12s; }
.hb-rd-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-rd-series .hb-rd-pic { border-radius: 14px; }
.hb-rd-p1 .hb-rd-pic { width: 96px; height: 96px; border-width: 5px; }
.hb-rd-p2 .hb-rd-pic { width: 80px; height: 80px; }
.hb-rd-home .hb-rd-pic { box-shadow: 0 0 0 3px #2a2a2a, 0 0 0 6px #E8C25A, 0 0 18px 4px rgba(232,194,90,.35); }
.hb-rd-stop:hover .hb-rd-pic, .hb-rd-stop:focus-within .hb-rd-pic { transform: scale(1.12); }
.hb-rd-n { position: absolute; left: 18px; top: -6px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px;
  background: #1c1c1c; border: 1px solid #565656; font: 11px/20px 'Oswald', sans-serif; color: #ddd; }
.hb-rd-p1 .hb-rd-n { left: 10px; }
.hb-rd-p2 .hb-rd-n { left: 14px; }
.hb-rd-t { display: block; margin-top: 7px; font: 600 13px/1.25 'Raleway', sans-serif; color: #eee; }
.hb-rd-p1 .hb-rd-t { font-size: 15px; }
.hb-rd-t:hover, .hb-rd-t:focus { color: #fff; text-decoration: underline; }
.hb-rd-y { display: block; margin-top: 2px; font: 11px 'Raleway', sans-serif; color: #9a9a9a; }
.hb-rd-note { display: block; margin-top: 3px; font: italic 11px/1.3 'Raleway', sans-serif; color: #b8b8b8;
  opacity: 0; transition: opacity .12s; }
.hb-rd-stop:hover .hb-rd-note, .hb-rd-stop:focus-within .hb-rd-note { opacity: 1; }
.hb-rd-key { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; font-size: 12px; color: #aaa; }
.hb-rd-scale { width: 220px; max-width: 40%; height: 8px; border-radius: 4px; background: #555; }
.hb-rd-keyshape { margin-left: 6px; }
.hb-rd-shape { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px;
  border: 2px solid #aaa; border-radius: 50%; }
.hb-rd-shape.hb-rd-sq { border-radius: 3px; }

/* Editing the road's words on the chart (road.js, staff only - Bill,
   session 104): the button, a title and a note box under each picture, the
   heading's two lines above the road. The links rest while editing. */
.hb-rd-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.hb-rd-said { font-size: 12px; color: #9fd39f; }
.hb-rd-said.hb-rd-bad { color: #f0a080; }
.hb-rd-headin { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.hb-rd-headin .hb-rd-in { flex: 1 1 240px; font-size: 13px; }
.hb-rd-in { display: block; width: 100%; margin-top: 5px; padding: 3px 5px; border: 1px solid #565656; border-radius: 3px;
  background: #1c1c1c; color: #eee; font: 11px/1.3 'Raleway', sans-serif; }
.hb-rd-in-t { margin-top: 7px; font-weight: 600; font-size: 12px; }
.hb-rd-in:focus { outline: none; border-color: #E8C25A; }
.hb-rd-in.hb-rd-bad { border-color: #f0a080; }
.hb-rd-editing .hb-rd-pic { pointer-events: none; }
.hb-rd-editing .hb-rd-stop { width: 128px; margin-left: -64px; }
