/* landing-next's home, its own parts (17 Nov 2026), loaded on the home and wherever its time chart is (the sponsors page,
   23 Nov), after next.css and before type.css. Colours
   are tokens only, so the dark theme's swap carries them. */

/* ---------- the hero's headline a step up on a phone (Lucas, 17 Nov: "make this headline a small amount larger"): the
   section headline's role where the column is the screen's width; on a desktop it stays the panel's title ---------- */
@media (max-width: 860px) {
  .pr-h1 { font: var(--t-h2); letter-spacing: var(--tr-h2); text-wrap: balance; }
}

/* ---------- all the events, a pill on a row over them (Lucas, 17 Nov: "add 'view all events' in the top instead"), its
   right edge on the cards' ---------- */
.pr-evs-all { display: flex; justify-content: flex-end; margin-top: var(--gutter); }
.pr-evs-all .pr-go { margin-top: 0; }

/* ---------- the why as a settings panel (Lucas, 17 Nov, with the app's "Team size" card: "replace this with [it] but
   remake it so it fits the brand more"). One light panel where the two cards were, on the why's own split: the title
   on the headline's columns (1 to 5), the rows on the lede's (6 to 12), each a format's name and its grey line on the
   left, its time as a field on the right; the comparison pill where the card's Save was. Boxes are fills; the fields
   keep the one outline, ours filled orange with ink on it. ---------- */
.nx-set { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin: var(--s-4) var(--page-margin) 0; padding-block: var(--pad-panel); border-radius: 12px; background: var(--mist);   /* design-ok: the panels' corner */
  --go-bg: var(--paper); --go-hover: var(--mist-hover); --go-chip: var(--mist); }
