/* ============================================================
   Manuscript detail (single resource) — portado de
   siteplantilla/assets/css/pages/ScaleReady_Manuscript_v1.css.
   Scopeado bajo .sr-doc para no chocar con header/footer de Elementor.
   ============================================================ */
/*
 * Room for a theme's fixed header.
 *
 * Some themes —ScaleReady's among them— fix their header over the content,
 * and the resource title ends up underneath. The plugin cannot measure it
 * from CSS, so a variable is exposed: while it is 0 nothing happens, and the
 * site that needs it defines it. It fills in by itself if
 * `SR_MS_HEADER_OFFSET` is declared in `wp-config.php`, so the adjustment
 * lives with the site's configuration and not in a hand patch that
 * disappears with every plugin update.
 */
.sr-doc { position: relative; background: #fff; color: var(--c-text); font-family: var(--font-body); padding-top: var(--sr-ms-header-offset, 0); }
/* Same reason as in the catalogue: heading margins are set by the theme and
 * vary from one to another. Inside the plugin they are reset and this CSS
 * decides the spacing. Section prose keeps its paragraph margins. */
.sr-doc :is(h1, h2, h3, h4, h5, h6) { margin: 0; }
.sr-doc .ms-header > *, .sr-doc .ms-header-head > * { margin: 0; }
/* Lists too: their margin is set by the theme and varies. Paragraphs already
 * have their own declared further down. */
.sr-doc .ms-section ul, .sr-doc .ms-section ol { margin: 0 0 var(--sp-md); padding-left: 1.3em; }
.sr-doc .ms-section li + li { margin-top: .35em; }
.sr-doc * { box-sizing: border-box; }
.sr-doc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: clamp(560px, 62vh, 780px); z-index: 0; pointer-events: none; background: radial-gradient(ellipse 55% 52% at 12% 12%, rgba(34,211,238,.22), transparent 60%), radial-gradient(ellipse 48% 42% at 90% 8%, rgba(249,115,22,.10), transparent 58%), linear-gradient(180deg, #eff7fc 0%, rgba(255,255,255,0) 100%); }
.sr-doc .wrap { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
/* Share (redes) */
.sr-doc .ms-share { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-lg); font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--c-text-soft); }
.sr-doc .ms-share > span { margin-right: .2rem; }
.sr-doc .ms-share a { width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1.5px solid var(--c-border); display: inline-flex; align-items: center; justify-content: center; color: var(--c-ink); transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.sr-doc .ms-share a:hover { transform: translateY(-2px); background: var(--c-ink); color: #fff; border-color: var(--c-ink); box-shadow: var(--sh-soft); }
.sr-doc .ms-share svg { width: 17px; height: 17px; }

/* buttons */
.sr-doc .btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: .85em 1.6em; border-radius: var(--r-btn); border: 1px solid transparent; transition: background var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out); white-space: nowrap; position: relative; overflow: hidden; text-decoration: none; cursor: pointer; }
.sr-doc .btn-orange { background: var(--c-accent); color: #fff; box-shadow: 0 8px 22px rgba(249,115,22,.32); }
.sr-doc .btn-orange:hover { background: var(--c-accent-hov); box-shadow: 0 12px 28px rgba(249,115,22,.4); transform: translateY(-2px); color: #fff; }
.sr-doc .btn-ghost { background: #fff; color: var(--c-ink); border-color: var(--c-glow); }
.sr-doc .btn-ghost:hover { background: var(--c-glow-soft); border-color: var(--c-glow); color: var(--c-ink-deep); transform: translateY(-2px); }
.sr-doc .btn .arr { transition: transform var(--t-micro); }
.sr-doc .btn:hover .arr { transform: translateX(3px); }
.sr-doc .cta-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }

/* reveal (PE gate) */
.sr-doc.sr-reveal-ready .sr-reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.sr-doc.sr-reveal-ready .sr-reveal.in { opacity: 1; transform: none; }

/* header */
.sr-doc .ms-header { padding: var(--sp-xl) 0 var(--sp-2xl); border-bottom: 1px solid var(--c-line); }
/* The cover is sized down by the column split, not by the figure itself.
   Giving it a `max-width` with an auto margin stopped it stretching —it is a
   grid item— and it ended up shrunk to its content, which while loading is
   LiteSpeed's 1x1 placeholder: the cover disappeared. The column decides and
   the figure fills it. */
.sr-doc .ms-header-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--sp-2xl); align-items: center; }
@media (max-width: 820px) { .sr-doc .ms-header-grid { grid-template-columns: 1fr; gap: var(--sp-xl); } }
.sr-doc .ms-chips { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: var(--sp-md); }
/* Explicit `line-height`: without it the chip inherits the body text's 1.65
   and comes out tall and narrow, like a capsule standing up rather than
   lying down. The side padding goes up to compensate. */
.sr-doc .ms-chip { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-display); font-weight: 700; font-size: .78rem; line-height: 1.25; letter-spacing: .02em; padding: .3em .9em; border-radius: var(--r-pill); }
.sr-doc .ms-chip.type { background: var(--c-glow-soft); color: var(--c-ink); border: 1px solid rgba(34,211,238,.28); }
.sr-doc .ms-chip.cell { background: var(--c-accent-soft); color: var(--c-accent); border: 1px solid rgba(249,115,22,.25); }
.sr-doc .ms-chip.model { background: #f3f6fb; color: var(--c-text-soft); border: 1px solid var(--c-border); }
.sr-doc .ms-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.85rem); line-height: 1.08; letter-spacing: -.03em; color: var(--c-ink); margin-bottom: var(--sp-md); }
.sr-doc .ms-meta { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-family: var(--font-display); font-size: .95rem; color: var(--c-text-soft); margin-bottom: var(--sp-lg); align-items: baseline; }
.sr-doc .ms-meta .sep { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c-border); align-self: center; }
.sr-doc .ms-meta b { font-weight: 800; color: var(--c-ink); }
.sr-doc .ms-meta i { font-style: italic; color: var(--c-text); }
.sr-doc .ms-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
/* On a phone "Read full paper" and "Download PDF" did not fit side by side and
   stacked. Two to a row, sharing the width: a third button (the video) takes
   the next row. Below 360px the text would break over three lines, so they
   stack as before. */
