/* Pulp v7: the corrections to v6 (tools/v7build/build.py). */
/* One column for the bar and the page, so the logo stands over the page's left edge and the button over its right.
   The column is 1,140 pixels of content on a laptop, as before, and grows with a wide window (82% of it, up to 1,440
   of content), so on a big screen the page is not huddled in the middle (Shah, Nov 24: "tight and claustrophobic"). */
:root { --frame: clamp(1180px, 82vw, 1480px); }
/* the bar: six places, the color toggle, and one button. If its pieces ever would not fit, v6.js moves the places
   into the menu, so nothing can run off the edge or under its neighbor. */
.v2-bar .v5-bar-demo { margin-right: 0; }
.v2-bar .v2-bar__in > * { flex-shrink: 0; }
.v2-bar .v2-bar__in > .v2-bar__sp { flex-shrink: 1; }
html.v6-bar-menu .v2-bar .v2-nav { display: none !important; }
html.v6-bar-menu .v2-bar .v2-menu-btn { display: inline-flex !important; }
/* ---- Our story (Shah, Nov 24: "almost every page in our story looks like its mobile first alignment on my browser") ----
   On a wide window a chapter's words sat in a 680 pixel column in the middle of the page, while its headline, drawings,
   and cards started at the page's left edge. Now a chapter is two halves of the page's own column: each heading (and
   the chapter's opening line) stands on the left edge, under the headline, and the text it introduces runs beside it. */
@media (min-width: 1000px) {
  /* Milana's two essays keep their own column: their notes sit in its right margin */
  .os-wrap.os-prose.os-col:not(.mk-prose) { max-width: var(--frame); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 22px; align-items: start; }
  .os-prose.os-col:not(.mk-prose) > * { grid-column: 2; margin-top: 0; margin-bottom: 0; }
  .os-prose.os-col:not(.mk-prose) > h2, .os-prose.os-col:not(.mk-prose) > .os-label, .os-prose.os-col:not(.mk-prose) > .os-lede,
  .os-prose.os-col:not(.mk-prose) > .os-quote:first-child, .os-prose.os-col:not(.mk-prose) > figure:first-child { grid-column: 1; }
  .os-prose.os-col:not(.mk-prose) > .os-label + .os-lede { grid-column: 2; }
  .os-prose.os-col:not(.mk-prose) > h2 { margin-top: 34px; max-width: 16ch; }
  .os-prose.os-col:not(.mk-prose) > h2 + * { margin-top: 42px; }
  .os-prose.os-col:not(.mk-prose) > h2:first-child { margin-top: 0; }
  .os-prose.os-col:not(.mk-prose) > h2:first-child + * { margin-top: 8px; }
  .os-prose.os-col:not(.mk-prose) > .os-lede { max-width: 26ch; }
  .os-prose.os-col:not(.mk-prose) > .os-label + .os-lede { max-width: none; }
  .os-prose.os-col:not(.mk-prose) > .os-pull { margin-top: 18px; }
  .os-prose.os-col:not(.mk-prose) > .os-plate--wide { margin-inline: 0; }
  /* the facts under "Who we are" start on the same two edges as the label and the paragraph above them */
  .os-facts { column-gap: 64px; }
}
/* the eight channels: four across and two down; the "recognized by" row: five across on a wide window */
.os-grid.v7-four, .os-grid.v7-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .os-grid.v7-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .os-grid.v7-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .os-grid.v7-five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 479px) { .os-grid.v7-four, .os-grid.v7-five { grid-template-columns: minmax(0, 1fr); } }
/* the highlighted card was drawn in near-black, which is the page itself in dark mode; it takes the feature color */
.os-card--ink { background: var(--feature); color: var(--feature-type); border-color: var(--feature); }
.os-card--ink p { color: var(--feature-muted); }
/* ---- cards stand off their ground (Shah, Nov 24: "gray on gray on gray"; then "stop with the solid on solid ...
   if its purple, then white card") ----
   A card is always a clear step lighter or darker than what it sits on. In dark mode a card is the feature purple on
   the dark page, where it was dark gray on dark gray. On a purple band a card is white with dark words, in every mode. */
