/* The Engineering Brief. Va encima de /site.css (colores, Inter, filas, cursor, foto
   que sigue al cursor). Sin el menú ni el pie de la web: el Brief tiene su cabecera
   de periódico, su pie y su botón de modo claro/oscuro.

   Cuatro tamaños de letra más --ui, y cinco espacios. Nada más. */

:root {
  --t-xl: clamp(42px, 6vw, 120px);
  --t-l: clamp(30px, 3.4vw, 66px);
  --t-m: clamp(21px, 1.9vw, 36px);
  --t-s: clamp(16px, 1.15vw, 20px);

  --sp-xs: clamp(10px, 1.4vh, 14px);
  --sp-s: clamp(18px, 2.8vh, 30px);
  --sp-m: clamp(36px, 6vh, 72px);
  --sp-l: clamp(72px, 12vh, 144px);
  --sp-xl: clamp(112px, 18vh, 224px);

  --hh: 58px;   /* alto de la fila de secciones */
  --radius: 999px;
}

main { flex: 1; padding: var(--sp-l) var(--pad) 0; }
input, select { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.dim { opacity: .62; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a.u:hover, button.u:hover { opacity: .6; }
kbd { font: inherit; }

/* ================= Cabecera de periódico ================= */
header.b-mast {
  position: static; display: block; height: auto;
  padding: 16px var(--pad) clamp(18px, 3vh, 32px);
  border-bottom: 0; white-space: normal; text-align: center;
}
.b-mast-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1em; font-size: calc(var(--ui) * .86); }
.b-mast-line > :first-child { text-align: left; }
.b-mast-line > :last-child { text-align: right; }
.b-mast-line a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-mast-line a:hover { opacity: .6; }
.b-mast-title { margin-top: clamp(12px, 2.4vh, 24px); font-size: var(--t-l); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.b-mast.home .b-mast-title { margin-top: clamp(24px, 5vh, 56px); font-size: min(7.6vw, 176px); letter-spacing: -.05em; line-height: .95; }
.b-mast-title a { transition: opacity .2s; }
.b-mast-title a:hover { opacity: .75; }

.b-nav {
  position: sticky; top: 0; z-index: 6;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em;
  min-height: var(--hh); padding: 0 var(--pad);
  border-top: 2px solid var(--fg); border-bottom: 1px solid var(--line);
  background: var(--bg); font-size: var(--ui);
  transition: background-color .6s ease;
}
.b-nav .b-mini { justify-self: start; opacity: 0; pointer-events: none; transition: opacity .25s; white-space: nowrap; }
.b-nav.stuck .b-mini { opacity: 1; pointer-events: auto; }
.b-nav .tabs { display: flex; gap: clamp(20px, 2.8vw, 44px); }
.b-nav .tabs a { position: relative; padding: .6em 0; white-space: nowrap; }
.b-nav .tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .25em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.b-nav .tabs a:hover::after, .b-nav .tabs a[aria-current]::after { transform: scaleX(1); }
.b-nav .tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.b-iconbtn {
  display: inline-flex; align-items: center; gap: .55em;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: calc(var(--ui) * .9); white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.b-iconbtn:hover { border-color: var(--fg); }
.b-iconbtn svg { width: 15px; height: 15px; flex: none; }
.b-iconbtn kbd { opacity: .45; padding-left: .6em; border-left: 1px solid var(--line); }
.b-theme .dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.b-mast-line .mtools { display: none; }
@media (max-width: 1000px) {
  .b-mast-line { grid-template-columns: 1fr auto; align-items: center; }
  .b-mast-line > :nth-child(2), .b-mast-line .counts { display: none; }
  .b-mast-line .mtools { display: flex; gap: 8px; justify-self: end; }
  .b-mast-line .mtools .b-iconbtn { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .b-mast-title { font-size: clamp(26px, 7.4vw, 44px); }
  .b-mast.home .b-mast-title { font-size: 8.2vw; }
  .b-nav { display: block; min-height: 0; padding: 0 var(--pad); }
  .b-nav .b-mini, .b-nav .tools { display: none; }
  .b-nav .tabs { justify-content: space-between; gap: 0; font-size: 14.5px; }
  .b-nav .tabs a { padding: 14px 0; }
  main { padding-top: var(--sp-m); }
  .b-search input { font-size: var(--t-s); }
}
@media (hover: none) { .b-iconbtn kbd { display: none; } }

/* ================= Buscador ================= */
.b-search {
  position: relative; width: 100%; max-width: 40em;
  display: flex; align-items: center;
  height: clamp(60px, 7vh, 76px);
  border: 1px solid var(--fg); border-radius: var(--radius);
  padding: 0 8px 0 clamp(20px, 2vw, 28px);
  transition: box-shadow .2s;
}
.b-search:focus-within { box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg) 12%, transparent); }
.b-search .ico { width: 22px; height: 22px; flex: none; opacity: .62; }
.b-search input { flex: 1; min-width: 0; height: 100%; padding: 0 .7em; font-size: var(--t-m); letter-spacing: -.012em; outline: none; }
.b-search input::placeholder { color: var(--fg); opacity: .38; }
.b-search input::-webkit-search-cancel-button { display: none; }
.b-search button[type="submit"] {
  flex: none; height: calc(100% - 16px); padding: 0 clamp(18px, 2vw, 30px); border-radius: var(--radius);
  background: var(--fg); color: var(--bg); font-size: var(--ui); transition: opacity .2s;
}
.b-search button[type="submit"]:hover { opacity: .8; }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 8;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 4px clamp(16px, 1.6vw, 24px);
  max-height: min(62vh, 560px); overflow-y: auto;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45);
}
.results[hidden] { display: none; }
.results a, .results p {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 1em;
  padding: .85em 0; border-top: 1px solid var(--line);
  font-size: var(--ui); line-height: 1.35;
}
.results > :first-child { border-top: 0; }
.results p { display: block; }
.results a span:first-child { opacity: .45; }
.results a small { display: block; opacity: .62; font-size: inherit; margin-top: .2em; }
.results a[aria-selected="true"], .results a:hover { opacity: .6; }
.results mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* Capa de búsqueda a pantalla completa */
.b-layer { position: fixed; inset: 0; z-index: 20; background: var(--bg); color: var(--fg); overflow-y: auto; }
.b-layer[hidden] { display: none; }
.b-layer-in { padding: clamp(28px, 7vh, 88px) var(--pad) var(--sp-xl); }
.b-layer-top { display: flex; align-items: center; gap: var(--sp-m); border-bottom: 1px solid var(--fg); }
.b-layer-top input { flex: 1; min-width: 0; padding: .25em 0 .3em; font-size: var(--t-l); letter-spacing: -.03em; outline: none; }
.b-layer-top input::placeholder { color: var(--fg); opacity: .3; }
.b-layer-top input::-webkit-search-cancel-button { display: none; }
.b-layer-close { font-size: var(--ui); white-space: nowrap; display: inline-flex; gap: .6em; align-items: center; }
.b-layer-close kbd { opacity: .45; border: 1px solid var(--line); border-radius: 5px; padding: 0 .4em; font-size: .85em; }
.b-layer-close:hover { opacity: .6; }
.b-layer-hint { margin-top: var(--sp-s); font-size: var(--ui); opacity: .62; }
.b-layer-hint button { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-layer .results { position: static; max-height: none; overflow: visible; border: 0; border-radius: 0; padding: 0; margin-top: var(--sp-m); background: none; box-shadow: none; }
.b-layer .results a { grid-template-columns: 8em minmax(0, 1fr); padding: 1em 0; }
.b-layer .results a > span:last-child { font-size: var(--t-m); letter-spacing: -.015em; line-height: 1.2; }
.b-layer .results a small { font-size: var(--ui); letter-spacing: 0; margin-top: .35em; }
.b-layer .results p { font-size: var(--t-m); padding: 1em 0; }

/* ================= Tipografía y bloques ================= */
.b-eyebrow { display: flex; flex-wrap: wrap; gap: .3em 1.2em; font-size: var(--ui); margin-bottom: var(--sp-s); }
.b-eyebrow a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-eyebrow a:hover { opacity: .6; }
.b-xl { font-size: var(--t-xl); font-weight: 400; line-height: 1; letter-spacing: -.04em; text-wrap: balance; max-width: 13em; }
.b-l { font-size: var(--t-l); font-weight: 400; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; max-width: 17em; }
.b-m { font-size: var(--t-m); font-weight: 400; line-height: 1.25; letter-spacing: -.015em; }
.b-s { font-size: var(--t-s); line-height: 1.6; }
.b-s p + p { margin-top: 1em; }
.b-intro { max-width: 26em; margin-top: var(--sp-m); }
.b-info { display: flex; flex-wrap: wrap; gap: .4em 1.4em; margin-top: var(--sp-m); font-size: var(--ui); }
.b-info a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-info a:hover { opacity: .6; }
.b-actions { display: flex; flex-wrap: wrap; gap: .8em 1.8em; margin-top: var(--sp-m); font-size: var(--ui); }
.b-actions a, .b-actions button { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-actions a:hover, .b-actions button:hover { opacity: .6; }
.b-note { margin-top: var(--sp-s); font-size: var(--ui); line-height: 1.55; opacity: .62; max-width: 46em; }
.b-note a { text-decoration: underline; text-underline-offset: .2em; }

.b-sec { margin-top: var(--sp-xl); }
.b-sec.near { margin-top: var(--sp-l); }
.b-label {
  display: flex; gap: 1.2em; align-items: baseline;
  padding-top: .8em; margin-bottom: var(--sp-m);
  border-top: 1px solid var(--line); font-size: var(--ui);
}
.b-label h2 { font: inherit; }
.b-label .more { margin-left: auto; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-label .more:hover { opacity: .6; }
.b-label + .b-l { margin-bottom: var(--sp-m); }

/* ================= Imágenes ================= */
.b-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.b-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), opacity .3s; }
a:hover .b-frame img { transform: scale(1.025); }
.b-video { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.b-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.b-video .play {
  position: absolute; left: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .75em 1.1em; background: var(--bg); color: var(--fg);
  font-size: var(--ui); transition: padding .3s var(--ease);
}
.b-video .play::before { content: ''; border-left: .62em solid currentColor; border-top: .38em solid transparent; border-bottom: .38em solid transparent; }
.b-video:hover img { opacity: .82; }
.b-video:hover .play { padding-right: 1.5em; }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-media-note { margin-top: .8em; font-size: var(--ui); opacity: .62; }
.peek img { max-width: min(34vw, 540px); }

/* ================= Portada (A) ================= */
.b-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-l); align-items: end; }
.b-hero .b-search { margin-top: var(--sp-m); }
.b-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-mosaic a { display: block; min-width: 0; }
.b-mosaic span { display: block; margin-top: .55em; font-size: calc(var(--ui) * .9); opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.b-mosaic a:hover span { opacity: 1; }
.b-topics { display: flex; flex-wrap: wrap; gap: .4em 0; margin-top: var(--sp-s); font-size: var(--ui); }
.b-topics .lead { margin-right: 1.2em; opacity: .62; }
.b-topics a { white-space: nowrap; transition: opacity .2s; }
.b-topics a:not(:last-child)::after { content: '/'; margin: 0 .6em; opacity: .35; }
.b-topics a small { font-size: inherit; opacity: .45; margin-left: .3em; font-variant-numeric: tabular-nums; }
.b-topics a:hover { opacity: .6; }

/* ================= Tarjetas con fotograma (B, solo en "Featured" y similares) ================= */
.b-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-m) clamp(20px, 2vw, 32px); }
.b-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-tile { position: relative; display: flex; flex-direction: column; }
.b-tile .meta { display: flex; justify-content: space-between; gap: 1em; margin-top: var(--sp-xs); padding-top: .6em; border-top: 1px solid var(--line); font-size: calc(var(--ui) * .9); }
.b-tile .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tile h3 { margin-top: .55em; font-weight: 400; line-height: 1.3; letter-spacing: -.008em; transition: opacity .2s; }
.b-tile h3 a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.b-tile:hover h3 { opacity: .6; }
.b-tile.big { grid-column: span 2; grid-row: span 2; }
.b-tile.big h3 { line-height: 1.06; letter-spacing: -.03em; }
.b-tile .fig { display: flex; align-items: baseline; gap: .4em 1em; flex-wrap: wrap; margin-top: var(--sp-s); }
.b-tile .fig b { font-weight: 400; font-size: var(--t-l); line-height: 1; letter-spacing: -.035em; }
.b-tile .fig span { font-size: var(--ui); max-width: 24em; line-height: 1.45; opacity: .62; }

