/* Shared reading surfaces and the team byline for blog articles.
   Join the existing legacy layer: its important rules outrank unlayered fixes.
   Main-content specificity wins over the old dark-hero text selectors. */
@layer legacy {
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero .yitm-subtitle,
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero .yitm-meta-row,
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero .yitm-meta-row :is(span,time),
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero figcaption {
    color:var(--yitm-navy,#14243e)!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
    font-family:var(--yitm-font,Barlow,system-ui,sans-serif)!important;
    font-weight:500!important;
    line-height:1.65!important;
  }
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero .yitm-subtitle {font-size:1.0625rem!important;max-width:70ch}
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero .yitm-meta-row {font-size:1rem!important;gap:12px 20px;flex-wrap:wrap}
  body[data-yitm-article-hero="stacked"] #main-content .yitm-proof-series-hero .yitm-chip {
    color:var(--yitm-navy,#14243e)!important;
    -webkit-text-fill-color:currentColor!important;
    background:#f5eeeb!important;
    border:1px solid #d6c6c0!important;
    font-size:1rem!important;font-weight:600!important;line-height:1.5!important;opacity:1!important;
  }
  body.news-page #main-content .auth-actions .auth-btn-primary {
    background:#b63d36!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
    border:1px solid #b63d36!important;opacity:1!important;min-height:44px;
  }
  body.news-page #main-content .auth-actions .auth-btn-primary:hover {background:#96302b!important;border-color:#96302b!important}
  body.news-page #main-content .auth-actions .auth-btn:focus-visible {
    outline:3px solid #14243e!important;outline-offset:4px!important;
  }
  body :is(#main-content,main) .yitm-editorial-author {
    display:flex!important;align-items:flex-start;gap:16px!important;
    box-sizing:border-box!important;width:100%!important;max-width:920px!important;
    margin:24px auto!important;padding:20px!important;background:#fff!important;
    border:1px solid #d6c6c0!important;border-left:4px solid #b63d36!important;border-radius:18px!important;
    font-family:var(--yitm-font,Barlow,system-ui,sans-serif)!important;line-height:1.6!important;
  }
  body :is(#main-content,main) .yitm-editorial-author :is(p,strong,span,small) {
    color:#14243e!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;
    font-family:inherit!important;font-size:1rem!important;line-height:1.6!important;
  }
  body :is(#main-content,main) .yitm-editorial-author p {margin:4px 0!important}
  body :is(#main-content,main) .yitm-editorial-author .yitm-editorial-author__name {font-size:1.25rem!important;font-weight:700!important;display:block}
  body :is(#main-content,main) .yitm-editorial-author .yitm-editorial-author__label {font-weight:600!important}
  body :is(#main-content,main) .yitm-editorial-author .yitm-editorial-author__avatar {
    display:grid!important;place-items:center;flex:0 0 48px;width:48px;height:48px;
    border-radius:50%;background:#f5eeeb!important;font-weight:700!important;
  }
  body :is(#main-content,main) .yitm-editorial-author>div {min-width:0;overflow-wrap:anywhere}
  @media(max-width:480px){body :is(#main-content,main) .yitm-editorial-author{padding:16px!important;gap:12px!important}}
}
