/* On-site webinar promo touchpoints (site/src/lib/webinar-promo.ts). Bump PROMO_ASSET_VERSION on change.
   Selectors use two classes on purpose: the theme's `.u-color-primary-dark-blue p` rule
   (opacity .7, weight 400) would otherwise grey out text inside navy-text sections. */

.ou-promo-photos{display:inline-flex; flex:none;}
.ou-promo-photos img{display:block; border-radius:50%; object-fit:cover; border:2px solid var(--color-primary-dark-blue,#152361);}
.ou-promo-photos img + img{margin-left:-12px;}
.ou-promo-pill{display:inline-block; flex:none; padding:3px 9px; border-radius:999px; background:var(--color-primary-white,#fff);
  color:var(--color-primary-dark-blue,#152361); font-size:12px; font-weight:700; line-height:1.3; text-transform:uppercase; letter-spacing:.04em;}

.ou-promo-date{display:inline-flex; flex-direction:column; align-items:center; justify-content:center; flex:none;
  width:64px; height:64px; border-radius:var(--radius-medium,8px); background:#fff; color:var(--color-primary-dark-blue,#152361);
  font-family:var(--font-sans,Montserrat,sans-serif); line-height:1;}
.ou-promo-date__day{font-family:var(--font-serif,"Noto Serif JP",serif); font-size:26px; font-weight:900;}
.ou-promo-date__month{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-top:4px;}

/* Top bar, above the header */
/* own layer: the homepage hero is pulled up behind the header (negative margin) and would
   otherwise paint over the bar's bottom edge; stays below the header (z 50) and its drawer */
.ou-promo-bar{position:relative; z-index:1; background:var(--color-primary-dark-blue,#152361); color:var(--color-primary-white,#fff); font-family:var(--font-sans,Montserrat,sans-serif);}
.ou-promo-bar .ou-promo-bar__inner{display:flex; align-items:center; gap:12px; min-height:44px; padding-top:6px; padding-bottom:6px;}
.ou-promo-bar .ou-promo-bar__link{display:flex; align-items:center; gap:12px; flex:1; min-width:0; justify-content:center;
  color:var(--color-primary-white,#fff); text-decoration:none; font-size:14px; line-height:1.4;}
.ou-promo-bar .ou-promo-bar__text{min-width:0;}
.ou-promo-bar .ou-promo-bar__text b{font-weight:700;}
.ou-promo-bar .ou-promo-bar__cta{flex:none; font-weight:700; color:var(--color-primary-blue,#48b4ff);}
.ou-promo-bar .ou-promo-bar__link:hover .ou-promo-bar__cta{text-decoration:underline;}
.ou-promo-bar .ou-promo-bar__close{flex:none; width:32px; height:32px; border:0; border-radius:50%; background:transparent;
  color:var(--color-primary-white,#fff); font-size:22px; line-height:1; cursor:pointer;}
.ou-promo-bar .ou-promo-bar__close:hover{background:rgba(255,255,255,.12);}
@media (max-width: 767px){
  /* stacked: date, text, link, each on its own line with room between them */
  .ou-promo-bar .ou-promo-bar__inner{align-items:flex-start; padding-top:12px; padding-bottom:12px;}
  .ou-promo-bar .ou-promo-bar__link{flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:8px; font-size:13px; line-height:1.45;}
  .ou-promo-bar .ou-promo-bar__close{margin-top:-4px;}
}

/* Resources menu card: the menu's featured-card style. The two columns keep the width
   they have next to a 300px card; the card then starts as far after the theme list's
   text as the theme list starts after the first column's text (the theme list is 30px
   narrower than the first column, so the card reaches 30px into its column). Desktop
   menu only: in the mobile drawer (up to 1060px) the card keeps the drawer's own layout. */
@media (min-width: 1061px){
  .nav-mega .nav-mega-aside.ou-promo-nav{width:330px; margin-left:-30px;}
}
/* The replaced card (and the article card before the script places it) carry
   `hidden`; some page stylesheets (the NL homepage, the mobile drawer) give
   .nav-mega-aside a display value that would otherwise show it anyway. */
#ou-promo-nav-fallback[hidden], .ou-promo-article[hidden]{display:none !important;}
.nav-mega .ou-promo-nav .ou-promo-nav__tags{display:flex; align-items:center; gap:8px;}
.nav-mega .ou-promo-nav .ou-promo-nav__date{padding:2px 8px; border-radius:999px; background:rgba(0,168,133,.14);
  font-family:var(--font-sans); font-size:11px; font-weight:700; letter-spacing:.03em; line-height:1.4; text-transform:uppercase; color:var(--green-600);}

/* Article card, inside the text (placed by the script in the first half) */
.entry-content .ou-promo-article{display:flex; align-items:center; gap:24px; margin:40px 0; padding:24px;
  border-radius:var(--radius-large,16px); background:var(--color-primary-dark-blue,#152361); color:var(--color-primary-white,#fff);}
.entry-content .ou-promo-article[hidden]{display:none;}
/* the article body's own link rule (underline, navy, light weight) must not reach the card */
.entry-content .ou-promo-article a{text-decoration:none !important;}
.entry-content .ou-promo-article a.ou-promo-article__link{flex:1; min-width:0; display:block; color:var(--color-primary-white,#fff) !important;}
.entry-content .ou-promo-article .c-btn{flex:none; margin:0; white-space:nowrap; font-weight:500 !important;}
.ou-promo-article .ou-promo-article__tag{display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; line-height:1.3; color:var(--color-primary-blue,#48b4ff);}
.ou-promo-article .ou-promo-article__title{display:block; margin-top:10px; font-family:var(--font-serif,"Noto Serif JP",serif); font-weight:900;
  font-size:22px; line-height:1.25; color:var(--color-primary-white,#fff); text-wrap:balance;}
.ou-promo-article .ou-promo-article__speakers{display:flex; align-items:center; gap:10px; margin-top:16px; font-size:13px; line-height:1.4; font-weight:400; color:var(--color-primary-white,#fff);}
.ou-promo-article .ou-promo-photos img{width:52px; height:52px;}
.ou-promo-article .ou-promo-photos img + img{margin-left:-14px;}
@media (max-width: 767px){
  .entry-content .ou-promo-article{flex-direction:column; align-items:stretch; gap:16px; padding:20px; margin:32px 0;}
  .ou-promo-article .ou-promo-article__title{font-size:20px;}
  .entry-content .ou-promo-article .c-btn{text-align:center;}
}

/* Resources overview and theme pages: band after the hero */
.ou-promo-band{padding:32px 0;}
.ou-promo-band .ou-promo-band__card{display:flex; align-items:center; gap:24px; padding:24px 32px; border-radius:var(--radius-large,16px);
  color:var(--color-primary-white,#fff);}
.ou-promo-band .ou-promo-band__body{flex:1; min-width:0;}
.ou-promo-band .ou-promo-band__body p{opacity:1; margin:0;}
.ou-promo-band .ou-promo-band__tag{font-size:13px; line-height:1.4; font-weight:700; letter-spacing:.03em; color:var(--color-primary-blue,#48b4ff);}
.ou-promo-band .ou-promo-band__body .ou-promo-band__title{margin-top:6px; font-family:var(--font-serif,"Noto Serif JP",serif); font-weight:900;
  font-size:var(--text-large,24px); line-height:1.25; color:var(--color-primary-white,#fff);}
.ou-promo-band .ou-promo-band__body .ou-promo-band__meta{margin-top:16px; font-size:14px; line-height:1.5; font-weight:400; color:var(--color-primary-white,#fff);}
.ou-promo-band .ou-promo-photos img{width:64px; height:64px;}
.ou-promo-band .ou-promo-band__cta{flex:none; white-space:nowrap;}

/* date chip next to the label: only on phones, where the date tile is hidden */
.ou-promo-band .ou-promo-band__pill{display:none;}
@media (max-width: 991px){
  .ou-promo-band .ou-promo-band__card{flex-wrap:wrap; padding:24px;}
  .ou-promo-band .ou-promo-band__body{flex-basis:calc(100% - 88px);}
  .ou-promo-band .ou-promo-band__speakers{order:3;}
  .ou-promo-band .ou-promo-band__cta{order:4; margin-left:auto;}
}
/* phones: same order as the article card: label + date chip, title, photos next to
   the speaker line, full-width button */
@media (max-width: 575px){
  .ou-promo-band .ou-promo-band__card{display:grid; grid-template-columns:auto 1fr; gap:0 14px; padding:20px;
    grid-template-areas:"tag tag" "title title" "photos meta" "cta cta";}
  .ou-promo-band .ou-promo-band__body{display:contents;}
  .ou-promo-band .ou-promo-date{display:none;}
  .ou-promo-band .ou-promo-band__pill{display:inline-block; margin-right:8px;}
  .ou-promo-band .ou-promo-band__body .ou-promo-band__tag{grid-area:tag; display:flex; align-items:center;}
  .ou-promo-band .ou-promo-band__body .ou-promo-band__title{grid-area:title; margin-top:10px; font-size:20px;}
  .ou-promo-band .ou-promo-band__speakers{grid-area:photos; align-self:center; margin-top:16px;}
  .ou-promo-band .ou-promo-photos img{width:52px; height:52px;}
  .ou-promo-band .ou-promo-band__body .ou-promo-band__meta{grid-area:meta; align-self:center; margin-top:16px; font-size:13px; line-height:1.4;}
  .ou-promo-band .ou-promo-band__cta{grid-area:cta; width:100%; margin:20px 0 0; text-align:center;}
}