.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-m) var(--sp-m); }
.b-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-m) clamp(20px, 2vw, 32px); }
.b-card { position: relative; display: flex; flex-direction: column; }
.b-card .b-frame { margin-bottom: var(--sp-xs); }
.b-card .top { display: flex; justify-content: space-between; gap: 1em; padding-top: .6em; border-top: 1px solid var(--line); font-size: calc(var(--ui) * .9); margin-bottom: .6em; }
.b-card h3 { transition: opacity .2s; }
.b-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.b-card p { margin-top: .5em; opacity: .62; }
.b-card:hover h3 { opacity: .6; }
.b-card.text .top { margin-bottom: var(--sp-xs); }

.b-pillbtn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 52px; padding: 0 28px; border-radius: var(--radius);
  border: 1px solid var(--fg); font-size: var(--ui);
  transition: background-color .2s, color .2s;
}
.b-pillbtn:hover { background: var(--fg); color: var(--bg); }
.b-center { display: flex; justify-content: center; margin-top: var(--sp-m); }

/* ================= Filas (A) ================= */
.rows .row { position: relative; padding: .9em 0 1em; column-gap: var(--sp-m); }
.rows .title { font-size: var(--t-m); line-height: 1.2; letter-spacing: -.015em; }
.rows .meta { max-width: 48em; font-size: var(--ui); line-height: 1.5; }
.rows .meta .sum { display: block; margin: .15em 0 .35em; opacity: .62; }
.rows .meta .bits { display: flex; flex-wrap: wrap; gap: .2em 1.4em; }
.rows .side { text-align: right; padding-top: .3em; }
.rows .side small { display: block; font-size: inherit; opacity: .45; }
.rows li[hidden] { display: none; }
@media (max-width: 720px) { .rows .side { text-align: left; } }

