/* Identity V1 — local layer for Autor / Prensa / Premios / Eventos only.
   Loaded only by the four public identity pages. Shared family primitives stay
   in v1-families.css; this file corrects the public/documentary treatment
   without changing other families. */

/* Small avatar next to the masthead h1 on /autor.html only -- a cropped,
   background-removed still of the same portrait used elsewhere, sized well
   below the heading's own huge type scale so it reads as an identity mark,
   not a second hero image (that job stays with .author-portrait below). */
html.v1 [data-family="identity"] .masthead-name-row{display:flex;align-items:center;gap:clamp(.85rem,1.6vw,1.35rem);margin:.45rem 0 clamp(1.25rem,2vw,2.75rem)}
html.v1 [data-family="identity"] .masthead-name-row h1{margin:0}
html.v1 [data-family="identity"] .masthead-name-row__avatar{width:clamp(3.4rem,6vw,4.8rem);height:clamp(3.4rem,6vw,4.8rem);border-radius:50%;object-fit:cover;object-position:50% 12%;border:1px solid var(--color-border);flex-shrink:0}

/* Author: keep the real portrait editorial, reserve its geometry and avoid a
   corporate card treatment. Intrinsic HTML dimensions remain the CLS source. */
html.v1 [data-family="identity"] .author-portrait{
  position:relative;
  align-self:start;
}
html.v1 [data-family="identity"] .author-portrait::after{
  content:"";
  position:absolute;
  inset:auto -1rem -1rem 1rem;
  height:1px;
  background:var(--color-border);
  pointer-events:none;
}
html.v1 [data-family="identity"] .author-portrait img{
  display:block;
  border:0;
  object-position:50% 38%;
}
html.v1 [data-family="identity"] .author-portrait,
html.v1 [data-family="identity"] .press-author-photo,
html.v1 [data-family="identity"] .event-photo-card,
html.v1 [data-family="identity"] .event-entry figure{
  position:relative;
  isolation:isolate;
}
html.v1 [data-family="identity"] .author-portrait::before,
html.v1 [data-family="identity"] .press-author-photo::before,
html.v1 [data-family="identity"] .event-photo-card::before,
html.v1 [data-family="identity"] .event-entry figure::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid color-mix(in srgb,var(--color-accent-strong) 30%,var(--color-border));
  pointer-events:none;
}
html.v1 [data-family="identity"] .press-author-photo::after,
html.v1 [data-family="identity"] .event-photo-card::after,
html.v1 [data-family="identity"] .event-entry figure::after{
  content:"";
  position:absolute;
  right:-7px;
  bottom:-7px;
  width:18px;
  height:18px;
  border-right:1px solid color-mix(in srgb,var(--color-accent) 58%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--color-accent) 58%,transparent);
  pointer-events:none;
}
html.v1 [data-family="identity"] .author-bio__copy{
  text-wrap:pretty;
}

/* Press kit: turn the generic equal-card grid into a document ledger. The
   semantic article markup stays intact; hierarchy comes from columns,
   hairlines and unequal media rather than repeated rectangles. */
html.v1 [data-family="identity"] .press-grid{
  display:block;
  border-top:1px solid var(--color-border);
}
html.v1 [data-family="identity"] .press-card,
html.v1 [data-family="identity"] .press-card--wide{
  display:grid;
  grid-template-columns:minmax(10rem,.42fr) minmax(0,1fr);
  column-gap:clamp(1.5rem,5vw,5rem);
  row-gap:.8rem;
  padding:clamp(1.35rem,2.6vw,2rem) 0;
  border:0;
  border-bottom:1px solid var(--color-border);
  background:transparent;
}
html.v1 [data-family="identity"] .press-card > *{
  grid-column:2;
  min-width:0;
}
html.v1 [data-family="identity"] .press-card > .press-card-head{
  grid-column:1;
  grid-row:1 / span 12;
  display:block;
  align-self:start;
}
html.v1 [data-family="identity"] .press-card-head h3{
  font-size:clamp(1.1rem,1.44vw,1.4rem);
  line-height:1.1;
}
html.v1 [data-family="identity"] .press-card-head .status-badge{
  display:inline-flex;
  margin-top:.7rem;
}
html.v1 [data-family="identity"] .press-card p{
  max-width:68ch;
}
html.v1 [data-family="identity"] .press-author-photo{
  max-width:min(100%,27rem);
}
html.v1 [data-family="identity"] .press-author-photo img{
  display:block;
}
html.v1 [data-family="identity"] .event-photo-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:58rem;
}
html.v1 [data-family="identity"] .copy-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:.6rem 0;
}

