/* The front page: what only it needs on top of the shared template (aeu.css) and ≠01's styles
   (the-average-user/piece.css). Vermilion is an intentional accent here: the primary button, the ≠
   diagonal, what stays of the job in the latest essay's piles, and the visitor's mark and score in
   the game. */

.home { --red-hover: #ff5a3c; }

/* ---------- buttons on the board ---------- */

.btn { text-decoration: none; gap: 0.6rem; }
.btn-red { background: var(--bermellon); color: var(--ink-on-red); font-weight: 600; }
.btn-red:hover { background: var(--red-hover); }
.btn-red svg { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease-out); }
.btn-red:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--tiza); outline-offset: 3px; }
.btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- the hero: a full-bleed chalkboard, closed by the numeral edge ---------- */

.hero {
  position: relative;
  padding: 0 0 clamp(2rem, 5vw, 3.5rem);
  margin-bottom: calc(var(--stip) + clamp(2.5rem, 6vw, 4.5rem));
}
.hero .strip { border-bottom-color: var(--board-rule); }
.hero .brand { color: var(--tiza); }
.hero .brand:hover { text-decoration: none; }
.hero .strip-meta { gap: clamp(0.9rem, 2.2vw, 1.75rem); }
.hero .strip-meta a { color: var(--tiza); text-decoration: none; }
.hero .strip-meta a:hover { text-decoration: underline; text-decoration-color: var(--chalk-dim); }

/* Two by two, rows that line up: title and dek | the curve, as tall as they are; under one hairline,
   byline and buttons | switch and sentence. Stacked, the figure follows the actions. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy chart" "rule rule" "act fig";
  column-gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.25rem, 5vw, 4rem);
}
.hero-copy { grid-area: copy; }
.hero-chart { grid-area: chart; align-self: end; }
.hero-rule { grid-area: rule; height: 1px; margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem); background: var(--board-rule); }
.hero-act { grid-area: act; }
.hero-fig { grid-area: fig; }
.hero-act .hero-by { margin-top: 0; }
.hero-act .hero-actions { margin-top: 1rem; }
.hero-fig .switch { margin-bottom: 0.6rem; }
.hero h1 {
  margin: 0;
  max-width: 9.5em;
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero-sub {
  margin: clamp(1.1rem, 2.5vw, 1.6rem) 0 0;
  max-width: 21em;
  font-size: var(--fs-dek);
  line-height: 1.3;
  color: var(--chalk-dim);
  text-wrap: pretty;
}
.hero-sub strong { color: var(--tiza); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero-actions .btn { min-height: 50px; padding-inline: 1.3rem; font-size: var(--fs-caption); }
.hero-site {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  max-width: 34em;
  font: 400 0.8125rem/1.6 var(--mono);
  color: var(--chalk-dim);
}

.hero-sub { max-width: 24em; }
.hero-by { margin: 1.1rem 0 0; font: 500 var(--fs-label)/1.4 var(--mono); color: var(--chalk-dim); }

/* ---------- the hero's switch: all else equal, or the data ---------- */

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tiza);
  font: 500 var(--fs-caption)/1.1 var(--serif);
  text-align: left;
  cursor: pointer;
}
.switch-track {
  position: relative;
  flex: none;
  width: 48px;
  height: 26px;
  border: 1.5px solid var(--board-low);
  border-radius: 13px;
  background: var(--pizarra);
  transition: background-color 0.2s, border-color 0.2s;
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--chalk-dim);
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}
.switch[aria-checked="true"] .switch-track { background: var(--tiza); border-color: var(--tiza); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); background: var(--pizarra); }
.switch:focus-visible { outline: 2px solid var(--tiza); outline-offset: 4px; }

