/* cards for the parts of an article (made by blocks.js) */
.ctw-block{box-sizing:border-box;width:100%;margin:0 0 12px;padding:26px 28px;background:#fff;border:1px solid #f3e3ea;border-radius:22px;box-shadow:0 10px 26px rgba(40,30,80,.07)}
.ctw-block>*:first-child{margin-top:0}
.ctw-block>*:last-child{margin-bottom:0}
.ctw-block>.elementor-widget:not(:last-child){margin-bottom:14px}
.ctw-block h2,.ctw-block .elementor-heading-title{overflow-wrap:anywhere}
.ctw-block>.elementor-widget-heading h2{position:relative;padding-left:18px;font-size:clamp(20px,2.4vw,26px);line-height:1.35}
.ctw-block>.elementor-widget-heading h2:before{content:"";position:absolute;left:0;top:50%;bottom:auto;height:.95em;width:5px;margin-top:-.475em;border-radius:3px;background:#e0206a}
.ctw-block img{max-width:100%;height:auto;border-radius:14px}
.ctw-block table{max-width:100%}
@media(max-width:700px){.ctw-block{padding:18px 16px;border-radius:18px;margin-bottom:12px}}

.ctw-sub{margin:18px 0;padding:18px 20px;background:#fff8fb;border:1px solid #ffe3ee;border-radius:16px}
.ctw-sub>*:first-child{margin-top:0}
.ctw-sub>*:last-child{margin-bottom:0}
.ctw-sub>h3{position:relative;padding-left:14px;line-height:1.4}
.ctw-sub>h3:before{content:"";position:absolute;left:0;top:.35em;width:6px;height:.9em;border-radius:3px;background:#ff6aa2}
@media(max-width:700px){.ctw-sub{padding:14px 14px}}

/* same spacing between the cards as between the blocks of the right column (12px): no extra padding or margin from the page builder around them */
[data-ctw-blocks] .e-con{--padding-top:0px;--padding-bottom:0px;--margin-top:0px;--margin-bottom:0px;--row-gap:0px;--gap:0px}
[data-ctw-blocks] .elementor-section,[data-ctw-blocks] .elementor-container,[data-ctw-blocks] .elementor-widget-wrap,[data-ctw-blocks] .elementor-column,[data-ctw-blocks] .elementor-element-populated{padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}
[data-ctw-blocks] .ctw-block{margin:0 0 12px}

/* the page builder styles are not loaded on this site: its containers would be inline boxes and add odd gaps around the cards */
.cb-content .e-con,.cb-content .e-con-inner{display:block}

/* table of contents and accordion, same look as the main site: Elementor table of contents and accordion drawn in the theme style (soft pink card, no hard frames, no underlines) */
html body .cb-content .elementor-widget-table-of-contents .elementor-widget-container{background:#fff7fa;border:1px solid #ffd3e3!important;border-radius:16px!important;overflow:hidden;box-shadow:0 8px 22px rgba(224,32,106,.06);--toc-body-color:#202c3d;font-family:Prompt,system-ui,sans-serif}
html body .cb-content .elementor-toc__header{padding:16px 22px!important;background:none!important;border:0!important;display:flex;align-items:center;justify-content:space-between}
html body .cb-content .elementor-toc__header-title{margin:0!important;font-size:18px!important;font-weight:700!important;color:#202c3d!important;font-family:Prompt,system-ui,sans-serif}
html body .cb-content .elementor-toc__toggle-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#e0206a!important;box-shadow:0 2px 8px rgba(224,32,106,.15);cursor:pointer}
html body .cb-content .elementor-toc__toggle-button svg{width:14px;height:14px;fill:currentColor}
html body .cb-content .elementor-toc__body{padding:4px 22px 18px!important;border-top:1px solid #ffd3e3!important;margin:0}
html body .cb-content .elementor-toc__list-wrapper{margin:0!important;padding:0 0 0 4px!important;list-style:none}
html body .cb-content .elementor-toc__list-wrapper .elementor-toc__list-wrapper{padding-left:20px!important}
html body .cb-content .elementor-toc__list-item{padding:0!important;margin:0!important}
html body .cb-content .elementor-toc__list-item-text-wrapper{padding:6px 0!important;align-items:baseline}
html body .cb-content a.elementor-toc__list-item-text{color:#202c3d!important;text-decoration:none!important;font-size:16px;line-height:1.55;transition:color .2s}
html body .cb-content a.elementor-toc__list-item-text:hover,html body .cb-content a.elementor-toc__list-item-text.elementor-item-active{color:#d81b60!important;text-decoration:none!important}
html body .cb-content .elementor-toc__list-item-text-wrapper:before,html body .cb-content .elementor-toc__list-item-text-wrapper i,html body .cb-content .elementor-toc__list-item-text-wrapper svg{color:#e0206a;fill:#e0206a}
html body .cb-content .elementor-toc__list-item-text-wrapper svg{width:7px;height:7px;margin-right:10px}
html body .cb-content .elementor-widget-table-of-contents ol.elementor-toc__list-wrapper{list-style:none;counter-reset:ctwtoc}
html body .cb-content .elementor-widget-table-of-contents ol>li.elementor-toc__list-item{counter-increment:ctwtoc}
html body .cb-content .elementor-widget-table-of-contents ol>li>.elementor-toc__list-item-text-wrapper:before{content:counters(ctwtoc,".") ".";min-width:2.4em;font-weight:600;font-size:15px;color:#e0206a}
/* accordion */
html body .cb-content .elementor-accordion{display:flex;flex-direction:column;gap:10px}
html body .cb-content .elementor-accordion .elementor-accordion-item{border:1px solid #ffd3e3!important;border-radius:14px;overflow:hidden;background:#fff;transition:box-shadow .2s,border-color .2s}
html body .cb-content .elementor-accordion .elementor-accordion-item:hover{box-shadow:0 8px 20px rgba(224,32,106,.1)}
html body .cb-content .elementor-accordion .elementor-tab-title{display:flex;align-items:center;gap:12px;padding:14px 18px!important;border:0!important;background:#fff7fa;cursor:pointer;margin:0}
html body .cb-content .elementor-accordion .elementor-tab-title.elementor-active{background:#ffeaf2}
html body .cb-content .elementor-accordion .elementor-accordion-icon{order:2;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#e0206a;color:#fff!important;flex:none;float:none!important;width:30px!important}
html body .cb-content .elementor-accordion .elementor-accordion-icon svg{width:12px;height:12px;fill:#fff;color:#fff}
html body .cb-content .elementor-accordion a.elementor-accordion-title{order:1;color:#202c3d!important;text-decoration:none!important;font-weight:600;font-size:16px;line-height:1.5;flex:1;min-width:0}
html body .cb-content .elementor-accordion .elementor-tab-title:hover a.elementor-accordion-title,html body .cb-content .elementor-accordion .elementor-tab-title.elementor-active a.elementor-accordion-title{color:#d81b60!important}
html body .cb-content .elementor-accordion .elementor-tab-content{padding:14px 18px 16px!important;border:0!important;border-top:1px solid #ffd3e3!important;background:#fff;font-size:15.5px;line-height:1.7;color:#2b3445}
html body .cb-content .elementor-accordion .elementor-tab-content p{margin:0 0 .5em}

/* the page builder stylesheet is not loaded here: show only one arrow in the contents header and fold the body when it is collapsed */
.cb-content .elementor-toc__toggle-button--expand{display:none}
.cb-content .elementor-toc__toggle-button--collapse{display:inline-flex}
.cb-content .elementor-toc--collapsed .elementor-toc__toggle-button--collapse{display:none}
.cb-content .elementor-toc--collapsed .elementor-toc__toggle-button--expand{display:inline-flex}
.cb-content .elementor-toc--collapsed .elementor-toc__body{display:none}
.cb-content .elementor-toc__list-wrapper{list-style:none}
.cb-content .elementor-toc__header-title{font-size:18px}

/* tables: no scroll box of their own and no empty height inside the rows (the heights saved by the editor are ignored) */
.cb-content table{display:table!important;width:100%!important;max-width:100%;height:auto!important;overflow:visible!important;table-layout:auto}
.cb-content table tr,.cb-content table td,.cb-content table th{height:auto!important}
.cb-content table td,.cb-content table th{overflow-wrap:anywhere;word-break:normal;vertical-align:top}

/* the contents box is always open (no fold button) */
.elementor-widget-table-of-contents .elementor-toc__body{display:block!important}
.elementor-widget-table-of-contents .elementor-toc__toggle-button{display:none!important}

.ctw-block:has(>.elementor-widget-table-of-contents:only-child){padding:0;border:0;box-shadow:none;background:none;border-radius:0}

.entry-content .wp-caption,.entry-content figure.wp-caption,.cb-content .wp-caption{width:auto!important;max-width:100%!important}.entry-content .wp-caption img,.cb-content .wp-caption img{max-width:100%;height:auto}

/* the article text stays out of sight until blocks.js has cut it into cards (that rearranging after the first paint was a layout shift); it shows anyway after 1.2 s */
.cth .cb-content:not(.cb-ready){visibility:hidden;animation:cthShow 0s linear 1.2s forwards}
@keyframes cthShow{to{visibility:visible}}

/* table of contents: Elementor draws the list with a script after the page is shown; without room kept for it the whole article jumped down (layout shift 1.1).
   On tablet / phone the box starts closed (as the widget is set up), on a wide screen the room of the list is kept free. */
.cb-content .elementor-toc--collapsed .elementor-toc__body{display:none}

.cb-content .ctw-ph-t{color:#202c3d;font-size:16px;line-height:1.55;display:inline}

/* green buttons inside articles: white text on a darker green (the pink link colour made the text unreadable) */
html body .cb-content a.btn-book,html body .cb-content .elementor-button.elementor-button-success,html body .cb-content .elementor-button.elementor-button-success .elementor-button-text{color:#fff!important}
html body .cb-content a.btn-book,html body .cb-content .elementor-button.elementor-button-success{background-color:#1e7e34!important}

/* this site draws the table of contents without the inner "widget container" box: the pink card goes on the widget itself */
html body .cb-content .elementor-widget-table-of-contents{background:#fff7fa;border:1px solid #ffd3e3!important;border-radius:16px!important;overflow:hidden;box-shadow:0 8px 22px rgba(224,32,106,.06);--toc-body-color:#202c3d;font-family:Prompt,system-ui,sans-serif}

/* videos of articles: the page builder styles are not loaded here, so the player had no shape (a 150 px strip); a 16:9 frame that fills its width */
.cb-content .elementor-widget-video .elementor-wrapper{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#0f1115}
.cb-content .elementor-widget-video .elementor-wrapper .elementor-video,.cb-content .elementor-widget-video .elementor-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;display:block}

/* buttons placed one under another in articles: room between them, no underline, easy to tap */
html body .cb-content .elementor-widget-button{margin-bottom:14px!important}
html body .cb-content .elementor-widget-button:last-child{margin-bottom:0!important}
html body .cb-content .elementor-widget-button .elementor-button{display:inline-flex;align-items:center;justify-content:center;padding:13px 24px;min-height:48px;border-radius:12px;line-height:1.35;text-decoration:none!important;text-align:center}
html body .cb-content .elementor-widget-button .elementor-button-text{text-decoration:none!important}
html body .cb-content .elementor-button-success .elementor-button,html body .cb-content .elementor-button-success .elementor-button .elementor-button-text,html body .cb-content .elementor-button-success .elementor-button .elementor-button-content-wrapper{color:#fff!important}
html body .cb-content .elementor-button-success .elementor-button{background-color:#1e7e34!important}