@media (min-width: 360px) and (max-width: 480px) {
  .sr-doc .ms-actions > .btn { flex: 1 1 calc(50% - var(--sp-sm) / 2); min-width: 0; justify-content: center; text-align: center; white-space: normal; padding-inline: .75em; font-size: .92rem; }
}
.sr-doc .ms-image { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg, var(--c-glow-soft), #fff 65%); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-card); border: 1px solid var(--c-border); padding: var(--sp-lg); margin: 0; }
.sr-doc .ms-image::after { content: ""; position: absolute; inset: auto 0 -10% 0; height: 40%; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(34,211,238,.16), transparent 70%); filter: blur(20px); pointer-events: none; }
.sr-doc .ms-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease-expo); }
.sr-doc .ms-image:hover img { transform: scale(1.03); }
/*
 * Document cover. An A4 page inside a square box with `contain` comes out
 * tiny with two empty strips at the sides. It is given a sheet's proportion
 * and framed from the top, which is where the title and the journal are —
 * the part that really identifies the paper at a glance.
 */
.sr-doc .ms-image.is-cover { aspect-ratio: 3 / 3.6; padding: 0; background: #fff; }
.sr-doc .ms-image.is-cover img { object-fit: cover; object-position: top center; border-radius: inherit; }
.sr-doc .ms-image.is-cover::after { display: none; }
/* The model label needs a background of its own over a white page. */
.sr-doc .ms-image.is-cover .ms-image-tag { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(20,29,55,.10); }
@media (max-width: 760px) { .sr-doc .ms-image.is-cover { aspect-ratio: 3 / 3.2; } }
/* No cover: the frame keeps its shape and says plainly that there is no image,
   instead of borrowing a photograph of a product the paper may never mention. */
.sr-doc .ms-image-none { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sr-doc .ms-image-none span { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-soft); border: 1px dashed var(--c-border); border-radius: var(--r-pill); padding: .65em 1.3em; background: rgba(255,255,255,.72); text-align: center; }
.sr-doc .ms-image-tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); background: rgba(255,255,255,.9); padding: .4em .8em; border-radius: var(--r-pill); border: 1px solid var(--c-border); z-index: 2; backdrop-filter: blur(6px); }