/* Only the switch, the curve and one sentence: the full chart, with its axes and source, is ≠01's plate 1. */
.ceteris-chart .base { stroke: var(--board-low); stroke-width: 1; }
.ceteris-chart .step { fill: none; stroke: var(--tiza); stroke-width: 2; stroke-linejoin: miter; transition: opacity 0.4s, stroke 0.4s; }
.ceteris-chart .obs { fill: none; stroke: var(--bermellon); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ceteris-chart:not(.is-equal) .step { opacity: 0.35; stroke: var(--chalk-dim); }
.ceteris-chart.is-equal .obs { opacity: 0; }
.ceteris-caption { margin: 0; min-height: 2.6em; max-width: 22em; font-size: var(--fs-dek); line-height: 1.3; color: var(--tiza); text-wrap: balance; }

/* ---------- the essays (paper): an index, one row per essay, newest first ----------
   The number sits in a margin of its own, like the Data / Model / Opinion tags in the essays; the
   drawing is the essay's main figure in ink (Hairline's lines frozen to SVG). The whole row is a link. */

/* The heading, and the lead on the right, on the heading's baseline, in one line. */
.index-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "title lead";
  align-items: baseline;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.index-head h2 { grid-area: title; }
.index h2 { margin: 0; font-weight: 500; font-size: var(--fs-headline); line-height: 1.1; letter-spacing: -0.018em; }
.index-lead { grid-area: lead; justify-self: end; margin: 0; font-size: var(--fs-caption); line-height: 1.5; color: var(--pizarra-media); white-space: nowrap; }
/* "View all": a small outlined button at the right end of the carousel's dots, to the essays page. */
.index-all {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--pizarra);
  color: var(--pizarra);
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.index-all::after { content: ""; position: absolute; inset: -6px -2px; } /* a small button, a 44px target */
.index-all svg { width: 0.85rem; height: 0.85rem; transition: transform 0.2s var(--ease-out); }
.index-all:hover { background: var(--pizarra); color: var(--tiza); }
.index-all:hover svg { transform: translateX(2px); }
/* Where the lead no longer fits on one line, it goes under the heading and wraps. */
@media (max-width: 899px) {
  .index-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead"; }
  .index-lead { justify-self: start; white-space: normal; text-wrap: pretty; }
}
/* Every row the same height, whatever its drawing: one figure box for all, and the rows of the grid
   share the tallest. */
.rows { display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--linea); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-top: 1px solid var(--linea);
}
.row-main { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; }
.row-no { margin: 0; font: 500 var(--fs-label)/1 var(--mono); letter-spacing: 0.04em; color: var(--pizarra-media); }
.row-title { margin: 0; font-weight: 500; font-size: var(--fs-headline); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.row-title a { color: var(--pizarra); text-decoration: none; }
.row-title a::after { content: ""; position: absolute; inset: 0; }
.row:hover .row-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.row-title a:focus-visible { outline: none; }
.row-title a:focus-visible::after { outline: 2px solid var(--pizarra); outline-offset: -2px; }
.row-q { margin: 0.55rem 0 0; max-width: 30em; font-style: italic; font-size: var(--fs-caption); line-height: 1.45; color: var(--pizarra-media); text-wrap: pretty; }
.row-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin: 0.9rem 0 0; font: 400 var(--fs-label)/1.5 var(--mono); color: var(--pizarra-media); }
.row-meta a { position: relative; z-index: 1; color: var(--pizarra); white-space: nowrap; }
.row-fig { height: clamp(13rem, 24vw, 20rem); }
.row-fig img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- why (paper): the manifesto ---------- */

.why-body p { margin: 0 0 1em; text-wrap: pretty; }
.why-lead { font-size: var(--fs-dek); line-height: 1.35; }

/* ---------- the latest essay (board) ---------- */

