/* ===== NY promo block (home page) — deploy v2 (09.11) — assets under /assets/ny-promo/ =====
   Lives INSIDE .history-teaser__inner, before .history-teaser__row,
   so it sits on the same torn-paper background.
   Relies on site tokens: --red, --shell, .button, .button--light, Google Sans. */
.ny-promo{position:relative;z-index:3;pointer-events:auto;padding-top:var(--nyp-pad)}
/* --nyp-pad: space reserved above the panel (= figures overhang + equal gap A); --nyp-row: top padding of the history row (gives gap B) */
.history-teaser__inner.has-ny-promo{--nyp-pad:18.19vw;--nyp-row:5.14vw}
.ny-promo__panel{position:relative;width:100%;box-sizing:border-box;min-height:350px;
  display:grid;grid-template-columns:52% 48%;align-items:center;
  color:#fff;background:var(--red,#bb3731);border-radius:clamp(3px,.23vw,5px);overflow:visible}
.ny-promo__shield{position:absolute;z-index:1;left:28.5%;top:6.5%;width:19%;height:auto;pointer-events:none}
.ny-promo__snow{position:absolute;z-index:1;width:var(--s,12px);height:auto;opacity:var(--o,.22);pointer-events:none}
.ny-promo__cast{position:absolute;z-index:2;left:1%;bottom:0;width:54%;height:auto;max-width:none;pointer-events:none}
.ny-promo__copy{grid-column:2;position:relative;z-index:3;box-sizing:border-box;padding:34px 36px 34px 0}
.ny-promo .ny-promo__panel .ny-promo__title{margin:0 0 12px;font-family:"Google Sans",Arial,sans-serif!important;font-weight:400!important;
  font-size:36px;line-height:1.115;letter-spacing:.01em;color:#fff}
.ny-promo .ny-promo__panel p.ny-promo__dates{margin:0 0 12px;font-family:"Google Sans",Arial,sans-serif;font-weight:500;
  font-size:17px;line-height:1.35;letter-spacing:.01em;color:#fff}
.ny-promo__sep{opacity:.6;padding:0 .4em}
.ny-promo__sessions{font-weight:400}
.ny-promo .ny-promo__panel p.ny-promo__text{margin:0 0 18px;font-family:"Google Sans",Arial,sans-serif;font-weight:400;font-size:13px;line-height:1.55;color:#fff;max-width:400px}
.ny-promo a.button.ny-promo__button{box-sizing:border-box;width:251px;height:51px;min-height:51px;padding:0 24px;
  border:2px solid #fff;border-radius:5px;color:#fff;background:transparent;
  font-family:"Google Sans",Arial,sans-serif;font-weight:700;font-size:13px;letter-spacing:.04em;line-height:1.15;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-transform:uppercase;transition:none}
.ny-promo a.button.ny-promo__button:hover,.ny-promo a.button.ny-promo__button:focus-visible{color:var(--red,#bb3731);background:#fff}
.ny-promo a.button.ny-promo__button:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* tablet: the site's 28vw top padding is meant for the hero overlap; with the promo inside, less is enough */
@media (min-width:768px) and (max-width:1024px){.history-teaser__inner.has-ny-promo{padding-top:17vw}}
/* the history row below gets less top padding because the promo already gives air */
.history-teaser__inner.has-ny-promo .history-teaser__row{padding-top:var(--nyp-row)}

/* 768–1180 (spec at 960) */
@media (min-width:768px) and (max-width:1180px){
  .history-teaser__inner.has-ny-promo{--nyp-pad:24.06vw;--nyp-row:9.27vw}
  .ny-promo__panel{min-height:360px;grid-template-columns:50% 50%}
  .ny-promo__cast{width:55%}
  .ny-promo__copy{padding:26px 30px 26px 0}
  .ny-promo .ny-promo__panel .ny-promo__title{font-size:34px;line-height:1.08;margin-bottom:12px}
  .ny-promo .ny-promo__panel p.ny-promo__dates{font-size:16px;margin-bottom:10px}
  .ny-promo .ny-promo__panel p.ny-promo__text{font-size:15px;line-height:1.38;margin-bottom:16px}
  .ny-promo a.button.ny-promo__button{width:300px;height:56px;min-height:56px;font-size:15px}
}
/* ≤767 (spec at 390) */
@media (max-width:767px){
  .history-teaser__inner.has-ny-promo{--nyp-pad:62px;--nyp-row:15px}
  .ny-promo{--nyp-overhang:64px}
  .ny-promo__panel{display:flow-root;min-height:0}
  .ny-promo__shield{left:50%;top:22px;width:150px;transform:translateX(-24%)}
  .ny-promo__cast{position:relative;display:block;left:auto;bottom:auto;width:min(330px,94%);margin:calc(-1 * var(--nyp-overhang)) auto 0;
    -webkit-mask-image:linear-gradient(#000 78%,transparent 99%);mask-image:linear-gradient(#000 78%,transparent 99%)}
  .ny-promo__copy{padding:8px 24px 28px;text-align:left}
  .ny-br{display:none}
  .ny-promo__snow--mid{display:none}
  .ny-promo .ny-promo__panel .ny-promo__title{font-size:34px;line-height:1.08;margin-bottom:14px;text-wrap:balance}
  .ny-promo .ny-promo__panel p.ny-promo__dates{font-size:16px;margin-bottom:12px}
  .ny-promo__sep{display:none}
  .ny-promo__sessions{display:block;margin-top:2px}
  .ny-promo .ny-promo__panel p.ny-promo__text{font-size:16px;line-height:1.5;margin:0 auto 20px}
  .ny-promo a.button.ny-promo__button{width:100%;height:56px;min-height:56px;font-size:14px}
}

/* ===== Background of the history-teaser when the promo is inside =====
   The site stretches back-04 to 100% x 100% of the section. With the promo the section gets ~1.5x taller,
   the torn top edge would stretch too and run below the video (white jags + a hard line). So: torn top and torn bottom
   are drawn at the LIVE size (--ht-s = live section height at that breakpoint), the middle is filled with a paper-only strip. */
.history-teaser.ny-has-promo{--ht-s:57.6vw}
.history-teaser.ny-has-promo:after{background:
  url(/assets/back-04-scaled.webp) center top/100% var(--ht-s) no-repeat,
  url(/assets/back-04-scaled.webp) center bottom/100% var(--ht-s) no-repeat,
  url(/assets/ny-promo/ny-paper-fill.webp) center calc(var(--ht-s) * .25)/100% calc(100% - var(--ht-s) * .5) no-repeat}
@media (min-width:768px) and (max-width:1180px){.history-teaser.ny-has-promo{--ht-s:84.7vw}}
@media (max-width:767px){
  .history-teaser.ny-has-promo{--ht-s:176vw}
  .history-teaser.ny-has-promo:after{background:
    url(/assets/about-back-02-1-e1742459865667.webp) center top/100% var(--ht-s) no-repeat,
    url(/assets/about-back-02-1-e1742459865667.webp) center bottom/100% var(--ht-s) no-repeat,
    url(/assets/ny-promo/ny-paper-fill-m.webp) center calc(var(--ht-s) * .17)/100% calc(100% - var(--ht-s) * .34) no-repeat}
}
