/* Native Kadence editorial design — scoped to detected content; no widget DOM changes. */
body.fl38-editorial { --fl38-navy:#0d3459; --fl38-blue:#176a9b; --fl38-gold:#ffbf32; --fl38-ivory:#faf5ea; --fl38-muted:#49637a; }
body.fl38-editorial #inner-wrap {background:#faf5ea;}
body.fl38-editorial .fl38-hero {background:#e5eff8 url('info-wave.svg') center bottom/100% 100% no-repeat !important;}
body.fl38-editorial .fl38-hero .entry-hero-container-inner {background:transparent!important;min-height:clamp(155px,19vw,245px)!important;display:flex;align-items:center;}
body.fl38-editorial .fl38-hero .hero-section-overlay {background:transparent!important;}
body.fl38-editorial .fl38-hero .entry-header {padding-block:30px 48px!important;}
body.fl38-editorial .fl38-hero :is(.entry-title,.page-title) {font-family:Poppins,Arial,sans-serif;font-size:clamp(27px,3.2vw,44px)!important;font-weight:700!important;line-height:1.2!important;color:#0d3459!important;letter-spacing:-.025em;overflow-wrap:anywhere;}
body.fl38-editorial .fl38-hero :is(.entry-meta,.entry-meta a,.kadence-breadcrumbs,.kadence-breadcrumbs a,.archive-description,.archive-description p) {color:#385974!important;}
body.fl38-editorial .fl38-grid {gap:22px!important;}
/* Retain the original column and sidebar configuration. */
body.fl38-editorial .fl38-card {border:1px solid #e7e0d3!important;border-radius:18px!important;background:#fff!important;box-shadow:0 3px 12px #0d34590b!important;overflow:hidden;min-width:0;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;}
body.fl38-editorial .fl38-card .fl38-card-inner {padding:clamp(16px,2vw,23px)!important;background:transparent!important;}
body.fl38-editorial .fl38-card .fl38-thumbnail {border-radius:0!important;margin:0!important;}
body.fl38-editorial .fl38-card .fl38-thumbnail img {border-radius:0!important;}
body.fl38-editorial .fl38-card-title,body.fl38-editorial .fl38-card-title a {font-family:Poppins,Arial,sans-serif;font-size:clamp(18px,1.5vw,22px)!important;font-weight:600!important;line-height:1.35!important;color:#0d3459!important;overflow-wrap:anywhere;text-decoration:none!important;}
body.fl38-editorial .fl38-card-title a:hover {color:#176a9b!important;}
body.fl38-editorial .fl38-summary {color:#385974!important;font-size:14px;line-height:1.65;overflow-wrap:anywhere;}
body.fl38-editorial .fl38-meta,body.fl38-editorial .fl38-meta a {color:#49637a!important;font-size:13px;}
body.fl38-editorial .fl38-card .entry-taxonomies a {color:#145d89!important;background:#e5eff8;border-radius:7px;padding:3px 8px;text-decoration:none!important;}
body.fl38-editorial .fl38-card :is(a.post-more-link,a.more-link) {display:inline-flex;align-items:center;gap:6px;color:#0d3459!important;background:#e5eff8;border-radius:9px;padding:8px 12px;font-weight:600;text-decoration:none!important;transition:background .2s;}
body.fl38-editorial .fl38-card :is(a.post-more-link,a.more-link):hover {background:#ffdf88;}
body.fl38-editorial :is(.fl38-archive,.fl38-single) :is(.pagination,.navigation.pagination) .page-numbers:not(.dots) {border-radius:9px;color:#0d3459;background:white;border:1px solid #d7e4ed;text-decoration:none;}
body.fl38-editorial :is(.fl38-archive,.fl38-single) :is(.pagination,.navigation.pagination) .page-numbers:is(.current,:hover) {background:#ffbf32;color:#0d3459;border-color:#ffbf32;}
body.fl38-editorial .fl38-article {background:#fff!important;border-radius:18px;box-shadow:0 4px 22px #0d34590b!important;min-width:0;}
body.fl38-editorial .fl38-post-title {color:#0d3459!important;font-family:Poppins,Arial,sans-serif;font-size:clamp(26px,3vw,42px)!important;line-height:1.22!important;font-weight:700!important;overflow-wrap:anywhere;}
/* Text formatting only for native top-level prose, not Elementor/H5P/quiz/flipbook descendants. */
body.fl38-editorial .fl38-reading > :is(p,ul,ol,blockquote) {color:#243c53;line-height:1.8;overflow-wrap:anywhere;}
body.fl38-editorial .fl38-reading > :is(h2,h3,h4) {font-family:Poppins,Arial,sans-serif;color:#0d3459;font-weight:600;line-height:1.35;overflow-wrap:anywhere;}
body.fl38-editorial .fl38-reading > h2 {border-inline-start:4px solid #ffbf32;padding-inline-start:12px;}
body.fl38-editorial .fl38-reading > :is(p,ul,ol) a:not([class]) {color:#176a9b;text-underline-offset:3px;}
body.fl38-editorial .fl38-reading > .wp-block-file .wp-block-file__button {background:#ffbf32;color:#0d3459;border-radius:9px;font-weight:600;text-decoration:none;box-shadow:none;}
body.fl38-editorial .fl38-reading > .wp-block-file .wp-block-file__button:hover {background:#edab22;}
body.fl38-editorial .fl38-reading > .wp-block-table {max-width:100%;overflow-x:auto;}
body.fl38-editorial .fl38-reading > .wp-block-table th {background:#e5eff8;color:#0d3459;}
body.fl38-editorial .fl38-reading > #ez-toc-container {max-width:100%;background:#f0f6fa;border:1px solid #d5e5ef;border-radius:12px;box-shadow:none;padding:14px 18px;}
body.fl38-editorial .fl38-reading > #ez-toc-container a {color:#176a9b;}
body.fl38-editorial .fl38-sidebar .widget {background:#fff;border-radius:14px;padding:16px;box-shadow:0 2px 10px #0d345909;overflow-wrap:anywhere;}
body.fl38-editorial .fl38-sidebar .widget-title {color:#0d3459;font-weight:600;font-size:18px;}
body.fl38-editorial .fl38-sidebar .widget :is(.wp-block-search__input,input[type=search]) {border:1px solid #b8cbdc;border-radius:9px;min-width:0;max-width:100%;}
body.fl38-editorial .fl38-sidebar .widget .wp-block-search__button {background:#0d3459;color:white;border-radius:9px;}
body.fl38-editorial .fl38-comments {background:white;border-radius:18px;padding:clamp(16px,3vw,30px);margin-block:24px;}
body.fl38-editorial .fl38-comments :is(h2,h3,label) {color:#0d3459;}
body.fl38-editorial .fl38-comments #commentform :is(input[type=text],input[type=email],input[type=url],textarea) {border:1px solid #b8cbdc;border-radius:10px;max-width:100%;}
body.fl38-editorial .fl38-comments #commentform #submit {background:#ffbf32!important;color:#0d3459!important;border:0!important;border-radius:10px;box-shadow:none!important;font-weight:600;}
body.fl38-editorial .fl38-comments #commentform #submit:hover {background:#edab22!important;}
body.fl38-editorial .fl38-post-nav {border-radius:12px;background:#fff;padding:16px;}
body.fl38-editorial :is(.fl38-card,.fl38-comments,.fl38-sidebar,.fl38-post-nav) :is(a,button,input,textarea):focus-visible {outline:2px solid #176a9b;outline-offset:3px;}
@media(hover:hover){body.fl38-editorial .fl38-card:hover {transform:translateY(-2px);border-color:#b6d2e3!important;box-shadow:0 7px 22px #0d345917!important;}}
@media(max-width:600px){body.fl38-editorial .fl38-grid{gap:15px!important;}body.fl38-editorial .fl38-hero .entry-header{padding-block:20px 36px!important;}body.fl38-editorial .fl38-card .fl38-card-inner{padding:16px!important;}}
@media(prefers-reduced-motion:reduce){body.fl38-editorial .fl38-card{transition:none!important;transform:none!important;}}
/* 0.3.9: recognize alternate standard archive wrappers without changing their grids. */
body.fl38-editorial .fl38-archive,body.fl38-editorial .fl38-single {background-color:#faf5ea;}
body.fl38-editorial .fl38-card :is(a.elementor-post__read-more,a.eael-post-elements-readmore-btn,a.wp-block-post-excerpt__more-link) {display:inline-flex;align-items:center;gap:6px;color:#0d3459!important;background:#e5eff8;border-radius:9px;padding:8px 12px;font-weight:600;text-decoration:none!important;transition:background .2s;}
body.fl38-editorial .fl38-card :is(a.elementor-post__read-more,a.eael-post-elements-readmore-btn,a.wp-block-post-excerpt__more-link):hover {background:#ffdf88;}
/* 0.4.0 — compact editorial cards and original-media-safe illustrated presentation. */
body.fl38-editorial .fl38-hero .entry-hero-container-inner {min-height:clamp(105px,13vw,178px)!important;}
body.fl38-editorial .fl38-hero .entry-header {padding-block:22px 35px!important;}
body.fl38-editorial .fl38-grid {gap:16px!important;}
body.fl38-editorial .fl38-card {border-radius:14px!important;box-shadow:0 2px 8px #0d34590b!important;min-height:0!important;}
body.fl38-editorial .fl38-card .fl38-card-inner {padding:13px 15px!important;min-height:0!important;}
body.fl38-editorial .fl38-card .fl38-card-title,body.fl38-editorial .fl38-card .fl38-card-title a {font-size:clamp(15px,1.3vw,19px)!important;line-height:1.35!important;font-weight:600!important;}
body.fl38-editorial .fl38-card .fl38-card-title {margin-block:7px 5px!important;}
body.fl38-editorial .fl38-card .fl38-summary {font-size:13px!important;line-height:1.5!important;margin-block:7px 10px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
body.fl38-editorial .fl38-card .fl38-summary p {margin-block:0!important;}
body.fl38-editorial .fl38-card .fl38-meta,body.fl38-editorial .fl38-card .fl38-meta a {font-size:11.5px!important;line-height:1.4!important;margin-block:0 4px!important;}
body.fl38-editorial .fl38-card .entry-taxonomies {margin-block:0 3px!important;}
body.fl38-editorial .fl38-card .entry-taxonomies a {font-size:11.5px!important;padding:2px 6px!important;}
body.fl38-editorial .fl38-card :is(a.post-more-link,a.more-link,a.elementor-post__read-more,a.eael-post-elements-readmore-btn,a.wp-block-post-excerpt__more-link) {font-size:12px!important;padding:6px 9px!important;line-height:1.4!important;box-shadow:none!important;}
body.fl38-editorial .fl38-card :is(.entry-footer,.post-more-wrap) {margin-block:7px 0!important;padding-block:0!important;}
body.fl38-editorial .fl38-card .fl38-thumbnail {height:clamp(92px,9vw,124px)!important;min-height:0!important;max-height:124px!important;aspect-ratio:auto!important;display:block!important;position:relative!important;overflow:hidden!important;padding:0!important;}
body.fl38-editorial .fl38-card .fl38-thumbnail::before,body.fl38-editorial .fl38-card .fl38-thumbnail .post-thumbnail-inner::before {padding:0!important;}
body.fl38-editorial .fl38-card .fl38-thumbnail :is(.post-thumbnail-inner,.elementor-post__thumbnail,a,picture) {height:100%!important;width:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;aspect-ratio:auto!important;display:block;}
body.fl38-editorial .fl38-card .fl38-thumbnail img {width:100%!important;height:100%!important;max-height:100%!important;object-fit:cover!important;padding:0!important;}
body.fl38-editorial .fl38-card .fl40-illustrated {background:radial-gradient(ellipse at 50% 105%,#c8e3f0 0 44%,transparent 45%),#e5f1f9!important;}
body.fl38-editorial .fl38-card .fl40-illustrated.fl40-worksheet-beginner,body.fl38-editorial .fl38-card .fl40-illustrated.fl40-notebook {background:radial-gradient(ellipse at 50% 105%,#b9e4d9 0 44%,transparent 45%),#dff3e9!important;}
body.fl38-editorial .fl38-card .fl40-illustrated.fl40-assessment-beginner,body.fl38-editorial .fl38-card .fl40-illustrated.fl40-assessment-elementary,body.fl38-editorial .fl38-card .fl40-illustrated.fl40-assessment-pre-intermediate {background:radial-gradient(ellipse at 50% 105%,#f8df99 0 44%,transparent 45%),#fff0c5!important;}
body.fl38-editorial .fl38-card .fl40-illustrated.fl40-practice,body.fl38-editorial .fl38-card .fl40-illustrated.fl40-audio {background:radial-gradient(ellipse at 50% 105%,#d9cbed 0 44%,transparent 45%),#eee5fa!important;}
body.fl38-editorial .fl38-card .fl40-illustrated img.fl40-art {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:5px!important;transform:none!important;}
body.fl38-editorial .fl40-original-thumbnail,body.fl38-editorial .fl40-original-featured {display:none!important;}
/* Only headers with a successfully loaded illustration receive these rules. */
body.fl38-editorial .fl40-post-hero {background:#e5eff8 url('info-wave.svg') center bottom/100% 100% no-repeat!important;min-height:0!important;}
body.fl38-editorial .fl40-post-hero :is(.entry-hero-container-inner,.hero-section-overlay) {background:transparent!important;}
body.fl38-editorial .fl40-post-art-header {position:relative!important;max-width:1180px!important;width:100%!important;box-sizing:border-box!important;padding:20px clamp(115px,19vw,220px) 30px 28px!important;text-align:start!important;min-height:155px;}
body.fl38-editorial .fl40-post-art-header :is(.entry-title,.page-title,.wp-block-post-title) {text-align:start!important;color:#0d3459!important;font-size:clamp(24px,3vw,40px)!important;line-height:1.24!important;margin-block:8px!important;}
body.fl38-editorial .fl40-post-art-header .entry-meta {justify-content:flex-start!important;}
body.fl38-editorial img.fl40-post-art {position:absolute!important;inset-inline-end:24px;top:50%;transform:translateY(-50%);width:clamp(85px,15vw,174px)!important;height:clamp(85px,15vw,150px)!important;max-width:none!important;object-fit:contain!important;pointer-events:none;}
body.fl38-editorial .fl40-inline-hero {background:#e5eff8 url('info-wave.svg') center bottom/100% 100% no-repeat!important;border-radius:14px 14px 0 0;}
body.fl38-editorial .fl40-documents {background:#f7fafc;border:1px solid #dce7ef;border-radius:14px;padding:16px;margin-block:20px;color:#0d3459;font-family:Poppins,Arial,sans-serif;min-width:0;}
body.fl38-editorial .fl40-documents h2 {font-size:19px!important;color:#0d3459!important;margin:0 0 6px!important;line-height:1.4;}
body.fl38-editorial .fl40-doc-note {font-size:13px!important;line-height:1.5;margin:0 0 14px!important;color:#49637a;}
body.fl38-editorial .fl40-doc-list {display:grid;gap:8px;}
body.fl38-editorial .fl40-doc-row {background:white;border:1px solid #e1e8ef;border-radius:10px;padding:10px;min-width:0;}
body.fl38-editorial .fl40-doc-top {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
body.fl38-editorial .fl40-doc-name {font-size:13px;font-weight:600;overflow-wrap:anywhere;flex:1 1 140px;min-width:0;}
body.fl38-editorial .fl40-doc-type {font-size:11px;background:#e5eff8;border-radius:5px;padding:3px 6px;}
body.fl38-editorial .fl40-documents :is(.fl40-preview-button,.fl40-download) {font:600 12px/1.35 Poppins,Arial,sans-serif!important;background:#e5eff8!important;color:#0d3459!important;border:0!important;border-radius:8px!important;padding:9px 12px!important;display:inline-flex!important;align-items:center;justify-content:center;text-decoration:none!important;box-shadow:none!important;min-height:36px;cursor:pointer;white-space:normal;}
body.fl38-editorial .fl40-documents .fl40-download {background:#ffbf32!important;}
body.fl38-editorial .fl40-documents :is(.fl40-download,.fl40-preview-button):hover {background:#edab22!important;}
body.fl38-editorial .fl40-documents :is(a,button):focus-visible {outline:2px solid #176a9b!important;outline-offset:3px!important;}
body.fl38-editorial .fl40-preview-panel {margin-top:10px;min-width:0;}
body.fl38-editorial .fl40-preview-panel[hidden] {display:none!important;}
body.fl38-editorial .fl40-preview-panel iframe {width:100%!important;height:clamp(320px,65vh,700px)!important;border:1px solid #d5e5ef!important;border-radius:8px;display:block;}
body.fl38-editorial .fl40-open-pdf {display:inline-block;font-size:13px;margin:0 0 8px;color:#176a9b!important;}
@media(max-width:600px){body.fl38-editorial .fl38-card .fl38-card-inner{padding:11px 13px!important;}body.fl38-editorial .fl38-card .fl38-thumbnail{height:102px!important;}body.fl38-editorial .fl38-hero .entry-header{padding-block:16px 28px!important;}body.fl38-editorial .fl40-post-art-header{padding:18px 92px 25px 16px!important;min-height:122px;}body.fl38-editorial img.fl40-post-art{inset-inline-end:8px;width:76px!important;height:88px!important;}body.fl38-editorial .fl40-documents{padding:12px;}body.fl38-editorial .fl40-doc-name{flex-basis:calc(100% - 54px);}body.fl38-editorial .fl40-documents :is(.fl40-preview-button,.fl40-download){flex:1;}}
/* Compact horizontal related-posts, only for simple native cards with known wrappers. */
body.fl38-editorial .fl38-single :is(.related-posts,.entry-related) .fl38-card:has(> .fl38-thumbnail):has(> .fl38-card-inner) {display:grid!important;grid-template-columns:92px minmax(0,1fr);align-items:stretch;}
body.fl38-editorial .fl38-single :is(.related-posts,.entry-related) .fl38-card > .fl38-thumbnail {height:100%!important;min-height:92px!important;max-height:none!important;}
body.fl38-editorial .fl38-single :is(.related-posts,.entry-related) .fl38-card > .fl38-card-inner {padding:10px 12px!important;}
/* Keep original cover artwork readable and align the primary action on native vertical cards. */
body.fl38-editorial .fl38-card .fl38-thumbnail:not(.fl40-illustrated) img {object-fit:contain!important;background:#eef4f8;}
body.fl38-editorial .fl38-archive .fl38-card:has(> .fl38-thumbnail):has(> .fl38-card-inner) {display:flex!important;flex-direction:column;}
body.fl38-editorial .fl38-archive .fl38-card > .fl38-thumbnail {flex:none;}
body.fl38-editorial .fl38-archive .fl38-card > .fl38-card-inner {flex:1;display:flex!important;flex-direction:column;align-items:flex-start;}
body.fl38-editorial .fl38-archive .fl38-card > .fl38-card-inner > :is(a.post-more-link,a.more-link,.entry-footer,.post-more-wrap) {margin-top:auto!important;}

/* v0.4.4 — small, proportionate artwork for Similar Posts only. */
body.fl38-editorial .fl44-related-card:has(> .fl38-thumbnail):has(> .fl38-card-inner){display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;align-items:stretch!important;}
body.fl38-editorial .fl44-related-card .fl38-thumbnail{height:100%!important;min-height:88px!important;max-height:none!important;min-width:0!important;display:flex!important;align-items:center;justify-content:center;padding:8px!important;box-sizing:border-box;background:#e5eff8!important;}
body.fl38-editorial .fl44-related-card .fl38-thumbnail:is(.fl40-worksheet-beginner,.fl40-notebook){background:#dff3e9!important;}
body.fl38-editorial .fl44-related-card .fl38-thumbnail:is(.fl40-assessment-beginner,.fl40-assessment-elementary,.fl40-assessment-pre-intermediate){background:#fff0c5!important;}
body.fl38-editorial .fl44-related-card .fl38-thumbnail:is(.fl40-practice,.fl40-audio){background:#eee5fa!important;}
body.fl38-editorial .fl44-related-card .fl38-thumbnail :is(.post-thumbnail-inner,a,picture){height:100%!important;max-height:none!important;display:flex!important;align-items:center;justify-content:center;position:relative!important;}
body.fl38-editorial .fl44-related-card .fl38-thumbnail img:not(.fl40-original-thumbnail){position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:92px!important;max-width:100%!important;object-fit:contain!important;padding:0!important;background:none!important;transform:none!important;}
body.fl38-editorial .fl44-related-card .fl38-card-inner{padding:10px 12px!important;min-width:0;}
body.fl38-editorial .fl44-related-card .fl38-card-title,body.fl38-editorial .fl44-related-card .fl38-card-title a{font-size:15px!important;line-height:1.35!important;}
body.fl38-editorial .fl44-related-card .fl38-summary{font-size:12px!important;line-height:1.45!important;}
@media(max-width:600px){body.fl38-editorial .fl44-related-card:has(> .fl38-thumbnail):has(> .fl38-card-inner){grid-template-columns:76px minmax(0,1fr)!important;}}

/* 0.4.5 — consistent related-slide illustration placement, including lazy-loaded originals. */
body.fl38-editorial .fl38-card.fl44-related-card .fl38-thumbnail.fl45-related-illustrated{background-image:none!important;}
body.fl38-editorial .fl44-related-card .fl45-related-illustrated :is(picture,img:not(.fl40-art)){display:none!important;}
body.fl38-editorial .fl44-related-card .fl45-related-illustrated :is(.post-thumbnail-inner,a){min-height:0!important;width:100%!important;max-width:100%!important;}
body.fl38-editorial .fl44-related-card .fl45-related-illustrated img.fl40-art{position:static!important;inset:auto!important;display:block!important;flex:none;width:100%!important;height:auto!important;max-width:100%!important;max-height:88px!important;margin:auto!important;object-fit:contain!important;}
body.fl38-editorial .fl44-related-card .fl45-related-illustrated::before,body.fl38-editorial .fl44-related-card .fl45-related-illustrated .post-thumbnail-inner::before{content:none!important;}
