/* Shared front-end/editor refinement. 8/12/16/24/32/48; section 64/80/100. */
:is(.hc-site,.editor-styles-wrapper){--refine-small:12px;--refine-copy:16px;--refine-card:24px;--refine-group:32px;--refine-large:48px}
/* WP's :root flow margins otherwise erase the source component spacing. */
:is(.hc-site,.editor-styles-wrapper) .section-heading{margin-block:0 32px;gap:24px}
:is(.hc-site,.editor-styles-wrapper) .section-heading h2{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .section-heading .hc-link-wrap{margin:0}
:is(.hc-site,.editor-styles-wrapper) .section-heading+p{margin-block:0 24px}
:is(.hc-site,.editor-styles-wrapper) .section-heading+.small{margin-block:0 24px}
:is(.hc-site,.editor-styles-wrapper) :is(h2,h3,h4)+p{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) p+p{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .eyebrow{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .hero-actions{gap:16px;margin-top:32px}
:is(.hc-site,.editor-styles-wrapper) :is(.inline-links,.health-filter-actions,.health-card-links){gap:16px}
:is(.hc-site,.editor-styles-wrapper) :is(.inline-links,.hero-actions)+:is(h2,h3,h4,p){margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) :is(p,.small,.muted)+:is(.hero-actions,.inline-links){margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .card-body{padding:24px}
:is(.hc-site,.editor-styles-wrapper) .card-body h3{margin-block:12px 16px}
:is(.hc-site,.editor-styles-wrapper) .card-body .text-link{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .card-facts{gap:12px 24px;margin-top:16px;line-height:1.8}
:is(.hc-site,.editor-styles-wrapper) :is(.meta-line,.health-pills){gap:12px}
:is(.hc-site,.editor-styles-wrapper) :is(.stack,.home-programs .stack){gap:24px}
:is(.hc-site,.editor-styles-wrapper) .stack-sm{gap:16px}
:is(.hc-site,.editor-styles-wrapper) .icon-card h3{margin-bottom:16px}
:is(.hc-site,.editor-styles-wrapper) .hc-definition-list{gap:12px 16px;margin-block:16px 24px}
:is(.hc-site,.editor-styles-wrapper) .hc-definition-list p{margin:0}
:is(.hc-site,.editor-styles-wrapper) .field{gap:12px}
:is(.hc-site,.editor-styles-wrapper) :is(.form-grid,.field-row){gap:24px}
:is(.hc-site,.editor-styles-wrapper) :is(input,select,textarea){max-width:100%}
:is(.hc-site,.editor-styles-wrapper) .field :is(input,select,textarea){padding:12px 16px;min-height:50px}
:is(.hc-site,.editor-styles-wrapper) .field input:is([type=checkbox],[type=radio]){min-height:18px;padding:0}
:is(.hc-site,.editor-styles-wrapper) :is(.button,.wp-block-button__link){white-space:normal;height:auto;min-height:50px}
:is(.hc-site,.editor-styles-wrapper) .check-list{gap:16px}
:is(.hc-site,.editor-styles-wrapper) :is(th,td){padding:16px 24px}
:is(.hc-site,.editor-styles-wrapper) .hc-inline-icon{object-fit:contain}
:is(.hc-site,.editor-styles-wrapper) .photo img{object-position:center}
/* Show the complete saved crop; no further portrait or object cropping. */
:is(.hc-site,.editor-styles-wrapper) :is(.health-image,.health-photo,.hc-featured-cover) img{object-fit:contain;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo img{min-height:0;object-fit:contain}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo{display:flex;align-items:center}
:is(.hc-site,.editor-styles-wrapper) .home-space>.hc-photo img{object-fit:contain}
:is(.hc-site,.editor-styles-wrapper) .ab-space-gallery>.card>.photo{height:auto;aspect-ratio:auto}
:is(.hc-site,.editor-styles-wrapper) .ab-space-gallery>.card>.photo img{height:auto;object-fit:contain}
:is(.hc-site,.editor-styles-wrapper) .photo.hc-photo img{transform:none}
:is(.hc-site,.editor-styles-wrapper) .health-photo .wp-element-caption{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .health-reading-meta{margin-top:24px;gap:12px 24px}
:is(.hc-site,.editor-styles-wrapper) .health-reading-authors{margin-top:16px;gap:12px 24px}
:is(.hc-site,.editor-styles-wrapper) .health-visit-card dl>div{padding-block:16px;gap:16px}
:is(.hc-site,.editor-styles-wrapper) .health-references li{overflow-wrap:anywhere}
:is(.hc-site,.editor-styles-wrapper) .health-sample-note{gap:12px;padding:16px;margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .health-sample-note p{margin:0}
:is(.hc-site,.editor-styles-wrapper) .health-filter-bar{gap:24px}
:is(.hc-site,.editor-styles-wrapper) .health-clinician-card{gap:24px}
:is(.hc-site,.editor-styles-wrapper) .health-article-toc nav a{padding-block:16px}
:is(.hc-site,.editor-styles-wrapper) .health-article-section{margin-top:64px}
:is(.hc-site,.editor-styles-wrapper) .health-article-section h2{margin-bottom:24px}
:is(.hc-site,.editor-styles-wrapper) .ab-story-tabs{margin-block:24px}
:is(.hc-site,.editor-styles-wrapper) .ab-region-grid{gap:24px}
:is(.hc-site,.editor-styles-wrapper) .home-search{margin-block:32px 0;gap:24px}
:is(.hc-site,.editor-styles-wrapper) .home-search label{row-gap:8px}
:is(.hc-site,.editor-styles-wrapper) .home-programs .program-card.row .card-body{padding:24px}
:is(.hc-site,.editor-styles-wrapper) .home-space-copy{padding:32px}
:is(.hc-site,.editor-styles-wrapper) .home-space .org-card.row .card-body{padding:24px}
:is(.hc-site,.editor-styles-wrapper) .notice-mini{padding-block:16px;gap:16px}
:is(.hc-site,.editor-styles-wrapper) .footer-main{gap:48px}
:is(.hc-site,.editor-styles-wrapper) .footer-bottom{gap:24px}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .section-heading{margin-bottom:32px}
 :is(.hc-site,.editor-styles-wrapper) .section-heading>.hc-link-wrap{margin-top:24px}
 :is(.hc-site,.editor-styles-wrapper) .section-heading .text-link{margin-top:0}
 :is(.hc-site,.editor-styles-wrapper) :is(.hero-actions,.inline-links){gap:16px}
 :is(.hc-site,.editor-styles-wrapper) :is(.home-programs .program-card.row,.program-card.row,.org-card.row){grid-template-columns:1fr}
 :is(.hc-site,.editor-styles-wrapper) :is(.program-card.row,.org-card.row) .photo{min-height:0;height:auto;aspect-ratio:auto;border-radius:7px 7px 0 0}
 :is(.hc-site,.editor-styles-wrapper) :is(.program-card.row,.org-card.row) .photo img{height:auto;object-fit:cover}
 :is(.hc-site,.editor-styles-wrapper) .home-space>.hc-photo{height:auto;aspect-ratio:auto}
 :is(.hc-site,.editor-styles-wrapper) .home-space>.hc-photo img{height:auto;aspect-ratio:auto 1.6}
 :is(.hc-site,.editor-styles-wrapper) .health-filter-bar{grid-template-columns:1fr;padding:24px}
 :is(.hc-site,.editor-styles-wrapper) .health-filter-bar>*{grid-column:1}
 :is(.hc-site,.editor-styles-wrapper) .health-clinician-card{grid-template-columns:100px minmax(0,1fr);padding:24px;gap:16px}
 :is(.hc-site,.editor-styles-wrapper) .health-clinician-card .health-image{aspect-ratio:auto}
 :is(.hc-site,.editor-styles-wrapper) .health-visit-card dl>div{grid-template-columns:1fr;gap:8px}
 :is(.hc-site,.editor-styles-wrapper) .health-article-section{margin-top:48px}
 :is(.hc-site,.editor-styles-wrapper) .ab-calendar-controls>.field-row{grid-template-columns:1fr;gap:24px}
 :is(.hc-site,.editor-styles-wrapper) .footer-main{gap:32px}
}
:is(.hc-site,.editor-styles-wrapper) .hc-link-wrap>a.icon-card:has(>span>small){display:flex;align-items:center;gap:12px}
:is(.hc-site,.editor-styles-wrapper) .icon-card>span:has(>small){display:flex;flex-direction:column;gap:8px}
:is(.hc-site,.editor-styles-wrapper) .hc-link-wrap>a.icon-card>img:last-child{margin-left:auto}
/* Give both photographs their own box instead of overlaying their subjects. */
:is(.hc-site,.editor-styles-wrapper) .ab-inset-photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.4fr);align-items:end;gap:24px;padding:0}
:is(.hc-site,.editor-styles-wrapper) .ab-inset-photo>.ab-inset{position:static;width:auto;border:0;inset:auto}
/* Keep the top link in document flow so it never covers text or form controls. */
:is(.hc-site,.editor-styles-wrapper) .back-top{position:static;margin:24px var(--gutter) 24px auto}
/* Photographs fill the component slot. */
:is(.hc-site,.editor-styles-wrapper) .photo img{object-fit:cover}
/* Round 2: only layout children lose paragraph flow margins. Prose keeps 16px. */
:is(.hc-site,.editor-styles-wrapper) :is(.grid-2,.grid-3,.grid-4,.split-60,.split-40,.editorial-grid,.inline-links,.hero-actions,.ab-region-grid,.ab-mini-days,.calendar-grid,.ab-category-nav,.cd-stages,.cd-centered-actions,.cd-case-nav,.cd-digital-topics,.utils-category-links,.utils-policy-nav,.cd-hero-tags,.cd-choice-grid,.cd-filter-tabs,.cd-topic-tabs,.cd-guide-nav,.cd-prep-categories,.cd-resource-links article,.radio-group,.chips,.tabs,.breadcrumb,.meta-line,.health-reading-meta,.health-reading-authors,.health-pills,.field-icons,.cd-digital-topics,.utils-date-group>div:first-child)>*{margin-block-start:0}
:is(.hc-site,.editor-styles-wrapper) :is(h1,h2,h3,h4,h5,h6,.button,.wp-block-button__link,.badge,th,.text-link){word-break:keep-all;overflow-wrap:normal}
:is(.hc-site,.editor-styles-wrapper) .cd-heading-with-control>.section-heading{flex:1 1 auto;min-width:0}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>:not(.hc-icon-wrap):not(.icon){grid-column:2;min-width:0}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>.hc-icon-wrap{grid-column:1;grid-row:1/5}
:is(.hc-site,.editor-styles-wrapper) .section-heading:has(>.table-wrap){display:block}
:is(.hc-site,.editor-styles-wrapper) .grid-2:has(>.section-heading>.table-wrap){grid-template-columns:minmax(0,1fr);gap:32px}
:is(.hc-site,.editor-styles-wrapper) .grid-2:has(>.section-heading>.table-wrap)>.photo{max-width:760px;width:100%;margin-inline:auto}
:is(.hc-site,.editor-styles-wrapper) .health-detail-heading{display:block}
:is(.hc-site,.editor-styles-wrapper) .health-detail-heading>.health-place-label{margin-top:24px}
/* Buttons are display:contents wrappers on the public site. Space their visible link. */
:is(.hc-site,.editor-styles-wrapper) :is(p,ul,ol,.wp-block-group,.hc-content-list,.pagination,.faq,.icon-card,.grid-2,.grid-3,.grid-4)+.hc-buttons>.wp-block-button__link,
:is(.hc-site,.editor-styles-wrapper) :is(p,ul,ol)+:is(.button,.text-link,.wp-block-button),
:is(.hc-site,.editor-styles-wrapper) .hc-buttons:has(>.wp-block-button)+.hc-buttons>.wp-block-button__link{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .photo+:is(p,h2,h3,h4,.hc-link-wrap),
:is(.hc-site,.editor-styles-wrapper) .photo figcaption{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) :is(.pagination,.utils-stepper,.cd-stages,.grid-2,.grid-3,.grid-4)+:is(.faq,.surface,.white-panel,.notice,.photo,.wp-block-group){margin-top:32px}
:is(.hc-site,.editor-styles-wrapper) .section-heading+.hc-content-list{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .page-h00>.home-bottom-photo{margin-top:32px!important}
:is(.hc-site,.editor-styles-wrapper) .ab-category-nav{margin-bottom:24px}
:is(.hc-site,.editor-styles-wrapper) .ab-category-nav .hc-link-wrap>a{display:flex;align-items:center;justify-content:center;gap:12px;border-bottom:1px solid var(--line);padding:16px 8px}
:is(.hc-site,.editor-styles-wrapper) .photo img,
:is(.hc-site,.editor-styles-wrapper) :is(.health-image,.health-photo) img{object-fit:cover;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo{height:auto;align-self:center;display:block}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo img{height:auto;object-fit:cover}
:is(.hc-site,.editor-styles-wrapper) .home-space>.hc-photo img{height:100%;object-fit:cover}
:is(.hc-site,.editor-styles-wrapper) .contact-form-layout>.photo{height:auto;align-self:start}
:is(.hc-site,.editor-styles-wrapper) .contact-form-layout>.photo img{height:auto}
:is(.hc-site,.editor-styles-wrapper) .detail-cover{margin-top:32px}
:is(.hc-site,.editor-styles-wrapper) .hc-native-hero{width:100%;max-width:min(100%,var(--kc-native-max,1194px));height:auto;min-height:0;aspect-ratio:auto!important;margin-inline:auto;align-self:center;background:transparent}
:is(.hc-site,.editor-styles-wrapper) .hc-native-hero img{display:block;width:100%;height:auto!important;min-height:0;aspect-ratio:auto!important;object-fit:cover}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero{gap:32px;align-items:center}
:is(.hc-site,.editor-styles-wrapper) :is(.hc-share,.hc-action.text-link){color:#3f5876;background:transparent}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-filter .grid-3 .button{padding-inline:16px}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .ab-category-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 :is(.hc-site,.editor-styles-wrapper) .ab-category-nav .hc-link-wrap>a{white-space:nowrap;gap:8px;padding-inline:0}
 :is(.hc-site,.editor-styles-wrapper) .calendar-event{display:grid;grid-template-columns:1fr;gap:16px;align-items:start;padding-block:24px}
 :is(.hc-site,.editor-styles-wrapper) .calendar-event>*{grid-column:1;min-width:0}
 :is(.hc-site,.editor-styles-wrapper) .calendar-event>.photo{width:100%;height:auto;aspect-ratio:auto;max-height:none}
 :is(.hc-site,.editor-styles-wrapper) .calendar-event>.photo img{height:auto}
 :is(.hc-site,.editor-styles-wrapper) .calendar-event>.icon{display:none}
 :is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>:not(.hc-icon-wrap):not(.icon){grid-column:1/-1}
 :is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>.hc-icon-wrap{grid-row:auto;margin-bottom:16px}
 :is(.hc-site,.editor-styles-wrapper) .ab-region-grid:has(.icon-card){grid-template-columns:1fr}
 :is(.hc-site,.editor-styles-wrapper) .ab-org-end>.inline-links{grid-column:1/-1}
 :is(.hc-site,.editor-styles-wrapper) .health-detail-heading h1{max-width:none}
}
/* Keep the approved street-photo slot even when its unobstructed source is small. */
:is(.hc-site,.editor-styles-wrapper) #kc-e00-s08 .photo{max-width:none;width:100%;justify-self:stretch;aspect-ratio:2.8}
:is(.hc-site,.editor-styles-wrapper) #kc-e00-s08 .photo img{position:absolute;inset:0;width:100%;height:100%!important;aspect-ratio:auto;object-fit:cover;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .ab-mini-month>*{margin-block-start:0}
:is(.hc-site,.editor-styles-wrapper) :is(h2,h3,h4)+.check-list{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero{grid-template-columns:fit-content(44%) minmax(0,1fr);gap:48px;max-width:1440px;margin-inline:auto;padding-inline:var(--gutter)}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.hc-native-hero{width:var(--kc-native-max);max-width:100%}
:is(.hc-site,.editor-styles-wrapper) .story-detail-copy{padding:32px 0}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .story-detail-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
 :is(.hc-site,.editor-styles-wrapper) .story-detail-copy{padding:0}
}
:is(.hc-site,.editor-styles-wrapper) :is(h2,h3)+:is(.hc-content-list,.grid-2,.grid-3,.grid-4){margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .page-a02 .tabs{margin-bottom:24px}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .page-a02 .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
 :is(.hc-site,.editor-styles-wrapper) .page-a02 .tabs>*{white-space:nowrap;min-width:0;justify-content:center}
}
:is(.hc-site,.editor-styles-wrapper) :is(.wp-block-group,.hc-content-list,.faq,.pagination)+:is(.inline-links,.ab-end-actions,.cd-centered-actions,.utils-notice){margin-top:32px}
:is(.hc-site,.editor-styles-wrapper) .health-article-tools{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .ab-search-hero .ab-search{margin-top:24px}
@media(max-width:700px){:is(.hc-site,.editor-styles-wrapper) .ab-calendar-month{padding-bottom:68px}}
:is(.hc-site,.editor-styles-wrapper) .cd-linked-resource>*{margin-block-start:0}
:is(.hc-site,.editor-styles-wrapper) .cd-session-list li>*{margin-block-start:0}
:is(.hc-site,.editor-styles-wrapper) :is(.related-strip,.cd-key-questions li,.cd-session-list li,.cd-decisions li,.cd-timeline li,.ab-reflection li,.health-focus-list li,.health-plain-steps li)>*{margin-block-start:0}
:is(.hc-site,.editor-styles-wrapper) .health-person-hero-section .wp-element-caption{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .wp-block-buttons:not(.hc-buttons){margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .health-person-hero-section figcaption{margin-top:16px}
/* The live clinician slot carries an inline caption margin. */
:is(.hc-site,.editor-styles-wrapper) .health-person-hero figcaption{margin-top:16px!important}
:is(.hc-site,.editor-styles-wrapper) .photo+:is(.cd-sequence-caption,.ab-icon-columns){margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .health-photo figcaption{margin-top:16px!important}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .cd-resource-table :is(a.button,.wp-block-button__link){margin-top:16px}
 :is(.hc-site,.editor-styles-wrapper) .page-a02 .tabs{row-gap:16px}
}
:is(.hc-site,.editor-styles-wrapper) .ab-search-hero+.section{margin-top:32px}
:is(.hc-site,.editor-styles-wrapper) .page-b02 .ab-panorama>.photo+.container{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .wp-block-buttons:not(.hc-buttons){gap:16px;flex-wrap:wrap}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero{grid-template-columns:minmax(0,min(44%,var(--kc-hero-max,570px))) minmax(0,1fr)}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .story-detail-hero{grid-template-columns:minmax(0,1fr)}
 :is(.hc-site,.editor-styles-wrapper) .side-nav>*{margin-block-start:0}
}
:is(.hc-site,.editor-styles-wrapper) .ab-region-grid{margin-top:24px}

/* Round 3: preserve Korean words throughout editable prose and table cells. */
:is(.hc-site,.editor-styles-wrapper) :is(p,li,td,th,label,summary,dt,dd,a,small,span){word-break:keep-all;overflow-wrap:normal}
:is(.hc-site,.editor-styles-wrapper) :is(.table-wrap,.wp-block-table){max-width:100%;min-width:0;overflow-x:auto}
:is(.hc-site,.editor-styles-wrapper) :is(td,th){min-width:120px;white-space:normal}
/* Match each photo wrapper to the bitmap, including sole-child outer wrappers. */
:is(.hc-site,.editor-styles-wrapper) .home-hero-media{align-self:center;height:auto;min-height:0;aspect-ratio:auto}
:is(.hc-site,.editor-styles-wrapper) .detail-cover{width:fit-content;max-width:100%;margin-inline:auto;background:transparent}
:is(.hc-site,.editor-styles-wrapper) .detail-cover .hc-native-hero{width:var(--kc-native-max);max-width:100%}
:is(.hc-site,.editor-styles-wrapper) .cd-doc-preview{width:fit-content;max-width:100%;padding:0;background:transparent;justify-self:center;margin-inline:auto}
:is(.hc-site,.editor-styles-wrapper) .cd-doc-preview .photo{width:fit-content;max-width:100%}
/* A link card needs a single painted box even when its label wraps. */
:is(.hc-site,.editor-styles-wrapper) .hc-link-wrap>a.icon-card{display:flex;align-items:center;gap:16px}
:is(.hc-site,.editor-styles-wrapper) .ab-region-grid .hc-link-wrap{display:flex;align-items:stretch;margin:0}
:is(.hc-site,.editor-styles-wrapper) .ab-region-link{display:flex;align-items:center;justify-content:center;width:100%;height:auto}
:is(.hc-site,.editor-styles-wrapper) .ab-region-grid{row-gap:16px}
:is(.hc-site,.editor-styles-wrapper) .page-a02 .ab-search{margin-bottom:24px}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article{grid-template-columns:32px minmax(0,1fr);column-gap:16px;row-gap:12px;padding:24px}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>.text-link{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .health-detail-heading .health-pills{margin-block:16px}
:is(.hc-site,.editor-styles-wrapper) .health-detail-heading .health-pills+p{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .health-directory-heading>.health-image{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .health-reading-heading{margin-bottom:24px}
:is(.hc-site,.editor-styles-wrapper) .section-heading>.table-wrap{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .page-c02 :is(h2,h3)+.table-wrap{margin-top:16px}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) :is(.table-wrap,.wp-block-table) table{min-width:600px}
 :is(.hc-site,.editor-styles-wrapper) :is(.page-c03,.page-d04) .hero-actions{flex-direction:column;align-items:stretch}
 :is(.hc-site,.editor-styles-wrapper) :is(.page-c03,.page-d04) .hero-actions a{width:100%}
 :is(.hc-site,.editor-styles-wrapper) .cd-resource-links article{grid-template-columns:minmax(0,1fr)}
}
:is(.hc-site,.editor-styles-wrapper) .health-guide-heading{margin-bottom:24px}
:is(.hc-site,.editor-styles-wrapper) .health-guide-heading+.health-guide-feature{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .health-reading-heading+.health-reading-cover{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .hc-content-list+.hc-link-wrap{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>.hc-inline-icon{grid-column:1;grid-row:1/5;width:32px;height:32px}
@media(max-width:700px){:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>.hc-inline-icon{grid-column:1;grid-row:auto;margin-bottom:16px}}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo{min-height:0;aspect-ratio:auto}
:is(.hc-site,.editor-styles-wrapper) .org-gallery-side .photo{flex:0 0 auto}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-links article>p{width:100%;margin-top:0}
:is(.hc-site,.editor-styles-wrapper) .ab-image-caption>.photo{flex:0 0 auto}
/* Closing actions use their own container, separate from the hero actions. */
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) :is(.page-c03,.page-d04) .cd-closing-row>.inline-links{flex-direction:column;align-items:stretch;width:100%}
 :is(.hc-site,.editor-styles-wrapper) :is(.page-c03,.page-d04) .cd-closing-row>.inline-links .wp-block-button__link{width:100%;margin-top:0}
}
:is(.hc-site,.editor-styles-wrapper) #kc-a02-s08 .container>.photo{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .page-d00 :is(.cd-key-questions,.cd-flow)+.hc-link-wrap{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) #kc-a00-s04 .hc-link-wrap:has(>.text-link){margin-top:16px}

:is(.hc-site,.editor-styles-wrapper) .hc-photo{align-self:start;height:auto;min-height:0}

/* Round 4: component geometry owns the slot, independently of the photograph. */
:is(.hc-site,.editor-styles-wrapper) .card-photo .photo img{position:absolute;inset:0;display:block;width:100%;height:100%!important;min-height:0;object-fit:cover;object-position:center;aspect-ratio:auto}
:is(.hc-site,.editor-styles-wrapper) .card-photo{width:100%;max-width:none;margin-inline:0}
:is(.hc-site,.editor-styles-wrapper) :is(.program-card,.org-card,.story-card).row .card-photo{height:100%;align-self:stretch}
:is(.hc-site,.editor-styles-wrapper) :is(.program-card,.org-card,.story-card).row .photo{height:100%;aspect-ratio:auto;min-height:0}
:is(.hc-site,.editor-styles-wrapper) .home-programs .program-card.featured .photo{aspect-ratio:2.3}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media{width:100%;height:100%;align-self:stretch}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo{height:100%;min-height:510px;aspect-ratio:auto}
:is(.hc-site,.editor-styles-wrapper) .cd-related-org>.photo{height:100%;aspect-ratio:auto;align-self:stretch}
:is(.hc-site,.editor-styles-wrapper) .detail-cover{width:100%;max-width:none}
:is(.hc-site,.editor-styles-wrapper) .detail-cover .hc-native-hero{width:100%;max-width:none}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.hc-native-hero{width:100%;max-width:none}
/* Document previews keep every word, with no empty colored frame. */
:is(.hc-site,.editor-styles-wrapper) .cd-file-cover{height:auto;aspect-ratio:auto;background:transparent}
:is(.hc-site,.editor-styles-wrapper) .cd-file-cover img{position:static;width:100%;height:auto!important;object-fit:contain}
:is(.hc-site,.editor-styles-wrapper) .hc-link-wrap>a.icon-card{height:100%;width:100%}
/* Shared reading rhythm, also applied inside the editor. */
:is(.hc-site,.editor-styles-wrapper) :is(.table-wrap,figure.wp-block-table){margin-block:16px}
:is(.hc-site,.editor-styles-wrapper) :is(.table-wrap,figure.wp-block-table)+p{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) :is(.lead,.detail-subtitle)+*{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .health-key-points{margin-bottom:24px}
:is(.hc-site,.editor-styles-wrapper) .health-key-points+*{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .icon-card>:is(h3,h4){margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .icon-card>:is(h3,h4)+*{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) :is(.icon-card,.cd-choice-card)>.hc-inline-icon{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .cd-panel-heading{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .cd-panel-heading+*{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .card-body>.badge+*{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .story-detail-copy>.breadcrumb{margin-bottom:16px}
:is(.hc-site,.editor-styles-wrapper) .story-detail-copy>.meta-line{margin-block:16px}
:is(.hc-site,.editor-styles-wrapper) .story-detail-copy>.meta-line+h1{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .ab-mini-events{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .detail-intro-icons{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .cd-related-program .wp-block-button__link{justify-content:flex-start;text-align:left}
@media(max-width:781px){
 :is(.hc-site,.editor-styles-wrapper) .home-hero-media{width:100%;margin-bottom:24px}
 :is(.hc-site,.editor-styles-wrapper) .home-hero-media .hc-photo{width:100%;height:auto;min-height:0;aspect-ratio:1.6}
}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .story-detail-hero{grid-template-columns:minmax(0,1fr)}
 :is(.hc-site,.editor-styles-wrapper) :is(.program-card,.org-card,.story-card).row .card-photo{height:auto}
 :is(.hc-site,.editor-styles-wrapper) :is(.program-card,.org-card,.story-card).row .photo{height:auto;aspect-ratio:var(--photo-ratio,1.55)}
 :is(.hc-site,.editor-styles-wrapper) .cd-related-org>.photo{height:auto;aspect-ratio:2}
 :is(.hc-site,.editor-styles-wrapper) .cd-related-program{display:flex;flex-direction:column;align-items:stretch;gap:16px}
 :is(.hc-site,.editor-styles-wrapper) .cd-related-program>.photo{float:none;width:100%;margin:0;aspect-ratio:1.6}
 :is(.hc-site,.editor-styles-wrapper) .cd-related-program>.card-body{width:100%}
}
:is(.hc-site,.editor-styles-wrapper) .home-hero-media .photo.hc-photo img{animation:none;transform:none!important}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-title>.photo{height:auto;min-height:0;aspect-ratio:auto;background:transparent;border:0}
:is(.hc-site,.editor-styles-wrapper) .cd-resource-title>.photo img{position:static;width:100%;height:auto!important;object-fit:contain}
:is(.hc-site,.editor-styles-wrapper) .cd-process-title{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .cd-process-title+*{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .cd-example-strip{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .ab-icon-heading{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .ab-icon-heading+*{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .home-space .org-card.row h3{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .cd-case-list+.caption{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .resource-row+.hc-link-wrap{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .white-panel+.hc-link-wrap{margin-top:16px}
@media(max-width:781px){:is(.hc-site,.editor-styles-wrapper) .home-hero-media .photo.hc-photo{aspect-ratio:1.6}}
:is(.hc-site,.editor-styles-wrapper) .story-detail-copy>h1{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .white-panel>h3+.ab-icon-columns{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) h3+.health-pills{margin-top:16px}

:is(.hc-site,.editor-styles-wrapper) :is(.home-hero-media,.cd-related-org)>.photo img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .ab-search-hero>.container>.photo{aspect-ratio:2}
:is(.hc-site,.editor-styles-wrapper) .ab-search-hero>.container>.photo img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover}
:is(.hc-site,.editor-styles-wrapper) .about-row .photo img,
:is(.hc-site,.editor-styles-wrapper) .ab-mini-story>.photo img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .cd-workflow-links{margin-bottom:16px}
:is(.hc-site,.editor-styles-wrapper) .utils-policy-text{margin-top:16px}
:is(.hc-site,.editor-styles-wrapper) .completion-symbol{margin-bottom:16px}
/* Restore the approved hero and venue ratios after removing native-size caps. */
:is(.hc-site,.editor-styles-wrapper) .detail-cover .hc-native-hero{aspect-ratio:3.1!important}
:is(.hc-site,.editor-styles-wrapper) .detail-cover .hc-native-hero img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.hc-native-hero{height:100%;min-height:600px;aspect-ratio:auto!important;align-self:stretch}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.hc-native-hero img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}
:is(.hc-site,.editor-styles-wrapper) .grid-2:has(>.section-heading>.table-wrap)>.photo{aspect-ratio:1.65}
:is(.hc-site,.editor-styles-wrapper) .grid-2:has(>.section-heading>.table-wrap)>.photo img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}
@media(max-width:1024px) and (min-width:701px){:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.hc-native-hero{min-height:450px}}
@media(max-width:700px){:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.hc-native-hero{height:auto;min-height:0;aspect-ratio:1.4!important}}
:is(.hc-site,.editor-styles-wrapper) .ab-date-link{margin-top:16px;margin-bottom:16px}
@media(max-width:700px){:is(.hc-site,.editor-styles-wrapper) .cd-related-program>.photo img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}}
/* Beat the later WordPress :last-child flow reset on the under-hero group. */
:is(.hc-site,.editor-styles-wrapper) .cd-under-hero>.cd-workflow-links{margin-bottom:16px}
:is(.hc-site,.editor-styles-wrapper) .ab-date-link.list-row{margin-block:16px}
@media(max-width:781px){
 :is(.hc-site,.editor-styles-wrapper) .home-hero .home-hero-media{margin-bottom:24px}
 :is(.hc-site,.editor-styles-wrapper) .home-hero .home-search{margin-top:0}
}
:is(.hc-site,.editor-styles-wrapper) .ab-mini-story>.photo{height:100%;min-height:180px;aspect-ratio:auto;align-self:stretch}
/* Capped photo frames must cap the painted image too, including mobile cards. */
:is(.hc-site,.editor-styles-wrapper) .photo img{max-height:inherit}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.photo{height:100%;min-height:600px;aspect-ratio:auto!important;align-self:stretch}
:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.photo img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center}
@media(max-width:1024px) and (min-width:701px){:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.photo{min-height:450px}}
@media(max-width:700px){:is(.hc-site,.editor-styles-wrapper) .story-detail-hero>.photo{height:auto;min-height:0;aspect-ratio:1.4!important}}
:is(.hc-site,.editor-styles-wrapper) .page-f00 .health-feature-split{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .search-bar input:focus-visible{outline:3px solid #b69b67;outline-offset:4px}

/* Round 5: card tables keep their mobile width; only the outer table has rhythm. */
@media(max-width:780px){
 :is(.hc-site,.editor-styles-wrapper) .table-wrap.cd-resource-table table{min-width:0}
}
:is(.hc-site,.editor-styles-wrapper) .table-wrap figure.wp-block-table{margin-block:0}
/* Inline badges need a block boundary before the heading's 12px margin. */
:is(.hc-site,.editor-styles-wrapper) .badge.soft:has(+ :is(h2,h3,h4)){display:table;margin-bottom:0}
:is(.hc-site,.editor-styles-wrapper) .badge.soft+:is(h2,h3,h4){margin-top:12px}
/* Space only icons embedded in prose, preserving flex/grid icon alignment. */
:is(.hc-site,.editor-styles-wrapper) :is(th,td,p,li,dt,dd,h1,h2,h3,h4)>.hc-inline-icon{margin-inline-end:8px}
:is(.hc-site,.editor-styles-wrapper) .page-c02 .white-panel>figure.icon{margin-bottom:12px}
:is(.hc-site,.editor-styles-wrapper) .page-c02 .white-panel>figure.icon+:is(h2,h3,h4){margin-top:0}
:is(.hc-site,.editor-styles-wrapper) .notice-content>.surface+h2{margin-top:24px}
:is(.hc-site,.editor-styles-wrapper) .page-a04 .grid-4 .hc-link-wrap>a.icon-card:not(:has(img))::after{content:"";width:24px;height:24px;flex:none;margin-left:auto;background:currentColor;mask:url('../icons/icon-e9468447f985.svg') center/contain no-repeat}
@media(max-width:700px){
 :is(.hc-site,.editor-styles-wrapper) .page-a01 .ab-search{flex-wrap:wrap}
 :is(.hc-site,.editor-styles-wrapper) .page-a01 .ab-search input{flex-basis:100%;width:100%;min-width:0}
 :is(.hc-site,.editor-styles-wrapper) .page-a01 select[name=sort]{width:170px;padding-inline:12px 28px}
}
:is(.hc-site,.editor-styles-wrapper) .inline-links>span>.hc-inline-icon,
:is(.hc-site,.editor-styles-wrapper) p>strong>.hc-inline-icon{margin-inline-end:8px}
:is(.hc-site,.editor-styles-wrapper) .hc-link-wrap>a:not([class])>.hc-inline-icon{margin-inline-start:8px}
:is(.hc-site,.editor-styles-wrapper) .sample-badge:has(+h1){display:table;margin-inline:auto;margin-bottom:0}
:is(.hc-site,.editor-styles-wrapper) .sample-badge+h1{margin-top:12px}
:is(.hc-site,.editor-styles-wrapper) .page-a04 #kc-a04-s06 .grid-4{grid-auto-rows:1fr}
@media(max-width:700px){:is(.hc-site,.editor-styles-wrapper) .page-a01 label.field:has(>select[name=sort]){min-width:170px}}