.b-cols .row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.b-thumbs { display: flex; align-items: flex-start; gap: 6px; grid-column: 2; grid-row: 1 / span 2; }
.b-thumbs img { width: clamp(72px, 7.4vw, 140px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; flex: none; }
@media (max-width: 720px) { .b-thumbs { grid-column: 1; grid-row: auto; margin-top: .6em; } }

/* ================= Bloque en negativo ================= */
.b-invert {
  margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad));
  padding: var(--sp-l) var(--pad);
  background: var(--fg); color: var(--bg);
  transition: background-color .6s ease, color .6s ease;
}
.b-invert .b-label { border-top-color: currentColor; }
.b-flow { display: flex; flex-wrap: wrap; row-gap: .2em; font-size: var(--t-m); line-height: 1.45; letter-spacing: -.012em; max-width: 34em; }
.b-flow a { white-space: nowrap; transition: opacity .2s; }
.b-flow a:hover { opacity: .6; }
.b-flow a sup { font-size: .5em; margin-left: .15em; opacity: .6; font-variant-numeric: tabular-nums; }
.b-flow a:not(:last-child)::after { content: '/'; margin: 0 .45em; opacity: .4; }
.b-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-m); margin-top: var(--sp-l); }
.b-stats div { padding-top: .8em; border-top: 1px solid currentColor; }
.b-stats b { display: block; font-weight: 400; font-size: var(--t-l); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.b-stats span { display: block; margin-top: .6em; font-size: var(--ui); }

.b-edition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--sp-l); align-items: start; }
.b-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.b-strip a { display: block; }
.b-strip a:hover img { opacity: .7; }

