/* coderbox-blog@0.1.0 (proposal, awaiting the owner) · blog.css · the blog's components, loaded AFTER the site's styles.css.
   Tokens only: every color, size, space, stroke, radius and measure reads tokens/tokens.css or a ground variable set in base.css.
   No new color, font or size. New classes (the concept's element ids): cbx-glass (E4), cbx-videofig (E4), cbx-row rows and cbx-feature (E3),
   cbx-copyblock (E5; the concept's draft name cbx-prompt is taken by the site's base.css), cbx-skill (E6), cbx-turn (E7), cbx-post-end (E8), cbx-crumb, cbx-tag. The opener (E2) is the site's .cbx-opener on the index
   and a counter on the post's headings (below). Classes with the prefix ref- belong to this static reference only: do not port them. */

/* (the header gap rule lives in components/components.css in 0.4.13: it applies to every page) */

/* ===================================================================== navigation / Crumb (post: "Blog > Video 03") */
.cbx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-8); color: var(--ink-2); }
.cbx-crumb a { display: inline-flex; align-items: center; min-height: var(--touch-target-min); color: var(--link); text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: var(--space-4); }
.cbx-crumb a:hover { text-decoration-thickness: var(--stroke-frame); }
.cbx-crumb a:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }
.cbx-crumb li + li::before { content: "\203A" / ""; margin-right: var(--space-8); }
.cbx-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-8); }
.cbx-crumb [aria-current] { color: var(--ink); }

/* ===================================================================== graphic / Glass (E4: the one deliberate exception of a view, S-24)
   The site's rounded CRT glass reused as a video frame: a raised monitor front (the bezel's body) around a screen that holds a 9:16 picture. Every
   other corner on the page stays square. One glass per view: on the index only the featured poster has it, on a post only the video. */
.cbx-glass {
  display: block; padding: var(--space-8); color: inherit; text-decoration: none;
  border-radius: var(--crt-radius);
  background: var(--crt-bezel-body);
  border-top: var(--stroke-hairline) solid var(--crt-lip);
}
.cbx-glass__screen {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: calc(var(--crt-radius) - var(--space-8)); overflow: clip;
  background: var(--crt-glass);
  box-shadow: inset 0 var(--space-4) var(--space-8) var(--dark-neutral-darkest);
}
.cbx-glass__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cbx-ph { display: grid; place-content: center; gap: var(--space-8); height: 100%; padding: var(--space-16); text-align: center; color: var(--ink-2); }
.cbx-ph .cbx-label { color: var(--ink); }

/* ===================================================================== content / Video figure (E4: the figure under the glass)
   No embed (owner, 2026-11-14): the glass frames the post's poster; the figure holds it, its one-sentence description and the two plain links
   "Ver en Instagram" and "Ver en Facebook". No third-party script loads on the post. */
.cbx-videofig { display: grid; gap: var(--space-16); align-content: start; }
.cbx-videofig__caption { color: var(--ink-2); max-width: var(--measure-body); }
.cbx-videofig__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-24); }
.cbx-videofig__links a, .cbx-pager a, .cbx-turn__share {
  display: inline-flex; align-items: center; min-height: var(--touch-target-min);
  color: var(--link); text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: var(--space-4);
}
.cbx-videofig__links a:hover, .cbx-pager a:hover, .cbx-turn__share:hover { text-decoration-thickness: var(--stroke-frame); }
.cbx-videofig__links a:focus-visible, .cbx-pager a:focus-visible, .cbx-turn__share:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }

/* ===================================================================== layout / Post (the head: video and title; then the body)
   360 px: one column in reading order (crumb, video, links, title, date line, summary, body). 1280 px: the poster's glass at the left (columns 1 to 4),
   the title, the date line and the summary in the right column (columns 6 to 11), the body in columns 1 to 8 below. */
