/* The library piece page: a field guide on the arc, the Swiss prose and the gate box.

   ONE FILE, TWO SITES (owner ruling 2026-11-01). The member hub imports it into app/globals.css,
   and the website's Library Contents template links it from this address
   (https://my.resonantvector.com/embed/library-piece.css), so a field guide and the gate box look
   the same on resonantvector.com as on the platform. The markup both sites draw comes from one
   renderer each: lib/guide-arc-html.ts for the arc, lib/library-gate.ts for the box.

   On the website nothing defines the brand vars, so the block below carries them, generated from
   @rv/brand tokens.ts by `npm run tokens:gen` (guarded by tokens:check) and scoped to `.rv-embed`,
   the wrapper the embed script puts round what it draws, and `.rv-embed-vars`, the class it adds
   to the website's own prose for a piece it restyles in place. On the platform neither is used
   and the same vars come from @rv/brand/globals.css. Colours and faces are vars only; a
   size, corner or spacing written here is the measured value of the platform page. */

/* @generated brand vars — from tokens.ts via `npm run tokens:gen`; do not edit by hand */
.rv-embed,
.rv-embed-vars {
  --brand-primary: #accb3f;
  --brand-action: #23282c;
  --brand-lime-deep: #4f7d22;
  --brand-secondary: #325d79;
  --brand-accent: #de8d28;
  --brand-lime: #accb3f;
  --brand-cream: #f6f4ee;
  --brand-ink: #1d1d1d;
  --brand-subtle: #303030;
  --brand-muted: #5c656b;
  --brand-surface: #f7f8f5;
  --brand-surface-2: #f6f7f7;
  --brand-surface-3: #f0f1ec;
  --brand-accent-card: #eef0e8;
  --brand-white: #ffffff;
  --brand-doc-band: #f9f7f5;
  --brand-line: #cacaca;
  --brand-line-soft: #e7ebed;
  --brand-canvas: #2b3136;
  --brand-heading-ink: #23282c;
  --brand-body-ink: #23282c;
  --font-heading: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-app-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-narrow: "Archivo", "Helvetica Neue", sans-serif;
  --font-title: "Archivo Black", "Archivo", sans-serif;
  --font-report-heading: "Archivo", "Helvetica Neue", sans-serif;
  --rv-text-eyebrow: 12px;
  --rv-text-eyebrow-leading: 1.35;
  --rv-text-caption: 12px;
  --rv-text-caption-leading: 1.5;
  --rv-text-bodySm: 13px;
  --rv-text-bodySm-leading: 1.6;
  --rv-text-bodyMd: 14px;
  --rv-text-bodyMd-leading: 1.55;
  --rv-text-body: 15px;
  --rv-text-body-leading: 1.65;
  --rv-text-subtitle: 1.2rem;
  --rv-text-subtitle-leading: 1.5;
  --rv-text-titleSm: 20px;
  --rv-text-titleSm-leading: 1.2;
  --rv-text-titleMd: 21px;
  --rv-text-titleMd-leading: 1.2;
  --rv-text-title: 1.7rem;
  --rv-text-title-leading: 1.1;
  --rv-text-display: 2.4rem;
  --rv-text-display-leading: 1.05;
  --rv-text-hero: 2rem;
  --rv-text-hero-leading: 1.05;
  --rv-text-heroLg: 3.2rem;
  --rv-text-heroLg-leading: 1.05;
  --rv-leading-prose: 1.65;
  --rv-leading-snug: 1.5;
  --rv-leading-title: 1.05;
  --rv-tracking-eyebrow: 0.14em;
  --rv-tracking-widest: 0.14em;
  --rv-tracking-kicker: 0.15em;
  --rv-tracking-tag: 0.1em;
  --rv-line: #e2e5e0;
  --rv-ink-soft: #3a4045;
}
/* @end generated brand vars */

/* The website's global tag styles (Webflow) reach anything drawn inside its pages, so the embed
   wrapper resets the few that would move the layout. The platform has no `.rv-embed`. */