/* ================= Biblioteca de ideas ================= */
.b-libsearch { margin-top: var(--sp-m); max-width: none; }
.b-filterbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--sp-s); }
.b-dd { position: relative; }
.b-ddbtn {
  display: inline-flex; align-items: center; gap: .55em;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--ui); transition: border-color .2s, background-color .2s, color .2s;
}
.b-ddbtn:hover, .b-ddbtn[aria-expanded="true"] { border-color: var(--fg); }
.b-ddbtn .n { font-variant-numeric: tabular-nums; min-width: 1.4em; height: 1.4em; border-radius: var(--radius); background: var(--fg); color: var(--bg); font-size: .78em; display: inline-grid; place-items: center; }
.b-ddbtn .n:empty { display: none; }
.b-ddbtn .chev { width: .6em; height: .6em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .2s; }
.b-ddbtn[aria-expanded="true"] .chev { transform: translateY(.1em) rotate(-135deg); }
.b-ddpanel {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 9;
  width: max-content; min-width: 260px; max-width: min(560px, 86vw); max-height: 60vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45);
}
.b-ddpanel[hidden] { display: none; }
.b-ddpanel.cols { columns: 2; column-gap: 8px; }
.b-ddpanel label {
  display: flex; align-items: center; gap: .7em; break-inside: avoid;
  padding: .55em .7em; border-radius: 10px; font-size: var(--ui); cursor: pointer;
}
.b-ddpanel label:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.b-ddpanel input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; flex: none; border: 1.5px solid var(--fg); border-radius: 4px; display: grid; place-items: center; }
.b-ddpanel input:checked { background: var(--fg); }
.b-ddpanel input:checked::after { content: ''; width: 7px; height: 4px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg); }
.b-ddpanel small { margin-left: auto; padding-left: 1em; opacity: .45; font-size: inherit; font-variant-numeric: tabular-nums; }
.b-ddpanel label.zero { opacity: .35; }
.b-filterbar .spacer { flex: 1; }
.b-filterbar .count { font-size: var(--ui); }
.b-sort { display: inline-flex; align-items: center; gap: .5em; font-size: var(--ui); }
.b-sort select { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; appearance: none; -webkit-appearance: none; }
.b-sort select option { color: #0a0a0a; background: #fff; }
.b-active { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-s); }
.b-active:empty { display: none; }
.b-chip {
  display: inline-flex; align-items: center; gap: .6em;
  height: 34px; padding: 0 8px 0 14px; border-radius: var(--radius);
  background: var(--fg); color: var(--bg); font-size: calc(var(--ui) * .9);
}
.b-chip span[aria-hidden] { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 22%, transparent); font-size: 13px; }
.b-chip:hover { opacity: .85; }
.b-clear { font-size: calc(var(--ui) * .9); text-decoration: underline; text-underline-offset: .2em; padding: 0 .4em; }
.b-libres { margin-top: var(--sp-m); }
.b-empty { padding: var(--sp-s) 0 var(--sp-m); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b-empty p { margin-top: .5em; font-size: var(--ui); opacity: .62; }
.b-empty .b-actions { margin-top: var(--sp-s); }
.b-empty[hidden] { display: none; }

/* Buscador de empresas */
.b-finder { margin-bottom: var(--sp-m); max-width: 34em; height: clamp(54px, 6.4vh, 66px); }
.b-finder input { font-size: var(--t-s); }

/* ================= Idea y charla ================= */
.b-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-l); align-items: end; }
.b-head.solo { display: block; }
.b-article { display: grid; grid-template-columns: minmax(0, 38em) minmax(0, 1fr); gap: var(--sp-l); margin-top: var(--sp-xl); }
.b-article aside { position: sticky; top: calc(var(--hh) + var(--sp-m)); align-self: start; justify-self: end; width: 100%; max-width: 20em; display: grid; gap: var(--sp-m); font-size: var(--ui); }
.b-article aside > div { padding-top: .8em; border-top: 1px solid var(--line); }
.b-article aside p { margin-top: .5em; opacity: .62; line-height: 1.5; }
.b-article aside nav { margin-top: .5em; }
.b-article aside nav a { display: block; padding: .15em 0; opacity: .62; transition: opacity .2s; }
.b-article aside nav a:hover { opacity: 1; }
.b-article aside .bar { display: flex; gap: 4px; margin-top: .6em; }
.b-article aside .bar i { width: 28px; height: 3px; background: var(--fg); opacity: .15; }
.b-article aside .bar i.on { opacity: 1; }
.b-article aside .links { display: grid; gap: .35em; margin-top: .5em; }
.b-article aside .links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.b-block + .b-block { margin-top: var(--sp-l); }
.b-block .b-label { margin-bottom: var(--sp-s); }
.b-list { list-style: none; border-top: 1px solid var(--line); }
.b-list li { padding: .85em 0 .9em; border-bottom: 1px solid var(--line); font-size: var(--t-s); line-height: 1.55; }
.b-evidence li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4em 1.6em; }
.b-evidence .ctx, .b-evidence .kind { grid-column: 1; font-size: var(--ui); line-height: 1.5; }
.b-evidence .ctx { opacity: .62; }
.b-evidence .kind { display: flex; flex-wrap: wrap; gap: .2em 1.2em; }
.b-evidence .kind span + span { opacity: .45; }
.b-evidence .ts { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
.ts { font-size: var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: opacity .2s; }
.ts:hover { opacity: .6; }
.ts::before { content: '▶'; display: inline-block; font-size: .65em; margin-right: .5em; vertical-align: .12em; }
@media (max-width: 560px) {
  .b-evidence li { grid-template-columns: 1fr; }
  .b-evidence .ts { grid-column: 1; grid-row: auto; justify-self: start; }
}
.b-source { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: var(--sp-s); padding: var(--sp-s) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b-source + .b-source { border-top: 0; }
.b-source .when, .b-source .who { font-size: var(--ui); }
.b-source .when { opacity: .62; }
.b-source h3 { margin: .3em 0; }
.b-source h3 a:hover { opacity: .6; }
.b-source .moments { display: grid; gap: .3em; margin-top: var(--sp-xs); font-size: var(--ui); }
.b-source .moments a { display: flex; gap: 1em; align-items: baseline; }
.b-source .moments a:hover { opacity: .6; }
.b-links { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin-top: var(--sp-xs); font-size: var(--ui); }
.b-links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-links a:hover { opacity: .6; }
@media (max-width: 560px) { .b-source { grid-template-columns: 1fr; } }
.b-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-s) var(--sp-m); margin-top: var(--sp-m); font-size: var(--ui); }
.b-facts div { padding-top: .8em; border-top: 1px solid var(--line); }
.b-facts dt { opacity: .45; }
.b-facts dd { margin-top: .3em; }
.b-facts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-quote cite { display: block; margin-top: var(--sp-s); font-size: var(--ui); font-style: normal; opacity: .62; }

