/* Pulp v6: what v6 adds to v3's, v4's, and v5's styles (tools/v6build/build.py). */
/* The hint lines ("Hover or tap a drawing to see what it measures.") were never visible: an old rule set them to
   opacity 0 everywhere. They show at rest and step back while a drawing is pointed at, pressed, or focused, or while
   a promise is playing, as first intended. */
main .v3-hint { opacity: 1; }
main section:has(.p-plate[aria-pressed="true"], .p-plate:focus-visible) .v3-hint,
main section:has(.p-reelled[data-state~="live"]) .v3-hint { opacity: 0; }
@media (hover: hover) and (pointer: fine) { main section:has(.p-plate:hover) .v3-hint { opacity: 0; } }
/* the hero's link to the API page reads as part of the line */
.v2-hero .v6-herolink { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* ---- Shah's layout notes (Nov 24) ---- */
/* a hero's words and its artwork each keep to their own column; v6.js fits the headline to its column */
.v2-hero__text { min-width: 0; }
.v2-hero .v2-h1 { max-width: 100%; }
/* room to breathe in every hero (Shah, Nov 24: "too close for comfort ... tight and claustrophobic"): the headline tops
   out at 96 pixels where it ran to 120, its lines sit far enough apart that a highlight box clears the line above and
   below it, each piece of the stack has more air, and the hero starts a little closer to the bar to pay for it */
.v2-hero .v2-h1:not(.v4-h1):not(.dm-h1) { font-size: clamp(44px, 6.4vw, 96px); }
.v2-hero .v2-h1 { line-height: 1.08; padding-bottom: 0.06em; }
.v2-hero .v2-hero__text { gap: 28px; }
.v2-hero .v2-ctas { margin-top: 4px; }
.v2-hero__art { min-width: 0; overflow: hidden; }
/* the footer: each column is as wide as its own links, so nothing wraps on a wide screen, the columns spread evenly,
   and every row sits on the same line across the five */
.v2-foot .v3-foot { gap: 36px 32px; }
.v2-foot .v3-foot h2 { margin-bottom: 16px; }
.v2-foot .v3-foot ul { gap: 10px; }
.v2-foot .v3-foot li > a, .v2-foot .v3-foot .v3-foot__row > a { line-height: 1.35; }
.v2-foot .v3-foot .v3-foot__more ul { gap: 6px; }
.v2-foot .v3-foot .v3-foot__has[data-open] .v3-foot__more ul { padding-top: 8px; }
@media (min-width: 900px) { .v2-foot .v3-foot { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .v2-foot .v3-foot { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 40px 32px; }
  .v2-foot .v3-foot li > a, .v2-foot .v3-foot .v3-foot__row > a { white-space: nowrap; }
}
/* Our story's contents: three across and two down, every card set the same way */
@media (min-width: 900px) { .os-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 560px) and (max-width: 899px) { .os-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.os-toc a { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
.os-toc__n { grid-row: auto; }
@media (max-width: 899px) { .os-toc__t { min-height: 2.4em; } }
/* Company: the team's cards. A face with the person's color on it, the name, and what they do, in the same place in
   every card; four across, in Shah's order, and two across on a phone */
.v6-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .v6-team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v6-person { gap: 4px; }
.v6-face { position: relative; display: block; width: 72px; height: 72px; margin-bottom: 14px; }
.v6-face img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--band); }
.v6-face .os-dot { position: absolute; right: -2px; bottom: -2px; box-sizing: border-box; width: 20px; height: 20px; border: 3px solid var(--card); }
.v6-person .os-person__name { display: block; font-size: 20px; }
.v6-person .os-person__role { font-size: 15px; }
@media (max-width: 899px) { .v6-person .os-person__name { min-height: 2.4em; } }
/* Our story's opening: the headline gets the wider column and a size that holds a long word */
@media (min-width: 900px) { .os-open__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); } }
.os-open .os-h1 { max-width: 100%; font-size: clamp(38px, 6vw, 84px); text-wrap: wrap; }
.os-open .os-dek { max-width: 40ch; }
.os-open__art { overflow: hidden; }
/* the closing band: the words get a wider column, so they sit in a few even lines beside the headline */
@media (min-width: 900px) {
  .v3-cta .v2-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
  .v3-cta .v3-cta__end { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); align-items: center; gap: 32px; }
  .v3-cta .v2-lede { font-size: clamp(18px, 1.6vw, 22px); }
}

/* ---- the pages of the new site map (tools/v6build/pages.py) ---- */
/* numbered steps beside a plate */
.v6-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: v6s; max-width: 46ch; }
.v6-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; counter-increment: v6s; }
.v6-steps li::before { content: counter(v6s, decimal-leading-zero); grid-row: 1 / span 2; padding-top: 5px; font-size: 14px; font-weight: 850; color: var(--thread); font-variant-numeric: tabular-nums; }
.v6-steps b { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.v6-steps span { font-size: 17px; line-height: 1.5; color: var(--muted); }
.v6-split { align-items: center; }
.v6-plate .v3-art { margin: 0; --p5-ground: var(--ground); }
.v6-plate .p-pl { width: 100%; max-width: 560px; }
/* a hub's rows: the plate, the name, one line, and the way in */
.v6-rows { display: grid; gap: 18px; }
.v6-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.v6-row[data-bare] { grid-template-columns: minmax(0, 1fr); padding: 26px; }
.v6-row__art .v3-art { margin: 0; --p5-ground: var(--card); }
.v6-row__art .p-pl { width: 100%; }
.v6-row h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-weight: 850; letter-spacing: -0.02em; }
.v6-row h3 a { color: inherit; text-decoration: none; }
.v6-row p { margin: 8px 0 14px; max-width: 44ch; font-size: 18px; line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) { .v6-row { grid-template-columns: minmax(0, 1fr); } }
/* Pulp Labs: five short sections, set the same way */
.v6-soon { max-width: 860px; }
.v6-soon .v2-lede { max-width: 52ch; }
/* the newsletter form sits on the dark band */
.v6-wait { padding: 0; background: none; box-shadow: none; max-width: 520px; color: var(--feature-type); }
.v6-wait .v2-field input { background: transparent; color: var(--feature-type); border-color: color-mix(in srgb, var(--feature-type) 45%, transparent); }
.v6-wait .v2-field input:focus-visible { outline-color: var(--feature-type); border-color: var(--feature-type); }
.v6-wait .v2-status { color: var(--feature-muted); }
.v6-wait button { align-self: flex-start; }
