/* nosy blog article — embed stylesheet v1.
 *
 * The article design of the nosy-hosted blog page (resources/views/blog/show.blade.php
 * + blog/partials/tokens.blade.php), extracted 1:1 for an article that lives on the
 * client's OWN site, inside their theme. Never edit v1 in place once it is live:
 * publish blog-v2.css.
 *
 * How it stays ours on someone else's page
 *  - Everything is under ONE wrapper, .nosy-article. Nothing here touches an
 *    element outside it; there is no universal selector and no @import.
 *  - The root selector is .nosy-article:not(#nosy-article). The :not(#…) adds an id's
 *    weight, so a theme's `.entry-content p { line-height; max-width; color }`
 *    (and deeper class chains) lose to us without !important.
 *  - The hosted page leans on the browser's defaults for headings, paragraphs,
 *    lists, quotes, tables and figures. A theme replaces those defaults, so the
 *    block "Browser defaults, pinned" restates them inside the wrapper, at a
 *    weight just under the design rules.
 *  - Tokens sit in :where(.nosy-article) (no weight at all), so the renderer's
 *    inline `.nosy-article{--accent:#…}` — the client's brand colour — wins.
 *  - Dark mode is keyed on the wrapper, never on <html>: data-theme="dark|light"
 *    on .nosy-article, and prefers-color-scheme only when it is not pinned light.
 *  - One webfont: Inter (variable), self-hosted next to this file, under its own
 *    family name so a theme that also ships "Inter" cannot swap in its files.
 *    The hosted page's JetBrains Mono becomes the system mono stack.
 *  - Static: the hosted page's GSAP fade-ins and the table of contents' scroll
 *    tracking are not here. The TOC is plain anchor links; the renderer marks the
 *    first link data-toc-status="active". No transitions.
 */

/* ---------- Font: Inter variable, self-hosted (SIL OFL 1.1, resources/fonts/blog/LICENSE.txt), served by /api/embed/fonts/* with CORS ---------- */
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-cyrillic-ext-var.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-cyrillic-var.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-greek-ext-var.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-greek-var.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-vietnamese-var.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-latin-ext-var.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nosy Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../api/embed/fonts/inter-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (tokens.blade.php), on the wrapper instead of :root ---------- */
:where(.nosy-article) {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-raised: #fbfbfc;
  --line: #e5e5e7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #a1a1a6;
  /* The ONE accent: the client's brand colour, supplied inline by the renderer.
     The reference blue is only the last resort. */
  --accent: #2b57e0;
  --accent-ink: #ffffff;
  --code-bg: #f0f1f4;
  --font-display: 'Nosy Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :where(.nosy-article:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-raised: #141416;
    --line: #2c2c2e;
    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    --ink-faint: #6e6e73;
    --accent-ink: #0a1020;
    --code-bg: #17181b;
  }
}

:where(.nosy-article[data-theme="dark"]) {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-raised: #141416;
  --line: #2c2c2e;
  --ink: #f5f5f7;
  --ink-soft: #a1a1a6;
  --ink-faint: #6e6e73;
  --accent-ink: #0a1020;
  --code-bg: #17181b;
}

