/* GO-1030 NC101 ad: the course card (synced block 11524 "Blog Post / Ad /
   Non-Clinical 101", one wp:html block, root div.nc101-card).

   The must-use plugin serves this file as a stylesheet on every single post
   (handle tncpt-nc101-card, mu-plugins/tncpt-site/sections/nc101-card.php).
   scripts/deploy.mjs deploys it. Until 2026-12 functions.php printed a copy
   inline. The block markup is in scripts/nc101-card.mjs.

   Two designs for the A/B test, the same markup and layout, different colors:
   blue, the default (solid blue header, white logo), and pink, which applies
   when <html> has data-nc101-design="pink" (soft pomegranate header, full-color
   logo, pomegranate accents). The GTM tag sets that attribute, the same way as
   data-signup-design="teal" on the signup card.
   The markup carries both logos and both faded marks (2x PNGs in the media
   library, because WordPress blocks SVG uploads); CSS shows the pair for the
   active design (.nc101-card__blue / .nc101-card__pink). Hidden images are
   display:none, so they are out of the accessibility tree.
   Fonts: Nunito 400/700/800/900 and Caveat 700. The must-use plugin prints the
   Nunito link on every single post (tncpt_slots_print_assets() or, with every
   slot off, tncpt_nc101_card_print_assets()). Caveat 700 comes from the theme's
   own Google Fonts link.
   Layout keys off the card's own width (container query), like signup-slots.css.
   Contrast (WCAG): blue: white on #007DAF 4.61:1, under the darkened orb more;
   label #00658F 6.45:1; checks #00658F on #D7EDF7 5.32:1. Pink: headline
   #2B2B2B 11.15:1, from line and promise #374151 8.12:1, eyebrow #9E2F50 5.56:1,
   "101" #BD3F67 4.06:1 (large text); button white on #BD3F67 5.16:1, hover
   #9E2F50 7.06:1; label #BD3F67 5.16:1; checks #BD3F67 on #F7DEE5 4.06:1. */

div.nc101-card {
  --blue-50: #D7EDF7; --blue-100: #A1D3EC; --blue-500: #007DAF; --blue-700: #00658F;
  --charcoal: #2B2B2B; --gray-600: #4B5563; --gray-200: #E5E7EB;
  --font-sans: 'Nunito', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  container-type: inline-size;
  position: relative; isolation: isolate; overflow: hidden;
  box-sizing: border-box; width: 100%; max-width: 760px;
  margin: 2.4em auto 2.6em; padding: 0;
  background: #FFFFFF; border: 1px solid var(--blue-100); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0, 61, 87, .06), 0 12px 32px -18px rgba(0, 61, 87, .35);
  color: var(--charcoal); font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  text-align: left;
  transition: box-shadow .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
}
div.nc101-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 61, 87, .06), 0 22px 44px -20px rgba(0, 61, 87, .45); }
div.nc101-card *, div.nc101-card *::before, div.nc101-card *::after { box-sizing: border-box; }

/* ---------- Header: A2 ---------- */
div.nc101-card .nc101-card__top {
  position: relative; overflow: hidden;
  padding: 24px 22px 24px;
  background: var(--blue-500); color: #FFFFFF;
}
div.nc101-card .nc101-card__top::before { /* the CTA banner's bounded orb, kept clear of the text */
  content: ""; position: absolute; top: -120px; right: -90px; width: 300px; height: 300px;
  border-radius: 9999px; background: rgba(0, 55, 85, .14); /* darker, so white text over it gains contrast */ z-index: 0;
}
div.nc101-card img.nc101-card__mark {
  position: absolute; z-index: 0; top: -30px; right: -36px; bottom: auto; width: 126px; height: auto;
  margin: 0; opacity: .2; transform: rotate(-8deg); pointer-events: none;
}
div.nc101-card .nc101-card__meta {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 20px;
}
div.nc101-card img.nc101-card__logo { display: block; width: auto; height: 30px; margin: 0; }
div.nc101-card p.nc101-card__from { /* two short lines on a phone, so it ends left of the faded mark */
  max-width: 11.5em; margin: 0; color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1.3;
}
div.nc101-card p.nc101-card__hand {
  position: relative; margin: 0 0 2px; color: #FFFFFF;
  font-family: var(--font-hand); font-weight: 700; font-size: 25px; line-height: 1.1;
}
div.nc101-card p.nc101-card__title {
  position: relative; margin: 0; color: #FFFFFF;
  font-family: var(--font-sans); font-weight: 900; letter-spacing: -.02em; line-height: 1.02;
  font-size: 30px; font-size: clamp(28px, 10.4cqi, 58px);
}
div.nc101-card .nc101-card__u {
  white-space: nowrap; padding-bottom: .1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M1 9.8 C60 12.2 130 11.4 199 6.6 L199 8 C130 14.7 60 15.6 1 13.2 Z' fill='%23EB6A0F'/%3E%3C/svg%3E") no-repeat 0 96% / 100% .34em;
}
div.nc101-card p.nc101-card__sub {
  position: relative; max-width: 30em; margin: 14px 0 0; color: #FFFFFF;
  font-weight: 700; font-size: 17px; line-height: 1.4;
}