.cbx-post { counter-reset: cbx-sec; padding-bottom: var(--section-padding); }
.cbx-post__crumb { padding-top: var(--space-8); }
.cbx-post__head { margin-top: var(--space-16); }
.cbx-post__intro > * + * { margin-top: var(--space-16); }
.cbx-post__title { font-size: var(--type-h3-size); line-height: var(--type-h3-line-height); }
.cbx-post__meta { color: var(--ink-2); }
.cbx-post__summary { max-width: var(--measure-body); }
.cbx-post__main { margin-top: var(--space-48); row-gap: var(--space-32); }
@media (min-width: 768px) {
  .cbx-post__video { max-width: calc(var(--space-96) * 4); }
}
@media (min-width: 1280px) {
  .cbx-post__video { grid-column: 1 / 5; max-width: none; }
  .cbx-post__intro { grid-column: 6 / 12; padding-top: var(--space-8); }
  .cbx-post__main > * { grid-column: 1 / 9; }
  .cbx-post__main { margin-top: var(--space-64); }
}

/* The post's section headings are the opener (E2) drawn by CSS from the Markdown's own h2, so the Markdown stays plain: the index frame holds a
   counter (01, 02), the label is the heading's text, the hairline runs to the column's end. Same geometry as .cbx-opener. */
.cbx-post__body > * + * { margin-top: var(--space-16); }
.cbx-post__body > h2 {
  counter-increment: cbx-sec; display: grid; grid-template-columns: var(--size-index-frame) minmax(0, 1fr); align-items: center; gap: var(--space-16); margin-bottom: var(--space-8); scroll-margin-top: var(--cbx-header-h-compact);
  font-weight: var(--type-weight-caption); font-stretch: var(--type-width-caption); letter-spacing: var(--type-tracking-caption);
  text-transform: uppercase; font-size: var(--type-small-size); line-height: var(--type-small-line-height);
}
.cbx-post__body > h2:not(:first-child) { margin-top: var(--space-64); }
.cbx-post__body > h2::before {
  content: counter(cbx-sec, decimal-leading-zero) / ""; flex: none; display: inline-flex; justify-self: start; align-items: center; justify-content: center;
  width: var(--size-index-frame); height: var(--size-index-frame); color: var(--ink);
  background:
    linear-gradient(var(--frame-ink), var(--frame-ink)) left top / 100% var(--stroke-frame) no-repeat,
    linear-gradient(var(--frame-ink), var(--frame-ink)) right top / var(--stroke-frame) 100% no-repeat,
    linear-gradient(var(--frame-ink), var(--frame-ink)) right bottom / 100% var(--stroke-frame) no-repeat,
    linear-gradient(var(--frame-ink), var(--frame-ink)) left bottom / var(--stroke-frame) 100% no-repeat;
}
/* as the site's opener: below 768 px the hairline takes its own row, so a long label wraps beside the frame and the line stays whole */
.cbx-post__body > h2::after { content: ""; grid-column: 1 / -1; height: var(--stroke-hairline); background: var(--hairline); }
@media (min-width: 768px) {
  .cbx-post__body > h2 { display: flex; }
  .cbx-post__body > h2::after { flex: 1 1 var(--space-24); }
}
.cbx-post__body > p, .cbx-post__body > ul, .cbx-post__body > ol { max-width: var(--measure-body); }
.cbx-post__body > ul, .cbx-post__body > ol { padding-left: var(--space-24); }
.cbx-post__body li + li { margin-top: var(--space-8); }
.cbx-post__body a { color: var(--link); text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: var(--space-4); }
@media (forced-colors: active) { .cbx-post__body > h2::before { background: none; border: var(--stroke-frame) solid CanvasText; } }

/* ===================================================================== content / Prompt (E5: the surface the reader copies from)
   Plain Markdown gives a bare <pre>: it is already a complete surface (a raised dark step, one top edge, the site's only font, line breaks kept).
   blog-copy.js wraps it in .cbx-copyblock and adds the "Copiar" button in a bar above the text, at the right, so a long prompt never needs a scroll to the end
   to be copied. (The class is not .cbx-prompt: the site's base.css already uses that name for the hero's prompt glyph.)
   NOT monospace (owner, 2026-11-14: "lo mas legible posible"): the prompt is set in the site's body face, at the body step of the type scale
   (--type-body-size, --type-body-line-height), in the body ink, on the raised step, in a column no wider than the body measure (52 characters of
   text, plus the block's padding). The browser's default <pre> face is monospace, so the face is set explicitly (font-family: inherit). */