/* ---------- The wrapper = the hosted page's <body> ---------- */
.nosy-article:not(#nosy-article) {
  display: block;
  box-sizing: border-box;
  /* Width and outer spacing belong to the host's layout (a WordPress
     .alignfull, for one, works through negative margins), so neither is set. */
  max-width: none;
  /* The wrapper can be an <article>, which themes style: their padding and border stay out. */
  padding: 0;
  border: 0;
  box-shadow: none;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
  text-transform: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  -webkit-text-size-adjust: auto;
  text-size-adjust: auto;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Browser defaults, pinned ----------
   What the hosted page gets from the browser and a theme overrides. :where() keeps
   these one step under the design rules below. */
.nosy-article:not(#nosy-article) :where(div, section, aside, nav, article, header, footer, p, a, span, strong, b, em, i, img, figure, figcaption, picture, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote, table, caption, thead, tbody, tfoot, tr, th, td, pre, code, hr, svg) { box-sizing: border-box; }
.nosy-article:not(#nosy-article) :where(div, section, aside, nav, article, header, footer, figure) { background: none; border: 0; box-shadow: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; }
.nosy-article:not(#nosy-article) :where(h1, h2, h3, h4, h5, h6) { font-family: inherit; color: inherit; font-weight: bold; font-style: normal; line-height: normal; letter-spacing: normal; text-transform: none; text-align: inherit; padding: 0; border: 0; background: none; max-width: none; }
.nosy-article:not(#nosy-article) :where(h1) { font-size: 2em; margin: 0.67em 0; }
.nosy-article:not(#nosy-article) :where(h2) { font-size: 1.5em; margin: 0.83em 0; }
.nosy-article:not(#nosy-article) :where(h3) { font-size: 1.17em; margin: 1em 0; }
.nosy-article:not(#nosy-article) :where(h4) { font-size: 1em; margin: 1.33em 0; }
.nosy-article:not(#nosy-article) :where(h5) { font-size: 0.83em; margin: 1.67em 0; }
.nosy-article:not(#nosy-article) :where(h6) { font-size: 0.67em; margin: 2.33em 0; }
.nosy-article:not(#nosy-article) :where(p) { margin: 1em 0; padding: 0; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; max-width: none; text-align: inherit; }
.nosy-article:not(#nosy-article) :where(a) { color: var(--accent); text-decoration: underline; text-decoration-thickness: auto; text-underline-offset: auto; font-weight: inherit; border: 0; box-shadow: none; background: none; padding: 0; }
.nosy-article:not(#nosy-article) :where(span, strong, b, em, i, time) { font-size: inherit; font-family: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-decoration: none; background: none; padding: 0; border: 0; }
.nosy-article:not(#nosy-article) :where(strong, b) { font-weight: bold; }
.nosy-article:not(#nosy-article) :where(em, i) { font-style: italic; }
.nosy-article:not(#nosy-article) :where(ul, ol) { margin: 1em 0; padding: 0 0 0 40px; }
.nosy-article:not(#nosy-article) :where(ul) { list-style: disc outside; }
.nosy-article:not(#nosy-article) :where(ol) { list-style: decimal outside; }
.nosy-article:not(#nosy-article) :where(li) { display: list-item; margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; background: none; border: 0; }
.nosy-article:not(#nosy-article) :where(blockquote) { margin: 1em 40px; padding: 0; border: 0; background: none; font-style: normal; font-family: inherit; quotes: none; }
.nosy-article:not(#nosy-article) :where(blockquote)::before,
.nosy-article:not(#nosy-article) :where(blockquote)::after { content: none; }
.nosy-article:not(#nosy-article) :where(blockquote p) { font-size: inherit; line-height: inherit; font-weight: inherit; }
.nosy-article:not(#nosy-article) :where(img) { max-width: 100%; height: auto; display: inline; border: 0; box-shadow: none; vertical-align: baseline; padding: 0; background: none; }
.nosy-article:not(#nosy-article) :where(figure) { margin: 1em 40px; padding: 0; border: 0; }
.nosy-article:not(#nosy-article) :where(figcaption) { display: block; margin: 0; padding: 0; font-size: inherit; font-style: normal; color: inherit; text-align: inherit; }
.nosy-article:not(#nosy-article) :where(table) { display: table; width: auto; margin: 0; padding: 0; border-collapse: separate; border-spacing: 2px; border: 0; background: none; font-size: inherit; }
.nosy-article:not(#nosy-article) :where(th, td) { padding: 1px; border: 0; background: none; vertical-align: inherit; text-align: inherit; font-size: inherit; }
.nosy-article:not(#nosy-article) :where(th) { font-weight: bold; text-align: center; }
.nosy-article:not(#nosy-article) :where(tr) { background: none; border: 0; }
/* As the browser has it: a lone `monospace` at the `medium` keyword is drawn at the
   monospace default (13px), and a child in another family (the design's code)
   sizes from 16px again. A fixed size would break that second half. */
.nosy-article:not(#nosy-article) :where(pre) { margin: 1em 0; padding: 0; border: 0; background: none; font-family: monospace; font-size: medium; line-height: normal; white-space: pre; overflow: visible; }
.nosy-article:not(#nosy-article) :where(code, kbd, samp) { line-height: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; background: none; padding: 0; border: 0; border-radius: 0; }
.nosy-article:not(#nosy-article) :where(hr) { height: 0; margin: 0.5em auto; border: 1px inset; color: gray; background: none; }

/* ---------- Links (show.blade.php: a { color: var(--accent) }) ---------- */
.nosy-article:not(#nosy-article) a { color: var(--accent); }
.nosy-article:not(#nosy-article) img { max-width: 100%; }

/* ---------- Hero: eyebrow, title, dek, author line ---------- */
.nosy-article:not(#nosy-article) .hero, .nosy-article:not(#nosy-article) .nosy-article__head { padding: clamp(3em, 8vw, 6em) 1.5em 3em; max-width: 46em; margin: 0 auto; text-align: left; }
.nosy-article:not(#nosy-article) .hero__eyebrow, .nosy-article:not(#nosy-article) .nosy-article__back, .nosy-article:not(#nosy-article) .nosy-article__eyebrow { font-family: var(--font-mono); font-size: 0.75em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1em; }
.nosy-article:not(#nosy-article) .hero__title, .nosy-article:not(#nosy-article) .nosy-article__title { font-size: clamp(2.1em, 5.5vw, 3.4em); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
.nosy-article:not(#nosy-article) .hero__dek, .nosy-article:not(#nosy-article) .nosy-article__dek { font-size: 1.2em; line-height: 1.5; color: var(--ink-soft); max-width: 34em; margin: 0 0 1.75em; font-weight: 400; }
.nosy-article:not(#nosy-article) .hero__meta, .nosy-article:not(#nosy-article) .nosy-article__meta { display: flex; align-items: center; gap: 0.9em; font-size: 0.8125em; color: var(--ink-faint); }
.nosy-article:not(#nosy-article) .hero__avatar, .nosy-article:not(#nosy-article) .nosy-article__avatar { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #7d5fff)); flex-shrink: 0; }
.nosy-article:not(#nosy-article) .hero__meta strong, .nosy-article:not(#nosy-article) .nosy-article__meta strong { color: var(--ink-soft); font-weight: 560; }

.nosy-article:not(#nosy-article) .hero__image, .nosy-article:not(#nosy-article) .nosy-article__hero { max-width: 60em; margin: 2.5em auto 0; padding: 0 1.5em; }
.nosy-article:not(#nosy-article) .hero__image img, .nosy-article:not(#nosy-article) .nosy-article__hero img { width: 100%; border-radius: 1.1em; display: block; }

/* ---------- Article column + table of contents ---------- */
.nosy-article:not(#nosy-article) .toc-layout, .nosy-article:not(#nosy-article) .nosy-article__layout {
  grid-column-gap: 4em; grid-row-gap: 4em; flex-flow: row;
  justify-content: flex-start; align-items: flex-start;
  max-width: 60em; margin-left: auto; margin-right: auto;
  padding: 1em 1.5em 5em; display: flex; position: relative;
}
.nosy-article:not(#nosy-article) .toc-article, .nosy-article:not(#nosy-article) .nosy-article__body { flex: 1; max-width: 40em; min-width: 0; }
.nosy-article:not(#nosy-article) .toc-article h2, .nosy-article:not(#nosy-article) .nosy-article__body h2 { letter-spacing: -0.015em; margin-top: 1.9em; margin-bottom: 0.7em; font-size: 1.6em; font-weight: 620; line-height: 1.24; }
.nosy-article:not(#nosy-article) .toc-article h3, .nosy-article:not(#nosy-article) .nosy-article__body h3 { margin-top: 1.8em; margin-bottom: 0.65em; font-size: 1.2em; font-weight: 600; letter-spacing: -0.01em; }
/* The hosted script scrolled a TOC click to 80px above the heading (data-toc-offset). */
.nosy-article:not(#nosy-article) .toc-article :is(h2, h3), .nosy-article:not(#nosy-article) .nosy-article__body :is(h2, h3) { scroll-margin-top: 80px; }
.nosy-article:not(#nosy-article) .toc-article p, .nosy-article:not(#nosy-article) .nosy-article__body p { margin-bottom: 1.35em; font-size: 1.0625em; line-height: 1.65; color: var(--ink); }
.nosy-article:not(#nosy-article) .toc-article blockquote, .nosy-article:not(#nosy-article) .nosy-article__body blockquote { color: var(--ink); border-left: 2px solid var(--accent); margin: 1.75em 0; padding: 0.2em 0 0.2em 1.3em; font-size: 1.15em; font-weight: 450; line-height: 1.45; }
.nosy-article:not(#nosy-article) .toc-article code, .nosy-article:not(#nosy-article) .nosy-article__body code { background-color: var(--code-bg); border-radius: 0.3em; padding: 0.12em 0.4em 0.16em; font-family: var(--font-mono); font-size: 0.88em; display: inline-block; }
.nosy-article:not(#nosy-article) .toc-article ul, .nosy-article:not(#nosy-article) .nosy-article__body ul { margin-bottom: 1.35em; padding-left: 1.4em; }
.nosy-article:not(#nosy-article) .toc-article li, .nosy-article:not(#nosy-article) .nosy-article__body li { margin-bottom: 0.8em; font-size: 1.0625em; line-height: 1.6; }
.nosy-article:not(#nosy-article) .toc-article li::marker, .nosy-article:not(#nosy-article) .nosy-article__body li::marker { color: var(--accent); }
.nosy-article:not(#nosy-article) .toc-article img, .nosy-article:not(#nosy-article) .nosy-article__body img { border-radius: 0.85em; margin: 2.25em 0; }

.nosy-article:not(#nosy-article) .toc-sidebar, .nosy-article:not(#nosy-article) .nosy-article__toc {
  grid-column-gap: 1em; grid-row-gap: 1em; flex-flow: column;
  justify-content: flex-start; align-items: flex-start;
  width: 13.75em; flex-shrink: 0; display: flex;
  /* The hosted page's top bar is 5.5em; a client's sticky header is their own
     height, so the renderer or the theme can move it. */
  position: sticky; top: var(--nosy-toc-top, calc(5.5em + env(safe-area-inset-top, 0px)));
}
.nosy-article:not(#nosy-article) .toc-hero__label, .nosy-article:not(#nosy-article) .nosy-article__toc-label { font-family: var(--font-mono); font-size: 0.7em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.2em; }
.nosy-article:not(#nosy-article) .toc-list, .nosy-article:not(#nosy-article) .nosy-article__toc-list { flex-flow: column; justify-content: flex-start; align-items: flex-start; width: 100%; display: flex; }
.nosy-article:not(#nosy-article) .toc-link, .nosy-article:not(#nosy-article) .nosy-article__toc-link {
  color: var(--ink-faint); border-left: 1px solid var(--line);
  padding: 0.45em 0.5em 0.45em 1em; font-size: 0.85em; line-height: 1.35;
  text-decoration: none;
}
.nosy-article:not(#nosy-article) .toc-link:hover, .nosy-article:not(#nosy-article) .nosy-article__toc-link:hover { color: var(--ink-soft); }
.nosy-article:not(#nosy-article) .toc-link[data-toc-depth="3"], .nosy-article:not(#nosy-article) .nosy-article__toc-link[data-toc-depth="3"] { padding-left: 1.75em; font-size: 0.8em; }
.nosy-article:not(#nosy-article) .toc-link[data-toc-status="active"], .nosy-article:not(#nosy-article) .nosy-article__toc-link[data-toc-status="active"] { color: var(--ink); border-left-color: var(--accent); font-weight: 560; }

/* ---------- The article AS THE RENDERER EMITS IT (BlogEmbedRenderer::article) ----------
   The design rules above also carry the renderer's classes in their selector lists:
     .nosy-article__head    = .hero            .nosy-article__title = .hero__title
     .nosy-article__eyebrow = .hero__eyebrow   (the topic; .nosy-article__back is the
                              same slot in markup rendered before the topic was)
     .nosy-article__dek     = .hero__dek       .nosy-article__avatar = .hero__avatar
     .nosy-article__meta    = .hero__meta      .nosy-article__hero  = .hero__image (+ img)
     .nosy-article__layout  = .toc-layout      .nosy-article__body  = .toc-article
     .nosy-article__toc     = .toc-sidebar     (+ __toc-label, __toc-list, __toc-link)
     .nosy-article__end     = .article-end     .nosy-article__author = .author-card (+ parts)
   Markup rendered before the table of contents had .nosy-article__body straight in
   the wrapper, with no layout around it: that body keeps the column where the design
   puts it, with the sidebar + gap (13.75em + 4em) as left padding.
   The meta line is a <p> (margin reset) and keeps the row height the design's
   avatar gives it (1.9em). */
.nosy-article:not(#nosy-article) .nosy-article__back a, .nosy-article:not(#nosy-article) .nosy-article__eyebrow a { color: inherit; text-decoration: none; }
.nosy-article:not(#nosy-article) .nosy-article__meta { margin: 0; min-height: 1.9em; }
/* "Zurück zu allen Artikeln" (2026-11-17): the slot above is its type and colour
   (the accent); here a 44px tap row and a focus ring a host theme cannot remove. */
.nosy-article:not(#nosy-article) .nosy-article__back a { display: inline-flex; align-items: center; min-height: 44px; }
.nosy-article:not(#nosy-article) .nosy-article__back a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.nosy-article:not(#nosy-article) > .nosy-article__body { max-width: 60em; margin: 0 auto; padding: 1em 1.5em 5em calc(1.5em + 13.75em + 4em); }

/* ---------- Phone table of contents: a closed <details> under the author line, shown only where the side column is hidden ---------- */
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile { display: none; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75em; min-height: 44px; margin: 0; padding: 0 1em; border: 0; background: none; cursor: pointer; list-style: none; font-size: 0.875em; font-weight: 560; line-height: 1.3; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-summary::-webkit-details-marker { display: none; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-chevron { flex-shrink: 0; width: 14px; height: 14px; color: var(--ink-soft); }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile[open] .nosy-article__toc-mobile-chevron { transform: rotate(180deg); }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-list { display: flex; flex-direction: column; margin: 0; padding: 0 0 0.4em; background: none; border: 0; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-link { display: flex; align-items: center; float: none; min-height: 44px; margin: 0; padding: 0.35em 1em; border: 0; border-top: 1px solid var(--line); background: none; box-shadow: none; font-size: 0.875em; line-height: 1.35; color: var(--ink-soft); text-decoration: none; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-link[data-toc-depth="3"] { padding-left: 2em; font-size: 0.8125em; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.75em; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile-chevron { transition: transform 0.2s ease; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile { interpolate-size: allow-keywords; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile::details-content { block-size: 0; overflow: hidden; transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete; }
.nosy-article:not(#nosy-article) .nosy-article__toc-mobile[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .nosy-article:not(#nosy-article) .nosy-article__toc-mobile-chevron, .nosy-article:not(#nosy-article) .nosy-article__toc-mobile::details-content { transition: none; }
}

@media screen and (max-width: 767px) {
  .nosy-article:not(#nosy-article) .toc-layout, .nosy-article:not(#nosy-article) .nosy-article__layout { flex-flow: column; padding-left: 1.25em; padding-right: 1.25em; }
  .nosy-article:not(#nosy-article) .toc-sidebar, .nosy-article:not(#nosy-article) .nosy-article__toc { display: none; }
  .nosy-article:not(#nosy-article) .nosy-article__toc-mobile { display: block; margin: 1.5em 0 0; padding: 0; border: 1px solid var(--line); border-radius: 0.75em; background: var(--surface); }
  .nosy-article:not(#nosy-article) > .nosy-article__body { padding: 1em 1.25em 5em; }
  /* Not on the hosted page: a table wider than the phone column scrolls inside
     the article instead of widening the client's whole page. */
  .nosy-article:not(#nosy-article) .toc-article table, .nosy-article:not(#nosy-article) .nosy-article__body table { display: block; max-width: 100%; overflow-x: auto; }
}

/* ---------- Author card ---------- */
.nosy-article:not(#nosy-article) .article-end, .nosy-article:not(#nosy-article) .nosy-article__end { max-width: 40em; margin: 3em auto 0; padding: 1.75em 1.5em 4em; }
.nosy-article:not(#nosy-article) .author-card, .nosy-article:not(#nosy-article) .nosy-article__author { display: flex; align-items: center; gap: 0.9em; padding: 1.25em; border: 1px solid var(--line); border-radius: 0.9em; background: var(--surface); }
.nosy-article:not(#nosy-article) .author-card__avatar, .nosy-article:not(#nosy-article) .nosy-article__author-avatar { width: 2.6em; height: 2.6em; border-radius: 50%; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #7d5fff)); flex-shrink: 0; }
.nosy-article:not(#nosy-article) img.nosy-article__avatar, .nosy-article:not(#nosy-article) img.nosy-article__author-avatar, .nosy-article:not(#nosy-article) img.nosy-article__cta-media { display: block; background: none; object-fit: cover; max-width: none; padding: 0; }
.nosy-article:not(#nosy-article) .author-card__name, .nosy-article:not(#nosy-article) .nosy-article__author-name { font-weight: 600; font-size: 0.9375em; margin: 0 0 0.15em; }
.nosy-article:not(#nosy-article) .author-card__role, .nosy-article:not(#nosy-article) .nosy-article__author-role { font-size: 0.8125em; color: var(--ink-soft); margin: 0; }

/* ---------- Post-bottom CTA (partials/post-cta.blade.php) ---------- */
.nosy-article:not(#nosy-article) .post-cta, .nosy-article:not(#nosy-article) .nosy-article__cta { max-width: 40em; margin: 2.5em auto 0; padding: 0 1.5em; }
.nosy-article:not(#nosy-article) .post-cta__card, .nosy-article:not(#nosy-article) .nosy-article__cta-card { display: flex; align-items: center; gap: 1.1em; padding: 1.4em; border-radius: 1em; background: var(--surface); border: 1px solid var(--line); }
.nosy-article:not(#nosy-article) .post-cta__media, .nosy-article:not(#nosy-article) .nosy-article__cta-media { width: 3.6em; height: 3.6em; border-radius: 0.7em; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7d5fff)); flex-shrink: 0; }
.nosy-article:not(#nosy-article) .post-cta__body, .nosy-article:not(#nosy-article) .nosy-article__cta-body { flex: 1; min-width: 0; }
.nosy-article:not(#nosy-article) .post-cta__label, .nosy-article:not(#nosy-article) .nosy-article__cta-label { font-family: var(--font-mono); font-size: 0.7em; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.3em; }
.nosy-article:not(#nosy-article) .post-cta__title, .nosy-article:not(#nosy-article) .nosy-article__cta-title { font-size: 1.0625em; font-weight: 600; margin: 0 0 0.2em; letter-spacing: -0.01em; }
.nosy-article:not(#nosy-article) .post-cta__sub, .nosy-article:not(#nosy-article) .nosy-article__cta-sub { font-size: 0.875em; color: var(--ink-soft); margin: 0; }
.nosy-article:not(#nosy-article) .post-cta__action, .nosy-article:not(#nosy-article) .nosy-article__cta-action {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.6em 1.05em; border-radius: 2em; background: var(--accent);
  color: var(--accent-ink); font-size: 0.8125em; font-weight: 560;
  text-decoration: none; white-space: nowrap;
}
.nosy-article:not(#nosy-article) .post-cta__action svg, .nosy-article:not(#nosy-article) .nosy-article__cta-action svg { fill: none; stroke: currentColor; }
@media (max-width: 480px) {
  .nosy-article:not(#nosy-article) .post-cta__card, .nosy-article:not(#nosy-article) .nosy-article__cta-card { flex-wrap: wrap; }
  .nosy-article:not(#nosy-article) .post-cta__action, .nosy-article:not(#nosy-article) .nosy-article__cta-action { width: 100%; justify-content: center; }
}

/* ---------- Newsletter block (show.blade.php + tokens) ---------- */
.nosy-article:not(#nosy-article) .wrap, .nosy-article:not(#nosy-article) .nosy-article__newsletter-wrap { max-width: 68em; margin: 0 auto; padding-inline: 1.5em; }
.nosy-article:not(#nosy-article) .newsletter, .nosy-article:not(#nosy-article) .nosy-article__newsletter { padding: 1em 0 0; }
.nosy-article:not(#nosy-article) .nl-card, .nosy-article:not(#nosy-article) .nosy-article__newsletter-card {
  max-width: 40em; margin: 0 auto; padding: 2em 1.6em; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1em;
}
.nosy-article:not(#nosy-article) .nl-card h2, .nosy-article:not(#nosy-article) .nosy-article__newsletter-title { font-size: 1.3em; font-weight: 620; letter-spacing: -0.015em; margin: 0 0 1em; }
.nosy-article:not(#nosy-article) .nl-btn, .nosy-article:not(#nosy-article) .nosy-article__newsletter-button {
  display: inline-flex; align-items: center; padding: 0.7em 1.4em; border-radius: 2em;
  background: var(--accent); color: var(--accent-ink); font-size: 0.875em;
  font-weight: 560; text-decoration: none;
}

/* ---------- Under the article, on the client's page ----------
   The hosted page ends on its footer, 3em below the CTA card or the newsletter box;
   on a client's page nothing of ours follows, so the last one keeps that space. */
.nosy-article:not(#nosy-article) > .nosy-article__cta:last-child, .nosy-article:not(#nosy-article) > .nosy-article__newsletter:last-child { margin-bottom: 3em; }

/* ---------- Related articles: the post card and the 3-up grid
   (tokens .post-card*, partials/section-widget.blade.php .blog-widget*) ---------- */
.nosy-article:not(#nosy-article) .blog-widget { padding: 3.5em 1.5em; max-width: 68em; margin: 0 auto; }
.nosy-article:not(#nosy-article) .blog-widget__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-bottom: 1.8em; }
.nosy-article:not(#nosy-article) .blog-widget__eyebrow { font-family: var(--font-mono); font-size: 0.75em; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.4em; }
.nosy-article:not(#nosy-article) .blog-widget__title { font-size: 1.6em; font-weight: 640; letter-spacing: -0.02em; margin: 0; }
.nosy-article:not(#nosy-article) .blog-widget__all {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.8125em; font-weight: 560; color: var(--accent);
  padding-bottom: 0.3em; text-decoration: none;
}
.nosy-article:not(#nosy-article) .blog-widget__all svg { fill: none; stroke: currentColor; }
.nosy-article:not(#nosy-article) .blog-widget__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6em; }
@media (max-width: 700px) { .nosy-article:not(#nosy-article) .blog-widget__grid { grid-template-columns: 1fr; } }

.nosy-article:not(#nosy-article) .post-card { display: block; color: inherit; text-decoration: none; }
.nosy-article:not(#nosy-article) .post-card__frame {
  aspect-ratio: 4/3;
  border-radius: 0.85em;
  margin-bottom: 0.9em;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface) 0 2px, var(--surface-raised) 2px 14px);
  border: 1px dashed var(--line);
}
.nosy-article:not(#nosy-article) .post-card__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nosy-article:not(#nosy-article) .post-card__eyebrow {
  font-family: var(--font-mono); font-size: 0.6875em; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.4em;
}
.nosy-article:not(#nosy-article) .post-card__title { font-size: 1.0625em; font-weight: 610; letter-spacing: -0.012em; line-height: 1.3; margin: 0 0 0.4em; }
.nosy-article:not(#nosy-article) .post-card__dek {
  font-size: 0.875em; color: var(--ink-soft); line-height: 1.5; margin: 0 0 0.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nosy-article:not(#nosy-article) .post-card__meta { font-size: 0.75em; color: var(--ink-faint); font-family: var(--font-mono); margin: 0; }

/* ---------- Blog list page (BlogEmbedRenderer::index, the client's /blog) ----------
   blog/index.blade.php (ported from the Claude Design index reference, artifact
   QjM93VD6PNyUjyitGZjZRv), 1:1, mapped onto the renderer's own classes:
     .nosy-blog            = .wrap + .index-hero's padding (the section is the page)
     .nosy-blog__title     = .index-hero__title
     .nosy-blog__list      = .post-grid (3 / 2 / 1 columns at 900 / 600 px)
     .nosy-blog__card      = .post-card; its <img> = .post-card__frame + img (no frame element here)
     .nosy-blog__card-title, __excerpt, __meta = .post-card__title, __dek, __meta
     .nosy-blog__pages a   = .load-more button (prev / next links instead of one button)
     .nosy-blog__empty     = .index-empty
   minmax(0, 1fr) instead of 1fr only so one long word cannot widen a column past
   a 320 px phone; identical whenever the text fits. The grid's top gap is padding,
   not margin: a margin would collapse into the title's and lose the hero's 2em. Light tokens only, no dark rules
   here: the list follows the wrapper's tokens like the article does. */
.nosy-article:not(#nosy-article) .nosy-blog { display: block; max-width: 68em; margin: 0 auto; padding: clamp(2.5em, 6vw, 4.5em) 1.5em 0; }
.nosy-article:not(#nosy-article) .nosy-blog__head { display: block; padding: 0 0 2em; }
.nosy-article:not(#nosy-article) .nosy-blog__eyebrow { font-family: var(--font-mono); font-size: 0.75em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.7em; }
.nosy-article:not(#nosy-article) .nosy-blog__title { font-size: clamp(2em, 5vw, 3em); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
.nosy-article:not(#nosy-article) .nosy-blog__intro { font-size: 1.1em; color: var(--ink-soft); max-width: 34em; margin: 0; line-height: 1.5; }
.nosy-article:not(#nosy-article) .nosy-blog__topics { display: flex; gap: 0.6em; overflow-x: auto; padding: 1.5em 0 2em; scrollbar-width: none; }
.nosy-article:not(#nosy-article) .nosy-blog__topics::-webkit-scrollbar { display: none; }
.nosy-article:not(#nosy-article) .nosy-blog__topic {
  flex-shrink: 0; float: none; padding: 0.5em 1.05em; border-radius: 2em; border: 1px solid var(--line); box-shadow: none;
  background: var(--bg); font-size: 0.8125em; font-weight: 500; line-height: normal; color: var(--ink-soft);
  cursor: pointer; font-family: var(--font-display); text-decoration: none; white-space: nowrap;
}
.nosy-article:not(#nosy-article) .nosy-blog__topic:hover { border-color: var(--ink-faint); color: var(--ink); }
.nosy-article:not(#nosy-article) .nosy-blog__topic[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nosy-article:not(#nosy-article) .nosy-blog__featured { display: block; margin: 0 0 3em; }
.nosy-article:not(#nosy-article) .nosy-blog__featured a { display: block; color: inherit; text-decoration: none; background: none; border: 0; box-shadow: none; }
.nosy-article:not(#nosy-article) .nosy-blog__featured img {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; padding: 0; box-shadow: none;
  border-radius: 1.1em; margin: 0 0 1.3em;
  background: repeating-linear-gradient(135deg, var(--surface) 0 2px, var(--surface-raised) 2px 14px);
  border: 1px dashed var(--line);
}
.nosy-article:not(#nosy-article) .nosy-blog__featured-topic { font-family: var(--font-mono); font-size: 0.75em; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5em; }
.nosy-article:not(#nosy-article) .nosy-blog__featured-title { font-size: clamp(1.5em, 3.2vw, 2.1em); font-weight: 640; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; max-width: 24em; overflow-wrap: break-word; }
.nosy-article:not(#nosy-article) .nosy-blog__featured-excerpt { font-size: 1.05em; color: var(--ink-soft); max-width: 36em; line-height: 1.55; margin: 0 0 0.7em; }
.nosy-article:not(#nosy-article) .nosy-blog__featured-meta { font-size: 0.8125em; color: var(--ink-faint); font-family: var(--font-mono); margin: 0; }
.nosy-article:not(#nosy-article) .nosy-blog__card-topic { font-family: var(--font-mono); font-size: 0.6875em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.4em; }
.nosy-article:not(#nosy-article) .nosy-blog__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2em 1.8em; margin: 0; padding: 0 0 3em; list-style: none; }
@media (max-width: 900px) { .nosy-article:not(#nosy-article) .nosy-blog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nosy-article:not(#nosy-article) .nosy-blog__list { grid-template-columns: minmax(0, 1fr); } }
.nosy-article:not(#nosy-article) .nosy-blog__item { display: block; margin: 0; padding: 0; background: none; border: 0; }
.nosy-article:not(#nosy-article) .nosy-blog__card { display: block; margin: 0; padding: 0; background: none; border: 0; }
.nosy-article:not(#nosy-article) .nosy-blog__card a { display: block; color: inherit; text-decoration: none; background: none; border: 0; box-shadow: none; }
.nosy-article:not(#nosy-article) .nosy-blog__card img {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; padding: 0; box-shadow: none;
  border-radius: 0.85em; margin: 0 0 0.9em;
  background: repeating-linear-gradient(135deg, var(--surface) 0 2px, var(--surface-raised) 2px 14px);
  border: 1px dashed var(--line);
}
.nosy-article:not(#nosy-article) .nosy-blog__card-title { font-size: 1.0625em; font-weight: 610; letter-spacing: -0.012em; line-height: 1.3; margin: 0 0 0.4em; overflow-wrap: break-word; }
.nosy-article:not(#nosy-article) .nosy-blog__excerpt {
  font-size: 0.875em; color: var(--ink-soft); line-height: 1.5; margin: 0 0 0.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nosy-article:not(#nosy-article) .nosy-blog__meta { font-size: 0.75em; color: var(--ink-faint); font-family: var(--font-mono); margin: 0; }
.nosy-article:not(#nosy-article) .nosy-blog__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6em; padding-bottom: 4.5em; }
.nosy-article:not(#nosy-article) .nosy-blog__pages a {
  display: inline-block; float: none; font-family: var(--font-display); font-size: 0.875em; font-weight: 560; line-height: normal; box-shadow: none;
  padding: 0.75em 1.6em; border-radius: 2em; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); text-decoration: none;
}
.nosy-article:not(#nosy-article) .nosy-blog__pages a:hover { border-color: var(--ink-faint); }
.nosy-article:not(#nosy-article) .nosy-blog__empty { color: var(--ink-faint); font-size: 0.9375em; padding: 3em 0 5em; }