/* sections */
.sr-doc .ms-section { padding: var(--sp-2xl) 0; border-bottom: 1px solid var(--c-line); scroll-margin-top: calc(96px + 24px); }
.sr-doc .ms-section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.15; color: var(--c-ink); margin-bottom: var(--sp-md); letter-spacing: -.02em; }
.sr-doc .ms-section h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--c-ink); margin-bottom: .9rem; letter-spacing: -.005em; }
.sr-doc .ms-section p { font-family: var(--font-body); font-weight: 400; font-size: .97rem; line-height: 1.65; color: var(--c-text); max-width: none; margin: 0 0 var(--sp-md); }
.sr-doc .ms-section p:last-child { margin-bottom: 0; }
/* The resource body comes from years of editing, so it arrives with lists,
   links and the odd stray <div>. It inherits the section's prose rules; the
   only thing declared here is that a wrapper div must not reset them. */
/* The document body also at the container's full width.
   `.ms-section p` on its own was not enough: the `.ms-body` container had a
   52em cap of its own, so the paragraphs widened inside a box that stayed
   narrow and nothing changed. */
.sr-doc .ms-body { max-width: none; }
.sr-doc .ms-body > div { margin: 0; }
.sr-doc .ms-body > :last-child { margin-bottom: 0; }
/* Overview can hold two blocks (the body, then the second column's own
   heading and text). The rule above zeroes the first block's trailing margin,
   so the gap before the next one has to be put back here. */
.sr-doc .ms-body + h3, .sr-doc .ms-body + .ms-body { margin-top: var(--sp-lg); }
.sr-doc .ms-quote { margin-top: var(--sp-lg); padding: var(--sp-lg) var(--sp-xl); background: linear-gradient(150deg, var(--c-glow-soft), #fff 90%); border-left: 4px solid var(--c-glow); border-radius: 0 var(--r-lg) var(--r-lg) 0; max-width: 44em; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--c-ink); line-height: 1.4; }
.sr-doc .ms-quote cite { display: block; margin-top: var(--sp-sm); font-family: var(--font-body); font-weight: 600; font-size: .88rem; color: var(--c-text-soft); font-style: normal; letter-spacing: .02em; }
.sr-doc .ms-quote cite b { color: var(--c-ink); font-weight: 800; }
.sr-doc .ms-quote cite i { font-style: italic; }

/* study details */
.sr-doc .ms-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-2xl); margin-top: var(--sp-md); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
@media (max-width: 720px) { .sr-doc .ms-details { grid-template-columns: 1fr; } }
.sr-doc .ms-detail { display: grid; grid-template-columns: minmax(140px, 180px) 1fr; gap: var(--sp-md); padding: .9rem 0; border-bottom: 1px solid var(--c-line); align-items: baseline; }
.sr-doc .ms-detail dt { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-soft); }
.sr-doc .ms-detail dd { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--c-text); line-height: 1.45; letter-spacing: normal; word-break: break-word; margin: 0; }
.sr-doc .ms-detail dd i { font-style: italic; color: var(--c-text); font-weight: 400; }
.sr-doc .ms-detail dd a { color: var(--c-glow); text-decoration: none; }
.sr-doc .ms-detail dd a:hover { text-decoration: underline; }
/*
 * Long fields (institutions, authors): three lines and a button.
 *
 * The clamp is applied by the JavaScript and only when the text genuinely
 * overflows, so without JavaScript —and for a crawler— the full list is still
 * there. It clamps by lines and not by number of institutions because a single
 * centre can take up two lines on its own.
 */
