/* The Vault by EAIBS: black and white, one typeface (Die Grotesk, variable), 12-column grid, 6px image radius.
   Ported from the local store's style.css. Headlines weight 600, no negative tracking; optical size per role. */
@font-face { font-family: "Die Grotesk"; src: url("../fonts/DieGroteskVF-Roman.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Die Grotesk"; src: url("../fonts/DieGroteskVF-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff; --surface: #ffffff; --panel: #f4f4f4; --fg: #282828; --head: #1d1d1d; --muted: #5c5c5c; --line: #dddddd;
  --accent: #000000; --action: #000000; --action-dark: #1d1d1d; --on-action: #ffffff; --ink: #000000; --on-ink: #ffffff;
  --border: #c4c4c4; --soft: #505050; --body: #232323; --tint: #f3f0e8; --tint-soft: #f7f6f2;
  --hover-ink: rgb(0 0 0 / .05);
  --cover-0: #f3f1ec; --cover-1: #ebebeb; --cover-2: #ece4d5; --cover-4: #dcd8cf; --cover-meta-light: #555; --cover-meta-4: #4a4a4a;
  --font: "Die Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--font);
  --cols: 12; --gutter: 32px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
}
[data-theme=dark] {
  color-scheme: dark;
  --bg: #121212; --surface: #181818; --panel: #242424; --fg: #d4d4d4; --head: #ececec; --muted: #9a9a9a; --line: #333333;
  --accent: #ececec; --action: #ececec; --action-dark: #d4d4d4; --on-action: #121212; --ink: #ececec; --on-ink: #121212;
  --border: #4a4a4a; --soft: #b4b4b4; --body: #d6d6d6; --tint: #24221d; --tint-soft: #1f1e1b;
  --hover-ink: rgb(255 255 255 / .06);
  --cover-0: #2a2926; --cover-1: #262626; --cover-2: #2e2a23; --cover-4: #2b2a27; --cover-meta-light: #a8a8a8; --cover-meta-4: #a8a8a8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button, .button { display: inline-block; min-height: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 9px 16px; font-size: 14px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { border-color: var(--ink); }
.button.primary { background: var(--action); color: var(--on-action); border-color: var(--action); font-weight: 600; }
button.quiet { background: transparent; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 9; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 3px; }
.skip:focus { left: 16px; }
main { padding: 32px 32px 72px; max-width: 1440px; margin: 0 auto; }
main:focus { outline: none; }
.kicker { display: block; margin-bottom: 8px; font: 600 11px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---- Masthead: logo large and centred, tools right, sections on a row below; .compact on scroll ---- */
@property --brand-h { syntax: "<length>"; inherits: true; initial-value: 56px; }
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: ". brand tools" "menu menu menu";
       align-items: center; gap: 12px 32px; padding: 22px max(32px, calc((100% - 1440px) / 2 + 32px)) 0; border-bottom: 1px solid var(--line); background: var(--surface);
       --brand-h: 56px; transition: --brand-h .35s cubic-bezier(.16, 1, .3, 1), padding .35s cubic-bezier(.16, 1, .3, 1), row-gap .35s cubic-bezier(.16, 1, .3, 1); }
.top.compact { --brand-h: 32px; padding-top: 8px; row-gap: 2px; }
.brand { grid-area: brand; justify-self: center; display: flex; align-items: center; gap: 14px; color: var(--head); text-decoration: none; white-space: nowrap; }
.brand.eaibs { gap: calc(var(--brand-h) * .2); font-weight: 500; font-size: calc(var(--brand-h) * .42); line-height: 1.05; }
.brand-mark { display: block; height: var(--brand-h); width: auto; aspect-ratio: 276 / 181; fill: currentColor; }
.brand-name { display: flex; align-items: center; min-height: var(--brand-h); padding-left: calc(var(--brand-h) * .2); border-left: 1px solid currentColor; }
.menu { grid-area: menu; justify-self: center; display: flex; justify-content: safe center; align-items: center; gap: 4px; white-space: nowrap; }
.menu a { display: block; padding: 12px 10px; font-size: 14px; font-weight: 500; color: var(--fg); text-decoration: none; transition: padding .35s cubic-bezier(.16, 1, .3, 1); }
.top.compact .menu a { padding-block: 8px; }
.menu a:hover { color: var(--accent); }
.menu a[aria-current] { color: var(--head); box-shadow: inset 0 -2px 0 var(--accent); }
.top .menu-toggle { display: none; }
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle .menu-close-icon, .menu-toggle[aria-expanded=true] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded=true] .menu-close-icon { display: block; }
/* Reading pages: the sections fold behind a menu button. */
html:has(.reader) .top { grid-template-areas: "toggle brand tools"; padding-bottom: 14px; }
html:has(.reader) .top.compact { padding-bottom: 8px; }
html:has(.reader) .menu-toggle { display: inline-grid; grid-area: toggle; justify-self: start; }
html:has(.reader) .menu { display: none; }
html:has(.reader) .top.menu-open { grid-template-areas: "toggle brand tools" "menu menu menu"; padding-bottom: 0; }
html:has(.reader) .top.menu-open .menu { display: flex; }
.menu button.menu-more, .menu button.menu-link { min-height: 0; padding: 12px 10px; border: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 500; color: var(--fg); cursor: pointer; transition: padding .35s cubic-bezier(.16, 1, .3, 1); }
.top.compact .menu :is(button.menu-more, button.menu-link) { padding-block: 8px; }
.menu button.menu-more::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.menu :is(button.menu-more, button.menu-link):hover, .menu [aria-expanded=true] { color: var(--accent); }
/* Mega menu: a full-width panel under the bar, small label over large links on the left, the newest titles on the right. */
.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 36px max(32px, calc((100% - 1440px) / 2 + 32px)) 44px; background: var(--surface); border-bottom: 1px solid var(--line); animation: mega-in .28s cubic-bezier(.16, 1, .3, 1) both; }
.mega-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 64px; align-items: start; }
/* Intro column: section name, one line, topics, "Ver todos". Cards column: image, small label, title. */
.mega-intro { display: flex; flex-direction: column; gap: 8px; }
.mega-title { margin: 0; font: 600 var(--t-xl)/1.2 var(--font); color: var(--head); }
.mega-desc { margin: 0 0 16px; font-size: var(--t-sm); line-height: 1.45; color: var(--muted); max-width: 28ch; }
.mega-topics { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mega-topics a { font-size: var(--t-md); color: var(--fg); text-decoration: none; }
.mega-topics a:hover, .mega-topics a:focus-visible { color: var(--head); text-decoration: underline; text-underline-offset: 3px; }
.mega-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mega-cards.books { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.mega-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.mega-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--panel); }
.books .mega-pic { aspect-ratio: 2 / 3; }
.books .mega-label { display: none; }
.mega-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.mega-card:hover .mega-pic img { transform: scale(1.03); }
.mega-label { margin-top: 4px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-feature-settings: "kern" 1, "case" 1; }
.mega-card-title { font: 600 var(--t-md)/1.3 var(--font); color: var(--head); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.mega-card:hover .mega-card-title { text-decoration: underline; text-underline-offset: 3px; }
.mega-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 var(--t-sm)/1.35 var(--font); color: var(--head); text-decoration: none; }
.mega-all:hover, .mega-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.scrim { position: fixed; inset: 0; z-index: 4; background: rgb(0 0 0 / .18); backdrop-filter: blur(14px) saturate(.9); -webkit-backdrop-filter: blur(14px) saturate(.9); animation: scrim-in .28s ease both; }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
.top-end { grid-area: tools; justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; min-height: 36px; padding: 0; border-radius: 8px; border-color: transparent; }
.icon-button:hover { background: var(--hover-ink); }
.icon-button svg { width: 18px; height: 18px; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
[data-theme=dark] .theme-moon, :root:not([data-theme=dark]) .theme-sun { display: none; }

/* ---- Type: headlines weight 600, no negative tracking, optical size per role ---- */
.heading { font: 600 36px/1.12 var(--serif); letter-spacing: 0; color: var(--head); margin: 0 0 12px; text-wrap: balance; }
.lede { max-width: 70ch; margin: -2px 0 14px; color: var(--soft); font-size: 16px; line-height: 1.5; }
.feature .dek, .latest-title, .story-title, .article-body { }
.article-body h2 { letter-spacing: 0; }
.lead-title, .reader-hero h1 { letter-spacing: 0; }

/* ---- Front page: lead 8 + Lo último 4, stories 4 x 3, shelves on the same grid ---- */
.picture { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; isolation: isolate; background: var(--panel); container-type: inline-size; }
.picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; z-index: 1; }
.feature { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); margin: 0 0 var(--s-8); }
.feature a, .story, .card { text-decoration: none; color: inherit; }
.feature a:hover :is(.lead-title, .latest-title), .story:hover .story-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lead { grid-column: 1 / span 8; display: flex; flex-direction: column; container-type: inline-size; --lead-scale: 1; }
.lead .picture { flex: 1 0 auto; aspect-ratio: auto; min-height: 50cqi; margin-bottom: var(--s-5); }
.lead .kicker { margin-bottom: calc(8px * var(--lead-scale)); font-size: calc(11px * var(--lead-scale)); }
.lead-title { display: block; font: 600 calc(clamp(30px, 3.6vw, 50px) * var(--lead-scale))/1.05 var(--serif); color: var(--head); text-wrap: balance; }
.feature .dek { display: block; margin-top: calc(14px * var(--lead-scale)); max-width: 62ch; font: 400 calc(19px * var(--lead-scale))/1.45 var(--serif); color: var(--soft); text-wrap: pretty; }
.lead-text { display: block; }
.section-label { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--head); }
.latest { grid-column: 9 / -1; position: relative; min-width: 0; }
.latest::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) / -2); border-left: 1px solid var(--line); }
.latest ol { list-style: none; margin: 0; padding: 0; counter-reset: latest; }
.latest li { counter-increment: latest; display: grid; grid-template-columns: 34px 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.latest li:first-child { padding-top: 4px; border-top: 0; }
.latest li[hidden] { display: none; }
.latest li::before { content: counter(latest); font: 600 26px/1 var(--serif); color: var(--accent); }
.latest-title { display: block; font: 600 18px/1.3 var(--serif); color: var(--head); text-wrap: pretty; }
.stories { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s-6) var(--gutter); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.story { display: block; min-width: 0; }
.stories > .story { grid-column: span 4; }
.stories > .story:nth-child(n+4) { display: none; }
.story .picture { margin-bottom: var(--s-3); }
.story-title { display: block; font: 600 18px/1.25 var(--serif); color: var(--head); text-wrap: pretty; }

/* ---- Shelves and carousel ---- */
.shelf-row { margin-bottom: var(--s-8); min-width: 0; }
.shelf-head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.shelf-head .section-label { margin: 0; padding: 0; border: 0; }
.view-all { margin-left: auto; padding: 6px 0; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.view-all:hover { text-decoration: underline; }
.carousel-nav { display: flex; gap: var(--s-2); margin-left: var(--s-4); align-self: center; }
.carousel-nav button { display: inline-grid; place-items: center; width: 36px; min-height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--head); cursor: pointer; }
.carousel-nav button:hover:not(:disabled) { border-color: var(--ink); background: var(--hover-ink); }
.carousel-nav button:disabled { opacity: .35; cursor: default; }
.carousel-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shelf-items { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * var(--gutter)) / 6); gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shelf-items > * { scroll-snap-align: start; }
.shelf-items.wide { grid-auto-columns: calc((100% - 3 * var(--gutter)) / 4); }
.shelf-items.carousel { scrollbar-width: none; scroll-padding-inline: 0; }
.shelf-items.carousel::-webkit-scrollbar { display: none; }
.shelf-items.carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.carousel-progress { position: relative; height: 2px; margin-top: var(--s-5); overflow: hidden; background: var(--line); border-radius: 1px; }
.carousel-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: 1px; transition: transform .2s ease-out; }