:root[data-theme="dark"] { --v7-card: #372F5C; --v7-card-line: #4F4585; --v7-card-hi: #E7E3F6; --v7-card-hi-type: #191A19; --v7-card-hi-muted: #3A3B3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="mono"]) { --v7-card: #372F5C; --v7-card-line: #4F4585; --v7-card-hi: #E7E3F6; --v7-card-hi-type: #191A19; --v7-card-hi-muted: #3A3B3A; } }
/* only cards change: the shared --card color is left alone, because the menus, dialogs, and quotes use it too */
:root[data-theme="dark"] .v2-card:not(.v2-card--feature):not(.v2-card--ink):not(:has(.p-plate, canvas)), :root[data-theme="dark"] .os-card:not(.os-card--feature):not(.os-card--ink) { background: var(--v7-card); border-color: var(--v7-card-line); color: #F0F0EC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="mono"]) .v2-card:not(.v2-card--feature):not(.v2-card--ink):not(:has(.p-plate, canvas)), :root:not([data-theme="light"]):not([data-theme="mono"]) .os-card:not(.os-card--feature):not(.os-card--ink) { background: var(--v7-card); border-color: var(--v7-card-line); color: #F0F0EC; } }
/* on a purple card the quieter words are pale lavender, never gray (Shah, Nov 24: "the gray card text should be light so
   its not so hard to read - anywhere its like this"); every kind of quiet text in a card reads this one color */
:root[data-theme="dark"] .v2-card:not(.v2-card--feature):not(.v2-card--ink):not(:has(.p-plate, canvas)), :root[data-theme="dark"] .os-card:not(.os-card--feature):not(.os-card--ink) { --muted: #E7E3F6; --thread: #D6CFF5; --line: #5A5092; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="mono"]) .v2-card:not(.v2-card--feature):not(.v2-card--ink):not(:has(.p-plate, canvas)), :root:not([data-theme="light"]):not([data-theme="mono"]) .os-card:not(.os-card--feature):not(.os-card--ink) { --muted: #E7E3F6; --thread: #D6CFF5; --line: #5A5092; } }
/* a card that holds a drawing keeps its own dark ground in dark mode: the drawings are made for it */
/* the highlighted card: the feature purple in light mode, and pale lavender with dark words in dark mode */
.v2-card--feature, .os-card--feature, .os-card--ink { background: var(--v7-card-hi, var(--feature)); border-color: var(--v7-card-hi, var(--feature)); color: var(--v7-card-hi-type, var(--feature-type)); --type: var(--v7-card-hi-type, #F0F0EC); }
.v2-card--feature p, .os-card--feature p, .os-card--ink p, .v2-card--feature .os-label { color: var(--v7-card-hi-muted, var(--feature-muted)); }
/* Our promises on the purple band (Shah: "make our promises purple ... clean and nice") */
:root .v2-sec.v2-sec--feature .v2-card.v2-card:not(.v2-card--feature):not(.v2-card--ink):not(.v7-x) { background: #FFFFFF; border-color: #FFFFFF; color: #191A19; --type: #191A19; --muted: #565752; --thread: #5B4E9A; --c-type: #191A19; --c-line: #191A19; --c-ground: #FFFFFF; --p5-ground: #FFFFFF; }
:root .v2-sec.v2-sec--feature .v2-card.v2-card:not(.v2-card--feature):not(.v2-card--ink):not(.v7-x) p { color: #565752; }
.v2-sec--feature .p-reelled[data-state~="live"] .v2-card[data-reel][data-state~="hot"] { background: #FFFFFF; border-color: var(--hl); box-shadow: 0 0 0 2px var(--hl); }
.v2-sec--feature .v3-hint { color: var(--feature-muted); }
.v2-sec--feature .v3-hint::before { background: var(--hl); }
/* the mark after Thinkwell's name */
.v7-tm { font-size: 0.34em; font-weight: 700; letter-spacing: 0; vertical-align: 1.35em; margin-left: 0.12em; }
/* ---- every card grid fills its rows: the build writes each grid's count, and the count sets its columns ---- */
@media (min-width: 640px) {
  [data-v7-n="2"], [data-v7-n="4"], [data-v7-n="5"], [data-v7-n="6"], [data-v7-n="7"], [data-v7-n="8"], [data-v7-n="10"], [data-v7-n="12"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-v7-n="3"], [data-v7-n="9"] { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 860px) {
  [data-v7-n="3"], [data-v7-n="6"], [data-v7-n="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* five and seven: where they sit two across, the last card takes the whole row, so no row ends short */
@media (min-width: 640px) and (max-width: 1099px) { [data-v7-n="5"] > :last-child, [data-v7-n="7"] > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  [data-v7-n="4"], [data-v7-n="7"], [data-v7-n="8"], [data-v7-n="12"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-v7-n="5"], [data-v7-n="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* the closing band: Gumrobot with "Let's chat" under it, as one column on the right */
.v7-cta-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.v7-cta-side .v3-robot { width: 150px; max-width: 100%; }
.v7-cta-side .v2-btn { white-space: nowrap; }
@media (min-width: 900px) { .v3-cta .v3-cta__end { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; } }
@media (max-width: 899px) { .v7-cta-side { align-items: flex-start; margin-top: 14px; } }
/* the privacy policy: one readable column */
.v7-legal { max-width: 72ch; padding-block: 24px 0; }
.v7-legal h1 { margin: 0 0 18px; }
.v7-legal p, .v7-legal li { font-size: 18px; line-height: 1.6; }
/* cards and tables keep a readable measure when the column is wide */
.v2-card > p { max-width: 46ch; }
/* the API page's way to its pricing page */
.v7-more { margin: 0; }
/* Milana's two pages are essays with notes in the right margin, set for the 1,180 pixel column; they keep it. Her
   portrait also stays inside its column at every width (it ran 30 pixels past the window at 1,024 since v3). */
html:has(.mk-prose) { --frame: 1180px; }
.mk-portrait { max-width: calc(100% - 32px); }
/* the pricing page's plans */
.v7-plan { display: flex; flex-direction: column; gap: 8px; }
.v7-plan h3 { margin: 0; }
.v7-plan p { margin: 0; }
.v7-plan__price { font-size: 30px; line-height: 1.1; font-weight: 850; letter-spacing: -0.02em; color: var(--type); font-variant-numeric: tabular-nums; }
.v7-plan__price span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.v7-plan__get { font-weight: 700; color: var(--type); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