/* ================= Colección ================= */
.b-numbered { list-style: none; counter-reset: n; border-top: 1px solid var(--line); }
.b-numbered > li { counter-increment: n; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) minmax(0, 16em); gap: 0 var(--sp-m); padding: var(--sp-s) 0; border-bottom: 1px solid var(--line); }
.b-numbered > li::before { content: counter(n, decimal-leading-zero); font-size: var(--ui); font-variant-numeric: tabular-nums; padding-top: .45em; }
.b-numbered h3 a:hover { opacity: .6; }
.b-numbered .sum { margin-top: var(--sp-xs); opacity: .62; }
.b-numbered .why { margin-top: var(--sp-xs); }
.b-numbered .bits { margin-top: var(--sp-xs); display: flex; flex-wrap: wrap; gap: .2em 1.2em; font-size: var(--ui); }
.b-numbered .bits a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 900px) {
  .b-numbered > li { grid-template-columns: 2.6em minmax(0, 1fr); }
  .b-numbered > li > a { grid-column: 2; margin-top: var(--sp-s); max-width: 22em; }
}

/* ================= Pie ================= */
footer.b-foot { margin-top: var(--sp-xl); }
footer.b-foot a:hover { opacity: .6; }

/* ================= Móvil ================= */
@media (max-width: 1100px) {
  .b-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-tiles.three, .b-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .b-hero, .b-head, .b-edition { grid-template-columns: minmax(0, 1fr); gap: var(--sp-m); }
  .b-article { grid-template-columns: minmax(0, 1fr); margin-top: var(--sp-l); }
  .b-article aside { position: static; max-width: none; justify-self: stretch; grid-template-columns: 1fr 1fr; }
  .b-article aside .toc { display: none; }
  .b-article aside.first { order: -1; }
  .b-grid { grid-template-columns: 1fr 1fr; }
  .b-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .b-tiles, .b-tiles.three, .b-grid, .b-grid.four { grid-template-columns: 1fr; }
  .b-tile.big { grid-column: auto; grid-row: auto; }
  .b-stats { grid-template-columns: 1fr 1fr; }
  .b-article aside { grid-template-columns: 1fr; }
  .b-search { padding-left: 16px; }
  .b-search button[type="submit"] { padding: 0 16px; }
  .b-ddpanel.cols { columns: 1; }
}
@media (hover: hover) and (pointer: fine) { input, select, label { cursor: none; } }
@media (prefers-reduced-motion: reduce) { .b-frame img, .b-video img { transition: none; } }
@media print { header, footer, .b-nav, .b-article aside, .b-filterbar, .cursor, .peek { display: none !important; } }

