/* WHERE THIS PORT DELIBERATELY DIFFERS FROM THE LIVE MARKETING SITE — THE-1425.
 *
 * NOT GENERATED, and that is the point of it being a file of its own. `ripley.css` and
 * `live-overlays.css` beside it are the live site's own stylesheets, carried and regenerated;
 * nothing may be hand-written into either. This one is the opposite: every rule here is a change
 * somebody decided to make, and each carries who asked and what it looked like before, so a
 * reader can tell a decision from a mistake and reverting one is deleting a block.
 *
 * IT IS LINKED LAST, after both carried sheets, and it carries `.mk-page .theme-c` for the same
 * reason `live-overlays.css` does: a page's own `<style>` sits later in the document, so a rule
 * meant to beat it needs one class more than the port's scoping gives it.
 *
 * docs/decisions/2026-11-04-the-marketing-stylesheet-is-carried-not-approximated.md */

/* ── THE PRICING SECTION USES THE PAGE'S OWN WIDTH ───────────────────────────────────────────────
 *
 * ELENA, 4 NOVEMBER 2026, asked twice: the plan cards sit inside a narrower column than
 * everything else on the page.
 *
 * SHE IS RIGHT, AND THE LIVE SITE DOES IT TOO — which is why this is a change rather than a fix.
 * Measured on the live page at 1314px: the header's content runs 65→1249 and the cards 113→1201,
 * so the cards are inset 48px on each side from the heading above them. The live rule is
 * `max-width:1120px;padding:4px 16px 8px` against `container-site`'s `74rem` and `1.25rem`.
 *
 * WHAT IT IS NOW: the same width as every other band on the site, so the cards line up with the
 * header, the breadcrumb and the paragraph above them. Only the horizontal values change — the
 * 4px and 8px the live rule puts above and below the cards are untouched.
 *
 * TO PUT IT BACK: delete this block. The live value returns from the page's own carried CSS. */
