/* Shared editorial compositions for the remaining first-launch content pages. */
:is(.ch-site,.editor-styles-wrapper) .ch-content-section{padding-block:var(--space-16);background:var(--white)}
:is(.ch-site,.editor-styles-wrapper) .ch-content-section.is-compact{padding-top:0}
:is(.ch-site,.editor-styles-wrapper) .ch-content-shell{width:calc(100% - 2 * var(--space-8));max-width:var(--container-wide);margin-inline:auto}
:is(.ch-site,.editor-styles-wrapper) .ch-content-heading{display:grid;gap:var(--space-4);max-width:var(--container-reading);margin-bottom:var(--space-8)}
:is(.ch-site,.editor-styles-wrapper) .ch-content-heading h2{font-size:var(--type-h3);line-height:var(--leading-h3)}
:is(.ch-site,.editor-styles-wrapper) .ch-content-heading>p,:is(.ch-site,.editor-styles-wrapper) .ch-editorial-copy>p{font-size:var(--type-body);line-height:var(--leading-body);color:var(--text-muted);text-wrap:pretty}
:is(.ch-site,.editor-styles-wrapper) .ch-editorial-copy{display:grid;gap:var(--space-4);max-width:var(--container-reading)}
:is(.ch-site,.editor-styles-wrapper) .ch-editorial-split{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:var(--space-16);align-items:start}
:is(.ch-site,.editor-styles-wrapper) .ch-editorial-split h2{font-size:var(--type-h3);line-height:var(--leading-h3)}
:is(.ch-site,.editor-styles-wrapper) .ch-section-kicker{font-size:var(--type-caption);font-weight:var(--weight-medium);line-height:var(--leading-ui);color:var(--accent-text)}