/* Móvil: lo que tiene que ganar a las reglas de arriba */
@media (max-width: 1000px) {
  .b-mast-line .mtools .lbl { display: none; }
  .b-search input { font-size: var(--t-s); }
  .b-search { height: 58px; }
}

/* ================= Iteración 2 ================= */
/* Aviso de vista previa */
.b-preview { padding: 10px var(--pad); background: var(--fg); color: var(--bg); font-size: calc(var(--ui) * .86); line-height: 1.45; }

/* Migas de pan */
.b-crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: calc(var(--ui) * .9); margin-bottom: var(--sp-m); }
.b-crumbs a { opacity: .62; transition: opacity .2s; }
.b-crumbs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }
.b-crumbs span[aria-hidden] { opacity: .3; }
.b-crumbs [aria-current] { opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }

/* Estado editorial (solo en la vista previa) */
.b-status { display: inline-block; margin: .6em 0 0; padding: .25em .7em; border: 1px dashed var(--fg); border-radius: var(--radius); font-size: calc(var(--ui) * .78); line-height: 1.3; }
.rows .title .b-status { margin: 0 .7em .3em 0; vertical-align: middle; font-size: calc(var(--ui) * .7); letter-spacing: 0; }
.b-status.s-draft, .b-status.s-needs_review { border-style: dotted; opacity: .8; }