.cbx-post__body pre, .cbx-copyblock pre {
  margin: 0; padding: var(--space-24) var(--space-16); max-width: calc(var(--measure-body) + var(--space-32));
  background: var(--depth-raised); border-top: var(--stroke-hairline) solid var(--depth-edge); color: var(--ink);
  font-family: inherit; font-size: var(--type-body-size); line-height: var(--type-body-line-height); font-weight: inherit; letter-spacing: normal;
  white-space: pre-wrap; overflow-wrap: break-word;
}
.cbx-post__body pre code { font: inherit; letter-spacing: inherit; }
.cbx-post__body pre:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }
.cbx-copyblock { max-width: calc(var(--measure-body) + var(--space-32)); background: var(--depth-raised); border-top: var(--stroke-hairline) solid var(--depth-edge); }
.cbx-copyblock pre { border-top: 0; padding-top: var(--space-16); background: transparent; max-width: none; }
.cbx-copyblock__bar { display: flex; justify-content: flex-end; padding: var(--space-8) var(--space-8) 0; }

/* ===================================================================== content / Skill (E6: the keepsake, with its license and date beside the file) */
.cbx-skill { display: grid; gap: var(--space-16); padding: var(--space-24) var(--space-16); max-width: calc(var(--measure-body) * 1.3); }
.cbx-skill__name { font-size: var(--type-h4-size); line-height: var(--type-h4-line-height); font-weight: var(--type-weight-body-emphasis); }
.cbx-skill__meta { color: var(--ink-2); }
.cbx-skill__license { color: var(--ink-2); max-width: var(--measure-body); border-top: var(--stroke-hairline) solid var(--hairline); padding-top: var(--space-16); }
@media (min-width: 768px) { .cbx-skill { padding: var(--space-32); } }

/* ===================================================================== content / Turn (E7: "Tu turno_", the post's closing on the field)
   The site's ClosingCall pattern: the field ground, the headline ending in the still cursor, the one link. No contact action (owner, 2026-11-14). */
.cbx-turn__title { max-width: var(--measure-body); }
.cbx-turn .cbx-wrap > * + * { margin-top: var(--space-24); }
.cbx-turn__line { max-width: var(--measure-lead); }
.cbx-turn__share { font-weight: var(--type-weight-ui-button); }
.cbx-turn__consent { max-width: var(--measure-body); }

/* ===================================================================== content / PostEnd (E8: the date-stamp line, then previous and next) */
.cbx-post-end { padding-block: var(--space-48) var(--space-64); }
.cbx-post-end__stamp { color: var(--ink-2); max-width: var(--measure-body); }
.cbx-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-32); margin-top: var(--space-24); border-top: var(--stroke-hairline) solid var(--hairline); padding-top: var(--space-16); }
.cbx-pager__next { margin-left: auto; }