.nx-set > * { padding-inline: var(--pad-panel); }
.nx-set-h { grid-column: 1 / 6; color: var(--ink); font: var(--t-h3); letter-spacing: var(--tr-h3); text-wrap: balance; }
.nx-set-rows { grid-column: 6 / 13; margin: 0; list-style: none; }
.nx-set-rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--s-2); padding-block: var(--s-1); border-top: 1px solid var(--hair); }
.nx-set-rows > li:first-child { padding-top: 0; border-top: 0; }
.nx-set-k { display: flex; flex-direction: column; min-width: 0; }
.nx-set-k b { color: var(--ink); font: var(--t-body-strong); letter-spacing: var(--tr-body-strong); }
.nx-set-k span { color: var(--grey); font: var(--t-small); letter-spacing: var(--tr-small); }
.nx-set-v { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.nx-f { display: inline-flex; align-items: center; min-width: 56px; height: 36px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 6px; background: var(--paper); color: var(--ink); font: var(--t-body); letter-spacing: var(--tr-body); font-variant-numeric: tabular-nums; }   /* design-ok: a field's outline and corner, as the app's inputs */
.nx-fu { color: var(--grey); font: var(--t-body); letter-spacing: var(--tr-body); }
.nx-set .us .nx-f { border-color: var(--sun); background: var(--sun); color: var(--sun-ink, var(--ink)); }   /* ours: ink on the orange in either theme */

/* ---------- the why in three.js (time3d.js; Lucas, 17 Nov, on the settings panel: "this doesn't work, could we do some
   3D like this one", the organizers' ruler). Once three.js is in, the title runs the panel's width and the canvas fills
   it under the title, 600px at the least and swiped sideways under that, as the ruler; the rows stay for screen readers.
   The numbers, marks and the tag are ruler3d.css's; the formats' names stand at their lanes' starts, sheared to the axis
   as the numbers are, the label beyond a block too short to carry it. ---------- */
.t3d-stage { display: none; }
.nx-t3d.t3d-on .nx-set-h { grid-column: 1 / -1; }
.nx-t3d.t3d-on .nx-set-rows { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the site's .vh */
.nx-t3d.t3d-on .t3d-stage { display: block; grid-column: 1 / -1; padding-inline: var(--s-2); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.t3d-stage::-webkit-scrollbar { display: none; }
.t3d-k { translate: -100% -50%; transform-origin: 100% 50%; color: var(--ink); font: var(--t-body); letter-spacing: var(--tr-body); }
.r3d-n.out { translate: 0 -50%; transform-origin: 0 50%; }
/* the gradient-map look, a try (time3d.js, ?look=map; Lucas, 23 Nov): on the panel as it is, the times dark on the
   blocks' light tops in both themes; a time past its block's end keeps the panel's ink */
.nx-t3d.t3d-map .r3d-n:not(.out) { color: #131415; }   /* design-ok: the maps' dark, on their light tops */

@media (max-width: 860px) {
  .nx-set { display: block; margin-top: var(--s-3); }
  .nx-set-rows { margin-top: var(--s-2); }
}

/* Outside and within, told apart (Lucas, 17 Nov: "we need to differentiate these a bit more, hard to spot the
   difference"). landing-new's own rule was "the contrast is the point": outside is the ink card, within the light one.
   The paintings say it too: outside stays wide and open (sky, the plane, the crowd); within is a close painting of a
   small team at a laptop, indoors (an arch into the room was tried and dropped: "doesn't work at all"). Tokens only,
   so the dark theme inverts the pair rather than losing it. */
.uses .use-ink { background: var(--ink); color: var(--paper); }
.uses .use-ink .meta, .uses .use-ink .use-p { color: color-mix(in srgb, var(--paper) 64%, var(--ink)); }
.uses .use-paper .use-art > img:first-child { object-position: 50% 42%; }   /* the team at the laptop, their faces in the frame */

.pr-evs-all.pr-evs-end { margin-top: var(--gutter); }   /* all the events, again after the last one */
/* ... as a big button the width of the cards (Lucas, 17 Nov: "make a big button here that fills the gap") */
.pr-evs-end .pr-go { align-self: stretch; flex: 1; justify-content: space-between; height: auto; min-height: 96px; padding: 0 var(--s-2) 0 var(--pad-panel); border-radius: 12px; font: var(--t-h3); letter-spacing: var(--tr-h3); background: var(--mist); }   /* design-ok: the cards' corner */
.pr-evs-end .pr-go:hover { background: var(--mist-hover); }
.pr-evs-end .pr-go-c { width: 44px; height: 44px; background: var(--ink); color: var(--paper); }   /* design-ok: the arrow's circle, as on the event cards */
.pr-evs-all.pr-evs-top { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-1); }   /* the live count on the left, all events on the right */
.pr-evs-top .pr-live { margin: 0; padding-inline-start: var(--pad-card); white-space: nowrap; }   /* one line (Lucas, 17 Nov: "just make it in one row"), its dot on the headline card's text edge ("alignment") */


/* the hero card's headline a step up on desktop too (Lucas, 17 Nov: "i meant doing this title bigger"): h2, as on phones */
.pr-about .pr-h1 { font: var(--t-h2); letter-spacing: var(--tr-h2); text-wrap: balance; }

/* the events' column back at its width (Lucas, 17 Nov: "this became wider, make it thinner again"); where that row is
   too narrow for the live count and all events at body size, both step down to small so they keep one row */
.pr-evs-all.pr-evs-top { container-type: inline-size; }
@container (max-width: 462px) {
  .pr-evs-top .pr-live, .pr-evs-top .pr-go { font: var(--t-small); }
}

/* phones: the events' list stops after six, the big all-events button takes it from there (Lucas, 17 Nov: "set a limit
   on how many events we show in the stack on mobile") */
@media (max-width: 860px) {
  .pr-evs > .pr-ev:nth-child(n+7) { display: none; }
}

/* the time chart's flat version (landing-new's .days): what a phone and a browser without three.js see; the 3D covers
   it on wider screens. The settings rows stay only for screen readers. */
.nx-set .nx-set-rows { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-set .nx-days { grid-column: 1 / -1; }
.nx-set .nx-days .days { margin-top: var(--s-2); }
.nx-t3d.t3d-on .nx-days { display: none; }
.nx-t3d.t3d-on.t3d-flat .nx-days { display: block; }   /* a panel too narrow for the 3D (time3d.js MINW): the flat chart */
.nx-t3d.t3d-on.t3d-flat .t3d-stage { height: 0; padding-block: 0; overflow: hidden; }
.nx-set .nx-days .day-cap { display: none; }   /* the panel's own title says it */
/* a narrow panel (a phone, or a window just too narrow for the 3D) gets landing-new's phone chart at any screen width:
   the bars under the names, full width, and no "1 week", which would touch "1 day" and "1 month" */
.nx-set .nx-days { container-type: inline-size; }
@container (max-width: 900px) {
  .nx-days .days { --cols: 1fr auto; }
  .nx-days .day-ruler { grid-template-columns: 1fr; }
  .nx-days .day-ruler > span:not(.ticks) { display: none; }
  .nx-days .bars li { gap: 8px 21px; }
  .nx-days .days .bars { margin-top: 13px; }
  .nx-days .bars .day { grid-column: 1 / -1; grid-row: 2; height: 21px; }
  .nx-days .day-ruler i:nth-child(5) { display: none; }
  .nx-days .day-ruler .ticks, .nx-days .bars .day { margin-left: var(--s-2); }   /* as type.css does on a phone: the first mark, centred on the axis's start, stays in */
}

/* phones: the headline's card first, then the globe, then the count and the events (Lucas, 17 Nov: "switch place on
   these") */
@media (max-width: 860px) {
  .pr { display: flex; flex-direction: column; gap: var(--gutter); }
  .pr > .pr-side, .pr-side > .pr-scroll { display: contents; }
  .pr .pr-about { order: -1; }
  .pr .pr-evs-top, .pr .pr-evs, .pr .pr-evs-end { margin-top: 0; }
}