.mk-page .theme-c .rip-pricing {
  max-width: 74rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ── THE "2 MONTHS FREE" PILL READS AT WCAG AA ───────────────────────────────────────────────────
 *
 * THE CARRIED VALUE FAILS, and the accessibility gate is right to stop it: white on
 * `rgba(255,255,255,.28)` over `#1157c4` composites to `#5486d5`, which is **3.65:1** against the
 * white text on it. WCAG AA wants 4.5:1 for text this size — 10px, bold, well under the 18.66px
 * that would let 3:1 stand.
 *
 * Measured rather than guessed, with the same formula axe uses:
 *
 *   alpha .28  #5486d5  3.65   ← the live value
 *   alpha .18  #3c75cf  4.53
 *   alpha .16  #3772cd  4.72   ← this
 *   alpha .00  #1157c4  6.60
 *
 * .16 is the first step with room above the line rather than the first step over it. The pill is
 * still a lighter patch on the selected segment, which is all it was drawing.
 *
 * ON THE APPLICATION'S BLUE SINCE THE-1495, `#1167d6`, measured the same way: .16 gives 4.01, .12 4.31,
 * .10 4.47 and .08 **4.64**, so it is .08 now, the first step with room above the line again.
 *
 * TO PUT IT BACK: delete this block, and the live value returns from `live-overlays.css`. */
.mk-page .theme-c .rip-seg.is-active .rip-badge {
  background: rgb(255 255 255 / 8%);
}

/* ── THE PALETTE IS THE APPLICATION'S ────────────────────────────────────────────────────────────
 *
 * THE TEAM, 18 NOVEMBER 2026 (Vova, Misha, Elena in Slack, and the call that day): every public page takes the
 * colours of the tokens Misha made for the application, a light grey ground with white cards, as the Advertise
 * page and the legal pages were built. The marketing site keeps its own type, Figtree and Familjen Grotesk.
 * THE-1495, `docs/decisions/2026-11-18-every-public-page-wears-the-marketing-sites-header-and-footer.md`.
 * Since THE-1669 the content under a page's top band is white: the block after this one.
 *
 * WHY THIS IS ONE BLOCK. Every colour the carried sheet draws its ground, cards, ink, rules and buttons in is one
 * of the `--c-*` variables `ripley.css` hangs on `.theme-c`; nothing in the 588 pages' markup names a colour of its
 * own for those. So giving the variables the application's values recolours every page and changes no page's
 * markup.
 *
 * THE APPLICATION'S LIGHT VALUES, WRITTEN OUT, AND NOT `var(--color-…)`. The tokens turn dark on a dark system
 * before any script runs (`app/globals.css`, `prefers-color-scheme`), and with JavaScript off nothing turns them
 * back, while the carried sheet still names colours of its own, the navy headings among them. Written out, the
 * pages read the same in every case, as they did before. `tests/public-palette.test.ts` holds each value equal to
 * the light value of the token named beside it.
 *
 * WHAT IT WAS: a cream ground `#f8f7f3` with `#efeee8` and `#e4e2d9` beside it, ink `#16181d`, muted `#5b5f6b`, the
 * accent `#1157c4`, and black buttons `#16181d` with cream text. The main button is the application's blue now
 * (Vova, 18 November 2026), as "Sign up free" is in the header.
 *
 * TO PUT IT BACK: delete this block, and the live values return from `ripley.css`. */
.mk-page .theme-c {
  --c-bg: #f4f7fb; /* --color-surface */
  --c-surface: #ffffff; /* --color-surface-raised */
  --c-surface-2: #f4f7fb; /* --color-surface-sunken */
  --c-ink: #202945; /* --color-content */
  --c-muted: #5a6479; /* --color-content-muted */
  --c-accent: #1167d6; /* --color-accent */
  --c-accent-2: #1167d6; /* --color-accent */
  --c-link: #0b4fb3; /* --color-accent-strong */
  --c-border: #dce4ee; /* --color-border-subtle */
  --c-cta-bg: #1167d6; /* --color-primary */
  --c-cta-ink: #ffffff; /* --color-primary-foreground */
  --c-header-bg: #f4f7fb; /* --color-surface */
  --c-accent-tint: #e6f1fd; /* --color-accent-tint */
}

/* ── THE PAGE BELOW THE TOP BAND IS WHITE ─────────────────────────────────────────────────────────
 *
 * VOVA, 19 NOVEMBER 2026 (THE-1669): with the block above, the top band (`.bg-paper`) and the rest of the page both
 * stood on `--c-bg`, one grey from the header to the footer, so nothing set a page's sections apart. The live site
 * sets them apart with white. Now the page's carried content (`ported-page.tsx`, `[data-marketing-content]`) is
 * white, and its top band keeps the grey, which the breadcrumb above it stands on too; the page sits between the
 * grey header and the grey footer, and the cards on it keep their border.
 *
 * - The ground under the whole page is white, and `<main>` takes the grey for the breadcrumb, so the end of a page
 *   shorter than the window is white too.
 * - A page with no top band (the user guide and three press pages) starts its white 24 px under the breadcrumb,
 *   over the hairline the band would have drawn.
 * - Two carried rules drew white to stand out from the grey: an outlined button's hover and a table's header row.
 *   On white they take the grey; in the top band the button keeps its white hover.
 *
 * WHAT IT WAS: the content had no ground of its own and showed the carried `.theme-c { background: var(--c-bg) }`.
 *
 * TO PUT IT BACK: delete this block. */
.mk-page .theme-c.ripley-static-page,
.mk-page .theme-c [data-marketing-content] {
  background: var(--c-surface);
}
.mk-page .theme-c.ripley-static-page > main {
  background: var(--c-bg);
}
.mk-page .theme-c [data-marketing-content]:not(:has(> .bg-paper)) {
  margin-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
/* THE WHITE STARTS 40 PX ABOVE THE FIRST THING ON IT, ON EVERY CARRIED PAGE (Vova, 19 November 2026). On one
 * ground the carried pages put their content anywhere from 0 to 55 px under the band, and nothing showed it; on
 * white the cards and the plan toggle touched the band's edge. Every page now starts its content 40 px under the
 * band, and the first element's own top margin gives way to it. This overrides each page's own spacing there:
 * 0 to 16 px on Pricing, the directory indexes, the user guide's index, the resources, Contact, Press and Trusted
 * by; 32 px (`pt-8`) on the state pages; 48 px (`pt-12`) on the company and university pages; 55 px on About. The
 * home page's sections bring their own 64 px and are left as they are. */
.mk-page .theme-c .bg-paper + :not(.section) {
  padding-top: 2.5rem;
}
.mk-page .theme-c .bg-paper + :not(.section) > :is(:first-child, script + *):not(script),
.mk-page .theme-c .bg-paper + * > .prose-site:first-child > :first-child,
.mk-page .theme-c .bg-paper + * > script + .prose-site > :first-child {
  margin-top: 0;
}
.mk-page .theme-c [data-marketing-content] .btn-ghost:hover {
  background: var(--c-surface-2);
}
.mk-page .theme-c [data-marketing-content] .bg-paper .btn-ghost:hover {
  background: var(--c-surface);
}
.mk-page .theme-c [data-marketing-content] .prose-site th,
.mk-page .theme-c [data-marketing-content] .comparison-table th {
  background: var(--c-surface-2);
}

/* ── THE NOTE UNDER THE PLAN CARDS STANDS 40 PX BELOW THEM ─────────────────────────────────────────
 *
 * VOVA, 19 NOVEMBER 2026 (THE-1669): on Pricing, "Prices are monthly in USD…" sat 8 px under the plan cards. The
 * live site gives it 40 px through `live-overlays.css`, `main>section.rip-pricing~p.container-site.text-center`,
 * but here the carried content sits in `[data-marketing-content]` inside `<main>`, so that `main>` rule, like the
 * band rules beside it, never matches. This is the same 40 px without the `main>`.
 *
 * TO PUT IT BACK: delete this block. */
.mk-page .theme-c .rip-pricing ~ p.container-site.text-center {
  padding-top: 2.5rem;
}

/* ── THE PRICING SECTION'S OWN COLOURS FOLLOW THE PALETTE ───────────────────────────────────────────
 *
 * THE SAME DECISION AS "THE PALETTE IS THE APPLICATION'S" (the team, 18 November 2026; THE-1495). The live theme's
 * overlay for the plan cards (`live-overlays.css`) writes its warm greys and its blue as values rather than through
 * `--c-*`, so that block does not reach them. Each rule here is that rule with its value replaced by the variable it
 * repeated: `#efeee8` is `--c-surface-2`, `#e4e2d9` `--c-border`, `#5b5f6b` `--c-muted`, `#16181d` `--c-ink`,
 * and `#1157c4` `--c-accent`.
 *
 * TO PUT IT BACK: delete this block with "THE PALETTE IS THE APPLICATION'S". */
.mk-page .theme-c .rip-toggle {
  background: var(--c-surface-2);
  border-color: var(--c-border);
}
.mk-page .theme-c .rip-seg,
.mk-page .theme-c .rip-name,
.mk-page .theme-c .rip-tag,
.mk-page .theme-c .rip-per,
.mk-page .theme-c .rip-sub {
  color: var(--c-muted);
}
.mk-page .theme-c .rip-card {
  border-color: var(--c-border);
}
.mk-page .theme-c .rip-list li {
  color: var(--c-ink);
}
.mk-page .theme-c .rip-seg.is-active {
  background: var(--c-accent);
  color: var(--c-surface);
}
/* THE PILL OUT OF THE SELECTED SEGMENT: the live `rgba(17,87,196,.14)` over the new grey leaves the blue at 4.09,
 * under AA's 4.5; the palette's own tint holds it at 4.67. */
.mk-page .theme-c .rip-badge {
  background: var(--c-accent-tint);
  color: var(--c-accent);
}
.mk-page .theme-c .rip-card.is-popular {
  border-color: var(--c-accent);
}
.mk-page .theme-c .rip-pop,
.mk-page .theme-c .rip-btn-cta {
  background: var(--c-accent);
}
.mk-page .theme-c .rip-card.is-popular .rip-name {
  color: var(--c-accent);
}
.mk-page .theme-c .rip-chk circle[fill='#4f46e5'] {
  fill: var(--c-accent);
}
.mk-page .theme-c .rip-btn-ghost {
  border-color: var(--c-accent);
}
.mk-page .theme-c a.rip-btn-ghost {
  color: var(--c-accent) !important;
}

/* ── THE TOUR STOPS UNDER THE HEADER ──────────────────────────────────────────────────────────────
 *
 * "How it works" in the public header and footer opens `/home#tour`. The header is sticky and 64 px tall since
 * THE-1495, and the tour's section had no margin above it, so its heading stopped under the header. 84 px leaves
 * it 20 px below, as the legal pages' sections are.
 *
 * TO PUT IT BACK: delete this block. */
.mk-page .theme-c #tour {
  scroll-margin-top: 5.25rem;
}

/* ── BLUE TEXT ON THE GUIDE'S BLUE TINT READS AT AA ─────────────────────────────────────────────────
 *
 * The how-to-use guide draws its step numbers and its rail's current page as `color: var(--c-accent)` on an
 * inline `rgb(17 103 214 / 0.1)` tint. With the application's blue, `#1167d6`, that is 4.33:1 on the grey
 * ground, under AA's 4.5 (the accessibility gate on `/how-to-use-ripley/bulk-hours`, THE-1495). On those
 * elements alone the accent is the application's strong blue, `--c-link` (`#0b4fb3`), which reads 6.13:1 there.
 * The inline style still names `--c-accent`, so the variable is given its value on the element itself.
 *
 * TO PUT IT BACK: delete this block. */
.mk-page .theme-c [style*='rgb(17 103 214 / 0.1)'] {
  --c-accent: var(--c-link);
}