.sr-doc .ms-clamp .ms-clamp-text { display: block; }
.sr-doc .ms-clamp.is-clamped .ms-clamp-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sr-doc .ms-clamp-more { display: inline-flex; align-items: center; gap: .35em; margin-top: .5rem; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-glow); }
.sr-doc .ms-clamp-more:hover { text-decoration: underline; }
/*
 * The Elementor kit paints the text of every `button` white on hover and on
 * focus (`.elementor-kit-N button:hover`), and its selector outweighs this
 * one: "Show all" vanished under the mouse and after a click. The colour is
 * declared in every state, as with the catalogue's download button.
 */
.sr-doc .ms-clamp-more:hover,
.sr-doc .ms-clamp-more:focus,
.sr-doc .ms-clamp-more:active { color: var(--c-glow); background: none; }
.sr-doc .ms-clamp-more::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.sr-doc .ms-clamp-more[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.sr-doc .ms-detail dd.check { color: var(--c-yes-text, #0f7a55); position: relative; padding-left: 1.9em; display: inline-flex; align-items: center; }
.sr-doc .ms-detail dd.check::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #10b981; position: absolute; left: 0; top: .1em; }
.sr-doc .ms-detail dd.check::after { content: ""; position: absolute; left: .35em; top: .4em; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* bullets (how G-Rex used — a plain ul is styled as ms-bullets) */
.sr-doc .ms-howused ul, .sr-doc .ms-section ul.ms-bullets { list-style: none; margin: var(--sp-md) 0 0; padding: 0; max-width: 52em; }
.sr-doc .ms-howused ul li, .sr-doc .ms-section ul.ms-bullets li { position: relative; padding: .5em 0 .5em 1.6em; font-family: var(--font-body); font-weight: 400; font-size: .97rem; line-height: 1.65; color: var(--c-text); }
.sr-doc .ms-howused ul li::before, .sr-doc .ms-section ul.ms-bullets li::before { content: ""; position: absolute; left: 0; top: 1em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-glow); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.sr-doc .ms-note { margin-top: var(--sp-md); padding: .9rem 1.2rem; background: var(--c-accent-soft); border-left: 3px solid var(--c-accent); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: .9rem; color: var(--c-ink); line-height: 1.5; max-width: 44em; }
.sr-doc .ms-note b { color: var(--c-accent); font-weight: 800; }

/* related */
.sr-doc .related-grid { list-style: none; margin: var(--sp-md) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-sm) var(--sp-lg); }
/*
 * A single row when there is only one item: two columns with one entry left
 * half a line empty beside it.
 */
.sr-doc .related-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
@media (max-width: 760px) { .sr-doc .related-grid { grid-template-columns: minmax(0, 1fr); } }

/*
 * LIST format: small thumbnail on the left, text on the right. It used to be
 * a card with the large image above the text, and two entries with different
 * amounts of text ended up at very different heights.
 */
.sr-doc .related-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--sp-md); align-items: start; padding: var(--sp-md) var(--sp-sm); border-radius: var(--r-lg); text-decoration: none; border-bottom: 1px solid var(--c-line); transition: background var(--t-micro); }
.sr-doc .related-grid li:last-child .related-card,
.sr-doc .related-grid li:nth-last-child(2):nth-child(odd) .related-card { border-bottom: 0; }
.sr-doc .related-card:hover { background: linear-gradient(100deg, var(--rc-bg, #f4fbfd), transparent 78%); }

.sr-doc .related-card[data-kind="application"] { --rc-color: #0b8fa4; --rc-bg: var(--c-glow-soft); }
.sr-doc .related-card[data-kind="model"] { --rc-color: var(--c-accent); --rc-bg: var(--c-accent-soft); }
.sr-doc .related-card[data-kind="reagent"] { --rc-color: var(--c-ink); --rc-bg: #f3f6fb; }
.sr-doc .related-card[data-kind="paper"] { --rc-color: var(--c-ink-deep); --rc-bg: rgba(14,29,65,.06); }
/* Blog posts in the closing "Latest insights" strip. Its own colour so the
   reader can tell an article apart from a product or an application at a
   glance, and it is the only new selector this section needs. */
.sr-doc .related-card[data-kind="insight"] { --rc-color: #0b8fa4; --rc-bg: rgba(11,143,164,.08); }

.sr-doc .rc-thumb { display: block; width: 84px; height: 84px; border-radius: var(--r-lg); overflow: hidden; background: var(--rc-bg); flex: none; }
.sr-doc .rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease-expo); }
.sr-doc .related-card:hover .rc-thumb img { transform: scale(1.06); }
.sr-doc .rc-thumb .rc-glyph { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--rc-color); }
.sr-doc .rc-thumb .rc-glyph svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sr-doc .rc-body { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
/* The label, inline and discreet: a list label, not a card pill. */
.sr-doc .rc-kind { font-family: var(--font-display); font-weight: 800; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--rc-color); }
.sr-doc .rc-kind i { font-style: normal; color: var(--c-text-soft); font-weight: 700; letter-spacing: .06em; }
.sr-doc .related-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--c-ink-deep); line-height: 1.3; letter-spacing: -.005em; margin: 0; }
.sr-doc .related-desc { display: block; font-size: .875rem; color: var(--c-text-soft); line-height: 1.5; margin: 0; }
.sr-doc .rc-open { display: inline-flex; align-items: center; gap: .35em; margin-top: .2rem; font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--rc-color); letter-spacing: .02em; }
.sr-doc .rc-open .arr { transition: transform var(--t-micro); }
.sr-doc .related-card:hover .rc-open .arr { transform: translateX(4px); }

/* citation */
.sr-doc .ms-citation { background: #f6f8fb; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-lg) var(--sp-xl); margin-top: var(--sp-md); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-lg); flex-wrap: wrap; }
.sr-doc .ms-citation p { margin: 0; font-size: 1rem; color: var(--c-text); line-height: 1.55; font-family: var(--font-body); max-width: none; flex: 1; min-width: 260px; }
.sr-doc .ms-citation button { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--c-ink); background: #fff; border: 1px solid var(--c-border); padding: .6em 1.1em; border-radius: var(--r-pill); cursor: pointer; transition: border-color var(--t-micro), color var(--t-micro), background var(--t-micro); }
.sr-doc .ms-citation button:hover { border-color: var(--c-ink); }
/* The same kit rule left white text on this white button. */
.sr-doc .ms-citation button:hover,
.sr-doc .ms-citation button:focus,
.sr-doc .ms-citation button:active { color: var(--c-ink); background: #fff; }
.sr-doc .ms-citation button.copied,
.sr-doc .ms-citation button.copied:hover,
.sr-doc .ms-citation button.copied:focus { border-color: #10b981; color: #10b981; background: rgba(16,185,129,.06); }
.sr-doc .ms-citation button svg { width: 16px; height: 16px; }

/* CTA */
.sr-doc .ms-cta { padding: var(--sp-3xl) 0; border-bottom: none; }
.sr-doc .ms-cta-inner { background: linear-gradient(160deg, var(--c-ink-deep) 0%, var(--c-ink) 100%); border-radius: var(--r-xl); padding: var(--sp-2xl); color: #fff; position: relative; overflow: hidden; }
.sr-doc .ms-cta-inner::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; background: radial-gradient(circle, rgba(34,211,238,.28), transparent 65%); pointer-events: none; }
.sr-doc .ms-cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--sp-xl); align-items: center; position: relative; z-index: 1; }
@media (max-width: 720px) { .sr-doc .ms-cta-grid { grid-template-columns: 1fr; } }
.sr-doc .ms-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); color: #fff; line-height: 1.15; margin-bottom: var(--sp-sm); letter-spacing: -.02em; }
.sr-doc .ms-cta p { color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.55; margin: 0; max-width: 34em; }

@media (prefers-reduced-motion: reduce) {
	.sr-doc.sr-reveal-ready .sr-reveal { opacity: 1; transform: none; }
}

/* Breadcrumb: shorten the article title with an ellipsis (responsive; full on hover). */

/* The page-count label goes bottom right: at the top it covered the paper's title. */
.sr-doc .ms-image.is-cover .ms-image-tag.is-pages {
	top: auto; left: auto; right: var(--sp-sm); bottom: var(--sp-sm);
	font-size: .66rem; letter-spacing: .1em; color: var(--c-text-soft);
	background: rgba(255,255,255,.92); border: 1px solid var(--c-border);
}

/*
 * Tarjeta de manuscrito relacionado.
 *
 * `rc-meta` —the journal and the year— was added with no styles and inherited
 * the theme's size: it came out as large as the headline and ate the card's
 * hierarchy. Here it is what it is: a supporting figure.
 *
 * The cover is framed from the top (`object-position`) because a paper's cover
 * carries the title in its header. Centred, a square crop showed half the
 * abstract and not one figure that helps recognise it.
 */
.sr-doc .related-card[data-kind="manuscript"] { --rc-color: var(--c-ink-deep); --rc-bg: rgba(14,29,65,.05); }
.sr-doc .related-card[data-kind="manuscript"] .rc-thumb img { object-position: center top; }

.sr-doc .rc-meta {
	font-size: .8rem;
	line-height: 1.35;
	color: var(--c-text-soft);
	font-weight: 500;
	letter-spacing: .01em;
}

@media (max-width: 760px) {
	.sr-doc .related-card { grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-sm); }
	.sr-doc .rc-thumb { width: 64px; height: 64px; }
}

