/* Staging blog: the few rules the approved designs did not need yet, written in the same tokens.
   Loaded after styles.css and blog.css. Nothing here is editable from the CMS. */

/* Design 3 body when an article has no "Sección" headings: no contents column. */
.v3-grid--solo{grid-template-columns:minmax(0,1fr)!important}
/* Links and lists written in the article body. */
.v3-sec p a,.bp-list a{text-decoration:underline;text-underline-offset:3px}
.v3-sec p a:hover,.bp-list a:hover{color:#9A5F42}
.bp-list{margin:0;padding-left:1.3em;display:flex;flex-direction:column;gap:8px;font-size:18px;line-height:1.65;color:#1A1A1A}

/* YouTube video embed (click-to-load). */
.bp-video-wrap{margin:0;display:flex;flex-direction:column}
.bp-video{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#1A1A1A}
.bp-video-play{position:absolute;inset:0;width:100%;height:100%;border:none;background:none;cursor:pointer;padding:0}
.bp-video-play:focus-visible{outline:3px solid #9A5F42;outline-offset:-3px}
.bp-video-thumb{width:100%;height:100%;object-fit:cover}
.bp-video-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:68px;height:48px;background:rgba(0,0,0,0.7);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:24px}
.bp-video-title{display:block;padding:8px 0 0;font-size:14px;line-height:1.4;color:#333333}
.bp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:none}

/* Vertical YouTube Shorts player */
.bp-video.is-vertical{aspect-ratio:9/16;width:340px;max-width:100%;margin-left:auto;margin-right:auto}
.bp-video-wrap--vertical{align-items:center}
.bp-video-wrap--vertical .bp-video-title{text-align:center}
@media (max-width:640px){.bp-video.is-vertical{width:300px}}

/* Index (/articulos/): the homepage "Índice de artículos" chips and rows. */
.bpx-index{display:flex;flex-direction:column;gap:24px;padding:clamp(28px,4vw,44px) 0 clamp(64px,8vw,112px)}
.bpx-filters{display:flex;flex-direction:column;gap:12px;padding-bottom:20px;border-bottom:1px solid #1A1A1A}
.bpx-group{display:flex;flex-wrap:wrap;gap:8px}
.bpx-chip{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(26,26,26,0.2);background:#FFFFFF;color:#1A1A1A;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px}
.bpx-chip span{font-size:12px;font-weight:500}
.bpx-chip[aria-pressed="true"]{border-color:#1A1A1A;background:#1A1A1A;color:#FFFFFF}
.bpx-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr));column-gap:48px}
.bpx-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:16px;align-items:baseline;padding:20px 0;border-bottom:1px solid rgba(26,26,26,0.12);color:#1A1A1A}
.bpx-row[hidden]{display:none}
.bpx-row:hover{color:#333333}
.bpx-n{font-size:13px;font-weight:600;color:#333333}
.bpx-empty{margin:0;font-size:16px;color:#333333}

/* Mobile menu (the site's own markup, opened without the design-preview runtime). */
.bpx-mnav{display:flex;flex-direction:column;padding:8px clamp(20px,4vw,56px) 24px;border-top:1px solid rgba(26,26,26,0.08)}
.bpx-mnav[hidden]{display:none}
.bpx-mnav a{display:flex;align-items:center;justify-content:space-between;min-height:56px;border-bottom:1px solid rgba(26,26,26,0.1);font-family:'Newsreader',Georgia,serif;font-size:26px;color:#1A1A1A}
.bpx-mnav a span{font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:16px}
@media (min-width:1024px){.bpx-mnav{display:none!important}}

/* Article section headings: H2 (Sección) and H3 (Subtítulo). */
.v3-sec > h2.bp-eyebrow{font-size:21px;font-weight:700;color:#1A1A1A;gap:12px}
.v3-sec > h2.bp-eyebrow .bp-plus{width:20px;height:20px;font-size:15px}
.v3-h3{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-weight:600;letter-spacing:0;font-size:19px;line-height:1.35;color:#1A1A1A;margin:8px 0 -12px;scroll-margin-top:110px}
.bp-eyebrow + .v3-h3{margin-top:0}

/* Mobile-only text reduction (phones ≤ 640px). Custom properties for easy tuning. */
@media (max-width:640px){
  :root{
    --bp-body:16px;--bp-list:16px;--bp-h:20px;--bp-title:36px;
    --bp-small:12px;--bp-chip:13px;--bp-crumb:13px;--bp-caption:13px;
    --bp-video-title:13px;--bp-row-n:12px;--bp-empty:15px;--bp-row-title:17px;--bp-row-tag:12px;
    --bp-reading-head:20px;
  }
  .v3-sec p,.v2-sec p{font-size:var(--bp-body);line-height:1.7}
  .bp-list{font-size:var(--bp-list)}
  .v3-sec p a,.bp-list a{font-size:inherit}
  .v2-h{font-size:var(--bp-h)}
  .v2-title,.v3-title{font-size:var(--bp-title)}
  .v2-crumbs{font-size:var(--bp-crumb)}
  .bpx-chip{font-size:var(--bp-chip)}
  .bpx-chip span{font-size:var(--bp-small)}
  .bpx-n{font-size:var(--bp-row-n)}
  .bpx-empty{font-size:var(--bp-empty)}
  .bp-video-title{font-size:var(--bp-video-title)}
  .v3-chips a{font-size:var(--bp-chip)}
  .v3-reading-head span{font-size:var(--bp-reading-head)}
  .bp-eyebrow{font-size:14px}
  .v3-sec > h2.bp-eyebrow{font-size:17px}
  .v3-cta-title{font-size:clamp(32px,3.8vw,48px)}
  .v3-cta p{font-size:16px!important}
  .v3-h3{font-size:16px}
}

/* Desktop RPG treatment: add breathing room below the breadcrumb. */
@media (min-width:1024px){.bp-art[data-article="rpg"] .v2-head{gap:36px}}
