/* One decorative frame per page; original headings and IDs stay intact. */
#main .am-heading-selection{position:relative;display:table;width:fit-content;max-width:100%;box-sizing:border-box;border:1px solid #198aca;padding:12px 16px;margin:28px 0 20px;text-align:inherit}
#main .am-heading-selection>:is(h1,h2,h3,h4){margin:0!important;overflow-wrap:break-word}
#main .am-heading-selection-tag{position:absolute;left:-1px;top:-23px;display:block;background:#126c9e;color:#fff;font:11px/18px ui-monospace,SFMono-Regular,Consolas,monospace;padding:2px 8px;white-space:nowrap;pointer-events:none}
#main .am-heading-selection:before,#main .am-heading-selection:after{content:'';position:absolute;width:6px;height:6px;background:#198aca;border:1px solid var(--color-bg,#fff);pointer-events:none}
#main .am-heading-selection:before{left:-3px;top:-3px}#main .am-heading-selection:after{right:-3px;bottom:-3px}
body[data-theme=dark] #main .am-heading-selection{border-color:#73cbfa}body[data-theme=dark] #main .am-heading-selection:before,body[data-theme=dark] #main .am-heading-selection:after{background:#73cbfa}
@media(max-width:767px){#main .am-heading-selection{padding:10px 12px}}

#main .am-heading-selection-centered{margin-inline:auto}

#main .am-about-page-title{font:inherit!important;letter-spacing:inherit!important;margin:0!important}
/* Preserve the original portfolio type treatment while correcting element roles. */
html body #main .elementor-1107 :is(.elementor-element-da92c4e,.elementor-element-f2bf6b5,.elementor-element-bd0d59d) > p.elementor-heading-title{font-family:var(--am-font-display,Changa),Inter,Arial,sans-serif!important;font-weight:700!important}
html body #main .elementor-1107 .elementor-element-b08a19f > h1.elementor-heading-title{font-size:6rem!important;line-height:1!important}
@media(max-width:1024px){html body #main .elementor-1107 .elementor-element-b08a19f > h1.elementor-heading-title{font-size:4.5rem!important}}
@media(max-width:767px){html body #main .elementor-1107 .elementor-element-b08a19f > h1.elementor-heading-title{font-size:3.4rem!important}}
/* Retain the original contact title's responsive sizing after promoting H4 to H1. */
html body #main .elementor-element-fb7febb h1.elementor-heading-title{font-size:60px!important;line-height:64px!important;font-weight:600!important}
@media(max-width:1024px){html body #main .elementor-element-fb7febb h1.elementor-heading-title{font-size:1.8em!important;line-height:1.4em!important}}
@media(max-width:767px){html body #main .elementor-element-fb7febb h1.elementor-heading-title{font-size:1.6em!important;line-height:1.5em!important}}