/* ---- Cards and covers: a typographic cover stands in for a missing feature image ---- */
.card { display: block; min-width: 0; }
.card .meta { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.card .meta .kicker { display: none; }
.card .meta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; font: 600 16px/1.25 var(--serif); color: var(--head); }
.card:hover .meta b { text-decoration: underline; text-underline-offset: 2px; }
.card.typographic .meta { display: none; }  /* the cover already carries the title */
.cover { --cover-bg: var(--tone, var(--cover-0)); --cover-fg: var(--head); --cover-kicker: var(--accent); --cover-meta: var(--tone-meta, var(--cover-meta-light));
         container-type: inline-size; position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px;
         color: var(--cover-fg); font-family: var(--font); background: var(--cover-bg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .07); }
/* Four tints, cycling with the card's position in its row (the same cycle as @index). */
:is(.card, .story):nth-child(4n+2) { --tone: var(--cover-1); }
:is(.card, .story):nth-child(4n+3) { --tone: var(--cover-2); }
:is(.card, .story):nth-child(4n+4) { --tone: var(--cover-4); --tone-meta: var(--cover-meta-4); }
.card .cover { transition: box-shadow .2s, transform .2s; }
.card:hover .cover { box-shadow: 0 8px 20px rgb(0 0 0 / .12), inset 0 0 0 1px rgb(0 0 0 / .07); transform: translateY(-2px); }
.card:focus-visible { outline: none; }
.card:focus-visible .cover { outline: 2px solid var(--accent); outline-offset: 3px; }
.cover-body { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4cqi; padding: 8cqi 8cqi 7cqi; }
.cover-type { font-size: max(11px, 5.2cqi); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cover-kicker); }
.cover-title { font: 600 10.4cqi/1.12 var(--serif); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.cover-topic { margin-top: auto; flex-shrink: 0; font-size: max(11px, 6cqi); color: var(--cover-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.has-image { background: var(--panel); }
.cover:not(.has-image)::after { content: ""; position: absolute; pointer-events: none; opacity: .55; }
.cover.type-case:not(.has-image)::after { left: 8cqi; top: 0; width: 22cqi; height: 2.4cqi; background: var(--cover-kicker); border-radius: 0 0 1.2cqi 1.2cqi; }
.cover.type-note:not(.has-image)::after { left: 8cqi; right: 8cqi; top: 15.5cqi; height: 1.6cqi; border-top: 1px solid var(--cover-kicker); border-bottom: 1px solid var(--cover-kicker); }
.cover.type-chapter:not(.has-image)::after { content: "§"; right: 5cqi; bottom: 2cqi; font: 400 46cqi/1 var(--serif); color: var(--cover-kicker); opacity: .18; }
.cover.type-core:not(.has-image)::after { inset: 3.5cqi; border: 1px solid var(--cover-kicker); border-radius: 2px; }
.cover.type-article:not(.has-image)::after { left: 0; top: 8cqi; bottom: 8cqi; width: 1.4cqi; background: var(--cover-kicker); }
.cover.type-chapter:not(.has-image) .cover-body { z-index: 1; }
/* Inside a 16:9 story picture the cover fills the frame and the title shrinks to fit. */
.picture .cover { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.picture .cover .cover-body { gap: 2.5cqi; padding: 5cqi 6cqi; }
.picture .cover .cover-title { font-size: 6.2cqi; -webkit-line-clamp: 4; }
.picture .cover .cover-type, .picture .cover .cover-topic { font-size: max(11px, 3cqi); }
[data-theme=dark] :is(.cover img, .picture img) { filter: brightness(.9); }

/* ---- Rutas de lectura: three paths, 4 columns each ---- */
.paths { margin-bottom: var(--s-8); }
.paths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
.path { display: flex; flex-direction: column; gap: 10px; }
.path h3 { margin: 0; }
.path-count { margin: 0; font: 500 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.path-count:empty { display: none; }
.path-title { font: 600 26px/1.12 var(--font); color: var(--head); text-decoration: none; text-wrap: balance; }
.path-desc { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.ruta-steps, .path-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; }
.ruta-steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.ruta-steps li::before { content: counter(step); font: 600 14px/1.4 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.ruta-steps a { font-size: 15px; line-height: 1.4; color: var(--head); text-decoration: none; text-wrap: pretty; }
.path-start { margin-top: auto; padding-top: 6px; font: 600 14px/1 var(--font); color: var(--head); text-decoration: none; }
.path-title:hover, .ruta-steps a:hover, .path-start:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.path .path-start { margin-top: auto; }

/* ---- Listings (index, channels, tags) and plain pages ---- */
.listing-page, .plain-page { padding-top: var(--s-4); }
.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 28px; margin-top: var(--s-5); }
.listing:has(> .card) { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 32px 24px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin: var(--s-7) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 14px; }
.pagination:not(:has(a)) { display: none; }
.pagination a { font-weight: 600; text-decoration: none; }
.pagination a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.plain-page { max-width: 820px; margin: 0 auto; }
.plain-page .article-body { max-width: 100%; }
.page-image { margin: var(--s-5) 0 var(--s-6); }
.page-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.plain-page .ruta-steps { margin-top: var(--s-5); }
.plain-page .ruta-steps li { grid-template-columns: 34px 1fr; padding: 16px 0; }
.plain-page .ruta-steps li::before { font-size: 26px; line-height: 1; color: var(--accent); }
.plain-page .ruta-steps a { font: 600 20px/1.3 var(--serif); }
.plain-page .path-start-wrap { margin-top: var(--s-5); }
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-5); max-width: 1440px; margin: 0 auto; padding: var(--s-5) 32px var(--s-7); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }
.foot-name { font-weight: 600; color: var(--head); }
.foot-nav a { margin-right: var(--s-4); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }

/* ---- Post: cinematic hero, floating contents, article body ---- */
.reader-hero { max-width: 100%; margin: 0 auto 30px; text-align: center; }
.reader-hero .kicker { margin: 0 0 14px; }
.reader-hero h1 { font: 600 clamp(34px, 5vw, 52px)/1.06 var(--serif); color: var(--head); max-width: 860px; margin: 0 auto 14px; text-wrap: balance; }
.reader-hero h1:focus { outline: none; }
.hero-dek { max-width: 46ch; margin: 0 auto; font: 400 20px/1.45 var(--serif); color: var(--soft); text-wrap: pretty; }
.byline-slot .vault-byline, .article-body > .vault-byline { font: 400 15px/1.4 var(--font); color: var(--muted); margin: 0; }
.byline-slot:not(:empty) { margin-top: var(--s-5); }
.vault-byline { display: none; }  /* hidden everywhere but the post page */
.article-body .vault-byline, .byline-slot .vault-byline { display: block; }
.article-body > .vault-byline { margin-bottom: var(--s-5); }
.reader-hero .article-lead { position: relative; width: min(620px, 100%); aspect-ratio: 16 / 9; margin: 24px auto 0; background: var(--panel); order: 9; }
.reader-hero .article-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }

/* Cinematic: the image fills the first screen under a transparent masthead; headline, dek and byline sit bottom-left. */
main:has(.reader-hero.cinematic) { position: relative; padding-top: 0; }
.reader-hero.cinematic { position: relative; isolation: isolate; display: grid; max-width: none; align-content: end; justify-items: start; min-height: 100svh;
  margin: 0 calc(50% - (100vw - var(--sb, 0px)) / 2) var(--s-8); padding: calc(var(--header-h, 136px) + var(--s-8)) max(32px, calc((100vw - var(--sb, 0px) - 1440px) / 2 + 32px)); overflow: hidden; background: #0C1220; text-align: left; color: #F6F4EE; }
.reader-hero.cinematic::before, .reader-hero.cinematic::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.reader-hero.cinematic::before { background: linear-gradient(90deg, rgb(12 18 32 / .88) 0%, rgb(12 18 32 / .6) 34%, rgb(12 18 32 / 0) 66%); }
.reader-hero.cinematic::after { background: linear-gradient(0deg, rgb(12 18 32 / .82) 0%, rgb(12 18 32 / 0) 52%), linear-gradient(180deg, rgb(12 18 32 / .6) 0%, rgb(12 18 32 / 0) 26%); }
html:has(.reader-hero.cinematic) .top { position: fixed; left: 0; right: 0;
  transition: --brand-h .35s cubic-bezier(.16, 1, .3, 1), padding .35s cubic-bezier(.16, 1, .3, 1), row-gap .35s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, border-color .3s ease; }
html:has(.reader-hero.cinematic) .top:not(.compact):not(.menu-open) { background: transparent; border-bottom-color: transparent; }
html:has(.reader-hero.cinematic) .top:not(.compact):not(.menu-open) :is(.brand, .menu a, .menu a:hover, .icon-button) { color: #F6F4EE; }
html:has(.reader-hero.cinematic) .top:not(.compact):not(.menu-open) .icon-button { border-color: rgb(246 244 238 / .4); background: transparent; }
html:has(.reader-hero.cinematic) .top:not(.compact):not(.menu-open) .menu a[aria-current] { box-shadow: inset 0 -2px 0 #F6F4EE; }
.reader-hero.cinematic .article-lead { position: absolute; inset: 0; z-index: -2; width: auto; aspect-ratio: auto; margin: 0; background: none; order: 0; }
.reader-hero.cinematic .article-lead img { object-fit: cover; object-position: 70% center; border-radius: 0; filter: none; animation: cine-settle 1.8s cubic-bezier(.16, 1, .3, 1) both; }
.reader-hero.cinematic .kicker { color: #F6F4EE; }
.reader-hero.cinematic h1 { max-width: 14ch; margin: 0; font-size: clamp(44px, 6.2vw, 96px); line-height: .98; color: #F6F4EE; text-align: left; }
.reader-hero.cinematic .hero-dek { max-width: 34ch; margin: var(--s-5) 0 0; font: 400 clamp(19px, 1.7vw, 26px)/1.4 var(--serif); color: rgb(246 244 238 / .86); }
.reader-hero.cinematic .byline-slot:not(:empty) { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgb(246 244 238 / .28); }
.reader-hero.cinematic .byline-slot .vault-byline { font-size: 14px; letter-spacing: .01em; color: rgb(246 244 238 / .78); }
.reader-hero.cinematic :is(h1, .hero-dek, .byline-slot) { animation: cine-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.reader-hero.cinematic .hero-dek { animation-delay: .08s; }
.reader-hero.cinematic .byline-slot { animation-delay: .16s; }
@keyframes cine-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes cine-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* A post that is only a byline: the excerpt is the lead text in the body, so the hero drops its dek. */
.is-brief .hero-dek { display: none; }
.is-brief .article-body .lead-text { display: block; margin: 0; font: 400 24px/1.4 var(--serif); color: var(--head); }

.reader { display: grid; grid-template-columns: minmax(0, 620px) 210px; column-gap: 48px; align-items: start; justify-content: start; margin-left: calc(50% - 310px); }
.reader-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h, 96px) + 24px); align-self: start; max-height: calc(100vh - var(--header-h, 96px) - 48px); display: flex; flex-direction: column; gap: 20px; }
.article-body { grid-column: 1; grid-row: 1; min-width: 0; max-width: 100%; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--body);
  font-kerning: normal; font-feature-settings: "kern" 1, "liga" 1, "calt" 1; text-rendering: optimizeLegibility; }
.article-toc { min-height: 0; overflow-y: auto; padding: 2px 4px 24px 0; }
.article-toc .toc-label { margin: 0 0 12px; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.article-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc li.sub { counter-increment: none; }
.article-toc a::before { content: counter(toc) "."; font-variant-numeric: tabular-nums; }
.article-toc li.sub a::before { content: ""; }
.article-toc a { display: grid; grid-template-columns: 1.6em 1fr; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; font: 400 13.5px/1.45 var(--font); color: var(--muted); text-decoration: none; }
.article-toc li.sub a { padding-left: 24px; font-size: 12.5px; grid-template-columns: 1fr; }
.article-toc a:hover, .article-toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); }
.article-body h2, .article-body h3 { scroll-margin-top: calc(var(--header-h, 96px) + 16px); }
.article-body p { text-wrap: pretty; }
.article-body > p, .article-body > ul, .article-body > ol { margin: 0 0 1.05em; }
.article-body h2 { font: 600 27px/1.2 var(--serif); color: var(--head); margin: 2em 0 .5em; }
.article-body h3 { font: 600 18px/1.3 var(--font); color: var(--head); margin: 1.8em 0 .4em; }
.article-body h4, .article-body h5, .article-body h6 { font: 600 15px/1.35 var(--font); color: var(--head); margin: 1.6em 0 .3em; }
.article-body a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body img { max-width: 100%; height: auto; }
.article-body figure { margin: 1.8em 0; }
.article-body figcaption { font: 400 13px/1.45 var(--font); color: var(--muted); margin-top: 8px; text-align: left; }
.article-body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--accent); font-size: 1.12em; line-height: 1.5; }
.article-body ul, .article-body ol { margin-left: 1.2em; padding: 0; }
.article-body li { margin-bottom: .4em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article-body pre { overflow-x: auto; padding: 16px; background: var(--panel); border-radius: 6px; font-size: 14px; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
/* Koenig cards, minimal. Wide and full break out of the 620px column, centred on the page. */
.kg-width-wide, .kg-width-full { position: relative; left: 50%; transform: translateX(-50%); }
.kg-width-wide { width: min(960px, calc(100vw - 64px)); max-width: none; }
.kg-width-full { width: calc(100vw - var(--sb, 0px)); max-width: none; }
.kg-width-full img { border-radius: 0; }
.kg-image-card img, .kg-gallery-image img { display: block; width: 100%; border-radius: 6px; }
.kg-card { margin: 1.8em 0; }
.kg-bookmark-card { margin: 1.8em 0; }
.kg-bookmark-container { display: flex; min-height: 120px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.kg-bookmark-container:hover { border-color: var(--ink); }
.kg-bookmark-content { flex: 1; min-width: 0; padding: 16px 20px; }
.kg-bookmark-title { font: 600 16px/1.3 var(--font); color: var(--head); }
.kg-bookmark-description { margin-top: 6px; max-height: 3.9em; overflow: hidden; font: 400 14px/1.4 var(--font); color: var(--muted); }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 400 12px/1 var(--font); color: var(--muted); }
.kg-bookmark-author::after { content: " · "; }
.kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-bookmark-icon { width: 18px; height: 18px; }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 28%; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .top, .menu a { transition: none; }
  .mega, .scrim { animation: none; }
  .card .cover, .card:hover .cover, .picture img { transition: none; transform: none; }
  .reader-hero.cinematic :is(h1, .hero-dek, .byline-slot), .reader-hero.cinematic .article-lead img { animation: none; }
}
@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .lead, .latest { grid-column: 1 / -1; }
  .lead { padding-bottom: var(--s-6); }
  .latest { padding-top: var(--s-2); }
  .latest::before { display: none; }
  .stories > .story { grid-column: span 6; }
  .stories > .story:nth-child(n+4) { display: block; }
  .shelf-items { grid-auto-columns: minmax(150px, 30%); }
  .shelf-items.wide { grid-auto-columns: minmax(240px, 45%); }
  .paths-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .reader { display: flex; flex-direction: column; max-width: 620px; margin: 0 auto; }
  .reader-aside { position: static; max-height: none; gap: 22px; margin: 26px 0 34px; }
  .article-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .article-toc a { border-left: 0; padding-left: 0; }
  .article-toc li.sub a { padding-left: 12px; }
}
@media (max-width: 720px) {
  .mega { padding: 24px 16px 28px; }
  .mega-panel { grid-template-columns: 1fr; gap: 28px; }
  .mega-cards, .mega-cards.books { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .mega-cards > li:nth-child(n+3) { display: none; }
  .mega-desc { margin-bottom: 8px; }
  main { padding-left: 16px; padding-right: 16px; }
  :root { --gutter: 16px; }
  .top { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand tools" "menu menu"; gap: 6px 12px; padding: 12px 16px 0; --brand-h: 34px; }
  .top.compact { --brand-h: 26px; padding-top: 6px; }
  .brand { justify-self: start; }
  .menu { justify-self: stretch; overflow-x: auto; margin: 0 -16px; padding: 0 10px; }
  html:has(.reader) .top { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "toggle brand tools"; padding-bottom: 10px; }
  html:has(.reader) .top.menu-open { grid-template-areas: "toggle brand tools" "menu menu menu"; padding-bottom: 0; }
  .heading { font-size: 26px; }
  .lead-title { font-size: calc(28px * var(--lead-scale)); }
  .feature .dek { font-size: 16px; }
  .stories { gap: 20px 12px; }
  .story-title { font-size: 16px; }
  .shelf-items { grid-auto-columns: 42%; gap: 12px; }
  .shelf-items.wide { grid-auto-columns: 78%; }
  .listing { grid-template-columns: 1fr; gap: 28px; }
  .listing:has(> .card) { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .reader-aside { order: 2; }
  .article-body { font-size: 18px; }
  .reader-hero.cinematic { min-height: min(92svh, 720px); padding: calc(var(--header-h, 100px) + var(--s-7)) 16px var(--s-7); }
  .reader-hero.cinematic::before { background: linear-gradient(0deg, rgb(12 18 32 / .9) 0%, rgb(12 18 32 / .35) 60%, rgb(12 18 32 / 0) 100%); }
  .foot { padding-inline: 16px; }
}


/* ---- Books: own page layout, status line on cards, the "Nuestro libro" block on the front ---- */
.book-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s-6) var(--gutter); align-items: center; max-width: 1040px; margin: var(--s-7) auto var(--s-6); padding: 0 var(--gutter); }
.book-cover img, .book-feature-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.book-info h1 { margin: 8px 0 14px; font: 600 clamp(30px, 3.6vw, 48px)/1.06 var(--serif); color: var(--head); text-wrap: balance; }
.book-info .hero-dek { margin: 0; }
.book-status { display: block; font: 600 11px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.book-feature { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--s-6) var(--gutter); align-items: center; margin-bottom: var(--s-8); padding: var(--s-6) 0; border-top: 2px solid var(--head); border-bottom: 1px solid var(--line, currentColor); }
.book-feature-text { display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.book-feature-title { font: 600 clamp(26px, 3vw, 40px)/1.08 var(--serif); color: var(--head); text-decoration: none; text-wrap: balance; }
.book-feature-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.book-feature .dek { margin: 0; color: var(--soft); }
@media (max-width: 720px) { .book-hero, .book-feature { grid-template-columns: 1fr; } .book-cover, .book-feature-cover { max-width: 240px; } }

/* ---- About (/acerca/): split hero, large opening question, closing statement, ways in ---- */
.about-page { max-width: 1180px; margin: 0 auto; }
.about-hero { display: grid; gap: var(--s-6) var(--gutter); align-items: center; margin: var(--s-6) 0 var(--s-8); }
.about-hero.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.about-hero h1 { margin: 0 0 18px; font: 600 clamp(38px, 5.4vw, 68px)/1.02 var(--serif); color: var(--head); text-wrap: balance; }
.about-dek { margin: 0; max-width: 36ch; font: 400 21px/1.45 var(--serif); color: var(--soft); text-wrap: pretty; }
.about-hero-image { margin: 0; }
.about-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-body { max-width: 680px; margin: 0 auto; font-size: 19px; line-height: 1.6; color: var(--body); }
.about-body > p:first-child { margin: 0 0 var(--s-6); padding-bottom: var(--s-5); border-bottom: 2px solid var(--head);
  font: 600 clamp(28px, 3.4vw, 40px)/1.15 var(--serif); color: var(--head); text-wrap: balance; }
/* Closing line (the publisher note after the rule): a small footnote, not a heading */
.about-body > hr { margin: var(--s-7) 0 var(--s-4); border: 0; border-top: 1px solid var(--line); }
.about-body > p:last-child { margin: 0; font: 400 var(--t-sm)/1.5 var(--font); color: var(--muted); }
.about-body > p:last-child em { font-style: normal; }
.about-ways { margin: var(--s-8) 0; padding: var(--s-6) var(--gutter); background: var(--tint-soft); }
.about-ways ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); }
.about-ways a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--head); text-decoration: none; }
.about-ways b { font: 600 20px/1.2 var(--serif); }
.about-ways span { font-size: 14px; color: var(--muted); }
.about-ways a:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .about-hero.has-image { grid-template-columns: 1fr; } .about-hero-image { order: -1; } .about-ways ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .about-ways ul { grid-template-columns: 1fr; } }

