/*
Theme Name: Cosmopolitan Design – The7 Child
Description: Unified accessible visual redesign for Cosmopolitan (home, pages, blog and articles). Test on staging only.
Author: Cosmopolitan Design
Template: dt-the7
Version: 2.0.0
Text Domain: cosmopolitan-design
*/

:root {
  --cosmo-purple: #2d174d;
  --cosmo-purple-dark: #24113e;
  --cosmo-teal: #006f72;
  --cosmo-teal-hover: #00575a;
  --cosmo-lilac: #f5f0ff;
  --cosmo-mint: #effaf8;
  --cosmo-coral: #f2a16b;
  --cosmo-text: #29323e;
  --cosmo-line: #e9e4f0;
  --cosmo-shadow: 0 14px 34px rgba(45,23,77,.08);
  --cosmo-radius: 18px;
}

body.cosmo-design-active {
  background: #fff;
  color: var(--cosmo-text);
  font-family: Inter, "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body.cosmo-design-active .wp-block-shortcode,
body.cosmo-design-active .wp-block-template-part {
  margin-block: 0;
}
.cosmo-header *, .cosmo-footer *, .cosmo-page *,
.cosmo-header *::before, .cosmo-header *::after,
.cosmo-footer *::before, .cosmo-footer *::after,
.cosmo-page *::before, .cosmo-page *::after {
  box-sizing: border-box;
}
.cosmo-page, .cosmo-header, .cosmo-footer {
  font-family: Inter, "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}
.cosmo-page h1, .cosmo-page h2, .cosmo-page h3,
.cosmo-footer h2, .cosmo-brand strong {
  color: var(--cosmo-purple);
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.13;
}
.cosmo-page h1 { font-size: clamp(46px, 6.3vw, 90px); }
.cosmo-page h2 { font-size: clamp(30px, 3.5vw, 49px); }
.cosmo-page h3 { font-size: clamp(21px, 2.1vw, 26px); }
.cosmo-page p { color: var(--cosmo-text); margin: 0 0 1.2em; }
.cosmo-header a, .cosmo-page a, .cosmo-footer a { text-decoration: none; }
.cosmo-header a:focus-visible, .cosmo-page a:focus-visible,
.cosmo-footer a:focus-visible, .cosmo-header summary:focus-visible,
.cosmo-page button:focus-visible, .cosmo-page input:focus-visible {
  outline: 3px solid var(--cosmo-purple);
  outline-offset: 4px;
}
.cosmo-footer a:focus-visible { outline-color: #fff; }
.cosmo-shell { max-width: 1280px; padding-inline: 26px; margin-inline: auto; }
.cosmo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 12px 23px; border: 2px solid var(--cosmo-teal);
  border-radius: 12px; color: white !important; background: var(--cosmo-teal);
  font-size: 15px; font-weight: 750; text-align: center;
  line-height: 1.35; white-space: normal;
  transition: background .18s ease, transform .18s ease;
}
.cosmo-btn:hover { background: var(--cosmo-teal-hover); border-color: var(--cosmo-teal-hover); color: #fff !important; transform: translateY(-1px); }
.cosmo-btn-outline { background: transparent; color: var(--cosmo-purple) !important; border-color: var(--cosmo-purple); }
.cosmo-btn-outline:hover { background: var(--cosmo-purple); border-color: var(--cosmo-purple); color: #fff !important; }
.cosmo-btn-small { padding: 9px 15px; min-height: 42px; font-size: 13px; }
.cosmo-inline-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; color: var(--cosmo-teal) !important; }
.cosmo-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cosmo-eyebrow {
  margin: 0 0 18px !important;
  color: var(--cosmo-teal) !important;
  font-weight: 850;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Header: uses one common navigation throughout the redesigned templates. */
.cosmo-skip {
  position: fixed; left: 12px; top: -200px; z-index: 999999;
  background: #fff; color: var(--cosmo-purple); border: 2px solid var(--cosmo-purple);
  padding: 10px 16px; border-radius: 8px;
}
.cosmo-skip:focus { top: 10px; }
.cosmo-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid #ece6f1; box-shadow: 0 3px 13px rgba(45,23,77,.04); }
body.admin-bar .cosmo-header { top: 32px; }
.cosmo-header-inner {
  min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cosmo-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--cosmo-purple) !important; }
.cosmo-brand-mark {
  display: inline-block; position: relative; width: 36px; height: 34px;
  background: conic-gradient(from 242deg at 100% 100%, var(--cosmo-purple) 0deg 85deg, transparent 86deg 109deg, var(--cosmo-teal) 110deg 173deg, transparent 174deg);
  border-radius: 100% 100% 0 0; overflow: hidden;
}
.cosmo-brand-mark::after { content: ""; position: absolute; width: 19px; height: 19px; border-radius: 100% 100% 0 0; background: #fff; right: 0; bottom: 0; }
.cosmo-brand-copy { display: flex; flex-direction: column; gap: 0; }
.cosmo-brand-copy strong { font-size: 22px; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.cosmo-brand-copy small { font-size: 11px; color: var(--cosmo-purple); line-height: 1.2; font-weight: 650; }
.cosmo-nav { display: flex; align-items: center; gap: clamp(11px, 1.65vw, 28px); }
.cosmo-nav-list { display: flex; align-items: center; gap: clamp(11px,1.65vw,28px); list-style: none; padding: 0; margin: 0; }
.cosmo-nav-list > li { list-style: none; position: relative; padding: 0; margin: 0; }
.cosmo-nav-list .sub-menu { position: absolute; top: 100%; left: 0; z-index: 120; min-width: 210px; padding: 9px; border: 1px solid var(--cosmo-line); background: #fff; border-radius: 12px; box-shadow: var(--cosmo-shadow); list-style: none; display: none; }
.cosmo-nav-list .sub-menu li { margin: 0; padding: 0; list-style: none; }
.cosmo-nav-list .sub-menu a { display: block; padding: 10px; border-radius: 8px; }
.cosmo-nav-list .menu-item-has-children:hover > .sub-menu,
.cosmo-nav-list .menu-item-has-children:focus-within > .sub-menu { display: block; }
.cosmo-nav-list .current-menu-item > a { color: var(--cosmo-teal) !important; }
.cosmo-nav a { color: var(--cosmo-purple) !important; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cosmo-nav a:hover { color: var(--cosmo-teal) !important; }
.cosmo-nav a.is-active { color: var(--cosmo-teal) !important; box-shadow: inset 0 -3px 0 var(--cosmo-teal); padding-bottom: 5px; }
.cosmo-mobile-menu { display: none; position: relative; color: var(--cosmo-purple); }
.cosmo-mobile-menu summary { display: block; list-style: none; cursor: pointer; border: 1px solid var(--cosmo-line); border-radius: 8px; font-weight: 700; padding: 10px 14px; }
.cosmo-mobile-links { position: absolute; z-index: 1000; right: 0; top: calc(100% + 8px); width: 240px; padding: 15px; background: #fff; box-shadow: var(--cosmo-shadow); border-radius: 14px; border: 1px solid var(--cosmo-line); display: grid; gap: 8px; }
.cosmo-mobile-links a { display: block; padding: 8px; font-size: 15px; color: var(--cosmo-purple); font-weight: 700; }
.cosmo-mobile-links .cosmo-nav-list { display: grid; gap: 2px; align-items: stretch; }
.cosmo-mobile-links .cosmo-nav-list li { width: 100%; }
.cosmo-mobile-links .cosmo-nav-list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 12px; }
.cosmo-mobile-links a.is-active { background: var(--cosmo-lilac); border-radius: 8px; }

/* A consistent page shell for every default WordPress/WPBakery page. */
.cosmo-inner-page { padding-bottom: 65px; }
.cosmo-inner-hero { background: linear-gradient(116deg, #f5f0ff 0%, #faf8ff 62%, #edf9f7 100%); border-radius: 0 0 34px 34px; overflow: hidden; }
.cosmo-inner-hero-grid { min-height: 355px; display: grid; grid-template-columns: minmax(0,1.8fr) minmax(270px,.8fr); gap: 44px; align-items: center; padding-block: 36px 45px; }
.cosmo-inner-hero-copy { position: relative; z-index: 2; }
.cosmo-page-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #514461; font-weight: 650; font-size: 13px; margin-bottom: 34px; }
.cosmo-page-crumbs a { color: var(--cosmo-purple) !important; text-decoration: underline; text-underline-offset: 3px; }
.cosmo-page-crumbs span:last-child { color: #534561; }
.cosmo-inner-hero h1 { font-size: clamp(45px,5.3vw,75px); line-height: 1.06; margin: 0 0 17px; overflow-wrap: anywhere; }
.cosmo-inner-lead { font-size: clamp(18px,2vw,23px); line-height: 1.48; max-width: 760px; margin: 0 !important; color: #433552 !important; }
.cosmo-inner-art { position: relative; width: min(100%,350px); aspect-ratio: 1.16; margin-left: auto; border-radius: 35px; background: radial-gradient(circle at 80% 14%, #f2a16b 0 18px,transparent 19px), linear-gradient(140deg,#43266b,#271242); box-shadow: 0 16px 37px rgba(45,23,77,.16); display: grid; align-content: end; padding: 31px; overflow: hidden; }
.cosmo-inner-art-circle { position: absolute; width: 280px; height: 280px; left: -55px; top: -90px; border: 34px solid #4ca6a0; border-radius: 100%; opacity: .8; }
.cosmo-inner-art-mark { position: absolute; right: 26px; top: 16px; color: #fdcb96; font-size: 86px; line-height: 1; }
.cosmo-inner-art-word { position: relative; font-size: clamp(27px,3vw,38px); font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -.045em; }
.cosmo-inner-hero-photo { margin: 0; align-self: stretch; min-height: 270px; }
.cosmo-inner-hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.cosmo-inner-content-wrap { padding-top: clamp(42px,6vw,77px); padding-bottom: clamp(45px,5vw,75px); }
.cosmo-inner-content { width: 100%; max-width: 1040px; margin-inline: auto; overflow-wrap: break-word; }
.cosmo-inner-content > p:first-child { font-size: 20px; }
.cosmo-inner-content .vc_row { max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
.cosmo-inner-content .vc_column_container { min-width: 0; }
.cosmo-inner-content .vc_column_container > .vc_column-inner { max-width: 100%; }
.cosmo-inner-content .wpb_text_column > .wpb_wrapper > p { color: var(--cosmo-text); font-size: clamp(17px,1.55vw,19px); line-height: 1.78; }
.cosmo-inner-content .wpb_text_column > .wpb_wrapper > h2,
.cosmo-inner-content .uvc-main-heading h2,
.cosmo-inner-content .wpb_text_column h2 { color: var(--cosmo-purple) !important; font-family: 'Inter Tight', Inter, sans-serif !important; font-size: clamp(27px,3vw,42px) !important; font-weight: 800 !important; line-height: 1.18 !important; letter-spacing: -.025em; }
.cosmo-inner-content .wpb_text_column h3 { color: var(--cosmo-purple) !important; }
.cosmo-inner-content .wpb_text_column > .wpb_wrapper > h2 { margin-top: 42px; padding-left: 22px; border-left: 5px solid var(--cosmo-teal); }
.cosmo-inner-content .wpb_content_element { margin-bottom: 30px; }
.cosmo-inner-content a:not(.cosmo-btn) { color: var(--cosmo-teal); text-decoration: underline; text-underline-offset: 3px; }
.cosmo-inner-content img, .cosmo-inner-content iframe { max-width: 100%; }
.cosmo-inner-content blockquote { background: var(--cosmo-lilac); border-left: 5px solid var(--cosmo-teal); border-radius: 8px 17px 17px 8px; padding: 22px; }
.cosmo-page-bottom-cta { margin-top: 12px; }
.cosmo-contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 27px; padding-inline: 32px; border-radius: 22px; border: 1px solid #cdece7; background: var(--cosmo-mint); }
.cosmo-contact-panel h2 { font-size: clamp(25px,3vw,40px); margin: 0 0 13px; }
.cosmo-contact-panel p { margin: 0 0 12px; }
.cosmo-contact-panel .cosmo-draft-tag { font-size: 12px; max-width: 550px; }
.cosmo-contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; flex-shrink: 0; }

/* Homepage */
.cosmo-hero { min-height: 590px; padding-top: 36px; padding-bottom: 34px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 34px; }
.cosmo-hero-copy { position: relative; padding-block: 34px; }
.cosmo-hero h1 { margin: 0 0 22px; position: relative; }
.cosmo-hero h1::after {
  content: ""; display: block; width: 132px; height: 13px; margin: 8px 0 0 35%;
  border-top: 5px solid var(--cosmo-coral); border-radius: 50% 50% 0 0; transform: rotate(-2deg);
}
.cosmo-hero-lead { font-size: 20px; max-width: 520px; line-height: 1.48; }
.cosmo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cosmo-hero-photo {
  min-height: 480px; border-radius: 48px 48px 32px 32px;
  background: var(--cosmo-lilac) url("assets/hero.png") center / cover no-repeat;
  position: relative; display: flex; align-items: flex-end; padding: 18px;
}
.cosmo-preview-label {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 6px 10px; border-radius: 7px; background: #fff;
  color: #2d174d; border: 1px solid #8c79a3; font-size: 11px;
  line-height: 1.3; letter-spacing: .045em; font-weight: 800;
  box-shadow: 0 2px 12px rgba(45,23,77,.18);
}
.cosmo-hero-photo::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 100%; background: #e4d2ff; z-index: -1; top: -25px; left: -25px; }
.cosmo-hero-photo::after { content: ""; position: absolute; right: 18px; top: -18px; height: 45px; width: 42px; border-right: 6px solid var(--cosmo-coral); border-radius: 18px; transform: rotate(26deg); }
.cosmo-services { padding: 32px 0 38px; background: var(--cosmo-lilac); border-radius: 32px; }
.cosmo-services h2 { margin: 0 0 23px; }
.cosmo-services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cosmo-service {
  display: flex; flex-direction: column; min-height: 230px; padding: 24px 22px;
  background: #fff; border-radius: 18px; border: 1px solid #eee9f7;
  box-shadow: 0 8px 20px rgba(45, 23, 77, .035); transition: transform .2s ease, box-shadow .2s ease;
}
.cosmo-service:hover { transform: translateY(-3px); box-shadow: var(--cosmo-shadow); }
.cosmo-service h3 a, .cosmo-training-info h3 a { color: var(--cosmo-purple) !important; }
.cosmo-service h3 a:hover, .cosmo-training-info h3 a:hover { color: var(--cosmo-teal) !important; }
.cosmo-service-icon { color: var(--cosmo-purple); line-height: 1; font-size: 39px; margin-bottom: 15px; font-weight: 500; }
.cosmo-service h3 { font-size: 22px; margin: 0 0 12px; }
.cosmo-service p { color: var(--cosmo-text); line-height: 1.45; font-size: 15px; margin-bottom: 17px; }
.cosmo-mini-arrow { display: inline-grid; place-items: center; margin-top: auto; width: 32px; height: 32px; border-radius: 100%; background: var(--cosmo-teal); color: #fff; font-size: 22px; line-height: 1; }
.cosmo-section { margin-top: 60px; margin-bottom: 60px; }
.cosmo-section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.cosmo-section-top h2 { margin: 0; }
.cosmo-training-grid, .cosmo-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cosmo-training-card, .cosmo-post-card { overflow: hidden; display: flex; flex-direction: column; border-radius: var(--cosmo-radius); border: 1px solid var(--cosmo-line); background: #fff; box-shadow: 0 10px 24px rgba(45,23,77,.055); transition: transform .2s ease, box-shadow .2s ease; }
.cosmo-training-card:hover, .cosmo-post-card:hover { transform: translateY(-3px); box-shadow: var(--cosmo-shadow); }
.cosmo-training-card { color: var(--cosmo-purple) !important; }
.cosmo-training-visual { display: flex; align-items: flex-end; padding: 13px; height: 222px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.cosmo-training-ai { background-image: linear-gradient(30deg, rgba(45,23,77,.16), transparent), url("assets/hero.png"); background-position: 65% 54%; }
.cosmo-training-educators { background-image: linear-gradient(30deg, rgba(45,23,77,.1), transparent), url("assets/projects.png"); }
.cosmo-training-integration { background-image: linear-gradient(30deg, rgba(45,23,77,.16), transparent), url("assets/hero.png"); background-position: 32% 55%; }
.cosmo-training-info { display: flex; flex-direction: column; padding: 23px; flex: 1; }
.cosmo-training-info h3 { margin: 0 0 12px; }
.cosmo-training-info p { font-size: 15px; line-height: 1.5; flex: 1; }
.cosmo-training-info .cosmo-inline-link { margin-top: auto; }
.cosmo-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cosmo-audience-grid > article { padding: 30px; background: var(--cosmo-mint); border: 1px solid #d3eeeb; border-radius: var(--cosmo-radius); }
.cosmo-audience-grid h3 { margin: 12px 0 12px; }
.cosmo-audience-grid p { font-size: 15px; margin: 0; }
.cosmo-audience-symbol { font-size: 14px; font-weight: 850; color: var(--cosmo-teal); letter-spacing: .04em; }
.cosmo-projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cosmo-projects h2 { margin-top: 0; }
.cosmo-projects-photo { min-height: 420px; background: #edf5f2 url("assets/projects.png") center / cover no-repeat; border-radius: 28px; display: flex; align-items: flex-end; padding: 18px; }
.cosmo-checks { list-style: none; margin: 18px 0 25px; padding: 0; }
.cosmo-checks li { position: relative; padding-left: 30px; margin: 12px 0; font-size: 16px; }
.cosmo-checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; font-weight: 800; border: 2px solid var(--cosmo-teal); color: var(--cosmo-teal); border-radius: 50%; font-size: 12px; height: 22px; width: 22px; line-height: 18px; text-align: center; }
.cosmo-trust { background: var(--cosmo-mint); padding: 38px 0; border-radius: 25px; }
.cosmo-trust-inner { display: grid; grid-template-columns: .85fr 1.5fr; align-items: center; gap: 30px; }
.cosmo-trust h2 { font-size: 35px; margin: 0; }
.cosmo-trust p { margin: 0; }
.cosmo-materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cosmo-material { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--cosmo-line); border-radius: 18px; background: #fff; min-height: 280px; }
.cosmo-material > span { color: var(--cosmo-teal); font-size: 36px; line-height: 1; }
.cosmo-material .cosmo-material-kicker { font-size: 12px; font-weight: 800; color: var(--cosmo-teal); letter-spacing: .04em; margin: 16px 0 7px; }
.cosmo-material h3 { font-size: 23px; margin: 0 0 12px; }
.cosmo-material > p:not(.cosmo-material-kicker) { font-size: 15px; margin-bottom: 18px; }
.cosmo-material .cosmo-inline-link { margin-top: auto; }
.cosmo-cta {
  padding: 30px 34px; background: linear-gradient(105deg, var(--cosmo-purple-dark), #5a297e);
  border-radius: 22px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cosmo-cta h2 { margin: 0 0 7px; font-size: 31px; color: #fff; }
.cosmo-cta p { margin: 0; color: #fff; }
.cosmo-cta .cosmo-btn { flex-shrink: 0; }

/* Dynamic WordPress cards */
.cosmo-post-card-picture { display: block; overflow: hidden; height: 218px; background: var(--cosmo-lilac); }
.cosmo-card-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.cosmo-card-placeholder { display: flex; align-items: flex-end; padding: 12px; height: 100%; background: linear-gradient(135deg, #e9dcfa, #c6ece7); }
.cosmo-preview-photo { display: flex; align-items: flex-end; padding: 12px; background-size: cover; background-position: center; }
.cosmo-placeholder-ai { background-image: linear-gradient(rgba(45,23,77,.04),rgba(45,23,77,.25)),url("assets/hero.png"); }
.cosmo-placeholder-teaching { background-image: linear-gradient(rgba(45,23,77,.04),rgba(45,23,77,.25)),url("assets/projects.png"); }
.cosmo-placeholder-culture { background-image: linear-gradient(rgba(45,23,77,.04),rgba(45,23,77,.25)),url("assets/hero.png"); background-position: 27% center; }
.cosmo-draft-tag { display: inline-block; margin-top: auto; font-size: 11px; color: #5b4770; font-weight: 800; letter-spacing: .04em; }
.cosmo-post-card-content { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; flex: 1; }
.cosmo-pill { background: #e4f7f4; color: var(--cosmo-purple); border-radius: 100px; padding: 5px 11px; font-size: 12px; font-weight: 800; line-height: 1.3; }
.cosmo-post-card h3 { font-size: 22px; margin: 12px 0 12px; }
.cosmo-post-card h3 a { color: var(--cosmo-purple) !important; }
.cosmo-post-card h3 a:hover { color: var(--cosmo-teal) !important; }
.cosmo-post-card p { color: var(--cosmo-text); font-size: 15px; line-height: 1.48; flex: 1; }

/* Blog archive */
.cosmo-blog-hero {
  background: var(--cosmo-lilac);
  padding: 40px 0 53px;
  border-radius: 0 0 33px 33px;
}
.cosmo-breadcrumb { font-size: 14px; color: var(--cosmo-purple) !important; margin: 0 0 27px !important; }
.cosmo-breadcrumb a { color: var(--cosmo-purple) !important; text-decoration: underline; text-underline-offset: 3px; }
.cosmo-blog-hero h1 { font-size: clamp(58px, 8vw, 104px); margin: 0 0 10px; }
.cosmo-blog-hero p:last-child { margin: 0; font-size: 20px; }
.cosmo-filterbar { margin-top: 27px; display: flex; align-items: center; gap: 20px; justify-content: space-between; background: var(--cosmo-lilac); padding: 14px; border-radius: 22px; }
.cosmo-filter-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cosmo-category-link { display: inline-block; background: #fff; border: 1px solid #8c79a3; border-radius: 99px; color: var(--cosmo-purple) !important; padding: 7px 15px; font-size: 13px; font-weight: 700; }
.cosmo-category-link:hover, .cosmo-category-link:focus { background: var(--cosmo-purple); color: #fff !important; }
.cosmo-search { display: flex; align-items: stretch; background: #fff; border: 1px solid #8c79a3; border-radius: 10px; min-width: 250px; }
.cosmo-search input { width: 180px; min-width: 0; border: 0; padding: 10px 12px; border-radius: 10px 0 0 10px; color: var(--cosmo-purple); background: #fff; font: inherit; font-size: 13px; }
.cosmo-search button { border: none; border-radius: 0 9px 9px 0; background: var(--cosmo-teal); color: #fff; padding: 0 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
.cosmo-blog .cosmo-section h2 { margin: 0 0 25px; }
.cosmo-blog-rescue { padding-top: 55px; padding-bottom: 75px; }
.cosmo-blog-rescue h2 { font-size: 36px; }
.cosmo-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 16px; }
.cosmo-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; border-radius: 10px; padding: 5px 12px; border: 1px solid var(--cosmo-line); color: var(--cosmo-purple); text-decoration: none; }
.cosmo-pagination .page-numbers.current, .cosmo-pagination .page-numbers:hover { background: var(--cosmo-teal); color: #fff; border-color: var(--cosmo-teal); }

/* Single post; normal prose is intentionally preserved, including WPBakery content. */
.cosmo-single-hero { padding-top: 34px; }
.cosmo-single-hero { position: relative; padding-bottom: 12px; }
.cosmo-single-hero::after { content: ''; position: absolute; right: 25px; top: 75px; width: 80px; height: 80px; border: 14px solid var(--cosmo-lilac); border-radius: 50%; pointer-events: none; z-index: -1; }
.cosmo-single-hero h1 { font-size: clamp(46px, 6vw, 76px); max-width: 970px; margin: 0 0 21px; }
.cosmo-article-lead { max-width: 750px; font-size: 23px; color: var(--cosmo-purple); }
.cosmo-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 27px; font-size: 14px; color: #60606c; }
.cosmo-article-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--cosmo-purple); color: #fff; width: 38px; height: 38px; border-radius: 100%; font-family: 'Inter Tight',Inter,sans-serif; font-size: 20px; font-weight: 900; }
.cosmo-article-author { font-weight: 800; color: var(--cosmo-purple); }
.cosmo-meta-dot { color: #82748f; }
.cosmo-article-figure { margin: 18px 0 40px; }
.cosmo-article-image { display: block; width: 100%; max-height: 565px; object-fit: cover; border-radius: 26px; }
.cosmo-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.cosmo-prose { color: var(--cosmo-text); font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.cosmo-prose p { font-size: 18px; line-height: 1.75; margin: 0 0 1.25em; }
.cosmo-prose h2 { margin: 1.6em 0 .6em; font-size: clamp(28px, 3vw, 40px); scroll-margin-top: 50px; }
.cosmo-prose h3 { margin: 1.4em 0 .5em; font-size: 27px; scroll-margin-top: 50px; }
.cosmo-prose li { margin-bottom: .65em; }
.cosmo-prose a { color: var(--cosmo-teal); text-decoration: underline; text-underline-offset: 3px; }
.cosmo-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.cosmo-prose blockquote,
.cosmo-prose .wp-block-quote {
  background: var(--cosmo-lilac); color: var(--cosmo-purple);
  border-left: 6px solid var(--cosmo-teal);
  margin: 35px 0; padding: 26px 30px; border-radius: 10px 18px 18px 10px;
}
.cosmo-prose blockquote p { color: var(--cosmo-purple); font-weight: 650; margin: 0; }
.cosmo-prose .wp-block-group.is-style-cosmo-note { padding: 24px; background: var(--cosmo-lilac); border-radius: 18px; border-left: 5px solid var(--cosmo-teal); }
.cosmo-reading-side { position: sticky; top: 22px; }
.cosmo-toc { background: var(--cosmo-lilac); border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.cosmo-toc h2, .cosmo-article-aside-cta h2 { font-size: 27px; margin: 0 0 19px; }
.cosmo-toc ul { list-style: none; margin: 0; padding: 0; }
.cosmo-toc li { margin-bottom: 6px; }
.cosmo-toc .cosmo-toc-sub { padding-left: 14px; }
.cosmo-toc a { color: var(--cosmo-purple); background: #fff; border-radius: 10px; padding: 11px 10px; display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; font-weight: 650; }
.cosmo-toc a:hover { background: #e6f8f4; }
.cosmo-article-aside-cta { padding: 24px; border: 1px solid var(--cosmo-purple); border-radius: 18px; }
.cosmo-aside-symbol { display: block; font-size: 35px; color: var(--cosmo-purple); }
.cosmo-article-aside-cta p { font-size: 15px; }
.cosmo-related { padding-top: 25px; border-top: 1px solid var(--cosmo-line); }
.cosmo-related h2 { margin: 0 0 22px; }
.cosmo-article-bottom { margin-top: 53px; margin-bottom: 62px; padding-block: 30px; border-top: 2px solid var(--cosmo-line); border-bottom: 2px solid var(--cosmo-line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cosmo-article-bottom h2 { font-size: clamp(25px,2.6vw,37px); margin: 0 0 13px; max-width: 650px; }
.cosmo-article-bottom p { margin: 0; max-width: 650px; }
.cosmo-article-bottom-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex-shrink: 0; }

/* Footer */
.cosmo-footer { background: var(--cosmo-purple-dark); color: #fff; padding: 45px 0 17px; }
.cosmo-footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 36px; }
.cosmo-footer h2 { color: #fff; font-size: 17px; margin: 0 0 14px; }
.cosmo-footer p { color: #eee8f6; font-size: 14px; margin: 17px 0 0; line-height: 1.5; }
.cosmo-footer a { display: block; color: #fff !important; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.cosmo-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cosmo-footer-address { display: block; color: #eee8f6; font-size: 13px; margin-top: 12px; line-height: 1.5; }
.cosmo-footer-bottom a { display: inline !important; color: #eee8f6; font-size: 12px; }
.cosmo-brand-footer { display: inline-flex !important; }
.cosmo-brand-footer strong, .cosmo-brand-footer small { color: #fff; }
.cosmo-brand-footer .cosmo-brand-mark::after { background: var(--cosmo-purple-dark); }
.cosmo-footer-bottom { border-top: 1px solid rgba(255,255,255,.3); margin-top: 36px; padding-top: 13px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #e3ddeb; }

/* Small screens and reduced motion. */
@media (max-width: 1170px) {
  .cosmo-nav { gap: 12px; }
  .cosmo-nav a { font-size: 12px; }
  .cosmo-header-inner > .cosmo-btn { display: none; }
  .cosmo-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cosmo-nav { display: none; }
  .cosmo-mobile-menu { display: block; }
  .cosmo-hero { grid-template-columns: 1fr; min-height: auto; gap: 12px; padding-top: 22px; }
  .cosmo-hero-copy { padding-block: 15px; }
  .cosmo-hero-photo { min-height: 360px; }
  .cosmo-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cosmo-audience-grid { grid-template-columns: 1fr; }
  .cosmo-training-grid, .cosmo-post-grid, .cosmo-materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cosmo-projects { grid-template-columns: 1fr; }
  .cosmo-trust-inner { grid-template-columns: 1fr; gap: 12px; }
  .cosmo-reading-layout { grid-template-columns: 1fr; gap: 28px; }
  .cosmo-reading-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cosmo-inner-hero-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 34px; }
  .cosmo-inner-art { display: none; }
  .cosmo-inner-hero-photo { min-height: 180px; max-height: 320px; }
  .cosmo-contact-panel, .cosmo-article-bottom { flex-direction: column; align-items: stretch; }
  .cosmo-contact-actions, .cosmo-article-bottom-actions { flex-direction: row; flex-wrap: wrap; }
  .cosmo-filterbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 620px) {
  body.admin-bar .cosmo-header { top: 46px; }
  .cosmo-shell { padding-inline: 17px; }
  .cosmo-page { font-size: 16px; }
  .cosmo-header-inner { min-height: 70px; }
  .cosmo-brand-copy strong { font-size: 18px; }
  .cosmo-brand-copy small { font-size: 10px; }
  .cosmo-brand-mark { width: 29px; height: 28px; }
  .cosmo-brand-mark::after { width: 15px; height: 15px; }
  .cosmo-hero-photo { min-height: 250px; border-radius: 25px; }
  .cosmo-hero-lead { font-size: 18px; }
  .cosmo-services { border-radius: 19px; }
  .cosmo-services-grid, .cosmo-training-grid, .cosmo-post-grid, .cosmo-materials-grid { grid-template-columns: 1fr; }
  .cosmo-service { min-height: 0; }
  .cosmo-section-top { align-items: flex-start; flex-direction: column; }
  .cosmo-projects-photo { min-height: 265px; }
  .cosmo-trust h2 { font-size: 29px; }
  .cosmo-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cosmo-cta .cosmo-btn { flex-shrink: 1; }
  .cosmo-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .cosmo-footer-grid > div:first-child { grid-column: 1 / -1; }
  .cosmo-reading-side { display: block; }
  .cosmo-inner-hero { border-radius: 0 0 24px 24px; }
  .cosmo-inner-hero-grid { min-height: 250px; }
  .cosmo-page-crumbs { margin-bottom: 23px; }
  .cosmo-inner-content-wrap { padding-top: 40px; }
  .cosmo-inner-content .vc_column_container > .vc_column-inner { padding-inline: 0; }
  .cosmo-contact-panel { padding: 22px; }
  .cosmo-contact-actions, .cosmo-article-bottom-actions { flex-direction: column; }
  .cosmo-contact-actions .cosmo-btn, .cosmo-article-bottom-actions .cosmo-btn { width: 100%; }
  .cosmo-single-hero { padding-top: 18px; }
  .cosmo-article-lead { font-size: 18px; }
  .cosmo-prose p { font-size: 17px; }
  .cosmo-footer-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmo-btn, .cosmo-service, .cosmo-training-card, .cosmo-post-card { transition: none; }
  .cosmo-btn:hover, .cosmo-service:hover, .cosmo-training-card:hover, .cosmo-post-card:hover { transform: none; }
}

/* v1.3 — editable WordPress block templates. These selectors keep the approved
   homepage aesthetic while every heading, image and card is a native block. */
/* Do NOT globally zero margins on all groups/columns. That broke spacing in
   1.3 and overrode user-set margin controls in the visual editor. */
body.cosmo-design-active .cosmo-header .cosmo-header-inner,
body.cosmo-design-active .cosmo-footer .cosmo-footer-grid { margin-block: 0; }
.cosmo-page .wp-block-column, .cosmo-footer .wp-block-column { min-width: 0; }
.cosmo-page .wp-block-columns { margin-bottom: 0; }
.cosmo-page .wp-block-group.is-layout-constrained > * { max-width: none; }
.cosmo-editable-home .wp-block-columns.cosmo-hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; }
.cosmo-editable-home .wp-block-columns.cosmo-services-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.cosmo-editable-home .wp-block-columns.cosmo-training-grid,
.cosmo-editable-home .wp-block-columns.cosmo-audience-grid,
.cosmo-editable-home .wp-block-columns.cosmo-materials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.cosmo-editable-home .wp-block-columns.cosmo-projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); }
.cosmo-editable-home .wp-block-columns.cosmo-trust-inner { display: grid; grid-template-columns: .85fr 1.5fr; gap: 30px; }
.cosmo-page .wp-block-heading { margin-block-start: 0; }
.cosmo-editable-home .cosmo-service > .wp-block-heading,
.cosmo-editable-home .cosmo-training-info > .wp-block-heading { margin-top: 0; }
.cosmo-editable-home .cosmo-service > .cosmo-inline-link { margin-top: auto; }
.cosmo-editable-home .cosmo-service .cosmo-service-icon { margin: 0 0 15px; }
.cosmo-editable-home .cosmo-service .cosmo-service-icon + h3 { margin-top: 0; }
.cosmo-editable-home .cosmo-hero-photo-column { position: relative; }
.cosmo-editable-home .cosmo-block-hero-image { position: relative; margin: 0; height: 480px; border-radius: 48px 48px 32px 32px; background: var(--cosmo-lilac); overflow: hidden; }
.cosmo-editable-home .cosmo-block-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cosmo-editable-home .cosmo-block-hero-image figcaption,
.cosmo-editable-home .cosmo-training-visual figcaption,
.cosmo-editable-home .cosmo-block-project-image figcaption { position: absolute; bottom: 13px; left: 13px; display: inline-block; width: auto; max-width: calc(100% - 26px); padding: 6px 10px; border: 1px solid #8c79a3; border-radius: 7px; background: #fff; color: #2d174d; text-align: left; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .035em; }
.cosmo-editable-home .wp-block-image.cosmo-training-visual { position: relative; width: 100%; height: 222px; margin: 0; padding: 0; display: block; border-radius: 0; overflow: hidden; }
.cosmo-editable-home .wp-block-image.cosmo-training-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cosmo-editable-home .cosmo-training-info { flex: 1; min-height: 210px; }
.cosmo-editable-home .cosmo-training-info > .cosmo-inline-link { margin-top: auto; margin-bottom: 0; }
.cosmo-editable-home .cosmo-audience-grid > .cosmo-audience-item { padding: 30px; background: var(--cosmo-mint); border: 1px solid #d3eeeb; border-radius: var(--cosmo-radius); }
.cosmo-editable-home .cosmo-audience-symbol { margin-bottom: 10px; }
.cosmo-editable-home .cosmo-block-project-image { position: relative; width: 100%; height: 420px; margin: 0; overflow: hidden; border-radius: 28px; }
.cosmo-editable-home .cosmo-block-project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cosmo-editable-home .cosmo-projects-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cosmo-editable-home .cosmo-material > .cosmo-material-icon { color: var(--cosmo-teal); font-size: 36px; margin: 0; line-height: 1; }
.cosmo-editable-home .cosmo-material > .cosmo-inline-link { margin-top: auto; }
.cosmo-editable-home .cosmo-trust .cosmo-trust-inner { align-items: center; }
.cosmo-editable-home .cosmo-trust h2 { margin: 0; }
.cosmo-editable-home .cosmo-trust p { margin: 0; }
.cosmo-editable-home .cosmo-home-cta { margin-block: 0 64px; }
.cosmo-page .wp-block-button.cosmo-btn,
.cosmo-header .wp-block-button.cosmo-btn,
.cosmo-footer .wp-block-button.cosmo-btn { padding: 0; border: 0; background: transparent; min-height: 0; display: inline-flex; border-radius: 12px; }
.cosmo-page .wp-block-button.cosmo-btn .wp-block-button__link,
.cosmo-header .wp-block-button.cosmo-btn .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; padding: 12px 23px; border: 2px solid var(--cosmo-teal); background: var(--cosmo-teal); color: #fff !important; font-weight: 800; font-size: 15px; line-height: 1.35; text-decoration: none; }
.cosmo-page .wp-block-button.cosmo-btn .wp-block-button__link:hover,
.cosmo-header .wp-block-button.cosmo-btn .wp-block-button__link:hover { background: var(--cosmo-teal-hover); border-color: var(--cosmo-teal-hover); }
.cosmo-page .wp-block-button.cosmo-btn-outline .wp-block-button__link { border-color: var(--cosmo-purple); color: var(--cosmo-purple) !important; background: transparent; }
.cosmo-page .wp-block-button.cosmo-btn-outline .wp-block-button__link:hover { color: #fff !important; background: var(--cosmo-purple); }
.cosmo-page .cosmo-inline-link a { color: var(--cosmo-teal) !important; text-decoration: underline; text-underline-offset: 3px; }
.cosmo-editable-home .cosmo-post-card .wp-block-post-featured-image,
.cosmo-block-blog .cosmo-post-card .wp-block-post-featured-image,
.cosmo-block-single .cosmo-post-card .wp-block-post-featured-image { margin: 0; min-height: 200px; background: linear-gradient(130deg,#e7d7f7,#dbf4ee); }
.cosmo-page .cosmo-post-card .wp-block-post-featured-image img { display: block; height: 218px; width: 100%; object-fit: cover; }
.cosmo-page .cosmo-post-card .cosmo-post-card-content { padding: 20px 22px 22px; }
.cosmo-page .cosmo-post-card .wp-block-post-title { font-size: 23px; margin: 10px 0 12px; }
.cosmo-page .cosmo-post-card .wp-block-post-title a { color: var(--cosmo-purple); }
.cosmo-page .cosmo-post-card .wp-block-post-excerpt { margin-top: 0; }
.cosmo-page .cosmo-post-card .wp-block-post-excerpt__excerpt { font-size: 15px; line-height: 1.52; }
.cosmo-page .cosmo-post-card .wp-block-post-excerpt__more-link { color: var(--cosmo-teal); font-size: 14px; font-weight: 800; }
.cosmo-page .cosmo-post-card .wp-block-post-terms { background: #e4f7f4; border-radius: 100px; padding: 5px 11px; }
.cosmo-page .cosmo-post-card .wp-block-post-terms a { color: var(--cosmo-purple); }
.cosmo-page .wp-block-post-template.cosmo-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 0; list-style: none; }
.cosmo-page .wp-block-post-template.cosmo-post-grid > li { min-width: 0; }
.cosmo-block-blog .cosmo-block-search { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.cosmo-block-blog .cosmo-block-search h2 { margin: 0; }
.cosmo-block-blog .cosmo-block-search .wp-block-search { min-width: 250px; }
.cosmo-block-blog .cosmo-block-search .wp-block-search__input { border: 1px solid #8c79a3; border-radius: 8px 0 0 8px; min-height: 45px; }
.cosmo-block-blog .cosmo-block-search .wp-block-search__button { background: var(--cosmo-teal); color: #fff; border: none; border-radius: 0 8px 8px 0; }
.cosmo-page .wp-block-query-pagination.cosmo-pagination { margin-top: 34px; gap: 8px; }
.cosmo-page .wp-block-query-pagination.cosmo-pagination a { color: var(--cosmo-purple); text-decoration: underline; }
.cosmo-block-blog .cosmo-blog-cta { margin-block: 42px 65px !important; }
.cosmo-block-inner-page .cosmo-inner-hero-grid { grid-template-columns: minmax(0,1.8fr) minmax(270px,.8fr); }
.cosmo-block-inner-page .cosmo-inner-art { display: grid; }
.cosmo-block-inner-page .cosmo-inner-art-mark,
.cosmo-block-inner-page .cosmo-inner-art-word { color: #fff; margin: 0; }
.cosmo-block-inner-page .cosmo-inner-art-mark { color: #fdcb96; }
.cosmo-block-inner-page .cosmo-inner-hero-copy h1 { margin-bottom: 18px; }
.cosmo-block-inner-page .cosmo-inner-content-wrap { padding-block: 62px; }
.cosmo-block-inner-page .cosmo-page-bottom-cta { margin-bottom: 60px !important; }
.cosmo-block-single .cosmo-reading-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; }
.cosmo-block-single .cosmo-article-meta { margin-block: 20px 26px; }
.cosmo-block-single .cosmo-article-figure { margin: 15px 0 40px; }
.cosmo-block-single .cosmo-article-figure img { display: block; max-height: 565px; width: 100%; object-fit: cover; border-radius: 26px; }
.cosmo-block-single .cosmo-article-bottom { margin-top: 55px !important; margin-bottom: 62px !important; }
.cosmo-block-single .cosmo-reading-side { position: sticky; top: 106px; }
.cosmo-block-single .cosmo-article-aside-cta { padding: 24px; }
.cosmo-block-single .cosmo-related { padding-top: 25px; }

/* Editable shared header & footer: patterns are changed once in Site Editor. */
.cosmo-block-header .cosmo-header-inner { display: flex; gap: 18px; justify-content: space-between; flex-wrap: nowrap; }
.cosmo-block-header .cosmo-block-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.cosmo-block-header .cosmo-block-brand-icon { color: var(--cosmo-teal); font-size: 40px; line-height: 1; margin: 0; }
.cosmo-block-header .cosmo-block-brand-name { font-weight: 900; font-size: 21px; line-height: 1.05; margin: 0; letter-spacing: -.04em; }
.cosmo-block-header .cosmo-block-brand-name a { color: var(--cosmo-purple); }
.cosmo-block-header .cosmo-block-brand-tag { margin: 0; font-size: 11px; font-weight: 650; line-height: 1.25; color: var(--cosmo-purple); }
.cosmo-block-header .wp-block-navigation.cosmo-block-nav { display: flex; align-items: center; gap: 14px; margin: 0; }
.cosmo-block-header .wp-block-navigation.cosmo-block-nav .wp-block-navigation-item__content { color: var(--cosmo-purple) !important; font-size: 13px; font-weight: 750; white-space: nowrap; }
.cosmo-block-header .wp-block-navigation.cosmo-block-nav .wp-block-navigation-item__content:hover { color: var(--cosmo-teal) !important; }
.cosmo-block-header .wp-block-button.cosmo-btn-small .wp-block-button__link { padding: 9px 14px; min-height: 42px; font-size: 13px; }
.cosmo-block-header .cosmo-block-header-actions { margin: 0; flex-shrink: 0; }
.cosmo-block-header .wp-block-navigation__responsive-container-open { color: var(--cosmo-purple); }
.cosmo-block-footer.wp-block-group { padding: 45px 0 17px; }
.cosmo-block-footer .wp-block-columns.cosmo-footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4,minmax(0,1fr)); gap: 36px; }
.cosmo-block-footer .wp-block-heading { color: #fff; font-size: 17px; margin: 0 0 14px; font-weight: 800; }
.cosmo-block-footer .cosmo-footer-brand { font-size: 23px; letter-spacing: -.035em; }
.cosmo-block-footer .wp-block-column > p { margin: 0 0 8px; color: #eee8f6; font-size: 14px; line-height: 1.55; }
.cosmo-block-footer .wp-block-column > p a { color: #fff !important; font-size: 14px; }
.cosmo-block-footer .cosmo-footer-bottom { border-top: 1px solid rgba(255,255,255,.3); margin-top: 35px; padding-top: 13px; }
.cosmo-block-footer .cosmo-footer-bottom p { margin: 0; font-size: 12px; color: #e3ddeb; }
.cosmo-block-footer .cosmo-footer-bottom a { color: #fff !important; }
@media (max-width: 1120px) {
  .cosmo-block-header .cosmo-block-header-actions { display: none; }
  .cosmo-block-footer .wp-block-columns.cosmo-footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .cosmo-editable-home .wp-block-columns.cosmo-hero,
  .cosmo-editable-home .wp-block-columns.cosmo-projects,
  .cosmo-editable-home .wp-block-columns.cosmo-trust-inner,
  .cosmo-block-single .cosmo-reading-layout,
  .cosmo-block-inner-page .cosmo-inner-hero-grid { grid-template-columns: 1fr; }
  .cosmo-editable-home .wp-block-columns.cosmo-services-grid,
  .cosmo-editable-home .wp-block-columns.cosmo-training-grid,
  .cosmo-editable-home .wp-block-columns.cosmo-materials-grid,
  .cosmo-page .wp-block-post-template.cosmo-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cosmo-editable-home .wp-block-columns.cosmo-audience-grid { grid-template-columns: 1fr; }
  .cosmo-block-single .cosmo-reading-side { position: static; }
  .cosmo-block-header .cosmo-header-inner { min-height: 74px; }
  .cosmo-block-header .wp-block-navigation.cosmo-block-nav { margin-left: auto; }
  .cosmo-block-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .cosmo-block-header .wp-block-navigation__responsive-container-open { display: flex; }
  .cosmo-block-inner-page .cosmo-inner-art { display: none; }
}
@media (max-width: 620px) {
  .cosmo-editable-home .wp-block-columns.cosmo-services-grid,
  .cosmo-editable-home .wp-block-columns.cosmo-training-grid,
  .cosmo-editable-home .wp-block-columns.cosmo-materials-grid,
  .cosmo-page .wp-block-post-template.cosmo-post-grid { grid-template-columns: 1fr; }
  .cosmo-editable-home .cosmo-block-hero-image { height: 290px; border-radius: 24px; }
  .cosmo-editable-home .cosmo-block-project-image { height: 280px; }
  .cosmo-block-blog .cosmo-block-search { flex-direction: column; align-items: stretch; }
  .cosmo-block-blog .cosmo-block-search .wp-block-search { width: 100%; min-width: 0; }
  .cosmo-block-footer .wp-block-columns.cosmo-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
  .cosmo-block-footer .cosmo-footer-grid > .wp-block-column:first-child { grid-column: 1/-1; }
}

/* v1.4 — spacing rhythm with editable native Spacer blocks. */
.cosmo-editable-home > .cosmo-section,
.cosmo-editable-home > .cosmo-projects,
.cosmo-editable-home > .cosmo-home-cta { margin-block-start: 0; margin-block-end: 0; }
.cosmo-editable-home .cosmo-section-top { margin-bottom: 26px; }
.cosmo-editable-home .cosmo-section-top > .wp-block-heading,
.cosmo-editable-home .cosmo-section-top > .cosmo-inline-link { margin: 0; }
.cosmo-editable-home .cosmo-audience > .wp-block-heading { margin: 0 0 24px; }
.cosmo-editable-home .cosmo-audience-grid > .cosmo-audience-item > .wp-block-heading { margin: 10px 0 12px; }
.cosmo-editable-home .cosmo-training-card .wp-block-heading { margin: 0 0 12px; }
.cosmo-editable-home .cosmo-training-card .cosmo-training-info { gap: 0; }
.cosmo-editable-home .cosmo-materials .wp-block-heading { margin-bottom: 10px; }
.cosmo-editable-home .cosmo-material .cosmo-material-kicker { margin: 16px 0 8px; }
.cosmo-editable-home .cosmo-material .cosmo-inline-link { margin-top: auto; }
.cosmo-editable-home > .wp-block-spacer { margin: 0; flex-shrink: 0; }
.cosmo-editable-home .cosmo-services { margin-top: 0; }
.cosmo-editable-home .cosmo-home-cta { margin-top: 0; margin-bottom: 64px; }
.cosmo-block-inner-page .cosmo-inner-hero { overflow: hidden; }
.cosmo-block-inner-page .cosmo-inner-hero-grid { min-height: 300px; }
.cosmo-block-inner-page .cosmo-inner-hero h1 { font-size: clamp(40px,5vw,65px); }
.cosmo-block-inner-page .cosmo-inner-lead { font-size: clamp(17px,1.65vw,20px); max-width: 680px; line-height: 1.5; margin-top: 14px !important; }
.cosmo-block-inner-page .cosmo-inner-lead .wp-block-post-excerpt__excerpt { font: inherit; line-height: inherit; color: #433552; margin: 0; }
.cosmo-block-inner-page .cosmo-inner-content-wrap { padding-block: clamp(45px,5.4vw,72px); }
.cosmo-block-blog .cosmo-blog-hero { margin: 0 0 36px; }
.cosmo-block-blog .cosmo-section { margin-block: 0 62px; }
.cosmo-block-single .cosmo-article-bottom { margin-block: 50px 62px !important; }

/* v1.6 — compact magazine-style article header. Only single posts are affected. */
body.cosmo-design-active .cosmo-single .cosmo-single-hero.cosmo-shell {
  width: 100%;
  max-width: 1120px;
  padding: 52px clamp(20px, 3vw, 32px) 20px;
  margin-inline: auto;
}
.cosmo-single .cosmo-single-hero::after { display: none; }
.cosmo-single .cosmo-single-hero .cosmo-breadcrumb {
  margin: 0 0 34px !important;
  font-size: 14px;
}
.cosmo-single .cosmo-single-hero .cosmo-eyebrow {
  margin-bottom: 13px !important;
}
.cosmo-single .cosmo-single-hero h1 {
  max-width: 900px;
  margin: 0 0 17px;
  font-size: clamp(35px, 4.5vw, 59px);
  line-height: 1.15;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}
.cosmo-single .cosmo-article-lead {
  max-width: 790px;
  margin: 0 0 19px;
  color: #3b3350;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
}
.cosmo-single .cosmo-article-meta {
  margin: 20px 0 32px;
  font-size: 14px;
}
.cosmo-single .cosmo-article-figure {
  width: min(100%, 900px);
  margin: 0 0 35px;
}
.cosmo-single .cosmo-article-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  object-fit: cover;
  border-radius: 22px;
}
.cosmo-single .cosmo-article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  object-fit: cover;
  border-radius: 22px;
}

/* v1.8 — keep the user-edited block header readable on PHP-backed routes.
   The homepage already has the FSE layout context and is left untouched. */
.cosmo-php-header { width: 100%; min-width: 0; }
.cosmo-php-header .wp-block-site-title {
  max-width: min(100%, 510px);
  overflow-wrap: normal;
  white-space: normal;
}
.cosmo-php-header .wp-block-navigation { min-width: 0; }
@media (max-width: 900px) {
  .cosmo-php-header .wp-block-site-title { max-width: min(100%, 440px); }
}

/* v1.9 — desktop menu fallback for both PHP and saved FSE subpage templates.
   Versions 1.7–1.8 load the correct editable header, but some templates still
   render its Navigation block in the collapsed/mobile state on wide screens.
   This applies only to interior pages and only above the desktop breakpoint.
   Below that breakpoint WordPress keeps full control of the mobile menu. */
@media (min-width: 1150px) {
  body.cosmo-design-active.cosmo-interior-nav .wp-block-site-title {
    max-width: min(100%, 510px);
    white-space: normal;
    overflow-wrap: normal;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-navigation {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    z-index: auto !important;
    padding: 0 !important;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-navigation__responsive-container-content {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 19px;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-navigation__container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 19px;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-navigation-item {
    list-style: none;
    margin: 0;
  }
}

/* v2.0 — preserve the homepage's two-column header composition throughout
   the site even when a PHP template misses the editor's flex layout context.
   Classes are attached to the closest common ancestor of Site Title and the
   Navigation block, without changing the user's saved blocks or menu data. */
@media (min-width: 1150px) {
  body.cosmo-design-active.cosmo-interior-nav .cosmo-unified-header-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    column-gap: clamp(22px, 3vw, 52px) !important;
    row-gap: 12px !important;
    width: 100%;
    min-width: 0;
  }
  body.cosmo-design-active.cosmo-interior-nav .cosmo-unified-header-brand {
    flex: 0 1 535px !important;
    width: auto;
    max-width: 535px;
    min-width: 0;
  }
  body.cosmo-design-active.cosmo-interior-nav .cosmo-unified-header-navigation {
    display: flex !important;
    flex: 1 1 0% !important;
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
  }
  body.cosmo-design-active.cosmo-interior-nav .wp-block-site-title,
  body.cosmo-design-active.cosmo-interior-nav .wp-block-site-title a {
    display: block;
    max-width: 510px;
    white-space: normal !important;
    overflow-wrap: normal;
    line-height: 1.1;
  }
}
.cosmo-single .cosmo-reading-layout.cosmo-shell {
  width: 100%;
  max-width: 1120px;
  padding-inline: clamp(20px, 3vw, 32px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 4vw, 55px);
}
.cosmo-single .cosmo-reading-side { top: 110px; }
@media (max-width: 900px) {
  .cosmo-single .cosmo-reading-layout.cosmo-shell { grid-template-columns: minmax(0, 1fr); }
  .cosmo-single .cosmo-reading-side { position: static; }
}
@media (max-width: 600px) {
  body.cosmo-design-active .cosmo-single .cosmo-single-hero.cosmo-shell { padding-top: 30px; }
  .cosmo-single .cosmo-single-hero .cosmo-breadcrumb { margin-bottom: 23px !important; }
  .cosmo-single .cosmo-single-hero h1 { font-size: clamp(32px, 8.4vw, 43px); }
  .cosmo-single .cosmo-article-meta { gap: 8px; }
  .cosmo-single .cosmo-article-image { border-radius: 15px; }
}
@media (max-width: 900px) {
  .cosmo-editable-home .cosmo-section-top { margin-bottom: 23px; }
  .cosmo-block-inner-page .cosmo-inner-hero-grid { min-height: 240px; }
}
@media (max-width: 620px) {
  .cosmo-editable-home .cosmo-section-top { align-items: flex-start; }
  .cosmo-editable-home .cosmo-audience > .wp-block-heading { margin-bottom: 18px; }
  .cosmo-block-inner-page .cosmo-inner-hero h1 { font-size: clamp(34px,9vw,48px); }
}

/* v1.5 — reliable PHP blog route, refreshed editorial magazine layout. */
.cosmo-blog .cosmo-blog-hero { background: linear-gradient(112deg, #f5f0ff 3%, #f9f6ff 67%, #e7f7f4 100%); padding-block: 47px 65px; }
.cosmo-blog .cosmo-blog-hero h1 { font-size: clamp(53px, 7vw, 94px); }
.cosmo-blog .cosmo-filterbar { margin-top: 28px; margin-bottom: 44px; padding: 16px 19px; }
.cosmo-blog .cosmo-blog-listing { margin-top: 32px; }
.cosmo-blog .cosmo-blog-listing > .cosmo-section-top { align-items: end; margin-bottom: 22px; }
.cosmo-blog .cosmo-blog-listing .cosmo-section-top h2 { margin: 0; }
.cosmo-blog .cosmo-blog-listing .cosmo-section-top p { margin: 0; max-width: 310px; font-size: 15px; }
.cosmo-blog .cosmo-featured-story { display: grid; grid-template-columns: 1.2fr .95fr; min-height: 365px; margin-bottom: 40px; overflow: hidden; border-radius: 25px; border: 1px solid var(--cosmo-line); background: #fff; box-shadow: var(--cosmo-shadow); }
.cosmo-blog .cosmo-featured-story-photo { display: block; height: 100%; min-height: 365px; background: linear-gradient(145deg, #4b3271, #a5dad3); overflow: hidden; }
.cosmo-blog .cosmo-featured-story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cosmo-blog .cosmo-featured-image-placeholder { display: grid; place-items: center; color: #fff; font-size: clamp(60px, 12vw, 150px); width: 100%; height: 100%; min-height: 360px; }
.cosmo-blog .cosmo-featured-story-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(25px,3.3vw,53px); }
.cosmo-blog .cosmo-featured-story-content h2 { margin: 20px 0 15px; font-size: clamp(29px,2.8vw,43px); line-height: 1.15; }
.cosmo-blog .cosmo-featured-story-content h2 a { color: var(--cosmo-purple); }
.cosmo-blog .cosmo-featured-story-content h2 a:hover { color: var(--cosmo-teal); }
.cosmo-blog .cosmo-featured-story-content > p:not(.cosmo-eyebrow) { font-size: 16px; line-height: 1.65; margin: 0 0 24px; }
.cosmo-blog .cosmo-featured-story-content .cosmo-btn { margin-top: auto; }
.cosmo-blog .cosmo-post-grid-archive { gap: 26px; }
.cosmo-blog .cosmo-post-card { min-height: 390px; }
.cosmo-blog .cosmo-post-card-content .cosmo-inline-link { margin-top: auto; }
.cosmo-blog .cosmo-post-card .cosmo-post-card-picture { height: 210px; }
.cosmo-blog .cosmo-post-card .cosmo-post-card-content { padding: 25px; }
.cosmo-blog .cosmo-pagination { margin-block: 38px 58px; }
.cosmo-blog .cosmo-cta { margin-bottom: 66px; }
@media (max-width: 900px) {
  .cosmo-blog .cosmo-featured-story { grid-template-columns: 1fr; }
  .cosmo-blog .cosmo-featured-story-photo { height: 290px; min-height: 290px; }
  .cosmo-blog .cosmo-featured-story-content { padding: 28px; }
  .cosmo-blog .cosmo-featured-story-content .cosmo-btn { margin-top: 10px; }
}
@media (max-width: 620px) {
  .cosmo-blog .cosmo-featured-story-photo { height: 220px; min-height: 220px; }
  .cosmo-blog .cosmo-blog-listing > .cosmo-section-top { align-items: flex-start; }
  .cosmo-blog .cosmo-featured-story-content h2 { font-size: 30px; }
  .cosmo-blog .cosmo-post-card { min-height: 0; }
}