/* ===================================================================== content / Tag (the markers "Prompts" and "Skill") */
.cbx-tags { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.cbx-tag { display: inline-flex; align-items: center; padding: var(--space-4) var(--space-8); color: var(--ink); }

/* ===================================================================== layout / Blog index */
.cbx-section.cbx-blog-head { padding-bottom: var(--space-32); }
.cbx-blog-title { max-width: var(--measure-body); font-size: var(--type-h2-size); line-height: var(--type-h2-line-height); }
.cbx-blog-lead { margin-top: var(--space-16); }
/* The latest post (E3, featured): the glass poster and the post's number, date, title, summary, markers and the view's one filled action */
.cbx-feature { align-items: start; row-gap: var(--space-24); }
.cbx-feature__poster { max-width: calc(var(--space-96) * 3); }
.cbx-feature__text > * + * { margin-top: var(--space-16); }
.cbx-feature__meta { color: var(--ink-2); }
.cbx-feature__title { font-size: var(--type-h3-size); line-height: var(--type-h3-line-height); }
.cbx-feature__summary { max-width: var(--measure-body); }
@media (min-width: 768px) {
  .cbx-feature__poster { grid-column: 1 / 6; max-width: none; }
  .cbx-feature__text { grid-column: 7 / 13; }
}
@media (min-width: 1280px) {
  .cbx-feature__poster { grid-column: 1 / 5; }
  .cbx-feature__text { grid-column: 6 / 12; padding-top: var(--space-8); }
}
/* The earlier posts (E3): parallel rows, newest first, each a square-cornered thumbnail, number and date, title, markers and a plain link */
.cbx-rows { display: grid; }
.cbx-row {
  display: grid; grid-template-columns: var(--space-64) minmax(0, 1fr); gap: var(--space-8) var(--space-16); align-items: start;
  padding-block: var(--space-24); border-top: var(--stroke-hairline) solid var(--hairline);
}
.cbx-row:last-child { border-bottom: var(--stroke-hairline) solid var(--hairline); }
.cbx-row__thumb { grid-row: 1 / span 3; aspect-ratio: 9 / 16; width: var(--space-64); overflow: hidden; }
.cbx-row__thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cbx-row__thumb .cbx-ph { padding: var(--space-4); }
.cbx-row__meta { color: var(--ink-2); grid-column: 2; }
.cbx-row__title { grid-column: 2; font-size: var(--type-h4-size); line-height: var(--type-h4-line-height); }
.cbx-row__title a { color: var(--ink); text-decoration: none; }
.cbx-row__title a:hover { text-decoration: underline; text-decoration-thickness: var(--stroke-frame); text-underline-offset: var(--space-4); }
.cbx-row__title a:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }
.cbx-row .cbx-tags { grid-column: 2; }
.cbx-row__go { grid-column: 2; display: inline-flex; align-items: center; min-height: var(--touch-target-min); color: var(--link); text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: var(--space-4); }
.cbx-row__go:hover { text-decoration-thickness: var(--stroke-frame); }
.cbx-row__go:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }
@media (min-width: 768px) {
  .cbx-row { grid-template-columns: var(--space-96) minmax(0, 1fr) auto; column-gap: var(--space-24); }
  .cbx-row__thumb { width: var(--space-96); grid-row: 1 / span 3; }
  .cbx-row .cbx-tags { grid-column: 2; }
  .cbx-row__go { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
}
/* Closing of the index: the site's ClosingCall on the field; two outlined links (the filled action of the view is "Leer el post") */
.cbx-closing .cbx-closing__who { margin-top: var(--space-16); }
.cbx-closing .cbx-closing__foot { margin-top: var(--space-32); }

/* ===================================================================== motion (the cursor of the titles blinks as on the home; never under reduced motion)
   The site's own blink keyframes (motion.css), the same 1 Hz cycle; the class is added to <html> by the site's script on blog pages. Not set in the static reference. */
@media (prefers-reduced-motion: no-preference) {
  html.cbx-blog-live .cbx-blog-title > .cbx-cursor::after,
  html.cbx-blog-live .cbx-post__title > .cbx-cursor::after,
  html.cbx-blog-live .cbx-turn__title > .cbx-cursor::after {
    animation: cbx-blink calc(2 * var(--motion-duration-blink)) var(--motion-ease-cursor) infinite;
  }
}

/* ===================================================================== 0.4.13 additions (Product Designer, 2026-11-16; tokens only)
   What the approved reference did not draw and the posts need (spec 7.2: "blog.css has no rule for h3, blockquote or images inside .cbx-post__body"),
   the "enlace pendiente" marker, and the long-line rules a post of 3,000 words needs. Nothing here adds a color, a size or a font. */

/* sub-steps of the post: "### Paso 1 ..." and the parts of the worked example, set as the site's h4 step (readable before heavy) */
.cbx-post__body > h3 {
  max-width: var(--measure-body); text-wrap: balance; scroll-margin-top: var(--cbx-header-h-compact);
  font-size: var(--type-h4-size); line-height: var(--type-h4-line-height); font-weight: var(--type-weight-body-emphasis);
}
.cbx-post__body > h3:not(:first-child) { margin-top: var(--space-48); }
.cbx-post__body > h2 + h3 { margin-top: var(--space-24); }
.cbx-post__body > h3 + * { margin-top: var(--space-16); }
.cbx-post__body > h2 { text-wrap: balance; }
.cbx-post__body p, .cbx-post__body li { text-wrap: pretty; }
.cbx-post__body strong { font-weight: var(--type-weight-body-emphasis); }
/* the faces the site loads have no italic: a term in *em* takes the emphasis weight instead of a synthesized slant */
.cbx-post__body em { font-style: normal; font-weight: var(--type-weight-body-emphasis); }
/* a web address in a reference is longer than a 360 px column: it breaks instead of running out of the page */
.cbx-post__body p, .cbx-post__body li, .cbx-post__body a, .cbx-post-end__stamp, .cbx-videofig__caption { overflow-wrap: anywhere; }

/* the tool's reply (spec 7.2): a raised step like the prompt block, no copy bar, the same width; a left rule tells it from a prompt */
.cbx-post__body blockquote {
  padding: var(--space-24) var(--space-16); max-width: calc(var(--measure-body) + var(--space-32));
  background: var(--depth-raised); border-top: var(--stroke-hairline) solid var(--depth-edge); border-left: var(--stroke-frame) solid var(--frame-ink);
  color: var(--ink);
}
.cbx-post__body blockquote > * + * { margin-top: var(--space-16); }
.cbx-post__body blockquote ul, .cbx-post__body blockquote ol { padding-left: var(--space-24); }
.cbx-post__body blockquote li + li { margin-top: var(--space-8); }

/* the post's own images: square corners, no wider than a third of the prompt column's top width, their own proportions */
.cbx-post__body img { width: 100%; max-width: calc(var(--space-96) * 3); height: auto; }

/* line breaks: no last line of a single word where the browser can avoid it (checked on the renders, sweep in site-0.4.13-checks) */
.cbx-post__meta, .cbx-row__title { text-wrap: balance; }
.cbx-post-end__stamp, .cbx-videofig__caption, .cbx-turn__consent, .cbx-turn__line, .cbx-post__summary, .cbx-feature__summary { text-wrap: pretty; }

/* Reel links (0.4.14: rendered only when the Reel's address exists; no "pendiente" marker) */
.cbx-link-pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-8); }
.cbx-turn__sharerow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-8); }