/* ---- Memo (#memo): a briefing, not a feature. Narrow column, date first, bottom line under the title. ---- */
.memo-page { max-width: 720px; margin: var(--s-7) auto var(--s-8); }
.memo-head { padding-bottom: var(--s-5); border-bottom: 2px solid var(--head); }
.memo-head h1 { margin: 6px 0 16px; font: 600 clamp(30px, 4vw, 44px)/1.1 var(--serif); color: var(--head); text-wrap: balance; }
.memo-bluf { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--head); font: 400 20px/1.45 var(--serif); color: var(--body); text-wrap: pretty; }
.memo-meta { margin: 0; font-size: 13px; color: var(--muted); }
.memo-image { margin: var(--s-5) 0; }
.memo-image img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.memo-body { max-width: 100%; font-size: 18px; line-height: 1.6; }
.memo-body h2 { margin: var(--s-6) 0 12px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 700 13px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--head); }
.memo-body ol { counter-reset: memo; list-style: none; padding: 0; }
.memo-body ol > li { counter-increment: memo; position: relative; padding: 0 0 12px 40px; }
.memo-body ol > li::before { content: counter(memo); position: absolute; left: 0; top: -2px; font: 600 24px/1 var(--serif); color: var(--head); }
.memo-body hr { margin: var(--s-6) 0 var(--s-4); border: 0; border-top: 1px solid var(--line); }
.memo-body hr ~ p, .memo-body hr ~ ul { font-size: 14px; color: var(--muted); }