/* Awards: the ledger is the visual authority. Years/results read as records,
   not badges, and reception is intentionally quieter than awards. The wider
   first track also accommodates exact publication dates without colliding with
   the record title. */
html.v1 [data-family="identity"] .awards-ledger li{
  grid-template-columns:minmax(8.25rem,.25fr) minmax(0,1fr);
  align-items:start;
}
html.v1 [data-family="identity"] .awards-ledger li > span{
  font-family:var(--font-display);
  font-size:clamp(.97rem,1.65vw,1.33rem);
  font-weight:400;
  color:var(--color-text);
  letter-spacing:-.015em;
}
html.v1 [data-family="identity"] .awards-ledger--reception li > span{
  font-family:var(--font-ui);
  font-size:.78rem;
  font-weight:600;
  color:var(--color-muted);
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* Events: future state is a deliberate editorial state, then the documentary
   archive. Photographs remain content images, never card backgrounds. */
html.v1 [data-family="identity"] .event-empty{
  position:relative;
  padding:clamp(1.75rem,3vw,2.5rem) 0 clamp(1.75rem,3vw,2.5rem) clamp(1rem,2vw,1.75rem);
  border-top:1px solid var(--color-border);
  border-bottom:1px solid var(--color-border);
}
html.v1 [data-family="identity"] .event-empty::before{
  content:"";
  position:absolute;
  left:0;
  top:1.65rem;
  bottom:1.65rem;
  width:2px;
  background:var(--color-accent-strong);
}
html.v1 [data-family="identity"] .event-empty__title{
  margin:0 0 .75rem;
  max-width:22ch;
  font:400 clamp(1.3rem,2vw,1.8rem)/1.08 var(--font-display);
  letter-spacing:-.02em;
}
html.v1 [data-family="identity"] .event-empty__actions{
  margin-top:1.25rem;
}
html.v1 [data-family="identity"] .event-entry figure{
  margin:0 0 1.25rem;
  max-width:min(100%,34rem);
}
html.v1 [data-family="identity"] .event-entry figure img{
  display:block;
  width:100%;
  height:auto;
}
html.v1 [data-family="identity"] .event-entry figcaption{
  position:relative;
  max-width:52ch;
  margin-top:.55rem;
  padding-top:.68rem;
  border-top:1px solid color-mix(in srgb,var(--color-accent-strong) 34%,var(--color-border));
  color:var(--color-muted);
  font-size:.78rem;
  line-height:1.4;
}

/* Contextual contact modules read like a directory instead of another card
   soup. The first item can still carry the primary action without a fake panel. */
html.v1 [data-family="identity"] .contact-grid{
  display:block;
  border-top:1px solid var(--color-border);
}
html.v1 [data-family="identity"] .contact-card,
html.v1 [data-family="identity"] .contact-card--featured{
  display:grid;
  grid-template-columns:minmax(10rem,.42fr) minmax(0,1fr) auto;
  gap:.55rem clamp(1.25rem,4vw,4rem);
  align-items:start;
  padding:1.4rem 0;
  border:0;
  border-bottom:1px solid var(--color-border);
  background:transparent;
}
html.v1 [data-family="identity"] .contact-card .eyebrow{
  grid-column:1;
  grid-row:1 / span 3;
}
html.v1 [data-family="identity"] .contact-card h3,
html.v1 [data-family="identity"] .contact-card p{
  grid-column:2;
}
html.v1 [data-family="identity"] .contact-card .primary-action,
html.v1 [data-family="identity"] .contact-card .text-action{
  grid-column:3;
  grid-row:1 / span 3;
  align-self:center;
  white-space:nowrap;
}

@media (max-width:900px){
  html.v1 [data-family="identity"] .press-card,
  html.v1 [data-family="identity"] .press-card--wide,
  html.v1 [data-family="identity"] .contact-card,
  html.v1 [data-family="identity"] .contact-card--featured{
    grid-template-columns:1fr;
  }
  html.v1 [data-family="identity"] .press-card > *,
  html.v1 [data-family="identity"] .press-card > .press-card-head,
  html.v1 [data-family="identity"] .contact-card .eyebrow,
  html.v1 [data-family="identity"] .contact-card h3,
  html.v1 [data-family="identity"] .contact-card p,
  html.v1 [data-family="identity"] .contact-card .primary-action,
  html.v1 [data-family="identity"] .contact-card .text-action{
    grid-column:1;
    grid-row:auto;
    min-width:0;
    max-width:100%;
  }
  html.v1 [data-family="identity"] .press-card > .press-card-head{
    margin-bottom:.25rem;
  }
  html.v1 [data-family="identity"] .contact-card .primary-action,
  html.v1 [data-family="identity"] .contact-card .text-action{
    justify-self:start;
    white-space:normal;
  }
  html.v1 [data-family="identity"] .event-photo-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* The two press fact sheets still carry their original desktop grid inline.
   At narrow widths that inline declaration must be explicitly overridden or
   the ledger and cover are squeezed side-by-side, which also breaks WCAG text
   spacing reflow. */
@media (max-width:700px){
  html.v1 [data-family="identity"] #ficha-manecillas > div[style*="grid-template-columns"],
  html.v1 [data-family="identity"] #ficha > div[style*="grid-template-columns"]{
    grid-template-columns:minmax(0,1fr) !important;
  }
  html.v1 [data-family="identity"] #ficha-manecillas > div[style*="grid-template-columns"] > *,
  html.v1 [data-family="identity"] #ficha > div[style*="grid-template-columns"] > *{
    min-width:0;
  }
  html.v1 [data-family="identity"] #ficha-manecillas a,
  html.v1 [data-family="identity"] #ficha a,
  html.v1 [data-family="identity"] #contacto a{
    overflow-wrap:anywhere;
  }
}