/* Una sola búsqueda: la caja grande abre el mismo panel que la cabecera */
.b-trigger { cursor: pointer; text-align: left; }
.b-trigger .ph { flex: 1; padding: 0 .7em; font-size: var(--t-m); letter-spacing: -.012em; opacity: .38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-trigger .btn { flex: none; display: inline-flex; align-items: center; height: calc(100% - 16px); padding: 0 clamp(18px, 2vw, 30px); border-radius: var(--radius); background: var(--fg); color: var(--bg); font-size: var(--ui); }
.b-trigger:hover .ph { opacity: .6; }
@media (max-width: 1000px) { .b-trigger .ph { font-size: var(--t-s); } }

/* Portada */
.b-intro-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-m); max-width: 46em; margin: 0 auto; text-align: center; justify-items: center; }
.b-intro-home .b-m { opacity: .8; }
.b-browse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-m); font-size: var(--ui); }
.b-browse > div { padding-top: .7em; border-top: 1px solid var(--line); }
.b-browse .b-topics { margin-top: .6em; }
.b-browse p { margin-top: .6em; line-height: 1.6; }
@media (max-width: 800px) { .b-browse { grid-template-columns: 1fr; } }

/* Ficha: fuente, ponente y lectura nuestra se distinguen a simple vista */
.b-kindnote { margin-left: auto; opacity: .55; font-size: calc(var(--ui) * .85); text-align: right; }
.b-block.k-view .b-s { padding-left: 1.1em; border-left: 2px solid var(--fg); }
.b-block.k-ours > .b-label + * , .b-block.k-ours .b-s, .b-block.k-ours .b-sub, .b-block.k-ours .b-list { }
.b-block.k-ours { padding: var(--sp-s) clamp(16px, 2vw, 28px) var(--sp-s); border: 1px dashed var(--line); border-radius: 14px; }
.b-block.k-ours .b-label { border-top: 0; padding-top: 0; }
.b-sub { margin-top: var(--sp-s); margin-bottom: .4em; font-size: var(--ui); opacity: .62; }
.b-block.k-view .b-evidence { margin-top: var(--sp-s); }
.b-source.noimg { grid-template-columns: 1fr; }

