/* Journal and field guides share the main site's Geist, charcoal and sage.
   Navigation and footer styles remain owned by the shared site theme. */
.ryv-editorial {
  --pub-bg: #1e1e1e;
  --pub-panel: #242524;
  --pub-ink: #f2f1eb;
  --pub-body: #cecec7;
  --pub-muted: #aaaDA5;
  --pub-accent: #b8c9b1;
  --pub-line: rgba(242,241,235,.16);
  --pub-sans: "Geist", "Geist Placeholder", sans-serif;
  --pub-mono: "Fragment Mono", ui-monospace, monospace;
  font-family: var(--pub-sans);
  -webkit-font-smoothing: antialiased;
}
.ryv-editorial :is(.ryv-dyn,.ryv-post-heading,.ryv-article-wrap,.ryv-mcp) {
  font-family: var(--pub-sans);
  font-variation-settings: normal;
  font-feature-settings: "ss01" on, "ss02" on, "ss03" on, "ss04" on, "ss05" on;
}
.ryv-editorial :is(.ryv-dyn,.ryv-post-heading,.ryv-article-wrap,.ryv-mcp) * { box-sizing: border-box; }
.ryv-editorial :is(.ryv-dyn,.ryv-post-heading,.ryv-article-wrap) :focus-visible {
  outline: 2px solid var(--pub-accent); outline-offset: 5px;
}
.ryv-editorial :is(.ryv-dyn,.ryv-post-heading,.ryv-article-wrap) ::selection { background: #53624f; color: #fff; }

/* The archive masthead uses one semantic heading at every viewport size. */
.ryv-publication-heading { width: calc(100% - 18px); margin: 9px; border-radius: 10px; background: radial-gradient(ellipse at 80% 110%,rgba(162,183,159,.19),transparent 65%),linear-gradient(120deg,#242b2d,#1a2021 65%,#30322d); color: var(--pub-ink); }
.ryv-publication-heading-inner { max-width: 1264px; padding: 144px 32px 64px; margin: auto; }
.ryv-publication-heading h1 { margin: 0; font: 500 clamp(48px,6vw,80px)/1.04 var(--pub-sans); letter-spacing: -.04em; }
.ryv-publication-heading p { margin: 24px 0 0; max-width: 640px; font: 400 19px/1.6 var(--pub-sans); letter-spacing: -.015em; color: var(--pub-body); }
.ryv-editorial .ryv-dyn { width: 100%; background: var(--pub-bg); padding: 56px 32px 104px; color: var(--pub-ink); }
.ryv-dyn-inner { max-width: 1200px; margin: auto; }
.ryv-dyn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.ryv-dyn-head .rule { display: none; }
.ryv-dyn-head h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.ryv-dyn-head .count-meta { font: 14px/1.5 var(--pub-sans); color: var(--pub-muted); font-variant-numeric: tabular-nums; }
.ryv-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-block: 1px solid var(--pub-line); margin-bottom: 40px; }
.ryv-library-filters,.ryv-library-switch { display: flex; align-items: center; gap: 28px; }
.ryv-library-toolbar a { position: relative; display: inline-flex; gap: 8px; align-items: center; min-height: 56px; font: 14px/1.4 var(--pub-sans); color: var(--pub-muted); text-decoration: none; white-space: nowrap; }
.ryv-library-toolbar a:hover,.ryv-library-toolbar a[aria-current] { color: var(--pub-ink); }
.ryv-library-filters a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--pub-accent); }
.ryv-library-switch { gap: 22px; }
.ryv-library-switch a[aria-current] { color: var(--pub-muted); }
.ryv-library-switch a:not([aria-current]) { color: var(--pub-ink); }
.ryv-dyn-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 30px; }
.ryv-dyn-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; border: 0; border-radius: 0; background: transparent; }
.ryv-dyn-card:hover { transform: none; }
.ryv-editorial--sheets .ryv-dyn-image { aspect-ratio: 1; }
.ryv-dyn-image { aspect-ratio: 16/10; width: 100%; background: #252725; position: relative; overflow: hidden; border-radius: 6px; }
.ryv-dyn-image :is(svg,img) { position: absolute; inset: 0; width: 100%; height: 100%; }
.ryv-dyn-image img { object-fit: cover; transition: transform .35s ease; }
.ryv-dyn-card:hover .ryv-dyn-image img { transform: scale(1.025); }
.ryv-dyn-body { padding: 24px 0 0; display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 14px; }
.ryv-dyn-body::before { content: none; }
.ryv-dyn-tag { font: 13px/1.5 var(--pub-sans); color: var(--pub-accent); letter-spacing: .01em; text-transform: none; padding: 0; }
.ryv-dyn-card h3 { margin: 0; padding: 0; font-size: 25px; font-weight: 500; line-height: 1.22; letter-spacing: -.025em; color: var(--pub-ink); text-wrap: pretty; }
.ryv-dyn-excerpt { padding: 0; margin: 0; font: 16px/1.65 var(--pub-sans); color: var(--pub-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ryv-dyn-meta { padding: 0; margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; font: 13px/1.5 var(--pub-sans); color: var(--pub-muted); }
.ryv-dyn-sep { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.ryv-card-action { display: flex; justify-content: space-between; width: 100%; margin-top: 7px; padding-top: 16px; border-top: 1px solid var(--pub-line); font: 14px/1.5 var(--pub-sans); color: var(--pub-ink); }
.ryv-card-action > span { transition: transform .2s; }
.ryv-dyn-card:hover .ryv-card-action > span { transform: translate(2px,-2px); }
.ryv-dyn-card[hidden],.ryv-dyn-empty[hidden] { display: none !important; }
.ryv-dyn-empty { grid-column: 1/-1; padding: 48px 0; font: 16px/1.6 var(--pub-sans); color: var(--pub-muted); }
.ryv-reference-cover { position: absolute; inset: 0; padding: 28px; background: #c2cebb; color: #26302a; display: flex; flex-direction: column; justify-content: space-between; }
.ryv-reference-cover > span { font: 12px/1.5 var(--pub-sans); }
.ryv-reference-cover strong { font: 500 56px/1 var(--pub-sans); letter-spacing: -.045em; }
.ryv-reference-cover-line { display: flex; justify-content: space-between; border-top: 1px solid #899783; padding-top: 14px; }
@media screen and (min-width:981px) {
  .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child {
    grid-column: 1/-1; display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px;
    padding-bottom: 48px; border-bottom: 1px solid var(--pub-line);
  }
  .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child .ryv-dyn-body { padding: 16px 0; justify-content: center; gap: 18px; }
  .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child h3 { font-size: 38px; line-height: 1.13; letter-spacing: -.035em; }
  .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child .ryv-dyn-meta { margin-top: 0; }
  .ryv-editorial--sheets .ryv-dyn-grid > .ryv-dyn-card,.ryv-editorial--sheets .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child { grid-column: 1/-1; display: grid; grid-template-columns: 360px 1fr; gap: 56px; }
  .ryv-editorial--sheets .ryv-dyn-grid > .ryv-dyn-card .ryv-dyn-image { aspect-ratio: 1; }
  .ryv-editorial--sheets .ryv-dyn-grid > .ryv-dyn-card .ryv-dyn-body { max-width: 600px; }
  .ryv-editorial--sheets .ryv-dyn-excerpt { -webkit-line-clamp: unset; }
  /* Cheatsheets: keep every guide card the same size. The "featured first card"
     treatment (38px title, vertically centred body, divider) is a journal
     pattern that made the first sheet's title dwarf the others. Reset the first
     sheet card to the regular card so MCP and RAG match. */
  .ryv-editorial--sheets .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child { padding-bottom: 0; border-bottom: 0; }
  .ryv-editorial--sheets .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child h3 { font-size: 25px; line-height: 1.22; letter-spacing: -.025em; }
  .ryv-editorial--sheets .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child .ryv-dyn-body { padding: 24px 0 0; justify-content: flex-start; gap: 14px; }
  .ryv-editorial--sheets .ryv-dyn-grid:not(.is-filtered) > .ryv-dyn-card:first-child .ryv-dyn-meta { margin-top: auto; }
}

/* An article masthead gives the title, author and cover distinct space. */
.ryv-editorial .ryv-post-heading { position: relative; inset: auto; width: calc(100% - 18px); margin: 9px; padding: 0; border-radius: 10px; overflow: hidden; display: block; text-align: left; pointer-events: auto; background: linear-gradient(120deg,#242b2d,#1b2021 65%,#2b302b); color: var(--pub-ink); }
.ryv-post-heading-inner { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 64px; align-items: center; max-width: 1264px; margin: auto; padding: 144px 32px 72px; }
.ryv-post-heading-copy { min-width: 0; }
.ryv-post-breadcrumb { display: flex; gap: 14px; margin-bottom: 28px; font: 14px/1.5 var(--pub-sans); color: var(--pub-muted); }
.ryv-post-breadcrumb a { text-decoration: none; color: var(--pub-ink); }
.ryv-editorial .ryv-post-heading h1 { max-width: none; margin: 0; font: 500 clamp(38px,4.2vw,60px)/1.08 var(--pub-sans); letter-spacing: -.038em; text-wrap: pretty; }
.ryv-post-deck { max-width: 640px; margin: 24px 0 0; font: 18px/1.6 var(--pub-sans); letter-spacing: -.01em; color: var(--pub-body); }
.ryv-post-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; margin-top: 32px; }
.ryv-post-author { font: 500 14px/1.5 var(--pub-sans); color: var(--pub-ink); text-decoration: none; }
.ryv-post-author:hover { text-decoration: underline; text-underline-offset: 4px; }
.ryv-editorial .ryv-hero-meta { display: flex; justify-content: flex-start; gap: 10px; margin: 0; font: 13px/1.5 var(--pub-sans); letter-spacing: 0; text-transform: none; color: var(--pub-muted); }
.ryv-editorial .ryv-post-updated { margin: 10px 0 0; font: 13px/1.5 var(--pub-sans); color: var(--pub-muted); }
.ryv-post-cover { margin: 0; aspect-ratio: 1.15; width: 100%; overflow: hidden; border-radius: 6px; background: #191d1b; }
.ryv-post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ryv-post-heading-inner:not(:has(.ryv-post-cover)) { grid-template-columns: 1fr; max-width: 1000px; }

/* Long-form reading. Labels are quiet; monospace is reserved for code. */
.ryv-editorial .ryv-article-wrap { padding: 48px 32px 96px; color: var(--pub-body); }
.ryv-editorial .ryv-article-grid { max-width: 1440px; grid-template-columns: 264px minmax(0,1fr) 288px; gap: 28px; }
.ryv-editorial .ryv-article-grid > * { min-width: 0; }
@media screen and (min-width:1280px) {
  /* Move each sidebar outward 16px without changing the reading column. */
  .ryv-editorial .ryv-article-wrap { padding-inline: 16px; }
  .ryv-editorial .ryv-article-grid { max-width: 1472px; column-gap: 44px; }
}
.ryv-editorial .ryv-article-body { font: 400 18px/1.8 var(--pub-sans); color: var(--pub-body); max-width: none; letter-spacing: -.008em; }
.ryv-editorial .ryv-article-body :is(h2,h3,h4) { color: var(--pub-ink); font-family: var(--pub-sans); font-weight: 500; text-wrap: pretty; }
.ryv-editorial .ryv-article-body h2 { font-size: 32px; line-height: 1.22; letter-spacing: -.03em; margin: 64px 0 22px; padding: 0; border: 0; }
.ryv-editorial .ryv-article-body h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.022em; margin: 36px 0 16px; }
.ryv-editorial .ryv-article-body h4 { font-size: 19px; line-height: 1.4; letter-spacing: -.015em; }
.ryv-editorial .ryv-article-body strong { font-weight: 500; color: var(--pub-ink); }
.ryv-editorial .ryv-article-body :is(p,li) { text-wrap: pretty; }
.ryv-editorial .ryv-article-body :is(ul,ol) { padding-left: 24px; }
.ryv-editorial .ryv-article-body li { margin: 8px 0; }
.ryv-editorial .ryv-article-body li::marker { font-family: var(--pub-sans); color: var(--pub-muted); }
.ryv-editorial .ryv-article-body a { color: var(--pub-ink); border-bottom: 1px solid #778170; text-decoration: none; }
.ryv-editorial .ryv-article-body a:hover { color: var(--pub-accent); }
.ryv-editorial .ryv-article-body .anchor { opacity: 0; border: 0; margin-left: 8px; font-size: .65em; }
.ryv-editorial .ryv-article-body :is(h2,h3):hover .anchor,.ryv-editorial .ryv-article-body .anchor:focus-visible { opacity: 1; }
.ryv-editorial .ryv-article-body blockquote { margin: 32px 0; padding: 8px 0 8px 24px; border: 0; border-left: 2px solid var(--pub-accent); background: transparent; border-radius: 0; font: italic 400 25px/1.5 "Newsreader",Georgia,serif; color: var(--pub-ink); }
.ryv-editorial .ryv-article-body img { border-radius: 4px; border: 1px solid var(--pub-line); box-shadow: none; }
.ryv-editorial .ryv-article-body figure { margin: 32px 0; }
.ryv-editorial .ryv-article-body figcaption { margin-top: 12px; font: 14px/1.6 var(--pub-sans); color: var(--pub-muted); }
.ryv-editorial .ryv-article-body p:has(>img:only-child) + p:has(>em:only-child) { font-size: 14px; line-height: 1.6; color: var(--pub-muted); }
.ryv-editorial .ryv-article-body p:has(>img:only-child) + p > em { color: inherit; }
.ryv-editorial .ryv-article-body figure [role="img"] { background: #242724 !important; border-color: #70796b !important; border-radius: 6px !important; color: var(--pub-body) !important; font-size: 15px; }
.ryv-editorial .ryv-article-body code { border-radius: 3px; font-family: var(--pub-mono); font-size: .82em; letter-spacing: 0; background: rgba(242,241,235,.055); color: #d9dfd4; border: 0; }
.ryv-editorial .ryv-article-body pre { border: 1px solid var(--pub-line); border-radius: 6px; background: #181c1c; box-shadow: none; margin-block: 28px; }
.ryv-editorial .ryv-article-body pre code { background: transparent; font-size: 13px; line-height: 1.8; color: #d1d4cd; }
.ryv-editorial .ryv-article-body pre::before { font: 12px/1.5 var(--pub-sans); letter-spacing: 0; text-transform: none; color: var(--pub-muted); }
.ryv-editorial .ryv-copy-btn { font: 12px/1.5 var(--pub-sans); text-transform: none; letter-spacing: 0; border-radius: 4px; box-shadow: none; }
.ryv-editorial .ryv-copy-btn[hidden],.ryv-editorial .ryv-toc-toggle[hidden],.ryv-editorial .ryv-toc-expand[hidden] { display: none !important; }
.ryv-editorial .ryv-article-body table { width: 100%; border-collapse: collapse; border: 0; border-radius: 0; background: transparent; font: 15px/1.65 var(--pub-sans); }
.ryv-editorial .ryv-article-body :is(th,td) { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--pub-line); vertical-align: top; text-align: left; }
.ryv-editorial .ryv-article-body th { font: 500 14px/1.5 var(--pub-sans); color: var(--pub-ink); text-transform: none; letter-spacing: 0; background: #282b28; }
.ryv-editorial .ryv-article-body tr:nth-child(even) { background: transparent; }
/* Sidebars fill their grid tracks: no capped panels floating in wide gutters.
   The same Geist scale is used for navigation, summaries and related reading. */
.ryv-editorial .ryv-article-toc {
  width: 100%; max-width: none; padding: 0; top: 92px;
  border: 0; border-radius: 0; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.ryv-editorial .ryv-article-toc .toc-title,
.ryv-editorial .ryv-article-rail .ryv-rail-title {
  margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--pub-line);
  font: 500 16px/1.4 var(--pub-sans); letter-spacing: -.015em;
  text-transform: none; color: var(--pub-ink);
}
.ryv-editorial .ryv-article-toc ol {
  gap: 0; max-height: calc(100dvh - 218px); padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: #50554c transparent;
}
.ryv-editorial .ryv-article-toc ol a {
  font: 400 15px/1.5 var(--pub-sans); letter-spacing: -.012em;
  padding: 9px 10px 9px 14px; color: #c3c5bd; border-radius: 0;
}
.ryv-editorial .ryv-article-toc ol li.lvl-3 a {
  padding: 6px 10px 6px 26px; font: 400 14px/1.5 var(--pub-sans); color: #b0b4a9;
}
.ryv-editorial .ryv-article-toc ol li.lvl-2:not(:first-child) { margin-top: 8px; }
.ryv-editorial .ryv-article-toc ol a:is(:hover,.active) { color: var(--pub-ink); background: #292d28; }
.ryv-editorial .ryv-article-toc ol a.active::before {
  left: 0; top: 9px; bottom: 9px; height: auto; width: 2px; transform: none;
  background: var(--pub-accent); border-radius: 0;
}
.ryv-editorial .ryv-toc-toggle {
  margin: 12px 0 0; min-height: 44px; padding: 8px 0;
  font: 14px/1.5 var(--pub-sans); letter-spacing: 0; text-transform: none; color: #b0b4a9;
}
.ryv-editorial .ryv-article-toc.is-collapsed { width: 100%; padding: 0; border-radius: 0; }
.ryv-editorial .ryv-toc-expand { width: 44px; height: 44px; border-radius: 4px; }
.ryv-editorial .ryv-article-rail {
  width: 100%; max-width: none; top: 92px; max-height: calc(100dvh - 116px);
  padding-right: 6px; scrollbar-width: thin; scrollbar-color: #50554c transparent;
}
.ryv-editorial .ryv-rail-block + .ryv-rail-block { margin-top: 28px; padding-top: 0; border-top: 0; }
.ryv-editorial .ryv-rail-takeaways { gap: 16px; }
.ryv-editorial .ryv-rail-takeaways li {
  font: 400 15px/1.65 var(--pub-sans); letter-spacing: -.01em; color: #c3c5bd; padding-left: 16px;
}
.ryv-editorial .ryv-rail-takeaways li::before { width: 4px; height: 4px; top: 10px; left: 0; border-radius: 50%; background: var(--pub-accent); }
.ryv-editorial .ryv-rail-share { gap: 0; }
.ryv-editorial .ryv-share-btn {
  min-height: 44px; padding: 9px 0; background: none; border: 0; border-radius: 0;
  font: 400 15px/1.5 var(--pub-sans); letter-spacing: -.01em; color: #c3c5bd;
}
.ryv-editorial .ryv-share-btn:hover { color: var(--pub-ink); background: none; }
.ryv-editorial .ryv-rail-related a { padding: 18px 0; border-color: var(--pub-line); }
.ryv-editorial .ryv-rail-related :is(.cat,.rt) {
  font: 400 13px/1.5 var(--pub-sans); text-transform: none; letter-spacing: 0; color: #b0b4a9;
}
.ryv-editorial .ryv-rail-related .cat { margin-bottom: 8px; color: var(--pub-accent); }
.ryv-editorial .ryv-rail-related .ttl { font: 500 16px/1.45 var(--pub-sans); letter-spacing: -.015em; }
.ryv-editorial .ryv-author-bio { max-width: 700px; margin: 64px auto 0; padding: 28px 0; border: 0; border-top: 1px solid var(--pub-line); background: none; border-radius: 0; box-shadow: none; align-items: center; }
.ryv-editorial .ryv-author-bio .avatar { border-radius: 50%; background: #30372e; color: var(--pub-accent); border: 0; font: 500 17px/1 var(--pub-sans); }
.ryv-editorial .ryv-author-bio img.avatar { display: block; object-fit: cover; object-position: 50% 25%; }
.ryv-editorial .ryv-author-bio .avatar[hidden] { display: none; }
.ryv-editorial .ryv-author-bio h4 { font: 500 17px/1.4 var(--pub-sans); }
.ryv-editorial .ryv-author-bio :is(.role,p) { font: 14px/1.6 var(--pub-sans); letter-spacing: 0; text-transform: none; color: var(--pub-muted); }
.ryv-editorial .ryv-news-inner h2 { font-weight: 500; letter-spacing: -.035em; }
.ryv-editorial .ryv-news-inner input,.ryv-editorial .ryv-news-inner button { border-radius: 6px; }

/* The assessment remains a working reference, using the same type hierarchy. */
@media screen {
  .ryv-editorial .ryv-mcp { --card: #242624; --cream: #f2f1eb; --mint: #b8c9b1; --muted: #cecec7; --soft: #b1b3aa; --faint: #a1a59a; --line: rgba(242,241,235,.16); --line-soft: rgba(242,241,235,.12); --sp-sec: 72px; --sp-block: 48px; }
  .ryv-editorial .ryv-mcp-sec::before { content: none; }
  .ryv-editorial .ryv-mcp-hero .ryv-uni-overlay,.ryv-editorial .ryv-mcp-hero-grid { display: none; }
  .ryv-editorial .ryv-mcp-hero-bg { background: radial-gradient(ellipse at 90% 100%,rgba(162,183,159,.17),transparent 65%),linear-gradient(120deg,#242b2d,#1b2021 70%,#30322d); }
  .ryv-editorial .ryv-mcp-hero-card { min-height: 0; }
  .ryv-editorial .ryv-mcp-hero-inner { max-width: 1264px; padding: 140px 32px 64px; }
  .ryv-editorial .ryv-mcp-hero-title { max-width: 940px; font-size: clamp(40px,5vw,68px); line-height: 1.07; letter-spacing: -.038em; }
  .ryv-editorial .ryv-mcp :is(h1,h2,h3,h4) em { font-family: var(--pub-sans); font-style: normal; font-weight: inherit; }
  .ryv-editorial .ryv-mcp-hero-sub { max-width: 670px; font-size: 19px; line-height: 1.65; letter-spacing: -.01em; }
  .ryv-editorial :is(.ryv-mcp-hero-eyebrow,.ryv-mcp-eyebrow) { font: 500 12px/1.5 var(--pub-sans); letter-spacing: .08em; margin-bottom: 24px; }
  .ryv-editorial :is(.ryv-mcp-hero-eyebrow,.ryv-mcp-eyebrow)::before { width: 5px; height: 5px; background: var(--pub-accent); }
  .ryv-editorial .ryv-mcp-hero-meta { gap: 0 24px; margin-top: 24px; }
  .ryv-editorial .ryv-mcp-chip { padding: 4px 0; border: 0; background: none; border-radius: 0; font-size: 13px; }
  .ryv-editorial .ryv-mcp-chip .d { display: none; }
  .ryv-editorial .ryv-mcp-hero-stamp { font: 13px/1.7 var(--pub-sans); letter-spacing: 0; text-shadow: none; color: var(--pub-muted); }
  .ryv-editorial .ryv-mcp-h { font-size: clamp(30px,3.2vw,42px); line-height: 1.18; letter-spacing: -.03em; }
  .ryv-editorial .ryv-mcp-lead { font-size: 18px; line-height: 1.75; letter-spacing: -.008em; max-width: 720px; margin-top: 22px; }
  .ryv-editorial .ryv-mcp strong { font-weight: 500; }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-label,.ryv-mcp-detail-lbl,.ryv-mcp-pilllabel,.ryv-mcp-boundary .t,.ryv-mcp-flow-node .role,.ryv-mcp-tool .kind,.ryv-mcp-plain-tag,.ryv-mcp-finding-part .n) { font: 500 13px/1.5 var(--pub-sans); letter-spacing: 0; text-transform: none; }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-detail p,.ryv-mcp-detail li,.ryv-mcp-callout) { font-size: 16px; line-height: 1.75; letter-spacing: 0; }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-prereq,.ryv-mcp-tool,.ryv-mcp-lc,.ryv-mcp-flow-node,.ryv-mcp-score,.ryv-mcp-finding,.ryv-mcp-mxn-panel,.ryv-mcp-plain,.ryv-mcp-anatomy,.ryv-mcp-venn-wrap) { border-radius: 6px; box-shadow: none; background-image: none; }
  .ryv-editorial .ryv-mcp-prereq:hover { transform: none; }
  .ryv-editorial .ryv-mcp-prereq .ic { background: #30362e; border-radius: 6px; }
  .ryv-editorial .ryv-mcp-prereq .ic::after { content: none; }
  .ryv-editorial .ryv-mcp-prereq-head .num { font: 13px/1.5 var(--pub-sans); letter-spacing: 0; color: var(--pub-muted); text-transform: none; }
  .ryv-editorial .ryv-mcp-rm-link { padding: 22px 0; border-radius: 0; gap: 24px; }
  .ryv-editorial .ryv-mcp-rm-num { background: none; border: 0; border-radius: 0; width: 30px; height: auto; padding-top: 5px; font: 14px/1.5 var(--pub-mono); color: var(--pub-muted); }
  .ryv-editorial .ryv-mcp-rm-name { font-size: 22px; }
  .ryv-editorial .ryv-mcp-rm-desc { font-size: 16px; line-height: 1.7; max-width: 740px; }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-btn,.ryv-mcp-search,.ryv-mcp-pill,.ryv-mcp-stog button,.ryv-mcp-code,.ryv-mcp-progress) { border-radius: 5px; box-shadow: none; }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-btn,.ryv-mcp-stog button) { min-height: 42px; }
  .ryv-editorial .ryv-mcp-pill { min-height: 40px; font-size: 14px; padding: 8px 13px; }
  .ryv-editorial .ryv-mcp-search { min-height: 50px; font-size: 16px; }
  .ryv-editorial .ryv-mcp .ryv-faq-list { padding-inline: 24px; border-radius: 6px; background: #222422; box-shadow: none; }
  .ryv-editorial .ryv-mcp-summary-id { font-size: 12px; letter-spacing: 0; color: var(--pub-muted); }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-phasenum,.ryv-mcp-sevchip) { letter-spacing: 0; border-radius: 3px; }
  .ryv-editorial .ryv-mcp .ryv-mcp-summary-name { font-weight: 500; letter-spacing: -.015em; line-height: 1.5; }
  .ryv-editorial .ryv-mcp-progress { background: transparent; padding: 18px 0; border: 0; border-block: 1px solid var(--line); }
  .ryv-editorial .ryv-mcp-code pre { font-size: 13px; line-height: 1.8; }
  .ryv-editorial .ryv-mcp :is(.ryv-mcp-copy,.ryv-mcp-code-lang,.ryv-mcp-score-row .rx) { font: 12px/1.5 var(--pub-sans); letter-spacing: 0; text-transform: none; }
  .ryv-editorial .ryv-mcp-tag { border-radius: 3px; }
  .ryv-editorial .ryv-mcp-rail,.ryv-editorial .ryv-mcp-rail:is(:hover,:focus-within) { display: flex; position: sticky; top: 61px; right: auto; bottom: auto; transform: none; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; width: calc(100% - 64px); max-width: 1080px; margin: 0 auto; padding: 10px 0; border: 0; border-bottom: 1px solid var(--pub-line); border-radius: 0; background: #1e1e1e; backdrop-filter: none; box-shadow: none; overflow: visible; transition: none; }
  .ryv-editorial .ryv-mcp-rail-list { flex-direction: row; gap: 24px; min-width: 0; }
  .ryv-editorial .ryv-mcp-rail-head { order: 2; padding: 0; gap: 10px; }
  .ryv-editorial .ryv-mcp-rail-head .k { max-width: none; opacity: 1; font: 13px/1.5 var(--pub-sans); letter-spacing: 0; text-transform: none; color: var(--pub-muted); }
  .ryv-editorial .ryv-mcp-rail-head .pc { font: 13px/1.5 var(--pub-sans); color: var(--pub-ink); }
  .ryv-editorial .ryv-mcp-rail-item { padding: 8px 0; gap: 8px; height: 42px; border-radius: 0; }
  .ryv-editorial .ryv-mcp-rail-item:is(:hover,.active) { background: none; color: var(--pub-ink); }
  .ryv-editorial .ryv-mcp-rail-item::before { left: 0; right: 0; width: auto; height: 2px; top: auto; bottom: -11px; transform: none; border-radius: 0; }
  .ryv-editorial .ryv-mcp-rail-item.active::before { transform: none; }
  .ryv-editorial .ryv-mcp-rail-t { max-width: none; width: auto; opacity: 1; transform: none; font: 14px/1.5 var(--pub-sans); }
  .ryv-editorial .ryv-mcp-rail-n { font: 11px/1.5 var(--pub-mono); color: var(--pub-muted); }
  .ryv-editorial .ryv-mcp-rail-c,.ryv-editorial .ryv-mcp-rail-foot { display: none; }
  .ryv-editorial .ryv-mcp-reveal { opacity: 1; transform: none; transition: none; }
  .ryv-editorial .ryv-mcp [id] { scroll-margin-top: 145px; }
}
/* Keep navigation beside the article on smaller laptops; move extras below it. */
@media screen and (min-width:1100px) and (max-width:1279px) {
  .ryv-editorial .ryv-article-grid { grid-template-columns: 232px minmax(0,1fr); }
  .ryv-editorial .ryv-article-toc { display: block; }
  .ryv-editorial .ryv-article-rail { grid-column: 2; }
}
@media screen and (max-width:1279px) {
  .ryv-editorial .ryv-article-rail {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px;
    position: static; max-height: none; padding: 24px 0 0; overflow: visible;
  }
  .ryv-editorial .ryv-rail-block + .ryv-rail-block { margin-top: 0; }
  .ryv-editorial .ryv-rail-block:last-child { grid-column: 1/-1; }
  .ryv-editorial .ryv-rail-related { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .ryv-editorial .ryv-rail-related a { border-top: 0; padding-top: 0; }
}
@media screen and (max-width:1099px) {
  .ryv-editorial .ryv-article-grid { grid-template-columns: minmax(0,780px); justify-content: center; }
  .ryv-editorial .ryv-article-toc { display: none; }
  .ryv-editorial .ryv-article-rail { grid-column: 1; }
}
@media screen and (max-width:980px) {
  .ryv-dyn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ryv-post-heading-inner { gap: 32px; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); padding-top: 128px; }
  .ryv-editorial .ryv-mcp-rail-list { gap: 18px; }
  .ryv-editorial .ryv-mcp-rail-head .k { display: none; }
}
@media screen and (max-width:809px) {
  .ryv-publication-heading-inner { padding: 112px 24px 48px; }
  .ryv-publication-heading h1 { font-size: clamp(40px,11vw,56px); }
  .ryv-publication-heading p { font-size: 17px; }
  .ryv-editorial .ryv-dyn { padding: 40px 24px 64px; }
  .ryv-library-toolbar { flex-wrap: wrap; gap: 0; }
  .ryv-library-switch { width: 100%; border-top: 1px solid var(--pub-line); }
  .ryv-library-toolbar a { min-height: 48px; }
  .ryv-post-heading-inner { display: block; padding: 112px 24px 48px; }
  .ryv-post-cover { display: none; }
  .ryv-editorial .ryv-post-heading h1 { font-size: 40px; line-height: 1.1; }
  .ryv-post-breadcrumb { margin-bottom: 24px; }
  .ryv-post-deck { font-size: 17px; line-height: 1.65; }
  .ryv-post-byline { gap: 8px; flex-direction: column; margin-top: 26px; }
  .ryv-editorial .ryv-article-wrap { padding: 40px 24px 64px; }
  .ryv-editorial .ryv-article-body { font-size: 17px; line-height: 1.8; }
  .ryv-editorial .ryv-article-body h2 { font-size: 28px; margin-top: 48px; }
  .ryv-editorial .ryv-article-body h3 { font-size: 22px; }
  .ryv-editorial .ryv-article-body :is(th,td) { padding: 12px; }
  .ryv-editorial .ryv-mcp-hero-inner { padding: 112px 24px 48px; }
  .ryv-editorial .ryv-mcp-hero-title { font-size: 44px; }
  .ryv-editorial .ryv-mcp-hero-sub { width: 100%; max-width: 640px; font-size: 17px; }
  .ryv-editorial .ryv-mcp-sec { padding-inline: 24px; }
  .ryv-editorial .ryv-mcp-rail,.ryv-editorial .ryv-mcp-rail:is(:hover,:focus-within) { top: 53px; width: calc(100% - 48px); }
  .ryv-editorial .ryv-mcp-rail-head { display: none; }
  .ryv-editorial .ryv-mcp-rail-list { overflow-x: auto; width: 100%; gap: 24px; padding-bottom: 2px; }
  .ryv-editorial .ryv-mcp-rail-n { display: none; }
  .ryv-editorial .ryv-mcp-rail-item::before { bottom: 0; }
}
@media screen and (max-width:640px) {
  .ryv-editorial .ryv-article-rail { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .ryv-editorial .ryv-rail-related { grid-template-columns: minmax(0,1fr); gap: 18px; }

  .ryv-dyn-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .ryv-dyn-head { gap: 12px; margin-bottom: 22px; }
  .ryv-dyn-head h2 { font-size: 25px; }
  .ryv-dyn-head .count-meta { font-size: 13px; white-space: nowrap; }
  .ryv-library-filters { max-width: 100%; overflow-x: auto; gap: 24px; }
  .ryv-dyn-card h3 { font-size: 25px; }
  .ryv-editorial .ryv-post-heading h1 { font-size: 36px; }
  .ryv-editorial .ryv-mcp-hero-title { font-size: 40px; }
  .ryv-editorial .ryv-mcp-hero-eyebrow { font-size: 11px; letter-spacing: .06em; }
  .ryv-editorial .ryv-mcp .ryv-faq-list { padding-inline: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .ryv-editorial .ryv-dyn-card * { transition: none; }
}

/* The RAG cheatsheet has its own lavender accent in the reference library. */
.ryv-reference-cover--rag{background:#d4c5e8;color:#30273c}
.ryv-reference-cover--rag .ryv-reference-cover-line{border-color:#a595b7}
