/* /styles/offer.css?v=1 */
/* Black Friday and Cyber Monday 2026 (src/content/black-friday.mjs). Nothing here shows unless the head script has set
   data-offer or data-company-offer on <html>, and the parts it styles are drawn by script, so a page without the
   period, or without scripts, looks exactly as it did. Colours and sizes are the site's own (assets-tokens.css). */

/* /courses/: one strip at the top. While a period is on the offer takes the announcement bar's place and look (lime,
   announcement.css), and the AML check bar steps aside. */
html[data-offer] body[data-page="courses"] .site-announcement{display:none}

/* The banner at the top of /courses/. */
.offer-banner{background:var(--amlcc-lime,#c1f99b);color:#203e3b;font-family:var(--amlcc-font,Inter,sans-serif)}
.offer-banner[hidden]{display:none}
.offer-banner-inner{box-sizing:border-box;max-width:calc(var(--ds-content,1200px) + 2 * var(--ds-gutter,48px));margin:0 auto;padding:8px var(--ds-gutter,48px);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 24px}
.offer-banner-message{margin:0;font-size:15px;line-height:1.4;font-weight:600}
.offer-banner .offer-countdown{margin:0;font-size:14px}
.offer-banner .offer-countdown-value{font-weight:600}
.offer-terms-link{font-size:14px;color:#203e3b;text-decoration:underline;text-underline-offset:3px}
.offer-terms-link:hover{color:#31544e}
.offer-banner a:focus-visible,.offer-banner button:focus-visible{outline:2px solid #203e3b;outline-offset:3px}

/* A code with its copy button: on the banner and in the popup. */
.offer-code{display:inline-flex;align-items:center;gap:10px;border:1px dashed rgba(32,62,59,.55);border-radius:var(--amlcc-radius-control,8px);padding:3px 3px 3px 12px;max-width:100%;box-sizing:border-box}
.offer-code-label{font-size:13px;color:#3d5650}
.offer-code-value{font-family:inherit;font-size:15px;font-weight:700;letter-spacing:.02em;color:#203e3b;background:none;padding:0;user-select:all;font-variant-numeric:tabular-nums}
.offer-copy{appearance:none;border:1px solid #203e3b;border-radius:6px;background:#203e3b;color:#f5f8f4;font:600 14px/1 var(--amlcc-font,Inter,sans-serif);min-height:36px;padding:0 14px;cursor:pointer;white-space:nowrap}
.offer-copy:hover{background:#31544e;border-color:#31544e}
.offer-countdown-value{font-variant-numeric:tabular-nums}

/* Each eligible price on /courses/: the offer amount first, the usual price struck through after it. Until offer.js has
   written the amount as text, the attribute's copy shows, so the first paint already has it. */
html[data-offer="bf"]:not([data-currency]) .offer-price[data-bf-eur]:not(.offer-ready)::before{content:attr(data-bf-eur)}
html[data-offer="bf"][data-currency="USD"] .offer-price[data-bf-usd]:not(.offer-ready)::before{content:attr(data-bf-usd)}
html[data-offer="bf"][data-currency="GBP"] .offer-price[data-bf-gbp]:not(.offer-ready)::before{content:attr(data-bf-gbp)}
html[data-offer="cm"]:not([data-currency]) .offer-price[data-cm-eur]:not(.offer-ready)::before{content:attr(data-cm-eur)}
html[data-offer="cm"][data-currency="USD"] .offer-price[data-cm-usd]:not(.offer-ready)::before{content:attr(data-cm-usd)}
html[data-offer="cm"][data-currency="GBP"] .offer-price[data-cm-gbp]:not(.offer-ready)::before{content:attr(data-cm-gbp)}
html[data-offer="bf"] .offer-price[data-bf-eur]:not(.offer-ready)::before,html[data-offer="cm"] .offer-price[data-cm-eur]:not(.offer-ready)::before,.offer-ready>.offer-now{font-weight:700;margin-right:.35em;text-decoration:none}
html[data-offer="bf"] .offer-price[data-bf-eur]:not(.offer-ready) .rp,html[data-offer="cm"] .offer-price[data-cm-eur]:not(.offer-ready) .rp,.offer-ready>.offer-was{text-decoration:line-through;text-decoration-thickness:1px;font-weight:400;opacity:.72}

/* The companies' line in the courses page's team section: the AML check line's own part (.cat-team-check). */
.offer-company[hidden]{display:none}
.offer-company .offer-company-text strong{font-weight:600;color:#203e3b}

/* The offer terms on /courses/. */
.offer-terms{background:var(--ds-surface-soft,#f6f8f6);color:var(--ds-text,#203432);padding:48px 0 56px}
.offer-terms[hidden]{display:none}
#offer-terms .offer-terms-title{font-size:var(--ds-font-title,24px);line-height:1.25;letter-spacing:-.02em;margin:0 0 16px;max-width:none}
.offer-terms-list{margin:0;padding:0 0 0 20px;max-width:var(--ds-reading-width,65ch);display:grid;gap:8px;font-size:15px;line-height:1.6;color:#3d5650}
.offer-terms-general{margin:16px 0 0;font-size:15px}
.offer-terms :target,.offer-terms:target{scroll-margin-top:96px}

/* The popup: a dialog in the middle of the screen on wider screens, a sheet at the bottom on phones (a full-screen
   popup on a phone is what Google's mobile search ranks down). */
.offer-popup{box-sizing:border-box;width:min(448px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;border:0;border-radius:var(--amlcc-radius-panel,12px);padding:28px 28px 24px;background:#fff;color:var(--ds-text,#203432);font-family:var(--amlcc-font,Inter,sans-serif);box-shadow:0 24px 64px rgba(16,40,36,.28)}
.offer-popup::backdrop{background:rgba(16,32,30,.5)}
.offer-popup[open]{animation:offer-in .22s ease-out}
.offer-popup-close{position:absolute;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:none;color:#203e3b;cursor:pointer}
.offer-popup-close:hover{background:#edf2e9}
.offer-popup-title{margin:0 40px 8px 0;font-size:var(--ds-font-title,24px);line-height:1.2;letter-spacing:-.02em;font-weight:700;color:#203e3b}
.offer-popup-subtitle{margin:0 0 20px;font-size:17px;line-height:1.5;color:var(--ds-text-muted,#526d64)}
.offer-popup .offer-code{border-color:rgba(36,65,64,.6);display:flex;justify-content:space-between}
.offer-popup .offer-code-label{color:var(--ds-text-muted,#526d64)}
.offer-popup .offer-code-value{color:#203e3b;font-size:17px;margin-right:auto}
.offer-popup .offer-copy{min-height:40px}
.offer-popup .offer-countdown{margin:12px 0 20px;font-size:14px;color:var(--ds-text-muted,#526d64)}
.offer-popup .offer-countdown-value{color:#203e3b;font-weight:600}
.offer-popup .offer-popup-button{box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:0 20px;border-radius:var(--amlcc-radius-control,8px);background:#244140;color:#f3f7f3;font-size:16px;font-weight:600;text-decoration:none}
.offer-popup .offer-popup-button:hover{background:#1b3331;color:#f3f7f3}
.offer-popup .offer-popup-button svg{flex-shrink:0}
.offer-popup-rule{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--ds-text-muted,#526d64)}
.offer-popup-rule a{color:#203e3b;text-underline-offset:3px}
.offer-popup-team{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--ds-line,#cdded4);font-size:14px;line-height:1.5;color:var(--ds-text-muted,#526d64)}
.offer-popup-team a{color:#087b65;font-weight:600;text-underline-offset:3px}
.offer-popup a:focus-visible,.offer-popup button:focus-visible{outline:2px solid #087b65;outline-offset:3px}
.offer-popup--sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:min(70vh,520px);border-radius:var(--amlcc-radius-panel,12px) var(--amlcc-radius-panel,12px) 0 0;padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 40px rgba(16,40,36,.24);z-index:1000}
.offer-popup--sheet[open]{animation:offer-up .26s ease-out}
.offer-popup--sheet .offer-popup-close{top:2px;right:2px}
.offer-popup--sheet .offer-popup-title{font-size:18px;margin:0 40px 2px 0}
.offer-popup--sheet .offer-popup-subtitle{font-size:14px;margin-bottom:10px}
.offer-popup--sheet .offer-code-value{font-size:15px}
.offer-popup--sheet .offer-countdown{margin:8px 0 10px;font-size:13px}
.offer-popup.offer-popup--sheet .offer-popup-button{min-height:44px;font-size:15px}
.offer-popup--sheet .offer-popup-rule{margin-top:8px;font-size:12px}
.offer-popup--sheet .offer-popup-team{margin-top:10px;padding-top:8px;font-size:13px}
@keyframes offer-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes offer-up{from{transform:translateY(100%)}to{transform:none}}

@media (max-width:700px){
  .offer-banner-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-content:stretch;gap:8px 16px;padding:10px 16px}
  .offer-banner-message{grid-column:1/-1;font-size:14px}
  .offer-banner .offer-code{grid-column:1/-1;justify-content:space-between}
  .offer-banner .offer-code-value{margin-right:auto}
  .offer-banner .offer-countdown{font-size:13px}
  .offer-terms-link{font-size:13px;justify-self:end}
  .offer-terms{padding:40px 0 44px}
  #offer-terms .offer-terms-title{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .offer-popup[open],.offer-popup--sheet[open]{animation:none}
}
