@font-face { font-family: custom-heavy; src: url(fonts/source-serif-pro-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
/* This site's own components: the dynamic figures, their controls, the poster tiles. styles.css is diff-mining's page style.
   One column for everything: every figure is exactly as wide as the text (diff-mining's body), so the page has one left and one right edge. */

:root {
  --ink: #1d1d1b; --muted: #6b6b6b; --faint: #a8a8a8; --grid: #dcdcdc; --blue: #2f6db5; --gold: #c08a12; --orange: #d9541e;
  --red: #a3201b; --green: #3b8a3e; --light: #8fb3dc; --chip: #f2f2f0;
}

h1 .subtitle { font-size: 0.72em; font-weight: bold; }
a.plain-link { color: inherit; }
a.plain-link:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
body { padding-bottom: 70px; }                                        /* room for the dataset switch at the bottom of the screen */

/* ---- figures: the text's column ---- */
.wide, figure.wide { width: 100%; margin-left: 0; margin-right: 0; }
figure.dyn { margin-top: 1em; margin-bottom: 2.4em; text-align: left; }
.loading { color: var(--muted); font-size: 15px; padding: 3em 0; text-align: center; }

/* ---- the dataset switch: above the first figure, and at the bottom of the screen once that one is out of view ---- */
.ds-bar { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 160%); transition: transform .3s ease; z-index: 1040; display: flex;
  background: #fff; border: 1px solid #bbb; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.18); overflow: hidden; }
.ds-bar.show { transform: translate(-50%, 0); }
.ds-bar button { font: inherit; font-size: 15px; border: none; background: #fff; padding: 0.4em 1.1em; cursor: pointer; color: var(--ink); white-space: nowrap; }
.ds-bar button + button { border-left: 1px solid #ddd; }
.ds-bar button.active { background: #363636; color: #fff; }
body.ds-covers [data-only="posters"], body.ds-posters [data-only="covers"] { display: none !important; }

/* ---- controls ---- */
.fig-tools { display: flex; flex-wrap: wrap; gap: 0.6em 1em; align-items: center; justify-content: center; font-size: 15px; margin: 0 0 0.8em; }
.fig-tools.top-tools { justify-content: center; gap: 0.6em 10px; margin-bottom: calc(0.8em + 14px); }
.fig-tools label { margin: 0; display: inline-flex; align-items: center; gap: 0.35em; cursor: pointer; }
.fig-tools select, .fig-tools input[type=search] { font: inherit; font-size: 15px; border: 1px solid #ccc; border-radius: 6px; padding: 0.2em 0.5em; background: #fff; max-width: 100%; }
.fig-tools .search { border: 1px solid #ccc; border-radius: 999px; padding: 0.15em 0.75em; background: #fff; }
.fig-tools .search input { border: none; outline: none; padding: 0.1em 0.2em; width: 12em; }
.fig-tools .search i { color: var(--muted); font-size: 0.9em; }
.fig-tools .count { color: var(--muted); }
.fig-tools .range input { width: 9em; }
.seg { display: inline-flex; border: 1px solid #bbb; border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-size: 15px; border: none; background: #fff; padding: 0.2em 0.9em; color: var(--ink); cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid #bbb; }
.seg button.active { background: #363636; color: #fff; }
.btn-mini { font: inherit; font-size: 14px; border: 1px solid #bbb; border-radius: 999px; background: #fff; padding: 0.15em 0.75em; cursor: pointer; color: var(--ink); }
.btn-mini:hover, .seg button:hover:not(.active) { background: #f1f1ef; }
.btn-mini:disabled { opacity: 0.35; cursor: default; }
.pager { display: flex; gap: 0.6em; align-items: center; justify-content: center; font-size: 15px; margin-top: 0.8em; }
.pager.inline { margin: 0; }
.pager .where { color: var(--muted); min-width: 7em; text-align: center; }

/* ---- posters and covers ---- */
.pt { position: relative; aspect-ratio: 0.68; background: #ecebe8; overflow: hidden; flex: none; cursor: zoom-in; }
.pt img, .cv img { display: block; width: 100%; height: 100%; }
.bx { position: absolute; border: 1.25px solid var(--blue); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.7); pointer-events: none; }
.cv { position: relative; aspect-ratio: 1; background: #ecebe8; overflow: hidden; flex: none; cursor: zoom-in; }
.slot { aspect-ratio: 0.68; background: #f3f2ee; }
.slot.sq { aspect-ratio: 1; }
.strip { display: flex; gap: 2px; }
.strip > .pt, .strip > .cv, .strip > .slot { flex: 0 0 calc((100% - (var(--n, 6) - 1) * 2px) / var(--n, 6)); min-width: 0; }

/* the enlarged poster under the pointer, and a hover tip */
.zoom { position: fixed; z-index: 1060; pointer-events: none; background: #fff; padding: 5px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 260px; }
.zoom img { display: block; height: 240px; width: auto; max-width: 250px; }
.zoom img.sq { height: 200px; width: 200px; }
.zoom .zt { font-size: 13px; line-height: 1.3; margin-top: 4px; color: var(--ink); }
.zoom .zx { font-size: 12px; color: var(--muted); }
.hover-card { position: fixed; z-index: 1050; pointer-events: none; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
  padding: 6px 9px; max-width: 340px; font-size: 14px; line-height: 1.3; }

/* ---- the top figure, niche vs. cliché: the plot left, the motif right; nothing in the panel moves as the motifs change ---- */
.niche2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; padding: 0 7px 0 15px; align-items: start; }
.niche-plot { width: 100%; height: auto; display: block; touch-action: none; cursor: crosshair; }
.niche-plot text { font-family: custom, serif; }
.npanel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.nplot .nfoot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; padding-left: var(--plot-left, 0px); }
.nplot .nfoot .dots { display: flex; gap: 3px; flex-wrap: wrap; }
.nfoot .dots button { width: var(--dot, 21px); height: var(--dot, 21px); border-radius: 50%; border: 1.5px solid currentColor; background: #fff; font-size: calc(var(--dot, 21px) * 0.5); font-weight: bold;
  padding: 0; cursor: pointer; line-height: 1; }
.nfoot .dots button.on { background: currentColor; }
.nfoot .dots button.on span { color: #fff; }
.npanel .nq { font-size: 14px; font-weight: bold; height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.npanel .nname { font-size: 21px; font-weight: bold; line-height: 1.15; height: 2.3em; overflow: hidden; display: flex; align-items: center;
  justify-content: center; }
.npanel .nmeta { color: var(--muted); font-size: 14px; height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.npanel .ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; width: min(100%, 300px); }

/* ---- all motifs ---- */
.size-filter { margin: 0 auto 12px; }
.size-filter svg { width: 100%; height: auto; display: block; touch-action: none; }
.size-filter svg text { font-family: custom, serif; }
.size-filter .sf-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.size-filter .sf-line b { color: var(--ink); }
.motif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px 14px; }
.mcard { border: 1px solid #e3e2de; border-radius: 10px; padding: 8px 10px 10px; background: #fff; }
.mcard .mn { font-weight: bold; font-size: 15px; line-height: 1.25; }
.mcard .mm { color: var(--muted); font-size: 13px; margin: 1px 0 6px; }
.mcard .mm .tag { display: inline-block; border-radius: 4px; padding: 0 5px; font-size: 12px; margin-left: 2px; }
.tag.w { background: #ececea; color: #333; } .tag.p { background: #fbe3d8; color: #8a3410; }

/* ---- approach ---- */
.method-img { margin: 0.4em 0 0.4em; }
.method-img img { width: 100%; max-width: 100%; }
ul.bullets { margin: 0.8em 0 0.5em; padding-left: 1.2em; font-size: 19px; line-height: 1.45; }
ul.bullets li { margin: 0.3em 0; }
ul.bullets li b { margin-right: 0.35em; }
.method-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5em 1em; margin: 0 0 0.6em; }
.method-head h4 { font-size: 19px; font-weight: bold; margin: 0; }
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.6em; font-size: 14px; }
.player input[type=range] { width: 11em; max-width: 45vw; }
.player .status { color: var(--muted); min-width: 0; flex: 1 1 12em; }
.method-fig { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: start; border-top: 1px solid #ecebe7; padding-top: 10px; }
.mrow .ml b { display: block; font-size: 15px; }
.mrow .ml span { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.mrow .mr { min-width: 0; }
.mgrid { display: grid; gap: 3px; grid-template-columns: repeat(var(--cols, 17), minmax(0, 1fr)); }
.mt { position: relative; transition: opacity .35s, filter .35s; }
.mt .pt { width: 100%; }
.mt.typ .pt { outline: 2px solid var(--gold); outline-offset: 1px; }
.mt.no { opacity: 0.32; filter: grayscale(0.8); }
.mt .mk { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: bold; color: #fff; pointer-events: none; }
.mt.yes .mk { background: var(--green); } .mt.no .mk { background: var(--red); }
.mt.yes .pt { outline: 2px solid var(--green); outline-offset: 1px; }
.mt.hidden-step .pt { background: #f1f0ec; cursor: default; }
.mt.hidden-step .pt img { visibility: hidden; }
.mt.cur .pt { outline: 3px solid var(--ink); outline-offset: 1px; }
.mname { display: inline-block; padding: 4px 12px; border-radius: 10px; background: #f4efe2; font-style: italic; font-size: 16px; transition: opacity .4s; }
.mname.off { opacity: 0; }
.msix { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.msix .mgrid { --cols: 6; width: min(100%, 300px); }
.mcore { font-size: 13px; color: var(--muted); margin-top: 6px; }
.mcore b { color: var(--green); }
span.yes { color: var(--green); font-weight: bold; } span.no { color: var(--red); font-weight: bold; }

/* ---- decades (left) and genres (right) ---- */
.typical-fig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; align-items: start; }
.typical-fig > .loading { grid-column: 1 / -1; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.trow .tside { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trow .tctl { display: flex; align-items: center; gap: 0.3em; font-size: 13px; flex-wrap: wrap; }
.trow .tctl select { font: inherit; font-size: 13px; font-weight: bold; border: 1px solid #ccc; border-radius: 6px; padding: 0 0.2em; max-width: 9.5em; }
.trow .arr { border: none; background: none; padding: 0 0.1em; color: var(--muted); cursor: pointer; font-size: 14px; }
.trow .arr:disabled { opacity: 0.3; cursor: default; }
.trow .rank { font-size: 11px; color: var(--faint); }
.trow .tname { font-weight: bold; font-size: 13px; line-height: 1.2; }
.trow .tname .star { color: var(--gold); font-size: 11px; font-weight: normal; margin-left: 0.25em; }
.trow .tname { min-height: 2.4em; }
.trow .tctl .lift { white-space: nowrap; }
.trow .tmeta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 0.3em; }
.trow .tmeta .step { white-space: nowrap; }
.trow svg { width: 100%; height: auto; display: block; }
.trow svg text { font-family: custom, serif; }

/* ---- through time ---- */
.time-fig { position: relative; }
.tl { position: relative; width: 100%; }
.tl .tile { position: absolute; }
.tl .tile .pt { width: 100%; }
.tl .tile .wb { height: 2px; background: #8d8d8d; margin-top: 1px; }
.tl .axis { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); }
.tl .tick { position: absolute; font-size: 11px; transform: translateX(-50%); color: var(--muted); }
.tl .tick.major { font-weight: bold; }
.time-below { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px; margin-top: 16px; align-items: start; }
.time-below > * { min-width: 0; }
.map-wrap { overflow: hidden; }
.callout { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.callout img { width: 120px; height: auto; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.callout .ct { font-style: italic; font-size: 16px; }
.callout .cm { color: var(--muted); }
.callout .clead { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap path { stroke: #fff; stroke-width: 0.6; }
.map-wrap path.on { cursor: pointer; }
.map-wrap path.on:hover { stroke: var(--ink); stroke-width: 1.2; }
.map-key { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); justify-content: flex-end; margin-top: 2px; }
.map-key .bar { width: 150px; height: 8px; border-radius: 4px; }

/* ---- outliers over the trends: the same years across ---- */
.out-band { display: grid; column-gap: 0; align-items: end; }
.out-col { min-width: 0; padding: 0 2px; }
.out-col h5 { font-size: 13px; font-weight: bold; text-align: center; margin: 0 0 4px; white-space: nowrap; overflow: hidden; }
.out-col .og { display: grid; grid-template-columns: repeat(var(--oc, 4), minmax(0, 1fr)); gap: 2px; }
.trends-fig svg { width: 100%; height: auto; display: block; }
.trends-fig svg text { font-family: custom, serif; }
.legend-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-top: 8px; font-size: 14px; }
.legend-chips.small { font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 0.4em; border: 1px solid #ccc; border-radius: 999px; padding: 0.1em 0.7em; cursor: pointer; background: #fff; user-select: none; }
.chip.off { opacity: 0.4; }
.chip .sw { width: 1.4em; height: 0; border-top: 2.5px solid currentColor; }
.chip .sw.dash { border-top-style: dashed; }
.chip.ev { color: var(--red); border-color: #e2b9b6; }
.chip.more { color: var(--muted); border-style: dashed; }

/* ---- comparison with baselines: the clusters, and under each column a chart of all clusters ---- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bl-col { min-width: 0; }
.bl-col h5 { font-size: 15px; text-align: center; margin: 0 0 6px; font-weight: normal; }
.bl-col h5 b { font-weight: bold; }
.bl-row { margin-bottom: 6px; }
.bl-row .bh { display: flex; justify-content: space-between; gap: 0.5em; font-size: 12px; color: var(--muted); line-height: 1.25; min-height: 1.25em; }
.bl-row .bh .nm { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-row .bh .rk { color: var(--faint); margin-right: 0.3em; }
.stats-row { margin-top: 18px; align-items: start; }
.stats-row > div { min-width: 0; }
.stats-row svg { width: 100%; height: auto; display: block; }
.stats-row svg text { font-family: custom, serif; }
.stats-row h5 { font-size: 14px; text-align: center; font-weight: bold; margin: 0 0 4px; }
.table-wrap { display: block; overflow-x: auto; margin: 0 0 1.4em; }
table.results { border-collapse: collapse; border-spacing: 0; font-size: 16px; margin: 0 auto; width: 100%; }
table.results caption { caption-side: top; text-align: center; font-weight: bold; color: var(--ink); font-size: 15px; padding: 0 0 0.3em; }
table.results th, table.results td { padding: 0.35em 0.9em; text-align: center; }
table.results thead th { border-bottom: 1.5px solid var(--ink); }
table.results tbody tr:last-child th, table.results tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }
table.results thead tr { border-top: 1.5px solid var(--ink); }
table.results tbody th { text-align: left; font-weight: normal; }
table.results thead th:first-child { text-align: left; }
.m-singh { color: var(--green); } .m-rooy { color: var(--gold); } .m-ours { color: var(--blue); }
.ds-para .ds-name { display: inline; font-family: custom-heavy, custom, serif; font-weight: 900; font-size: 1.12em; margin-right: 0.45em; }   /* run in (pin #92) */
.ds-para { margin-bottom: 1.1em; }
.ds-para:last-of-type { margin-bottom: 2em; }

/* ---- limitations ---- */
figure.limits { margin: 0.6em 0 2em; }
.limits-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.limits-row img { width: 100%; height: auto; display: block; }
.limits-row p { text-align: center; font-size: 14px; margin: 0.3em 0 0; }
/* a limitation pops on hover (or a tap), its description over it */
.lim { position: relative; border-radius: 8px; transition: transform .22s ease, box-shadow .22s ease; outline: none; cursor: default; background: #fff; }
.lim:hover, .lim:focus-within { transform: scale(1.07); z-index: 5; box-shadow: 0 10px 34px rgba(0,0,0,.28); }
.lim-desc { position: absolute; left: 6px; right: 6px; bottom: 30px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.96);
  box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
  pointer-events: none; text-align: left; }
.lim:hover .lim-desc, .lim:focus-within .lim-desc { opacity: 1; transform: none; }

.katex { font-size: 1.05em; }
.katex-display { margin: 0.6em 0; overflow-x: auto; overflow-y: hidden; }

/* ---- narrow screens: the column is diff-mining's 80% there (to be refined separately) ---- */
@media screen and (max-width: 1000px) {
  .niche2 { grid-template-columns: minmax(0, 1fr); }
  .typical-fig { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .typical-fig > .trow { grid-column: 1 !important; grid-row: auto !important; }
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .time-below { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 700px) {
  .limits-row, .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .fig-tools .search input { width: 9em; }
  ul.bullets { font-size: 15px; }
  .ds-bar button, .seg button { font-size: 13px; padding: 0.3em 0.7em; }
  table.results { font-size: 13px; }
  table.results th, table.results td { padding: 0.3em 0.35em; }
}
#niche-search { width: 14em !important; }
.trends-fig .ev.hot line { stroke-opacity: 1; stroke-width: 2; }
.trends-fig .ev.hot text { font-weight: bold; }
/* the seven buttons under the title wrap on narrow screens instead of running off it */
.publication-links { flex-wrap: wrap; row-gap: 0.6em; }
@media screen and (max-width: 700px) { .publication-links .link-block { margin: 0 0.2rem; } .button.is-rounded { padding-left: 1.1em; padding-right: 1.1em; } }
/* Typical Motifs: a poster row opens its motif through time in a popup */
.trow.to-time .strip, .trow.to-time .tname, .trow.to-time > .tside > svg { cursor: pointer; }
.trow.to-time .strip { border-radius: 3px; transition: box-shadow .15s ease; }
.trow.to-time:hover .strip { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d8cfb8; }
.trow.to-time:hover .tname { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
html { scrollbar-gutter: stable; }
html.tp-open { overflow: hidden; }
.tpop { position: fixed; inset: 0; z-index: 1045; background: rgba(24, 24, 22, .55); display: flex; align-items: center; justify-content: center; padding: 3vh 2vw; }
.tpop[hidden] { display: none; }
.tp-box { position: relative; background: #fff; border-radius: 10px; width: min(1040px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain;
          padding: 14px 26px 22px; box-shadow: 0 18px 60px rgba(0, 0, 0, .35); }
.tp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.tp-title b { font-size: 21px; }
.tp-title .tp-ctx { color: var(--muted); font-size: 15px; margin-left: 0.6em; white-space: nowrap; }
.tp-x { border: none; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 0.1em; }
.tp-x:hover { color: var(--ink); }
.tp-note { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.tp-box .fig-tools { justify-content: flex-start; margin-bottom: 0.4em; }
.tp-box:focus { outline: none; }
.tp-box .map-wrap { max-width: min(440px, 52vh); margin-left: auto; }
@media screen and (max-width: 700px) { .tp-box { padding: 10px 12px 16px; } .tp-title .tp-ctx { white-space: normal; display: block; margin-left: 0; } }
.tl .tile .cv { width: 100%; }
.zoom .za { color: var(--muted); font-size: 12px; }
.trow .strip.g6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }   /* covers: 2 x 3 (pin #93) */
/* the replay with album covers: the same marks as the posters' */
.mt .cv { width: 100%; }
.mt.typ .cv { outline: 2px solid var(--gold); outline-offset: 1px; }
.mt.yes .cv { outline: 2px solid var(--green); outline-offset: 1px; }
.mt.hidden-step .cv { background: #f1f0ec; cursor: default; }
.mt.hidden-step .cv img { visibility: hidden; }
.mt.cur .cv { outline: 3px solid var(--ink); outline-offset: 1px; }
/* the top figure's x axis switch (posters): number of posters <-> the biggest motif its posters belong to */
.niche-plot .xswitch { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.niche-plot .xswitch:hover { fill: var(--ink); }
.npanel .nvote { color: var(--muted); font-size: 13px; min-height: 1.3em; max-width: 100%; }
/* the top figure's panel: next to the plot, its label bigger (the user, 2026-11-16) */
#top-niche .npanel { align-items: flex-start; }
#top-niche .npanel .nq { font-size: 17px; }
/* sizes the author picks on the review page (its "↔ Size" chooser): the page column and the top figure, as shares of the screen */
@media screen and (min-width: 1001px) {
  body { max-width: var(--col, 58%); }
  #top { width: var(--topw, 100%); margin-left: calc((100% - var(--topw, 100%)) / 2); }
  #top-niche { padding: 0; }                                         /* the figure from border to border (pin #95) */
}
/* the author's layout drags of 2026-11-24 (posters, made in a 2,493 px wide window: the top figure 68 px wider on its left, the toolbar left
   over the page column), built in as shares of the column so they hold at every window width and zoom, and for the posters only: the
   album covers keep their own layout, which the drags had broken (the author: "layout edit on posters broke discs which was fine") */
@media screen and (min-width: 1001px) {
  body.ds-posters #top { width: calc(var(--topw, 100%) * 1.0487); margin-left: calc((100% - var(--topw, 100%)) / 2 - 4.73%); }
  body.ds-posters #top > .top-tools { margin-left: 4.51%; width: 95.35%; }
}
/* room between the top figure's "Cliché" and the Abstract (the author: "cliche is also now almost on top of abstract give space") */
#top { margin-bottom: 2.4em; }
/* the play button keeps one width, play or pause, so neither it nor the numbers move when a click on a point pauses the tour (the
   author: "the play shouldn't move when I click on a point"); the two icons differ by 2 px */
.nplot .nfoot > .btn-mini { width: 2.5em; padding-left: 0; padding-right: 0; text-align: center; flex: none; }
/* the play button and the numbers on one line at any zoom (the author: "make the page still work with the same proportions after being
   zoomed in"): no wrapping; site.js's fit() shrinks the numbers instead */
.nplot .nfoot, .nplot .nfoot .dots { flex-wrap: nowrap; }
/* the top figure while a dataset's data load (2026-11-24): a message over the old figure, at once */
#top-niche.is-loading { position: relative; }
#top-niche.is-loading::after { content: attr(data-loading); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.75); font-size: 18px; color: var(--muted, #666); z-index: 5; }
/* Code and Dataset before the release (2026-11-24, the author: "github being grey light that doesn't click and say coming soon or when
   hovering - for both code and dataset - dataset should be huggingface sign"): light grey, no link, "coming soon" under it on hover */
.button.is-dark.soon, .button.is-dark.soon:hover, .button.is-dark.soon:focus { background: #dcdcdc; color: #7a7a7a; border-color: transparent; cursor: default; box-shadow: none; }
.button.soon { position: relative; }
.button.soon .fa-github { color: #7a7a7a; }
.button.soon .hf-logo { filter: grayscale(1) opacity(0.7); }
.button.soon::after { content: "coming soon"; position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); background: #444; color: #fff;
  font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 10; }
.button.soon:hover::after { opacity: 1; }
.button.soon .ai-arxiv { color: #7a7a7a; }
/* the first screen's arrow down (2026-11-24): at the bottom of the window, the abstract below the fold */
#fold { position: relative; }
#fold .scroll-down { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: var(--muted, #777); font-size: 30px; line-height: 1;
  text-decoration: none; animation: nc-bob 1.8s ease-in-out infinite; }
#fold .scroll-down:hover { color: var(--ink, #222); }
@keyframes nc-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
#abstract { scroll-margin-top: 28px; }

/* the public site: how to reach a cover on Discogs (js/site.js, window.SITE_PUBLIC) */
.zoom .zd { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* the public site: a cover without a Discogs image link (user, 2026-11-25: "put an image that they couldn't be fetched") */
.cv.nourl::after { content: "image not available"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3px; font-size: 10px; line-height: 1.2; color: var(--muted); }
.zoom .nourl-box { width: 200px; height: 200px; background: #ecebe8; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 12px; color: var(--muted); }

/* a window too short for the first screen (js/site.js fitScreen; the author, 2026-11-27: "the bottom part cuts can you make the
   central part fit"): the title, the buttons and the toolbar shrink by --fz, the figure narrows to the same share of the column, centred */
body > h1, body > center, body > .unis, body > .publication-links, #top > .top-tools { zoom: var(--fz, 1); }
#top-niche { margin-left: auto; margin-right: auto; }

/* phones (the author, 2026-11-30: "this renders badly on phone and should be aligned"): the four buttons under the title keep their size
   and wrap instead of overlapping (the template shrinks them and gives them negative margins under 500 px), and the top figure's panel,
   stacked under the plot, lets its label and counts wrap instead of cutting them */
@media screen and (max-width: 700px) {
  .publication-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 8px; margin-top: 1.8em; margin-bottom: 1.8em; }
  .publication-links .link-block { margin: 0; text-align: center; }
  .publication-links .link-block > .button { width: 100%; justify-content: center; }
  .publication-links .button.is-normal { font-size: 15px; margin: 0; padding: 0.45em 1.05em; height: auto; display: inline-flex; align-items: center; }
  .publication-links .icon { width: auto; height: auto; }             /* the label sits inside the template's fixed 1.3rem icon box */
}
@media screen and (max-width: 1000px) {
  #top-niche .npanel { align-items: center; }
  #top-niche .npanel .nq, #top-niche .npanel .nmeta { white-space: normal; height: auto; overflow: visible; }
}