@media (max-width:600px){
  html.v1 [data-family="identity"] .author-portrait::after{
    inset:auto 0 -.75rem 1rem;
  }
  html.v1 [data-family="identity"] .author-portrait img{
    max-height:none;
    object-position:50% 35%;
  }
  html.v1 [data-family="identity"] .press-card,
  html.v1 [data-family="identity"] .press-card--wide{
    padding:1.35rem 0;
  }
  html.v1 [data-family="identity"] .awards-ledger li{
    grid-template-columns:minmax(0,1fr);
  }
  html.v1 [data-family="identity"] .event-photo-grid{
    grid-template-columns:1fr;
  }
  html.v1 [data-family="identity"] .event-empty{
    padding-left:1rem;
  }
}

/* Prensa is expected to survive browser print/PDF as a useful one-page-ish
   dossier. This sheet is loaded only by Identity pages, so these print rules do
   not leak into Home/Books/Tools. */
@media print{
  html.v1 .site-header,
  html.v1 .explore-dialog,
  html.v1 .site-footer,
  html.v1 .copy-btn,
  html.v1 .social-row,
  html.v1 .v1-masthead__actions{
    display:none !important;
  }
  html.v1 body{
    background:#fff !important;
    color:#000 !important;
  }
  html.v1 [data-family="identity"]{
    max-width:none !important;
    padding:0 !important;
  }
  html.v1 [data-family="identity"] .book-breadcrumb{
    margin-bottom:1rem;
  }
  html.v1 [data-family="identity"] .v1-masthead{
    display:block;
    padding:0 0 1.25rem;
    border-bottom:1px solid #777;
  }
  html.v1 [data-family="identity"] .v1-section{
    padding:1.2rem 0;
    border-color:#aaa;
  }
  html.v1 [data-family="identity"] .v1-section__head{
    margin-bottom:1rem;
  }
  html.v1 [data-family="identity"] .press-card,
  html.v1 [data-family="identity"] .press-card--wide,
  html.v1 [data-family="identity"] .contact-card,
  html.v1 [data-family="identity"] .contact-card--featured{
    break-inside:avoid;
    border-color:#aaa;
  }
  html.v1 [data-family="identity"] .press-author-photo{
    max-width:11rem;
  }
  html.v1 [data-family="identity"] .event-photo-grid{
    grid-template-columns:repeat(3,1fr);
  }
  @page{
    margin:14mm;
  }
}

