/* Jasmology theme styles (site + editor). Colors come from theme.json presets. */
:root {
	--jsm-navy: var(--wp--preset--color--navy, #0B2545);
	--jsm-night: var(--wp--preset--color--night, #101E42);
	--jsm-blue: var(--wp--preset--color--blue, #4361EE);
	--jsm-yellow: var(--wp--preset--color--yellow, #FFD166);
	--jsm-teal: var(--wp--preset--color--teal, #13C4A3);
	--jsm-pink: var(--wp--preset--color--pink, #EF476F);
	--jsm-ink: var(--wp--preset--color--ink, #1E2A44);
	--jsm-muted: var(--wp--preset--color--muted, #4A5876);
	--jsm-line: var(--wp--preset--color--line, #E3E8F3);
	--jsm-soft: var(--wp--preset--color--soft, #EEF1F8);
	--jsm-cream: var(--wp--preset--color--cream, #FFF6DD);
	--jsm-card: var(--wp--preset--shadow--card, 0 2px 12px rgba(11, 37, 69, .07));
	--jsm-cells: url("../images/bg-cells.jpg");
	--axis: var(--jsm-blue);
	--axis-ink: #fff;
}

body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; max-width: 100%; }
::selection { background: var(--jsm-yellow); color: var(--jsm-navy); }
:focus-visible { outline: 3px solid var(--jsm-yellow); outline-offset: 2px; }
.jsm-ico { flex: 0 0 auto; vertical-align: middle; }
mark { background: #FFE7A3; color: inherit; }

/* ---------- header ---------- */
.jsm-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .jsm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jsm-header { top: 0; } }
.jsm-header .wp-block-navigation a { color: #fff; }
.jsm-header .wp-block-navigation a:hover,
.jsm-header .wp-block-navigation .current-menu-item > a { color: var(--jsm-yellow); text-decoration: none; }
.jsm-header .wp-block-navigation__submenu-container { background: #fff !important; border: 0 !important; border-radius: 18px; padding: 8px !important; box-shadow: var(--wp--preset--shadow--pop); min-width: 240px !important; }
.jsm-header .wp-block-navigation__submenu-container a { color: var(--jsm-navy) !important; padding: 10px 12px !important; border-radius: 12px; }
.jsm-header .wp-block-navigation__submenu-container a:hover { background: var(--jsm-soft); }
.jsm-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--jsm-navy) !important; color: #fff !important; padding: 24px !important; }
.jsm-header .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.15rem; }
.jsm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; box-shadow: none; }
.jsm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { color: #C9D3EA !important; }
.jsm-header .wp-block-navigation__responsive-container-open,
.jsm-header .wp-block-navigation__responsive-container-close { color: #fff; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.jsm-logo img { height: 46px !important; width: auto !important; border-radius: 0 !important; }
.jsm-icon-btn .wp-block-search__button,
.jsm-header .wp-block-search__button { background: transparent !important; border: 1px solid #3A4A8C !important; color: #fff !important; border-radius: 999px !important; width: 44px; height: 44px; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
.jsm-header .wp-block-search__input { border-radius: 999px; border: 0; min-height: 44px; padding-inline: 16px; }
.jsm-header .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; padding: 0; }
.jsm-lang a { min-width: 44px; height: 44px; box-sizing: border-box; border: 1px solid #3A4A8C; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; padding: 0 12px; }
@media (max-width: 700px) {
	.jsm-logo img { height: 38px !important; }
	.jsm-hide-mobile { display: none !important; }
}

/* ---------- buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; box-sizing: border-box; text-decoration: none !important; }
.wp-block-button.is-style-jsm-red .wp-block-button__link { background: var(--jsm-pink); color: var(--jsm-navy); }
.wp-block-button.is-style-jsm-navy .wp-block-button__link { background: var(--jsm-navy); color: #fff; }
.wp-block-button.is-style-jsm-yellow .wp-block-button__link { background: var(--jsm-yellow); color: var(--jsm-navy); }
.wp-block-button.is-style-jsm-ghost .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }
.wp-block-button.is-style-jsm-line .wp-block-button__link { background: transparent; color: var(--jsm-blue); border: 2px solid var(--jsm-blue); }
.wp-block-button.is-style-jsm-red .wp-block-button__link:hover,
.wp-block-button.is-style-jsm-yellow .wp-block-button__link:hover { filter: brightness(1.06); }
.wp-block-button.is-style-jsm-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }
.wp-block-button.is-style-jsm-line .wp-block-button__link:hover { background: var(--jsm-blue); color: #fff; }
@media (max-width: 700px) {
	.jsm-btns-stack .wp-block-button { width: 100%; }
	.jsm-btns-stack .wp-block-button__link { width: 100%; }
}

/* ---------- group styles ---------- */
.is-style-jsm-card { background: #fff; border-radius: 22px; box-shadow: var(--jsm-card); padding: clamp(18px, 3vw, 28px); }
.is-style-jsm-dark { background: var(--jsm-navy); color: #fff; border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.is-style-jsm-dark :where(h1, h2, h3, h4) { color: #fff; }
.is-style-jsm-dark a:not(.wp-block-button__link) { color: var(--jsm-yellow); }
.is-style-jsm-cells,
.jsm-cells { background: var(--jsm-navy) var(--jsm-cells) center / cover; color: #fff; }
.is-style-jsm-cells :where(h1, h2, h3, h4),
.jsm-cells :where(h1, h2, h3, h4) { color: #fff; }
.is-style-jsm-note { background: var(--jsm-cream); border: 2px solid var(--jsm-yellow); border-radius: 20px; padding: clamp(16px, 3vw, 26px); }
.is-style-jsm-quick { background: #fff; border-inline-start: 4px solid var(--axis); border-radius: 12px; padding: 14px 18px; }
.is-style-jsm-alert { background: #fff; border: 2px solid var(--jsm-pink); border-radius: 20px; padding: clamp(16px, 3vw, 26px); }
.is-style-jsm-myth { background: #fff; border: 2px solid var(--jsm-pink); border-radius: 20px; padding: clamp(16px, 3vw, 26px); }
.is-style-jsm-tip { background: #fff; border-radius: 20px; padding: 14px 20px; box-shadow: var(--jsm-card); }
.is-style-jsm-dashed { border: 2px dashed #C3CCE0; border-radius: 22px; padding: clamp(16px, 3vw, 24px); }
.is-style-jsm-note > :first-child, .is-style-jsm-alert > :first-child, .is-style-jsm-myth > :first-child { margin-top: 0; }
.wp-block-group.is-style-jsm-card > .wp-block-heading:first-child { margin-top: 0; }

/* Pills and small text */
p.is-style-jsm-pill { display: inline-block; align-self: flex-start; width: fit-content; background: var(--jsm-yellow); color: var(--jsm-navy); font-weight: 600; font-size: .875rem; line-height: 1.5; padding: 4px 14px; border-radius: 999px; margin: 0; }
p.is-style-jsm-disclaimer { background: var(--jsm-soft); color: var(--jsm-muted); font-size: .875rem; border-radius: 14px; padding: 12px 16px; }

/* Lists */
ul.is-style-jsm-check { list-style: none; padding-inline-start: 0; }
ul.is-style-jsm-check li { position: relative; padding-inline-start: 32px; margin-block: .5em; }
ul.is-style-jsm-check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%; background: var(--jsm-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
ol.is-style-jsm-sources { direction: ltr; text-align: left; font-size: .9375rem; color: var(--jsm-muted); line-height: 1.8; padding-inline-start: 22px; }
ol.is-style-jsm-sources a { font-weight: 600; }

/* Details: FAQ and myth quiz */
.wp-block-details.is-style-jsm-faq { background: #fff; border-radius: 16px; padding: 10px 18px; margin-block: 10px; }
.wp-block-details.is-style-jsm-faq summary { font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--jsm-navy); cursor: pointer; padding-block: 8px; font-size: 1.0625rem; }
.wp-block-details.is-style-jsm-quiz summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--wp--preset--font-family--heading); font-weight: 800; background: var(--jsm-pink); color: var(--jsm-navy); border-radius: 999px; padding: 12px 22px; }
.wp-block-details.is-style-jsm-quiz summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-jsm-quiz[open] summary { background: transparent; color: #fff; border: 2px solid var(--jsm-pink); }
.wp-block-details.is-style-jsm-quiz > :not(summary) { border: 2px solid var(--jsm-pink); border-radius: 18px; padding: 14px 18px; margin-top: 12px; }

/* Mascot images */
.wp-block-image.is-style-jsm-mascot img { border-radius: 0 !important; box-shadow: none !important; }

/* ---------- episode cards (query loop) ---------- */
.is-style-jsm-cards > li,
.jsm-cards > li { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--jsm-card); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.is-style-jsm-cards > li:hover,
.jsm-cards > li:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--pop); }
.is-style-jsm-cards .wp-block-post-featured-image,
.jsm-cards .wp-block-post-featured-image { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.is-style-jsm-cards .wp-block-post-featured-image img,
.jsm-cards .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.jsm-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.jsm-card-body .wp-block-post-title { font-size: 1.1875rem; line-height: 1.5; margin: 0; }
.jsm-card-body .wp-block-post-title a { color: var(--jsm-navy); }
.jsm-card-body .wp-block-post-excerpt { margin: 0; }
.jsm-card-body .wp-block-post-excerpt__more-text { display: none; }
@media (max-width: 700px) { .jsm-card-body .wp-block-post-excerpt { display: none; } }
.jsm-video-card .wp-block-post-featured-image { position: relative; aspect-ratio: 9 / 16 !important; border-radius: 16px; }
.jsm-video-card .wp-block-post-featured-image::after { content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23EF476F'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); pointer-events: none; }

/* Pagination */
.wp-block-query-pagination { gap: 8px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid #DDE3F0; padding: 0 12px; box-sizing: border-box; }
.wp-block-query-pagination .page-numbers.current { background: var(--jsm-navy); color: #fff; border-color: var(--jsm-navy); }

/* ---------- dynamic blocks ---------- */
.jsm-badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; width: fit-content; background: color-mix(in srgb, var(--axis) 16%, transparent); color: var(--jsm-navy) !important; font-weight: 600; font-size: .8125rem; line-height: 1.6; padding: 4px 12px; border-radius: 999px; text-decoration: none !important; }
.jsm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--axis); flex: 0 0 auto; }

.jsm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9375rem; border-block: 1px solid var(--jsm-line); padding-block: 12px; }
.jsm-author { display: inline-flex; align-items: center; gap: 10px; color: var(--jsm-navy); font-weight: 600; }
.jsm-initial { width: 40px; height: 40px; border-radius: 50%; background: var(--jsm-yellow); color: var(--jsm-navy); display: inline-flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.125rem; flex: 0 0 auto; text-decoration: none !important; }
.jsm-initial.is-big { width: 72px; height: 72px; font-size: 1.875rem; }
.jsm-review { display: inline-flex; align-items: center; gap: 6px; color: #0E7C67; font-weight: 600; border: 2px solid var(--jsm-teal); border-radius: 999px; padding: 3px 12px; }
.jsm-review.is-missing { color: #8A1B33; border-color: var(--jsm-pink); border-style: dashed; }
.jsm-muted { color: var(--jsm-muted); display: inline-flex; align-items: center; gap: 5px; }

.jsm-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.jsm-share-label { font-size: .875rem; font-weight: 600; color: var(--jsm-muted); }
.jsm-share-btn { width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 1px solid #DDE3F0; color: var(--jsm-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; padding: 0; }
.jsm-share-btn:hover { background: var(--jsm-navy); color: #fff; }
.jsm-share-btn[data-copied]::after { content: attr(data-copied); position: absolute; bottom: 110%; white-space: nowrap; background: var(--jsm-navy); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 8px; }

.jsm-toc { background: #fff; border-radius: 20px; padding: 10px 20px; box-shadow: var(--jsm-card); }
.jsm-toc summary { font-family: var(--wp--preset--font-family--heading); font-weight: 800; color: var(--jsm-navy); cursor: pointer; padding-block: 8px; }
.jsm-toc ol { margin: 4px 0 8px; padding-inline-start: 20px; line-height: 2; font-size: 1rem; }
.wp-block-post-content h2[id] { scroll-margin-top: 96px; }

.jsm-axis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .jsm-axis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .jsm-axis-grid { grid-template-columns: 1fr; } }
.jsm-axis-card { background: var(--axis); color: var(--axis-ink) !important; border-radius: 22px; padding: 18px; display: flex; align-items: center; gap: 12px; min-height: 120px; overflow: hidden; text-decoration: none !important; transition: transform .15s ease; }
.jsm-axis-card:hover { transform: translateY(-3px); }
.jsm-axis-txt { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.jsm-axis-name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem; line-height: 1.35; }
.jsm-axis-short { font-size: .875rem; line-height: 1.6; }
.jsm-axis-count { font-weight: 600; font-size: .8125rem; }
.jsm-axis-card img { height: 120px; width: auto; flex: 0 0 auto; margin-block: -8px -26px; }
.jsm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jsm-chip { height: 44px; padding: 0 16px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; background: #fff; color: var(--jsm-navy) !important; border: 1px solid #DDE3F0; text-decoration: none !important; }
.jsm-chip:hover { border-color: var(--axis); }

.jsm-most-read { list-style: none; padding: 0; margin: 0; }
.jsm-most-read a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--jsm-line); color: var(--jsm-navy); text-decoration: none; }
.jsm-rank { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.75rem; color: var(--jsm-blue); width: 26px; flex: 0 0 auto; }
.jsm-most-read img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.jsm-mr-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.0625rem; line-height: 1.5; }

.jsm-series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .jsm-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jsm-series-card { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--jsm-navy) !important; box-shadow: var(--jsm-card); text-decoration: none !important; }
.jsm-series-card > img, .jsm-series-ph { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.jsm-series-ph { background: color-mix(in srgb, var(--axis) 25%, var(--jsm-navy)); display: flex; align-items: center; justify-content: center; }
.jsm-series-ph img { height: 80%; width: auto; opacity: .55; }
.jsm-series-card.is-soon { background: var(--jsm-navy); color: #fff !important; }
.jsm-series-name { padding: 14px 16px 2px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.0625rem; line-height: 1.5; }
.jsm-series-state { padding: 0 16px 16px; font-size: .875rem; color: #9FB0D6; display: flex; align-items: center; gap: 6px; }
.jsm-series-state.is-live { color: #0E7C67; font-weight: 600; }

.jsm-term-hero { background: var(--axis); color: var(--axis-ink); position: relative; overflow: hidden; }
.jsm-term-hero.is-series { background: var(--jsm-navy) var(--jsm-cells) center / cover; color: #fff; }
.jsm-hero-in { max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 52px) var(--wp--preset--spacing--40); display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.jsm-hero-txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.jsm-hero-kick { font-weight: 600; font-size: .9375rem; }
.jsm-hero-title { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: var(--wp--preset--font-size--hero); line-height: 1.25; color: inherit !important; margin: 0; }
.jsm-hero-desc { font-size: 1.125rem; line-height: 1.8; max-width: 560px; margin: 0; }
.jsm-pill-dark { background: var(--jsm-navy); color: #fff; font-weight: 600; font-size: .875rem; padding: 6px 14px; border-radius: 999px; }
.is-series .jsm-pill-dark { background: var(--axis); color: var(--axis-ink); }
.jsm-hero-media { flex: 0 1 300px; display: flex; justify-content: center; }
.is-series .jsm-hero-media { flex: 1 1 480px; }
.jsm-hero-mascot { height: 280px; width: auto; }
.jsm-hero-cover, .jsm-hero-video { width: 100%; border-radius: 18px; overflow: hidden; }
.jsm-hero-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
@media (max-width: 700px) { .jsm-hero-media { order: -1; flex-basis: 100%; } .jsm-hero-mascot { height: 190px; } }

.jsm-progress { position: sticky; top: 70px; z-index: 40; height: 4px; background: #DDE3F0; }
.admin-bar .jsm-progress { top: 102px; }
.jsm-progress span { display: block; height: 100%; width: 0; background: var(--axis); transition: width .1s linear; }

.jsm-gloss-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; color: var(--jsm-muted); }
.jsm-gloss-en { font-style: italic; }

.jsm-author-box { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--jsm-line); border-radius: 20px; padding: 18px 22px; }
.jsm-author-box p { font-size: .9375rem; line-height: 1.7; color: var(--jsm-muted); margin: 4px 0; }
.jsm-author-name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; color: var(--jsm-navy); }
@media (max-width: 600px) { .jsm-author-box { flex-direction: column; text-align: center; } }

.jsm-admin-note { border: 2px dashed var(--jsm-pink); border-radius: 14px; padding: 12px 16px; font-size: .875rem; background: #fff; color: #8A1B33; }

/* Forms (Contact Form 7 / MailPoet) */
.jsm-form input[type="text"], .jsm-form input[type="email"], .jsm-form input[type="url"], .jsm-form textarea, .jsm-form select,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; min-height: 50px; box-sizing: border-box; border-radius: 14px; border: 1px solid #C3CCE0; background: #fff; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--jsm-ink);
}
.jsm-form input[type="submit"], .wpcf7 input[type="submit"], .mailpoet_submit {
	min-height: 52px; border: 0 !important; border-radius: 999px !important; background: var(--jsm-pink) !important; color: var(--jsm-navy) !important; font-family: var(--wp--preset--font-family--heading) !important; font-weight: 800 !important; font-size: 1.0625rem !important; padding: 0 26px !important; cursor: pointer;
}
.jsm-nl-form .mailpoet_text, .jsm-nl-form .mailpoet_paragraph input[type="email"] { border-radius: 999px !important; min-height: 54px; padding-inline: 20px !important; }
.wpcf7-not-valid { border: 2px solid var(--jsm-pink) !important; }
.wpcf7-not-valid-tip { color: #B3123A; font-size: .875rem; }
.wpcf7 form .wpcf7-response-output { border-radius: 14px; padding: 12px 16px; margin: 12px 0 0; }

/* ---------- layout helpers ---------- */
.jsm-sticky-side { position: sticky; top: 96px; }
@media (max-width: 1020px) { .jsm-hide-tablet { display: none !important; } }
@media (max-width: 781px) {
	.jsm-mascot-first > .wp-block-column:last-child { order: -1; }
	.jsm-mascot-first .wp-block-image img { max-height: 190px; width: auto; margin-inline: auto; }
}
.jsm-footer a { color: #fff; }
.jsm-footer a:hover { color: var(--jsm-yellow); }
.jsm-footer .jsm-footer-head { color: var(--jsm-yellow); font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.jsm-footer .wp-block-list { list-style: none; padding: 0; margin: 0; line-height: 2.2; font-size: .9375rem; }
.jsm-footer .wp-block-social-links .wp-social-link { border: 1px solid #3A4A8C; background: transparent !important; }
.wp-block-post-content > .wp-block-embed { margin-inline: auto; }
.jsm-short-video { max-width: 330px; margin-inline: auto; }
.jsm-short-video iframe { aspect-ratio: 9 / 16; width: 100%; height: auto; border-radius: 18px; }

/* ---------- pattern helpers ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.jsm-header { position: relative; }
.jsm-header-tools { gap: 8px !important; }
.jsm-header .wp-block-buttons .wp-block-button__link { min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; }
.jsm-lang { margin: 0; }
.jsm-stack { display: flex; flex-direction: column; gap: 22px; }
.jsm-stack > * { margin: 0 !important; }
.jsm-more { margin: 0; white-space: nowrap; font-weight: 600; }
.is-style-jsm-dark .jsm-more a, .has-night-background-color .jsm-more a { color: var(--jsm-yellow); }
[class*="jsm-h-"] img { width: auto !important; max-width: 100%; margin-inline: auto; display: block; }
.jsm-h-70 img { height: 70px; } .jsm-h-90 img { height: 90px; } .jsm-h-110 img { height: 110px; } .jsm-h-120 img { height: 120px; }
.jsm-h-130 img { height: 130px; } .jsm-h-150 img { height: 150px; } .jsm-h-190 img { height: 190px; } .jsm-h-220 img { height: 220px; }
.jsm-h-260 img { height: 260px; } .jsm-h-270 img { height: 270px; } .jsm-h-340 img { height: 340px; }
@media (max-width: 781px) { .jsm-h-340 img, .jsm-h-270 img, .jsm-h-260 img { height: 190px; } .jsm-h-220 img { height: 170px; } }
.jsm-pill-red { background: var(--jsm-pink) !important; }
.jsm-404-num { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 5rem; line-height: 1; color: var(--jsm-yellow); margin: 0; }
.jsm-promo, .jsm-nl-strip, .jsm-ask-cta { border-radius: 24px; overflow: hidden; }
.jsm-promo h3 { color: var(--jsm-navy); }
.jsm-promo a, .jsm-ask-cta a { color: var(--jsm-navy); text-decoration: underline; }
.jsm-nl-box { position: relative; overflow: hidden; }
.jsm-follow { position: relative; overflow: hidden; min-height: 100%; box-sizing: border-box; }
.jsm-follow-mascot { position: absolute; bottom: -14px; inset-inline-end: 10px; margin: 0 !important; }
@media (max-width: 600px) { .jsm-follow-mascot { display: none; } }
.jsm-num { width: 44px; height: 44px; border-radius: 50%; background: var(--jsm-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.25rem; margin: 0 0 6px; }
.jsm-badges { gap: 8px !important; }
.jsm-series-terms a { display: inline-flex; background: #fff; border: 1px solid #DDE3F0; color: var(--jsm-navy); font-weight: 600; font-size: .8125rem; padding: 3px 12px; border-radius: 999px; }
.jsm-article > * + * { margin-block-start: 1.4em; }
.jsm-article h2 { margin-block-start: 1.6em; }
.jsm-related { border-top: 1px solid var(--jsm-line); padding-top: 28px; margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1020px) { .jsm-single-cols > .wp-block-column:last-child { display: none; } .jsm-single-cols > .wp-block-column:first-child { flex-basis: 100% !important; } }
.jsm-gloss-grid > li { list-style: none; }
.jsm-gloss-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--jsm-card); border-top: 5px solid var(--wp--preset--color--ax-food); height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.jsm-gloss-card .wp-block-post-title { margin: 0; font-size: 1.3rem; }
.jsm-video-card > li { list-style: none; }
.jsm-video-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.jsm-vtitle { font-size: .95rem !important; line-height: 1.5; margin: 8px 0 0; }
.jsm-vtitle a { color: var(--jsm-navy); }
.jsm-wall img { aspect-ratio: 9 / 16; object-fit: contain; object-position: bottom; width: 100% !important; border-radius: 16px !important; padding-top: 30%; box-sizing: border-box; }
.jsm-wall-daily img { background: var(--wp--preset--color--ax-daily); } .jsm-wall-myths img { background: var(--wp--preset--color--ax-myths); }
.jsm-wall-sleep img { background: var(--wp--preset--color--ax-sleep); } .jsm-wall-food img { background: var(--wp--preset--color--ax-food); }
.jsm-wall-stress img { background: var(--wp--preset--color--ax-stress); } .jsm-wall-common img { background: var(--wp--preset--color--ax-common); }
@media (max-width: 781px) { .wp-block-columns:has(.jsm-wall) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.jsm-hero-yellow h1, .jsm-hero-teal h1 { color: var(--jsm-navy); }
.jsm-hero-yellow p.is-style-jsm-pill, .jsm-hero-teal p.is-style-jsm-pill { background: var(--jsm-navy); color: #fff; }

/* v0.1.2: no gaps between full-width sections; tablet header */
main > .wp-block-group.alignfull, main > .alignfull, .wp-site-blocks main.wp-block-group > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.jsm-header .wp-block-button__link { white-space: nowrap; }
.jsm-header .wp-block-navigation { gap: 1.1rem; }
@media (max-width: 1180px) { .jsm-header .jsm-hide-mobile { display: none !important; } }
@media (min-width: 600px) and (max-width: 1023px) {
	.jsm-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.jsm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.jsm-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; position: fixed; inset: 0; }
}