.latest {
  position: relative;
  margin: calc(var(--stip) + clamp(3rem, 7vw, 5rem)) 0;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.latest h2 { margin: 0; font-weight: 500; font-size: var(--fs-headline); line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance; }
.latest-no { display: inline-block; margin-right: 0.6em; font: 500 var(--fs-label)/1 var(--mono); letter-spacing: 0.04em; color: var(--chalk-dim); vertical-align: 0.4em; }
.latest-sub { margin: 1rem 0 0; max-width: 24em; font-size: var(--fs-dek); line-height: 1.3; color: var(--chalk-dim); text-wrap: pretty; }
.latest-sub strong { color: var(--tiza); font-weight: 600; }

/* ---------- the questions and teaching (paper) ---------- */

.questions .piece-q { margin: 0; font-size: var(--fs-title); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.questions .piece h3 { margin: 0.4rem 0 0; font-size: var(--fs-body); font-weight: 400; font-style: italic; letter-spacing: 0; }
.questions .piece h3.is-next { color: var(--pizarra-media); }
.questions .piece.is-open .piece-q { color: var(--pizarra-media); }
.questions .piece.is-open > .tag { color: var(--pizarra-media); }
.questions .piece .piece-meta { margin-top: 0.4rem; }

.teach-list { margin: 0 0 2rem; border-top: 1px solid var(--linea); }
.teach-list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--linea); }
.teach-list dt { padding-top: 0.25em; font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--pizarra-media); }
.teach-list dd { margin: 0; font-size: var(--fs-caption); line-height: 1.5; }

.close-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.close-actions .btn { min-height: 50px; padding-inline: 1.3rem; font-size: var(--fs-caption); }
.btn-ink { background: transparent; color: var(--pizarra); border-color: var(--pizarra); }
.btn-ink:hover { background: var(--pizarra); color: var(--tiza); }
.btn-ink:focus-visible { outline-color: var(--pizarra); }

