/*
 * Base: element defaults the design was built on (inherited from the original Divi build) and
 * neutralising core block spacing so the component styles below are the only source of layout.
 * Everything here is wrapped in :where() (zero specificity) so any class rule wins.
 */
:where(*),:where(*::before),:where(*::after){box-sizing:border-box;}
html,body{overflow-x:clip;}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}

:where(h1,h2,h3,h4,h5,h6,p,ul,ol,li,figure,blockquote,dl,dd){margin:0;}
:where(h1,h2,h3,h4,h5,h6){padding:0 0 10px;}
:where(p){padding:0 0 1em;}
/* Deliberately NOT zero-specificity: the design was built with this rule overriding single-class paragraph padding. */
p:not(.has-background):last-of-type{padding-bottom:0;}
:where(ul,ol){padding:0 0 1em 1em;line-height:26px;}
:where(ul){list-style-type:disc;}
:where(strong,b){font-weight:700;}
:where(sub,sup){height:0;line-height:1;position:relative;vertical-align:baseline;}
:where(sup){bottom:.8em;}
:where(sub){top:.3em;}
:where(img){max-width:100%;height:auto;}
:where(button,input,select,textarea){font-family:inherit;}
:where(a:hover){text-decoration:none;}

/* Core blocks: no default gaps or margins (layout comes from the component CSS). */
:where(.wp-block-image){margin:0;}
:where(.wp-block-image) img{vertical-align:bottom;}
:where(.wp-block-columns){margin:0;gap:0;flex-wrap:nowrap;align-items:flex-start;}
:where(.wp-block-group){margin:0;}
.wp-block-post-content,.wp-site-blocks>*{margin-block:0;}

/* Accessibility helpers */
.screen-reader-text{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.skip-link.screen-reader-text:focus{clip:auto;width:auto;height:auto;margin:0;padding:12px 18px;z-index:100000;background:#fff;color:#222a30;top:8px;left:8px;}