.rv-embed { font-family: var(--font-app-body); color: var(--brand-ink); -webkit-font-smoothing: antialiased; }
.rv-embed :where(h1, h2, h3, h4, p, ul, ol, li, blockquote, figure) { margin: 0; padding: 0; }
.rv-embed :where(a) { color: inherit; }
.rv-embed .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ── .rv-arc: a field guide on the arc (Swiss direction, Mark 2026-10-30/31) ──
   The page layout of docs/design/swiss-direction-2026-10-30/guide-arc.html, drawn by
   lib/guide-arc-html.ts over the guide's own HTML. Scoped here, not in the shared
   .rv-rich-text, because that primitive mirrors the Webflow tag styles (check:webflow-parity).
   Colours and faces are the brand vars only. Phone first; the 12-column grid from 720px. */
.rv-arc { --arc-ink: var(--brand-heading-ink); --arc-text: var(--brand-ink); --arc-mute: var(--brand-muted); --arc-hair: var(--brand-line-soft); color: var(--arc-text); }
.rv-arc-strip { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 8px; }
.rv-arc-strip a, .rv-arc-strip span { display: block; border-top: 3px solid var(--arc-ink); padding-top: 6px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--arc-mute); text-decoration: none; }
.rv-arc-strip span { border-top-color: var(--brand-line); }
.rv-arc-strip b { display: block; margin-top: 2px; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--arc-ink); }
.rv-arc-strip a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rv-arc-lab { margin: 0; font-family: var(--font-narrow); font-size: 11.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--arc-mute); }
.rv-arc-k { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--arc-ink); }
.rv-arc-area { margin: 28px 0 0; font-family: var(--font-narrow); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--arc-mute); }
.rv-arc-row { display: grid; grid-template-columns: 1fr; gap: 8px; border-top: 1px solid var(--arc-hair); padding: 18px 0 20px; }
.rv-arc-row.is-first { border-top: 0; padding-top: 12px; }
.rv-arc-brief .rv-arc-row.is-brief { border-top: 1px solid var(--arc-ink); margin-top: 12px; padding-top: 14px; }
.rv-arc-challenge { margin: 0 0 10px; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; color: var(--arc-ink); }
.rv-arc-prose { min-width: 0; max-width: 600px; }
.rv-arc-prose p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--arc-text); }
.rv-arc-prose p + p, .rv-arc-prose ul + p, .rv-arc-prose blockquote + p, .rv-arc-prose p + blockquote { margin-top: 12px; }
.rv-arc-prose.is-lede p { font-size: 17px; line-height: 1.5; color: var(--arc-ink); }
.rv-arc-prose strong { font-weight: 700; color: var(--arc-ink); }
.rv-arc-prose em { font-style: italic; }
.rv-arc-prose a { color: var(--arc-ink); text-decoration: underline; text-underline-offset: 3px; }
/* a paragraph that leads into a list ("…and ask:") reads as the prompt */
.rv-arc-prose p:has(+ ul) { font-weight: 600; color: var(--arc-ink); margin-bottom: 10px; }
/* lists: the quiet left bar (Questions, What to stop, Signs it's working) */
.rv-arc-prose ul, .rv-arc-prose ol { list-style: none; margin: 4px 0 0; padding: 0; }
.rv-arc-prose li { border-left: 3px solid var(--arc-hair); padding: 2px 0 2px 12px; margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.rv-arc-prose li strong { color: var(--arc-ink); }
/* layered rows: In you / In your team / In your organization, and the three versions */
.rv-arc-prose.is-layers li { border-left: 0; padding: 9px 0; margin: 0; border-top: 1px solid var(--arc-hair); }
.rv-arc-prose.is-layers li:first-child { border-top: 0; padding-top: 0; }
.rv-arc-prose.is-layers li > strong:first-child { display: block; font-family: var(--font-narrow); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--arc-mute); margin-bottom: 2px; }
/* the three things to try: callouts with an ink bar */
.rv-arc-prose.is-calls p:has(> strong:first-child) { border-left: 3px solid var(--arc-ink); padding: 2px 0 2px 14px; margin-top: 18px; }
.rv-arc-prose.is-calls p > strong:first-child { display: block; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
/* a quoted line (The pattern; the opening line for the team) at the week page's quote size */
.rv-arc-prose blockquote { margin: 0; padding: 0; border: 0; }
.rv-arc-prose blockquote p { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.012em; color: var(--arc-ink); }
/* the takeaway: a heavy rule, the label, the line at display size */
.rv-arc-take { border-top: 6px solid var(--arc-ink); padding: 14px 0 30px; margin-top: 10px; }
.rv-arc-take .rv-arc-lab { color: var(--arc-ink); font-weight: 700; }
.rv-arc-take .rv-arc-prose { max-width: 760px; margin-top: 12px; }
.rv-arc-take .rv-arc-prose p { font-size: 17px; line-height: 1.5; color: var(--arc-ink); }
.rv-arc-take .rv-arc-prose blockquote p { font-size: 23px; line-height: 1.28; font-weight: 650; letter-spacing: -.016em; }
/* a part's head: the numeral and its label stack beside the heading on a 4px rule */
.rv-arc-part { margin-top: 56px; scroll-margin-top: 24px; }
.rv-arc-top { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* The part number in Archivo Black, as the report and plan set theirs (owner ruling 2026-11-01). */
.rv-arc-num { margin: 0; display: flex; align-items: baseline; gap: 16px; font-family: var(--font-title); font-size: 68px; line-height: .8; font-weight: 400; letter-spacing: -.02em; color: var(--arc-ink); }
.rv-arc-num small { display: block; font-family: var(--font-narrow); font-size: 10.5px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--arc-ink); }
.rv-arc-head { border-top: 4px solid var(--arc-ink); padding-top: 12px; }
/* Scoped through the part so it outranks the shared `.rv-rich-text h2` the guide body also carries;
   at equal weight that rule won and the heading stayed Archivo 600 (design panel, 2026-11-01). */
.rv-arc-part .rv-arc-head h2 { margin: 0; border-top: 0; padding-top: 0; font-family: var(--font-title); font-size: 26px; line-height: 1.12; font-weight: 400; letter-spacing: -.005em; color: var(--arc-ink); }
.rv-arc-sub { margin: 10px 0 0; max-width: 560px; font-size: 16px; line-height: 1.45; color: var(--arc-mute); }
.rv-arc-rows { margin-top: 24px; }
/* go further, sources, further reading, the toolkit */
.rv-arc-further { margin-top: 48px; background: var(--brand-line-soft); padding: 18px 18px 20px; }
.rv-arc-further .rv-arc-prose { margin-top: 10px; max-width: none; }
.rv-arc-refs { margin-top: 28px; border-top: 1px solid var(--arc-hair); }
.rv-arc-refs .rv-arc-prose li { border-left: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--arc-mute); margin-bottom: 8px; }
.rv-arc-refs .rv-arc-prose a { word-break: break-word; }
.rv-arc-extra { margin-top: 40px; border-top: 1px solid var(--arc-ink); padding-top: 12px; }
.rv-arc-extra-h { margin: 0 0 6px; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--arc-ink); }
.rv-arc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rv-arc-prose th, .rv-arc-prose td { border-top: 1px solid var(--arc-hair); padding: 8px 8px 8px 0; text-align: left; vertical-align: top; }
.rv-arc-prose th { font-family: var(--font-narrow); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--arc-mute); font-weight: 600; }
/* the member part: marked by two ruled lines, not a box (library-piece mock-up `.mark`) */
.rv-arc-member { margin-top: 8px; }
.rv-arc-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 40px 0 0; padding: 12px 0; border-top: 1px solid var(--arc-hair); border-bottom: 1px solid var(--arc-hair); font-size: 13.5px; color: var(--arc-mute); }
.rv-arc-mark.is-end { margin-top: 48px; }
@media (min-width: 720px) {
  .rv-arc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .rv-arc-row, .rv-arc-top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .rv-arc-row > :first-child, .rv-arc-top > :first-child { grid-column: span 3; }
  .rv-arc-row > :last-child, .rv-arc-top > :last-child { grid-column: span 9; }
  .rv-arc-num { display: block; font-size: 96px; }
  .rv-arc-num small { margin-top: 16px; }
  .rv-arc-part .rv-arc-head h2 { font-size: 32px; }
  .rv-arc-part { margin-top: 72px; }
}
@media print {
  .rv-arc-strip { display: none; }
  .rv-arc-part { break-before: page; margin-top: 0; }
  .rv-arc-further { background: none; border: 1px solid var(--brand-line); }
}