/* Autor — biographical dossier. data-editorial-context="autor" belongs to the
   complete identity territory, so /autor.html is identified by the canonical
   link that is already parsed before this stylesheet loads. This keeps the
   selector stable from first paint, avoids CLS and prevents leakage into
   Premios, Eventos or Prensa without adding an artificial page class. */
@media screen{
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]){
    --author-blue:#1d4f96;
    --author-blue-deep:#0d2c57;
    --author-gold:#b8860b;
    --author-gold-text:#956900;
    --author-pale:#f1f9ff;
    --author-rule:rgba(29,79,150,.24);
    --author-rule-soft:rgba(29,79,150,.13);
    --author-ink:#070707;
    --author-muted:#68645f;
  }

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .section-context__title{color:var(--author-blue)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .section-context__links a[aria-current="page"]{
    color:var(--author-blue);background:var(--author-pale);box-shadow:inset 0 -2px 0 var(--author-gold)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) main#contenido>.book-breadcrumb{color:var(--author-muted)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) main#contenido>.book-breadcrumb a{
    color:var(--author-blue);text-decoration-color:rgba(184,134,11,.58)
  }

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-masthead{
    display:block;max-width:none;padding:clamp(3rem,5.2vw,5.2rem) 0 clamp(3rem,5vw,4.8rem);border-bottom:0;
    background:linear-gradient(var(--author-blue),var(--author-blue)) left calc(100% - 4px)/100% 1.5px no-repeat,
               linear-gradient(var(--author-gold),var(--author-gold)) left bottom/100% 1.5px no-repeat
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-masthead>.eyebrow{
    margin:0 0 .9rem;color:var(--author-gold-text);font-weight:700;letter-spacing:.08em;text-transform:uppercase
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .masthead-name-row{display:block;margin:0 0 1.35rem}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .masthead-name-row__avatar{display:none}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .masthead-name-row h1{
    max-width:13ch;min-width:0;margin:0;color:var(--author-blue);font-size:clamp(4rem,6.4vw,7rem);line-height:.88;letter-spacing:-.045em;overflow-wrap:anywhere;text-wrap:balance
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-masthead__lead{
    max-width:43ch;color:var(--author-ink);font-size:clamp(1.1rem,1rem + .38vw,1.42rem);line-height:1.43;overflow-wrap:anywhere
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-masthead__actions{gap:.8rem 1.35rem;margin-top:1.6rem}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #bio{
    padding-top:clamp(3.2rem,5.5vw,5.5rem);padding-bottom:clamp(3.8rem,6vw,6rem)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio{
    grid-template-columns:minmax(15rem,.58fr) minmax(0,1.42fr);column-gap:clamp(2.7rem,6vw,7rem);row-gap:2.2rem;align-items:start
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait{grid-column:1;grid-row:1;max-width:30rem;min-width:0}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait::before{
    border-color:var(--author-rule);box-shadow:inset 3px 0 0 var(--author-blue),inset 5px 0 0 var(--author-gold)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait::after{
    inset:auto 0 -1rem 1rem;background:linear-gradient(90deg,var(--author-blue) 0 76%,var(--author-gold) 76% 100%)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait img{max-height:44rem;object-position:50% 38%}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__copy{
    grid-column:2;grid-row:1 / span 3;max-width:70ch;color:var(--author-ink);font-size:clamp(1rem,.96rem + .13vw,1.12rem);line-height:1.7;min-width:0;overflow-wrap:anywhere
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__copy p:first-child{
    max-width:60ch;margin-top:0;color:var(--author-blue-deep);font:400 clamp(1.16rem,1.04rem + .34vw,1.42rem)/1.55 var(--font-reading)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__copy p+p{margin-top:1.25rem}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__copy .social-row{
    margin-top:1.7rem;padding-top:1.25rem;border-top:1px solid var(--author-rule-soft)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside{
    grid-column:1;grid-row:2;max-width:14rem;margin-top:.4rem;min-width:0
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside .folio{
    color:var(--author-gold-text);font:700 .68rem/1.3 var(--font-ui);letter-spacing:.08em;text-transform:uppercase
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside figure{margin:1rem 0!important}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside img{
    border-color:var(--author-rule)!important;box-shadow:6px 6px 0 -5px var(--author-gold)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside>.eyebrow{
    color:var(--author-blue-deep);font-size:.69rem;line-height:1.48;letter-spacing:.055em
  }

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-section{border-bottom-color:var(--author-rule-soft)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-section__head{
    position:relative;padding-top:1.15rem;margin-bottom:clamp(1.8rem,3.8vw,3.2rem)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-section__head::before{
    content:"";position:absolute;left:0;right:0;top:0;height:4px;
    background:linear-gradient(to bottom,var(--author-blue) 0 1.5px,transparent 1.5px 2.5px,var(--author-gold) 2.5px 4px)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-section__head>.eyebrow{color:var(--author-gold-text);font-weight:700;letter-spacing:.075em}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-section__head h2{color:var(--author-blue);max-width:18ch}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-section__head h2+p{color:var(--author-muted)}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--author-rule)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card{
    min-width:0;padding:clamp(1.45rem,2.5vw,2rem) clamp(1.35rem,2.5vw,2.25rem) clamp(1.55rem,2.6vw,2.15rem) 0;
    border:0;border-bottom:1px solid var(--author-rule);border-radius:0;background:transparent;box-shadow:none
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card:nth-child(2){padding-left:clamp(1.35rem,2.5vw,2.25rem);border-left:1px solid var(--author-rule)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card .eyebrow{color:var(--author-gold-text)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card h3{color:var(--author-blue-deep);font-size:clamp(1.35rem,1.75vw,1.8rem)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card--featured{
    grid-column:1/-1;padding:clamp(1.8rem,3vw,2.6rem) clamp(1.5rem,3.2vw,2.8rem);border-left:0;
    background:linear-gradient(115deg,var(--author-pale),#fff 76%);box-shadow:inset 3px 0 0 var(--author-blue),inset 5px 0 0 var(--author-gold)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card--featured h3{
    color:var(--author-blue);font-size:clamp(1.9rem,2.8vw,3rem);line-height:1;letter-spacing:-.025em
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card--featured p{max-width:70ch;color:var(--author-ink)}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #premios .awards-ledger{border-top:1px solid var(--author-rule)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #premios .awards-ledger li{border-bottom-color:var(--author-rule-soft);padding:1.6rem 0}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #premios .awards-ledger li>span{color:var(--author-blue)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #premios .awards-ledger h3{color:var(--author-blue-deep)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #premios .awards-ledger .award-contest{color:var(--author-gold-text)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #premios .samuel-narrow{border-top:1px solid var(--author-rule-soft);padding-top:1rem!important}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #reseñas .quote-stream{border-top:1px solid var(--author-rule)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #reseñas .quote-stream li{
    position:relative;padding:1.65rem clamp(1.35rem,2.5vw,2.25rem) 1.65rem 1rem;border-bottom-color:var(--author-rule-soft);min-width:0
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #reseñas .quote-stream li::before{
    content:"“";position:absolute;left:0;top:1.15rem;color:var(--author-gold);font:400 2.1rem/1 var(--font-display)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #reseñas .quote-stream blockquote{padding-left:1.15rem;color:var(--author-ink)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #reseñas .quote-stream cite{padding-left:1.15rem;color:var(--author-blue-deep)}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #menciones .id-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(2rem,4vw,4rem);border-top:1px solid var(--author-rule)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #menciones .id-card{
    min-width:0;padding:1.45rem 0 1.55rem;border:0;border-bottom:1px solid var(--author-rule-soft);border-radius:0;background:transparent;box-shadow:none
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #menciones .id-card .eyebrow{color:var(--author-gold-text)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #menciones .id-card h3{color:var(--author-blue-deep);font-size:clamp(1.2rem,1.45vw,1.5rem)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #menciones .id-card p{max-width:58ch}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura>.samuel-narrow{color:var(--author-ink)!important;font-size:1.03rem!important;line-height:1.65}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-cards{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--author-rule);border-bottom:1px solid var(--author-rule)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-card{
    min-width:0;padding:1.6rem clamp(1.2rem,2.2vw,2rem);border:0;border-radius:0;background:transparent;box-shadow:none
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-card+ .id-card{border-left:1px solid var(--author-rule-soft)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-card h3{color:var(--author-blue-deep)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-card em{color:var(--author-gold-text)}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto .contact-grid{border-top-color:var(--author-rule)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto .contact-card,
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto .contact-card--featured{border-bottom-color:var(--author-rule-soft)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto .contact-card .eyebrow{color:var(--author-gold-text)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto .contact-card h3{color:var(--author-blue-deep)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto .contact-card--featured{
    background:linear-gradient(90deg,var(--author-pale),transparent 82%);box-shadow:inset 3px 0 0 var(--author-blue),inset 5px 0 0 var(--author-gold);padding-left:1.2rem;padding-right:1.2rem
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #contacto>p>a{color:var(--author-blue);overflow-wrap:anywhere}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stats{
    margin:clamp(3rem,6vw,5rem) 0 0;padding:clamp(1.8rem,3vw,2.5rem) 0;border:0;border-top:1px solid var(--author-rule);border-bottom:1px solid var(--author-rule)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stats__head .eyebrow{color:var(--author-gold-text)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stats__head h2{color:var(--author-blue)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stats__grid{border:0;border-top:1px solid var(--author-rule-soft);border-bottom:1px solid var(--author-rule-soft);background:transparent;gap:0}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stat{padding:1.2rem 1.25rem 1.2rem 0;background:transparent}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stat+.human-stat{padding-left:1.25rem;border-left:1px solid var(--author-rule-soft)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stat dt{color:var(--author-blue)}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stats__method summary{color:var(--author-blue-deep)}

  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .site-footer{position:relative}
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .site-footer::before{
    content:"";display:block;height:5px;background:linear-gradient(to bottom,var(--author-blue) 0 2px,transparent 2px 3px,var(--author-gold) 3px 5px)
  }
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .site-footer h2,
  html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .site-footer .brand__name{color:var(--author-blue)}

  @media(max-width:900px){
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio{grid-template-columns:minmax(0,1fr);row-gap:1.5rem}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait,
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__copy,
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside{grid-column:1;grid-row:auto;min-width:0}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait{max-width:min(100%,27rem)}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside{max-width:13rem;margin-top:.7rem}
  }

  @media(max-width:700px){
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-cards,
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #menciones .id-cards,
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-cards{grid-template-columns:minmax(0,1fr)}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card,
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card:nth-child(2){padding-left:0;padding-right:0;border-left:0}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #libros .id-card--featured{grid-column:1;padding:1.55rem 1.2rem}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-card{padding:1.35rem 0}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #escritura .id-card+.id-card{border-left:0;border-top:1px solid var(--author-rule-soft)}
  }

  @media(max-width:600px){
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .v1-masthead{padding-top:2.5rem;padding-bottom:3.2rem}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .masthead-name-row h1{font-size:clamp(3.05rem,13vw,4.2rem);line-height:.92}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait{max-width:100%}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-portrait img{max-height:none}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .author-bio__aside{max-width:min(62%,13rem)}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) #reseñas .quote-stream{grid-template-columns:minmax(0,1fr)}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stats__grid{grid-template-columns:minmax(0,1fr)}
    html.v1[data-editorial-context="autor"]:has(link[rel="canonical"][href="https://davidportodiaz.com/autor.html"]) .human-stat+.human-stat{padding-left:0;border-left:0;border-top:1px solid var(--author-rule-soft)}
  }
}