/* ===================================================================== 0.4.14 (Product Designer, 2026-11-16; finding F3)
   Every blog heading balances its lines. A heading of two lines whose last word stands alone is also prevented in the markup
   (the build joins a heading's last two words with a no-break space), because balancing alone cannot split "Prompts o / instrucciones" any better. */
.cbx-blog-title, .cbx-feature__title, .cbx-post__title, .cbx-turn__title, .cbx-closing__title, .cbx-skill__name,
.cbx-post__body > h2, .cbx-post__body > h3, .cbx-blog-lead { text-wrap: balance; }

/* ===================================================================== 0.4.15 (Product Designer, 2026-11-16; tokens only): the sample entries
   The visible sample line at the top of a sample's page (the post's own first line, in a raised step with the left rule the tool's replies use),
   the "Muestra" marker inside a card's number-and-date line, and the code-built covers (inline SVG: the face the page loads draws their labels). */
.cbx-sample-note {
  margin-top: var(--space-16); padding: var(--space-16); max-width: calc(var(--measure-body) + var(--space-32));
  background: var(--depth-raised); border-top: var(--stroke-hairline) solid var(--depth-edge); border-left: var(--stroke-frame) solid var(--frame-ink);
  color: var(--ink); text-wrap: pretty;
}
.cbx-sample-note strong { font-weight: var(--type-weight-body-emphasis); }
.cbx-row__meta .cbx-sample-tag { vertical-align: middle; margin-left: var(--space-4); }
.cbx-cover { display: block; width: 100%; height: 100%; }
.cbx-cover text { font-family: inherit; font-weight: var(--type-weight-body-emphasis); }
.cbx-glass__screen > .cbx-cover, .cbx-row__thumb > .cbx-cover { width: 100%; height: 100%; }