/* ── .rv-piece-swiss: a library piece's prose in the Swiss direction (Mark 2026-10-31) ──
   Layered on .rv-rich-text (which mirrors the Webflow tag styles and is left alone): the
   library-piece mock-up's section heads on a 4px ink rule, quotes as a heavy line with an ink bar,
   and a quiet ruled list. Field guides with arc parts use .rv-arc instead. */
.rv-piece-swiss h2 { border-top: 4px solid var(--brand-heading-ink); padding-top: 12px; margin-top: 2.75rem; font-weight: 700; letter-spacing: -.018em; color: var(--brand-heading-ink); }
.rv-piece-swiss > h2:first-child { margin-top: 0; }
.rv-piece-swiss h3 { font-family: var(--font-narrow); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brand-muted); margin-top: 2rem; }
.rv-piece-swiss p, .rv-piece-swiss li { color: var(--brand-ink); }
/* A comfortable reading line, about 66 characters (design panel, 2026-11-01: the essay prose ran past
   100 a line at the page width). Headings and pulled quotes keep the full width. */
.rv-piece-swiss p, .rv-piece-swiss ul, .rv-piece-swiss ol { max-width: 66ch; }
.rv-piece-swiss blockquote { border-left: 3px solid var(--brand-heading-ink); padding: 4px 0 4px 18px; margin: 1.75rem 0; font-style: normal; font-size: 1.4rem; line-height: 1.3; font-weight: 650; letter-spacing: -.014em; color: var(--brand-heading-ink); }
.rv-piece-swiss blockquote p { font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
.rv-piece-swiss hr { border: 0; border-top: 1px solid var(--brand-line-soft); margin: 2.5rem 0; }
.rv-piece-swiss a { color: var(--brand-heading-ink); }

/* ── .rv-gate: the gate box (owner rulings 2026-10-24 and 2026-11-01) ─────────────────────────
   Where a gated piece stops for a reader who cannot open the rest: the library mark, a heading,
   what the rest holds as a check list, the offer, the buttons and the library sentence. The same
   box on the platform page and on the website, drawn by lib/library-gate.ts. The values are the
   platform box Mark approved (measured 2026-11-01): a warm band on a soft hairline at the card
   corner, the heading at title size, body at 14px, the charcoal action button and a white one. */
.rv-gate { position: relative; margin-top: 8px; border: 1px solid var(--brand-line-soft); border-radius: 6px; background: var(--brand-doc-band); padding: 24px 20px; font-family: var(--font-app-body); color: var(--brand-heading-ink); }
.rv-gate-mark { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; border: 1px solid var(--rv-line); border-radius: 4px; background: var(--brand-cream); padding: 2px 8px 1px; font-size: var(--rv-text-eyebrow); line-height: var(--rv-text-eyebrow-leading); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-heading-ink); }
.rv-gate-mark.is-premium { border-color: var(--brand-heading-ink); background: var(--brand-heading-ink); color: var(--brand-white); }
/* The practitioner mark: black with a lime keyline and lime text (owner ruling 2026-11-01). */
.rv-gate-mark.is-practitioner { border-color: var(--brand-primary); background: var(--brand-heading-ink); color: var(--brand-primary); }
.rv-gate-mark svg { width: 14px; height: 14px; flex-shrink: 0; }
.rv-gate-title { margin: 12px 0 0; font-family: var(--font-heading); font-size: var(--rv-text-titleMd); line-height: var(--rv-text-titleMd-leading); font-weight: 600; letter-spacing: -.01em; color: var(--brand-heading-ink); }
.rv-gate-lead { margin: 16px 0 0; font-size: var(--rv-text-bodyMd); line-height: var(--rv-text-bodyMd-leading); color: var(--brand-heading-ink); }
.rv-gate-items { list-style: none; margin: 12px 0 0; padding: 0; }
.rv-gate-items li { display: flex; gap: 12px; margin: 0; padding: 0; font-size: var(--rv-text-bodyMd); line-height: var(--rv-text-bodyMd-leading); color: var(--brand-heading-ink); }
.rv-gate-items li + li { margin-top: 8px; }
.rv-gate-check { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.rv-gate-check circle { fill: var(--brand-lime-deep); }
.rv-gate-check path { fill: none; stroke: var(--brand-white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-gate-text { margin: 16px 0 0; font-size: var(--rv-text-bodyMd); line-height: var(--rv-text-bodyMd-leading); color: var(--brand-muted); }
.rv-gate-text + .rv-gate-text { margin-top: 8px; }
/* The field guides' shared sign-up block: stored words, read at the prose size. */
.rv-gate-block { margin-top: 20px; }
.rv-gate-block p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--rv-ink-soft); }
.rv-gate-block p + p { margin-top: 16px; }
.rv-gate-block a { color: var(--brand-lime-deep); text-decoration: underline; text-underline-offset: 3px; }
.rv-gate-acts { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.rv-gate-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; border: 1px solid var(--brand-action); border-radius: .4rem; background: var(--brand-action); padding: 12px 24px; font-family: var(--font-app-body); font-size: var(--rv-text-bodyMd); line-height: var(--rv-text-bodyMd-leading); font-weight: 600; color: var(--brand-white); text-decoration: none; cursor: pointer; }
.rv-gate-btn:hover { opacity: .9; color: var(--brand-white); }
.rv-gate-btn.is-secondary { border-color: var(--rv-line); background: var(--brand-white); padding: 12px 20px; font-weight: 500; color: var(--brand-heading-ink); }
.rv-gate-btn.is-secondary:hover { opacity: 1; background: var(--brand-surface); color: var(--brand-heading-ink); }
.rv-gate-link { font-size: 16px; line-height: 1.6; color: var(--brand-lime-deep); text-decoration: underline; text-underline-offset: 3px; }
.rv-gate-link:hover { color: var(--brand-heading-ink); }
.rv-gate-btn:focus-visible, .rv-gate-link:focus-visible { outline: 2px solid var(--brand-lime-deep); outline-offset: 2px; }
.rv-gate-fine { margin: 16px 0 0; font-size: var(--rv-text-bodyMd); line-height: var(--rv-text-bodyMd-leading); color: var(--brand-muted); }
/* The website's premium gate keeps its own heading, list and sentence around the members-hidden
   block the box goes into (library-piece.js marks it .rv-gate-host). While the box is there they
   would say it twice, so they step aside; once Memberstack removes that block for a signed-in
   reader, they come back. The Memberstack blocks themselves stay (2026-11-02). */
.rv-gate-host:has(> [data-ms-content="!members"] .rv-gate) > :not([data-ms-content]) { display: none; }
@media (min-width: 640px) {
  .rv-gate { padding: 32px; }
  .rv-gate-acts { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rv-gate-btn { width: auto; }
}
/* On paper the box keeps its edge and loses its wash, and the buttons read as their words. */
@media print {
  .rv-gate { background: none; border-top: 4px solid var(--brand-heading-ink); border-radius: 0; }
  .rv-gate-btn { border-color: var(--brand-heading-ink); background: none; color: var(--brand-heading-ink); }
}

/* The line above the title on the website (Mark, 2026-11-06): "ESSAY · MEMBER", plain words with no
   box, as the platform's masthead writes it. The website's own tag and eyebrow classes, restyled in
   this row only, so the tag reads as the type word beside it; the tag's own colors stay on the
   website's shelves. Its specificity ties the website's `.rv-tag.is-*`, and this sheet loads after.
   The color is the website's own variable, the one its type word reads: this row is outside
   `.rv-embed`, so the --brand-* vars above do not reach it. */
.rv-hero__eyebrow-row { align-items: baseline; column-gap: 0.5em; margin-bottom: 15px; }
.rv-hero__eyebrow-row .rv-hero__eyebrow { margin: 0; }
.rv-hero__eyebrow-row .rv-tag {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--_resonant-vector-style-guide---color-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rv-hero__eyebrow-row .rv-tag::before { content: "\00B7"; margin-right: 0.5em; }
