/* Intentionally scoped: Enfold header, footer and native Avia elements are
   configured and tested in subsequent build steps. No global reset. */
#top .teib-scope .avia-button.teib-button {text-transform:none;letter-spacing:normal;}
#top .teib-scope .teib-scroll-table {overflow-x:auto;max-width:100%;}

/* TEiB section integration: the inner TEiB container owns the gutters. */
#top .teib-section-wrapper > .container {
    width: 100%; max-width: none; padding-inline: 0;
}
/* Hero rhythm: explicit gaps rather than inherited heading margins. */
#top .teib-section-wrapper--hero .teib-scope .teib-container {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: var(--teib-space-24);
}
#top .teib-section-wrapper--hero .teib-scope .teib-container > :is(.teib-label,.teib-display,.teib-signature-line,.teib-lead,.teib-actions) {
    margin-block: 0;
}

/* Opt-in component rhythm; preserve existing hero and native content. */
#top .teib-scope .teib-section-intro,
#top .teib-scope .teib-content-group {display:flex;flex-direction:column;align-items:stretch;gap:var(--teib-space-24);}
#top .teib-scope :is(.teib-section-intro,.teib-content-group) > :is(h2,h3,p,.teib-signature-line,.teib-grid) {margin-block:0;}
#top .teib-scope .teib-section-intro + .teib-content-group,
#top .teib-scope .teib-content-group + .teib-content-group {margin-top:var(--teib-space-48);}
#top .teib-scope .teib-card-stack {display:flex;flex-direction:column;gap:var(--teib-space-16);}
#top .teib-scope .teib-card-stack > :is(h1,h2,h3,h4,h5,h6,p,div) {margin-block:0;}
#top .teib-scope .teib-card-stack > h4 + .teib-meta {margin-top:calc(-1 * var(--teib-space-8));}
@media (max-width:767px) {
 #top .teib-scope .teib-section-intro + .teib-content-group,
 #top .teib-scope .teib-content-group + .teib-content-group {margin-top:var(--teib-space-32);}
}
