/* The Enzyme Notebook — additions on top of the theme. Colours come from the
   theme's own variables or currentColor so light and dark schemes both work. */

/* logo is wider than the demo's */
.cs-header__logo img, .cs-footer__logo img { width: auto; max-height: 30px; }
@media (max-width: 575.98px) { .cs-header__logo-mobile img { max-height: 24px; } }

/* entry body */
.entry-content .en-lead { font-size: 1.125rem; line-height: 1.6; }
.entry-content .en-lead strong, .entry-content .en-callout strong { font-family: var(--cs-font-headings-family, inherit); }
.entry-content .en-callout {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-radius: var(--cs-thumbnail-border-radius, 12px);
  border-left: 3px solid var(--cs-color-accent, #206bea);
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.entry-content .en-callout p { margin: 0; }
.entry-content .en-about { opacity: .85; font-style: italic; }
.entry-content .en-about strong { font-style: normal; }

/* figures: photos keep their own proportions; tall ones are narrowed */
.entry-content figure.wp-block-image img { border-radius: var(--cs-thumbnail-border-radius, 12px); }
.entry-content figure.en-portrait { max-width: 460px; margin-left: auto; margin-right: auto; }
.entry-content figure.en-small { max-width: 560px; margin-left: auto; margin-right: auto; }
.entry-content figure.en-small img, .entry-content figure.en-portrait img { width: 100%; height: auto; }
.entry-content .wp-element-caption { line-height: 1.5; }
.entry-content .en-credit { display: block; margin-top: .35rem; font-size: .75rem; opacity: .7; }
.entry-content .en-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* related entries and sources */
.entry-content .en-related, .entry-content .en-sources {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.entry-content .en-related h3, .entry-content .en-sources h3 { font-size: 1rem; margin: 0 0 .75rem; text-transform: none; }
.entry-content .en-related ul, .entry-content .en-sources ul { list-style: none; padding-left: 0; margin: 0; }
.entry-content .en-related li, .entry-content .en-sources li { margin: 0 0 .55rem; padding-left: 0; }
.entry-content .en-related li::before, .entry-content .en-sources li::before { display: none; }
.entry-content .en-related li a { display: block; text-decoration: none; }
.entry-content .en-related li a:hover .en-related-title { text-decoration: underline; }
.entry-content .en-related-date, .en-credits .en-related-date {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--cs-color-accent, #206bea);
}
.entry-content .en-related-title { font-weight: 500; }
.entry-content .en-related-note { display: block; font-size: .8125rem; opacity: .65; }
.entry-content .en-related li { margin-bottom: .9rem; }
.entry-content .en-sources a { text-decoration: none; word-break: break-word; }
.entry-content .en-src-host { font-weight: 600; }
.entry-content .en-src-path { opacity: .6; font-size: .875rem; margin-left: .15rem; }
.entry-content .en-sources a:hover .en-src-host { text-decoration: underline; }

/* post header without a featured picture: keep the info bar off the title */
.cs-entry__header.en-header-no-media .cs-entry__header-infobar { margin-top: 1.5rem; }
.cs-entry__header .cs-meta-reading-time { opacity: .7; }
.cs-entry__header .cs-meta-reading-time::before { content: "\00b7"; margin: 0 .5rem 0 .25rem; }
.cs-entry__post-meta-bottom .cs-entry__post-meta { display: flex; align-items: center; }
.cs-entry__media figcaption.en-hero-caption { margin-top: .5rem; font-size: .75rem; opacity: .6; text-align: right; }

/* listings */
.en-list-heading { margin: 0 0 1.5rem; font-size: .875rem; font-weight: 600; opacity: .7; }
.cs-page__archive-description .en-count { margin-top: .5rem; font-size: .875rem; opacity: .65; }
.cs-categories__item .en-cat-count { margin-top: .25rem; font-size: .75rem; opacity: .75; }
.cs-category__item .en-cat-desc { margin-top: .35rem; font-size: .8125rem; line-height: 1.45; opacity: .8; }
.cs-page__thumbnail img.en-author-thumb { border-radius: 50%; }

/* about-band buttons */


/* archive page */
.entry-content .en-archive-month { margin-top: 2.5rem; font-size: 1.25rem; }
.entry-content ul.en-archive { list-style: none; padding: 0; }
.entry-content ul.en-archive li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .75rem; align-items: baseline;
  padding: .6rem 0; margin: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.entry-content ul.en-archive li::before { display: none; }
.entry-content ul.en-archive time { font-size: .8125rem; font-weight: 600; color: var(--cs-color-accent, #206bea); }
.entry-content ul.en-archive a { text-decoration: none; }
.entry-content ul.en-archive a:hover { text-decoration: underline; }
.entry-content .en-archive-cat { font-size: .75rem; opacity: .6; white-space: nowrap; }
@media (max-width: 575.98px) {
  .entry-content ul.en-archive li { grid-template-columns: 3.8rem 1fr; }
  .entry-content .en-archive-cat { grid-column: 2; }
}
.entry-content ul.en-topic-list li { margin-bottom: .5rem; }
.entry-content .en-count-inline { opacity: .6; font-size: .875rem; }

/* search page */
.en-search-form { display: flex; gap: .5rem; max-width: 560px; margin-top: 1rem; }
.en-search-form input[type=search] { flex: 1; min-width: 0; }
.en-search-status { margin-top: 1rem; font-size: .875rem; opacity: .75; }

/* standard post header without a picture: one column, title at reading width */
.cs-entry__header-standard.en-header-no-media { grid-template-columns: 1fr; }
.cs-entry__header-standard.en-header-no-media .cs-entry__header-content { max-width: 860px; }

/* about band: theme block buttons, centred */
.cs-subscribe .en-cta { max-width: none; }
.cs-subscribe .en-cta .wp-block-buttons { justify-content: center; gap: .75rem; }

/* "Illustration" tag on pictures made for the notebook (cards, slider, sidebar) */
.cs-overlay-background { position: relative; }
.en-illus {
  position: absolute; left: .5rem; bottom: .5rem; z-index: 3; pointer-events: none;
  padding: .15rem .45rem; border-radius: 999px; font-size: .625rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .03em; text-transform: uppercase; color: #fff; background: rgba(22,22,22,.62);
}
.cs-post-slider .en-illus { left: auto; right: 1rem; top: 1rem; bottom: auto; font-size: .6875rem; }
.cs-entry-compact .en-illus, .cs-entry__prev-next .en-illus { left: .25rem; bottom: .25rem; padding: .05rem .3rem; font-size: .5rem; }

/* in-entry figures: open the full-size file */
.entry-content figure a.en-zoom { display: block; cursor: zoom-in; }

/* the batch log on Aug 18 */
.entry-content ul.en-log { padding-left: 1.25rem; }
.entry-content ul.en-log li { margin-bottom: .35rem; }

/* image credits page */
.entry-content ul.en-credits { list-style: none; padding: 0; }
.entry-content ul.en-credits li::before { display: none; }
.entry-content .en-credit-row { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: start;
  padding: .9rem 0; margin: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.entry-content .en-credit-thumb img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; display: block; }
.entry-content .en-credit-entry { text-decoration: none; font-weight: 500; }
.entry-content .en-credit-entry:hover span:last-child { text-decoration: underline; }
.entry-content .en-credit-line { margin-top: .25rem; font-size: .8125rem; opacity: .8; }
.entry-content .en-credit-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.entry-content .en-credit-where { opacity: .7; }
.cs-footer__copyright a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* footer marquee words are searches */
.cs-footer-marquee a.en-marquee-link { color: inherit; text-decoration: none; }
.cs-footer-marquee a.en-marquee-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* topic tiles: same shape whatever the source photo */
.cs-categories__item-thumbnail img, .cs-category__thumb img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }

@media (max-width: 575.98px) {
  /* the title sits right below; a wrapped last crumb only adds noise */
  .cs-breadcrumbs .breadcrumb_last, .cs-breadcrumbs .cs-separator:has(+ .breadcrumb_last) { display: none; }
  .cs-widget-promo { width: 100%; }
  .cs-widget-promo__wrapper { max-width: none; }
}

.cs-post-slider__pagination.en-dots-clickable .swiper-pagination-bullet { cursor: pointer; }

/* phone menu: the theme's sub-menu toggle has no height and cannot be tapped,
   so the six topics would be unreachable from the menu. Show them under Topics. */
#menu-mobile .sub-menu { display: block !important; height: auto !important; max-height: none !important;
  opacity: 1 !important; visibility: visible !important; margin-top: .5rem; padding-left: 1rem; }
#menu-mobile .sub-menu a { font-size: .9375em; opacity: .85; }
#menu-mobile .cs-menu-mobile__nav-arrow { display: none !important; }

@media (max-width: 991.98px) {
  /* footer columns: same zero-height toggle as the phone menu, so keep them open */
  #menu-footer-columns .sub-menu { display: block !important; height: auto !important; max-height: none !important;
    opacity: 1 !important; visibility: visible !important; }
  #menu-footer-columns .cs-footer-columns__nav-arrow { display: none !important; }
}
@media (max-width: 767.98px) {
  /* topics on the home page: all six as a grid instead of a two-at-a-time slider with no visible controls */
  .cs-categories__slider { overflow: visible !important; }
  .cs-categories__list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem 1rem;
    transform: none !important; width: auto !important; }
  .cs-categories__list > .cs-categories__item { width: auto !important; margin: 0 !important; }
  .cs-categories__slider-button-prev, .cs-categories__slider-button-next { display: none !important; }
}

/* ---------------------------------------------------------------- inquiry banner (home, under the slider) */
.en-inquiry { margin-top: 2.5rem; }
.en-inquiry__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; overflow: hidden;
  border-radius: var(--cs-thumbnail-border-radius, 16px);
  background: var(--cs-layout-background, #fff);
  box-shadow: 0 8px 32px 0 rgba(var(--cs-light-primary-color-rgb, 22,22,22), .07);
}
.en-inquiry__text { padding: 2.5rem 2.75rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .9rem; }
.en-inquiry__tag { font-size: .75rem; gap: .35rem; }
.en-inquiry__title { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.en-inquiry__lead { margin: 0; color: var(--cs-color-secondary, #737373); max-width: 34rem; }
.en-inquiry__button { margin-top: .4rem; }
.en-inquiry__image { min-height: 240px; }
.en-inquiry__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767.98px) {
  .en-inquiry { margin-top: 1.5rem; }
  .en-inquiry__card { grid-template-columns: 1fr; }
  .en-inquiry__image { order: -1; min-height: 0; aspect-ratio: 16 / 7; }
  .en-inquiry__text { padding: 1.5rem; }
}

/* ---------------------------------------------------------------- modal */
html.en-modal-open { overflow: hidden; }
.en-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.en-modal[hidden] { display: none; }
.en-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 14, .55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s; }
.en-modal__panel {
  position: relative; width: 100%; max-width: 30rem; max-height: calc(100vh - 2rem); overflow: auto;
  padding: 2rem 2rem 1.5rem; border-radius: var(--cs-thumbnail-border-radius, 16px);
  background: var(--cs-layout-background, #fff); color: var(--cs-color-primary, #161616);
  box-shadow: 0 24px 64px rgba(0,0,0,.25); transform: translateY(12px); opacity: 0; transition: transform .2s, opacity .2s;
}
.en-modal.is-open .en-modal__backdrop { opacity: 1; }
.en-modal.is-open .en-modal__panel { transform: none; opacity: 1; }
.en-modal__close { position: absolute; top: .75rem; right: .75rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .6; }
.en-modal__close:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.en-modal__tag { font-size: .75rem; gap: .35rem; }
.en-modal__title { margin: .9rem 0 .4rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.en-modal__lead { margin: 0 0 1.25rem; color: var(--cs-color-secondary, #737373); font-size: .9375rem; }
.en-form { display: grid; gap: .9rem; }
.en-field { display: grid; gap: .35rem; }
.en-field label { font-size: .8125rem; font-weight: 600; }
.en-field .en-optional { font-weight: 400; opacity: .6; }
.en-field input, .en-field textarea {
  width: 100%; font: inherit; font-size: .9375rem; padding: .65rem .8rem; border-radius: 10px;
  border: 1px solid var(--cs-color-border, #dbdbdb); background: var(--cs-site-background, #fafafa); color: inherit;
}
.en-field textarea { resize: vertical; min-height: 5rem; }
.en-field input:focus, .en-field textarea:focus { outline: 2px solid var(--cs-color-accent, #206bea); outline-offset: 1px; border-color: transparent; }
.en-field [aria-invalid="true"] { border-color: #e32c26; }
.en-check__row { display: flex; gap: .5rem; align-items: center; }
.en-check__row input { max-width: 7rem; }
.en-check__new { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--cs-color-border, #dbdbdb); background: transparent; color: inherit; }
.en-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.en-error { margin: 0; padding: .6rem .8rem; border-radius: 10px; font-size: .875rem; color: #b42318; background: rgba(227,44,38,.08); }
[data-scheme=dark] .en-error { color: #ff8a80; }
.en-submit { width: 100%; justify-content: center; padding: .8rem 1rem; font-size: .9375rem; }
.en-submit.is-busy { opacity: .6; pointer-events: none; }
.en-note { margin: 0; font-size: .75rem; color: var(--cs-color-secondary, #737373); text-align: center; }
.en-done { text-align: center; padding: .5rem 0 .25rem; }
.en-done__icon { width: 3.25rem; height: 3.25rem; margin: .5rem auto 1rem; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--cs-color-button, #206bea); }
.en-done__title { margin: 0 0 .4rem; font-size: 1.25rem; }
.en-done__text { margin: 0 0 1.25rem; color: var(--cs-color-secondary, #737373); }
@media (max-width: 575.98px) {
  .en-modal { align-items: flex-end; padding: 0; }
  .en-modal__panel { max-width: none; border-radius: 18px 18px 0 0; padding: 1.75rem 1.25rem 1.25rem; max-height: 92vh; }
}

/* ---------------------------------------------------------------- reading gate */
.entry-content.en-gated { position: relative; max-height: 34rem; overflow: hidden; user-select: none; }
.entry-content.en-gated > * { filter: blur(7px); pointer-events: none; }
.entry-content.en-gated::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12rem;
  background: linear-gradient(to bottom, transparent, var(--cs-site-background, #fafafa)); }
.en-lock {
  margin: 0 0 1.5rem; padding: 1.75rem 1.5rem; text-align: center; border-radius: var(--cs-thumbnail-border-radius, 16px);
  background: var(--cs-layout-background, #fff); box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.en-lock__icon { width: 3rem; height: 3rem; margin: 0 auto .75rem; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--cs-color-accent, #206bea) 12%, transparent); color: var(--cs-color-accent, #206bea); }
.en-lock__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.en-lock__text { margin: 0 auto 1rem; max-width: 30rem; color: var(--cs-color-secondary, #737373); font-size: .9375rem; }
html.en-is-gated .cs-entry__metabar-reading_time__fill { display: none; }

/* ---------------------------------------------------------------- sponsored cards (colours per advertiser) */
.en-ad { --ad-bg: #0a3526; --ad-accent: #d9f692; --ad-ink: #0a3526; }
.en-ad--katalase { --ad-bg: #062737; --ad-accent: #51ddcf; --ad-ink: #062737; }
.en-ad--mall { --ad-bg: #10275a; --ad-accent: #9fdcff; --ad-ink: #10275a; }
.cs-widget-promo.en-ad .cs-widget-promo__wrapper { overflow: hidden; }
.cs-widget-promo.en-ad .cs-widget-promo__background-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 30%, color-mix(in srgb, var(--ad-bg) 85%, transparent) 62%, var(--ad-bg) 100%);
}
.cs-widget-promo.en-ad .en-ad__tag { cursor: inherit; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
.cs-widget-promo.en-ad .cs-widget-promo__bottom { position: relative; z-index: 2; }
.cs-widget-promo.en-ad .cs-widget-promo__heading { display: flex; flex-direction: column; gap: .15rem; color: #fff; }
.cs-widget-promo.en-ad .en-ad__brand { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.cs-widget-promo.en-ad .en-ad__by { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-accent); opacity: .9; }
.cs-widget-promo.en-ad .cs-widget-promo__description { color: rgba(255,255,255,.86); }
.cs-widget-promo.en-ad .cs-widget-promo__btn { background: var(--ad-accent); color: var(--ad-ink); gap: .35rem; font-weight: 700; }
.cs-widget-promo.en-ad .cs-widget-promo__btn:hover { background: color-mix(in srgb, var(--ad-accent) 60%, #fff); color: var(--ad-ink); }

@media (max-width: 575.98px) {
  /* on phones the theme runs the slider edge to edge; the banner below it does the same */
  .en-inquiry__card { width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; border-radius: 0; box-shadow: none; }
}

/* the theme sizes every span inside .cs-button-outline as a 16px icon */
.en-modal__tag .en-modal__tag-text { width: auto; height: auto; font-size: inherit; white-space: nowrap; margin-left: .125rem; }
/* the theme puts a highlight bar behind spans in promo headings; not on the ad's wordmark */
.cs-widget-promo.en-ad .cs-widget-promo__heading span::after { content: none; }

/* gate decided in <head>: blur before the text is ever painted */
html.en-gate-early .single-post .entry-content { max-height: 34rem; overflow: hidden; }
html.en-gate-early .single-post .entry-content > * { filter: blur(7px); }

/* the whole inquiry banner is the trigger */
.en-inquiry__card[data-en-contact] { cursor: pointer; }
.en-inquiry__card[data-en-contact]:hover .en-inquiry__button { background-color: var(--cs-color-button-hover, #3b7ded); }

/* ad: every point of the card goes to the advertiser (the full-cover link sits under the text) */
.cs-widget-promo.en-ad, .cs-widget-promo.en-ad .cs-widget-promo__wrapper { width: 100%; max-width: none; }
.cs-widget-promo.en-ad .cs-widget-promo__content, .cs-widget-promo.en-ad .cs-widget-promo__content * { pointer-events: none; }
.cs-widget-promo.en-ad .cs-widget-promo__btn { pointer-events: auto; }
.cs-widget-promo.en-ad .cs-widget-promo__bottom { position: static; }
.cs-widget-promo.en-ad .en-ad__tag { background: color-mix(in srgb, var(--ad-bg) 75%, transparent); border: 1px solid color-mix(in srgb, var(--ad-accent) 60%, transparent); color: var(--ad-accent);
  box-shadow: none; padding: .2rem .55rem; }
.cs-widget-promo.en-ad .en-ad__eyebrow { font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ad-accent); margin-bottom: .35rem; }
.cs-widget-promo.en-ad .en-ad__brand { font-family: Arial, Helvetica, sans-serif; color: #fff; }
.cs-widget-promo.en-ad .en-ad__by { color: rgba(255,255,255,.75); }
.cs-widget-promo.en-ad .cs-widget-promo__btn { border-radius: 999px; padding: .55rem 1rem; }
.cs-widget-promo.en-ad .cs-widget-promo__background-image { width: 100%; }
.cs-widget-promo.en-ad .cs-widget-promo__background-image img { width: 100%; height: 100%; object-fit: cover; }

/* after a successful send, only the thank-you shows */
.en-modal.is-done .en-modal__tag, .en-modal.is-done .en-modal__title, .en-modal.is-done .en-modal__lead { display: none; }

/* ---------------------------------------------------------------- phones and tablets: readability and touch targets */
@media (max-width: 1024px) {
  /* small uppercase labels: nothing under 12px on a phone */
  .cs-categories__heading, .cs-widget__heading, .cs-read-next__heading, .cs-share__link,
  .wp-block-heading.is-style-cs-headline, .cs-footer-columns__nav > li > a,
  .cs-widget-promo.en-ad .en-ad__eyebrow, .cs-widget-promo.en-ad .en-ad__by { font-size: 12px !important; }
  /* the logo image is short; give its link a finger-sized hit area */
  .cs-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .cs-footer__copyright a { display: inline-block; padding: .6rem 0; }
}

/* ---------------------------------------------------------------- hero slider: SupplySide Global logo slide */
.en-banner-slide .cs-overlay-background.en-banner-bg { background: #f4f6f9; display: flex; align-items: center; justify-content: center; }
.en-banner-slide .cs-overlay-background.en-banner-bg::after,
.en-banner-slide .cs-overlay-background.en-banner-bg::before { content: none; display: none; }
/* the logo is shown whole: never cropped, as large as the slide allows */
.cs-overlay-background.en-banner-bg img.en-banner-img {
  width: auto; height: auto; max-width: 78%; max-height: 72%; object-fit: contain; transform: none !important;
}
.en-banner-slide .en-banner-cta {
  position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: #0a2a4f; background: rgba(10,42,79,.08);
}
@media (max-width: 575.98px) {
  .cs-overlay-background.en-banner-bg img.en-banner-img { max-width: 88%; max-height: 60%; }
  .en-banner-slide .en-banner-cta { right: 50%; transform: translateX(50%); bottom: 1.5rem; font-size: 12px; }
}
/* the theme sizes slides from their text block; this slide has none */
.en-banner-slide, .en-banner-slide .cs-entry__outer { width: 100%; }

/* ---------------------------------------------------------------- sponsored cards: where they run */
.en-ad[hidden] { display: none !important; }
.en-ad-slot--inline { display: none; margin: 2.5rem 0; }
@media (max-width: 991.98px) {
  .en-ad-slot--inline { display: block; }      /* phones and tablets: inside the entry ... */
  .en-ad-slot--sidebar { display: none; }      /* ... instead of far below it */
}
/* inside the entry the card must not pick up the text styles */
.entry-content .en-ad-slot a { text-decoration: none; box-shadow: none; }
.entry-content .en-ad-slot img { margin: 0; border-radius: 0; }
/* the theme sizes the card from its background image (300x400); text sits on the dark lower part */
.entry-content .en-ad-slot .cs-widget-promo__background-image { height: 27.5rem; }
.en-ad-slot--inline .cs-widget-promo__background-image img { object-position: center top; }
.en-ad-slot--inline .cs-widget-promo__wrapper, .en-sponsored .cs-widget-promo__wrapper { border-radius: var(--cs-thumbnail-border-radius, 12px); }

/* home: a row of all three, under the entries */
.en-sponsored { margin: 3rem 0 0; }
.en-sponsored__head { margin-bottom: 1.25rem; }
.en-sponsored__heading { color: var(--cs-color-secondary); font-family: var(--cs-font-section-headings-family), sans-serif;
  font-size: var(--cs-font-section-headings-size); font-weight: var(--cs-font-section-headings-weight);
  letter-spacing: var(--cs-font-section-headings-letter-spacing); text-transform: var(--cs-font-section-headings-text-transform); }
.en-sponsored__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.en-sponsored .cs-widget-promo { margin: 0; }
.en-sponsored .cs-widget-promo__background-image { height: 28rem; }
@media (max-width: 767.98px) {
  /* phones: swipe through the cards instead of stacking three tall ones */
  .en-sponsored__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .en-sponsored__row::-webkit-scrollbar { display: none; }
  .en-sponsored .cs-widget-promo { scroll-snap-align: start; }
}
.en-read-end { height: 1px; }

/* ---------------------------------------------------------------- longer entries: section headings, tables, cited works */
.entry-content h2.wp-block-heading { margin-top: 2.25rem; }
.entry-content .en-tldr { margin: 0 0 1.75rem; padding: 1rem 1.25rem; border-radius: var(--cs-layout-elements-border-radius, 12px);
  background: var(--cs-color-secondary-button, #e1e7f0); }
.entry-content .en-tldr .en-lead { margin: 0 0 .4rem; }
.entry-content .en-tldr ul { margin: 0; }
.entry-content .en-tldr li { margin: .2rem 0; }
.entry-content h3.en-table-title { margin: 2rem 0 .6rem; font-size: 1.05rem; }
.entry-content figure.en-table { margin: 0 0 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content .en-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.entry-content .en-table th, .entry-content .en-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--cs-color-border, #dbdbdb);
  text-align: left; vertical-align: top; }
.entry-content .en-table thead th { font-size: .8rem; font-weight: 700; color: var(--cs-color-secondary, #737373);
  border-bottom: 2px solid var(--cs-color-border, #dbdbdb); white-space: nowrap; }
.entry-content .en-table tbody th { font-weight: 600; }
.entry-content .en-sources li.en-ref { font-size: .9rem; line-height: 1.5; }
.entry-content .en-sources li.en-ref a { margin-left: .25rem; }
/* table cells: body font, whole words (the theme sets th in the narrow heading face) */
.entry-content .en-table th, .entry-content .en-table td { font-family: var(--cs-font-base-family, inherit); letter-spacing: normal;
  word-break: normal; overflow-wrap: normal; hyphens: manual; text-transform: none; }
.entry-content .en-table tbody th { min-width: 8.5rem; }

/* numbered steps (recipes): readable spacing between steps */
.entry-content ol.en-steps { padding-left: 1.4rem; }
.entry-content ol.en-steps > li { margin: 0 0 .9rem; padding-left: .25rem; }
.entry-content ol.en-steps > li::marker { font-weight: 700; color: var(--cs-color-accent, #206bea); }