/* ===================================================================== 0.4.17 (Product Designer, 2026-11-16; tokens only): the rules of the last two media queries below replace the 0.4.16 ones.
   Owner on 0.4.16, «¿Así ya aprovecha bien el ancho?»: "No". From 1280 px: the reading column (about 73 characters) and the side list are the two columns of one grid, so no band is left between them;
   the post head and the index head reach the right edge; prompt blocks, replies and captures fill the reading column; portrait images sit in pairs or rows (classes set by the build); the card grid never leaves an empty cell.
   Below 1280 px no rule changes (checked by pixel diff against 0.4.16).
   ===================================================================== 0.4.16 (Product Designer, 2026-11-16; tokens only)
   M1/M4: the markers ("Muestra", and "No confirmada" on part 6) sit on their own line above a card's number-and-date line, so a marker never wraps alone nor leaves a separator hanging.
   Owner: "me preocupa que no aprovechmos todo el ancho de pantalla para el blog". The container already matches the home (.cbx-wrap: the 12-column grid,
   1200 px of content at 1280 px, 1408 px at 1536 px); what the blog left empty was the right of its columns. From 1280 px only (360 and 768 px are untouched):
   - index: the earlier posts are a grid of cards (2 columns, 3 from 1536 px) instead of one list; the featured post's text takes columns 6 to 12;
   - post: the head's text takes columns 6 to 12, the body keeps a reading measure of about 68 characters (the body measure, 52ch, times 1.3, as the skill block already does)
     inside columns 1 to 9, and the right columns 10 to 12 hold a sticky list of the post's own headings ("En esta entrada"). Prompt blocks and the tool's replies are as wide as the reading column plus padding. */