.hero-figure { margin: 0; }
/* The latest essay's figure: ≠02's two piles (hours.js), then plate 2's first question. */
.piles-stage {
  --hairline-plate: #12261f;
  --hairline-hi: #f2401f;
  --hairline-edge: #a9b5ae;
  --hairline-mid: #4a5c54;
  --hairline-lo: #3b5248;
  --hairline-stroke: 1.1;
  width: 100%;
  max-width: 36rem;
  /* The piles sit in the middle of the 5:4 stage: trim the empty bands above and below. */
  margin: -13% auto -9%;
}
.pile-label {
  position: absolute;
  transform: translate(-50%, 0.9rem);
  white-space: nowrap;
  pointer-events: none;
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--tiza);
}
.pile-label.ai { color: var(--chalk-dim); }
.piles-q { margin: 1.75rem 0 0; font: 400 0.8125rem/1.3 var(--mono); color: var(--chalk-dim); }
.piles-stops { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.piles-stops .btn { min-height: 40px; padding: 0.4rem 0.75rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; }
.piles-read { margin: 1rem 0 0; font-size: 1.25rem; line-height: 1.4; text-wrap: pretty; }
.piles-read strong { font-weight: 600; }
.piles-who { margin: 0.6rem 0 0; min-height: 2.9em; font: 400 0.8125rem/1.45 var(--mono); color: var(--chalk-dim); }
.piles-who.on { color: var(--tiza); }
.hero-source { margin-top: 0.9rem; font: 400 0.75rem/1.5 var(--mono); color: var(--chalk-dim); }
.hero-source a { color: var(--tiza); }

/* ---------- how it works (paper) ---------- */

.how .essay h2,
.essays .essay h2 { margin-top: 0; }
.how-lead,
.how-plates { margin: 0 0 1.4rem; text-wrap: pretty; }
.how-lead { font-size: var(--fs-dek); line-height: 1.35; }
.how .layer b { font-weight: 600; font-style: normal; }
.how .layer + .layer { margin-top: 1.25rem; }
.how-plates { margin-top: 2.25rem; }

/* ---------- the game band ---------- */

.play {
  position: relative;
  margin: calc(var(--stip) + clamp(3rem, 7vw, 5rem)) 0;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.play-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.play h2 {
  margin: 0;
  font-weight: 500;
  font-size: var(--fs-headline);
  line-height: 1;
  letter-spacing: -0.025em;
}
.play-intro { margin: 0.9rem 0 0; max-width: 18em; color: var(--chalk-dim); font-size: var(--fs-caption); line-height: 1.5; }
.score { display: flex; align-items: baseline; gap: 0.6rem; margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; font-family: var(--mono); }
.score-label,
.score-of { font-size: 0.8125rem; color: var(--chalk-dim); }
.score output { font-size: var(--fs-figure); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--bermellon); }
.pips { display: flex; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pips li { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--board-low); }
.pips li.done { background: var(--tiza); border-color: var(--tiza); }
.pips li.now { border-color: var(--tiza); }
.best { margin: 1rem 0 0; font: 400 0.8125rem/1.4 var(--mono); color: var(--chalk-dim); }

.g-q {
  margin: 0;
  max-width: 24em;
  font-weight: 500;
  font-size: var(--fs-title);
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.g-n {
  display: inline-block;
  margin-right: 0.7em;
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
  vertical-align: 0.35em;
}
.g-track { position: relative; margin-top: clamp(2.75rem, 5vw, 3.5rem); }
.g-marks { position: absolute; left: 11px; right: 11px; top: 0; height: 44px; pointer-events: none; }
.g-mark {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--pizarra);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.g-mark.you { background: var(--bermellon); }
.g-mark.data { background: var(--tiza); transition: opacity 0.2s; }
.g-tag {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 500 0.8125rem/1 var(--mono);
  color: var(--tiza);
}
.g-mark.data .g-tag { bottom: calc(100% + 10px); }
.g-mark.you .g-tag { top: calc(100% + 10px); color: var(--chalk-dim); }
.g-chalk {
  position: absolute;
  top: calc(50% - 1px);
  height: 2px;
  background: var(--tiza);
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.revealed .g-mark { opacity: 1; }
.revealed .g-mark.data { transition-delay: 0.55s; }
.revealed .g-chalk { transform: scaleX(1); }
.revealed .range::-webkit-slider-thumb { opacity: 0; }
.revealed .range::-moz-range-thumb { opacity: 0; }
.g-ends { display: flex; justify-content: space-between; margin-top: 0.15rem; padding-inline: 2px; font: 400 0.75rem/1 var(--mono); color: var(--chalk-dim); }
.revealed .g-ends { margin-top: 1.9rem; }
.g-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.4rem; }
.g-val { min-width: 6ch; font: 500 var(--fs-figure)/1 var(--mono); letter-spacing: -0.02em; }
.g-result { margin: 1.6rem 0 0; font-size: var(--fs-body); line-height: 1.4; }
.g-result strong { font-weight: 600; }
.g-pts { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.g-note { margin: 0.6rem 0 0; max-width: 36em; color: var(--chalk-dim); font-size: var(--fs-caption); line-height: 1.5; text-wrap: pretty; }
.g-note a { color: var(--tiza); }
.g-next { margin-top: 1.4rem; }

.g-end h3 { margin: 0; font-weight: 500; font-size: var(--fs-headline); line-height: 1.1; letter-spacing: -0.015em; }
.g-recap { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--board-rule); }
.g-recap li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.25rem 1.25rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--board-rule);
  font-size: var(--fs-caption);
  line-height: 1.4;
}
.g-recap .mono { font-size: 0.8125rem; color: var(--chalk-dim); white-space: nowrap; }
.g-recap .pts { color: var(--tiza); font-weight: 500; text-align: right; min-width: 3.5ch; }
.g-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.g-share { margin: 1rem 0 0; padding: 0.8rem 1rem; border: 1px solid var(--board-low); font: 400 0.8125rem/1.5 var(--mono); user-select: all; }

/* ---------- essays (paper) ---------- */

.piece { margin-top: 0; padding-block: 1.4rem; border-top: 1px solid var(--linea); }
.piece:last-child { border-bottom: 1px solid var(--linea); }
.piece > .tag { padding-top: 0.75em; color: var(--pizarra); }
.piece > .tag::after { display: none; }
.piece h3 { margin: 0; font-weight: 500; font-size: var(--fs-title); line-height: 1.15; letter-spacing: -0.012em; }
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.piece .piece-dek { margin: 0.4rem 0 0; font-style: italic; color: var(--pizarra-media); }
.piece .piece-meta { margin: 0.6rem 0 0; font: 400 0.8125rem/1.5 var(--mono); color: var(--pizarra-media); }
.piece.is-next h3 { color: var(--pizarra-media); }
.piece.is-next > .tag { color: var(--pizarra-media); }

