/* Safety rules for article HTML that comes from the WordPress editor (old posts carry fixed widths). */
.prose img { max-width: 100%; height: auto; }
.prose figure, .prose .wp-caption, .prose .wp-block-image, .prose .wp-block-embed { max-width: 100% !important; width: auto !important; margin-inline: 0; }
.prose iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"], .prose iframe[src*="facebook.com/plugins/video"] { aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }
.prose .wp-block-embed__wrapper { position: static; padding: 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 8px 10px; border: 1px solid var(--line, rgba(128, 128, 128, .3)); }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignleft, .prose .alignright { float: none; margin-inline: 0; }
.prose .wp-caption-text, .prose figcaption { font-size: .875rem; opacity: .75; margin-top: 8px; }
.prose audio, .prose video { width: 100%; max-width: 100%; }
.prose > * { overflow-wrap: anywhere; }
/* Card for an article linked from inside another article (replaces the WordPress embed). */
.prose a.zg-embed { display: flex; gap: 16px; align-items: center; margin-block: 28px; padding: 14px; border: 1px solid var(--line, rgba(128, 128, 128, .3)); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.prose a.zg-embed:hover, .prose a.zg-embed:focus-visible { border-color: var(--pink, #ed0e6b); transform: translateY(-2px); }
.zg-embed__media { flex: none; width: 120px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #000033, #ed0e6b); }
.zg-embed__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zg-embed__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zg-embed__body strong { font-size: 1.0625rem; line-height: 1.4; }
.zg-embed__more { font-size: .875rem; font-weight: 600; color: var(--pink-text, #ed0e6b); }
@media (max-width: 560px) { .prose a.zg-embed { gap: 12px; padding: 12px; } .zg-embed__media { width: 88px; } .zg-embed__body strong { font-size: 1rem; } }
.card__media:empty, .result__media:empty { background: linear-gradient(135deg, #000033, #ed0e6b); }
/* Series box on multi-part articles. */
.series { margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--line, rgba(128, 128, 128, .3)); border-left: 3px solid var(--pink, #ed0e6b); border-radius: 14px; }
.series__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.series__name { font-size: 1.0625rem; line-height: 1.4; flex: 1 1 200px; }
.series__count { font-size: .875rem; font-weight: 600; opacity: .8; white-space: nowrap; }
.series__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.series__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line, rgba(128, 128, 128, .3)); border-radius: 999px; font-size: .875rem; font-weight: 600; color: inherit; text-decoration: none; }
.series__nav a:hover, .series__nav a:focus-visible { border-color: var(--pink, #ed0e6b); color: var(--pink-text, #ed0e6b); }
.series details { margin-top: 12px; }
.series summary { cursor: pointer; font-size: .875rem; font-weight: 600; min-height: 32px; }
.series__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.series__list li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line, rgba(128, 128, 128, .2)); font-size: .9375rem; line-height: 1.5; }
.series__list a { color: inherit; text-decoration: none; }
.series__list a:hover, .series__list a:focus-visible { color: var(--pink-text, #ed0e6b); text-decoration: underline; }
.series__no { flex: none; width: 1.75em; font-weight: 700; opacity: .6; }
.series__list .is-current { font-weight: 700; }
.series__list .is-current .series__no { opacity: 1; color: var(--pink-text, #ed0e6b); }
.series-next { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; margin-top: 32px; padding: 18px 20px; border-radius: 14px; background: var(--pink, #ed0e6b); color: #fff; text-decoration: none; }
.series-next .kicker { color: #fff; opacity: .9; grid-column: 1; }
.series-next strong { grid-column: 1; font-size: 1.125rem; line-height: 1.4; }
.series-next .ico { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; }
.series-next:hover .ico, .series-next:focus-visible .ico { transform: translateX(4px); }
.series-next .ico { transition: transform .2s; }
/* Banner boxes once the Ad Manager has filled them, and messages under the forms. */
.ad.is-filled { display: block; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; text-align: center; letter-spacing: normal; text-transform: none; }
.ad.is-filled a { display: block; }
.ad.is-filled img { display: block; width: 100%; height: auto; margin-inline: auto; border-radius: 6px; }
.ad__label { display: block; margin-bottom: 6px; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #888); }
.ad[hidden] { display: none !important; }
.form-status { margin-top: 12px; font-size: .9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff6b6b; }
.newsletter .form-status { color: #fff; }
.newsletter .form-status.is-error { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.6); }
/* Banner under the article text: phones only (the side column is hidden there), and always on recipes. */
.ad--after { display: none; margin: 36px auto 8px; }
.ad--after.ad--always { display: grid; }
@media (max-width: 900px) { .ad--after { display: grid; } }
.ad--after.is-filled { display: block; }
@media (min-width: 901px) { .ad--after:not(.ad--always) { display: none !important; } }
/* Section-page top banner, the banner inside article text, and the slim phone bar. */
.ad-wrap--tight { padding-block: 8px 0; }
.ad--slim { max-width: 728px; min-height: 90px; }
.ad--inline.is-filled { margin-block: 32px; }
.ad-sticky { position: fixed; inset: auto 0 calc(60px + env(safe-area-inset-bottom, 0px)) 0; z-index: 94; display: none; align-items: center; justify-content: center; gap: 6px; min-height: 0; padding: 4px 34px 4px 26px; background: var(--bg, #0a0a1f); border-top: 1px solid var(--line, rgba(128, 128, 128, .3)); }
.has-dock .ad-sticky { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
.ad-sticky.is-filled { display: flex; }
.ad-sticky a { display: block; width: 100%; }
.ad-sticky img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ad-sticky .ad__label { position: absolute; left: 6px; top: 50%; margin: 0; transform: translateY(-50%) rotate(-90deg); transform-origin: center; font-size: .5625rem; letter-spacing: .1em; }
.ad-sticky__close { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; color: var(--muted, #888); background: none; border: 0; cursor: pointer; }
@media (max-width: 860px) {
  body.has-sticky { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky.has-dock { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky .to-top { bottom: calc(134px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky.has-dock .to-top { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky .toast { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 861px) { .ad-sticky { display: none !important; } }
@media print { .ad-sticky { display: none !important; } }