/* ---- Landing (custom-landing): hero band with the call to action, wide sections, closing band ---- */
.landing-page { margin-bottom: var(--s-8); }
.landing-hero { display: grid; gap: var(--s-6) var(--gutter); align-items: center; margin: 0 calc(-1 * var(--gutter)) var(--s-7); padding: var(--s-8) var(--gutter); background: var(--tint); }
.landing-hero.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.landing-hero h1 { margin: 6px 0 18px; font: 600 clamp(38px, 5.6vw, 72px)/1.0 var(--serif); color: var(--head); text-wrap: balance; max-width: 16ch; }
.landing-dek { margin: 0 0 26px; max-width: 46ch; font: 400 21px/1.45 var(--serif); color: var(--soft); text-wrap: pretty; }
.landing-cta { display: inline-block; padding: 14px 22px; background: var(--action); color: var(--on-action); font: 600 15px/1 var(--font); text-decoration: none; }
.landing-cta:hover { background: var(--action-dark); }
.landing-hero-image { margin: 0; }
.landing-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.landing-body { max-width: 1040px; margin: 0 auto; font-size: 19px; line-height: 1.6; }
.landing-body > p, .landing-body > h2, .landing-body > ul { max-width: 680px; margin-left: auto; margin-right: auto; }
.landing-body > h2 { margin-top: var(--s-7); font: 600 32px/1.15 var(--serif); color: var(--head); }
.landing-body .ruta-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gutter); margin: 0; counter-reset: step; }
.landing-body .ruta-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 14px; min-height: 180px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.landing-body .ruta-steps li::before { content: "Paso " counter(step); font: 700 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.landing-body .ruta-steps a { font: 600 22px/1.25 var(--serif); color: var(--head); text-decoration: none; }
.landing-body .ruta-steps a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.landing-close { margin: var(--s-8) calc(-1 * var(--gutter)) 0; padding: var(--s-7) var(--gutter); background: var(--ink); color: var(--on-ink); text-align: center; }
.landing-close h2 { margin: 0 0 8px; font: 600 34px/1.15 var(--serif); color: inherit; }
.landing-close p { margin: 0 0 22px; color: inherit; opacity: .75; }
.landing-close .landing-cta { background: var(--on-ink); color: var(--ink); }
@media (max-width: 900px) { .landing-hero.has-image { grid-template-columns: 1fr; } .landing-hero-image { order: -1; } }

/* ---- Typography pass (2026-11-23). Die Grotesk VF: wght 100–900, opsz 6–42.
   Optical size follows the font size (font-optical-sizing: auto), so no rule pins "opsz".
   Large type tightens, caps use the case-sensitive forms, figures in counters are tabular. ---- */
body { font-optical-sizing: auto; font-kerning: normal; font-feature-settings: "kern" 1, "calt" 1; text-rendering: optimizeLegibility; hanging-punctuation: first allow-end; }
p, li, blockquote, figcaption { text-wrap: pretty; }
h1, h2, h3, .heading, .lead-title { font-kerning: normal; text-wrap: balance; }
.kicker, .section-label, .mega-eyebrow, .path-count, .book-status, .cover-type, .article-toc .toc-label { font-feature-settings: "kern" 1, "case" 1; }
strong, b { font-weight: 650; }
.article-body a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.article-body a:hover { text-decoration-thickness: 2px; }
.reader-hero h1, .about-hero h1, .landing-hero h1, .book-info h1, .lead-title { letter-spacing: -.02em; }
.heading, .article-body h2, .landing-body > h2, .landing-close h2 { letter-spacing: -.01em; }

/* Memo: a 66-character measure, a tighter display title, a calm rhythm. */
.memo-page { max-width: 700px; }
.memo-head .kicker { font-size: 12px; letter-spacing: .1em; margin-bottom: 14px; }
.memo-head h1 { margin: 0 0 20px; font-size: clamp(32px, 4.4vw, 50px); font-weight: 640; line-height: 1.06; letter-spacing: -.022em; max-width: 18ch; }
.memo-bluf { max-width: 31em; margin-bottom: 18px; padding-left: 18px; font-size: 21px; line-height: 1.42; letter-spacing: -.005em; color: var(--head); }
.memo-meta { font-size: 13px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.memo-body { font-size: 19px; line-height: 1.58; }
.memo-body > p, .memo-body > ul, .memo-body > ol, .memo-body > h2 { max-width: 33em; }
.memo-body > p { margin: 0 0 1.05em; }
.memo-body > p strong:first-child { font-weight: 680; color: var(--head); }
.memo-body h2 { margin: 2.4em 0 1em; padding-top: 16px; font-size: 12.5px; letter-spacing: .11em; line-height: 1.3; }
.memo-body ol > li { padding: 0 0 .7em 2.1em; }
.memo-body ol > li::before { top: .02em; font-size: 1.25em; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.memo-body hr { margin: 3em 0 1.4em; }
.memo-body hr ~ p, .memo-body hr ~ ul { max-width: 40em; font-size: 14px; line-height: 1.55; }
.memo-body hr ~ ul { padding-left: 1.1em; }
@media (max-width: 600px) {
  .memo-body, .memo-bluf { hyphens: auto; -webkit-hyphens: auto; }
  .memo-body { font-size: 18px; }
  .memo-bluf { font-size: 19px; }
}
.memo-body > h2 { max-width: calc(33 * 19px); }  /* the rule spans the text measure, not 33em of the small caps */
@media (max-width: 600px) { .memo-body > h2 { max-width: none; } }

/* Memo, round 2 (H): looser title, section titles as real subheadings (not eyebrows), list numbers at text size. */
.memo-head h1 { font-weight: 620; line-height: 1.1; letter-spacing: -.008em; }
.memo-body h2 { margin: 2.2em 0 .6em; padding-top: 18px; font: 600 24px/1.25 var(--font); letter-spacing: -.005em; text-transform: none; color: var(--head); }
.memo-body ol > li { padding-left: 1.7em; }
.memo-body ol > li::before { top: 0; font-size: 1em; line-height: inherit; font-weight: 650; color: var(--head); }
.memo-head h1 { letter-spacing: 0; font-variation-settings: "opsz" 30; }  /* the opsz 42 display cut spaces too tight for a memo title */

/* ---- Homepage pass (2026-11-23): one type scale, one image shape, compact paths, a framed book block ---- */
:root { --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 28px; --t-3xl: 36px; --t-4xl: clamp(36px, 3.9vw, 56px); }

/* Eyebrow: type, then topic in a quieter tone */
.kicker-wrap { margin: 0 0 14px; }
.kicker-wrap .kicker { margin: 0; }
.kicker { font-size: var(--t-xs); letter-spacing: .1em; }
.kicker-type + .kicker-topic::before { content: "\00B7"; margin: 0 .5em; color: var(--muted); }
.kicker-type ~ .kicker-topic { color: var(--muted); font-weight: 500; }
.reader-hero.cinematic .kicker-type ~ .kicker-topic, .reader-hero.cinematic .kicker-type + .kicker-topic::before { color: rgb(246 244 238 / .7); }

/* Section labels and rhythm */
.section-label { font-size: var(--t-xs); letter-spacing: .1em; }
.front > section, .front > .feature { margin-bottom: 80px; }

/* Lead and latest */
.lead .picture { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
.lead-title { font-size: var(--t-4xl); line-height: 1.04; letter-spacing: -.02em; }
.lead .dek { display: block; margin-top: 12px; font-size: var(--t-lg); line-height: 1.45; max-width: 52ch; color: var(--soft); }
.latest-title { font-size: var(--t-md); line-height: 1.32; }
.latest-item .kicker { margin-bottom: 6px; }
.story-title { display: block; font: 600 var(--t-lg)/1.3 var(--font); color: var(--head); text-wrap: pretty; }
.story .kicker { margin: 0 0 6px; }

/* Cards in shelves: same title size everywhere */
.card .meta b, .shelf-items .story-title { font-size: var(--t-md); line-height: 1.3; }
.card .meta { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.card .meta .kicker { margin: 0; }

/* Book block: a framed panel, cover and text balanced */
.book-feature { grid-template-columns: 200px minmax(0, 1fr); gap: 0 48px; padding: 40px; border: 0; background: var(--tint-soft); }
.book-feature .section-label { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; }
.book-feature-title { font-size: var(--t-3xl); line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; }
.book-feature .dek { font-size: var(--t-md); line-height: 1.5; max-width: 58ch; }

/* Paths on the front: compact cards, the steps live on the path page */
.paths.compact .path-body { display: none; }
.paths.compact .path { padding: 24px 0 0; border-top: 1px solid var(--line); gap: 10px; }
.paths.compact .path-title { font-size: var(--t-xl); line-height: 1.2; }
.paths.compact .path-desc { font-size: var(--t-sm); }
.paths .shelf-head { display: flex; align-items: baseline; justify-content: space-between; }
.paths.compact + .paths.compact { margin-top: -32px; }

@media (max-width: 720px) {
  .book-feature { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .book-feature-cover { max-width: 160px; }
  .front > section, .front > .feature { margin-bottom: 56px; }
}
.view-all { white-space: nowrap; }
@media (max-width: 720px) { .book-feature-title { font-size: var(--t-2xl); } .book-feature-cover { width: 150px; } }

/* ---- Homepage, round 2 (H: fewer lines, larger section titles, one place for the eye at a time) ---- */
.front .shelf-head { align-items: baseline; margin-bottom: 24px; padding: 0; border: 0; }
.front .shelf-head .section-label { margin: 0; padding: 0; border: 0; font: 600 var(--t-2xl)/1.15 var(--font); letter-spacing: -.01em; text-transform: none; color: var(--head); }
.front .view-all { font-size: var(--t-sm); font-weight: 600; }
.latest .section-label, .book-feature .section-label { border: 0; padding: 0; }
.latest .section-label { margin-bottom: 8px; color: var(--muted); }
.latest ol li, .latest-item { border: 0; }
.latest-item { padding: 10px 0; }
.stories { border-top: 0; padding-top: 0; }
.carousel-progress { display: none; }

/* Paths: two role columns, titles only */
.home-paths-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
.home-paths-role { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font: 600 var(--t-xs)/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--head); font-feature-settings: "kern" 1, "case" 1; }
.home-paths-role span { font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: var(--t-sm); color: var(--muted); }
.home-paths-col ul { list-style: none; margin: 0; padding: 0; }
.home-paths-col a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; font: 600 var(--t-xl)/1.25 var(--font); letter-spacing: -.005em; color: var(--head); text-decoration: none; }
.home-paths-col a span { color: var(--muted); transition: transform .2s ease; }
.home-paths-col a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home-paths-col a:hover span { transform: translateX(4px); color: var(--head); }
@media (max-width: 720px) { .home-paths-grid { grid-template-columns: 1fr; } .front .shelf-head .section-label { font-size: var(--t-xl); } }

/* Book banner: slim strip at the top of the front page, same tint as the full block */
.book-banner { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 0 0 40px; padding: 14px 24px; background: var(--tint-soft); color: var(--head); text-decoration: none; }
.book-banner-cover img { display: block; width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 4px 12px rgb(0 0 0 / .15); }
.book-banner-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.book-banner .kicker { margin: 0; }
.book-banner-title { font: 600 var(--t-xl)/1.2 var(--font); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-banner-cta { padding: 12px 18px; background: var(--action); color: var(--on-action); font: 600 var(--t-sm)/1 var(--font); white-space: nowrap; }
.book-banner:hover .book-banner-cta { background: var(--action-dark); }
.book-banner:hover .book-banner-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.front > .book-feature:last-child { margin: 0; }
@media (max-width: 720px) {
  .book-banner { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 12px 16px; }
  .book-banner-cover img { width: 44px; }
  .book-banner-title { font-size: var(--t-md); white-space: normal; }
  .book-banner-cta { grid-column: 1 / -1; text-align: center; }
}

/* Menu link to the school's programmes (opens a new tab) */
.menu-external span[aria-hidden] { margin-left: 3px; font-size: .85em; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Book page, round 2 (H): aligned to the text column, calmer title, download in the hero ---- */
.book-hero { grid-template-columns: 260px minmax(0, 1fr); gap: 0 56px; align-items: center; max-width: 878px; margin: var(--s-7) 0 var(--s-7) calc(50% - 310px); padding: 0; }
.book-info .kicker { margin-bottom: 16px; }
.book-info h1 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 40px); font-weight: 620; line-height: 1.1; letter-spacing: 0; font-variation-settings: "opsz" 30; max-width: 20ch; }
.book-info .hero-dek { font-size: var(--t-lg); line-height: 1.5; max-width: 46ch; color: var(--soft); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 0; }
.book-cta { padding: 14px 22px; background: var(--action); color: var(--on-action); font: 600 var(--t-sm)/1 var(--font); text-decoration: none; }
.book-cta:hover { background: var(--action-dark); }
.book-meta { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 1100px) { .book-hero { margin-left: auto; margin-right: auto; padding: 0 var(--gutter); } }
@media (max-width: 720px) { .book-hero { grid-template-columns: 1fr; gap: 28px; } .book-cover { max-width: 220px; } }
/* Ghost's button cards use the site accent (pink); in this theme every action is black */
.kg-btn, .kg-btn-accent { background: var(--action) !important; color: var(--on-action) !important; border-radius: 0; font-weight: 600; }
.kg-btn:hover { background: var(--action-dark) !important; }

/* Gate under a public preview (partials/content-cta.hbs) */
.gate { margin: 48px 0; padding: 36px 40px; background: var(--tint-soft); text-align: left; }
.gate .kicker { margin-bottom: 10px; }
.gate-title { margin: 0 0 10px; font: 600 var(--t-2xl)/1.15 var(--font); letter-spacing: -.005em; color: var(--head); }
.gate-text { margin: 0 0 22px; font-size: var(--t-md); line-height: 1.5; color: var(--soft); max-width: 46ch; }
.gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.gate-button { padding: 14px 22px; background: var(--action); color: var(--on-action); font: 600 var(--t-sm)/1 var(--font); text-decoration: none; }
.gate-signin { font-size: var(--t-sm); font-weight: 600; color: var(--head); }
@media (max-width: 600px) { .gate { padding: 24px; } }

/* Access label in the eyebrow: Gratis, Professional or Executive */
.kicker-access { display: inline-block; margin-left: .7em; padding: 2px 6px 1px; border: 1px solid currentColor; border-radius: 2px; font-size: .9em; font-weight: 600; letter-spacing: .08em; color: var(--muted); vertical-align: 1px; }
.kicker-access.is-free { color: var(--head); }
.reader-hero.cinematic .kicker-access { color: rgb(246 244 238 / .8); }

/* Free badge: only free items are marked, on the image's top-left corner (H, 2026-11-23) */
.kicker-access { display: none; }
.badge-free { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 8px 4px; background: var(--bg); color: var(--head); font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; font-feature-settings: "kern" 1, "case" 1; box-shadow: 0 1px 4px rgb(0 0 0 / .15); }
.cover { position: relative; }

/* The section already names the type: hide it in type shelves and type listings (H, 2026-11-23). Mixed lists keep it. */
:is(.shelf-row, .is-type) .kicker-type { display: none; }
:is(.shelf-row, .is-type) .kicker-type + .kicker-topic::before { content: none; }
:is(.shelf-row, .is-type) .kicker-type ~ .kicker-topic { color: var(--accent); font-weight: 600; }

/* ---- Design audit pass (2026-11-23): Rams' "less, but better" ---- */

/* One drawn icon set replaces the Unicode arrows */
.i { display: inline-block; width: .95em; height: .95em; margin-left: .3em; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
a:hover > .i-arrow { transform: translateX(3px); }
a:hover > .i-arrow-out { transform: translate(2px, -2px); }
.pagination .i-arrow-left { margin: 0 .3em 0 0; }
.home-paths-col a .i { color: var(--muted); }
.home-paths-col a:hover .i { color: var(--head); }

/* Gate button: the article's link colour was overriding it (1.3:1, invisible) */
.article-body .gate a.gate-button, .gate a.gate-button { color: var(--on-action); text-decoration: none; }
.article-body .gate a.gate-signin { color: var(--head); }

/* Eyebrows wrap on narrow cards instead of spilling */
.kicker { overflow-wrap: anywhere; }
.kicker-topic { white-space: normal; }

/* One display voice for every large title: optical size 30, a breath of tracking, weight 620 */
.lead-title, .reader-hero h1, .about-hero h1, .landing-hero h1, .book-info h1, .memo-head h1, .heading { font-weight: 620; letter-spacing: -.006em; font-variation-settings: "opsz" 30; }
.lead-title { line-height: 1.06; }
.reader-hero h1 { line-height: 1.08; }

/* Information that was a kicker now sits quietly under the title */
.memo-meta { margin-top: 2px; }
.book-status-line { margin: 0 0 12px; font-size: var(--t-sm); color: var(--muted); }
.landing-meta { margin: -10px 0 26px; font-size: var(--t-sm); color: var(--muted); }
.book-info h1 { margin-top: 0; }

/* Browser surfaces carry the design too */
::selection { background: var(--head); color: var(--bg); }
html { accent-color: var(--action); caret-color: var(--head); }
:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; border-radius: 1px; }

/* =========================================================================================
   Homepage system (2026-11-23, "Rams for Jobs"). One grid, one spacing scale, one baseline.
   Width: content capped at 1280 px; header, page and footer share the same edges.
   Grid: 12 columns. Lead 8 · Lo último 4 · stories 4 · article/case cards 3 · book covers 2.
   Spacing: 8 16 24 32 48 64 96 only. Sections 96 apart (64 tablet, 48 phone); title → content 32.
   Type on a 4 px baseline: 12/16 · 14/20 · 16/20 · 18/24 · 22/28 · 28/32 · 36/40 · 56/60.
   Tracking tightens with size: caps +.08em, 18 −.003, 22 −.006, 28 −.01, 36 −.012, 56 −.012.
   ========================================================================================= */
:root { --page: 1280px; --section: 96px; --head-gap: 32px; }
main { max-width: calc(var(--page) + 64px); }
.top { padding-left: max(32px, calc((100% - var(--page)) / 2)); padding-right: max(32px, calc((100% - var(--page)) / 2)); }
.foot { max-width: calc(var(--page) + 64px); }

/* Sections */
.front > section, .front > .feature, .front > .book-banner { margin: 0 0 var(--section); }
.front > .book-feature:last-child { margin-bottom: 0; }
.front .shelf-head { margin: 0 0 var(--head-gap); }
.front .shelf-head .section-label { font-size: 28px; line-height: 32px; letter-spacing: -.01em; }
.front .view-all { font-size: 14px; line-height: 20px; }
.front .kicker { font-size: 12px; line-height: 16px; letter-spacing: .08em; margin: 0 0 8px; }

/* Book banner */
.front > .book-banner { margin-bottom: 48px; padding: 16px 24px; gap: 24px; grid-template-columns: 48px minmax(0, 1fr) auto; }
.book-banner-cover img { width: 48px; }
.book-banner-title { font-size: 18px; line-height: 24px; letter-spacing: -.003em; }
.book-banner-cta { padding: 12px 20px; font-size: 14px; line-height: 16px; }

/* Lead (8 columns) and Lo último (4 columns) */
.feature { row-gap: 0; }
.lead .picture { margin-bottom: 24px; border-radius: 4px; }
.lead .kicker { margin-bottom: 12px; font-size: 12px; }
.lead-title { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.07; letter-spacing: -.012em; }
.lead .dek { margin-top: 16px; font-size: 18px; line-height: 28px; max-width: 56ch; }
.latest .section-label { margin: 0 0 8px; font-size: 12px; line-height: 16px; }
.latest li, .latest li:first-child { grid-template-columns: 32px 1fr; padding: 16px 0; border: 0; }
.latest li:first-child { padding-top: 8px; }
.latest li::before { font: 600 18px/24px var(--font); font-variant-numeric: lining-nums tabular-nums; color: var(--head); }
.latest-item .kicker { margin-bottom: 4px; }
.latest-title { font-size: 16px; line-height: 20px; letter-spacing: 0; }

/* Stories (3 × 4 columns) */
.stories { margin-top: 64px; padding-top: 0; row-gap: 32px; }
.story .picture { margin-bottom: 16px; border-radius: 4px; }
.story .kicker { margin-bottom: 8px; }
.story-title { font-size: 18px; line-height: 24px; letter-spacing: -.003em; }

/* Shelves: articles and cases 4-up (3 columns, 16:9); books 6-up (2 columns, 2:3) */
.front .shelf-items { gap: var(--gutter); padding-bottom: 0; }
.front .shelf-items.wide .story-title, .card .meta b { font-size: 16px; line-height: 20px; letter-spacing: 0; }
.card .meta { margin-top: 16px; gap: 4px; }
.card .cover { border-radius: 2px; }

/* Learning paths: 2 × 6 columns */
.home-paths-grid { gap: 32px var(--gutter); }
.home-paths-role { margin: 0 0 8px; font-size: 12px; line-height: 16px; letter-spacing: .08em; }
.home-paths-role span { font-size: 14px; line-height: 20px; letter-spacing: 0; }
.home-paths-col a { padding: 12px 0; font-size: 22px; line-height: 28px; letter-spacing: -.006em; }

/* Book block: cover 2 columns, text 6 columns */
.book-feature { grid-template-columns: 184px minmax(0, 1fr); gap: 0 64px; padding: 48px; }
.book-feature-text { gap: 16px; max-width: none; }
.book-feature-title { font-size: 36px; line-height: 40px; letter-spacing: -.012em; max-width: none; }
.book-feature .dek { font-size: 16px; line-height: 24px; max-width: 56ch; }

/* Tablet: keep the 8/4 split down to 900 px; stories stay three across */
@media (max-width: 1100px) {
  :root { --section: 64px; }
  .front .lead { grid-column: 1 / span 8; padding-bottom: 0; }
  .front .latest { grid-column: 9 / -1; padding-top: 0; }
  .front .latest::before { display: block; }
  .front .stories > .story { grid-column: span 4; }
  .front .stories > .story:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  .front .lead, .front .latest { grid-column: 1 / -1; }
  .front .latest { padding-top: 32px; }
  .front .latest::before { display: none; }
  .front .stories > .story { grid-column: span 6; }
  .book-feature { grid-template-columns: 160px minmax(0, 1fr); padding: 32px; }
}
/* Phone */
@media (max-width: 720px) {
  :root { --section: 48px; --head-gap: 24px; }
  .top { padding-left: 16px; padding-right: 16px; }
  .front > .book-banner { margin-bottom: 32px; }
  .front .shelf-head .section-label { font-size: 22px; line-height: 28px; }
  .lead-title { font-size: 36px; line-height: 40px; }
  .lead .dek { font-size: 16px; line-height: 24px; }
  .front .stories { margin-top: 48px; }
  .front .stories > .story { grid-column: 1 / -1; }
  .front .shelf-items.wide { grid-auto-columns: 78%; }
  .front .shelf-items:not(.wide) { grid-auto-columns: 42%; }
  .home-paths-col a { font-size: 18px; line-height: 24px; }
  .book-feature { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .book-feature-cover { width: 144px; }
  .book-feature-title { font-size: 28px; line-height: 32px; }
}
.lead-title { line-height: 1.07; line-height: round(up, 1.07em, 4px); }  /* snaps to the 4 px baseline where supported */

/* Homepage system, round 2 */
/* Footer rule spans the content width, not 32 px beyond it */
.foot { width: min(var(--page), 100% - 64px); max-width: none; padding-left: 0; padding-right: 0; }
/* Tablet: shelves keep their desktop columns (whole cards, no slice); the narrow Lo último shows the type only */
@media (max-width: 1100px) and (min-width: 721px) {
  .front .shelf-items { grid-auto-columns: calc((100% - 5 * var(--gutter)) / 6); }
  .front .shelf-items.wide { grid-auto-columns: calc((100% - 3 * var(--gutter)) / 4); }
  .front .latest .kicker-topic { display: none; }
}
/* Phone: a lighter banner */
@media (max-width: 720px) {
  .foot { width: calc(100% - 32px); }
  .front > .book-banner { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; padding: 16px; }
  .book-banner-cover img { width: 40px; }
  .book-banner-title { font-size: 16px; line-height: 20px; }
  .book-banner .kicker { font-size: 11px; line-height: 16px; letter-spacing: .06em; }
}
/* Cinematic hero text starts on the page edge shared with the header (1280 px content) */
@media (min-width: 721px) { .reader-hero.cinematic { padding-left: max(32px, calc((100vw - var(--sb, 0px) - var(--page)) / 2)); padding-right: max(32px, calc((100vw - var(--sb, 0px) - var(--page)) / 2)); } }

/* /rutas/: image cards, three per row (4 columns each), one section per role */
.paths-section { margin: 0 0 96px; }
.paths-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 32px; }
.paths-head h2 { margin: 0; font: 600 28px/32px var(--font); letter-spacing: -.01em; color: var(--head); }
.paths-head p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.paths-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gutter); }
.path-card { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.path-card .picture { margin-bottom: 16px; border-radius: 4px; }
.path-card .path-count { margin: 0 0 8px; font: 600 12px/16px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-feature-settings: "kern" 1, "case" 1; }
.path-card-title { font: 600 22px/28px var(--font); letter-spacing: -.006em; color: var(--head); text-wrap: balance; }
.path-card-desc { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.path-card:hover .path-card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.path-card:hover .picture img { transform: scale(1.02); }
@media (max-width: 1100px) { .paths-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .paths-section { margin-bottom: 64px; } }
@media (max-width: 720px) { .paths-cards { grid-template-columns: 1fr; gap: 32px; } .paths-section { margin-bottom: 48px; } .paths-head h2 { font-size: 22px; line-height: 28px; } }
.listing-page + .paths-section { margin-top: 64px; }
@media (max-width: 720px) { .listing-page + .paths-section { margin-top: 40px; } }

/* ---- Colecciones (2026-11-23): one feed with a role filter; each collection is a numbered index ---- */
.collections-page .lede { margin-bottom: 32px; }
.collection-filter { display: inline-flex; gap: 0; margin: 0 0 48px; padding: 4px; border-radius: 999px; background: var(--panel); }
.collection-filter button { padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 600 14px/20px var(--font); cursor: pointer; }
.collection-filter button[aria-pressed="true"] { background: var(--bg); color: var(--head); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.collection-filter button:hover { color: var(--head); }
.collection-card[hidden] { display: none; }
.collection-meta { margin-top: 12px; font-size: 13px; line-height: 16px; color: var(--muted); }
.collection-meta::first-letter { text-transform: uppercase; }

/* Collection page: HBR-style numbered index instead of step cards */
.landing-body .ruta-steps { display: block; max-width: 760px; margin: 0 auto; counter-reset: step; }
.landing-body .ruta-steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); min-height: 0; padding: 32px 0; border: 0; border-top: 1px solid var(--line); background: none; gap: 0; }
.landing-body .ruta-steps li:last-child { border-bottom: 1px solid var(--line); }
.landing-body .ruta-steps li::before { content: counter(step, decimal-leading-zero); font: 600 28px/32px var(--font); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; text-transform: none; color: var(--head); }
.landing-body .ruta-steps a { display: flex; flex-direction: column; gap: 8px; font: inherit; color: inherit; text-decoration: none; }
.landing-body .ruta-steps .step-topic { font: 600 12px/16px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-feature-settings: "kern" 1, "case" 1; }
.landing-body .ruta-steps .step-title { font: 600 22px/28px var(--font); letter-spacing: -.006em; color: var(--head); text-wrap: balance; }
.landing-body .ruta-steps .step-dek { font-size: 16px; line-height: 24px; color: var(--soft); }
.landing-body .ruta-steps a:hover .step-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 720px) {
  .landing-body .ruta-steps li { grid-template-columns: 48px minmax(0, 1fr); padding: 24px 0; }
  .landing-body .ruta-steps li::before { font-size: 22px; line-height: 28px; }
  .landing-body .ruta-steps .step-title { font-size: 18px; line-height: 24px; }
  .collection-filter { margin-bottom: 32px; }
}

/* ---- Article reading (2026-11-23, after Every and HBR) ---- */
/* Reading header: topic | title replaces the masthead once the title has scrolled away; a 2 px line tracks progress */
.read-bar { grid-area: brand; display: none; align-items: baseline; gap: 12px; min-width: 0; max-width: min(760px, 62vw); white-space: nowrap; }
.read-topic { flex: none; font: 600 14px/20px var(--font); color: var(--muted); }
.read-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; border-left: 1px solid var(--line); font: 600 14px/20px var(--font); color: var(--head); }
.read-topic:only-child, .read-bar > .read-title:first-child { padding-left: 0; border-left: 0; }
.top.is-reading .brand { display: none; }
.top.is-reading .read-bar { display: flex; align-self: center; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--head); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (max-width: 720px) { .read-topic { display: none; } .read-title { padding-left: 0; border-left: 0; } .read-bar { max-width: 64vw; } }

/* Contents: plain titles, no numbers (top-level sections only, set in vault.js) */
.article-toc a { grid-template-columns: 1fr; }
.article-toc a::before { content: none; }

/* Body: 20 px on a 32 px line; calmer subheads, more space above than below */
.article-body { font-size: 20px; line-height: 32px; }
.article-body p { margin: 0 0 24px; }
.article-body h2 { margin: 56px 0 12px; font: 650 24px/32px var(--font); letter-spacing: -.006em; font-variation-settings: normal; }
.article-body h3 { margin: 40px 0 8px; font: 600 20px/28px var(--font); }
@media (max-width: 720px) { .article-body { font-size: 18px; line-height: 28px; } .article-body p { margin-bottom: 20px; } .article-body h2 { margin-top: 44px; font-size: 21px; line-height: 28px; } }
@media (max-width: 720px) { .read-bar { max-width: calc(100vw - 152px); justify-self: center; } }
.article-body li:empty, .article-body p:empty { display: none; }  /* leftovers from the cached source */
@media (max-width: 720px) { .read-bar { max-width: calc(100vw - 184px); } }

/* ---- Article headers (2026-11-23): Cinematic (default), Centrada, Panorámica ---- */
.hero-wide { margin: 0 auto 56px; max-width: var(--page); }
.hero-wide img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 4px; }
.hero-wide-21x9 img { aspect-ratio: 21 / 9; }
.hero-wide-12x5 img { aspect-ratio: 12 / 5; }
.hero-centrada { max-width: 880px; margin: 64px auto 40px; text-align: center; }
.hero-centrada .kicker-wrap { display: flex; justify-content: center; }
.hero-centrada h1, .hero-column h1 { margin: 0 0 16px; font: 620 clamp(36px, 4vw, 56px)/1.07 var(--font); letter-spacing: -.012em; font-variation-settings: "opsz" 30; color: var(--head); text-wrap: balance; }
.hero-centrada .hero-dek { max-width: 40ch; margin: 0 auto; font-size: 21px; line-height: 30px; color: var(--soft); }
.header-panoramica .hero-wide { margin-top: 24px; margin-bottom: 48px; }
.hero-column { max-width: 878px; margin: 0 0 48px calc(50% - 310px); }
.hero-column h1 { max-width: 20ch; font-size: clamp(32px, 3.4vw, 48px); }
.hero-column .hero-dek { max-width: 46ch; margin: 0; font-size: 20px; line-height: 30px; color: var(--soft); }
@media (max-width: 1120px) { .hero-column { max-width: 620px; margin-left: auto; margin-right: auto; } }
@media (max-width: 720px) {
  .hero-centrada { margin: 32px auto 28px; }
  .hero-centrada .hero-dek, .hero-column .hero-dek { font-size: 18px; line-height: 26px; }
  .hero-wide { margin-bottom: 32px; }
  .hero-wide img { border-radius: 2px; }
  .hero-wide-12x5 img { aspect-ratio: 16 / 9; }
}