.home .foot { margin-top: clamp(3rem, 7vw, 5rem); }

/* ---------- narrow screens ---------- */

@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "act" "rule" "chart" "fig"; }
  .hero-act { margin-top: 1.1rem; }
  .hero-chart { margin-bottom: 1rem; }
  .latest-grid { grid-template-columns: minmax(0, 1fr); }
  .teach-list > div { grid-template-columns: minmax(0, 1fr); }
  .piles-stage { margin: -9% auto -6%; max-width: 30rem; }
  .play-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 899px) {
  /* The drawing first, then the number and the text, one under the other. */
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; align-content: start; }
  .row-fig { order: -1; height: clamp(12rem, 45vw, 16rem); }
  .row-main { grid-template-columns: minmax(0, 1fr); row-gap: 0.6rem; }
}
@media (max-width: 599px) {
  .hero .strip { flex-wrap: wrap; row-gap: 0.75rem; padding-block: 0.9rem; }
  .hero .strip-meta { width: 100%; justify-content: space-between; }
  .g-recap li { grid-template-columns: minmax(0, 1fr) auto; }
  .g-recap li .you-v { display: none; }
}
@media (max-width: 899px) {
  .piece { padding-block: 1.1rem; }
  .piece > .tag { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .g-chalk,
  .g-mark.data { transition: none !important; }
}

/* ---------- the close: the next essay by email, once the newsletter is connected (aeu.js) ---------- */

.close .essay > .next-full { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* ---------- the essays: the next one, by email (aeu.js, once the newsletter is connected) ----------
   One more row under the published ones, on the same two columns: the number in its margin and the
   question where a title goes, then the form where a row has its drawing. No drawing yet, so it is only
   as tall as it needs to be. */

.next-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--linea);
}
.next-index p.next-title { margin: 0; font-size: var(--fs-title); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.next-index .row-meta { margin-top: 0.7rem; }
.next-index .next-form { max-width: none; margin: 0; }
@media (max-width: 899px) {
  .next-index { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
}

/* ---------- the essays, turning (home/essays.js) ----------
   One row in view; the next rises from below every 6 s. A dot per essay to pick one, and "View all" at the
   right end of their row; no progress line and no Pause (the author's choice): the essays page shows them
   all, still. Without the script only "View all" shows under the rows. */

.turn.is-turning .turn-view { overflow: hidden; border-bottom: 1px solid var(--linea); }
.turn.is-turning .rows { border-bottom: 0; }
.turn-track.is-moving { transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.turn-bar { display: flex; align-items: center; gap: 1rem; padding-top: 0.25rem; }
.turn-dots { display: flex; margin-left: -14px; }
.turn-dots button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.turn-dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--pizarra-media);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.turn-dots button:hover::before { border-color: var(--pizarra); }
.turn-dots button[aria-current="true"]::before { background: var(--pizarra); border-color: var(--pizarra); }
.turn-dots button:focus-visible { outline-offset: -6px; }
/* The next essay's row follows the dots, so it draws its own top rule. */
.turn.is-turning + .next-index { border-top: 1px solid var(--linea); margin-top: 0.25rem; }

/* ---------- the essays page (essays/): every essay in the full rows, then the next questions ---------- */

.essays-list .rows { margin-top: clamp(2.5rem, 6vw, 4rem); }
/* A question followed by its status ("Next") keeps them together. */
.questions .body p.piece-q:has(+ .piece-meta) { margin-bottom: 0; }
.questions .piece .piece-meta { margin-top: 0.5rem; }
/* On the essays page the next essay's row is one more row of the list: the grid makes it as tall as the
   essays (the tallest), with the row's own padding and the list's bottom rule. */
.rows > .next-index { padding-block: clamp(2rem, 4.5vw, 3.25rem); border-bottom: 0; align-content: center; }