/*
 * Back to the catalogue.
 *
 * Deliberately discreet: it is an exit, not a call to action. It competes with
 * "Read full paper" and "Download PDF", which are what the reader came to do.
 */
.sr-doc .ms-back {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	margin-bottom: var(--sp-md);
	padding: .3rem .7rem .3rem .45rem;
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--c-text-soft);
	text-decoration: none;
	background: transparent;
	border: 1px solid var(--c-line);
	transition: color var(--t-micro), border-color var(--t-micro), background var(--t-micro);
}
.sr-doc .ms-back svg { transition: transform var(--t-micro); }
.sr-doc .ms-back:hover {
	color: var(--c-ink);
	border-color: currentColor;
	background: rgba(255, 255, 255, .6);
}
.sr-doc .ms-back:hover svg { transform: translateX(-2px); }
/*
 * The right-hand column reads as a marginal note, not as another section of
 * equal weight: soft background, a box of its own and a smaller heading.
 * Without that, two <h2> of the same size side by side compete and neither
 * wins.
 */
.sr-doc .ms-duo.is-pair > .ms-section:last-child {
	background: linear-gradient(170deg, var(--c-glow-soft), transparent 70%);
	border: 1px solid var(--c-border);
	border-radius: var(--r-xl);
	padding: var(--sp-lg);
	margin-top: var(--sp-2xl);
}
.sr-doc .ms-duo.is-pair > .ms-section:last-child h2 {
	font-size: .78rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--c-text-soft);
	margin-bottom: var(--sp-sm);
}
.sr-doc .ms-duo.is-pair > .ms-section:last-child .related-grid {
	grid-template-columns: minmax(0, 1fr);
	margin-top: 0;
}
.sr-doc .ms-duo.is-pair > .ms-section:last-child .related-card {
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 900px) {
	.sr-doc .ms-duo.is-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.sr-doc .ms-duo.is-pair > .ms-section:last-child { margin-top: 0; margin-bottom: var(--sp-2xl); }
}