/* ---------- Body: what's included ---------- */
div.nc101-card .nc101-card__body { padding: 20px 22px 22px; }
div.nc101-card p.nc101-card__label {
  margin: 0 0 12px; color: var(--blue-700);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
div.nc101-card ul.nc101-card__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 9px 28px;
}
div.nc101-card ul.nc101-card__list li {
  position: relative; margin: 0; padding: 0 0 0 30px;
  color: var(--charcoal); font-size: 15.5px; line-height: 1.4; list-style: none;
}
div.nc101-card ul.nc101-card__list li::before { /* check in a tinted rounded square */
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='5.5 12.5 10 17 18.5 7.5' fill='none' stroke='%2300658F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 15px 15px;
}
div.nc101-card ul.nc101-card__list strong { font-weight: 800; }

div.nc101-card .nc101-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200);
}
div.nc101-card a.nc101-card__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 20px;
  background: var(--blue-500); color: #FFFFFF; border-radius: 9999px;
  font-family: var(--font-sans); font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none; box-shadow: 0 8px 18px -10px rgba(0, 101, 143, .8);
  transition: background-color .15s;
}
div.nc101-card a.nc101-card__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 24px; }
div.nc101-card a.nc101-card__cta svg { width: 18px; height: 18px; flex: none; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
div.nc101-card:hover a.nc101-card__cta { background: var(--blue-700); }
div.nc101-card:hover a.nc101-card__cta svg { transform: translateX(3px); }
div.nc101-card a.nc101-card__cta:focus-visible::after { box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px #00658F; }
div.nc101-card a.nc101-card__cta:focus-visible { outline: 3px solid #00658F; outline-offset: 3px; }
div.nc101-card p.nc101-card__note { margin: 0 auto; text-align: center; color: var(--gray-600); font-size: 14px; line-height: 1.4; }
div.nc101-card .nc101-nw { white-space: nowrap; }
div.nc101-card .nc101-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Wider card: two-column list, button beside its note ---------- */
@container (min-width: 520px) {
  div.nc101-card .nc101-card__top { padding: 30px 40px 30px; }
  div.nc101-card .nc101-card__meta { flex-direction: row-reverse; justify-content: space-between; align-items: center; margin-bottom: 22px; }
  div.nc101-card img.nc101-card__logo { height: 34px; }
  div.nc101-card p.nc101-card__from { max-width: none; font-size: 15px; }
  div.nc101-card p.nc101-card__hand { font-size: 30px; }
  div.nc101-card p.nc101-card__sub { font-size: 20px; max-width: 26em; }
  div.nc101-card .nc101-card__body { padding: 28px 40px 32px; }
  div.nc101-card ul.nc101-card__list { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
  div.nc101-card ul.nc101-card__list li { font-size: 16px; }
  div.nc101-card img.nc101-card__mark { top: auto; width: 280px; right: -40px; bottom: -110px; }
  div.nc101-card p.nc101-card__note { margin: 0; text-align: right; }
  div.nc101-card a.nc101-card__cta { width: auto; padding: 12px 26px; }
  div.nc101-card .nc101-card__foot { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  div.nc101-card, div.nc101-card a.nc101-card__cta svg { transition: none; }
  div.nc101-card:hover { transform: none; }
}


/* ---------- Which logo and mark show ---------- */
div.nc101-card img.nc101-card__pink { display: none; }
html[data-nc101-design="pink"] div.nc101-card img.nc101-card__blue { display: none; }
html[data-nc101-design="pink"] div.nc101-card img.nc101-card__pink { display: block; }


/* ---------- Pink design: soft pomegranate header ----------
   Overrides the blue header above. Full-color logo, pomegranate-700 Caveat
   eyebrow, charcoal headline with a colored "101", gray-700 from line and
   promise, the tinted outline icon. The body's accents follow the header. */
html[data-nc101-design="pink"] div.nc101-card { border-color: #EDC2CF; }
html[data-nc101-design="pink"] div.nc101-card .nc101-card__top { background: #F7DEE5; color: #2B2B2B; border-bottom: none; }
html[data-nc101-design="pink"] div.nc101-card .nc101-card__top::before { background: rgba(255, 255, 255, .5); }
html[data-nc101-design="pink"] div.nc101-card img.nc101-card__mark { opacity: .22; }
html[data-nc101-design="pink"] div.nc101-card p.nc101-card__from { color: #374151; }
html[data-nc101-design="pink"] div.nc101-card p.nc101-card__hand { color: #9E2F50; }
html[data-nc101-design="pink"] div.nc101-card p.nc101-card__title { color: #2B2B2B; }
html[data-nc101-design="pink"] div.nc101-card .nc101-card__u { color: #007DAF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M1 9.8 C60 12.2 130 11.4 199 6.6 L199 8 C130 14.7 60 15.6 1 13.2 Z' fill='%23BD3F67'/%3E%3C/svg%3E"); }
html[data-nc101-design="pink"] div.nc101-card p.nc101-card__sub { color: #374151; }
html[data-nc101-design="pink"] div.nc101-card p.nc101-card__label { color: #00658F; }
html[data-nc101-design="pink"] div.nc101-card ul.nc101-card__list li::before { background-color: #D7EDF7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='5.5 12.5 10 17 18.5 7.5' fill='none' stroke='%2300658F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-nc101-design="pink"] div.nc101-card a.nc101-card__cta { background: #007DAF; box-shadow: 0 8px 18px -10px rgba(0, 101, 143, .8); }
html[data-nc101-design="pink"] div.nc101-card:hover a.nc101-card__cta { background: #00658F; }
html[data-nc101-design="pink"] div.nc101-card a.nc101-card__cta:focus-visible { outline-color: #00658F; }
html[data-nc101-design="pink"] div.nc101-card a.nc101-card__cta:focus-visible::after { box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px #00658F; }


/* ---------- Accents on the pink header: soft pomegranate accents ----------
   Changes only the check tiles and checks, the label, the button (hover and
   focus), the card border and the "101" with its underline. */
html[data-nc101-design="pink"] div.nc101-card { border-color: #F7DEE5; }
html[data-nc101-design="pink"] div.nc101-card .nc101-card__u { color: #BD3F67; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M1 9.8 C60 12.2 130 11.4 199 6.6 L199 8 C130 14.7 60 15.6 1 13.2 Z' fill='%23EB6A0F'/%3E%3C/svg%3E"); }
html[data-nc101-design="pink"] div.nc101-card p.nc101-card__label { color: #BD3F67; }
html[data-nc101-design="pink"] div.nc101-card ul.nc101-card__list li::before { background-color: #F7DEE5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='5.5 12.5 10 17 18.5 7.5' fill='none' stroke='%23BD3F67' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-nc101-design="pink"] div.nc101-card a.nc101-card__cta { background: #BD3F67; box-shadow: 0 8px 18px -10px rgba(158, 47, 80, .7); }
html[data-nc101-design="pink"] div.nc101-card:hover a.nc101-card__cta { background: #9E2F50; }
html[data-nc101-design="pink"] div.nc101-card a.nc101-card__cta:focus-visible { outline-color: #9E2F50; }
html[data-nc101-design="pink"] div.nc101-card a.nc101-card__cta:focus-visible::after { box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px #9E2F50; }