/* One contact/map component, reused on Contacts and Patients. */
:is(.ch-site,.editor-styles-wrapper) .ch-contact-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);grid-template-areas:'map contact';min-height:520px;overflow:hidden;background:var(--wp--preset--gradient--surface);border-radius:0 var(--space-12) 0 var(--radius-graphic)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-panel{grid-area:contact;display:flex;flex-direction:column;justify-content:center;gap:var(--space-6);padding:var(--space-12)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-panel h2{font-size:var(--type-h3);line-height:var(--leading-h3)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-panel>p{font-size:var(--type-body);line-height:var(--leading-body);color:var(--text-muted);text-wrap:pretty}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-list{display:grid;gap:var(--space-6)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-item{display:grid;gap:var(--space-1);padding-top:var(--space-4);border-top:1px solid var(--line)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-label{font-size:var(--type-caption);color:var(--text-muted)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-value{font-size:var(--type-body);line-height:var(--leading-compact);color:var(--ink)}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-value a{text-decoration:none}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-value a:hover{text-decoration:underline;text-underline-offset:4px}
:is(.ch-site,.editor-styles-wrapper) .ch-contact-actions{margin-top:var(--space-2)}
:is(.ch-site,.editor-styles-wrapper) .ch-location-map{position:relative;grid-area:map;min-width:0;min-height:520px;overflow:hidden;background:var(--surface)}
:is(.ch-site,.editor-styles-wrapper) .ch-location-map-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
:is(.ch-site,.editor-styles-wrapper) .ch-location-map-pin{position:absolute;top:50%;left:50%;width:26px;height:26px;border:5px solid var(--white);border-radius:50%;background:var(--brand-coral);box-shadow:0 0 0 8px rgb(223 85 94 / 18%),var(--shadow-soft);transform:translate(-50%,-50%)}
:is(.ch-site,.editor-styles-wrapper) .ch-location-map-attribution{position:absolute;left:var(--space-2);bottom:var(--space-2);padding:2px var(--space-2);border-radius:var(--radius-control);background:rgb(255 255 255 / 88%);color:var(--text-muted);font-size:11px;line-height:1.4;text-decoration:none}
:is(.ch-site,.editor-styles-wrapper) .ch-location-map-action{position:absolute;right:var(--space-6);bottom:var(--space-6);background:rgb(255 255 255 / 94%)}

/* Patient education and the existing Event Card renderer. */
:is(.ch-site,.editor-styles-wrapper) .ch-memory-school{background:var(--paper)}
:is(.ch-site,.editor-styles-wrapper) .ch-memory-introduction{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:var(--space-12);align-items:center}
:is(.ch-site,.editor-styles-wrapper) .ch-memory-introduction .ch-content-heading{margin-bottom:0}
:is(.ch-site,.editor-styles-wrapper) .ch-memory-illustration{margin:0;overflow:hidden;border-radius:0 var(--space-12) 0 var(--radius-graphic)}
:is(.ch-site,.editor-styles-wrapper) .ch-memory-illustration img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
:is(.ch-site,.editor-styles-wrapper) .ch-program-facts{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-top:var(--space-5)}
:is(.ch-site,.editor-styles-wrapper) .ch-program-facts p{font-size:var(--type-caption);line-height:var(--leading-compact);color:var(--text-muted)}
:is(.ch-site,.editor-styles-wrapper) .ch-program-facts p+p{padding-left:var(--space-4);border-left:1px solid var(--input-border)}
:is(.ch-site,.editor-styles-wrapper) .ch-patient-events{margin-top:var(--space-12)}
:is(.ch-site,.editor-styles-wrapper) .ch-patient-events-label{margin-bottom:var(--space-4);font-size:var(--type-body);color:var(--text-muted)}
:is(.ch-site,.editor-styles-wrapper) .ch-patient-events-list{display:grid;gap:var(--space-6)}
:is(.ch-site,.editor-styles-wrapper) .ch-patient-events-empty{padding:var(--space-6);background:var(--white);border-radius:var(--radius-control);font-size:var(--type-body);color:var(--text-muted)}
:is(.ch-site,.editor-styles-wrapper) .ch-section-actions{margin-top:var(--space-8)}

/* A restrained shared typographic expression of interdisciplinarity. */
:is(.ch-site,.editor-styles-wrapper) .ch-discipline-list{display:flex;flex-wrap:wrap;gap:var(--space-3) var(--space-6);margin-top:var(--space-8)}
:is(.ch-site,.editor-styles-wrapper) .ch-discipline-name{display:flex;align-items:center;gap:var(--space-3);font-family:var(--font-heading);font-size:var(--type-h5);font-weight:var(--weight-medium);line-height:var(--leading-ui);letter-spacing:var(--tracking-heading)}
:is(.ch-site,.editor-styles-wrapper) .ch-discipline-name:not(:last-child)::after{content:'';width:6px;height:6px;border-radius:50%;background:var(--brand-coral)}

/* Partner page: editorial rows and one noticeable principles surface, not card variants. */
:is(.ch-site,.editor-styles-wrapper) .ch-partner-program .ch-content-heading{max-width:none}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-program .ec-calendar{margin-bottom:0}
:is(.ch-site,.editor-styles-wrapper) .ch-opportunity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--space-12)}
:is(.ch-site,.editor-styles-wrapper) .ch-opportunity{display:grid;grid-template-columns:var(--space-6) minmax(0,1fr);gap:var(--space-4);align-content:start;padding:var(--space-6) 0;border-top:1px solid var(--line)}
:is(.ch-site,.editor-styles-wrapper) .ch-opportunity:last-child:nth-child(odd){grid-column:1 / -1}
:is(.ch-site,.editor-styles-wrapper) .ch-opportunity-copy{max-width:var(--container-reading)}
:is(.ch-site,.editor-styles-wrapper) .ch-opportunity h3{font-family:var(--font-body);font-size:var(--type-h6);font-weight:var(--weight-medium);line-height:var(--leading-ui);letter-spacing:var(--tracking-normal)}
:is(.ch-site,.editor-styles-wrapper) .ch-opportunity p{margin-top:var(--space-3);font-size:var(--type-body);line-height:var(--leading-body);color:var(--text-muted);text-wrap:pretty}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-panel{position:relative;isolation:isolate;overflow:hidden;padding:var(--space-12);color:var(--white);background:var(--wp--preset--gradient--footer);border-radius:0 var(--space-12) 0 var(--radius-graphic)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-panel :is(h2,h3){color:var(--white)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-panel .ch-content-heading h2{font-size:var(--type-h2);line-height:var(--leading-h2)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-panel .ch-content-heading>p{color:var(--line)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-panel .ch-content-heading>.ch-section-kicker{color:var(--brand-coral)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-panel .ch-content-heading>p:last-child{font-size:var(--type-h6);line-height:var(--leading-compact);color:var(--paper)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-grid{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6);margin-top:var(--space-8)}
:is(.ch-site,.editor-styles-wrapper) .ch-principles-grid .ch-interdisciplinary-flow :is(path,circle){vector-effect:non-scaling-stroke}
:is(.ch-site,.editor-styles-wrapper) .ch-principle{padding:var(--space-8);background:color-mix(in srgb,var(--ink) 92%,var(--white));border:1px solid var(--wp--custom--color--service-line);border-radius:var(--radius-control);box-shadow:var(--shadow-soft)}
:is(.ch-site,.editor-styles-wrapper) .ch-principle-heading{display:grid;grid-template-columns:var(--space-8) minmax(0,1fr);gap:var(--space-4);align-items:start}
:is(.ch-site,.editor-styles-wrapper) .ch-principle-heading .ch-activity-icon{width:var(--space-8);height:var(--space-8)}
:is(.ch-site,.editor-styles-wrapper) .ch-principle h3{font-family:var(--font-heading);font-size:var(--type-compact);font-weight:var(--weight-medium);line-height:var(--leading-ui);letter-spacing:var(--tracking-heading);text-wrap:balance}
:is(.ch-site,.editor-styles-wrapper) .ch-principle p{margin-top:var(--space-4);font-size:var(--type-body);line-height:var(--leading-body);color:var(--paper);text-wrap:pretty}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:var(--space-16);align-items:center;padding:var(--space-12);background:var(--paper);border-radius:var(--radius-surface)}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-person{display:grid;gap:var(--space-2);padding-left:var(--space-6);border-left:2px solid var(--brand-coral)}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-name{font-size:var(--type-h6);font-weight:var(--weight-medium);color:var(--ink)}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-role{font-size:var(--type-caption);color:var(--text-muted)}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-links{display:grid;gap:var(--space-2);margin-top:var(--space-6)}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-links a{text-decoration:none}
:is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-links a:hover{text-decoration:underline;text-underline-offset:4px}

@container cogni (max-width:940px){
  :is(.ch-site,.editor-styles-wrapper) .ch-editorial-split{gap:var(--space-8)}
  :is(.ch-site,.editor-styles-wrapper) .ch-contact-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.75fr)}
  :is(.ch-site,.editor-styles-wrapper) .ch-contact-panel{padding:var(--space-8)}
  :is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-inner{gap:var(--space-8)}
}
@container cogni (max-width:780px){
  :is(.ch-site,.editor-styles-wrapper) .ch-content-section{padding-block:var(--space-12)}
  :is(.ch-site,.editor-styles-wrapper) .ch-content-section.is-compact{padding-top:0}
  :is(.ch-site,.editor-styles-wrapper) .ch-content-shell{width:calc(100% - 2 * var(--space-6))}
  :is(.ch-site,.editor-styles-wrapper) .ch-editorial-split{grid-template-columns:1fr;gap:var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-memory-introduction{grid-template-columns:1fr;gap:var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-contact-layout{grid-template-columns:1fr;grid-template-areas:'contact' 'map';min-height:0}
  :is(.ch-site,.editor-styles-wrapper) .ch-location-map{min-height:400px}
  :is(.ch-site,.editor-styles-wrapper) .ch-opportunity-list{grid-template-columns:1fr}
  :is(.ch-site,.editor-styles-wrapper) .ch-principles-panel{padding:var(--space-8)}
  :is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-inner{grid-template-columns:1fr;padding:var(--space-8)}
}
@container cogni (max-width:580px){
  :is(.ch-site,.editor-styles-wrapper) .ch-content-heading{gap:var(--space-3);margin-bottom:var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-content-heading h2,:is(.ch-site,.editor-styles-wrapper) .ch-editorial-split h2,:is(.ch-site,.editor-styles-wrapper) .ch-contact-panel h2{font-size:var(--type-h5);line-height:var(--leading-h4)}
  :is(.ch-site,.editor-styles-wrapper) .ch-contact-panel{padding:var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-location-map{min-height:320px}
  :is(.ch-site,.editor-styles-wrapper) .ch-location-map-action{right:var(--space-4);bottom:var(--space-6);max-width:calc(100% - 2 * var(--space-8));white-space:normal}
  :is(.ch-site,.editor-styles-wrapper) .ch-program-facts{display:grid;gap:var(--space-2)}
  :is(.ch-site,.editor-styles-wrapper) .ch-program-facts p+p{padding-left:0;border-left:0}
  :is(.ch-site,.editor-styles-wrapper) .ch-discipline-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
  :is(.ch-site,.editor-styles-wrapper) .ch-discipline-name{display:block;font-family:var(--font-body);font-size:var(--type-body)}
  :is(.ch-site,.editor-styles-wrapper) .ch-discipline-name::after{display:none}
  :is(.ch-site,.editor-styles-wrapper) .ch-opportunity{grid-template-columns:var(--space-6) minmax(0,1fr);gap:var(--space-3)}
  :is(.ch-site,.editor-styles-wrapper) .ch-principles-panel{padding:var(--space-8) var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-principles-panel .ch-content-heading h2{font-size:var(--type-h3);line-height:var(--leading-h3)}
  :is(.ch-site,.editor-styles-wrapper) .ch-principles-grid{grid-template-columns:1fr;gap:var(--space-4);margin-top:var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-principle{padding:var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-principle-heading{grid-template-columns:1fr;gap:var(--space-3)}
  :is(.ch-site,.editor-styles-wrapper) .ch-principle h3{font-size:var(--type-h5);line-height:var(--leading-h4)}
  :is(.ch-site,.editor-styles-wrapper) .ch-partner-contact-inner{padding:var(--space-8) var(--space-6)}
  :is(.ch-site,.editor-styles-wrapper) .ch-section-actions .wp-block-buttons{display:grid;grid-template-columns:1fr}
  :is(.ch-site,.editor-styles-wrapper) .ch-section-actions .wp-block-button,:is(.ch-site,.editor-styles-wrapper) .ch-section-actions .wp-block-button__link{width:100%}
}