.cbx-figs { display: contents; } /* 0.4.17: a row of portrait images; below 1280 px it is not a box, so each image keeps its own paragraph spacing */
.cbx-figs > p { margin-top: var(--space-16); }
/* a PNG screenshot of an interface: its own pixel width, never enlarged (the Narrator's layout note, post 2). Wider than the column: it scrolls sideways below 1280 px (focusable) and is reduced to the column from 1280 px. */
/* 0.4.19 (owner: "Las imagenes no deberían tener scroll en móvil"): the screenshot is reduced to the column at every width, never enlarged (width: auto keeps its own width as the ceiling), and no longer scrolls or takes a tab stop. */
.cbx-post__body > .cbx-fig--shot { max-width: none; overflow-x: visible; }
.cbx-post__body .cbx-fig--shot img { display: block; width: auto; max-width: 100%; height: auto; outline: var(--stroke-hairline) solid var(--hairline); }
/* 0.4.19 (coordinator): the capture opens its full-size file in a new tab; below 1280 px a hint says so under it (the hint is hidden from 1280 px, where the captures are legible). */
.cbx-shot-link { display: block; width: fit-content; max-width: 100%; color: inherit; }
.cbx-shot-link:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }
.cbx-shot-hint { display: block; margin-top: var(--space-8); color: var(--ink-2); }
@media (min-width: 1280px) { .cbx-shot-hint { display: none; } }
.cbx-row__meta .cbx-sample-tag { margin-left: 0; }
.cbx-sample-tags { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-bottom: var(--space-4); }
.cbx-post__rail { display: none; }
.cbx-rail__title { color: var(--ink-2); padding-bottom: var(--space-8); border-bottom: var(--stroke-hairline) solid var(--hairline); }
.cbx-rail__list li + li { margin-top: var(--space-4); }
.cbx-rail__list a {
  display: inline-flex; align-items: center; min-height: var(--touch-target-min); color: var(--link);
  text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: var(--space-4);
}
.cbx-rail__list a:hover { text-decoration-thickness: var(--stroke-frame); }
.cbx-rail__list a:focus-visible { outline: var(--stroke-focus-ring) solid var(--ring); outline-offset: var(--stroke-focus-offset); }
@media (min-width: 1280px) {
  .cbx-post, .cbx-feature { --measure-read: calc(var(--measure-body) * 1.4); } /* about 73 characters: inside the 65 to 75 the owner's rule allows */
  /* index head: the title at the left, the lead line at the right, so the head fills the width (0.4.17) */
  .cbx-blog-head .cbx-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); align-items: end; }
  .cbx-blog-head .cbx-wrap > * { grid-column: 1 / -1; min-width: 0; }
  .cbx-blog-head .cbx-blog-title { grid-column: 1 / 8; max-width: none; }
  .cbx-blog-head .cbx-blog-lead { grid-column: 8 / 13; margin-top: 0; max-width: none; }
  /* featured post: the text sits at the middle of the poster's height and reaches the right edge */
  .cbx-feature { align-items: center; }
  .cbx-feature__text { grid-column: 6 / 13; padding-top: 0; }
  .cbx-feature__summary { max-width: var(--measure-read); }
  /* earlier posts: a grid of cards on six tracks (two cards of three tracks here); a last card that would leave an empty cell takes the row */
  .cbx-rows { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--grid-gutter); }
  .cbx-row { grid-column: span 3; grid-template-columns: var(--space-96) minmax(0, 1fr); column-gap: var(--space-24); }
  .cbx-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cbx-row:last-child { border-bottom: 0; }
  .cbx-row__go { grid-column: 2; grid-row: auto; align-self: start; justify-self: start; }
  /* post head: the poster at the left, the text to the right edge, centered on the poster's height */
  .cbx-post__intro { grid-column: 6 / 13; align-self: center; padding-top: 0; }
  .cbx-post__summary { max-width: none; }
  /* post body: the reading column and the side list are two columns of one grid, 48 px apart, so the list sits right beside the text */
  .cbx-post__main { align-items: start; grid-template-columns: calc(var(--measure-read) + var(--space-32)) minmax(0, 1fr); column-gap: var(--space-48); }
  .cbx-post__main > .cbx-post__body, .cbx-post__main > .cbx-skill { grid-column: 1; }
  .cbx-post__main > .cbx-skill { max-width: none; }
  .cbx-post__main > .cbx-post__rail {
    display: block; grid-column: 2; grid-row: 1; align-self: start;
    position: sticky; top: calc(var(--cbx-header-h-compact) + var(--space-24));
    max-height: calc(100vh - var(--cbx-header-h-compact) - var(--space-48)); overflow-y: auto;
  }
  /* the body is six tracks: text, prompt blocks, replies and captures take all of them; portrait images share a row */
  .cbx-post__body { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--space-16); }
  .cbx-post__body > * { grid-column: 1 / -1; min-width: 0; }
  .cbx-post__body > h2 { margin-bottom: 0; }
  .cbx-post__body > p, .cbx-post__body > ul, .cbx-post__body > ol, .cbx-post__body > h2, .cbx-post__body > h3 { max-width: var(--measure-read); }
  .cbx-post__body pre, .cbx-copyblock, .cbx-post__body blockquote { max-width: calc(var(--measure-read) + var(--space-32)); }
  .cbx-post__body > .cbx-fig { max-width: none; }
  .cbx-fig img { max-width: none; }
  .cbx-post__body > .cbx-fig--shot { overflow-x: visible; }
  .cbx-post__body .cbx-fig--shot img { max-width: 100%; }
  .cbx-figs { display: flex; align-items: flex-start; gap: var(--space-16); }
  .cbx-figs > .cbx-fig { flex: var(--ar) 1 0; min-width: 0; margin-top: 0; }
  .cbx-fig--portrait { grid-column: span 2; } /* a lone tall image (photo or phone screen) takes a third of the column; a wide capture takes all of it */
  .cbx-fig-after { grid-column: 3 / -1; align-self: start; }
}
@media (min-width: 1536px) {
  .cbx-row { grid-column: span 2; }
  .cbx-row:last-child:nth-child(odd) { grid-column: span 2; }
  .cbx-row:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .cbx-row:last-child:nth-child(3n+2), .cbx-row:nth-last-child(2):nth-child(3n+1) { grid-column: span 3; }
  .cbx-rail__list { columns: 2; column-gap: var(--space-32); }
  .cbx-rail__list li { break-inside: avoid; }
}

/* ===================================================================== post body on white (owner, 2026-11-18)
   "la lectura es mas facil con fondo blanco": the head (title and video) and the "En esta entrada" list stay on the dark ground; the article body
   is a white sheet (.cbx-ground-white, the site's document ground, which sets every ink on it). The raised step of prompt blocks and replies
   turns light on the sheet, so their dark ink keeps its contrast. Below 768 px the sheet reaches the screen edges, so the text keeps its width. */
.cbx-post__body.cbx-ground-white {
  --depth-raised: var(--light-neutral-lightest); --depth-edge: var(--light-neutral-light);
  padding: var(--space-32) var(--grid-margin); margin-inline: calc(-1 * var(--grid-margin));
}
@media (min-width: 768px) {
  .cbx-post__body.cbx-ground-white { padding: var(--space-48); margin-inline: 0; }
}
@media (min-width: 1280px) {
  /* the reading column grows by the sheet's padding, so the text keeps its 73-character measure */
  .cbx-post__main { grid-template-columns: calc(var(--measure-read) + var(--space-32) + 2 * var(--space-48)) minmax(0, 1fr); }
}