/* ---- Gráficos (2026-11-23): the EAIBS chart rule. Ink, greys and paper only; one highlight, or one grey ramp for magnitude.
   Charts are inline SVG drawn by eaibs-memos/engine/tools/chart.py; colours live here so they follow light and dark mode. ---- */
.vault-chart { --vc-ink: var(--head); --vc-base: #8C8C8C; --vc-rule: var(--line);
  --vc-r1: #DEDEDE; --vc-r2: #C2C2C2; --vc-r3: #A3A3A3; --vc-r4: #7D7D7D; --vc-r5: #4F4F4F; --vc-r6: var(--head);
  margin: 48px 0; padding: 0; }
[data-theme=dark] .vault-chart { --vc-base: #8F8F8F; --vc-r1: #3A3A3A; --vc-r2: #565656; --vc-r3: #777777; --vc-r4: #9C9C9C; --vc-r5: #C8C8C8; --vc-r6: var(--head); }
.article-body .vault-chart p { margin: 0; }
.vc-title { font: 650 22px/28px var(--font) !important; letter-spacing: -.006em; color: var(--head); }
.vc-sub { margin-top: 6px !important; font-size: 16px !important; line-height: 24px !important; color: var(--soft); }
.vc-svg { display: block; width: 100%; height: auto; margin-top: 24px; overflow: visible; }
.vc-svg text { font-family: var(--font); font-size: 14px; fill: var(--head); font-variant-numeric: lining-nums tabular-nums; }
.vc-svg .vc-value { font-weight: 600; }
.vc-svg .vc-cap { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }
.vc-svg .vc-step { font-size: 16px; font-weight: 650; fill: var(--head); }
.vc-svg .vc-step-dark { fill: var(--bg); }
.vc-svg .vc-axis { stroke: var(--vc-rule); stroke-width: 1; shape-rendering: crispEdges; }
.vc-svg .vc-base { fill: var(--vc-base); }
.vc-svg .vc-hi { fill: var(--vc-ink); }
.vc-svg .vc-ramp-1 { fill: var(--vc-r1); } .vc-svg .vc-ramp-2 { fill: var(--vc-r2); } .vc-svg .vc-ramp-3 { fill: var(--vc-r3); }
.vc-svg .vc-ramp-4 { fill: var(--vc-r4); } .vc-svg .vc-ramp-5 { fill: var(--vc-r5); } .vc-svg .vc-ramp-6 { fill: var(--vc-r6); }
.vc-source { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.vc-data { margin-top: 12px; font-size: 14px; line-height: 20px; }
.vc-data summary { cursor: pointer; font-weight: 600; color: var(--head); }
.vc-data table { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vc-data th, .vc-data td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.vc-data thead th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.vc-data td { padding-left: 16px; color: var(--soft); }
/* Charts: a wide drawing on desktop, a narrow one (360 units) on phones, so chart text stays 12–14 px */
.vc-narrow { display: none; }
@media (max-width: 600px) { .vc-wide { display: none; } .vc-narrow { display: block; } }
/* Gate (H): centred, 6 px corners like the images, pill button, sign-in on its own line */
.gate { text-align: center; border-radius: 6px; padding: 48px 40px; }
.gate-text { margin-left: auto; margin-right: auto; }
.gate-actions { flex-direction: column; justify-content: center; gap: 16px; }
.gate a.gate-button, .article-body .gate a.gate-button { border-radius: 999px; padding: 14px 28px; }
@media (max-width: 600px) { .gate { padding: 32px 24px; } }
/* One shape language (H): tinted panels with 6 px corners; every black button a pill */
.book-banner, .book-feature, .about-ways, .gate { border-radius: 6px; }
.book-banner-cta, .book-cta, .landing-cta, .gate-button, .kg-btn { border-radius: 999px !important; }
.book-banner-cta, .book-cta, .landing-cta { padding-left: 24px; padding-right: 24px; }
/* "Sigue leyendo" (partials/related.hbs): six related pieces after an article, memo or book; 3 x 2 on desktop, 2 columns on phones.
   Book covers are 2:3, so in the 16:9 picture they are shown whole on the panel tone instead of cropped. */
.related { margin-top: var(--s-9, 72px); padding-top: var(--s-5, 32px); border-top: 1px solid var(--line); }
.related .section-label { margin: 0 0 24px; }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter, 32px); }
.related-grid .story { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.related-grid .is-book .picture img { object-fit: contain; padding: 12px 0; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
/* Queued book (#proximamente): subtitle under the title, then status, description and the notify button */
.book-subtitle p { margin: -6px 0 16px; font: 400 var(--t-xl)/1.35 var(--font); color: var(--soft, var(--muted)); max-width: 34ch; text-wrap: balance; }
.book-subtitle:empty { display: none; }
/* Section titles for readers without access: kept in the free part for the contents list, never shown in the text */
.vault-outline { display: none !important; }
.article-toc li > span { display: grid; grid-template-columns: 1.6em 1fr; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; font: 400 13.5px/1.45 var(--font); color: var(--muted); }
.article-toc li > span::before { content: counter(toc) "."; font-variant-numeric: tabular-nums; }
/* Ghost comments (partials/conversation.hbs), on the reading column */
.conversation { max-width: 720px; margin: var(--s-9, 72px) auto 0; }

/* ---- Header in one row (H, 2026-11-23): The Vault wordmark · menu · search, theme, Entrar, Suscríbete.
   Replaces the two-row header (logo above, menu below). Same row on reading pages; the reading bar takes the brand and menu space. */
.top, .top.compact, html:has(.reader) .top, html:has(.reader) .top.compact, html:has(.reader) .top.menu-open {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand menu tools";
  column-gap: 32px; row-gap: 0; padding-top: 0; padding-bottom: 0; --brand-h: 14px; }
.top .brand { justify-self: start; }
.top .menu, html:has(.reader) .top .menu { display: flex; justify-self: start; gap: 2px; }
.top .menu-toggle, html:has(.reader) .top .menu-toggle { display: none; }
.menu a, .top.compact .menu a { padding: 22px 10px; }              /* the whole bar height is the hit area; the current marker sits on its bottom edge */
.menu a[data-mega]::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .6; }
.brand.vault { gap: 12px; }
.brand-word { font: 650 21px/1 var(--font); letter-spacing: -.02em; color: var(--head); }
.brand-by { display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); font: 600 11px/1 var(--font); letter-spacing: .1em; color: var(--muted); }
.brand-by .brand-mark { height: var(--brand-h); }
.top-end { gap: 6px; }
.top-link { padding: 8px 10px; font: 500 14px/1 var(--font); color: var(--fg); text-decoration: none; white-space: nowrap; }
.top-link:hover { color: var(--head); text-decoration: underline; text-underline-offset: 4px; }
.top-cta { margin-left: 4px; padding: 10px 18px; border-radius: 999px; background: var(--action); color: var(--on-action); font: 600 14px/1 var(--font); text-decoration: none; white-space: nowrap; }
.top-cta:hover { background: var(--action-dark); }
.top.is-reading .menu { display: none; }
.top.is-reading .read-bar { grid-column: 1 / 3; }
html:has(.reader-hero.cinematic) .top:not(.compact):not(.menu-open) :is(.brand-word, .brand-by, .top-link) { color: #F6F4EE; }
html:has(.reader-hero.cinematic) .top:not(.compact):not(.menu-open) .brand-by { border-left-color: rgb(246 244 238 / .4); }
@media (max-width: 1080px) { .brand-by { display: none; } .top, .top.compact { column-gap: 20px; } }
@media (max-width: 900px) { .top-link { display: none; } }
/* Phones: ☰ · brand · search and Suscríbete. The ☰ opens the menu as a second row, with the Artículos panel. */
@media (max-width: 720px) {
  .top, .top.compact, html:has(.reader) .top, html:has(.reader) .top.compact {
    grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "toggle brand tools"; column-gap: 10px; min-height: 56px; }
  .top.menu-open, html:has(.reader) .top.menu-open { grid-template-areas: "toggle brand tools" "menu menu menu"; }
  .top .menu-toggle, html:has(.reader) .top .menu-toggle { display: inline-grid; grid-area: toggle; justify-self: start; }
  .top .menu, html:has(.reader) .top .menu { display: none; }
  .top.menu-open .menu, html:has(.reader) .top.menu-open .menu { display: flex; justify-self: stretch; overflow-x: auto; margin: 0 -16px; padding: 0 10px; }
  .menu a, .top.compact .menu a { padding: 14px 10px; }
  .brand-word { font-size: 19px; }
  .top-end .theme-toggle { display: none; }
  .top-cta { padding: 9px 14px; font-size: 13px; }
}