/* Empresas sin ideas: más discretas */
.b-quiet .title { font-size: var(--t-s); opacity: .7; }
.b-quiet .row { padding: .55em 0 .6em; }

/* ---- Coming soon: the only public page while no idea is approved ---- */
.b-soon { max-width: 1400px; padding-bottom: var(--sp-l); }
.b-soon-k { font-size: var(--ui); text-transform: uppercase; letter-spacing: .08em; opacity: .62; margin-bottom: var(--sp-s); }
.b-soon-t { max-width: 13em; line-height: 1; letter-spacing: -.045em; }
.b-soon-d { max-width: 30em; margin-top: var(--sp-m); line-height: 1.3; }
.b-soon-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-s) clamp(24px, 3vw, 56px); margin-top: var(--sp-l); }
.b-soon-cols > div { border-top: 1px solid var(--fg); padding-top: var(--sp-xs); }
.b-soon-cols h3 { margin-bottom: .5em; }
.b-soon-cols p { font-size: var(--t-s); line-height: 1.45; opacity: .78; max-width: 24em; }
.b-soon-s { margin-top: var(--sp-l); padding: var(--sp-xs) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--t-s); display: flex; gap: 1.2em; flex-wrap: wrap; }
.b-soon-s span { opacity: .62; min-width: 6em; }
.b-soon .b-actions { margin-top: var(--sp-m); }
@media (max-width: 760px) { .b-soon-cols { grid-template-columns: 1fr; } }

/* ---- Synthesis: cases compared, one card per case ---- */
.b-cases { display: grid; gap: var(--sp-s); }
.b-case { border-top: 1px solid var(--fg); padding-top: var(--sp-xs); }
.b-case-who { font-size: var(--t-s); font-weight: 500; margin-bottom: .6em; }
.b-case-who a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.b-case-who span { font-weight: 400; opacity: .62; margin-left: .6em; }
.b-case dl { display: grid; grid-template-columns: minmax(8em, 30%) 1fr; gap: .45em 1.2em; font-size: var(--t-s); line-height: 1.4; }
.b-case dt { opacity: .62; }
@media (max-width: 600px) { .b-case dl { grid-template-columns: 1fr; gap: .15em; } .b-case dd { margin-bottom: .6em; } }

/* Home page without conference frames: the hero and the edition take the full width */
.b-hero.solo, .b-edition.solo { grid-template-columns: minmax(0, 1fr); }
.b-hero.solo > div { max-width: 52em; }
/* Home search: smaller text inside the box than in the general search */
.b-hero .b-search { height: clamp(54px, 6vh, 64px); }
.b-hero .b-search input, .b-hero .b-trigger .ph { font-size: var(--t-s); }
/* Home hero: a bigger mosaic so the page leads with the talks */
@media (min-width: 1001px) {
  .b-hero:not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
  .b-hero:not(.solo) .b-xl { font-size: clamp(44px, 4.6vw, 84px); }
  .b-mosaic { gap: 16px; }
}

/* Frame from the original talk video on an idea page: whole frame, credited, linked to the moment */
.b-figure { margin: var(--sp-m) 0 var(--sp-l); }
.b-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.b-figure a:hover img { opacity: .9; }
.b-figure figcaption { margin-top: .7em; font-size: var(--ui); line-height: 1.45; }
.b-figure .credit { display: block; margin-top: .25em; opacity: .62; }
.b-figure .credit a { text-decoration: underline; text-underline-offset: .2em; }

/* Home hero: one big title per screen (the masthead); the claim is a size down */
.b-hero-h1 { font-size: clamp(34px, 3.6vw, 60px); font-weight: 400; line-height: 1.06; letter-spacing: -.03em; margin: 0; }

