/* Home editorial flow v3 — MUBI-style image banners + LRB-style reading clusters.
   Original implementation for davidportodiaz.com. The reference sites inform
   rhythm and hierarchy only; no third-party code or branding is copied. */

:root{
  --dp-home-paper:#f6f2e9;
  --dp-home-paper-soft:#fbf9f4;
  --dp-home-stone:#e6e1d7;
  --dp-home-stone-deep:#d9d3c8;
  --dp-home-rule:rgba(23,20,18,.20);
  --dp-home-rule-soft:rgba(23,20,18,.11);
  --dp-home-blue:#d4e8ee;
  --dp-home-blue-ink:#254f60;
  --dp-home-sage:#dfe6dc;
  --dp-home-sage-ink:#3d5747;
  --dp-home-blush:#eadedb;
  --dp-home-ink:#1b1917;
  --dp-home-muted:#6f6a64;
}

html.v1[data-lrb-home="true"] .editorial-home-flow{
  display:grid;
  background:var(--dp-home-paper);
  color:var(--dp-home-ink);
}

/* --- Feature banners ---------------------------------------------------- */
html.v1[data-lrb-home="true"] .feature-banner{
  position:relative;
  isolation:isolate;
  width:100%;
  min-height:clamp(230px,29vw,410px);
  display:grid;
  align-items:end;
  overflow:hidden;
  border-top:1px solid var(--dp-home-rule-soft);
  border-bottom:1px solid var(--dp-home-rule-soft);
  background:#6f6c66;
}
html.v1[data-lrb-home="true"] .feature-banner__media,
html.v1[data-lrb-home="true"] .feature-banner__media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
html.v1[data-lrb-home="true"] .feature-banner__media{z-index:-2;background:inherit}
html.v1[data-lrb-home="true"] .feature-banner__media img{
  display:block;
  object-fit:cover;
  object-position:center center;
  transform:scale(1.001);
}
html.v1[data-lrb-home="true"] .feature-banner::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(10,10,10,.58) 0%,rgba(10,10,10,.18) 52%,rgba(10,10,10,.06) 100%);
}
html.v1[data-lrb-home="true"] .feature-banner__inner{
  width:min(100%,var(--layout-max));
  margin:0 auto;
  padding:clamp(2rem,4vw,4rem) var(--page-gutter);
}
html.v1[data-lrb-home="true"] .feature-banner__copy{
  max-width:min(39rem,72vw);
  color:#fffdfa;
  text-shadow:0 1px 18px rgba(0,0,0,.22);
}
html.v1[data-lrb-home="true"] .feature-banner__eyebrow{
  margin:0 0 .65rem;
  font-family:var(--font-ui);
  font-size:.72rem;
  line-height:1.2;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,253,250,.76);
}
html.v1[data-lrb-home="true"] .feature-banner h2{
  margin:0;
  max-width:13ch;
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(2.35rem,4.4vw,5rem);
  line-height:.91;
  letter-spacing:-.025em;
  text-wrap:balance;
}
html.v1[data-lrb-home="true"] .feature-banner__deck{
  margin:.8rem 0 0;
  max-width:42ch;
  font-family:var(--font-reading);
  font-size:clamp(.98rem,1.1vw,1.12rem);
  line-height:1.45;
  color:rgba(255,253,250,.84);
}
html.v1[data-lrb-home="true"] .feature-banner__link{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  margin-top:1rem;
  color:#fffdfa;
  font-family:var(--font-ui);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.04em;
  text-decoration:none;
  border-bottom:1px solid rgba(255,253,250,.62);
}
html.v1[data-lrb-home="true"] .feature-banner__link:hover,
html.v1[data-lrb-home="true"] .feature-banner__link:focus-visible{border-bottom-color:#fffdfa}
html.v1[data-lrb-home="true"] .feature-banner--manecillas{background:linear-gradient(120deg,#493e35,#8b7461 60%,#b09a84)}
html.v1[data-lrb-home="true"] .feature-banner--image-only{
  height:auto;
  aspect-ratio:2172/724;
  min-height:0;
  align-items:stretch;
  background:#d9d0c3;
}
html.v1[data-lrb-home="true"] .feature-banner--image-only::after,
html.v1[data-lrb-home="true"] .feature-banner--image-only .feature-banner__inner{
  display:none;
}
html.v1[data-lrb-home="true"] .feature-banner__image-link{
  position:absolute;
  inset:0;
  display:block;
  color:inherit;
  text-decoration:none;
}
html.v1[data-lrb-home="true"] .feature-banner--image-only .feature-banner__media{
  z-index:0;
}
html.v1[data-lrb-home="true"] .feature-banner--image-only .feature-banner__media img{
  object-fit:cover;
  object-position:center center;
  transform:none;
}
html.v1[data-lrb-home="true"] .feature-banner--samuel{background:linear-gradient(120deg,#182738,#35546b 62%,#7591a0)}
html.v1[data-lrb-home="true"] .feature-banner--memoria{background:linear-gradient(120deg,#29352f,#566b5d 62%,#869286)}
html.v1[data-lrb-home="true"] .feature-banner--tools{background:linear-gradient(120deg,#38434a,#627681 62%,#9aa9ae)}
html.v1[data-lrb-home="true"] .feature-banner--tools::after{background:linear-gradient(90deg,rgba(12,19,23,.67),rgba(12,19,23,.22) 60%,rgba(12,19,23,.07))}
html.v1[data-lrb-home="true"] .feature-banner--memoria{
  background:
    linear-gradient(90deg,rgba(9,17,23,.42),rgba(9,17,23,.12) 45%,rgba(9,17,23,0)),
    url("/assets/banners/memoria-tierras-norte-home-background.png") center 45%/cover no-repeat,
    #17242e;
}
html.v1[data-lrb-home="true"] .feature-banner--memoria .feature-banner__media{
  display:none;
}
html.v1[data-lrb-home="true"] .feature-banner--memoria .feature-banner__media img{
  inset:0;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  object-position:center 45%;
  transform:none;
  filter:brightness(1.95) saturate(1.42);
}
html.v1[data-lrb-home="true"] .feature-banner--memoria::after{
  z-index:1;
  background:none;
}
html.v1[data-lrb-home="true"] .feature-banner--memoria::before{
  content:"";
  position:absolute;
  z-index:2;
  right:clamp(10rem,26vw,36rem);
  top:50%;
  width:clamp(145px,15vw,225px);
  height:78%;
  background:url("/assets/david-porto-memoria-sinfondo.webp") center/contain no-repeat;
  filter:drop-shadow(0 24px 28px rgba(2,8,18,.36));
  transform:translateY(-50%);
  pointer-events:none;
}
html.v1[data-lrb-home="true"] .feature-banner--memoria .feature-banner__inner{
  position:relative;
  z-index:3;
}
html.v1[data-lrb-home="true"] .feature-banner--memoria .feature-banner__copy{
  max-width:min(32rem,58vw);
  text-shadow:0 2px 18px rgba(0,0,0,.5);
}
html.v1[data-lrb-home="true"] .feature-banner--tools{
  min-height:clamp(210px,25vw,320px);
  place-items:center;
  background:
    linear-gradient(0deg,rgba(255,253,250,.22),rgba(255,253,250,.08)),
    linear-gradient(120deg,#33414a,#637782 62%,#a4b1b5);
}
html.v1[data-lrb-home="true"] .feature-banner--tools::after{background:rgba(15,24,29,.34)}
html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__media{display:none}
html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__inner{
  width:min(100%,var(--layout-max));
  display:grid;
  place-items:center;
}
html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__copy{
  max-width:min(46rem,82vw);
  text-align:center;
  justify-self:center;
  display:grid;
  justify-items:center;
}
html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__eyebrow,
html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__deck{
  margin-left:auto;
  margin-right:auto;
}
html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner h2,
html.v1[data-lrb-home="true"] .feature-banner--tools h2{
  max-width:none;
}

/* --- Editorial clusters ------------------------------------------------ */
html.v1[data-lrb-home="true"] .editorial-cluster{
  width:100%;
  padding:clamp(1.65rem,3vw,3rem) max(var(--page-gutter),calc((100vw - var(--layout-max))/2));
  background:linear-gradient(180deg,var(--dp-home-stone) 0%,#ebe7df 100%);
  border-bottom:1px solid var(--dp-home-rule-soft);
}
html.v1[data-lrb-home="true"] .editorial-cluster__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:1rem;
  margin-bottom:clamp(1rem,2vw,1.5rem);
  padding-bottom:.7rem;
  border-bottom:1px solid var(--dp-home-rule);
}
html.v1[data-lrb-home="true"] .editorial-cluster__head p{margin:0;color:var(--dp-home-muted);font-family:var(--font-reading)}
html.v1[data-lrb-home="true"] .editorial-cluster__head h2{
  margin:.18rem 0 0;
  font-family:var(--font-display);
  font-size:clamp(1.75rem,2.8vw,2.65rem);
  font-weight:400;
  line-height:.98;
}
html.v1[data-lrb-home="true"] .editorial-cluster__all{
  color:var(--dp-home-ink);
  font-family:var(--font-ui);
  font-size:.78rem;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid var(--dp-home-rule);
  padding-bottom:.2rem;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid{
  display:grid;
  grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  column-gap:10px;
  row-gap:10px;
  min-height:clamp(420px,41vw,610px);
  border-top:1px solid var(--dp-home-rule);
  border-left:1px solid var(--dp-home-rule);
  background:
    linear-gradient(var(--dp-home-rule),var(--dp-home-rule)) right top/1px 100% no-repeat,
    linear-gradient(var(--dp-home-rule),var(--dp-home-rule)) left bottom/100% 1px no-repeat,
    var(--dp-home-stone);
  padding:10px;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"]{
  grid-template-columns:minmax(0,.95fr) repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(205px,auto));
  min-height:0;
  align-items:stretch;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-book"]{grid-column:1;grid-row:1 / span 2}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-author"]{grid-column:2 / span 2;grid-row:1}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-buy"]{grid-column:4;grid-row:1}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-beta"]{grid-column:2 / span 2;grid-row:2}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-email"]{grid-column:4;grid-row:2}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"]{
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  grid-template-rows:repeat(3,minmax(0,1fr));
  height:clamp(455px,36vw,520px);
  min-height:0;
  align-items:stretch;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"] .editorial-card[data-card-key="samuel-book"]{grid-column:1;grid-row:1 / span 3}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"] .editorial-card:not([data-card-key="samuel-book"]){
  padding:clamp(.95rem,1.2vw,1.15rem);
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"] .editorial-card:not([data-card-key="samuel-book"]) h3{
  font-size:clamp(1.22rem,1.45vw,1.6rem);
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"] .editorial-card:not([data-card-key="samuel-book"]) .editorial-card__text{
  display:none;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"],
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"]{
  grid-template-rows:minmax(220px,1fr);
  min-height:0;
  align-items:stretch;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"]{grid-template-columns:repeat(4,minmax(0,1fr))}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"]{grid-template-columns:repeat(3,minmax(0,1fr))}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"] .editorial-card--lead{
  grid-row:auto;
  padding:clamp(1rem,1.35vw,1.35rem);
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"] .editorial-card--lead h3,
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"] .editorial-card--lead h3{
  font-size:clamp(1.25rem,1.6vw,1.75rem);
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"] .editorial-card__text,
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"] .editorial-card__text{
  font-size:.95rem;
}
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"] .editorial-card,
html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"] .editorial-card{
  min-height:220px;
}
html.v1[data-lrb-home="true"] .editorial-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:clamp(1rem,1.35vw,1.35rem);
  background:var(--dp-home-paper-soft);
  border:1px solid var(--dp-home-rule);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48);
  overflow:hidden;
}
html.v1[data-lrb-home="true"] .editorial-card > .editorial-card__arrow{margin-top:auto}
html.v1[data-lrb-home="true"] .editorial-card__body{
  min-width:0;
  display:flex;
  flex:1;
  flex-direction:column;
}
html.v1[data-lrb-home="true"] .editorial-card--lead{
  grid-row:1 / span 2;
  padding:0;
}
html.v1[data-lrb-home="true"] .editorial-card__media{
  position:relative;
  min-height:54%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#ddd7cc;
}
html.v1[data-lrb-home="true"] .editorial-card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform var(--motion-continuity) var(--ease-standard);
}
html.v1[data-lrb-home="true"] .editorial-card:hover .editorial-card__media img{transform:scale(1.018)}
html.v1[data-lrb-home="true"] .editorial-card--lead .editorial-card__body{
  padding:clamp(1.35rem,2vw,2rem);
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-book"] .editorial-card__media,
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__media{
  min-height:0;
  aspect-ratio:1.45/1;
  display:grid;
  place-items:center;
  background:transparent;
  border-bottom:1px solid var(--dp-home-rule-soft);
  overflow:visible;
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-book"] .editorial-card__media img,
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__media img{
  position:relative;
  z-index:1;
  width:auto;
  height:clamp(145px,12.2vw,190px);
  max-width:52%;
  max-height:none;
  object-fit:contain;
  padding:0;
  filter:drop-shadow(0 16px 24px rgba(23,20,18,.18));
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-book"] .editorial-card__media{
  aspect-ratio:1.34/1;
  padding-top:.35rem;
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-book"] .editorial-card__body{
  padding-top:.85rem;
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__media{
  aspect-ratio:1.95/1;
  background:transparent url("/assets/samuel_entre_mundos_3d.webp") center center/contain no-repeat;
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__media img{display:none}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__body{
  padding:clamp(1.05rem,1.45vw,1.45rem);
}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] h3{
  font-size:clamp(1.65rem,2.35vw,2.35rem);
}
html.v1[data-lrb-home="true"] .editorial-card__eyebrow{
  margin:0 0 .6rem;
  color:var(--dp-home-muted);
  font-family:var(--font-ui);
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}
html.v1[data-lrb-home="true"] .editorial-card h3{
  margin:0 0 .55rem;
  font-family:var(--font-display);
  font-size:clamp(1.45rem,2vw,2.2rem);
  font-weight:400;
  line-height:1;
  letter-spacing:-.012em;
  text-wrap:balance;
}
html.v1[data-lrb-home="true"] .editorial-card--lead h3{font-size:clamp(1.9rem,3vw,3rem)}
html.v1[data-lrb-home="true"] .editorial-card h3 a{color:inherit;text-decoration:none}
html.v1[data-lrb-home="true"] .editorial-card h3 a:hover,
html.v1[data-lrb-home="true"] .editorial-card h3 a:focus-visible{text-decoration:underline;text-underline-offset:.12em}
html.v1[data-lrb-home="true"] .editorial-card__meta{
  margin:0 0 .55rem;
  color:#77726c;
  font-family:var(--font-reading);
  font-size:.82rem;
  line-height:1.35;
}
html.v1[data-lrb-home="true"] .editorial-card__text{
  margin:0;
  max-width:44ch;
  color:#625e59;
  font-family:var(--font-reading);
  line-height:1.48;
}
html.v1[data-lrb-home="true"] .editorial-card__arrow{
  display:inline-flex;
  align-items:center;
  width:auto;
  height:auto;
  margin-top:auto;
  padding-top:.75rem;
  color:inherit;
  text-decoration:none;
}
html.v1[data-lrb-home="true"] .editorial-card__arrow span{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:inherit;
  font-family:var(--font-ui);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.68;
  transition:transform var(--motion-state) var(--ease-standard),opacity var(--motion-state) var(--ease-standard);
}
html.v1[data-lrb-home="true"] .editorial-card__arrow span::before{content:"Abrir"}
html.v1[data-lrb-home="true"] .editorial-card__arrow:hover span,
html.v1[data-lrb-home="true"] .editorial-card__arrow:focus-visible span{transform:translateX(2px);opacity:1}
html.v1[data-lrb-home="true"] .editorial-card--blue{background:#e5eef0;color:#213c45}
html.v1[data-lrb-home="true"] .editorial-card--blue .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--blue .editorial-card__text{color:#4f636a}
html.v1[data-lrb-home="true"] .editorial-card--sage{background:#edf3f4;color:#2d4a52}
html.v1[data-lrb-home="true"] .editorial-card--sage .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--sage .editorial-card__text{color:#587078}
html.v1[data-lrb-home="true"] .editorial-card--blush{background:#f4efed}
html.v1[data-lrb-home="true"] .editorial-card--sand{background:#f1eee7;color:#433b33}
html.v1[data-lrb-home="true"] .editorial-card--sand .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--sand .editorial-card__text{color:#6d6257}
html.v1[data-lrb-home="true"] .editorial-card--plain{background:#fffdfa;color:#273f47}
html.v1[data-lrb-home="true"] .editorial-card--plain .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--plain .editorial-card__text{color:#5d686b}
html.v1[data-lrb-home="true"] .editorial-card--cream{background:#f7f3eb;color:#443c35}
html.v1[data-lrb-home="true"] .editorial-card--cream .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--cream .editorial-card__text{color:#6c6258}
html.v1[data-lrb-home="true"] .editorial-card--sage,
html.v1[data-lrb-home="true"] .editorial-card--sand,
html.v1[data-lrb-home="true"] .editorial-card--plain,
html.v1[data-lrb-home="true"] .editorial-card--cream{
  background:#fffdfa;
  color:var(--dp-home-ink);
}
html.v1[data-lrb-home="true"] .editorial-card--sage .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--sage .editorial-card__text,
html.v1[data-lrb-home="true"] .editorial-card--sand .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--sand .editorial-card__text,
html.v1[data-lrb-home="true"] .editorial-card--plain .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--plain .editorial-card__text,
html.v1[data-lrb-home="true"] .editorial-card--cream .editorial-card__meta,
html.v1[data-lrb-home="true"] .editorial-card--cream .editorial-card__text{color:#625e59}
html.v1[data-lrb-home="true"] .editorial-card--action h3{font-size:clamp(1.25rem,1.6vw,1.75rem)}
html.v1[data-lrb-home="true"] .editorial-card--action{
  min-height:0;
  padding-block:clamp(1rem,1.5vw,1.35rem);
}
html.v1[data-lrb-home="true"] .editorial-card--action .editorial-card__text{min-height:2.95em}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-buy"] .editorial-card__text{min-height:0}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-email"] .editorial-card__text{
  font-family:var(--font-ui);
  font-size:.86rem;
  overflow-wrap:anywhere;
}
html.v1[data-lrb-home="true"] .editorial-card__email span{display:inline}
html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-buy"] .editorial-card__text{display:none}
html.v1[data-lrb-home="true"] .editorial-mini-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;margin-top:1rem}
html.v1[data-lrb-home="true"] .editorial-mini-form .form-input{
  min-width:0;
  height:38px;
  border:1px solid rgba(23,20,18,.28);
  border-radius:0;
  background:rgba(255,255,255,.62);
  color:inherit;
  padding:0 .8rem;
  font:500 .86rem/1 var(--font-ui);
}
html.v1[data-lrb-home="true"] .editorial-mini-form .install-web__button{
  min-height:38px;
  padding:.55rem .7rem;
  color:inherit;
  border-color:rgba(23,20,18,.32);
}
html.v1[data-lrb-home="true"] .editorial-mini-form .newsletter-status{grid-column:1/-1;margin:0;color:var(--dp-home-muted);font-size:.78rem}

/* --- Interludes -------------------------------------------------------- */
html.v1[data-lrb-home="true"] .editorial-interlude{
  display:grid;
  grid-template-columns:minmax(0,.42fr) minmax(0,1fr) auto;
  gap:clamp(1rem,3vw,3rem);
  align-items:center;
  padding:clamp(1.65rem,3vw,2.8rem) max(var(--page-gutter),calc((100vw - var(--layout-max))/2));
  background:#252b2e;
  color:#f7f3eb;
  border-bottom:1px solid rgba(255,255,255,.12);
}
html.v1[data-lrb-home="true"] .editorial-interlude__label{
  margin:0;
  font-family:var(--font-ui);
  font-size:.7rem;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:rgba(247,243,235,.58);
}
html.v1[data-lrb-home="true"] .editorial-interlude h2{
  margin:0;
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.55rem,2.6vw,2.55rem);
  line-height:1;
}
html.v1[data-lrb-home="true"] .editorial-interlude a{
  color:inherit;
  font-family:var(--font-ui);
  font-size:.8rem;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(247,243,235,.5);
  padding-bottom:.18rem;
}

/* --- Events ------------------------------------------------------------ */
html.v1[data-lrb-home="true"] .home-events{
  padding:clamp(2.4rem,4.5vw,4.5rem) max(var(--page-gutter),calc((100vw - var(--layout-max))/2));
}
html.v1[data-lrb-home="true"] .home-events__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1rem;
  align-items:end;
  margin-bottom:1.5rem;
}
html.v1[data-lrb-home="true"] .home-events__head h2{
  margin:.2rem 0 0;
  font-family:var(--font-display);
  font-size:clamp(2rem,3.6vw,3.6rem);
  font-weight:400;
  line-height:.95;
}
html.v1[data-lrb-home="true"] .home-events__grid{
  display:grid;
}
html.v1[data-lrb-home="true"] .home-event{
  min-width:0;
  display:flex;
  flex-direction:column;
}
html.v1[data-lrb-home="true"] .home-event time{
  display:block;
  margin-bottom:.5rem;
  color:var(--dp-home-muted);
  font-family:var(--font-ui);
  font-size:.7rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
html.v1[data-lrb-home="true"] .home-event h3{
  margin:0 0 .4rem;
  font-family:var(--font-display);
  font-size:clamp(1.2rem,1.6vw,1.65rem);
  font-weight:400;
  line-height:1.03;
}
html.v1[data-lrb-home="true"] .home-event h3 a{color:inherit;text-decoration:none}
html.v1[data-lrb-home="true"] .home-event h3 a:hover,
html.v1[data-lrb-home="true"] .home-event h3 a:focus-visible{text-decoration:underline;text-underline-offset:.12em}
html.v1[data-lrb-home="true"] .home-event p{margin:0;color:var(--dp-home-muted);font-family:var(--font-reading);font-size:.9rem;line-height:1.45}
html.v1[data-lrb-home="true"] .home-event__link{
  margin-top:auto;
  padding-top:1rem;
  color:inherit;
  font:700 .76rem/1 var(--font-ui);
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  align-self:flex-start;
  opacity:.68;
}
html.v1[data-lrb-home="true"] .home-events__cta{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1rem;
  align-items:center;
  margin-top:0;
  padding:clamp(1.25rem,2.2vw,1.8rem);
  background:var(--dp-home-blue);
  color:var(--dp-home-blue-ink);
  border:1px solid rgba(37,79,96,.26);
  border-top:0;
}
html.v1[data-lrb-home="true"] .home-events__cta h3{margin:0 0 .25rem;font-family:var(--font-display);font-size:clamp(1.45rem,2vw,2rem);font-weight:400}
html.v1[data-lrb-home="true"] .home-events__cta p{margin:0;color:#4c6873;font-family:var(--font-reading)}
html.v1[data-lrb-home="true"] .home-events__cta a{color:inherit;font-family:var(--font-ui);font-weight:600;text-decoration:none;border-bottom:1px solid rgba(37,79,96,.4);padding-bottom:.15rem}

/* --- Install web ------------------------------------------------------- */
html.v1[data-lrb-home="true"] .install-web{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(18rem,.8fr);
  gap:clamp(1.5rem,5vw,5rem);
  align-items:center;
  padding:clamp(2.6rem,5vw,5rem) max(var(--page-gutter),calc((100vw - var(--layout-max))/2));
  background:#171b1d;
  color:#f6f2e9;
}
html.v1[data-lrb-home="true"] .install-web h2{
  margin:.25rem 0 .7rem;
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(2rem,3.8vw,3.8rem);
  line-height:.94;
}
html.v1[data-lrb-home="true"] .install-web p{max-width:55ch;color:rgba(246,242,233,.7);font-family:var(--font-reading);line-height:1.5}
html.v1[data-lrb-home="true"] .install-web__panel{
  padding:clamp(1.2rem,2vw,1.8rem);
  border-top:1px solid rgba(246,242,233,.28);
  border-bottom:1px solid rgba(246,242,233,.16);
}
html.v1[data-lrb-home="true"] .install-web__button{
  min-height:44px;
  padding:.65rem 1rem;
  border:1px solid rgba(246,242,233,.45);
  border-radius:0;
  background:transparent;
  color:#f6f2e9;
  font:600 .82rem/1 var(--font-ui);
  cursor:pointer;
}
html.v1[data-lrb-home="true"] .install-web__button:hover,
html.v1[data-lrb-home="true"] .install-web__button:focus-visible{background:rgba(246,242,233,.08);border-color:#f6f2e9}
html.v1[data-lrb-home="true"] .install-web__button:disabled{cursor:default;opacity:.56}
html.v1[data-lrb-home="true"] .install-web__status{margin:.7rem 0 0;font-size:.82rem;color:rgba(246,242,233,.62)}

/* --- Back to top ------------------------------------------------------- */
html.v1 .back-to-top{
  position:fixed;
  right:max(1rem,env(safe-area-inset-right));
  /* The assistant launcher sits fixed at the same corner (50px, 16px from
     the edge) with a higher z-index; stack this button above it instead of
     letting the two fight over the same 44px square. */
  bottom:calc(max(1rem,env(safe-area-inset-bottom)) + 62px);
  z-index:calc(var(--z-sticky) + 5);
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(23,20,18,.28);
  border-radius:50%;
  background:rgba(255,254,250,.92);
  color:var(--dp-home-ink);
  box-shadow:0 5px 18px rgba(23,20,18,.09);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  cursor:pointer;
  transition:opacity var(--motion-state) var(--ease-standard),transform var(--motion-state) var(--ease-standard),visibility 0s linear var(--motion-state);
}
html.v1 .back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);transition-delay:0s}
html.v1 .back-to-top svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1023px){
  html.v1[data-lrb-home="true"] .feature-banner{min-height:clamp(230px,38vw,340px)}
  html.v1[data-lrb-home="true"] .feature-banner--image-only{height:auto;min-height:0;aspect-ratio:2172/724}
  html.v1[data-lrb-home="true"] .editorial-cluster__grid{min-height:460px;grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(180px,auto);height:auto;min-height:0}
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-book"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-author"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-buy"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-beta"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-email"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"] .editorial-card[data-card-key="samuel-book"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"] .editorial-card,
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"] .editorial-card{grid-column:auto;grid-row:auto}
  html.v1[data-lrb-home="true"] .home-events__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.v1[data-lrb-home="true"] .install-web{grid-template-columns:minmax(0,1fr) minmax(15rem,.8fr)}
}

@media (max-width:699px){
  html.v1[data-lrb-home="true"] .feature-banner{min-height:310px;align-items:end}
  html.v1[data-lrb-home="true"] .feature-banner--image-only{height:auto;min-height:0;aspect-ratio:2172/724}
  html.v1[data-lrb-home="true"] .feature-banner::after{background:linear-gradient(0deg,rgba(10,10,10,.68),rgba(10,10,10,.08) 78%)}
  html.v1[data-lrb-home="true"] .feature-banner__copy{max-width:100%}
  html.v1[data-lrb-home="true"] .feature-banner h2{font-size:clamp(2.15rem,11vw,3.35rem);max-width:11ch}
  html.v1[data-lrb-home="true"] .feature-banner__media img{object-position:center center}
  html.v1[data-lrb-home="true"] .feature-banner--memoria{
    min-height:260px;
    align-items:center;
  }
  html.v1[data-lrb-home="true"] .feature-banner--memoria::before{
    right:clamp(.75rem,4vw,1.25rem);
    top:auto;
    bottom:2.1rem;
    width:clamp(86px,28vw,124px);
    height:66%;
    transform:none;
    opacity:.92;
  }
  html.v1[data-lrb-home="true"] .feature-banner--memoria::after{
    background:none;
  }
  html.v1[data-lrb-home="true"] .feature-banner--memoria .feature-banner__copy{
    max-width:min(14rem,64vw);
  }
  html.v1[data-lrb-home="true"] .feature-banner--tools{min-height:260px}
  html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__inner{
    align-self:center;
    padding-block:2rem;
  }
  html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__copy{
    max-width:min(22rem,92vw);
    margin-inline:auto;
    text-align:center;
  }
  html.v1[data-lrb-home="true"] .feature-banner--tools .feature-banner__deck{
    margin-inline:auto;
  }
  html.v1[data-lrb-home="true"] .editorial-cluster{padding:1.2rem var(--page-gutter) 1.5rem}
  html.v1[data-lrb-home="true"] .editorial-cluster__head{grid-template-columns:minmax(0,1fr);align-items:start}
  html.v1[data-lrb-home="true"] .editorial-cluster__all{justify-self:start}
  html.v1[data-lrb-home="true"] .editorial-cluster__grid,
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;height:auto;min-height:0;gap:8px}
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-book"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card[data-card-key="manecillas-author"],
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-actions"] .editorial-card--action,
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="book-side-stack"] .editorial-card,
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-four"] .editorial-card,
  html.v1[data-lrb-home="true"] .editorial-cluster__grid[data-layout="tools-three"] .editorial-card{grid-column:auto;grid-row:auto}
  html.v1[data-lrb-home="true"] .editorial-card--lead{grid-row:auto}
  html.v1[data-lrb-home="true"] .editorial-card__media{min-height:0;aspect-ratio:4/3}
  html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-book"] .editorial-card__media,
  html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__media{aspect-ratio:1.28/1}
  html.v1[data-lrb-home="true"] .editorial-card[data-card-key="manecillas-book"] .editorial-card__media img,
  html.v1[data-lrb-home="true"] .editorial-card[data-card-key="samuel-book"] .editorial-card__media img{height:clamp(175px,52vw,240px);max-width:72%}
  html.v1[data-lrb-home="true"] .editorial-mini-form{grid-template-columns:minmax(0,1fr)}
  html.v1[data-lrb-home="true"] .editorial-interlude{grid-template-columns:minmax(0,1fr);align-items:start}
  html.v1[data-lrb-home="true"] .editorial-interlude a{justify-self:start}
  html.v1[data-lrb-home="true"] .home-events__head{grid-template-columns:minmax(0,1fr)}
  html.v1[data-lrb-home="true"] .home-events__grid{grid-template-columns:minmax(0,1fr)}
  html.v1[data-lrb-home="true"] .home-event{min-height:175px}
  html.v1[data-lrb-home="true"] .home-events__cta{grid-template-columns:minmax(0,1fr)}
  html.v1[data-lrb-home="true"] .home-events__cta a{justify-self:start}
  html.v1[data-lrb-home="true"] .install-web{grid-template-columns:minmax(0,1fr)}
}

@media (prefers-reduced-motion:reduce){
  html.v1[data-lrb-home="true"] .editorial-card__media img,
  html.v1[data-lrb-home="true"] .editorial-card__arrow span,
  html.v1 .back-to-top{transition:none}
  html.v1[data-lrb-home="true"] .editorial-card:hover .editorial-card__media img,
  html.v1[data-lrb-home="true"] .editorial-card__arrow:hover span,
  html.v1[data-lrb-home="true"] .editorial-card__arrow:focus-visible span{transform:none}
}

@media print{
  html.v1 .back-to-top{display:none!important}
  html.v1[data-lrb-home="true"] .feature-banner{min-height:0;padding:1rem;background:#fff!important;color:#000}
  html.v1[data-lrb-home="true"] .feature-banner__media{display:none}
}
