/* Shared module width: use 95% of the available area, without a fixed cap. */
.home:is(.home, .home--mobile-shell) #home-main-content.home__content[data-module-layout] .module-page {
  box-sizing: border-box !important;
  width: 95% !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
/* A nested module must not apply the inset a second time. */
.home:is(.home, .home--mobile-shell) #home-main-content.home__content[data-module-layout] .module-page .module-page {
  width: 100% !important;
}

/* Dark surfaces are local to the requested modules; retain semantic accents. */
:is([data-theme="dark"], body.theme-dark) :is(.email-center, .em-modal) {
  --em-surface: #131317 !important;
  --em-canvas: #131317 !important;
}
:is([data-theme="dark"], body.theme-dark) .hcaccess {
  --access-surface: #131317 !important;
  --access-canvas: #131317 !important;
}
:is([data-theme="dark"], body.theme-dark) :is(.bundles, .bundles__modal) {
  --bg-primary: #131317;
  --bg-secondary: #131317;
  --bg-tertiary: #131317;
}
:is([data-theme="dark"], body.theme-dark) .home :is(
  .ventas__card, .ventas__master-toggle, .ventas__provider-card
) {
  background: #131317 !important;
}

/* Native disclosure retains drafts and controls while its body is hidden. */
details.hcaccess { display: block; }
.hcaccess__summary { position: relative; list-style: none; cursor: pointer; padding-right: 28px; }
.hcaccess__summary::-webkit-details-marker { display: none; }
.hcaccess__summary::after {
  content: ''; position: absolute; right: 3px; top: 12px;
  width: 9px; height: 9px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
details.hcaccess[open] > .hcaccess__summary::after { transform: rotate(225deg); top: 17px; }
.hcaccess__summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; border-radius: 4px; }
details.hcaccess:not([open]) .hcaccess__subtitle { margin-bottom: 0; }
